bible-note 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/bible-note.cjs +25 -26
  2. package/dist/bible-note.css +1 -1
  3. package/dist/bible-note.mjs +7167 -7205
  4. package/dist/chunks/{ContentEditable-C_wyHFh1.mjs → ContentEditable-BaXBKC3m.mjs} +1 -1
  5. package/dist/chunks/{ContentEditable-DgthEFHJ.cjs → ContentEditable-Ce294XLd.cjs} +2 -2
  6. package/dist/chunks/{ExcalidrawComponent-bEqDGYRW.cjs → ExcalidrawComponent-DdmtbuXc.cjs} +1 -1
  7. package/dist/chunks/{ExcalidrawComponent-iTobN_Hf.mjs → ExcalidrawComponent-OMjYgJCL.mjs} +2 -2
  8. package/dist/chunks/{ExcalidrawModal-DAEdxIBk.mjs → ExcalidrawModal-DSotOBGc.mjs} +2 -2
  9. package/dist/chunks/{ExcalidrawModal-Bbez9U5x.cjs → ExcalidrawModal-Db1LI01l.cjs} +2 -2
  10. package/dist/chunks/LexicalUtils.prod-CYv8J7Gq.cjs +3 -0
  11. package/dist/chunks/{LexicalUtils.prod-5zbJxaQa.mjs → LexicalUtils.prod-D2Igim2c.mjs} +28 -32
  12. package/dist/chunks/{MediaComponent-BTaaADsV.mjs → MediaComponent-D-AMKM9e.mjs} +3 -3
  13. package/dist/chunks/{MediaComponent-BhjGu3D-.cjs → MediaComponent-D69mEyrJ.cjs} +1 -1
  14. package/dist/chunks/{MediaResizer-C7UGQ3Kl.mjs → MediaResizer-C_ZJbHAU.mjs} +1 -1
  15. package/dist/chunks/{MediaResizer-DGw5LvDR.cjs → MediaResizer-Dzro5TVg.cjs} +1 -1
  16. package/dist/chunks/{StickyComponent-B8skHBRs.mjs → StickyComponent-B1GQ5G8T.mjs} +2 -2
  17. package/dist/chunks/{StickyComponent-C6xBrvrK.cjs → StickyComponent-DsQhvYHJ.cjs} +1 -1
  18. package/dist/chunks/{StickyNode-GgIn3-zY.cjs → StickyNode-B7sXOkJV.cjs} +1 -1
  19. package/dist/chunks/{StickyNode-B2B6di-N.mjs → StickyNode-C5dwEb8E.mjs} +3 -3
  20. package/dist/chunks/{TreeViewPlugin-DkUjU27t.cjs → TreeViewPlugin-8-uPZF17.cjs} +3 -3
  21. package/dist/chunks/{TreeViewPlugin-B0UnxNiM.mjs → TreeViewPlugin-Cd1KNBRW.mjs} +18 -18
  22. package/knowledge/development.md +2 -2
  23. package/knowledge/ui-rag.md +182 -134
  24. package/package.json +1 -1
  25. package/dist/chunks/LexicalUtils.prod-W-Xb5dGB.cjs +0 -3
@@ -1,9 +1,9 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./chunks/rolldown-runtime-D_FWMvbo.cjs"),t=require("./chunks/Lexical.prod-C9Xekspf.cjs"),n=require("./chunks/LexicalUtils.prod-W-Xb5dGB.cjs"),r=require("./chunks/ContentEditable-DgthEFHJ.cjs"),i=require("./chunks/MediaResizer-DGw5LvDR.cjs"),a=require("./chunks/TreeViewPlugin-DkUjU27t.cjs"),o=require("./chunks/ExcalidrawModal-Bbez9U5x.cjs"),s=require("./chunks/StickyNode-GgIn3-zY.cjs"),c=require("./chunks/useLexicalNodeSelection.prod-DXhTEgoC.cjs"),l=require("./chunks/useLexicalEditable.prod-B2XnDcjV.cjs"),u=require("./chunks/Button-DoHOTdXN.cjs"),d=require("./chunks/KatexRenderer-Dd7Etq4d.cjs"),f=require("./chunks/floating-ui.react-BbAtguKT.cjs"),p=require("./chunks/floating-ui.react-dom-5SucL1Ke.cjs"),m=require("./chunks/PollNode-B90z9SZQ.cjs");let h=require("react");h=e.a(h,1);let g=require("react-dom/client"),_=require("react/jsx-runtime"),v=require("react-dom");v=e.a(v,1);var y={version:`0.1.1-dev`},b=class{before=[];after=[];get(e){return this.before.find(t=>t.id===e)??this.after.find(t=>t.id===e)??null}set(e,t){if(this.get(e.id)!==null){let t=t=>t.map(t=>t.id===e.id?e:t);this.before=t(this.before),this.after=t(this.after);return}t===`before`?this.before=[e,...this.before]:this.after=[...this.after,e]}remove(e){return this.get(e)===null?!1:(this.before=this.before.filter(t=>t.id!==e),this.after=this.after.filter(t=>t.id!==e),!0)}snapshot(){return{after:[...this.after],before:[...this.before]}}};function x(e,t=document.body){t.classList.toggle(`playground-theme-dark`,e===`dark`),t.classList.toggle(`playground-theme-light`,e===`light`),t.dataset.bsTheme=e}function S(e=document.body){e.classList.remove(`playground-theme-dark`,`playground-theme-light`)}function C(e,n){let[r]=n,i=e.decorators.map(e=>typeof e==`function`?(0,_.jsx)(e,{context:n}):e);return function(a){let{EditorChildrenComponent:o=e.EditorChildrenComponent,ErrorBoundary:s=e.ErrorBoundary,contentEditable:c=e.contentEditable,children:l}=a,u=function(e,t){let[n,r]=(0,h.useMemo)(()=>[t=>e.registerDecoratorListener(t),()=>e.getDecorators()],[e]),i=(0,h.useSyncExternalStore)(n,r,r);return(0,h.useMemo)(()=>{let n=[];for(let r in i){let a=e.getElementByKey(r);if(a!==null){let o=(0,_.jsx)(t,{onError:t=>{e._onError(t)},children:(0,_.jsx)(h.Suspense,{fallback:null,children:i[r]})});n.push((0,v.createPortal)(o,a,r))}}return n},[t,i,e])}(r,s),d=(0,h.useMemo)(()=>i.map((e,t)=>(0,_.jsx)(s,{onError:e=>{r._onError(e)},children:(0,_.jsx)(h.Suspense,{fallback:null,children:e})},t)),[s]);return(0,_.jsx)(t.si.Provider,{value:n,children:(0,_.jsxs)(o,{context:n,contentEditable:c,children:[l,d,u]})})}}function w({contentEditable:e,children:t}){return(0,_.jsxs)(_.Fragment,{children:[e,t]})}var T=t.hr({build(e,t,n){n.getPeer(r.M.name)||function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(321,[...n.getDirectDependentNames()].join(` `));let i=[e,{getTheme:()=>e._config.theme}];return{Component:C(t,i),context:i}},config:{EditorChildrenComponent:w,ErrorBoundary:r.N,contentEditable:(0,_.jsx)(r.P,{}),decorators:[]},mergeConfig(e,n){let r=t.d(e,n);return n.decorators&&(r.decorators=n.decorators.length>0?[...e.decorators,...n.decorators]:e.decorators),r},name:`@lexical/react/React`,peerDependencies:[t.ir(r.M.name)]});function E({extension:e,children:n,contentEditable:i}){let a=(0,h.useMemo)(()=>r.K.fromExtensions([r.M,t.ei(T,i===void 0?{}:{contentEditable:i}),e]).buildEditor(),[i,e]);(0,h.useEffect)(()=>{let e=!1;return queueMicrotask(()=>{e=!0}),()=>{e&&a.dispose()}},[a]);let{Component:o}=r.q(a,T).output;return(0,_.jsx)(o,{children:n})}var D={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`},O={bgColor:`#fff`,bgColorIcon:``,blockType:`paragraph`,canRedo:!1,canUndo:!1,codeLanguage:``,codeTheme:``,elementFormat:`left`,fontColor:`#000`,fontColorIcon:``,fontFamily:`Arial`,fontSize:`15px`,fontSizeInputValue:`15`,isBold:!1,isCode:!1,isHighlight:!1,isImageCaption:!1,isItalic:!1,isLink:!1,isRTL:!1,isStrikethrough:!1,isSubscript:!1,isSuperscript:!1,isUnderline:!1,isLowercase:!1,isUppercase:!1,isCapitalize:!1,rootType:`root`,listStartNumber:null},k=(0,h.createContext)(void 0),A=({children:e})=>{let[t,n]=(0,h.useState)(O),r=t.fontSize,i=(0,h.useCallback)((e,t)=>{n(n=>({...n,[e]:t}))},[]);(0,h.useEffect)(()=>{i(`fontSizeInputValue`,r.slice(0,-2))},[r,i]);let a=(0,h.useMemo)(()=>({toolbarState:t,updateToolbarState:i}),[t,i]);return(0,_.jsx)(k.Provider,{value:a,children:e})},j=()=>{let e=(0,h.useContext)(k);if(e===void 0)throw Error(`useToolbarState must be used within a ToolbarProvider`);return e},M=e=>e.querySelector(`button, a[href], input, select, textarea, details, summary [tabindex], [contenteditable]`),N=e=>{let t=M(e);return t?.focus(),t},P=e=>`pointerId`in e&&`pointerType`in e?e.pointerId===-1&&e.pointerType===``:e?.detail===0,F=Object.freeze({NORMAL:t.yr?`⌘+Opt+0`:`Ctrl+Alt+0`,HEADING1:t.yr?`⌘+Opt+1`:`Ctrl+Alt+1`,HEADING2:t.yr?`⌘+Opt+2`:`Ctrl+Alt+2`,HEADING3:t.yr?`⌘+Opt+3`:`Ctrl+Alt+3`,NUMBERED_LIST:t.yr?`⌘+Shift+7`:`Ctrl+Shift+7`,BULLET_LIST:t.yr?`⌘+Shift+8`:`Ctrl+Shift+8`,CHECK_LIST:t.yr?`⌘+Shift+9`:`Ctrl+Shift+9`,CODE_BLOCK:t.yr?`⌘+Opt+C`:`Ctrl+Alt+C`,QUOTE:t.yr?`⌃+Shift+Q`:`Ctrl+Shift+Q`,ADD_COMMENT:t.yr?`⌘+Opt+M`:`Ctrl+Alt+M`,INCREASE_FONT_SIZE:t.yr?`⌘+Shift+.`:`Ctrl+Shift+.`,DECREASE_FONT_SIZE:t.yr?`⌘+Shift+,`:`Ctrl+Shift+,`,INSERT_CODE_BLOCK:t.yr?`⌘+Shift+C`:`Ctrl+Shift+C`,STRIKETHROUGH:t.yr?`⌘+Shift+X`:`Ctrl+Shift+X`,LOWERCASE:t.yr?`⌃+Shift+1`:`Ctrl+Shift+1`,UPPERCASE:t.yr?`⌃+Shift+2`:`Ctrl+Shift+2`,CAPITALIZE:t.yr?`⌃+Shift+3`:`Ctrl+Shift+3`,CENTER_ALIGN:t.yr?`⌘+Shift+E`:`Ctrl+Shift+E`,JUSTIFY_ALIGN:t.yr?`⌘+Shift+J`:`Ctrl+Shift+J`,LEFT_ALIGN:t.yr?`⌘+Shift+L`:`Ctrl+Shift+L`,RIGHT_ALIGN:t.yr?`⌘+Shift+R`:`Ctrl+Shift+R`,SUBSCRIPT:t.yr?`⌘+,`:`Ctrl+,`,SUPERSCRIPT:t.yr?`⌘+.`:`Ctrl+.`,INDENT:t.yr?`⌘+]`:`Ctrl+]`,OUTDENT:t.yr?`⌘+[`:`Ctrl+[`,CLEAR_FORMATTING:t.yr?`⌘+\\`:`Ctrl+\\`,REDO:t.yr?`⌘+Shift+Z`:`Ctrl+Y`,UNDO:t.yr?`⌘+Z`:`Ctrl+Z`,BOLD:t.yr?`⌘+B`:`Ctrl+B`,ITALIC:t.yr?`⌘+I`:`Ctrl+I`,UNDERLINE:t.yr?`⌘+U`:`Ctrl+U`,INSERT_LINK:t.yr?`⌘+K`:`Ctrl+K`,FIND:t.yr?`⌘+F`:`Ctrl+F`}),I={ctrlKey:!t.yr,metaKey:t.yr};function L(e){let{code:n}=e;return(n===`Numpad0`||n===`Digit0`)&&t.Cn(e,{...I,altKey:!0})}function R(e){let{code:n}=e;if(!n)return!1;let r=n[n.length-1];return[`1`,`2`,`3`].includes(r)&&t.Cn(e,{...I,altKey:!0})}function z(e){let{code:n}=e;return(n===`Numpad7`||n===`Digit7`)&&t.Cn(e,{...I,shiftKey:!0})}function B(e){let{code:n}=e;return(n===`Numpad8`||n===`Digit8`)&&t.Cn(e,{...I,shiftKey:!0})}function ee(e){let{code:n}=e;return(n===`Numpad9`||n===`Digit9`)&&t.Cn(e,{...I,shiftKey:!0})}function te(e){let{code:n}=e;return n===`KeyC`&&t.Cn(e,{...I,altKey:!0})}function V(e){let{code:n}=e;return n===`KeyQ`&&t.Cn(e,{ctrlKey:!0,shiftKey:!0})}function ne(e){let{code:n}=e;return(n===`Numpad1`||n===`Digit1`)&&t.Cn(e,{ctrlKey:!0,shiftKey:!0})}function re(e){let{code:n}=e;return(n===`Numpad2`||n===`Digit2`)&&t.Cn(e,{ctrlKey:!0,shiftKey:!0})}function H(e){let{code:n}=e;return(n===`Numpad3`||n===`Digit3`)&&t.Cn(e,{ctrlKey:!0,shiftKey:!0})}function U(e){let{code:n}=e;return n===`KeyX`&&t.Cn(e,{...I,shiftKey:!0})}function ie(e){let{code:n}=e;return n===`BracketRight`&&t.Cn(e,I)}function ae(e){let{code:n}=e;return n===`BracketLeft`&&t.Cn(e,I)}function oe(e){let{code:n}=e;return n===`KeyE`&&t.Cn(e,{...I,shiftKey:!0})}function se(e){let{code:n}=e;return n===`KeyL`&&t.Cn(e,{...I,shiftKey:!0})}function ce(e){let{code:n}=e;return n===`KeyR`&&t.Cn(e,{...I,shiftKey:!0})}function le(e){let{code:n}=e;return n===`KeyJ`&&t.Cn(e,{...I,shiftKey:!0})}function ue(e){let{code:n}=e;return n===`Comma`&&t.Cn(e,I)}function de(e){let{code:n}=e;return n===`Period`&&t.Cn(e,I)}function fe(e){let{code:n}=e;return n===`KeyC`&&t.Cn(e,{...I,shiftKey:!0})}function pe(e){let{code:n}=e;return n===`Period`&&t.Cn(e,{...I,shiftKey:!0})}function me(e){let{code:n}=e;return n===`Comma`&&t.Cn(e,{...I,shiftKey:!0})}function he(e){let{code:n}=e;return n===`Backslash`&&t.Cn(e,I)}function ge(e){let{code:n}=e;return n===`KeyK`&&t.Cn(e,I)}function _e(e){let{code:n}=e;return n===`KeyF`&&t.Cn(e,I)}function ve(e){let{code:n}=e;return n===`F3`&&t.Cn(e,{})||n===`KeyG`&&t.Cn(e,I)}function ye(e){let{code:n}=e;return n===`F3`&&t.Cn(e,{shiftKey:!0})||n===`KeyG`&&t.Cn(e,{...I,shiftKey:!0})}function be(e){let{code:n}=e;return n===`KeyM`&&t.Cn(e,{...I,altKey:!0})}function xe(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Se(e,n){let r=e;for(let i=t.f(e,n);i&&(qe(i.origin)||t.On(i.origin));i=i.getAdjacentCaret())r=i.origin;return r}function Ce(e){return Se(e,`previous`)}function we(e){return Se(e,`next`)}function Te(e){let n=Ce(e),r=we(e),i=n;for(;i!==null;){if(qe(i)){let e=t.St(i.getTextContent());if(e!==null)return e}if(i===r)break;i=i.getNextSibling()}let a=n.getParent();if(t.vt(a)){let e=a.getDirection();if(e===`ltr`||e===`rtl`)return e}return null}function Ee(e,n){let r=null,i=null,a=e,o=n,s=e.getTextContent();for(;;){if(o===0){let e=a.getPreviousSibling();if(e===null){a=null;break}if(qe(e)||t.On(e)||t._r(e)||xe(167),a=e,t._r(a)){r={node:a,offset:1};break}o=Math.max(0,a.getTextContentSize()-1),s=a.getTextContent()}else o--;let e=s[o];qe(a)&&e!==` `&&(i={node:a,offset:o})}if(i!==null)return i;let c=null;if(n<e.getTextContentSize())qe(e)&&(c=e.getTextContent()[n]);else{let t=e.getNextSibling();qe(t)&&(c=t.getTextContent()[0])}if(c!==null&&c!==` `)return r;{let i=function(e,n){let r=e,i=n,a=e.getTextContent(),o=e.getTextContentSize();for(;;){if(!qe(r)||i===o){if(r=r.getNextSibling(),r===null||t._r(r))return null;qe(r)&&(i=0,a=r.getTextContent(),o=r.getTextContentSize())}if(qe(r)){if(a[i]!==` `)return{node:r,offset:i};i++}}}(e,n);return i===null?r:i}}function De(e){let n=we(e);return t._r(n)&&xe(168),n}function Oe(e){let n=[];return t.Kn(e,{linebreak:()=>n.push(t.Bt()),tab:()=>n.push(t.kr()),text:e=>n.push(Ke(e))}),n}function ke(e,t,n){if(!Number.isInteger(t)||t<=0)return!1;let r=e.getTextContent(),i=/^ +/.exec(r);if(!i)return!1;let a=Math.min(t,i[0].length),o=e.getKey(),s=n.anchor.key===o&&n.anchor.type===`text`?n.anchor.offset:null,c=n.focus.key===o&&n.focus.type===`text`?n.focus.offset:null;return e.spliceText(0,a,``),s!==null&&n.anchor.set(o,Math.max(0,s-a),`text`),c!==null&&n.focus.set(o,Math.max(0,c-a),`text`),!0}var Ae=`javascript`;function je(e,n){for(let r of e.childNodes)if(t.Sn(r)&&r.tagName===n||je(r,n))return!0;return!1}var Me=`data-language`,Ne=`data-highlight-language`,Pe=`data-theme`,Fe=class e extends t.m{__language;__theme;__isSyntaxHighlightSupported;static getType(){return`code`}static clone(t){return new e(t.__language,t.__key)}constructor(e,t){super(t),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let n=t.qt().createElement(`code`);t.Vr(n,e.theme.code),n.setAttribute(`spellcheck`,`false`);let r=this.getLanguage();r&&(n.setAttribute(Me,r),this.getIsSyntaxHighlightSupported()&&n.setAttribute(Ne,r));let i=this.getTheme();i&&n.setAttribute(Pe,i);let a=this.getStyle();return a&&t.bt(n.style,a),n}updateDOM(e,n,r){let i=this.__language,a=e.__language;i?i!==a&&n.setAttribute(Me,i):a&&n.removeAttribute(Me);let o=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&a?o&&i?i!==a&&n.setAttribute(Ne,i):n.removeAttribute(Ne):o&&i&&n.setAttribute(Ne,i);let s=this.__theme,c=e.__theme;s?s!==c&&n.setAttribute(Pe,s):c&&n.removeAttribute(Pe);let l=this.__style,u=e.__style;return l!==u&&t.bt(n.style,l,u),!1}exportDOM(e){let n=t.qt().createElement(`pre`);t.Vr(n,e._config.theme.code),n.setAttribute(`spellcheck`,`false`);let r=this.getLanguage();r&&(n.setAttribute(Me,r),this.getIsSyntaxHighlightSupported()&&n.setAttribute(Ne,r));let i=this.getTheme();i&&n.setAttribute(Pe,i);let a=this.getStyle();return a&&t.bt(n.style,a),{element:n}}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||je(e,`BR`))?{conversion:Le,priority:1}:null,div:()=>({conversion:Re,priority:1}),pre:()=>({conversion:Le,priority:0}),table:e=>He(e)?{conversion:ze,priority:3}:null,td:e=>{let t=e,n=t.closest(`table`);return t.classList.contains(`js-file-line`)||n&&He(n)?{conversion:Be,priority:3}:null},tr:e=>{let t=e.closest(`table`);return t&&He(t)?{conversion:Be,priority:3}:null}}}static importJSON(e){return Ie().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,n=!0){if(!r.Y(t.s(),`@lexical/code`)){let t=Ue(e);if(t)return t}let{anchor:i,focus:a}=e,o=(i.isBefore(a)?i:a).getNode();if(t.Jt(o)){let e=Ce(o),n=[];for(;;)if(t.On(e))n.push(t.kr()),e=e.getNextSibling();else{if(!qe(e))break;{let t=0,r=e.getTextContent(),i=e.getTextContentSize();for(;t<i&&r[t]===` `;)t++;if(t!==0&&n.push(Ke(` `.repeat(t))),t!==i)break;e=e.getNextSibling()}}let r=o.splitText(i.offset)[0],a=i.offset===0?0:1,s=r.getIndexWithinParent()+a,c=o.getParentOrThrow(),l=[t.Bt(),...n];c.splice(s,0,l);let u=n[n.length-1];u?u.select():i.offset===0?r.selectPrevious():r.getNextSibling().selectNext(0,0)}if(W(o)){let{offset:n}=e.anchor;o.splice(n,0,[t.Bt()]),o.select(n+1,n+1)}return null}canIndent(){return!1}collapseAtStart(){let e=t.Ar();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}setLanguage(e){let t=this.getWritable();return t.__language=e||void 0,t}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){let t=this.getWritable();return t.__isSyntaxHighlightSupported=e,t}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){let t=this.getWritable();return t.__theme=e||void 0,t}getTheme(){return this.getLatest().__theme}};function Ie(e,n){return t.k(Fe).setLanguage(e).setTheme(n)}function W(e){return e instanceof Fe}function Le(e){return{node:Ie(e.getAttribute(Me))}}function Re(e){let t=e,n=Ve(t);return n||function(e){let t=e.parentElement;for(;t!==null;){if(Ve(t))return!0;t=t.parentElement}return!1}(t)?{node:n?Ie():null}:{node:null}}function ze(){return{node:Ie()}}function Be(){return{node:null}}function Ve(e){return e.style.fontFamily.match(`monospace`)!==null}function He(e){return e.classList.contains(`js-file-line-container`)}function Ue(e){let{anchor:n}=e;if(e.isCollapsed()&&n.type===`element`){let e=n.getNode();if(W(e)){let r=e.getChildrenSize();if(r>=2&&n.offset===r){let n=e.getLastChild();if(t._r(n)&&t._r(n.getPreviousSibling())){let n=t.Ar();return e.splice(r-2,2,[]).insertAfter(n,!1),n.select(),n}}}}return null}var We=class e extends t.Wt{__highlightType;constructor(e=``,t,n){super(e,n),this.__highlightType=t}static getType(){return`code-highlight`}static clone(t){return new e(t.__text,t.__highlightType||void 0,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__highlightType=e.__highlightType}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){let t=this.getWritable();return t.__highlightType=e||void 0,t}canHaveFormat(){return!1}createDOM(e){let n=super.createDOM(e);return t.Vr(n,Ge(e.theme,this.__highlightType)),n}updateDOM(e,n,r){let i=super.updateDOM(e,n,r),a=Ge(r.theme,e.__highlightType),o=Ge(r.theme,this.__highlightType);return a!==o&&(a&&t.Pt(n,a),o&&t.Vr(n,o)),i}static importJSON(e){return Ke().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return Ie()}};function Ge(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function Ke(e=``,n){return t.o(new We(e,n))}function qe(e){return e instanceof We}r.y.tag(`tr`,`td`),r.y.tag(`pre`),r.y.tag(`code`),r.y.tag(`div`),r.y.tag(`div`,`br`),r.y.tag(`div`),r.y.tag(`table`).classAll(`js-file-line-container`),r.y.tag(`td`).classAll(`js-file-line`);function Je(e){if(!t.bn(e))return!1;let n=e.anchor.getNode(),r=W(n)?n:n.getParent(),i=e.focus.getNode(),a=W(i)?i:i.getParent();return W(r)&&r.is(a)}function Ye(e){let n=e.getNodes(),r=[];if(n.length===1&&W(n[0]))return r;let i=[];for(let e=0;e<n.length;e++){let a=n[e];qe(a)||t.On(a)||t._r(a)||xe(169),t._r(a)?i.length>0&&(r.push(i),i=[]):i.push(a)}if(i.length>0){let n=e.isBackward()?e.anchor:e.focus,a=t.dr(i[0].getKey(),0,`text`);n.is(a)||r.push(i)}return r}function Xe(e,n){let r=t.tt();if(!t.bn(r)||!Je(r))return!1;let i=Ye(r),a=i.length;if(a===0&&r.isCollapsed())return e===t.on&&r.insertNodes([t.kr()]),!0;if(a===0&&e===t.on&&r.getTextContent()===`
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./chunks/rolldown-runtime-D_FWMvbo.cjs"),t=require("./chunks/Lexical.prod-C9Xekspf.cjs"),n=require("./chunks/LexicalUtils.prod-CYv8J7Gq.cjs"),r=require("./chunks/ContentEditable-Ce294XLd.cjs"),i=require("./chunks/MediaResizer-Dzro5TVg.cjs"),a=require("./chunks/TreeViewPlugin-8-uPZF17.cjs"),o=require("./chunks/ExcalidrawModal-Db1LI01l.cjs"),s=require("./chunks/StickyNode-B7sXOkJV.cjs"),c=require("./chunks/useLexicalNodeSelection.prod-DXhTEgoC.cjs"),l=require("./chunks/useLexicalEditable.prod-B2XnDcjV.cjs"),u=require("./chunks/Button-DoHOTdXN.cjs"),d=require("./chunks/KatexRenderer-Dd7Etq4d.cjs"),f=require("./chunks/floating-ui.react-BbAtguKT.cjs"),p=require("./chunks/floating-ui.react-dom-5SucL1Ke.cjs"),m=require("./chunks/PollNode-B90z9SZQ.cjs");let h=require("react");h=e.a(h,1);let g=require("react-dom/client"),_=require("react/jsx-runtime"),v=require("react-dom");v=e.a(v,1);var y={version:`0.1.1-dev`},b=class{before=[];after=[];get(e){return this.before.find(t=>t.id===e)??this.after.find(t=>t.id===e)??null}set(e,t){if(this.get(e.id)!==null){let t=t=>t.map(t=>t.id===e.id?e:t);this.before=t(this.before),this.after=t(this.after);return}t===`before`?this.before=[e,...this.before]:this.after=[...this.after,e]}remove(e){return this.get(e)===null?!1:(this.before=this.before.filter(t=>t.id!==e),this.after=this.after.filter(t=>t.id!==e),!0)}snapshot(){return{after:[...this.after],before:[...this.before]}}};function x(e,t=document.body){t.classList.toggle(`playground-theme-dark`,e===`dark`),t.classList.toggle(`playground-theme-light`,e===`light`),t.dataset.bsTheme=e}function S(e=document.body){e.classList.remove(`playground-theme-dark`,`playground-theme-light`)}function C(e,n){let[r]=n,i=e.decorators.map(e=>typeof e==`function`?(0,_.jsx)(e,{context:n}):e);return function(a){let{EditorChildrenComponent:o=e.EditorChildrenComponent,ErrorBoundary:s=e.ErrorBoundary,contentEditable:c=e.contentEditable,children:l}=a,u=function(e,t){let[n,r]=(0,h.useMemo)(()=>[t=>e.registerDecoratorListener(t),()=>e.getDecorators()],[e]),i=(0,h.useSyncExternalStore)(n,r,r);return(0,h.useMemo)(()=>{let n=[];for(let r in i){let a=e.getElementByKey(r);if(a!==null){let o=(0,_.jsx)(t,{onError:t=>{e._onError(t)},children:(0,_.jsx)(h.Suspense,{fallback:null,children:i[r]})});n.push((0,v.createPortal)(o,a,r))}}return n},[t,i,e])}(r,s),d=(0,h.useMemo)(()=>i.map((e,t)=>(0,_.jsx)(s,{onError:e=>{r._onError(e)},children:(0,_.jsx)(h.Suspense,{fallback:null,children:e})},t)),[s]);return(0,_.jsx)(t.si.Provider,{value:n,children:(0,_.jsxs)(o,{context:n,contentEditable:c,children:[l,d,u]})})}}function w({contentEditable:e,children:t}){return(0,_.jsxs)(_.Fragment,{children:[e,t]})}var T=t.hr({build(e,t,n){n.getPeer(r.M.name)||function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(321,[...n.getDirectDependentNames()].join(` `));let i=[e,{getTheme:()=>e._config.theme}];return{Component:C(t,i),context:i}},config:{EditorChildrenComponent:w,ErrorBoundary:r.N,contentEditable:(0,_.jsx)(r.P,{}),decorators:[]},mergeConfig(e,n){let r=t.d(e,n);return n.decorators&&(r.decorators=n.decorators.length>0?[...e.decorators,...n.decorators]:e.decorators),r},name:`@lexical/react/React`,peerDependencies:[t.ir(r.M.name)]});function E({extension:e,children:n,contentEditable:i}){let a=(0,h.useMemo)(()=>r.K.fromExtensions([r.M,t.ei(T,i===void 0?{}:{contentEditable:i}),e]).buildEditor(),[i,e]);(0,h.useEffect)(()=>{let e=!1;return queueMicrotask(()=>{e=!0}),()=>{e&&a.dispose()}},[a]);let{Component:o}=r.q(a,T).output;return(0,_.jsx)(o,{children:n})}var D={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`},O={bgColor:`#fff`,bgColorIcon:``,blockType:`paragraph`,canRedo:!1,canUndo:!1,codeLanguage:``,codeTheme:``,elementFormat:`left`,fontColor:`#000`,fontColorIcon:``,fontFamily:`Arial`,fontSize:`15px`,fontSizeInputValue:`15`,isBold:!1,isCode:!1,isHighlight:!1,isImageCaption:!1,isItalic:!1,isLink:!1,isRTL:!1,isStrikethrough:!1,isSubscript:!1,isSuperscript:!1,isUnderline:!1,isLowercase:!1,isUppercase:!1,isCapitalize:!1,rootType:`root`,listStartNumber:null},k=(0,h.createContext)(void 0),A=({children:e})=>{let[t,n]=(0,h.useState)(O),r=t.fontSize,i=(0,h.useCallback)((e,t)=>{n(n=>({...n,[e]:t}))},[]);(0,h.useEffect)(()=>{i(`fontSizeInputValue`,r.slice(0,-2))},[r,i]);let a=(0,h.useMemo)(()=>({toolbarState:t,updateToolbarState:i}),[t,i]);return(0,_.jsx)(k.Provider,{value:a,children:e})},j=()=>{let e=(0,h.useContext)(k);if(e===void 0)throw Error(`useToolbarState must be used within a ToolbarProvider`);return e},M=e=>e.querySelector(`button, a[href], input, select, textarea, details, summary [tabindex], [contenteditable]`),N=e=>{let t=M(e);return t?.focus(),t},P=e=>`pointerId`in e&&`pointerType`in e?e.pointerId===-1&&e.pointerType===``:e?.detail===0,F=Object.freeze({NORMAL:t.yr?`⌘+Opt+0`:`Ctrl+Alt+0`,HEADING1:t.yr?`⌘+Opt+1`:`Ctrl+Alt+1`,HEADING2:t.yr?`⌘+Opt+2`:`Ctrl+Alt+2`,HEADING3:t.yr?`⌘+Opt+3`:`Ctrl+Alt+3`,NUMBERED_LIST:t.yr?`⌘+Shift+7`:`Ctrl+Shift+7`,BULLET_LIST:t.yr?`⌘+Shift+8`:`Ctrl+Shift+8`,CHECK_LIST:t.yr?`⌘+Shift+9`:`Ctrl+Shift+9`,CODE_BLOCK:t.yr?`⌘+Opt+C`:`Ctrl+Alt+C`,QUOTE:t.yr?`⌃+Shift+Q`:`Ctrl+Shift+Q`,ADD_COMMENT:t.yr?`⌘+Opt+M`:`Ctrl+Alt+M`,INCREASE_FONT_SIZE:t.yr?`⌘+Shift+.`:`Ctrl+Shift+.`,DECREASE_FONT_SIZE:t.yr?`⌘+Shift+,`:`Ctrl+Shift+,`,INSERT_CODE_BLOCK:t.yr?`⌘+Shift+C`:`Ctrl+Shift+C`,STRIKETHROUGH:t.yr?`⌘+Shift+X`:`Ctrl+Shift+X`,LOWERCASE:t.yr?`⌃+Shift+1`:`Ctrl+Shift+1`,UPPERCASE:t.yr?`⌃+Shift+2`:`Ctrl+Shift+2`,CAPITALIZE:t.yr?`⌃+Shift+3`:`Ctrl+Shift+3`,CENTER_ALIGN:t.yr?`⌘+Shift+E`:`Ctrl+Shift+E`,JUSTIFY_ALIGN:t.yr?`⌘+Shift+J`:`Ctrl+Shift+J`,LEFT_ALIGN:t.yr?`⌘+Shift+L`:`Ctrl+Shift+L`,RIGHT_ALIGN:t.yr?`⌘+Shift+R`:`Ctrl+Shift+R`,SUBSCRIPT:t.yr?`⌘+,`:`Ctrl+,`,SUPERSCRIPT:t.yr?`⌘+.`:`Ctrl+.`,INDENT:t.yr?`⌘+]`:`Ctrl+]`,OUTDENT:t.yr?`⌘+[`:`Ctrl+[`,CLEAR_FORMATTING:t.yr?`⌘+\\`:`Ctrl+\\`,REDO:t.yr?`⌘+Shift+Z`:`Ctrl+Y`,UNDO:t.yr?`⌘+Z`:`Ctrl+Z`,BOLD:t.yr?`⌘+B`:`Ctrl+B`,ITALIC:t.yr?`⌘+I`:`Ctrl+I`,UNDERLINE:t.yr?`⌘+U`:`Ctrl+U`,INSERT_LINK:t.yr?`⌘+K`:`Ctrl+K`,FIND:t.yr?`⌘+F`:`Ctrl+F`}),I={ctrlKey:!t.yr,metaKey:t.yr};function L(e){let{code:n}=e;return(n===`Numpad0`||n===`Digit0`)&&t.Cn(e,{...I,altKey:!0})}function R(e){let{code:n}=e;if(!n)return!1;let r=n[n.length-1];return[`1`,`2`,`3`].includes(r)&&t.Cn(e,{...I,altKey:!0})}function z(e){let{code:n}=e;return(n===`Numpad7`||n===`Digit7`)&&t.Cn(e,{...I,shiftKey:!0})}function B(e){let{code:n}=e;return(n===`Numpad8`||n===`Digit8`)&&t.Cn(e,{...I,shiftKey:!0})}function ee(e){let{code:n}=e;return(n===`Numpad9`||n===`Digit9`)&&t.Cn(e,{...I,shiftKey:!0})}function te(e){let{code:n}=e;return n===`KeyC`&&t.Cn(e,{...I,altKey:!0})}function V(e){let{code:n}=e;return n===`KeyQ`&&t.Cn(e,{ctrlKey:!0,shiftKey:!0})}function ne(e){let{code:n}=e;return(n===`Numpad1`||n===`Digit1`)&&t.Cn(e,{ctrlKey:!0,shiftKey:!0})}function re(e){let{code:n}=e;return(n===`Numpad2`||n===`Digit2`)&&t.Cn(e,{ctrlKey:!0,shiftKey:!0})}function ie(e){let{code:n}=e;return(n===`Numpad3`||n===`Digit3`)&&t.Cn(e,{ctrlKey:!0,shiftKey:!0})}function H(e){let{code:n}=e;return n===`KeyX`&&t.Cn(e,{...I,shiftKey:!0})}function ae(e){let{code:n}=e;return n===`BracketRight`&&t.Cn(e,I)}function oe(e){let{code:n}=e;return n===`BracketLeft`&&t.Cn(e,I)}function se(e){let{code:n}=e;return n===`KeyE`&&t.Cn(e,{...I,shiftKey:!0})}function ce(e){let{code:n}=e;return n===`KeyL`&&t.Cn(e,{...I,shiftKey:!0})}function le(e){let{code:n}=e;return n===`KeyR`&&t.Cn(e,{...I,shiftKey:!0})}function ue(e){let{code:n}=e;return n===`KeyJ`&&t.Cn(e,{...I,shiftKey:!0})}function de(e){let{code:n}=e;return n===`Comma`&&t.Cn(e,I)}function fe(e){let{code:n}=e;return n===`Period`&&t.Cn(e,I)}function pe(e){let{code:n}=e;return n===`KeyC`&&t.Cn(e,{...I,shiftKey:!0})}function me(e){let{code:n}=e;return n===`Period`&&t.Cn(e,{...I,shiftKey:!0})}function U(e){let{code:n}=e;return n===`Comma`&&t.Cn(e,{...I,shiftKey:!0})}function he(e){let{code:n}=e;return n===`Backslash`&&t.Cn(e,I)}function ge(e){let{code:n}=e;return n===`KeyK`&&t.Cn(e,I)}function _e(e){let{code:n}=e;return n===`KeyF`&&t.Cn(e,I)}function ve(e){let{code:n}=e;return n===`F3`&&t.Cn(e,{})||n===`KeyG`&&t.Cn(e,I)}function ye(e){let{code:n}=e;return n===`F3`&&t.Cn(e,{shiftKey:!0})||n===`KeyG`&&t.Cn(e,{...I,shiftKey:!0})}function be(e){let{code:n}=e;return n===`KeyM`&&t.Cn(e,{...I,altKey:!0})}function xe(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Se(e,n){let r=e;for(let i=t.f(e,n);i&&(qe(i.origin)||t.On(i.origin));i=i.getAdjacentCaret())r=i.origin;return r}function Ce(e){return Se(e,`previous`)}function we(e){return Se(e,`next`)}function Te(e){let n=Ce(e),r=we(e),i=n;for(;i!==null;){if(qe(i)){let e=t.St(i.getTextContent());if(e!==null)return e}if(i===r)break;i=i.getNextSibling()}let a=n.getParent();if(t.vt(a)){let e=a.getDirection();if(e===`ltr`||e===`rtl`)return e}return null}function Ee(e,n){let r=null,i=null,a=e,o=n,s=e.getTextContent();for(;;){if(o===0){let e=a.getPreviousSibling();if(e===null){a=null;break}if(qe(e)||t.On(e)||t._r(e)||xe(167),a=e,t._r(a)){r={node:a,offset:1};break}o=Math.max(0,a.getTextContentSize()-1),s=a.getTextContent()}else o--;let e=s[o];qe(a)&&e!==` `&&(i={node:a,offset:o})}if(i!==null)return i;let c=null;if(n<e.getTextContentSize())qe(e)&&(c=e.getTextContent()[n]);else{let t=e.getNextSibling();qe(t)&&(c=t.getTextContent()[0])}if(c!==null&&c!==` `)return r;{let i=function(e,n){let r=e,i=n,a=e.getTextContent(),o=e.getTextContentSize();for(;;){if(!qe(r)||i===o){if(r=r.getNextSibling(),r===null||t._r(r))return null;qe(r)&&(i=0,a=r.getTextContent(),o=r.getTextContentSize())}if(qe(r)){if(a[i]!==` `)return{node:r,offset:i};i++}}}(e,n);return i===null?r:i}}function De(e){let n=we(e);return t._r(n)&&xe(168),n}function Oe(e){let n=[];return t.Kn(e,{linebreak:()=>n.push(t.Bt()),tab:()=>n.push(t.kr()),text:e=>n.push(Ke(e))}),n}function ke(e,t,n){if(!Number.isInteger(t)||t<=0)return!1;let r=e.getTextContent(),i=/^ +/.exec(r);if(!i)return!1;let a=Math.min(t,i[0].length),o=e.getKey(),s=n.anchor.key===o&&n.anchor.type===`text`?n.anchor.offset:null,c=n.focus.key===o&&n.focus.type===`text`?n.focus.offset:null;return e.spliceText(0,a,``),s!==null&&n.anchor.set(o,Math.max(0,s-a),`text`),c!==null&&n.focus.set(o,Math.max(0,c-a),`text`),!0}var Ae=`javascript`;function je(e,n){for(let r of e.childNodes)if(t.Sn(r)&&r.tagName===n||je(r,n))return!0;return!1}var Me=`data-language`,Ne=`data-highlight-language`,Pe=`data-theme`,Fe=class e extends t.m{__language;__theme;__isSyntaxHighlightSupported;static getType(){return`code`}static clone(t){return new e(t.__language,t.__key)}constructor(e,t){super(t),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let n=t.qt().createElement(`code`);t.Vr(n,e.theme.code),n.setAttribute(`spellcheck`,`false`);let r=this.getLanguage();r&&(n.setAttribute(Me,r),this.getIsSyntaxHighlightSupported()&&n.setAttribute(Ne,r));let i=this.getTheme();i&&n.setAttribute(Pe,i);let a=this.getStyle();return a&&t.bt(n.style,a),n}updateDOM(e,n,r){let i=this.__language,a=e.__language;i?i!==a&&n.setAttribute(Me,i):a&&n.removeAttribute(Me);let o=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&a?o&&i?i!==a&&n.setAttribute(Ne,i):n.removeAttribute(Ne):o&&i&&n.setAttribute(Ne,i);let s=this.__theme,c=e.__theme;s?s!==c&&n.setAttribute(Pe,s):c&&n.removeAttribute(Pe);let l=this.__style,u=e.__style;return l!==u&&t.bt(n.style,l,u),!1}exportDOM(e){let n=t.qt().createElement(`pre`);t.Vr(n,e._config.theme.code),n.setAttribute(`spellcheck`,`false`);let r=this.getLanguage();r&&(n.setAttribute(Me,r),this.getIsSyntaxHighlightSupported()&&n.setAttribute(Ne,r));let i=this.getTheme();i&&n.setAttribute(Pe,i);let a=this.getStyle();return a&&t.bt(n.style,a),{element:n}}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||je(e,`BR`))?{conversion:Le,priority:1}:null,div:()=>({conversion:Re,priority:1}),pre:()=>({conversion:Le,priority:0}),table:e=>He(e)?{conversion:ze,priority:3}:null,td:e=>{let t=e,n=t.closest(`table`);return t.classList.contains(`js-file-line`)||n&&He(n)?{conversion:Be,priority:3}:null},tr:e=>{let t=e.closest(`table`);return t&&He(t)?{conversion:Be,priority:3}:null}}}static importJSON(e){return Ie().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,n=!0){if(!r.Y(t.s(),`@lexical/code`)){let t=Ue(e);if(t)return t}let{anchor:i,focus:a}=e,o=(i.isBefore(a)?i:a).getNode();if(t.Jt(o)){let e=Ce(o),n=[];for(;;)if(t.On(e))n.push(t.kr()),e=e.getNextSibling();else{if(!qe(e))break;{let t=0,r=e.getTextContent(),i=e.getTextContentSize();for(;t<i&&r[t]===` `;)t++;if(t!==0&&n.push(Ke(` `.repeat(t))),t!==i)break;e=e.getNextSibling()}}let r=o.splitText(i.offset)[0],a=i.offset===0?0:1,s=r.getIndexWithinParent()+a,c=o.getParentOrThrow(),l=[t.Bt(),...n];c.splice(s,0,l);let u=n[n.length-1];u?u.select():i.offset===0?r.selectPrevious():r.getNextSibling().selectNext(0,0)}if(W(o)){let{offset:n}=e.anchor;o.splice(n,0,[t.Bt()]),o.select(n+1,n+1)}return null}canIndent(){return!1}collapseAtStart(){let e=t.Ar();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}setLanguage(e){let t=this.getWritable();return t.__language=e||void 0,t}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){let t=this.getWritable();return t.__isSyntaxHighlightSupported=e,t}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){let t=this.getWritable();return t.__theme=e||void 0,t}getTheme(){return this.getLatest().__theme}};function Ie(e,n){return t.k(Fe).setLanguage(e).setTheme(n)}function W(e){return e instanceof Fe}function Le(e){return{node:Ie(e.getAttribute(Me))}}function Re(e){let t=e,n=Ve(t);return n||function(e){let t=e.parentElement;for(;t!==null;){if(Ve(t))return!0;t=t.parentElement}return!1}(t)?{node:n?Ie():null}:{node:null}}function ze(){return{node:Ie()}}function Be(){return{node:null}}function Ve(e){return e.style.fontFamily.match(`monospace`)!==null}function He(e){return e.classList.contains(`js-file-line-container`)}function Ue(e){let{anchor:n}=e;if(e.isCollapsed()&&n.type===`element`){let e=n.getNode();if(W(e)){let r=e.getChildrenSize();if(r>=2&&n.offset===r){let n=e.getLastChild();if(t._r(n)&&t._r(n.getPreviousSibling())){let n=t.Ar();return e.splice(r-2,2,[]).insertAfter(n,!1),n.select(),n}}}}return null}var We=class e extends t.Wt{__highlightType;constructor(e=``,t,n){super(e,n),this.__highlightType=t}static getType(){return`code-highlight`}static clone(t){return new e(t.__text,t.__highlightType||void 0,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__highlightType=e.__highlightType}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){let t=this.getWritable();return t.__highlightType=e||void 0,t}canHaveFormat(){return!1}createDOM(e){let n=super.createDOM(e);return t.Vr(n,Ge(e.theme,this.__highlightType)),n}updateDOM(e,n,r){let i=super.updateDOM(e,n,r),a=Ge(r.theme,e.__highlightType),o=Ge(r.theme,this.__highlightType);return a!==o&&(a&&t.Pt(n,a),o&&t.Vr(n,o)),i}static importJSON(e){return Ke().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return Ie()}};function Ge(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function Ke(e=``,n){return t.o(new We(e,n))}function qe(e){return e instanceof We}r.y.tag(`tr`,`td`),r.y.tag(`pre`),r.y.tag(`code`),r.y.tag(`div`),r.y.tag(`div`,`br`),r.y.tag(`div`),r.y.tag(`table`).classAll(`js-file-line-container`),r.y.tag(`td`).classAll(`js-file-line`);function Je(e){if(!t.bn(e))return!1;let n=e.anchor.getNode(),r=W(n)?n:n.getParent(),i=e.focus.getNode(),a=W(i)?i:i.getParent();return W(r)&&r.is(a)}function Ye(e){let n=e.getNodes(),r=[];if(n.length===1&&W(n[0]))return r;let i=[];for(let e=0;e<n.length;e++){let a=n[e];qe(a)||t.On(a)||t._r(a)||xe(169),t._r(a)?i.length>0&&(r.push(i),i=[]):i.push(a)}if(i.length>0){let n=e.isBackward()?e.anchor:e.focus,a=t.dr(i[0].getKey(),0,`text`);n.is(a)||r.push(i)}return r}function Xe(e,n){let r=t.tt();if(!t.bn(r)||!Je(r))return!1;let i=Ye(r),a=i.length;if(a===0&&r.isCollapsed())return e===t.on&&r.insertNodes([t.kr()]),!0;if(a===0&&e===t.on&&r.getTextContent()===`
2
2
  `){let e=t.kr(),n=t.Bt(),i=r.isBackward()?`previous`:`next`;return r.insertNodes([e,n]),t.en(t.pn(t.O(t.gt(e,`next`,0),t.wr(t.f(n,`next`))),i)),!0}for(let o=0;o<a;o++){let a=i[o];if(a.length>0){let i=a[0];if(o===0&&(i=Ce(i)),e===t.on){let e=t.kr();if(i.insertBefore(e),o===0){let n=r.isBackward()?`focus`:`anchor`,a=t.dr(i.getKey(),0,`text`);r[n].is(a)&&r[n].set(e.getKey(),0,`text`)}}else t.On(i)?i.remove():n!==void 0&&qe(i)&&ke(i,n,r)}}return!0}function Ze(e,n){let r=t.tt();if(!t.bn(r))return!1;let{anchor:i,focus:a}=r,o=i.offset,s=a.offset,c=i.getNode(),l=a.getNode(),u=e===t.Cr;if(!Je(r)||!qe(c)&&!t.On(c)||!qe(l)&&!t.On(l))return!1;if(!n.altKey){if(r.isCollapsed()){let e=c.getParentOrThrow();if(u&&o===0&&c.getPreviousSibling()===null){if(e.getPreviousSibling()===null)return e.selectPrevious(),n.preventDefault(),!1}else if(!u&&o===c.getTextContentSize()&&c.getNextSibling()===null&&e.getNextSibling()===null)return e.selectNext(),n.preventDefault(),!1}return!1}let d,f;if(c.isBefore(l)?(d=Ce(c),f=we(l)):(d=Ce(l),f=we(c)),d==null||f==null)return!1;let p=d.getNodesBetween(f);for(let e=0;e<p.length;e++){let n=p[e];if(!qe(n)&&!t.On(n)&&!t._r(n))return!1}n.preventDefault(),n.stopPropagation();let m=u?d.getPreviousSibling():f.getNextSibling();if(!t._r(m))return!0;let h=u?m.getPreviousSibling():m.getNextSibling();if(h==null)return!0;let g=(qe(h)||t.On(h)||t._r(h)?u?Ce(h):we(h):null)??h;return m.remove(),p.forEach(e=>e.remove()),e===t.Cr?(p.forEach(e=>g.insertBefore(e)),g.insertBefore(m)):(g.insertAfter(m),g=m,p.forEach(e=>{g.insertAfter(e),g=e})),r.setTextNodeRange(c,o,l,s),!0}function Qe(e,n){let r=t.tt();if(!t.bn(r))return!1;let{anchor:i,focus:a}=r,o=i.getNode(),s=a.getNode(),c=e===t.br;if(!Je(r)||!qe(o)&&!t.On(o)||!qe(s)&&!t.On(s))return!1;let l=s,u=Te(l)===`rtl`?!c:c,d=i.key,f=i.offset,p=i.type;if(u){let e=Ee(l,a.offset);if(e!==null){let{node:n,offset:i}=e;t._r(n)?n.selectNext(0,0):r.setTextNodeRange(n,i,n,i)}else l.getParentOrThrow().selectStart()}else De(l).select();return n.shiftKey&&r.anchor.set(d,f,p),n.preventDefault(),n.stopPropagation(),!0}function $e(e,r,i){return t.Yn(...i?[e.registerCommand(t.Qn,e=>!e.altKey&&n.p(W,e),1),e.registerCommand(t.Dn,e=>n.p(W,e),1),e.registerCommand(t.Cr,e=>!e.altKey&&n.l(W,e),1),e.registerCommand(t.ur,e=>n.l(W,e),1)]:[],e.registerCommand(t.zn,n=>{let r=function(e){let n=t.tt();if(!t.bn(n)||!Je(n))return null;let r=e?t.pr:t.on,i=e?t.pr:t.Pn,a=n.anchor,o=n.focus;if(a.is(o))return i;let s=Ye(n);if(s.length!==1)return r;let c=s[0],l,u;c.length===0&&xe(285),n.isBackward()?(l=o,u=a):(l=a,u=o);let d=Ce(c[0]),f=we(c[0]),p=t.dr(d.getKey(),0,`text`),m=t.dr(f.getKey(),f.getTextContentSize(),`text`);return l.isBefore(p)||m.isBefore(u)?r:p.isBefore(l)||u.isBefore(m)?i:r}(n.shiftKey);return r!==null&&(n.preventDefault(),e.dispatchCommand(r,void 0),!0)},1),e.registerCommand(t.Pn,()=>!!Je(t.tt())&&(t.W([t.kr()]),!0),1),e.registerCommand(t.on,()=>Xe(t.on),1),e.registerCommand(t.pr,()=>Xe(t.pr,r),1),e.registerCommand(t.Cr,e=>{let n=t.tt();if(!t.bn(n))return!1;let{anchor:r}=n,i=r.getNode();if(!Je(n))return!1;let a=i.getParent();return n.isCollapsed()&&r.offset===0&&i.getPreviousSibling()===null&&W(a)&&a.getPreviousSibling()===null?(e.preventDefault(),!0):Ze(t.Cr,e)},1),e.registerCommand(t.Qn,e=>{let n=t.tt();if(!t.bn(n))return!1;let{anchor:r}=n,i=r.getNode();return!!Je(n)&&(n.isCollapsed()&&r.offset===i.getTextContentSize()&&i.getNextSibling()===null&&W(i.getParentOrThrow())&&i.getParentOrThrow().getNextSibling()===null?(e.preventDefault(),!0):Ze(t.Qn,e))},1),e.registerCommand(t.br,e=>Qe(t.br,e),1),e.registerCommand(t.sr,e=>Qe(t.sr,e),1))}e.t(((e,t)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){n||={};var r,a;switch(i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return`none`},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,`gi`),``),e.classList.add(`language-`+n)},currentScript:function(){if(typeof document>`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:a};e.Prism=i;function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`&quot;`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`};function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(!(!n.hasOwnProperty(f)||!n[f])){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,C=c;S!==t.tail&&!(d&&C>=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T=1,E;if(v){if(E=o(x,C,e,_),!E||E.index>=e.length)break;var D=E.index,O=E.index+E[0].length,k=C;for(k+=S.value.length;D>=k;)S=S.next,k+=S.value.length;if(k-=S.value.length,C=k,S.value instanceof a)continue;for(var A=S;A!==t.tail&&(k<O||typeof A.value==`string`);A=A.next)T++,k+=A.value.length;T--,w=e.slice(C,k),E.index-=C}else if(E=o(x,0,w,_),!E)continue;var D=E.index,j=E[0],M=w.slice(0,D),N=w.slice(D+j.length),P=C+w.length;d&&P>d.reach&&(d.reach=P);var F=S.prev;M&&(F=l(t,F,M),C+=M.length),u(t,F,T);var I=new a(f,g?i.tokenize(j,g):j,y,j);if(S=l(t,F,I),N&&l(t,S,N),T>1){var L={cause:f+`,`+m,reach:P};s(e,t,n,S.prev,C,L),d&&L.reach>d.reach&&(d.reach=L.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function d(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}if(!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()},!1)),i;var f=i.util.currentScript();f&&(i.filename=f.src,f.hasAttribute(`data-manual`)&&(i.manual=!0));function p(){i.manual||i.highlightAll()}if(!i.manual){var m=document.readyState;m===`loading`||m===`interactive`&&f&&f.defer?document.addEventListener(`DOMContentLoaded`,p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});t!==void 0&&t.exports&&(t.exports=n),typeof global<`u`&&(global.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(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(e,t){n.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:n.languages[t]},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(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(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$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),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*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),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)`,`javascript`)),n.languages.js=n.languages.javascript,(function(){if(n===void 0||typeof document>`u`)return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=`Loading…`,t=function(e,t){return`✖ Error `+e+` while fetching file: `+t},r=`✖ Error: File does not exist or is empty`,i={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},a=`data-src-status`,o=`loading`,s=`loaded`,c=`failed`,l=`pre[data-src]:not([`+a+`="`+s+`"]):not([`+a+`="`+o+`"])`;function u(e,n,i){var a=new XMLHttpRequest;a.open(`GET`,e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?n(a.responseText):a.status>=400?i(t(a.status,a.statusText)):i(r))},a.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||``);if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}n.hooks.add(`before-highlightall`,function(e){e.selector+=`, `+l}),n.hooks.add(`before-sanity-check`,function(t){var r=t.element;if(r.matches(l)){t.code=``,r.setAttribute(a,o);var f=r.appendChild(document.createElement(`CODE`));f.textContent=e;var p=r.getAttribute(`data-src`),m=t.language;if(m===`none`){var h=(/\.(\w+)$/.exec(p)||[,`none`])[1];m=i[h]||h}n.util.setLanguage(f,m),n.util.setLanguage(r,m);var g=n.plugins.autoloader;g&&g.loadLanguages(m),u(p,function(e){r.setAttribute(a,s);var t=d(r.getAttribute(`data-range`));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],c=t[1]==null?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join(`
3
3
  `),r.hasAttribute(`data-start`)||r.setAttribute(`data-start`,String(o+1))}f.textContent=e,n.highlightElement(f)},function(e){r.setAttribute(a,c),f.textContent=e})}}),n.plugins.fileHighlight={highlight:function(e){for(var t=(e||document).querySelectorAll(l),r=0,i;i=t[r++];)n.highlightElement(i)}};var f=!1;n.fileHighlight=function(){f||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()}))(),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$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),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*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),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)`,`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(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,(function(e){function t(e){return e=e.replace(/<inner>/g,function(){return`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`}),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var n="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",r=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,function(){return n}),i=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+r+i+`(?:`+r+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+r+i+`)(?:`+r+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+r+`)`+i+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+r+`$`),inside:{"table-header":{pattern:RegExp(n),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},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:t(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(`(~~?)(?:(?!~)<inner>)+\\2`),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:t(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach(function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add(`after-tokenize`,function(e){if(e.language!==`markdown`&&e.language!==`md`)return;function t(e){if(!(!e||typeof e==`string`))for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i.type!==`code`){t(i.content);continue}var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`);s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase();var c=`language-`+s;o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}}t(e.tokens)}),e.hooks.add(`wrap`,function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],o=/language-(.+)/.exec(a);if(o){n=o[1];break}}var s=e.languages[n];if(s)t.content=e.highlight(c(t.content),s,n);else if(n&&n!==`none`&&e.plugins.autoloader){var l=`md-`+new Date().valueOf()+`-`+Math.floor(Math.random()*0x2386f26fc10000);t.attributes.id=l,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(l);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,`gi`),o={amp:`&`,lt:`<`,gt:`>`,quot:`"`},s=String.fromCodePoint||String.fromCharCode;function c(e){var t=e.replace(a,``);return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){return t=t.toLowerCase(),t[0]===`#`?s(t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1))):o[t]||e}),t}e.languages.md=e.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(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(Prism),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:/[;[\]()`,.]/},(function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}})(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python[`string-interpolation`].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,(function(e){for(var t=`\\/\\*(?:[^*/]|\\*(?!\\/)|\\/(?!\\*)|<self>)*\\*\\/`,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return`[^\\s\\S]`}),e.languages.rust={comment:[{pattern:RegExp(`(^|[^\\\\])`+t),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust[`closure-params`].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ ]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift[`string-literal`].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),lookbehind:!0,inside:r.inside},{pattern:RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)`+n+`[A-Z]\\w*\\b`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(`(\\bimport\\s+)`+n+`(?:[A-Z]\\w*|\\*)(?=\\s*;)`),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(`(\\bimport\\s+static\\s+)`+n+`(?:\\w+|\\*)(?=\\s*;)`),lookbehind:!0,alias:`static`,inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism),(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,function(){return n})+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])})(Prism),(function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":`-`,"deleted-arrow":`<`,"inserted-sign":`+`,"inserted-arrow":`>`,unchanged:` `,diff:`!`};Object.keys(t).forEach(function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),n===`diff`&&i.push(`bold`),e.languages.diff[n]={pattern:RegExp(`^(?:[`+r+`].*(?:\r
4
4
  ?|
5
5
  |(?![\\s\\S])))+`,`m`),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})})(Prism),Prism.languages.go=Prism.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore(`go`,`string`,{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go[`class-name`];var et=globalThis.Prism||window.Prism,tt={c:`C`,clike:`C-like`,cpp:`C++`,css:`CSS`,go:`Go`,html:`HTML`,java:`Java`,js:`JavaScript`,markdown:`Markdown`,objc:`Objective-C`,plain:`Plain Text`,powershell:`PowerShell`,py:`Python`,rust:`Rust`,sql:`SQL`,swift:`Swift`,typescript:`TypeScript`,xml:`XML`},nt={cpp:`cpp`,golang:`go`,java:`java`,javascript:`js`,md:`markdown`,plaintext:`plain`,python:`py`,text:`plain`,ts:`typescript`};function rt(e){return nt[e]||e}function it(e){let t=rt(e);return tt[t]||t}function at(){let e=[];for(let[t,n]of Object.entries(tt))e.push([t,n]);return e}function ot(e){let t=function(e){let t=/^diff-([\w-]+)/i.exec(e);return t?t[1]:null}(e)||e;try{return!!t&&et.languages.hasOwnProperty(t)}catch{return!1}}async function st(e,t,n){}function ct(e){return typeof e==`string`?e:Array.isArray(e)?e.map(ct).join(``):ct(e.content)}function lt(e,t){let n=/^diff-([\w-]+)/i.exec(t),r=e.getTextContent(),i=et.tokenize(r,et.languages[n?`diff`:t]);return n&&(i=function(e,t){let n=t,r=et.languages[n],i={tokens:e},a=et.languages.diff.PREFIXES;for(let e of i.tokens){if(typeof e==`string`||!(e.type in a)||!Array.isArray(e.content))continue;let t=e.type,n=0,i=()=>(n++,new et.Token(`prefix`,a[t],t.replace(/^(\w+).*/,`$1`))),o=e.content.filter(e=>typeof e==`string`||e.type!==`prefix`),s=e.content.length-o.length,c=et.tokenize(ct(o),r);c.unshift(i());let l=/\r\n|\n/g,u=e=>{let t=[];l.lastIndex=0;let r,a=0;for(;n<s&&(r=l.exec(e));){let n=r.index+r[0].length;t.push(e.slice(a,n)),a=n,t.push(i())}if(t.length!==0)return a<e.length&&t.push(e.slice(a)),t},d=e=>{for(let t=0;t<e.length&&n<s;t++){let n=e[t];if(typeof n==`string`){let r=u(n);r&&(e.splice(t,1,...r),t+=r.length-1)}else if(typeof n.content==`string`){let e=u(n.content);e&&(n.content=e)}else Array.isArray(n.content)?d(n.content):d([n.content])}};d(c),n<s&&c.push(i()),e.content=c}return i.tokens}(i,n[1])),ut(i)}function ut(e,n){let r=[];for(let i of e)if(typeof i==`string`)t.Kn(i,{linebreak:()=>r.push(t.Bt()),tab:()=>r.push(t.kr()),text:e=>r.push(Ke(e,n))});else{let{content:e,alias:t}=i;typeof e==`string`?r.push(...ut([e],i.type===`prefix`&&typeof t==`string`?t:i.type)):Array.isArray(e)&&r.push(...ut(e,i.type===`unchanged`?void 0:i.type))}return r}var dt={$tokenize(e,t){let n=t||this.defaultLanguage;return n===null?Oe(e.getTextContent()):lt(e,n)},defaultLanguage:Ae,tokenize(e,t){let n=this.defaultLanguage;return et.tokenize(e,et.languages[t||``]||(n===null?void 0:et.languages[n]))}};function ft(e,n,r,i){let a=i.getParent();W(a)?mt(e,n,r,a):qe(i)&&i.replace(t.D(i.__text))}function pt(e,n){let r=n.getElementByKey(e.getKey());if(r===null)return;let i=e.getChildren(),a=i.length;if(a===r.__cachedChildrenLength)return;r.__cachedChildrenLength=a;let o=`1`,s=1;for(let e=0;e<a;e++)t._r(i[e])&&(o+=`
6
- `+ ++s);r.setAttribute(`data-gutter`,o)}function mt(e,n,r,i){let{nodesCurrentlyHighlighting:a}=r,o=i.getKey();i.getLanguage()===void 0&&n.defaultLanguage!==null&&i.setLanguage(n.defaultLanguage);let s=i.getLanguage()||n.defaultLanguage;if(s){if(!ot(s))return i.getIsSyntaxHighlightSupported()&&i.setIsSyntaxHighlightSupported(!1),void st();i.getIsSyntaxHighlightSupported()||i.setIsSyntaxHighlightSupported(!0)}else i.getIsSyntaxHighlightSupported()&&i.setIsSyntaxHighlightSupported(!1);a.has(o)||(a.add(o),r.didTransform||(r.didTransform=!0,t.it(()=>{r.didTransform=!1,a.clear()})),function(e,n){let r=t.Ht(e);if(!W(r)||!r.isAttached())return;let i=t.tt();if(!t.bn(i))return void n();let a=i.anchor,o=a.offset,s=a.type===`element`&&t._r(r.getChildAtIndex(a.offset-1)),c=0;if(s||(c=o+a.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),n()){if(s)return void a.getNode().select(o,o);r.getChildren().some(e=>{let n=t.Jt(e);if(n||t._r(e)){let t=e.getTextContentSize();if(n&&t>=c)return e.select(c,c),!0;c-=t}return!1})}}(o,()=>{let e=t.Ht(o);if(!W(e)||!e.isAttached())return!1;let r=e.getLanguage()||n.defaultLanguage,a=n.$tokenize(e,r??void 0),{from:s,to:c,nodesForReplacement:l}=function(e,t){let n=0;for(;n<e.length&&ht(e[n],t[n]);)n++;let r=e.length,i=t.length,a=Math.min(r,i)-n,o=0;for(;o<a;)if(o++,!ht(e[r-o],t[i-o])){o--;break}let s=n,c=r-o;return{from:s,nodesForReplacement:t.slice(n,i-o),to:c}}(e.getChildren(),a);return!(s===c&&!l.length)&&(i.splice(s,c-s,l),!0)}))}function ht(e,n){return qe(e)&&qe(n)&&e.__text===n.__text&&e.__highlightType===n.__highlightType||t.On(e)&&t.On(n)||t._r(e)&&t._r(n)}function gt(e,n){let r=[];!0!==e._headless&&r.push(e.registerMutationListener(Fe,n=>{e.read(`latest`,()=>{for(let[r,i]of n)if(i!==`destroyed`){let n=t.Ht(r);n!==null&&pt(n,e)}})},{skipInitialization:!1}));let i={didTransform:!1,nodesCurrentlyHighlighting:new Set};return r.push(e.registerNodeTransform(Fe,mt.bind(null,e,n,i)),e.registerNodeTransform(t.Wt,ft.bind(null,e,n,i)),e.registerNodeTransform(We,ft.bind(null,e,n,i))),t.Yn(...r)}function _t(e,n=dt){if(!e.hasNodes([Fe,We]))throw Error(`CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor`);return t.Yn(gt(e,n),$e(e))}var vt=at,yt=it,bt=rt,xt=rt,St=_t;function Ct(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function wt(e){let t=1,n=e.getParent();for(;n!=null;){if(G(n)){let e=n.getParent();if(K(e)){t++,n=e.getParent();continue}Ct(40)}return t}return t}function Tt(e){let t=e.getParent();K(t)||Ct(40);let n=t,r=t;for(;r!==null;)r=r.getParent(),K(r)&&(n=r);return n}function Et(e){let t=[],n=e.getChildren().filter(G);for(let e=0;e<n.length;e++){let r=n[e],i=r.getFirstChild();K(i)?t=t.concat(Et(i)):t.push(r)}return t}function Dt(e){return G(e)&&K(e.getFirstChild())}function Ot(e,t){return G(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function kt(e){let n=t.tt();if(n!==null){let r=n.getNodes();if(t.bn(n)){let[i]=n.getStartEndPoints(),a=i.getNode(),o=a.getParent();if(t.J(a)){let e=a.getFirstChild();if(e)r=e.selectStart().getNodes();else{let e=t.Ar();a.append(e),r=e.select().getNodes()}}else if(Ot(a,r)){let n=qt(e);if(t.J(o)){a.replace(n);let e=Ht();t.vt(a)&&(e.setFormat(a.getFormatType()),e.setIndent(a.getIndent())),n.append(e)}else if(G(a)){let e=a.getParentOrThrow();At(n,e.getChildren()),e.replace(n)}return}}let i=new Set;for(let n=0;n<r.length;n++){let a=r[n];if(t.vt(a)&&a.isEmpty()&&!G(a)&&!i.has(a.getKey())){jt(a,e);continue}let o=t.Dt(a)?a.getParent():G(a)&&a.isEmpty()?a:null;for(;o!=null;){let n=o.getKey();if(K(o)){if(!i.has(n)){let t=qt(e);At(t,o.getChildren()),o.replace(t),i.add(n)}break}{let r=o.getParent();if(t.J(r)&&!i.has(n)){i.add(n),jt(o,e);break}o=r}}}}}function At(e,t){e.splice(e.getChildrenSize(),0,t)}function jt(e,n){if(K(e))return e;let r=e.getPreviousSibling(),i=e.getNextSibling(),a=Ht(),o;if(At(a,e.getChildren()),K(r)&&n===r.getListType())r.append(a),K(i)&&n===i.getListType()&&(At(r,i.getChildren()),i.remove()),o=r;else if(K(i)&&n===i.getListType())i.getFirstChildOrThrow().insertBefore(a),o=i;else{let t=qt(n);t.append(a),e.replace(t),o=t}a.setFormat(e.getFormatType()),a.setIndent(e.getIndent());let s=t.tt();return t.bn(s)&&(o.getKey()===s.anchor.key&&s.anchor.set(a.getKey(),s.anchor.offset,`element`),o.getKey()===s.focus.key&&s.focus.set(a.getKey(),s.focus.offset,`element`)),e.remove(),o}function Mt(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&Dt(n)&&Dt(r)&&(Mt(n.getFirstChild(),r.getFirstChild()),r.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function Nt(){let e=t.tt();if(t.bn(e)){let r=new Set,i=e.getNodes(),a=e.anchor.getNode();if(Ot(a,i))r.add(Tt(a));else for(let e=0;e<i.length;e++){let a=i[e];if(t.Dt(a)){let e=n.m(a,Rt);e!=null&&r.add(Tt(e))}}for(let n of r){let r=n,i=Et(n);for(let n of i){let i=t.Ar().setTextStyle(e.style).setTextFormat(e.format);At(i,n.getChildren()),r.insertAfter(i),r=i,n.__key===e.anchor.key&&t.Ct(e.anchor,t.wr(t.Z(i,`next`))),n.__key===e.focus.key&&t.Ct(e.focus,t.wr(t.Z(i,`next`))),n.remove()}n.remove()}}}function Pt(e){let t=e.getListType()!==`check`,n=e.getStart();for(let r of e.getChildren())G(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),K(r.getFirstChild())||n++)}function Ft(e){let n=new Set;if(Dt(e)||n.has(e.getKey()))return;let r=e.getParent(),i=e.getNextSibling(),a=e.getPreviousSibling();if(Dt(i)&&Dt(a)){let t=a.getFirstChild();if(K(t)){t.append(e);let r=i.getFirstChild();K(r)&&(At(t,r.getChildren()),i.remove(),n.add(i.getKey()))}}else if(Dt(i)){let t=i.getFirstChild();if(K(t)){let n=t.getFirstChild();n!==null&&n.insertBefore(e)}}else if(Dt(a)){let t=a.getFirstChild();K(t)&&t.append(e)}else if(K(r)){let n=t.ii(e),o=t.ii(r);n.append(o),o.append(e),a?a.insertAfter(n):i?i.insertBefore(n):r.append(n)}}function It(e){if(Dt(e))return;let n=e.getParent(),r=n?n.getParent():void 0;if(K(r?r.getParent():void 0)&&G(r)&&K(n)){let i=n?n.getFirstChild():void 0,a=n?n.getLastChild():void 0;if(e.is(i))r.insertBefore(e),n.isEmpty()&&r.remove();else if(e.is(a))r.insertAfter(e),n.isEmpty()&&r.remove();else{let i=t.ii(e),a=t.ii(n);i.append(a),e.getPreviousSiblings().forEach(e=>a.append(e));let o=t.ii(e),s=t.ii(n);o.append(s),At(s,e.getNextSiblings()),r.insertBefore(i),r.insertAfter(o),r.replace(e)}}}function Lt(e=!1){let n=t.tt();if(!t.bn(n)||!n.isCollapsed())return!1;let r=n.anchor.getNode(),i=null;if(G(r)&&r.getChildrenSize()===0)i=r;else if(t.Jt(r)){let e=r.getParent();G(e)&&e.getChildren().every(e=>t.Jt(e)&&e.getTextContent().trim()===``)&&(i=e)}if(i===null)return!1;let a=Tt(i),o=i.getParent();K(o)||Ct(40);let s=o.getParent(),c;if(t.J(s))c=t.Ar(),a.insertAfter(c);else{if(!G(s))return!1;c=t.ii(s),s.insertAfter(c)}c.setTextStyle(n.style).setTextFormat(n.format).select();let l=i.getNextSiblings();if(l.length>0){let n=e?function(e,t){return e.getStart()+t.getIndexWithinParent()}(o,i):1,r=t.ii(o).setStart(n);if(G(c)){let e=t.ii(c);e.append(r),c.insertAfter(e)}else c.insertAfter(r);r.append(...l)}return function(e){let t=e;for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!G(e)&&!K(e))break;t=e}t.remove()}(i),!0}var Rt=class extends t.m{__value;__checked;$config(){return this.config(`listitem`,{$transform:e=>{let n=e.getParent();if(K(n))n.getListType()!==`check`&&e.getChecked()!=null&&e.setChecked(void 0);else if(n){let r=e.createParentElementNode();K(r)||Ct(340);let i=[e];for(let n of[`previous`,`next`]){i.reverse();for(let{origin:r}of t.f(e,n)){if(!G(r))break;i.push(r)}}e.insertBefore(r),r.splice(0,0,i),t.J(n)||(t.cn(r,t.cr(t.f(r,`next`)),{$shouldSplit:()=>!1,removeEmptyDestination:!0}),n.isEmpty()&&n.isAttached()&&n.remove())}},extends:t.m,importDOM:t.Pr({li:()=>({conversion:zt,priority:0})})})}constructor(e=1,t=void 0,n){super(n),this.__value=e===void 0?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let n=t.qt().createElement(`li`);return this.updateListItemDOM(null,n,e),n}updateListItemDOM(e,n,r){(function(e,t){let n=t.getParent();!K(n)||n.getListType()!==`check`||K(t.getFirstChild())?(e.removeAttribute(`role`),e.removeAttribute(`tabIndex`),e.removeAttribute(`aria-checked`)):(e.setAttribute(`role`,`checkbox`),e.setAttribute(`tabIndex`,`-1`),e.setAttribute(`aria-checked`,t.getChecked()?`true`:`false`))})(n,this),n.value=this.__value,function(e,n,r){let i=n.list;if(!i)return;let a=i.listitem,o=i.nested&&i.nested.listitem,s=r.getParent(),c=K(s)&&s.getListType()===`check`,l=r.getChecked(),u=r.getChildren().some(e=>K(e)),d=[];i.listitemChecked!==void 0&&d.push(i.listitemChecked),i.listitemUnchecked!==void 0&&d.push(i.listitemUnchecked),o!==void 0&&d.push(...t.Mt(o)),d.length>0&&t.Pt(e,...d);let f=[];if(a!==void 0&&f.push(...t.Mt(a)),c){let e=l?i.listitemChecked:i.listitemUnchecked;e!==void 0&&f.push(e)}o!==void 0&&u&&f.push(...t.Mt(o)),f.length>0&&t.Vr(e,...f)}(n,r.theme,this);let i=e?e.__style:``,a=this.__style;i!==a&&t.bt(n.style,a,i),function(e,n,r){let i=n.__textStyle,a=r?r.__textStyle:``;if(r!==null&&a===i)return;let o=t.ot(i);for(let t in o)e.style.setProperty(`--listitem-marker-${t}`,o[t]);if(a!==``)for(let n in t.ot(a))n in o||e.style.removeProperty(`--listitem-marker-${n}`)}(n,this,e)}updateDOM(e,t,n){let r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let n=this.createDOM(e._config),r=this.getFormatType();r&&(n.style.textAlign=r);let i=this.getDirection();return i&&(n.dir=i),Dt(this)?{after(e){if(t.Sn(e)){let n=e.previousElementSibling;if(t.Sn(n)&&n.nodeName===`LI`){for(;e.firstChild;)n.append(e.firstChild);e.remove()}}return e},element:n}:{element:n}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let n=0;n<e.length;n++){let r=e[n];if(t.vt(r)&&this.canMergeWith(r)){let e=r.getChildren();this.append(...e),r.remove()}else super.append(r)}return this}replace(e,n){if(G(e))return super.replace(e);this.setIndent(0);let r=this.getParentOrThrow();if(!K(r))return e;if(r.__first===this.getKey())r.insertBefore(e);else if(r.__last===this.getKey())r.insertAfter(e);else{let n=t.ii(r),i=this.getNextSibling();for(;i;){let e=i;i=i.getNextSibling(),n.append(e)}r.insertAfter(e),e.insertAfter(n)}let i=this.__key,a=0;if(n&&(t.vt(e)||Ct(139),a=e.getChildrenSize(),e.splice(a,0,this.getChildren())),n&&t.vt(e)){let n=t.tt();if(t.bn(n))for(let t of n.getStartEndPoints())t.key===i&&t.type===`element`&&t.set(e.getKey(),a+t.offset,`element`)}return this.remove(),r.getChildrenSize()===0&&r.remove(),e}insertAfter(e,n=!0){let r=this.getParentOrThrow();if(K(r)||Ct(39),G(e))return super.insertAfter(e,n);let i=this.getNextSiblings();if(r.insertAfter(e,n),i.length!==0){let a=t.ii(r);i.forEach(e=>a.append(e)),e.insertAfter(a,n)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&Dt(t)&&Dt(n)&&(Mt(t.getFirstChild(),n.getFirstChild()),n.remove())}resetOnCopyNodeFrom(e){super.resetOnCopyNodeFrom(e),e.getChecked()&&this.setChecked(!1)}insertNewAfter(e,n=!0){let r=t.ii(this);return this.insertAfter(r,n),r}collapseAtStart(e){if(Dt(this))return!1;let n=this.getParentOrThrow();if(G(n.getParentOrThrow()))return It(this),!0;let r=t.Ar().append(...this.getChildren()),i=this.getNextSiblings();if(i.length>0){let e=t.ii(n);e.append(...i),n.insertAfter(e)}return n.insertAfter(r),this.remove(),n.getChildrenSize()===0&&n.remove(),r.selectStart(),!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e=this.getLatest(),t,n=this.getParent();return K(n)&&(t=n.getListType()),t===`check`?!!e.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(e===null||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;G(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){typeof e!=`number`&&Ct(117),(e=Math.floor(e))>=0||Ct(199);let t=this.getIndent();for(;t!==e;)t<e?(Ft(this),t++):(It(this),t--);return this}canInsertAfter(e){return G(e)}canReplaceWith(e){return G(e)}canMergeWith(e){return G(e)||t.kn(e)}extractWithChild(e,n){if(!t.bn(n))return!1;let r=n.anchor.getNode(),i=n.focus.getNode();return this.isParentOf(r)&&this.isParentOf(i)&&this.getTextContent().length===n.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return qt(`bullet`)}canMergeWhenEmpty(){return!0}};function zt(e){if(e.classList.contains(`task-list-item`)){for(let t of e.children)if(t.tagName===`INPUT`)return Bt(t)}if(e.classList.contains(`joplin-checkbox`)){for(let t of e.children)if(t.classList.contains(`checkbox-wrapper`)&&t.children.length>0&&t.children[0].tagName===`INPUT`)return Bt(t.children[0])}let n=e.getAttribute(`aria-checked`),r=Ht(n===`true`||n!==`false`&&void 0);return t.b(r,e),{after:Vt.bind(null,r),node:t._t(r,e)}}function Bt(e){if(e.getAttribute(`type`)!==`checkbox`)return{node:null};let t=Ht(e.hasAttribute(`checked`));return{after:Vt.bind(null,t),node:t}}function Vt(e,n){let r=n[0];return n.length===1&&t.kn(r)&&!e.getFormatType()&&r.getFormatType()?(e.setFormat(r.getFormatType()),r.getChildren()):n}function Ht(e){return t.o(new Rt(void 0,e))}function G(e){return e instanceof Rt}var Ut=class extends t.m{__tag;__start;__listType;$config(){return this.config(`list`,{$transform:e=>{(function(e){let t=e.getNextSibling();K(t)&&e.getListType()===t.getListType()&&Mt(e,t)})(e),Pt(e)},extends:t.m,importDOM:t.Pr({ol:()=>({conversion:Gt,priority:0}),ul:()=>({conversion:Gt,priority:0})})})}constructor(e=`number`,t=1,n){super(n);let r=Kt[e]||e;this.__listType=r,this.__tag=r===`number`?`ol`:`ul`,this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag=e===`number`?`ol`:`ul`,t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,n){let r=this.__tag,i=t.qt().createElement(r);return this.__start!==1&&i.setAttribute(`start`,String(this.__start)),i.__lexicalListType=this.__listType,Wt(i,e.theme,this),i}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(Wt(t,n.theme,this),e.__start!==this.__start&&t.setAttribute(`start`,String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let n=this.createDOM(e._config,e);return t.Sn(n)&&(this.__start!==1&&n.setAttribute(`start`,String(this.__start)),this.__listType===`check`&&n.setAttribute(`__lexicalListType`,`check`)),{element:n}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,n,r){let i=r;for(let e=0;e<r.length;e++){let n=r[e];G(n)||(i===r&&(i=[...r]),i[e]=this.createListItemNode().append(!t.vt(n)||K(n)||n.isInline()?n:t.D(n.getTextContent())))}return super.splice(e,n,i)}extractWithChild(e){return G(e)}createListItemNode(){return Ht()}};function Wt(e,n,r){let i=[],a=[],o=n.list;if(o!==void 0){let e=o[`${r.__tag}Depth`]||[],n=wt(r)-1,s=n%e.length,c=e[s],l=o[r.__tag],u,d=o.nested,f=o.checklist;if(d!==void 0&&d.list&&(u=d.list),l!==void 0&&i.push(l),f!==void 0&&r.__listType===`check`&&i.push(f),c!==void 0){i.push(...t.Mt(c));for(let t=0;t<e.length;t++)t!==s&&a.push(r.__tag+t)}if(u!==void 0){let e=t.Mt(u);n>1?i.push(...e):a.push(...e)}}a.length>0&&t.Pt(e,...a),i.length>0&&t.Vr(e,...i)}function Gt(e){let n;if(function(e){return t.Sn(e)&&e.nodeName.toLowerCase()===`ol`}(e)){let t=e.start;n=qt(`number`,t)}else n=function(e){if(e.getAttribute(`__lexicallisttype`)===`check`||e.classList.contains(`contains-task-list`)||e.getAttribute(`data-is-checklist`)===`1`)return!0;for(let n of e.childNodes)if(t.Sn(n)&&n.hasAttribute(`aria-checked`))return!0;return!1}(e)?qt(`check`):qt(`bullet`);return t._t(n,e),{after:e=>function(e,t){let n=t.createListItemNode.bind(t),r=[];for(let t=0;t<e.length;t++){let i=e[t];if(G(i)){r.push(i);let e=i.getChildren();e.length>1&&e.forEach(e=>{K(e)&&r.push(n().append(e))})}else r.push(n().append(i))}return r}(e,n),node:n}}var Kt={ol:`number`,ul:`bullet`};function qt(e=`number`,n=1){return t.o(new Ut(e,n))}function K(e){return e instanceof Ut}var Jt=t.x(`INSERT_CHECK_LIST_COMMAND`);function Yt(e,n){let r=n&&n.disableTakeFocusOnClick||!1,i=typeof r==`boolean`?()=>r:r.peek.bind(r),a=e=>{let n=e.target;if(!t.Sn(n))return!1;let r=n.__lexicalCheckListLastHandled;return r!==void 0&&e.timeStamp-r<500},o=e=>{let n=e.target;t.Sn(n)&&(n.__lexicalCheckListLastHandled=e.timeStamp)},s=e=>{a(e)||(o(e),Zt(e,i()))},c=e=>{e.pointerType===`touch`&&(a(e)||(o(e),Zt(e,i())))},l=e=>{(function(e,t){Xt(e,()=>{e.preventDefault(),t&&e.stopPropagation()})})(e,i())};return t.Yn(e.registerCommand(Jt,()=>(kt(`check`),!0),1),e.registerCommand(t.Qn,t=>$t(t,e,!1),1),e.registerCommand(t.Cr,t=>$t(t,e,!0),1),e.registerCommand(t.jn,()=>Qt(e)==null?!1:(e.getRootElement()?.focus(),!0),1),e.registerCommand(t.fn,n=>{let r=Qt(e);return!(r==null||!e.isEditable())&&(e.update(()=>{let e=t.Yt(r);G(e)&&(n.preventDefault(),e.toggleChecked())}),!0)},1),e.registerCommand(t.ur,n=>e.read(`latest`,()=>{let r=t.tt();if(t.bn(r)&&r.isCollapsed()){let{anchor:i}=r,a=i.type===`element`;if(a||i.offset===0){let r=i.getNode(),o=t.B(r,e=>t.vt(e)&&!e.isInline());if(G(o)){let i=o.getParent();if(K(i)&&i.getListType()===`check`&&(a||o.getFirstDescendant()===r)){let r=e.getElementByKey(o.__key);if(r!=null&&t.Hn(r)!==r)return r.focus(),n.preventDefault(),!0}}}}return!1}),1),e.registerRootListener(e=>{if(e!==null)return t.Yn(t.vn(e,{click:s,pointerup:c}),t.vn(e,{mousedown:l,pointerdown:l},{capture:!0}),t.yt(e,`touchstart`,l,{capture:!0,passive:!1}))}))}function Xt(e,r){let i=e.target;if(!t.Sn(i))return;let a=i.firstChild;if(t.Sn(a)&&(a.tagName===`UL`||a.tagName===`OL`))return;let o=i.parentNode;if(!o||o.__lexicalListType!==`check`)return;let s=null,c=null;if(`clientX`in e)s=e.clientX;else if(`touches`in e){let t=e.touches;t.length>0&&(s=t[0].clientX,c=`touch`)}if(s==null)return;let l=i.getBoundingClientRect(),u=s/n.d(i),d=i.ownerDocument.defaultView,f=d?d.getComputedStyle(i,`::before`):{width:`0px`},p=parseFloat(f.width),m=c===`touch`||`pointerType`in e&&e.pointerType===`touch`?32:0;(i.dir===`rtl`?u<l.right+m&&u>l.right-p-m:u>l.left-m&&u<l.left+p+m)&&r()}function Zt(e,n){Xt(e,()=>{if(t.Sn(e.target)){let r=e.target,i=t.a(r);i!=null&&i.isEditable()&&i.update(()=>{let e=t.Yt(r);G(e)&&(n?(t.pt(`skip-selection-focus`),t.pt(`skip-dom-selection`)):r.focus(),e.toggleChecked())})}})}function Qt(e){let n=e.getRootElement(),r=n?t.Hn(n):null;return t.Sn(r)&&r.tagName===`LI`&&r.parentNode!=null&&r.parentNode.__lexicalListType===`check`?r:null}function $t(e,n,r){let i=Qt(n);return i!=null&&n.update(()=>{let a=t.Yt(i);if(!G(a))return;let o=function(e,t){let n=t?e.getPreviousSibling():e.getNextSibling(),r=e;for(;n==null&&G(r);)r=r.getParentOrThrow().getParent(),r!=null&&(n=t?r.getPreviousSibling():r.getNextSibling());for(;G(n);){let e=t?n.getLastChild():n.getFirstChild();if(!K(e))return n;n=t?e.getLastChild():e.getFirstChild()}return null}(a,r);if(o!=null){o.selectStart();let t=n.getElementByKey(o.__key);t!=null&&(e.preventDefault(),setTimeout(()=>{t.focus()},0))}}),!1}r.y.tag(`ol`,`ul`),r.y.tag(`li`),r.y.tag(`li`).classAll(`task-list-item`),r.y.tag(`li`).classAll(`joplin-checkbox`);var en=t.x(`UPDATE_LIST_START_COMMAND`),tn=t.x(`INSERT_UNORDERED_LIST_COMMAND`),nn=t.x(`INSERT_ORDERED_LIST_COMMAND`),rn=t.x(`REMOVE_LIST_COMMAND`);function an(e,n){return t.Yn(e.registerCommand(nn,()=>(kt(`number`),!0),1),e.registerCommand(en,e=>{let{listNodeKey:n,newStart:r}=e,i=t.Ht(n);return!!K(i)&&(i.getListType()===`number`&&(i.setStart(r),Pt(i)),!0)},1),e.registerCommand(tn,()=>(kt(`bullet`),!0),1),e.registerCommand(rn,()=>(Nt(),!0),1),e.registerCommand(t.A,()=>Lt(!!(n&&n.restoreNumbering)),1),e.registerCommand(t.Nr,e=>{if(function(){let e=t.tt();if(!t.bn(e)||!e.isCollapsed()||e.anchor.offset!==0)return!1;let n=e.anchor.getNode(),r=t.B(n,G);if(!G(r))return!1;let i=r.getFirstDescendant();if(i===null||!r.is(n)&&!i.is(n))return!1;let a=r.getParent();if(!K(a)||!r.is(a.getFirstChild()))return!1;let o=a.getPreviousSibling();if(!t.$(o)||o.isIsolated()||!o.isKeyboardSelectable()&&o.isInline())return!1;let s=t.Ar().append(...r.getChildren());return a.insertBefore(s),r.remove(),a.isEmpty()&&a.remove(),s.selectStart(),!0}())return e.preventDefault(),!0;let n=t.tt();if(!t.bn(n)||!n.isCollapsed())return!1;let{anchor:r}=n;if(r.offset!==0)return!1;let i=r.getNode();for(;!G(i);){if(i.getPreviousSibling()!==null)return!1;let e=i.getParent();if(e===null)return!1;i=e}return!(!G(i)||!i.collapseAtStart(n))&&(e.preventDefault(),!0)},-8),e.registerNodeTransform(Rt,e=>{let n=e.getFirstChild();if(n){if(t.Jt(n)){let t=n.getStyle(),r=n.getFormat();e.getTextStyle()!==t&&e.setTextStyle(t),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{let n=t.tt();t.bn(n)&&(n.style!==e.getTextStyle()||n.format!==e.getTextFormat())&&n.isCollapsed()&&e.is(n.anchor.getNode())&&e.setTextStyle(n.style).setTextFormat(n.format)}}),e.registerNodeTransform(t.Wt,e=>{let t=e.getParent();if(G(t)&&e.is(t.getFirstChild())){let n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}))}function on(e){let n=e=>{let n=e.getParent();if(K(e.getFirstChild())||!K(n))return;let r=t.B(e,e=>G(e)&&K(e.getParent())&&G(e.getPreviousSibling()));if(r===null&&e.getIndent()>0)e.setIndent(0);else if(G(r)){let t=r.getPreviousSibling();if(G(t)){let r=function(e){let t=e,n=t.getFirstChild();for(;K(n);){let e=n.getLastChild();if(!G(e))break;t=e,n=t.getFirstChild()}return t}(t).getParent();if(K(r)){let t=wt(r);t+1<wt(n)&&e.setIndent(t)}}}};return e.registerNodeTransform(Ut,e=>{let t=[e];for(;t.length>0;){let e=t.shift();if(K(e)){for(let r of e.getChildren())if(G(r)){n(r);let e=r.getFirstChild();K(e)&&t.push(e)}}}})}var sn=class extends t.I{__format;constructor(e,t){super(t),this.__format=e||``}afterCloneFrom(e){super.afterCloneFrom(e),this.__format=e.__format}exportJSON(){return{...super.exportJSON(),format:this.__format||``}}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format||``)}canIndent(){return!1}createDOM(){return t.qt().createElement(`div`)}updateDOM(){return!1}setFormat(e){let t=this.getWritable();return t.__format=e,t}getFormat(){return this.getLatest().__format}isInline(){return!1}};function cn(e){return e instanceof sn}var ln=function(e){return e[e.increment=1]=`increment`,e[e.decrement=2]=`decrement`,e}({}),un=(e,t)=>{if(!t)return e;let n=e;switch(t){case 2:switch(!0){case e>72:n=72;break;case e>=48:n-=12;break;case e>=24:n-=4;break;case e>=14:n-=2;break;case e>=9:--n;break;default:n=8;break}break;case 1:switch(!0){case e<8:n=8;break;case e<12:n+=1;break;case e<20:n+=2;break;case e<36:n+=4;break;case e<=60:n+=12;break;default:n=72;break}break;default:break}return n},dn=(e,r,i,a)=>{let o=e=>(e||=`15px`,e=e.slice(0,-2),`${un(Number(e),i)}px`);e.update(()=>{if(a&&t.pt(t.gn),e.isEditable()){let e=t.tt();e!==null&&n.M(e,{"font-size":r||o})}})},fn=(e,t,n,r=!1)=>{if(n!==``){let i=un(Number(n),t);dn(e,String(i)+`px`,null,r)}else dn(e,null,t,r)},pn=e=>{e.update(()=>{t.pt(t.ft),n.F(t.tt(),()=>t.Ar())})},mn=(e,r,i)=>{r!==i&&e.update(()=>{t.pt(t.ft),n.F(t.tt(),()=>a.rn(i))})},hn=(e,n)=>{n===`bullet`?pn(e):e.update(()=>{t.pt(t.ft),e.dispatchCommand(tn,void 0)})},gn=(e,n)=>{n===`check`?pn(e):e.update(()=>{t.pt(t.ft),e.dispatchCommand(Jt,void 0)})},_n=(e,n)=>{n===`number`?pn(e):e.update(()=>{t.pt(t.ft),e.dispatchCommand(nn,void 0)})},vn=(e,r)=>{r!==`quote`&&e.update(()=>{t.pt(t.ft),n.F(t.tt(),()=>a.en())})},yn=(e,r)=>{r!==`code`&&e.update(()=>{t.pt(t.ft);let e=t.tt();if(e)if(!t.bn(e)||e.isCollapsed())n.F(e,()=>Ie());else{let n=e.getTextContent(),r=Ie();e.insertNodes([r]),e=t.tt(),t.bn(e)&&e.insertRawText(n)}})},bn=(e,r=!1)=>{e.update(()=>{r&&t.pt(t.gn);let e=t.tt();if(t.bn(e)||a.Kt(e)){let r=e.anchor,i=e.focus;if(r.key===i.key&&r.offset===i.offset){if(t.bn(e)){e.setFormat(0),e.setStyle(``);let n=r.getNode();t.vt(n)&&n.isEmpty()&&(n.setTextFormat(0),n.setTextStyle(``))}return}let o=e.getNodes(),s=e.extract();o.forEach((e,c)=>{if(t.Jt(e)){let a=e;c===0&&r.offset!==0&&(a=a.splitText(r.offset)[1]||a),c===o.length-1&&(a=a.splitText(i.offset)[0]||a);let l=s[0];o.length===1&&t.Jt(l)&&(a=l),a.__style!==``&&a.setStyle(``),a.__format!==0&&a.setFormat(0);let u=n.o(a);u.__format!==0&&u.setFormat(``),u.__indent!==0&&u.setIndent(0),e=a}else a.Qt(e)||a.nn(e)?e.replace(t.Ar(),!0):cn(e)&&e.setFormat(``)})}})};function xn(e){let t=e.match(/^(\d+(?:\.\d+)?)(px|pt)$/);return t?[Number(t[1]),t[2]]:null}function Sn(e,t){return t===`pt`?Math.round(e*4/3):e}function Cn(e){return e>=8&&e<=72}function wn(e){let t=xn(e);if(!t)return``;let[n,r]=t;return`${Sn(n,r)}px`}function Tn(e){let t=xn(e);if(!t)return``;let[n,r]=t;return Cn(Sn(n,r))?e:``}function En({selectionFontSize:e,disabled:t,editor:n}){let[r,i]=h.useState(e),[a,o]=h.useState(!1),[s,c]=h.useState(!1),l=e=>{let t=Number(r);if(e.key!==`Tab`){if([`e`,`E`,`+`,`-`].includes(e.key)||isNaN(t)){e.preventDefault(),i(``);return}o(!0),(e.key===`Enter`||e.key===`Escape`)&&(e.preventDefault(),f(t,!s))}},u=()=>{if(c(!1),r!==``&&a){let e=Number(r);f(e)}},d=e=>{c(!0)},f=(e,t=!1)=>{let r=e;e>72?r=72:e<8&&(r=8),i(String(r)),dn(n,String(r)+`px`,null,t),o(!1)};return h.useEffect(()=>{i(e)},[e]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{type:`button`,disabled:t||e!==``&&Number(r)<=8,onClick:e=>{fn(n,ln.decrement,r,P(e))},className:`toolbar-item font-decrement`,"aria-label":`Decrease font size`,title:`Decrease font size (${F.DECREASE_FONT_SIZE})`,children:(0,_.jsx)(`i`,{className:`bi bi-dash format`})}),(0,_.jsx)(`input`,{type:`number`,title:`Font size`,value:r,disabled:t,className:`toolbar-item font-size-input`,min:8,max:72,onChange:e=>i(e.target.value),onClick:d,onKeyDown:l,onBlur:u}),(0,_.jsx)(`button`,{type:`button`,disabled:t||e!==``&&Number(r)>=72,onClick:e=>{fn(n,ln.increment,r,P(e))},className:`toolbar-item font-increment`,"aria-label":`Increase font size`,title:`Increase font size (${F.INCREASE_FONT_SIZE})`,children:(0,_.jsx)(`i`,{className:`bi bi-plus format`})})]})}function Dn({label:e,value:t,onChange:n,placeholder:r=``,"data-test-id":i,type:a=`text`}){let o=(0,h.useId)();return(0,_.jsxs)(`div`,{className:`Input__wrapper mb-2`,children:[(0,_.jsx)(`label`,{className:`Input__label mb-0`,htmlFor:o,children:e}),(0,_.jsx)(`input`,{id:o,type:a,className:`Input__input form-control`,placeholder:r,value:t,onChange:e=>{n(e.target.value)},"data-test-id":i})]})}var On=!1;function kn(e){return/^rgb\(\d+, \d+, \d+\)$/.test(e)?e:``}var An=[`#d0021b`,`#f5a623`,`#f8e71c`,`#8b572a`,`#7ed321`,`#417505`,`#bd10e0`,`#9013fe`,`#4a90e2`,`#50e3c2`,`#b8e986`,`#000000`,`#4a4a4a`,`#9b9b9b`,`#ffffff`],jn=214,Mn=150;function Nn({color:e,onChange:t,onClear:n}){let[r,i]=(0,h.useState)(Vn(`hex`,e)),[a,o]=(0,h.useState)(Vn(`hex`,e).hex),s=(0,h.useRef)(null),c=(0,h.useMemo)(()=>({x:r.hsv.s/100*jn,y:(100-r.hsv.v)/100*Mn}),[r.hsv.s,r.hsv.v]),l=(0,h.useMemo)(()=>({x:r.hsv.h/360*jn}),[r.hsv]),u=(e,n=!1)=>{s.current!==null&&t&&t(e,On,n)},d=(e=!1)=>{s.current!==null&&n&&n(On,e)},f=e=>{if(o(e),/^#[0-9A-Fa-f]{6}$/i.test(e)){let t=Vn(`hex`,e);i(t),u(t.hex)}},p=({x:e,y:t})=>{let n=Vn(`hsv`,{...r.hsv,s:e/jn*100,v:100-t/Mn*100});i(n),o(n.hex),u(n.hex)},m=({x:e})=>{let t=Vn(`hsv`,{...r.hsv,h:e/jn*360});i(t),o(t.hex),u(t.hex)},g=(e,t)=>{let n=Vn(`hex`,t);i(n),o(n.hex),u(n.hex,P(e))};return(0,_.jsxs)(`div`,{className:`color-picker-wrapper`,style:{width:jn},ref:s,children:[(0,_.jsx)(Dn,{label:`Hex`,onChange:f,value:a}),(0,_.jsx)(`button`,{"aria-label":`Remove color`,className:`color-picker-clear`,onClick:e=>d(P(e)),title:`Remove color`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-eraser`})}),(0,_.jsx)(`div`,{className:`color-picker-basic-color`,children:An.map(e=>(0,_.jsx)(`button`,{className:e===r.hex?` active`:``,style:{backgroundColor:e},onClick:t=>g(t,e)},e))}),(0,_.jsx)(Pn,{className:`color-picker-saturation`,style:{backgroundColor:`hsl(${r.hsv.h}, 100%, 50%)`},onChange:p,children:(0,_.jsx)(`div`,{className:`color-picker-saturation_cursor`,style:{backgroundColor:r.hex,left:c.x,top:c.y}})}),(0,_.jsx)(Pn,{className:`color-picker-hue`,onChange:m,children:(0,_.jsx)(`div`,{className:`color-picker-hue_cursor`,style:{backgroundColor:`hsl(${r.hsv.h}, 100%, 50%)`,left:l.x}})}),(0,_.jsx)(`div`,{className:`color-picker-color`,style:{backgroundColor:r.hex}})]})}function Pn({className:e,style:t,onChange:r,children:i}){let a=(0,h.useRef)(null),o=(0,h.useRef)(!1),s=e=>{if(a.current){let{current:t}=a,{width:i,height:o,left:s,top:c}=t.getBoundingClientRect(),l=n.d(t);r({x:Fn(e.clientX/l-s,i,0),y:Fn(e.clientY/l-c,o,0)})}};return(0,_.jsx)(`div`,{ref:a,className:e,style:t,onMouseDown:e=>{if(e.button!==0)return;s(e);let t=e=>{o.current=!0,On=!0,s(e)},n=e=>{o.current&&(On=!1),document.removeEventListener(`mousemove`,t,!1),document.removeEventListener(`mouseup`,n,!1),s(e),o.current=!1};document.addEventListener(`mousemove`,t,!1),document.addEventListener(`mouseup`,n,!1)},children:i})}function Fn(e,t,n){return e>t?t:e<n?n:e}function In(e){if(!e.startsWith(`#`)){let t=document.createElement(`canvas`).getContext(`2d`);if(!t)throw Error(`2d context not supported or canvas already initialized`);return t.fillStyle=e,t.fillStyle}else if(e.length===4||e.length===5)return e=e.split(``).map((e,t)=>t?e+e:`#`).join(``),e;else if(e.length===7||e.length===9)return e;return`#000000`}function Ln(e){let t=(e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,n,r)=>`#`+t+t+n+n+r+r).substring(1).match(/.{2}/g)||[]).map(e=>parseInt(e,16));return{b:t[2],g:t[1],r:t[0]}}function Rn({r:e,g:t,b:n}){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),i=r-Math.min(e,t,n);return{h:i?(r===e?(t-n)/i+(t<n?6:0):r===t?2+(n-e)/i:4+(e-t)/i)*60:0,s:r?i/r*100:0,v:r*100}}function zn({h:e,s:t,v:n}){t/=100,n/=100;let r=~~(e/60),i=e/60-r,a=n*(1-t),o=n*(1-t*i),s=n*(1-t*(1-i)),c=r%6,l=Math.round([n,o,a,a,s,n][c]*255),u=Math.round([s,n,n,o,a,a][c]*255);return{b:Math.round([a,a,s,n,n,o][c]*255),g:u,r:l}}function Bn({b:e,g:t,r:n}){return`#`+[n,t,e].map(e=>e.toString(16).padStart(2,`0`)).join(``)}function Vn(e,t){let n=In(`#121212`),r=Ln(n),i=Rn(r);return e===`hex`?(n=In(t),r=Ln(n),i=Rn(r)):e===`rgb`?(r=t,n=Bn(r),i=Rn(r)):e===`hsv`&&(i=t,r=zn(i),n=Bn(r)),{hex:n,hsv:i,rgb:r}}function Hn(e){let t=``,n=Tn(e.style.fontSize),r=kn(e.style.backgroundColor),i=kn(e.style.color);return n!==``&&n!==`15px`&&(t+=`font-size: ${n};`),r!==``&&r!==`rgb(255, 255, 255)`&&(t+=`background-color: ${r};`),i!==``&&i!==`rgb(0, 0, 0)`&&(t+=`color: ${i};`),t}function Un(){let e={};for(let[n,r]of Object.entries(t.Wt.importDOM()||{}))e[n]=e=>{let n=r(e);return n?{...n,conversion:e=>{let r=n.conversion(e);if(r===null||r.forChild===void 0||r.after!==void 0||r.node!==null)return r;let i=Hn(e);if(i){let{forChild:e}=r;return{...r,forChild:(n,r)=>{let a=e(n,r);return t.Jt(a)&&a.setStyle(a.getStyle()+i),a}}}return r}}:null};return e}function Wn(){return new Map([[t.Et,(e,n)=>{let r=n.exportDOM(e);if(t.Sn(r.element)&&r.element.tagName===`P`){let e=r.after;return{...r,after:n=>{if(e&&(n=e(n)),t.Sn(n)&&n.tagName===`P`){for(let e of n.childNodes)if(t.er(e)){let e=document.createElement(`div`);e.setAttribute(`role`,`paragraph`);for(let t of n.attributes)e.setAttribute(t.name,t.value);for(;n.firstChild;)e.appendChild(n.firstChild);return e}}}}}return r}]])}function Gn(){return{export:Wn(),import:Un()}}function Kn({children:e}){return(0,v.createPortal)((0,_.jsx)(`div`,{className:`FlashMessage__overlay`,role:`dialog`,children:(0,_.jsx)(`p`,{className:`FlashMessage__alert`,role:`alert`,children:e})}),document.body)}var qn=(0,h.createContext)(void 0),Jn={},Yn=1e3,Xn=({children:e})=>{let[t,n]=(0,h.useState)(Jn),r=(0,h.useCallback)((e,t)=>n(e?{duration:t,message:e}:Jn),[]);return(0,h.useEffect)(()=>{if(t.message){let e=setTimeout(()=>n(Jn),t.duration??Yn);return()=>clearTimeout(e)}},[t]),(0,_.jsxs)(qn.Provider,{value:r,children:[e,t.message&&(0,_.jsx)(Kn,{children:t.message})]})},Zn={after:[],before:[]},Qn={after:[],before:[]},$n=`lexical-playground-block-text-links`;function er(){let e=rr();if(e===null)return[];let t=e.getItem($n);if(t===null)return[];try{let n=JSON.parse(t);if(!Array.isArray(n))return e.removeItem($n),[];let r=n.filter(ir);return r.length!==n.length&&(r.length===0?e.removeItem($n):e.setItem($n,JSON.stringify(r))),r}catch{return e.removeItem($n),[]}}function tr(e){let t=rr();if(t!==null){if(e.length===0){t.removeItem($n);return}t.setItem($n,JSON.stringify(e))}}function nr(){let e=rr();e!==null&&e.removeItem($n)}function rr(){return i.d()}function ir(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;return typeof t.id==`string`&&ar(t.kind)&&or(t.from)&&or(t.to)}function ar(e){return e===`direction-to`||e===`direction-from`||e===`no-direction`||e===`weak-direction-to`||e===`weak-direction-from`||e===`weak-no-direction`}function or(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;return sr(t.anchor)&&Array.isArray(t.blockPaths)&&t.blockPaths.every(cr)&&sr(t.focus)}function sr(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;return Number.isInteger(t.offset)&&cr(t.path)}function cr(e){return Array.isArray(e)&&e.length>0&&e.every(e=>Number.isInteger(e)&&e>=0)}var lr=`lexical-playground-editor-state`,ur=`editor-state`,dr=`pwdecrypted:`,fr=`Enter the password to open this shared link.`,pr=`Password was incorrect or the protected link is invalid. Try again or cancel.`,mr=`AES-GCM`,hr=`PBKDF2`,gr=`SHA-256`,_r=256,vr=12,yr=16,br=6e5;function xr(e,t=Lr()){let n=ei(e);return n===null||t===null?null:Or(Br(n),t)}async function Sr(e,t,n=Lr()){let r=ei(e);return r===null||n===null||t.length<1?null:Or(await Zr(r,t),n)}function Cr(){let e=kr();return e!==null&&zr(e).startsWith(`pwdecrypted:`)}function wr(){return qr()!==null}async function Tr(e){let t=await jr(e);return t===null?Dr():(Pr(t),Rr(),t)}function Er(){let e=Ar();return e===null?Dr():(Pr(e),Rr(),e)}function Dr(){let e=Ir();if(e===null)return null;let t=e.getItem(lr);if(t===null)return null;let n=ei(t);return n===null?(e.removeItem(lr),null):(n!==t&&e.setItem(lr,n),n)}function Or(e,t){let n=new URL(t);return n.searchParams.set(ur,e),n.toString()}function kr(){return typeof window>`u`?null:new URLSearchParams(window.location.search).get(ur)}function Ar(){let e=kr();if(e===null)return null;let t=zr(e);if(t.startsWith(`pwdecrypted:`))return null;try{return ei(Vr(t))}catch{return null}}async function jr(e){let t=kr();if(t===null)return null;try{let n=await Mr(zr(t),e);return n===null?null:ei(n)}catch{return null}}async function Mr(e,t){if(!e.startsWith(`pwdecrypted:`))return Vr(e);let n=t?.requestPassword??Nr,r=fr,i=!1;for(;;){let t=await n({message:r,retry:i});if(t===null)return null;try{return await Qr(e,t)}catch{r=pr,i=!0}}}function Nr({message:e}){return typeof window>`u`||typeof window.prompt!=`function`?null:window.prompt(e)}function Pr(e){let t=Ir();t===null||!$r(e)||t.setItem(lr,e)}function Fr(){let e=Ir();e!==null&&(e.removeItem(lr),nr())}function Ir(){return i.d()}function Lr(){return typeof window>`u`?null:window.location.href}function Rr(){if(typeof window>`u`||typeof window.history?.replaceState!=`function`)return;let e=new URL(window.location.href);if(!e.searchParams.has(`editor-state`))return;e.searchParams.delete(ur);let t=e.searchParams.toString(),n=`${e.pathname}${t?`?${t}`:``}${e.hash}`;window.history.replaceState(window.history.state,``,n)}function zr(e){let t=e.trim();return t.length>=2&&t.startsWith(`"`)&&t.endsWith(`"`)?t.slice(1,-1):t}function Br(e){let t=new TextEncoder().encode(e),n=``;return t.forEach(e=>{n+=String.fromCharCode(e)}),globalThis.btoa(n)}function Vr(e){let t=e.replace(/\s+/g,``),n=globalThis.atob(t),r=Uint8Array.from(n,e=>e.charCodeAt(0));return new TextDecoder().decode(r)}function Hr(e){let t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(e),t}function Ur(e){let t=``;return e.forEach(e=>{t+=String.fromCharCode(e)}),globalThis.btoa(t)}function Wr(e){let t=e.replace(/\s+/g,``),n=globalThis.atob(t);return Uint8Array.from(n,e=>e.charCodeAt(0))}function Gr(e){return Ur(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/g,``)}function Kr(e){let t=e.replace(/\s+/g,``).replace(/-/g,`+`).replace(/_/g,`/`),n=(4-t.length%4)%4;return Wr(`${t}${`=`.repeat(n)}`)}function qr(){return!globalThis.crypto?.subtle||!globalThis.crypto.getRandomValues?null:globalThis.crypto}async function Jr(e,t,n){let r=qr();if(r===null)throw Error(`Web Crypto is unavailable.`);let i=await r.subtle.importKey(`raw`,Hr(new TextEncoder().encode(e)),hr,!1,[`deriveKey`]);return r.subtle.deriveKey({name:hr,salt:Hr(t),iterations:n,hash:gr},i,{name:mr,length:_r},!1,[`encrypt`,`decrypt`])}function Yr({iterations:e,salt:t,iv:n,ciphertext:r}){return`${dr}v1.${e}.${Gr(t)}.${Gr(n)}.${Gr(r)}`}function Xr(e){if(!e.startsWith(`pwdecrypted:`))throw Error(`Encrypted share prefix is missing.`);let t=e.slice(12).split(`.`);if(t.length!==5)throw Error(`Encrypted share payload is malformed.`);let[n,r,i,a,o]=t,s=Number.parseInt(r,10);if(n!==`v1`||!Number.isSafeInteger(s)||s<1)throw Error(`Encrypted share payload metadata is invalid.`);return{iterations:s,salt:Kr(i),iv:Kr(a),ciphertext:Kr(o)}}async function Zr(e,t){let n=qr();if(n===null)throw Error(`Web Crypto is unavailable.`);let r=n.getRandomValues(new Uint8Array(yr)),i=n.getRandomValues(new Uint8Array(vr)),a=await Jr(t,r,br),o=await n.subtle.encrypt({name:mr,iv:Hr(i)},a,Hr(new TextEncoder().encode(e)));return Yr({iterations:br,salt:r,iv:i,ciphertext:new Uint8Array(o)})}async function Qr(e,t){let n=qr();if(n===null)throw Error(`Web Crypto is unavailable.`);let{iterations:r,salt:i,iv:a,ciphertext:o}=Xr(e),s=await Jr(t,i,r),c=await n.subtle.decrypt({name:mr,iv:Hr(a)},s,Hr(o));return new TextDecoder().decode(c)}function $r(e){try{let t=JSON.parse(e);return typeof t==`object`&&!!t&&!Array.isArray(t)&&`root`in t}catch{return!1}}function ei(e){if(!$r(e))return null;let t=ti(JSON.parse(e));return t.changed?JSON.stringify(t.value):e}function ti(e){if(Array.isArray(e)){let t=!1,n=e.map(e=>{let n=ti(e);return n.changed&&(t=!0),n.value});return{changed:t,value:t?n:e}}if(typeof e!=`object`||!e)return{changed:!1,value:e};let t=!1,n={};for(let[r,i]of Object.entries(e)){let e=ti(i);e.changed&&(t=!0),n[r]=e.value}return(n.type===`location`||n.type===`hashtag`)&&(n.type=`text`,t=!0),{changed:t,value:t?n:e}}function ni({defaultSelection:e}){let[n]=t.oi();return(0,h.useEffect)(()=>{n.focus(()=>{let e=n.getRootElement(),r=e===null?null:t.Hn(e);e===null||r!==null&&e.contains(r)||e.focus({preventScroll:!0})},{defaultSelection:e})},[e,n]),null}var ri=class extends t.m{$config(){return this.config(`overflow`,{$transform(e){e.isEmpty()&&e.remove()},extends:t.m})}createDOM(e){let n=t.qt().createElement(`span`),r=e.theme.characterLimit;return typeof r==`string`&&(n.className=r),n}updateDOM(e,t){return!1}insertNewAfter(e,t=!0){return this.getParentOrThrow().insertNewAfter(e,t)}excludeFromCopy(){return!0}};function ii(){return t.o(new ri)}function ai(e){return e instanceof ri}function oi(e,i,a=Object.freeze({})){let{strlen:o=e=>e.length,remainingCharacters:s=()=>{}}=a;(0,h.useEffect)(()=>{e.hasNodes([ri])||function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(57)},[e]),(0,h.useEffect)(()=>{let a=e.read(`latest`,r.L),c=0;return t.Yn(e.registerTextContentListener(e=>{a=e}),e.registerUpdateListener(({dirtyLeaves:r,dirtyElements:l})=>{let u=e.isComposing(),d=r.size>0||l.size>0;if(u||!d)return;let f=o(a),p=f>i||c!==null&&c>i;if(s(i-f),c===null||p){let r=function(e,t,n){let r=0,i=0;if(typeof Intl.Segmenter==`function`){let a=new Intl.Segmenter().segment(e);for(let{segment:e}of a){let a=i+n(e);if(a>t)break;i=a,r+=e.length}}else{let a=Array.from(e),o=a.length;for(let e=0;e<o;e++){let o=a[e],s=i+n(o);if(s>t)break;i=s,r+=o.length}}return r}(a,i,o);e.update(()=>{(function(e){let r=n.v(),i=r.length,a=0;for(let o=0;o<i;o+=1){let{node:i}=r[o],s=i.getPreviousSibling();t.vt(s)&&!s.isInline()&&(a+=2);let c=t.Dt(i)&&t.wt(i)!==null,l=t.Dt(i)&&!c&&!t.B(i,ai);if(ai(i)){let r=a;if(a+i.getTextContentSize()<=e){let e=i.getParent(),r=i.getPreviousSibling(),a=i.getNextSibling();n.x(i);let o=t.tt();!t.bn(o)||o.anchor.getNode().isAttached()&&o.focus.getNode().isAttached()||(t.Jt(r)?r.select():t.Jt(a)?a.select():e!==null&&e.select())}else if(r<e){let a=i.getFirstDescendant(),o=r+(a===null?0:a.getTextContentSize());(t.Jt(a)&&a.isSimpleText()||o<=e)&&n.x(i)}}else if(c)a+=i.getTextContentSize();else if(l){let n=a;if(a+=i.getTextContentSize(),a>e&&!ai(i.getParent())){let r=t.tt(),a;if(n<e&&t.Jt(i)&&i.isSimpleText()){let[,t]=i.splitText(e-n);a=si(t)}else a=si(i);r!==null&&t.En(r),ci(a);let o=a.getNextSibling();ai(o)&&ci(o)}}}})(r)},{tag:t.Jr})}c=f}),e.registerCommand(t.It,e=>{let n=t.tt();if(!t.bn(n))return!1;let r=n.anchor.getNode().getParent(),i=r?r.getParent():null,a=i?i.getNextSibling():null;return n.deleteCharacter(e),i&&i.isEmpty()?i.remove():t.vt(a)&&a.isEmpty()&&a.remove(),!0},1))},[e,i,s,o])}function si(e){let t=ii();return e.replace(t),t.append(e),t}function ci(e){let n=e.getPreviousSibling();if(!ai(n))return;let r=e.getFirstChild(),i=n.getChildren(),a=i.length;if(r===null)e.append(...i);else for(let e=0;e<a;e++)r.insertBefore(i[e]);let o=t.tt();if(t.bn(o)){let t=o.anchor,r=t.getNode(),i=o.focus,s=i.getNode();r.is(n)?t.set(e.getKey(),t.offset,`element`):r.is(e)&&t.set(e.getKey(),a+t.offset,`element`),s.is(n)?i.set(e.getKey(),i.offset,`element`):s.is(e)&&i.set(e.getKey(),a+i.offset,`element`)}n.remove()}var li=null;function ui(e){let t=window.TextEncoder===void 0?null:(li===null&&(li=new window.TextEncoder),li);if(t===null){let t=encodeURIComponent(e).match(/%[89ABab]/g);return e.length+(t?t.length:0)}return t.encode(e).length}function di({remainingCharacters:e}){return(0,_.jsx)(`span`,{className:`characters-limit `+(e<0?`characters-limit-exceeded`:``),children:e})}function fi({charset:e=`UTF-16`,maxLength:n=5,renderer:r=di}){let[i]=t.oi(),[a,o]=(0,h.useState)(n);return oi(i,n,(0,h.useMemo)(()=>({remainingCharacters:o,strlen:t=>{if(e===`UTF-8`)return ui(t);if(e===`UTF-16`)return t.length;throw Error(`Unrecognized charset`)}}),[e])),r({remainingCharacters:a})}function pi({disableTakeFocusOnClick:e=!1}){let[n]=t.oi();return(0,h.useEffect)(()=>Yt(n,{disableTakeFocusOnClick:e}),[n,e]),null}var mi=t.ar?h.useLayoutEffect:h.useEffect;function hi({onClear:e}){let[n]=t.oi();return mi(()=>r.X(n,e),[n,e]),null}function gi({newTab:e=!0,disabled:n=!1}){let[i]=t.oi();return(0,h.useEffect)(()=>a.tt(i,r.V({disabled:n,newTab:e})),[i,e,n]),null}function _i({nodeKey:e}){let[n]=t.oi(),[r,i,a]=c.t(e);return(0,h.useEffect)(()=>t.Yn(n.registerCommand(t.K,o=>{let s=n.getElementByKey(e);return t.Zn(o)===s&&(o.shiftKey||a(),i(!r),!0)},1)),[a,n,r,e,i]),(0,h.useEffect)(()=>{let i=n.getElementByKey(e),a=n._config.theme.hrSelected??`selected`;i!==null&&(r?t.Vr(i,a):t.Pt(i,a))},[n,r,e]),null}var vi=class e extends r.W{static getType(){return`horizontalrule`}static clone(t){return new e(t.__key)}static importJSON(e){return bi().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:yi,priority:0})}}decorate(){return(0,_.jsx)(_i,{nodeKey:this.__key})}};function yi(){return{node:bi()}}function bi(){return t.o(new vi)}function xi(){let[e]=t.oi();return(0,h.useEffect)(()=>e.registerCommand(r.U,e=>{let r=t.tt();return t.bn(r)?(r.focus.getNode()!==null&&n.n(bi()),!0):!1},0),[e]),null}function Si({hasStrictIndent:e=!1,shouldPreserveNumbering:n=!1}){let[r]=t.oi();return(0,h.useEffect)(()=>{if(!r.hasNodes([Ut,Rt]))throw Error(`ListPlugin: ListNode and/or ListItemNode not registered on editor`)},[r]),(0,h.useEffect)(()=>t.Yn(an(r,{restoreNumbering:n}),e?on(r):()=>{}),[r,e,n]),function(e){(0,h.useEffect)(()=>an(e),[e])}(r),null}function Ci({onReposition:e}){let[r]=t.oi();return(0,h.useEffect)(()=>n.S(r,e),[r,e]),null}function wi({maxIndent:e,$canIndent:n}){let[i]=t.oi();return(0,h.useEffect)(()=>r.z(i,e,n),[i,e,n]),null}function Ti({hasCellMerge:e=!0,hasCellBackgroundColor:n=!0,hasTabHandler:i=!0,hasHorizontalScroll:o=!1,hasNestedTables:s=!1}){let[c]=t.oi();(0,h.useEffect)(()=>{a.Ct(c)!==o&&(a.Dt(c,o),c.update(t.an))},[c,o]);let l=function(e){let[t]=(0,h.useState)(()=>r.B(e));return t.peek()!==e&&(t.value=e),t}(s);return(0,h.useEffect)(()=>a.Lt(c,{hasNestedTables:l}),[c,l]),(0,h.useEffect)(()=>a.qt(c,i),[c,i]),(0,h.useEffect)(()=>{if(!e)return a.Mt(c)},[c,e]),(0,h.useEffect)(()=>{if(!n)return c.registerNodeTransform(a.Wt,e=>{e.getBackgroundColor()!==null&&e.setBackgroundColor(null)})},[c,n,e]),null}function Ei(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5)}function Di(e){return typeof e!=`object`||!e||Array.isArray(e)?null:e}function Oi(e){let t=e.trim();return t.length>0&&t.length<=200&&!/[<>{};]/.test(t)}function ki(e){let t=Di(e);if(t===null)return;let n={};return typeof t.fontFamily==`string`&&Oi(t.fontFamily)&&(n.fontFamily=t.fontFamily.trim()),t.fontStyle===`italic`&&(n.fontStyle=`italic`),typeof t.fontWeight==`string`&&Oi(t.fontWeight)&&(n.fontWeight=t.fontWeight.trim()),Object.keys(n).length===0?void 0:n}function Ai(e){if(!Array.isArray(e))return;let t=[];for(let n=0;n<e.length;n++){let r=Di(e[n]);if(r===null||typeof r.text!=`string`)return;if(r.text.length===0)continue;let i=ki(r.style);t.push(i===void 0?{text:r.text}:{style:i,text:r.text})}return t.length===0?void 0:t}function ji(e){if(!(e===void 0||e.length===0))return e.map(e=>({...e.style===void 0?{}:{style:{...e.style.fontFamily===void 0?{}:{fontFamily:e.style.fontFamily},...e.style.fontStyle===void 0?{}:{fontStyle:e.style.fontStyle},...e.style.fontWeight===void 0?{}:{fontWeight:e.style.fontWeight}}},text:e.text}))}function Mi(e,t,n,r,i){return{author:t,content:e,deleted:i!==void 0&&i,id:n===void 0?Ei():n,timeStamp:r===void 0?performance.timeOrigin+performance.now():r,type:`comment`}}function Ni(e,t,n,r){let i=ji(r);return{comments:t,id:n===void 0?Ei():n,quote:e,...i===void 0?{}:{quoteSegments:i},type:`thread`}}function Pi(e){return{author:e.author,content:e.content,deleted:e.deleted,id:e.id,timeStamp:e.timeStamp,type:`comment`}}function Fi(e){let t=ji(e.quoteSegments);return{comments:Array.from(e.comments),id:e.id,quote:e.quote,...t===void 0?{}:{quoteSegments:t},type:`thread`}}function Ii(e){return e.map(e=>e.type===`thread`?{comments:e.comments.map(Pi),id:e.id,quote:e.quote,...e.quoteSegments===void 0?{}:{quoteSegments:ji(e.quoteSegments)},type:`thread`}:Pi(e))}function Li(e){return{author:e.author,content:`[Deleted Comment]`,deleted:!0,id:e.id,timeStamp:e.timeStamp,type:`comment`}}function Ri(e){let t=e._changeListeners;for(let e of t)e()}var zi=class{_comments;_changeListeners;constructor(e=[]){this._comments=Ii(e),this._changeListeners=new Set}getComments(){return this._comments}addComment(e,t,n){let r=Array.from(this._comments);if(t!==void 0&&e.type===`comment`)for(let i=0;i<r.length;i++){let a=r[i];if(a.type===`thread`&&a.id===t.id){let t=Fi(a);r.splice(i,1,t);let o=n===void 0?t.comments.length:n;t.comments.splice(o,0,e);break}}else{let t=n===void 0?r.length:n;r.splice(t,0,e)}this._comments=r,Ri(this)}deleteCommentOrThread(e,t){let n=Array.from(this._comments),r=null;if(t!==void 0)for(let i=0;i<n.length;i++){let a=n[i];if(a.type===`thread`&&a.id===t.id){let t=Fi(a);n.splice(i,1,t);let o=t.comments;r=o.indexOf(e),o.splice(r,1);break}}else r=n.indexOf(e),n.splice(r,1);return this._comments=n,Ri(this),e.type===`comment`?{index:r,markedComment:Li(e)}:null}registerOnChange(e){let t=this._changeListeners;return t.add(e),()=>{t.delete(e)}}};function Bi(e){let[t,n]=(0,h.useState)(e.getComments());return(0,h.useEffect)(()=>e.registerOnChange(()=>{n(e.getComments())}),[e]),t}var Vi=`lexical-playground-comments`,Hi=`lexical-playground-comments-panel-open`;function Ui(){let e=Ji();if(e===null)return[];let t=e.getItem(Vi);if(t===null)return[];let n=Yi(t);return n===null?(e.removeItem(Vi),[]):(n!==t&&e.setItem(Vi,n),JSON.parse(n))}function Wi(e){let t=Ji();if(t===null)return;let n=Zi(e);if(n===null||n.length===0){t.removeItem(Vi);return}t.setItem(Vi,JSON.stringify(n))}function Gi(){let e=Ji();if(e===null)return!1;let t=e.getItem(Hi);if(t===null)return!1;let n=Xi(t);return n===null?(e.removeItem(Hi),!1):(n!==t&&e.setItem(Hi,n),n===`true`)}function Ki(e){let t=Ji();t!==null&&t.setItem(Hi,JSON.stringify(e))}function qi(){let e=Ji();e!==null&&(e.removeItem(Vi),e.removeItem(Hi))}function Ji(){return i.d()}function Yi(e){try{let t=Zi(JSON.parse(e));return t===null?null:JSON.stringify(t)}catch{return null}}function Xi(e){try{let t=JSON.parse(e);return typeof t==`boolean`?JSON.stringify(t):null}catch{return null}}function Zi(e){if(!Array.isArray(e))return null;let t=[];for(let n=0;n<e.length;n++){let r=Qi(e[n]);if(r===null)return null;t.push(r)}return t}function Qi(e){let t=ta(e);return t===null?null:t.type===`thread`?ea(t):t.type===`comment`?$i(t):null}function $i(e){let t=ta(e);return t===null||typeof t.author!=`string`||typeof t.content!=`string`||typeof t.deleted!=`boolean`||typeof t.id!=`string`||typeof t.timeStamp!=`number`||!Number.isFinite(t.timeStamp)||t.type!==`comment`?null:{author:t.author,content:t.content,deleted:t.deleted,id:t.id,timeStamp:t.timeStamp,type:`comment`}}function ea(e){if(!Array.isArray(e.comments)||typeof e.id!=`string`||typeof e.quote!=`string`||e.type!==`thread`)return null;let t=[];for(let n=0;n<e.comments.length;n++){let r=$i(e.comments[n]);if(r===null)return null;t.push(r)}let n=Ai(e.quoteSegments);return{comments:t,id:e.id,quote:e.quote,...n===void 0?{}:{quoteSegments:n},type:`thread`}}function ta(e){return typeof e!=`object`||!e||Array.isArray(e)?null:e}var na=`lexical-playground-editor-zoom-percent`;function ra(){let e=i.d();if(e===null)return null;let t=e.getItem(na);if(t===null)return null;let n=Number(t);return Number.isFinite(n)?n:(e.removeItem(na),null)}function ia(e){let t=i.d();if(t!==null){if(!Number.isFinite(e)){t.removeItem(na);return}t.setItem(na,String(e))}}function aa(e,t=Object.freeze({})){return{editorState:e.toJSON(),lastSaved:t.lastSaved||Date.now(),source:t.source||`Lexical`,version:`0.48.0`}}function oa(e,t){let n=typeof t==`string`?JSON.parse(t):t;return e.parseEditorState(n.editorState)}function sa(e){(function(e){let t=document.createElement(`input`);t.type=`file`,t.accept=`.lexical`,t.addEventListener(`change`,t=>{let n=t.target;if(n.files){let t=n.files[0],r=new FileReader;r.readAsText(t,`UTF-8`),r.onload=t=>{if(t.target){let n=t.target.result;e(n)}}}}),t.click()})(n=>{e.setEditorState(oa(e,n)),e.dispatchCommand(t.dt,void 0)})}function ca(e,t=Object.freeze({})){let n=new Date;(function(e,t){let n=document.createElement(`a`),r=document.body;if(r===null)return;r.appendChild(n),n.style.display=`none`;let i=JSON.stringify(e),a=new Blob([i],{type:`octet/stream`}),o=window.URL.createObjectURL(a);n.href=o,n.download=t,n.click(),window.URL.revokeObjectURL(o),n.remove()})(aa(e.getEditorState(),{...t,lastSaved:n.getTime()}),`${t.fileName||n.toISOString()}.lexical`)}function la(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]?n[e].push(r):n[e]=[r])}return n}function ua(e){let t=la(e,e=>e.type);return{element:t.element||[],multilineElement:t[`multiline-element`]||[],textFormat:t[`text-format`]||[],textMatch:t[`text-match`]||[]}}var da=/[!-/:-@[-`{-~\s]/,fa=/\s/,pa=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/,ma=/^\s{0,3}$/;function ha(e){if(!t.kn(e))return!1;let n=e.getFirstChild();return n==null||e.getChildrenSize()===1&&t.Jt(n)&&ma.test(n.getTextContent())}function ga(e){return e.replace(/\\([!-/:-@[-`{-~])/g,`$1`).replace(/&#(\d+);/g,(e,t)=>String.fromCodePoint(Number(t)))}var _a=/^(\s*)(\d{1,})\.\s/,va=/^(\s*)[-*+]\s/,ya=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,ba=/^(#{1,6})\s/,xa=/^>\s/,Sa=/^([ \t]*`{3,})([\w-]+)?[ \t]?/,Ca=/^[ \t]*`{3,}$/,wa=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,Ta=/^(?:\|)(.+)(?:\|)\s?$/;function Ea(e){if(e[0]!==`|`)return!1;let{length:t}=e,n=1,r=0;for(;n<t;){let t=n;for(e[t]===` `&&t++,e[t]===`:`&&t++;e[t]===`-`;)t++;if(e[t]===`:`&&t++,e[t]===` `&&t++,e[t]!==`|`)break;r++,n=t+1}return r>0&&(n===t||n===t-1&&/\s/.test(e[n]))}var Da=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,Oa=/^<\/[a-z_][\w-]*\s*>/i,ka=e=>RegExp(`(?:${e.source})$`,e.flags),Aa=t.rr(`mdListMarker`,{parse:e=>typeof e==`string`&&/^[-*+]$/.test(e)?e:`-`,resetOnCopyNode:!0}),ja=t.rr(`mdCodeFence`,{parse:e=>typeof e==`string`&&/^`{3,}$/.test(e)?e:"```",resetOnCopyNode:!0}),Ma=t.rr(`mdHardLineBreak`,{parse:e=>typeof e==`string`&&/^(\\| {2,})$/.test(e)?e:``,resetOnCopyNode:!0});function Na(e){if(e.endsWith(`\\`))return[e.slice(0,-1),`\\`];let t=e.match(/^(.*?\S)( {2,})$/);return t?[t[1],t[2]]:null}function Pa(e){let n=e.getChildren(),r=n.length-1,i=n[r];if(!t.Jt(i))return null;let a=i.getTextContent(),o=Na(a);if(o!==null){let[e,t]=o;return i.setTextContent(e),t}return/^ {2,}$/.test(a)&&function(e,n){for(let r=n-1;r>=0;r--){if(t._r(e[r]))return!1;if(/\S/.test(e[r].getTextContent()))return!0}return!1}(n,r)?(i.setTextContent(``),a):null}function Fa(e){let n=t.Bt(),r=Pa(e);return r!==null&&t.jt(n,Ma,r),n}var Ia=e=>(t,n,r,i)=>{let a=e(r);a.append(...n),t.replace(a),i||a.select(0,0)},La=e=>(n,r,i,a)=>{let o=n.getPreviousSibling(),s=n.getNextSibling(),c=Ht(e===`check`?i[3]===`x`:void 0),l=i[0].trim()[0],u=e!==`bullet`&&e!==`check`||l!==Aa.parse(l)?void 0:l;if(K(s)&&s.getListType()===e){u&&t.jt(s,Aa,u);let r=s.getFirstChild();r===null?s.append(c):r.insertBefore(c),e===`number`&&s.setStart(Number(i[2])),n.remove()}else if(K(o)&&o.getListType()===e)u&&t.jt(o,Aa,u),o.append(c),n.remove();else{let r=qt(e,e===`number`?Number(i[2]):void 0);u&&t.jt(r,Aa,u),r.append(c),n.replace(r)}c.append(...r),a||c.select(0,0);let d=function(e){let t=e.match(/\t/g),n=e.match(/ /g),r=0;return t&&(r+=t.length),n&&(r+=Math.floor(n.length/4)),r}(i[1]);d&&c.setIndent(d)},Ra=(e,n,r,i)=>{let a=[],o=e.getChildren(),s=0;for(let c of o)if(G(c)){if(c.getChildrenSize()===1){let e=c.getFirstChild();if(K(e)){let t=Ra(e,n,r+1,i);t&&a.push(t);continue}}if(i&&!c.getChildren().some(e=>e.isSelected(i)))continue;let o=` `.repeat(4*r),l=e.getListType(),u=t.Yr(e,Aa),d=l===`number`?`${e.getStart()+s}. `:l===`check`?`${u} [${c.getChecked()?`x`:` `}] `:u+` `,f=n(c);l!==`number`&&(f=f.replace(/^(\s{0,3}\d+)(\.\s)/,`$1\\$2`)),a.push(o+d+f),s++}return a.join(`
6
+ `+ ++s);r.setAttribute(`data-gutter`,o)}function mt(e,n,r,i){let{nodesCurrentlyHighlighting:a}=r,o=i.getKey();i.getLanguage()===void 0&&n.defaultLanguage!==null&&i.setLanguage(n.defaultLanguage);let s=i.getLanguage()||n.defaultLanguage;if(s){if(!ot(s))return i.getIsSyntaxHighlightSupported()&&i.setIsSyntaxHighlightSupported(!1),void st();i.getIsSyntaxHighlightSupported()||i.setIsSyntaxHighlightSupported(!0)}else i.getIsSyntaxHighlightSupported()&&i.setIsSyntaxHighlightSupported(!1);a.has(o)||(a.add(o),r.didTransform||(r.didTransform=!0,t.it(()=>{r.didTransform=!1,a.clear()})),function(e,n){let r=t.Ht(e);if(!W(r)||!r.isAttached())return;let i=t.tt();if(!t.bn(i))return void n();let a=i.anchor,o=a.offset,s=a.type===`element`&&t._r(r.getChildAtIndex(a.offset-1)),c=0;if(s||(c=o+a.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),n()){if(s)return void a.getNode().select(o,o);r.getChildren().some(e=>{let n=t.Jt(e);if(n||t._r(e)){let t=e.getTextContentSize();if(n&&t>=c)return e.select(c,c),!0;c-=t}return!1})}}(o,()=>{let e=t.Ht(o);if(!W(e)||!e.isAttached())return!1;let r=e.getLanguage()||n.defaultLanguage,a=n.$tokenize(e,r??void 0),{from:s,to:c,nodesForReplacement:l}=function(e,t){let n=0;for(;n<e.length&&ht(e[n],t[n]);)n++;let r=e.length,i=t.length,a=Math.min(r,i)-n,o=0;for(;o<a;)if(o++,!ht(e[r-o],t[i-o])){o--;break}let s=n,c=r-o;return{from:s,nodesForReplacement:t.slice(n,i-o),to:c}}(e.getChildren(),a);return!(s===c&&!l.length)&&(i.splice(s,c-s,l),!0)}))}function ht(e,n){return qe(e)&&qe(n)&&e.__text===n.__text&&e.__highlightType===n.__highlightType||t.On(e)&&t.On(n)||t._r(e)&&t._r(n)}function gt(e,n){let r=[];!0!==e._headless&&r.push(e.registerMutationListener(Fe,n=>{e.read(`latest`,()=>{for(let[r,i]of n)if(i!==`destroyed`){let n=t.Ht(r);n!==null&&pt(n,e)}})},{skipInitialization:!1}));let i={didTransform:!1,nodesCurrentlyHighlighting:new Set};return r.push(e.registerNodeTransform(Fe,mt.bind(null,e,n,i)),e.registerNodeTransform(t.Wt,ft.bind(null,e,n,i)),e.registerNodeTransform(We,ft.bind(null,e,n,i))),t.Yn(...r)}function _t(e,n=dt){if(!e.hasNodes([Fe,We]))throw Error(`CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor`);return t.Yn(gt(e,n),$e(e))}var vt=at,yt=it,bt=rt,xt=rt,St=_t;function Ct(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function wt(e){let t=1,n=e.getParent();for(;n!=null;){if(G(n)){let e=n.getParent();if(K(e)){t++,n=e.getParent();continue}Ct(40)}return t}return t}function Tt(e){let t=e.getParent();K(t)||Ct(40);let n=t,r=t;for(;r!==null;)r=r.getParent(),K(r)&&(n=r);return n}function Et(e){let t=[],n=e.getChildren().filter(G);for(let e=0;e<n.length;e++){let r=n[e],i=r.getFirstChild();K(i)?t=t.concat(Et(i)):t.push(r)}return t}function Dt(e){return G(e)&&K(e.getFirstChild())}function Ot(e,t){return G(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function kt(e){let n=t.tt();if(n!==null){let r=n.getNodes();if(t.bn(n)){let[i]=n.getStartEndPoints(),a=i.getNode(),o=a.getParent();if(t.J(a)){let e=a.getFirstChild();if(e)r=e.selectStart().getNodes();else{let e=t.Ar();a.append(e),r=e.select().getNodes()}}else if(Ot(a,r)){let n=qt(e);if(t.J(o)){a.replace(n);let e=Ht();t.vt(a)&&(e.setFormat(a.getFormatType()),e.setIndent(a.getIndent())),n.append(e)}else if(G(a)){let e=a.getParentOrThrow();At(n,e.getChildren()),e.replace(n)}return}}let i=new Set;for(let n=0;n<r.length;n++){let a=r[n];if(t.vt(a)&&a.isEmpty()&&!G(a)&&!i.has(a.getKey())){jt(a,e);continue}let o=t.Dt(a)?a.getParent():G(a)&&a.isEmpty()?a:null;for(;o!=null;){let n=o.getKey();if(K(o)){if(!i.has(n)){let t=qt(e);At(t,o.getChildren()),o.replace(t),i.add(n)}break}{let r=o.getParent();if(t.J(r)&&!i.has(n)){i.add(n),jt(o,e);break}o=r}}}}}function At(e,t){e.splice(e.getChildrenSize(),0,t)}function jt(e,n){if(K(e))return e;let r=e.getPreviousSibling(),i=e.getNextSibling(),a=Ht(),o;if(At(a,e.getChildren()),K(r)&&n===r.getListType())r.append(a),K(i)&&n===i.getListType()&&(At(r,i.getChildren()),i.remove()),o=r;else if(K(i)&&n===i.getListType())i.getFirstChildOrThrow().insertBefore(a),o=i;else{let t=qt(n);t.append(a),e.replace(t),o=t}a.setFormat(e.getFormatType()),a.setIndent(e.getIndent());let s=t.tt();return t.bn(s)&&(o.getKey()===s.anchor.key&&s.anchor.set(a.getKey(),s.anchor.offset,`element`),o.getKey()===s.focus.key&&s.focus.set(a.getKey(),s.focus.offset,`element`)),e.remove(),o}function Mt(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&Dt(n)&&Dt(r)&&(Mt(n.getFirstChild(),r.getFirstChild()),r.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function Nt(){let e=t.tt();if(t.bn(e)){let r=new Set,i=e.getNodes(),a=e.anchor.getNode();if(Ot(a,i))r.add(Tt(a));else for(let e=0;e<i.length;e++){let a=i[e];if(t.Dt(a)){let e=n.m(a,Rt);e!=null&&r.add(Tt(e))}}for(let n of r){let r=n,i=Et(n);for(let n of i){let i=t.Ar().setTextStyle(e.style).setTextFormat(e.format);At(i,n.getChildren()),r.insertAfter(i),r=i,n.__key===e.anchor.key&&t.Ct(e.anchor,t.wr(t.Z(i,`next`))),n.__key===e.focus.key&&t.Ct(e.focus,t.wr(t.Z(i,`next`))),n.remove()}n.remove()}}}function Pt(e){let t=e.getListType()!==`check`,n=e.getStart();for(let r of e.getChildren())G(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),K(r.getFirstChild())||n++)}function Ft(e){let n=new Set;if(Dt(e)||n.has(e.getKey()))return;let r=e.getParent(),i=e.getNextSibling(),a=e.getPreviousSibling();if(Dt(i)&&Dt(a)){let t=a.getFirstChild();if(K(t)){t.append(e);let r=i.getFirstChild();K(r)&&(At(t,r.getChildren()),i.remove(),n.add(i.getKey()))}}else if(Dt(i)){let t=i.getFirstChild();if(K(t)){let n=t.getFirstChild();n!==null&&n.insertBefore(e)}}else if(Dt(a)){let t=a.getFirstChild();K(t)&&t.append(e)}else if(K(r)){let n=t.ii(e),o=t.ii(r);n.append(o),o.append(e),a?a.insertAfter(n):i?i.insertBefore(n):r.append(n)}}function It(e){if(Dt(e))return;let n=e.getParent(),r=n?n.getParent():void 0;if(K(r?r.getParent():void 0)&&G(r)&&K(n)){let i=n?n.getFirstChild():void 0,a=n?n.getLastChild():void 0;if(e.is(i))r.insertBefore(e),n.isEmpty()&&r.remove();else if(e.is(a))r.insertAfter(e),n.isEmpty()&&r.remove();else{let i=t.ii(e),a=t.ii(n);i.append(a),e.getPreviousSiblings().forEach(e=>a.append(e));let o=t.ii(e),s=t.ii(n);o.append(s),At(s,e.getNextSiblings()),r.insertBefore(i),r.insertAfter(o),r.replace(e)}}}function Lt(e=!1){let n=t.tt();if(!t.bn(n)||!n.isCollapsed())return!1;let r=n.anchor.getNode(),i=null;if(G(r)&&r.getChildrenSize()===0)i=r;else if(t.Jt(r)){let e=r.getParent();G(e)&&e.getChildren().every(e=>t.Jt(e)&&e.getTextContent().trim()===``)&&(i=e)}if(i===null)return!1;let a=Tt(i),o=i.getParent();K(o)||Ct(40);let s=o.getParent(),c;if(t.J(s))c=t.Ar(),a.insertAfter(c);else{if(!G(s))return!1;c=t.ii(s),s.insertAfter(c)}c.setTextStyle(n.style).setTextFormat(n.format).select();let l=i.getNextSiblings();if(l.length>0){let n=e?function(e,t){return e.getStart()+t.getIndexWithinParent()}(o,i):1,r=t.ii(o).setStart(n);if(G(c)){let e=t.ii(c);e.append(r),c.insertAfter(e)}else c.insertAfter(r);r.append(...l)}return function(e){let t=e;for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!G(e)&&!K(e))break;t=e}t.remove()}(i),!0}var Rt=class extends t.m{__value;__checked;$config(){return this.config(`listitem`,{$transform:e=>{let n=e.getParent();if(K(n))n.getListType()!==`check`&&e.getChecked()!=null&&e.setChecked(void 0);else if(n){let r=e.createParentElementNode();K(r)||Ct(340);let i=[e];for(let n of[`previous`,`next`]){i.reverse();for(let{origin:r}of t.f(e,n)){if(!G(r))break;i.push(r)}}e.insertBefore(r),r.splice(0,0,i),t.J(n)||(t.cn(r,t.cr(t.f(r,`next`)),{$shouldSplit:()=>!1,removeEmptyDestination:!0}),n.isEmpty()&&n.isAttached()&&n.remove())}},extends:t.m,importDOM:t.Pr({li:()=>({conversion:zt,priority:0})})})}constructor(e=1,t=void 0,n){super(n),this.__value=e===void 0?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let n=t.qt().createElement(`li`);return this.updateListItemDOM(null,n,e),n}updateListItemDOM(e,n,r){(function(e,t){let n=t.getParent();!K(n)||n.getListType()!==`check`||K(t.getFirstChild())?(e.removeAttribute(`role`),e.removeAttribute(`tabIndex`),e.removeAttribute(`aria-checked`)):(e.setAttribute(`role`,`checkbox`),e.setAttribute(`tabIndex`,`-1`),e.setAttribute(`aria-checked`,t.getChecked()?`true`:`false`))})(n,this),n.value=this.__value,function(e,n,r){let i=n.list;if(!i)return;let a=i.listitem,o=i.nested&&i.nested.listitem,s=r.getParent(),c=K(s)&&s.getListType()===`check`,l=r.getChecked(),u=r.getChildren().some(e=>K(e)),d=[];i.listitemChecked!==void 0&&d.push(i.listitemChecked),i.listitemUnchecked!==void 0&&d.push(i.listitemUnchecked),o!==void 0&&d.push(...t.Mt(o)),d.length>0&&t.Pt(e,...d);let f=[];if(a!==void 0&&f.push(...t.Mt(a)),c){let e=l?i.listitemChecked:i.listitemUnchecked;e!==void 0&&f.push(e)}o!==void 0&&u&&f.push(...t.Mt(o)),f.length>0&&t.Vr(e,...f)}(n,r.theme,this);let i=e?e.__style:``,a=this.__style;i!==a&&t.bt(n.style,a,i),function(e,n,r){let i=n.__textStyle,a=r?r.__textStyle:``;if(r!==null&&a===i)return;let o=t.ot(i);for(let t in o)e.style.setProperty(`--listitem-marker-${t}`,o[t]);if(a!==``)for(let n in t.ot(a))n in o||e.style.removeProperty(`--listitem-marker-${n}`)}(n,this,e)}updateDOM(e,t,n){let r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let n=this.createDOM(e._config),r=this.getFormatType();r&&(n.style.textAlign=r);let i=this.getDirection();return i&&(n.dir=i),Dt(this)?{after(e){if(t.Sn(e)){let n=e.previousElementSibling;if(t.Sn(n)&&n.nodeName===`LI`){for(;e.firstChild;)n.append(e.firstChild);e.remove()}}return e},element:n}:{element:n}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let n=0;n<e.length;n++){let r=e[n];if(t.vt(r)&&this.canMergeWith(r)){let e=r.getChildren();this.append(...e),r.remove()}else super.append(r)}return this}replace(e,n){if(G(e))return super.replace(e);this.setIndent(0);let r=this.getParentOrThrow();if(!K(r))return e;if(r.__first===this.getKey())r.insertBefore(e);else if(r.__last===this.getKey())r.insertAfter(e);else{let n=t.ii(r),i=this.getNextSibling();for(;i;){let e=i;i=i.getNextSibling(),n.append(e)}r.insertAfter(e),e.insertAfter(n)}let i=this.__key,a=0;if(n&&(t.vt(e)||Ct(139),a=e.getChildrenSize(),e.splice(a,0,this.getChildren())),n&&t.vt(e)){let n=t.tt();if(t.bn(n))for(let t of n.getStartEndPoints())t.key===i&&t.type===`element`&&t.set(e.getKey(),a+t.offset,`element`)}return this.remove(),r.getChildrenSize()===0&&r.remove(),e}insertAfter(e,n=!0){let r=this.getParentOrThrow();if(K(r)||Ct(39),G(e))return super.insertAfter(e,n);let i=this.getNextSiblings();if(r.insertAfter(e,n),i.length!==0){let a=t.ii(r);i.forEach(e=>a.append(e)),e.insertAfter(a,n)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&Dt(t)&&Dt(n)&&(Mt(t.getFirstChild(),n.getFirstChild()),n.remove())}resetOnCopyNodeFrom(e){super.resetOnCopyNodeFrom(e),e.getChecked()&&this.setChecked(!1)}insertNewAfter(e,n=!0){let r=t.ii(this);return this.insertAfter(r,n),r}collapseAtStart(e){if(Dt(this))return!1;let n=this.getParentOrThrow();if(G(n.getParentOrThrow()))return It(this),!0;let r=t.Ar().append(...this.getChildren()),i=this.getNextSiblings();if(i.length>0){let e=t.ii(n);e.append(...i),n.insertAfter(e)}return n.insertAfter(r),this.remove(),n.getChildrenSize()===0&&n.remove(),r.selectStart(),!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e=this.getLatest(),t,n=this.getParent();return K(n)&&(t=n.getListType()),t===`check`?!!e.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(e===null||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;G(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){typeof e!=`number`&&Ct(117),(e=Math.floor(e))>=0||Ct(199);let t=this.getIndent();for(;t!==e;)t<e?(Ft(this),t++):(It(this),t--);return this}canInsertAfter(e){return G(e)}canReplaceWith(e){return G(e)}canMergeWith(e){return G(e)||t.kn(e)}extractWithChild(e,n){if(!t.bn(n))return!1;let r=n.anchor.getNode(),i=n.focus.getNode();return this.isParentOf(r)&&this.isParentOf(i)&&this.getTextContent().length===n.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return qt(`bullet`)}canMergeWhenEmpty(){return!0}};function zt(e){if(e.classList.contains(`task-list-item`)){for(let t of e.children)if(t.tagName===`INPUT`)return Bt(t)}if(e.classList.contains(`joplin-checkbox`)){for(let t of e.children)if(t.classList.contains(`checkbox-wrapper`)&&t.children.length>0&&t.children[0].tagName===`INPUT`)return Bt(t.children[0])}let n=e.getAttribute(`aria-checked`),r=Ht(n===`true`||n!==`false`&&void 0);return t.b(r,e),{after:Vt.bind(null,r),node:t._t(r,e)}}function Bt(e){if(e.getAttribute(`type`)!==`checkbox`)return{node:null};let t=Ht(e.hasAttribute(`checked`));return{after:Vt.bind(null,t),node:t}}function Vt(e,n){let r=n[0];return n.length===1&&t.kn(r)&&!e.getFormatType()&&r.getFormatType()?(e.setFormat(r.getFormatType()),r.getChildren()):n}function Ht(e){return t.o(new Rt(void 0,e))}function G(e){return e instanceof Rt}var Ut=class extends t.m{__tag;__start;__listType;$config(){return this.config(`list`,{$transform:e=>{(function(e){let t=e.getNextSibling();K(t)&&e.getListType()===t.getListType()&&Mt(e,t)})(e),Pt(e)},extends:t.m,importDOM:t.Pr({ol:()=>({conversion:Gt,priority:0}),ul:()=>({conversion:Gt,priority:0})})})}constructor(e=`number`,t=1,n){super(n);let r=Kt[e]||e;this.__listType=r,this.__tag=r===`number`?`ol`:`ul`,this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag=e===`number`?`ol`:`ul`,t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,n){let r=this.__tag,i=t.qt().createElement(r);return this.__start!==1&&i.setAttribute(`start`,String(this.__start)),i.__lexicalListType=this.__listType,Wt(i,e.theme,this),i}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(Wt(t,n.theme,this),e.__start!==this.__start&&t.setAttribute(`start`,String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let n=this.createDOM(e._config,e);return t.Sn(n)&&(this.__start!==1&&n.setAttribute(`start`,String(this.__start)),this.__listType===`check`&&n.setAttribute(`__lexicalListType`,`check`)),{element:n}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,n,r){let i=r;for(let e=0;e<r.length;e++){let n=r[e];G(n)||(i===r&&(i=[...r]),i[e]=this.createListItemNode().append(!t.vt(n)||K(n)||n.isInline()?n:t.D(n.getTextContent())))}return super.splice(e,n,i)}extractWithChild(e){return G(e)}createListItemNode(){return Ht()}};function Wt(e,n,r){let i=[],a=[],o=n.list;if(o!==void 0){let e=o[`${r.__tag}Depth`]||[],n=wt(r)-1,s=n%e.length,c=e[s],l=o[r.__tag],u,d=o.nested,f=o.checklist;if(d!==void 0&&d.list&&(u=d.list),l!==void 0&&i.push(l),f!==void 0&&r.__listType===`check`&&i.push(f),c!==void 0){i.push(...t.Mt(c));for(let t=0;t<e.length;t++)t!==s&&a.push(r.__tag+t)}if(u!==void 0){let e=t.Mt(u);n>1?i.push(...e):a.push(...e)}}a.length>0&&t.Pt(e,...a),i.length>0&&t.Vr(e,...i)}function Gt(e){let n;if(function(e){return t.Sn(e)&&e.nodeName.toLowerCase()===`ol`}(e)){let t=e.start;n=qt(`number`,t)}else n=function(e){if(e.getAttribute(`__lexicallisttype`)===`check`||e.classList.contains(`contains-task-list`)||e.getAttribute(`data-is-checklist`)===`1`)return!0;for(let n of e.childNodes)if(t.Sn(n)&&n.hasAttribute(`aria-checked`))return!0;return!1}(e)?qt(`check`):qt(`bullet`);return t._t(n,e),{after:e=>function(e,t){let n=t.createListItemNode.bind(t),r=[];for(let t=0;t<e.length;t++){let i=e[t];if(G(i)){r.push(i);let e=i.getChildren();e.length>1&&e.forEach(e=>{K(e)&&r.push(n().append(e))})}else r.push(n().append(i))}return r}(e,n),node:n}}var Kt={ol:`number`,ul:`bullet`};function qt(e=`number`,n=1){return t.o(new Ut(e,n))}function K(e){return e instanceof Ut}var Jt=t.x(`INSERT_CHECK_LIST_COMMAND`);function Yt(e,n){let r=n&&n.disableTakeFocusOnClick||!1,i=typeof r==`boolean`?()=>r:r.peek.bind(r),a=e=>{let n=e.target;if(!t.Sn(n))return!1;let r=n.__lexicalCheckListLastHandled;return r!==void 0&&e.timeStamp-r<500},o=e=>{let n=e.target;t.Sn(n)&&(n.__lexicalCheckListLastHandled=e.timeStamp)},s=e=>{a(e)||(o(e),Zt(e,i()))},c=e=>{e.pointerType===`touch`&&(a(e)||(o(e),Zt(e,i())))},l=e=>{(function(e,t){Xt(e,()=>{e.preventDefault(),t&&e.stopPropagation()})})(e,i())};return t.Yn(e.registerCommand(Jt,()=>(kt(`check`),!0),1),e.registerCommand(t.Qn,t=>$t(t,e,!1),1),e.registerCommand(t.Cr,t=>$t(t,e,!0),1),e.registerCommand(t.jn,()=>Qt(e)==null?!1:(e.getRootElement()?.focus(),!0),1),e.registerCommand(t.fn,n=>{let r=Qt(e);return!(r==null||!e.isEditable())&&(e.update(()=>{let e=t.Yt(r);G(e)&&(n.preventDefault(),e.toggleChecked())}),!0)},1),e.registerCommand(t.ur,n=>e.read(`latest`,()=>{let r=t.tt();if(t.bn(r)&&r.isCollapsed()){let{anchor:i}=r,a=i.type===`element`;if(a||i.offset===0){let r=i.getNode(),o=t.B(r,e=>t.vt(e)&&!e.isInline());if(G(o)){let i=o.getParent();if(K(i)&&i.getListType()===`check`&&(a||o.getFirstDescendant()===r)){let r=e.getElementByKey(o.__key);if(r!=null&&t.Hn(r)!==r)return r.focus(),n.preventDefault(),!0}}}}return!1}),1),e.registerRootListener(e=>{if(e!==null)return t.Yn(t.vn(e,{click:s,pointerup:c}),t.vn(e,{mousedown:l,pointerdown:l},{capture:!0}),t.yt(e,`touchstart`,l,{capture:!0,passive:!1}))}))}function Xt(e,r){let i=e.target;if(!t.Sn(i))return;let a=i.firstChild;if(t.Sn(a)&&(a.tagName===`UL`||a.tagName===`OL`))return;let o=i.parentNode;if(!o||o.__lexicalListType!==`check`)return;let s=null,c=null;if(`clientX`in e)s=e.clientX;else if(`touches`in e){let t=e.touches;t.length>0&&(s=t[0].clientX,c=`touch`)}if(s==null)return;let l=i.getBoundingClientRect(),u=s/n.d(i),d=i.ownerDocument.defaultView,f=d?d.getComputedStyle(i,`::before`):{width:`0px`},p=parseFloat(f.width),m=c===`touch`||`pointerType`in e&&e.pointerType===`touch`?32:0;(i.dir===`rtl`?u<l.right+m&&u>l.right-p-m:u>l.left-m&&u<l.left+p+m)&&r()}function Zt(e,n){Xt(e,()=>{if(t.Sn(e.target)){let r=e.target,i=t.a(r);i!=null&&i.isEditable()&&i.update(()=>{let e=t.Yt(r);G(e)&&(n?(t.pt(`skip-selection-focus`),t.pt(`skip-dom-selection`)):r.focus(),e.toggleChecked())})}})}function Qt(e){let n=e.getRootElement(),r=n?t.Hn(n):null;return t.Sn(r)&&r.tagName===`LI`&&r.parentNode!=null&&r.parentNode.__lexicalListType===`check`?r:null}function $t(e,n,r){let i=Qt(n);return i!=null&&n.update(()=>{let a=t.Yt(i);if(!G(a))return;let o=function(e,t){let n=t?e.getPreviousSibling():e.getNextSibling(),r=e;for(;n==null&&G(r);)r=r.getParentOrThrow().getParent(),r!=null&&(n=t?r.getPreviousSibling():r.getNextSibling());for(;G(n);){let e=t?n.getLastChild():n.getFirstChild();if(!K(e))return n;n=t?e.getLastChild():e.getFirstChild()}return null}(a,r);if(o!=null){o.selectStart();let t=n.getElementByKey(o.__key);t!=null&&(e.preventDefault(),setTimeout(()=>{t.focus()},0))}}),!1}r.y.tag(`ol`,`ul`),r.y.tag(`li`),r.y.tag(`li`).classAll(`task-list-item`),r.y.tag(`li`).classAll(`joplin-checkbox`);var en=t.x(`UPDATE_LIST_START_COMMAND`),tn=t.x(`INSERT_UNORDERED_LIST_COMMAND`),nn=t.x(`INSERT_ORDERED_LIST_COMMAND`),rn=t.x(`REMOVE_LIST_COMMAND`);function an(e,n){return t.Yn(e.registerCommand(nn,()=>(kt(`number`),!0),1),e.registerCommand(en,e=>{let{listNodeKey:n,newStart:r}=e,i=t.Ht(n);return!!K(i)&&(i.getListType()===`number`&&(i.setStart(r),Pt(i)),!0)},1),e.registerCommand(tn,()=>(kt(`bullet`),!0),1),e.registerCommand(rn,()=>(Nt(),!0),1),e.registerCommand(t.A,()=>Lt(!!(n&&n.restoreNumbering)),1),e.registerCommand(t.Nr,e=>{if(function(){let e=t.tt();if(!t.bn(e)||!e.isCollapsed()||e.anchor.offset!==0)return!1;let n=e.anchor.getNode(),r=t.B(n,G);if(!G(r))return!1;let i=r.getFirstDescendant();if(i===null||!r.is(n)&&!i.is(n))return!1;let a=r.getParent();if(!K(a)||!r.is(a.getFirstChild()))return!1;let o=a.getPreviousSibling();if(!t.$(o)||o.isIsolated()||!o.isKeyboardSelectable()&&o.isInline())return!1;let s=t.Ar().append(...r.getChildren());return a.insertBefore(s),r.remove(),a.isEmpty()&&a.remove(),s.selectStart(),!0}())return e.preventDefault(),!0;let n=t.tt();if(!t.bn(n)||!n.isCollapsed())return!1;let{anchor:r}=n;if(r.offset!==0)return!1;let i=r.getNode();for(;!G(i);){if(i.getPreviousSibling()!==null)return!1;let e=i.getParent();if(e===null)return!1;i=e}return!(!G(i)||!i.collapseAtStart(n))&&(e.preventDefault(),!0)},-8),e.registerNodeTransform(Rt,e=>{let n=e.getFirstChild();if(n){if(t.Jt(n)){let t=n.getStyle(),r=n.getFormat();e.getTextStyle()!==t&&e.setTextStyle(t),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{let n=t.tt();t.bn(n)&&(n.style!==e.getTextStyle()||n.format!==e.getTextFormat())&&n.isCollapsed()&&e.is(n.anchor.getNode())&&e.setTextStyle(n.style).setTextFormat(n.format)}}),e.registerNodeTransform(t.Wt,e=>{let t=e.getParent();if(G(t)&&e.is(t.getFirstChild())){let n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}))}function on(e){let n=e=>{let n=e.getParent();if(K(e.getFirstChild())||!K(n))return;let r=t.B(e,e=>G(e)&&K(e.getParent())&&G(e.getPreviousSibling()));if(r===null&&e.getIndent()>0)e.setIndent(0);else if(G(r)){let t=r.getPreviousSibling();if(G(t)){let r=function(e){let t=e,n=t.getFirstChild();for(;K(n);){let e=n.getLastChild();if(!G(e))break;t=e,n=t.getFirstChild()}return t}(t).getParent();if(K(r)){let t=wt(r);t+1<wt(n)&&e.setIndent(t)}}}};return e.registerNodeTransform(Ut,e=>{let t=[e];for(;t.length>0;){let e=t.shift();if(K(e)){for(let r of e.getChildren())if(G(r)){n(r);let e=r.getFirstChild();K(e)&&t.push(e)}}}})}var sn=class extends t.I{__format;constructor(e,t){super(t),this.__format=e||``}afterCloneFrom(e){super.afterCloneFrom(e),this.__format=e.__format}exportJSON(){return{...super.exportJSON(),format:this.__format||``}}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format||``)}canIndent(){return!1}createDOM(){return t.qt().createElement(`div`)}updateDOM(){return!1}setFormat(e){let t=this.getWritable();return t.__format=e,t}getFormat(){return this.getLatest().__format}isInline(){return!1}};function cn(e){return e instanceof sn}var ln=function(e){return e[e.increment=1]=`increment`,e[e.decrement=2]=`decrement`,e}({}),un=(e,t)=>{if(!t)return e;let n=e;switch(t){case 2:switch(!0){case e>72:n=72;break;case e>=48:n-=12;break;case e>=24:n-=4;break;case e>=14:n-=2;break;case e>=9:--n;break;default:n=8;break}break;case 1:switch(!0){case e<8:n=8;break;case e<12:n+=1;break;case e<20:n+=2;break;case e<36:n+=4;break;case e<=60:n+=12;break;default:n=72;break}break;default:break}return n},dn=(e,r,i,a)=>{let o=e=>(e||=`15px`,e=e.slice(0,-2),`${un(Number(e),i)}px`);e.update(()=>{if(a&&t.pt(t.gn),e.isEditable()){let e=t.tt();e!==null&&n.j(e,{"font-size":r||o})}})},fn=(e,t,n,r=!1)=>{if(n!==``){let i=un(Number(n),t);dn(e,String(i)+`px`,null,r)}else dn(e,null,t,r)},pn=e=>{e.update(()=>{t.pt(t.ft),n.P(t.tt(),()=>t.Ar())})},mn=(e,r,i)=>{r!==i&&e.update(()=>{t.pt(t.ft),n.P(t.tt(),()=>a.rn(i))})},hn=(e,n)=>{n===`bullet`?pn(e):e.update(()=>{t.pt(t.ft),e.dispatchCommand(tn,void 0)})},gn=(e,n)=>{n===`check`?pn(e):e.update(()=>{t.pt(t.ft),e.dispatchCommand(Jt,void 0)})},_n=(e,n)=>{n===`number`?pn(e):e.update(()=>{t.pt(t.ft),e.dispatchCommand(nn,void 0)})},vn=(e,r)=>{r!==`quote`&&e.update(()=>{t.pt(t.ft),n.P(t.tt(),()=>a.en())})},yn=(e,r)=>{r!==`code`&&e.update(()=>{t.pt(t.ft);let e=t.tt();if(e)if(!t.bn(e)||e.isCollapsed())n.P(e,()=>Ie());else{let n=e.getTextContent(),r=Ie();e.insertNodes([r]),e=t.tt(),t.bn(e)&&e.insertRawText(n)}})},bn=(e,r=!1)=>{e.update(()=>{r&&t.pt(t.gn);let e=t.tt();if(t.bn(e)||a.Kt(e)){let r=e.anchor,i=e.focus;if(r.key===i.key&&r.offset===i.offset){if(t.bn(e)){e.setFormat(0),e.setStyle(``);let n=r.getNode();t.vt(n)&&n.isEmpty()&&(n.setTextFormat(0),n.setTextStyle(``))}return}let o=e.getNodes(),s=e.extract();o.forEach((e,c)=>{if(t.Jt(e)){let a=e;c===0&&r.offset!==0&&(a=a.splitText(r.offset)[1]||a),c===o.length-1&&(a=a.splitText(i.offset)[0]||a);let l=s[0];o.length===1&&t.Jt(l)&&(a=l),a.__style!==``&&a.setStyle(``),a.__format!==0&&a.setFormat(0);let u=n.o(a);u.__format!==0&&u.setFormat(``),u.__indent!==0&&u.setIndent(0),e=a}else a.Qt(e)||a.nn(e)?e.replace(t.Ar(),!0):cn(e)&&e.setFormat(``)})}})};function xn(e){let t=e.match(/^(\d+(?:\.\d+)?)(px|pt)$/);return t?[Number(t[1]),t[2]]:null}function Sn(e,t){return t===`pt`?Math.round(e*4/3):e}function Cn(e){return e>=8&&e<=72}function wn(e){let t=xn(e);if(!t)return``;let[n,r]=t;return`${Sn(n,r)}px`}function Tn(e){let t=xn(e);if(!t)return``;let[n,r]=t;return Cn(Sn(n,r))?e:``}function En({selectionFontSize:e,disabled:t,editor:n}){let[r,i]=h.useState(e),[a,o]=h.useState(!1),[s,c]=h.useState(!1),l=e=>{let t=Number(r);if(e.key!==`Tab`){if([`e`,`E`,`+`,`-`].includes(e.key)||isNaN(t)){e.preventDefault(),i(``);return}o(!0),(e.key===`Enter`||e.key===`Escape`)&&(e.preventDefault(),f(t,!s))}},u=()=>{if(c(!1),r!==``&&a){let e=Number(r);f(e)}},d=e=>{c(!0)},f=(e,t=!1)=>{let r=e;e>72?r=72:e<8&&(r=8),i(String(r)),dn(n,String(r)+`px`,null,t),o(!1)};return h.useEffect(()=>{i(e)},[e]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{type:`button`,disabled:t||e!==``&&Number(r)<=8,onClick:e=>{fn(n,ln.decrement,r,P(e))},className:`toolbar-item font-decrement`,"aria-label":`Decrease font size`,title:`Decrease font size (${F.DECREASE_FONT_SIZE})`,children:(0,_.jsx)(`i`,{className:`bi bi-dash format`})}),(0,_.jsx)(`input`,{type:`number`,title:`Font size`,value:r,disabled:t,className:`toolbar-item font-size-input`,min:8,max:72,onChange:e=>i(e.target.value),onClick:d,onKeyDown:l,onBlur:u}),(0,_.jsx)(`button`,{type:`button`,disabled:t||e!==``&&Number(r)>=72,onClick:e=>{fn(n,ln.increment,r,P(e))},className:`toolbar-item font-increment`,"aria-label":`Increase font size`,title:`Increase font size (${F.INCREASE_FONT_SIZE})`,children:(0,_.jsx)(`i`,{className:`bi bi-plus format`})})]})}function Dn({label:e,value:t,onChange:n,placeholder:r=``,"data-test-id":i,type:a=`text`}){let o=(0,h.useId)();return(0,_.jsxs)(`div`,{className:`Input__wrapper mb-2`,children:[(0,_.jsx)(`label`,{className:`Input__label mb-0`,htmlFor:o,children:e}),(0,_.jsx)(`input`,{id:o,type:a,className:`Input__input form-control`,placeholder:r,value:t,onChange:e=>{n(e.target.value)},"data-test-id":i})]})}var On=!1;function kn(e){return/^rgb\(\d+, \d+, \d+\)$/.test(e)?e:``}var An=[`#d0021b`,`#f5a623`,`#f8e71c`,`#8b572a`,`#7ed321`,`#417505`,`#bd10e0`,`#9013fe`,`#4a90e2`,`#50e3c2`,`#b8e986`,`#000000`,`#4a4a4a`,`#9b9b9b`,`#ffffff`],jn=214,Mn=150;function Nn({color:e,onChange:t,onClear:n}){let[r,i]=(0,h.useState)(Vn(`hex`,e)),[a,o]=(0,h.useState)(Vn(`hex`,e).hex),s=(0,h.useRef)(null),c=(0,h.useMemo)(()=>({x:r.hsv.s/100*jn,y:(100-r.hsv.v)/100*Mn}),[r.hsv.s,r.hsv.v]),l=(0,h.useMemo)(()=>({x:r.hsv.h/360*jn}),[r.hsv]),u=(e,n=!1)=>{s.current!==null&&t&&t(e,On,n)},d=(e=!1)=>{s.current!==null&&n&&n(On,e)},f=e=>{if(o(e),/^#[0-9A-Fa-f]{6}$/i.test(e)){let t=Vn(`hex`,e);i(t),u(t.hex)}},p=({x:e,y:t})=>{let n=Vn(`hsv`,{...r.hsv,s:e/jn*100,v:100-t/Mn*100});i(n),o(n.hex),u(n.hex)},m=({x:e})=>{let t=Vn(`hsv`,{...r.hsv,h:e/jn*360});i(t),o(t.hex),u(t.hex)},g=(e,t)=>{let n=Vn(`hex`,t);i(n),o(n.hex),u(n.hex,P(e))};return(0,_.jsxs)(`div`,{className:`color-picker-wrapper`,style:{width:jn},ref:s,children:[(0,_.jsx)(Dn,{label:`Hex`,onChange:f,value:a}),(0,_.jsx)(`button`,{"aria-label":`Remove color`,className:`color-picker-clear`,onClick:e=>d(P(e)),title:`Remove color`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-eraser`})}),(0,_.jsx)(`div`,{className:`color-picker-basic-color`,children:An.map(e=>(0,_.jsx)(`button`,{className:e===r.hex?` active`:``,style:{backgroundColor:e},onClick:t=>g(t,e)},e))}),(0,_.jsx)(Pn,{className:`color-picker-saturation`,style:{backgroundColor:`hsl(${r.hsv.h}, 100%, 50%)`},onChange:p,children:(0,_.jsx)(`div`,{className:`color-picker-saturation_cursor`,style:{backgroundColor:r.hex,left:c.x,top:c.y}})}),(0,_.jsx)(Pn,{className:`color-picker-hue`,onChange:m,children:(0,_.jsx)(`div`,{className:`color-picker-hue_cursor`,style:{backgroundColor:`hsl(${r.hsv.h}, 100%, 50%)`,left:l.x}})}),(0,_.jsx)(`div`,{className:`color-picker-color`,style:{backgroundColor:r.hex}})]})}function Pn({className:e,style:t,onChange:r,children:i}){let a=(0,h.useRef)(null),o=(0,h.useRef)(!1),s=e=>{if(a.current){let{current:t}=a,{width:i,height:o,left:s,top:c}=t.getBoundingClientRect(),l=n.d(t);r({x:Fn(e.clientX/l-s,i,0),y:Fn(e.clientY/l-c,o,0)})}};return(0,_.jsx)(`div`,{ref:a,className:e,style:t,onMouseDown:e=>{if(e.button!==0)return;s(e);let t=e=>{o.current=!0,On=!0,s(e)},n=e=>{o.current&&(On=!1),document.removeEventListener(`mousemove`,t,!1),document.removeEventListener(`mouseup`,n,!1),s(e),o.current=!1};document.addEventListener(`mousemove`,t,!1),document.addEventListener(`mouseup`,n,!1)},children:i})}function Fn(e,t,n){return e>t?t:e<n?n:e}function In(e){if(!e.startsWith(`#`)){let t=document.createElement(`canvas`).getContext(`2d`);if(!t)throw Error(`2d context not supported or canvas already initialized`);return t.fillStyle=e,t.fillStyle}else if(e.length===4||e.length===5)return e=e.split(``).map((e,t)=>t?e+e:`#`).join(``),e;else if(e.length===7||e.length===9)return e;return`#000000`}function Ln(e){let t=(e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,n,r)=>`#`+t+t+n+n+r+r).substring(1).match(/.{2}/g)||[]).map(e=>parseInt(e,16));return{b:t[2],g:t[1],r:t[0]}}function Rn({r:e,g:t,b:n}){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),i=r-Math.min(e,t,n);return{h:i?(r===e?(t-n)/i+(t<n?6:0):r===t?2+(n-e)/i:4+(e-t)/i)*60:0,s:r?i/r*100:0,v:r*100}}function zn({h:e,s:t,v:n}){t/=100,n/=100;let r=~~(e/60),i=e/60-r,a=n*(1-t),o=n*(1-t*i),s=n*(1-t*(1-i)),c=r%6,l=Math.round([n,o,a,a,s,n][c]*255),u=Math.round([s,n,n,o,a,a][c]*255);return{b:Math.round([a,a,s,n,n,o][c]*255),g:u,r:l}}function Bn({b:e,g:t,r:n}){return`#`+[n,t,e].map(e=>e.toString(16).padStart(2,`0`)).join(``)}function Vn(e,t){let n=In(`#121212`),r=Ln(n),i=Rn(r);return e===`hex`?(n=In(t),r=Ln(n),i=Rn(r)):e===`rgb`?(r=t,n=Bn(r),i=Rn(r)):e===`hsv`&&(i=t,r=zn(i),n=Bn(r)),{hex:n,hsv:i,rgb:r}}function Hn(e){let t=``,n=Tn(e.style.fontSize),r=kn(e.style.backgroundColor),i=kn(e.style.color);return n!==``&&n!==`15px`&&(t+=`font-size: ${n};`),r!==``&&r!==`rgb(255, 255, 255)`&&(t+=`background-color: ${r};`),i!==``&&i!==`rgb(0, 0, 0)`&&(t+=`color: ${i};`),t}function Un(){let e={};for(let[n,r]of Object.entries(t.Wt.importDOM()||{}))e[n]=e=>{let n=r(e);return n?{...n,conversion:e=>{let r=n.conversion(e);if(r===null||r.forChild===void 0||r.after!==void 0||r.node!==null)return r;let i=Hn(e);if(i){let{forChild:e}=r;return{...r,forChild:(n,r)=>{let a=e(n,r);return t.Jt(a)&&a.setStyle(a.getStyle()+i),a}}}return r}}:null};return e}function Wn(){return new Map([[t.Et,(e,n)=>{let r=n.exportDOM(e);if(t.Sn(r.element)&&r.element.tagName===`P`){let e=r.after;return{...r,after:n=>{if(e&&(n=e(n)),t.Sn(n)&&n.tagName===`P`){for(let e of n.childNodes)if(t.er(e)){let e=document.createElement(`div`);e.setAttribute(`role`,`paragraph`);for(let t of n.attributes)e.setAttribute(t.name,t.value);for(;n.firstChild;)e.appendChild(n.firstChild);return e}}}}}return r}]])}function Gn(){return{export:Wn(),import:Un()}}function Kn({children:e}){return(0,v.createPortal)((0,_.jsx)(`div`,{className:`FlashMessage__overlay`,role:`dialog`,children:(0,_.jsx)(`p`,{className:`FlashMessage__alert`,role:`alert`,children:e})}),document.body)}var qn=(0,h.createContext)(void 0),Jn={},Yn=1e3,Xn=({children:e})=>{let[t,n]=(0,h.useState)(Jn),r=(0,h.useCallback)((e,t)=>n(e?{duration:t,message:e}:Jn),[]);return(0,h.useEffect)(()=>{if(t.message){let e=setTimeout(()=>n(Jn),t.duration??Yn);return()=>clearTimeout(e)}},[t]),(0,_.jsxs)(qn.Provider,{value:r,children:[e,t.message&&(0,_.jsx)(Kn,{children:t.message})]})},Zn={after:[],before:[]},Qn={after:[],before:[]},$n=`lexical-playground-block-text-links`;function er(){let e=rr();if(e===null)return[];let t=e.getItem($n);if(t===null)return[];try{let n=JSON.parse(t);if(!Array.isArray(n))return e.removeItem($n),[];let r=n.filter(ir);return r.length!==n.length&&(r.length===0?e.removeItem($n):e.setItem($n,JSON.stringify(r))),r}catch{return e.removeItem($n),[]}}function tr(e){let t=rr();if(t!==null){if(e.length===0){t.removeItem($n);return}t.setItem($n,JSON.stringify(e))}}function nr(){let e=rr();e!==null&&e.removeItem($n)}function rr(){return i.d()}function ir(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;return typeof t.id==`string`&&ar(t.kind)&&or(t.from)&&or(t.to)}function ar(e){return e===`direction-to`||e===`direction-from`||e===`no-direction`||e===`weak-direction-to`||e===`weak-direction-from`||e===`weak-no-direction`}function or(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;return sr(t.anchor)&&Array.isArray(t.blockPaths)&&t.blockPaths.every(cr)&&sr(t.focus)}function sr(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;return Number.isInteger(t.offset)&&cr(t.path)}function cr(e){return Array.isArray(e)&&e.length>0&&e.every(e=>Number.isInteger(e)&&e>=0)}var lr=`lexical-playground-editor-state`,ur=`editor-state`,dr=`pwdecrypted:`,fr=`Enter the password to open this shared link.`,pr=`Password was incorrect or the protected link is invalid. Try again or cancel.`,mr=`AES-GCM`,hr=`PBKDF2`,gr=`SHA-256`,_r=256,vr=12,yr=16,br=6e5;function xr(e,t=Lr()){let n=ei(e);return n===null||t===null?null:Or(Br(n),t)}async function Sr(e,t,n=Lr()){let r=ei(e);return r===null||n===null||t.length<1?null:Or(await Zr(r,t),n)}function Cr(){let e=kr();return e!==null&&zr(e).startsWith(`pwdecrypted:`)}function wr(){return qr()!==null}async function Tr(e){let t=await jr(e);return t===null?Dr():(Pr(t),Rr(),t)}function Er(){let e=Ar();return e===null?Dr():(Pr(e),Rr(),e)}function Dr(){let e=Ir();if(e===null)return null;let t=e.getItem(lr);if(t===null)return null;let n=ei(t);return n===null?(e.removeItem(lr),null):(n!==t&&e.setItem(lr,n),n)}function Or(e,t){let n=new URL(t);return n.searchParams.set(ur,e),n.toString()}function kr(){return typeof window>`u`?null:new URLSearchParams(window.location.search).get(ur)}function Ar(){let e=kr();if(e===null)return null;let t=zr(e);if(t.startsWith(`pwdecrypted:`))return null;try{return ei(Vr(t))}catch{return null}}async function jr(e){let t=kr();if(t===null)return null;try{let n=await Mr(zr(t),e);return n===null?null:ei(n)}catch{return null}}async function Mr(e,t){if(!e.startsWith(`pwdecrypted:`))return Vr(e);let n=t?.requestPassword??Nr,r=fr,i=!1;for(;;){let t=await n({message:r,retry:i});if(t===null)return null;try{return await Qr(e,t)}catch{r=pr,i=!0}}}function Nr({message:e}){return typeof window>`u`||typeof window.prompt!=`function`?null:window.prompt(e)}function Pr(e){let t=Ir();t===null||!$r(e)||t.setItem(lr,e)}function Fr(){let e=Ir();e!==null&&(e.removeItem(lr),nr())}function Ir(){return i.d()}function Lr(){return typeof window>`u`?null:window.location.href}function Rr(){if(typeof window>`u`||typeof window.history?.replaceState!=`function`)return;let e=new URL(window.location.href);if(!e.searchParams.has(`editor-state`))return;e.searchParams.delete(ur);let t=e.searchParams.toString(),n=`${e.pathname}${t?`?${t}`:``}${e.hash}`;window.history.replaceState(window.history.state,``,n)}function zr(e){let t=e.trim();return t.length>=2&&t.startsWith(`"`)&&t.endsWith(`"`)?t.slice(1,-1):t}function Br(e){let t=new TextEncoder().encode(e),n=``;return t.forEach(e=>{n+=String.fromCharCode(e)}),globalThis.btoa(n)}function Vr(e){let t=e.replace(/\s+/g,``),n=globalThis.atob(t),r=Uint8Array.from(n,e=>e.charCodeAt(0));return new TextDecoder().decode(r)}function Hr(e){let t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(e),t}function Ur(e){let t=``;return e.forEach(e=>{t+=String.fromCharCode(e)}),globalThis.btoa(t)}function Wr(e){let t=e.replace(/\s+/g,``),n=globalThis.atob(t);return Uint8Array.from(n,e=>e.charCodeAt(0))}function Gr(e){return Ur(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/g,``)}function Kr(e){let t=e.replace(/\s+/g,``).replace(/-/g,`+`).replace(/_/g,`/`),n=(4-t.length%4)%4;return Wr(`${t}${`=`.repeat(n)}`)}function qr(){return!globalThis.crypto?.subtle||!globalThis.crypto.getRandomValues?null:globalThis.crypto}async function Jr(e,t,n){let r=qr();if(r===null)throw Error(`Web Crypto is unavailable.`);let i=await r.subtle.importKey(`raw`,Hr(new TextEncoder().encode(e)),hr,!1,[`deriveKey`]);return r.subtle.deriveKey({name:hr,salt:Hr(t),iterations:n,hash:gr},i,{name:mr,length:_r},!1,[`encrypt`,`decrypt`])}function Yr({iterations:e,salt:t,iv:n,ciphertext:r}){return`${dr}v1.${e}.${Gr(t)}.${Gr(n)}.${Gr(r)}`}function Xr(e){if(!e.startsWith(`pwdecrypted:`))throw Error(`Encrypted share prefix is missing.`);let t=e.slice(12).split(`.`);if(t.length!==5)throw Error(`Encrypted share payload is malformed.`);let[n,r,i,a,o]=t,s=Number.parseInt(r,10);if(n!==`v1`||!Number.isSafeInteger(s)||s<1)throw Error(`Encrypted share payload metadata is invalid.`);return{iterations:s,salt:Kr(i),iv:Kr(a),ciphertext:Kr(o)}}async function Zr(e,t){let n=qr();if(n===null)throw Error(`Web Crypto is unavailable.`);let r=n.getRandomValues(new Uint8Array(yr)),i=n.getRandomValues(new Uint8Array(vr)),a=await Jr(t,r,br),o=await n.subtle.encrypt({name:mr,iv:Hr(i)},a,Hr(new TextEncoder().encode(e)));return Yr({iterations:br,salt:r,iv:i,ciphertext:new Uint8Array(o)})}async function Qr(e,t){let n=qr();if(n===null)throw Error(`Web Crypto is unavailable.`);let{iterations:r,salt:i,iv:a,ciphertext:o}=Xr(e),s=await Jr(t,i,r),c=await n.subtle.decrypt({name:mr,iv:Hr(a)},s,Hr(o));return new TextDecoder().decode(c)}function $r(e){try{let t=JSON.parse(e);return typeof t==`object`&&!!t&&!Array.isArray(t)&&`root`in t}catch{return!1}}function ei(e){if(!$r(e))return null;let t=ti(JSON.parse(e));return t.changed?JSON.stringify(t.value):e}function ti(e){if(Array.isArray(e)){let t=!1,n=e.map(e=>{let n=ti(e);return n.changed&&(t=!0),n.value});return{changed:t,value:t?n:e}}if(typeof e!=`object`||!e)return{changed:!1,value:e};let t=!1,n={};for(let[r,i]of Object.entries(e)){let e=ti(i);e.changed&&(t=!0),n[r]=e.value}return(n.type===`location`||n.type===`hashtag`)&&(n.type=`text`,t=!0),{changed:t,value:t?n:e}}function ni({defaultSelection:e}){let[n]=t.oi();return(0,h.useEffect)(()=>{n.focus(()=>{let e=n.getRootElement(),r=e===null?null:t.Hn(e);e===null||r!==null&&e.contains(r)||e.focus({preventScroll:!0})},{defaultSelection:e})},[e,n]),null}var ri=class extends t.m{$config(){return this.config(`overflow`,{$transform(e){e.isEmpty()&&e.remove()},extends:t.m})}createDOM(e){let n=t.qt().createElement(`span`),r=e.theme.characterLimit;return typeof r==`string`&&(n.className=r),n}updateDOM(e,t){return!1}insertNewAfter(e,t=!0){return this.getParentOrThrow().insertNewAfter(e,t)}excludeFromCopy(){return!0}};function ii(){return t.o(new ri)}function ai(e){return e instanceof ri}function oi(e,i,a=Object.freeze({})){let{strlen:o=e=>e.length,remainingCharacters:s=()=>{}}=a;(0,h.useEffect)(()=>{e.hasNodes([ri])||function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(57)},[e]),(0,h.useEffect)(()=>{let a=e.read(`latest`,r.L),c=0;return t.Yn(e.registerTextContentListener(e=>{a=e}),e.registerUpdateListener(({dirtyLeaves:r,dirtyElements:l})=>{let u=e.isComposing(),d=r.size>0||l.size>0;if(u||!d)return;let f=o(a),p=f>i||c!==null&&c>i;if(s(i-f),c===null||p){let r=function(e,t,n){let r=0,i=0;if(typeof Intl.Segmenter==`function`){let a=new Intl.Segmenter().segment(e);for(let{segment:e}of a){let a=i+n(e);if(a>t)break;i=a,r+=e.length}}else{let a=Array.from(e),o=a.length;for(let e=0;e<o;e++){let o=a[e],s=i+n(o);if(s>t)break;i=s,r+=o.length}}return r}(a,i,o);e.update(()=>{(function(e){let r=n.v(),i=r.length,a=0;for(let o=0;o<i;o+=1){let{node:i}=r[o],s=i.getPreviousSibling();t.vt(s)&&!s.isInline()&&(a+=2);let c=t.Dt(i)&&t.wt(i)!==null,l=t.Dt(i)&&!c&&!t.B(i,ai);if(ai(i)){let r=a;if(a+i.getTextContentSize()<=e){let e=i.getParent(),r=i.getPreviousSibling(),a=i.getNextSibling();n.x(i);let o=t.tt();!t.bn(o)||o.anchor.getNode().isAttached()&&o.focus.getNode().isAttached()||(t.Jt(r)?r.select():t.Jt(a)?a.select():e!==null&&e.select())}else if(r<e){let a=i.getFirstDescendant(),o=r+(a===null?0:a.getTextContentSize());(t.Jt(a)&&a.isSimpleText()||o<=e)&&n.x(i)}}else if(c)a+=i.getTextContentSize();else if(l){let n=a;if(a+=i.getTextContentSize(),a>e&&!ai(i.getParent())){let r=t.tt(),a;if(n<e&&t.Jt(i)&&i.isSimpleText()){let[,t]=i.splitText(e-n);a=si(t)}else a=si(i);r!==null&&t.En(r),ci(a);let o=a.getNextSibling();ai(o)&&ci(o)}}}})(r)},{tag:t.Jr})}c=f}),e.registerCommand(t.It,e=>{let n=t.tt();if(!t.bn(n))return!1;let r=n.anchor.getNode().getParent(),i=r?r.getParent():null,a=i?i.getNextSibling():null;return n.deleteCharacter(e),i&&i.isEmpty()?i.remove():t.vt(a)&&a.isEmpty()&&a.remove(),!0},1))},[e,i,s,o])}function si(e){let t=ii();return e.replace(t),t.append(e),t}function ci(e){let n=e.getPreviousSibling();if(!ai(n))return;let r=e.getFirstChild(),i=n.getChildren(),a=i.length;if(r===null)e.append(...i);else for(let e=0;e<a;e++)r.insertBefore(i[e]);let o=t.tt();if(t.bn(o)){let t=o.anchor,r=t.getNode(),i=o.focus,s=i.getNode();r.is(n)?t.set(e.getKey(),t.offset,`element`):r.is(e)&&t.set(e.getKey(),a+t.offset,`element`),s.is(n)?i.set(e.getKey(),i.offset,`element`):s.is(e)&&i.set(e.getKey(),a+i.offset,`element`)}n.remove()}var li=null;function ui(e){let t=window.TextEncoder===void 0?null:(li===null&&(li=new window.TextEncoder),li);if(t===null){let t=encodeURIComponent(e).match(/%[89ABab]/g);return e.length+(t?t.length:0)}return t.encode(e).length}function di({remainingCharacters:e}){return(0,_.jsx)(`span`,{className:`characters-limit `+(e<0?`characters-limit-exceeded`:``),children:e})}function fi({charset:e=`UTF-16`,maxLength:n=5,renderer:r=di}){let[i]=t.oi(),[a,o]=(0,h.useState)(n);return oi(i,n,(0,h.useMemo)(()=>({remainingCharacters:o,strlen:t=>{if(e===`UTF-8`)return ui(t);if(e===`UTF-16`)return t.length;throw Error(`Unrecognized charset`)}}),[e])),r({remainingCharacters:a})}function pi({disableTakeFocusOnClick:e=!1}){let[n]=t.oi();return(0,h.useEffect)(()=>Yt(n,{disableTakeFocusOnClick:e}),[n,e]),null}var mi=t.ar?h.useLayoutEffect:h.useEffect;function hi({onClear:e}){let[n]=t.oi();return mi(()=>r.X(n,e),[n,e]),null}function gi({newTab:e=!0,disabled:n=!1}){let[i]=t.oi();return(0,h.useEffect)(()=>a.tt(i,r.V({disabled:n,newTab:e})),[i,e,n]),null}function _i({nodeKey:e}){let[n]=t.oi(),[r,i,a]=c.t(e);return(0,h.useEffect)(()=>t.Yn(n.registerCommand(t.K,o=>{let s=n.getElementByKey(e);return t.Zn(o)===s&&(o.shiftKey||a(),i(!r),!0)},1)),[a,n,r,e,i]),(0,h.useEffect)(()=>{let i=n.getElementByKey(e),a=n._config.theme.hrSelected??`selected`;i!==null&&(r?t.Vr(i,a):t.Pt(i,a))},[n,r,e]),null}var vi=class e extends r.W{static getType(){return`horizontalrule`}static clone(t){return new e(t.__key)}static importJSON(e){return bi().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:yi,priority:0})}}decorate(){return(0,_.jsx)(_i,{nodeKey:this.__key})}};function yi(){return{node:bi()}}function bi(){return t.o(new vi)}function xi(){let[e]=t.oi();return(0,h.useEffect)(()=>e.registerCommand(r.U,e=>{let r=t.tt();return t.bn(r)?(r.focus.getNode()!==null&&n.n(bi()),!0):!1},0),[e]),null}function Si({hasStrictIndent:e=!1,shouldPreserveNumbering:n=!1}){let[r]=t.oi();return(0,h.useEffect)(()=>{if(!r.hasNodes([Ut,Rt]))throw Error(`ListPlugin: ListNode and/or ListItemNode not registered on editor`)},[r]),(0,h.useEffect)(()=>t.Yn(an(r,{restoreNumbering:n}),e?on(r):()=>{}),[r,e,n]),function(e){(0,h.useEffect)(()=>an(e),[e])}(r),null}function Ci({onReposition:e}){let[r]=t.oi();return(0,h.useEffect)(()=>n.S(r,e),[r,e]),null}function wi({maxIndent:e,$canIndent:n}){let[i]=t.oi();return(0,h.useEffect)(()=>r.z(i,e,n),[i,e,n]),null}function Ti({hasCellMerge:e=!0,hasCellBackgroundColor:n=!0,hasTabHandler:i=!0,hasHorizontalScroll:o=!1,hasNestedTables:s=!1}){let[c]=t.oi();(0,h.useEffect)(()=>{a.Ct(c)!==o&&(a.Dt(c,o),c.update(t.an))},[c,o]);let l=function(e){let[t]=(0,h.useState)(()=>r.B(e));return t.peek()!==e&&(t.value=e),t}(s);return(0,h.useEffect)(()=>a.Lt(c,{hasNestedTables:l}),[c,l]),(0,h.useEffect)(()=>a.qt(c,i),[c,i]),(0,h.useEffect)(()=>{if(!e)return a.Mt(c)},[c,e]),(0,h.useEffect)(()=>{if(!n)return c.registerNodeTransform(a.Wt,e=>{e.getBackgroundColor()!==null&&e.setBackgroundColor(null)})},[c,n,e]),null}function Ei(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5)}function Di(e){return typeof e!=`object`||!e||Array.isArray(e)?null:e}function Oi(e){let t=e.trim();return t.length>0&&t.length<=200&&!/[<>{};]/.test(t)}function ki(e){let t=Di(e);if(t===null)return;let n={};return typeof t.fontFamily==`string`&&Oi(t.fontFamily)&&(n.fontFamily=t.fontFamily.trim()),t.fontStyle===`italic`&&(n.fontStyle=`italic`),typeof t.fontWeight==`string`&&Oi(t.fontWeight)&&(n.fontWeight=t.fontWeight.trim()),Object.keys(n).length===0?void 0:n}function Ai(e){if(!Array.isArray(e))return;let t=[];for(let n=0;n<e.length;n++){let r=Di(e[n]);if(r===null||typeof r.text!=`string`)return;if(r.text.length===0)continue;let i=ki(r.style);t.push(i===void 0?{text:r.text}:{style:i,text:r.text})}return t.length===0?void 0:t}function ji(e){if(!(e===void 0||e.length===0))return e.map(e=>({...e.style===void 0?{}:{style:{...e.style.fontFamily===void 0?{}:{fontFamily:e.style.fontFamily},...e.style.fontStyle===void 0?{}:{fontStyle:e.style.fontStyle},...e.style.fontWeight===void 0?{}:{fontWeight:e.style.fontWeight}}},text:e.text}))}function Mi(e,t,n,r,i){return{author:t,content:e,deleted:i!==void 0&&i,id:n===void 0?Ei():n,timeStamp:r===void 0?performance.timeOrigin+performance.now():r,type:`comment`}}function Ni(e,t,n,r){let i=ji(r);return{comments:t,id:n===void 0?Ei():n,quote:e,...i===void 0?{}:{quoteSegments:i},type:`thread`}}function Pi(e){return{author:e.author,content:e.content,deleted:e.deleted,id:e.id,timeStamp:e.timeStamp,type:`comment`}}function Fi(e){let t=ji(e.quoteSegments);return{comments:Array.from(e.comments),id:e.id,quote:e.quote,...t===void 0?{}:{quoteSegments:t},type:`thread`}}function Ii(e){return e.map(e=>e.type===`thread`?{comments:e.comments.map(Pi),id:e.id,quote:e.quote,...e.quoteSegments===void 0?{}:{quoteSegments:ji(e.quoteSegments)},type:`thread`}:Pi(e))}function Li(e){return{author:e.author,content:`[Deleted Comment]`,deleted:!0,id:e.id,timeStamp:e.timeStamp,type:`comment`}}function Ri(e){let t=e._changeListeners;for(let e of t)e()}var zi=class{_comments;_changeListeners;constructor(e=[]){this._comments=Ii(e),this._changeListeners=new Set}getComments(){return this._comments}addComment(e,t,n){let r=Array.from(this._comments);if(t!==void 0&&e.type===`comment`)for(let i=0;i<r.length;i++){let a=r[i];if(a.type===`thread`&&a.id===t.id){let t=Fi(a);r.splice(i,1,t);let o=n===void 0?t.comments.length:n;t.comments.splice(o,0,e);break}}else{let t=n===void 0?r.length:n;r.splice(t,0,e)}this._comments=r,Ri(this)}deleteCommentOrThread(e,t){let n=Array.from(this._comments),r=null;if(t!==void 0)for(let i=0;i<n.length;i++){let a=n[i];if(a.type===`thread`&&a.id===t.id){let t=Fi(a);n.splice(i,1,t);let o=t.comments;r=o.indexOf(e),o.splice(r,1);break}}else r=n.indexOf(e),n.splice(r,1);return this._comments=n,Ri(this),e.type===`comment`?{index:r,markedComment:Li(e)}:null}registerOnChange(e){let t=this._changeListeners;return t.add(e),()=>{t.delete(e)}}};function Bi(e){let[t,n]=(0,h.useState)(e.getComments());return(0,h.useEffect)(()=>e.registerOnChange(()=>{n(e.getComments())}),[e]),t}var Vi=`lexical-playground-comments`,Hi=`lexical-playground-comments-panel-open`;function Ui(){let e=Ji();if(e===null)return[];let t=e.getItem(Vi);if(t===null)return[];let n=Yi(t);return n===null?(e.removeItem(Vi),[]):(n!==t&&e.setItem(Vi,n),JSON.parse(n))}function Wi(e){let t=Ji();if(t===null)return;let n=Zi(e);if(n===null||n.length===0){t.removeItem(Vi);return}t.setItem(Vi,JSON.stringify(n))}function Gi(){let e=Ji();if(e===null)return!1;let t=e.getItem(Hi);if(t===null)return!1;let n=Xi(t);return n===null?(e.removeItem(Hi),!1):(n!==t&&e.setItem(Hi,n),n===`true`)}function Ki(e){let t=Ji();t!==null&&t.setItem(Hi,JSON.stringify(e))}function qi(){let e=Ji();e!==null&&(e.removeItem(Vi),e.removeItem(Hi))}function Ji(){return i.d()}function Yi(e){try{let t=Zi(JSON.parse(e));return t===null?null:JSON.stringify(t)}catch{return null}}function Xi(e){try{let t=JSON.parse(e);return typeof t==`boolean`?JSON.stringify(t):null}catch{return null}}function Zi(e){if(!Array.isArray(e))return null;let t=[];for(let n=0;n<e.length;n++){let r=Qi(e[n]);if(r===null)return null;t.push(r)}return t}function Qi(e){let t=ta(e);return t===null?null:t.type===`thread`?ea(t):t.type===`comment`?$i(t):null}function $i(e){let t=ta(e);return t===null||typeof t.author!=`string`||typeof t.content!=`string`||typeof t.deleted!=`boolean`||typeof t.id!=`string`||typeof t.timeStamp!=`number`||!Number.isFinite(t.timeStamp)||t.type!==`comment`?null:{author:t.author,content:t.content,deleted:t.deleted,id:t.id,timeStamp:t.timeStamp,type:`comment`}}function ea(e){if(!Array.isArray(e.comments)||typeof e.id!=`string`||typeof e.quote!=`string`||e.type!==`thread`)return null;let t=[];for(let n=0;n<e.comments.length;n++){let r=$i(e.comments[n]);if(r===null)return null;t.push(r)}let n=Ai(e.quoteSegments);return{comments:t,id:e.id,quote:e.quote,...n===void 0?{}:{quoteSegments:n},type:`thread`}}function ta(e){return typeof e!=`object`||!e||Array.isArray(e)?null:e}var na=`lexical-playground-editor-zoom-percent`;function ra(){let e=i.d();if(e===null)return null;let t=e.getItem(na);if(t===null)return null;let n=Number(t);return Number.isFinite(n)?n:(e.removeItem(na),null)}function ia(e){let t=i.d();if(t!==null){if(!Number.isFinite(e)){t.removeItem(na);return}t.setItem(na,String(e))}}function aa(e,t=Object.freeze({})){return{editorState:e.toJSON(),lastSaved:t.lastSaved||Date.now(),source:t.source||`Lexical`,version:`0.48.0`}}function oa(e,t){let n=typeof t==`string`?JSON.parse(t):t;return e.parseEditorState(n.editorState)}function sa(e){(function(e){let t=document.createElement(`input`);t.type=`file`,t.accept=`.lexical`,t.addEventListener(`change`,t=>{let n=t.target;if(n.files){let t=n.files[0],r=new FileReader;r.readAsText(t,`UTF-8`),r.onload=t=>{if(t.target){let n=t.target.result;e(n)}}}}),t.click()})(n=>{e.setEditorState(oa(e,n)),e.dispatchCommand(t.dt,void 0)})}function ca(e,t=Object.freeze({})){let n=new Date;(function(e,t){let n=document.createElement(`a`),r=document.body;if(r===null)return;r.appendChild(n),n.style.display=`none`;let i=JSON.stringify(e),a=new Blob([i],{type:`octet/stream`}),o=window.URL.createObjectURL(a);n.href=o,n.download=t,n.click(),window.URL.revokeObjectURL(o),n.remove()})(aa(e.getEditorState(),{...t,lastSaved:n.getTime()}),`${t.fileName||n.toISOString()}.lexical`)}function la(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]?n[e].push(r):n[e]=[r])}return n}function ua(e){let t=la(e,e=>e.type);return{element:t.element||[],multilineElement:t[`multiline-element`]||[],textFormat:t[`text-format`]||[],textMatch:t[`text-match`]||[]}}var da=/[!-/:-@[-`{-~\s]/,fa=/\s/,pa=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/,ma=/^\s{0,3}$/;function ha(e){if(!t.kn(e))return!1;let n=e.getFirstChild();return n==null||e.getChildrenSize()===1&&t.Jt(n)&&ma.test(n.getTextContent())}function ga(e){return e.replace(/\\([!-/:-@[-`{-~])/g,`$1`).replace(/&#(\d+);/g,(e,t)=>String.fromCodePoint(Number(t)))}var _a=/^(\s*)(\d{1,})\.\s/,va=/^(\s*)[-*+]\s/,ya=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,ba=/^(#{1,6})\s/,xa=/^>\s/,Sa=/^([ \t]*`{3,})([\w-]+)?[ \t]?/,Ca=/^[ \t]*`{3,}$/,wa=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,Ta=/^(?:\|)(.+)(?:\|)\s?$/;function Ea(e){if(e[0]!==`|`)return!1;let{length:t}=e,n=1,r=0;for(;n<t;){let t=n;for(e[t]===` `&&t++,e[t]===`:`&&t++;e[t]===`-`;)t++;if(e[t]===`:`&&t++,e[t]===` `&&t++,e[t]!==`|`)break;r++,n=t+1}return r>0&&(n===t||n===t-1&&/\s/.test(e[n]))}var Da=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,Oa=/^<\/[a-z_][\w-]*\s*>/i,ka=e=>RegExp(`(?:${e.source})$`,e.flags),Aa=t.rr(`mdListMarker`,{parse:e=>typeof e==`string`&&/^[-*+]$/.test(e)?e:`-`,resetOnCopyNode:!0}),ja=t.rr(`mdCodeFence`,{parse:e=>typeof e==`string`&&/^`{3,}$/.test(e)?e:"```",resetOnCopyNode:!0}),Ma=t.rr(`mdHardLineBreak`,{parse:e=>typeof e==`string`&&/^(\\| {2,})$/.test(e)?e:``,resetOnCopyNode:!0});function Na(e){if(e.endsWith(`\\`))return[e.slice(0,-1),`\\`];let t=e.match(/^(.*?\S)( {2,})$/);return t?[t[1],t[2]]:null}function Pa(e){let n=e.getChildren(),r=n.length-1,i=n[r];if(!t.Jt(i))return null;let a=i.getTextContent(),o=Na(a);if(o!==null){let[e,t]=o;return i.setTextContent(e),t}return/^ {2,}$/.test(a)&&function(e,n){for(let r=n-1;r>=0;r--){if(t._r(e[r]))return!1;if(/\S/.test(e[r].getTextContent()))return!0}return!1}(n,r)?(i.setTextContent(``),a):null}function Fa(e){let n=t.Bt(),r=Pa(e);return r!==null&&t.jt(n,Ma,r),n}var Ia=e=>(t,n,r,i)=>{let a=e(r);a.append(...n),t.replace(a),i||a.select(0,0)},La=e=>(n,r,i,a)=>{let o=n.getPreviousSibling(),s=n.getNextSibling(),c=Ht(e===`check`?i[3]===`x`:void 0),l=i[0].trim()[0],u=e!==`bullet`&&e!==`check`||l!==Aa.parse(l)?void 0:l;if(K(s)&&s.getListType()===e){u&&t.jt(s,Aa,u);let r=s.getFirstChild();r===null?s.append(c):r.insertBefore(c),e===`number`&&s.setStart(Number(i[2])),n.remove()}else if(K(o)&&o.getListType()===e)u&&t.jt(o,Aa,u),o.append(c),n.remove();else{let r=qt(e,e===`number`?Number(i[2]):void 0);u&&t.jt(r,Aa,u),r.append(c),n.replace(r)}c.append(...r),a||c.select(0,0);let d=function(e){let t=e.match(/\t/g),n=e.match(/ /g),r=0;return t&&(r+=t.length),n&&(r+=Math.floor(n.length/4)),r}(i[1]);d&&c.setIndent(d)},Ra=(e,n,r,i)=>{let a=[],o=e.getChildren(),s=0;for(let c of o)if(G(c)){if(c.getChildrenSize()===1){let e=c.getFirstChild();if(K(e)){let t=Ra(e,n,r+1,i);t&&a.push(t);continue}}if(i&&!c.getChildren().some(e=>e.isSelected(i)))continue;let o=` `.repeat(4*r),l=e.getListType(),u=t.Yr(e,Aa),d=l===`number`?`${e.getStart()+s}. `:l===`check`?`${u} [${c.getChecked()?`x`:` `}] `:u+` `,f=n(c);l!==`number`&&(f=f.replace(/^(\s{0,3}\d+)(\.\s)/,`$1\\$2`)),a.push(o+d+f),s++}return a.join(`
7
7
  `)},za={dependencies:[a.tn],export:(e,t)=>{if(!a.Qt(e))return null;let n=Number(e.getTag().slice(1));return`#`.repeat(n)+` `+t(e)},regExp:ba,replace:Ia(e=>a.rn(`h`+e[1].length)),triggerOnEnter:!0,type:`element`},Ba={dependencies:[a.$t],export:(e,t)=>{if(!a.nn(e))return null;let n=t(e).split(`
8
8
  `),r=[];for(let e of n)r.push(`> `+e);return r.join(`
9
9
  `)},regExp:xa,replace:(e,t,n,r)=>{if(r){let n=e.getPreviousSibling();if(a.nn(n))return n.splice(n.getChildrenSize(),0,[Fa(n),...t]),void e.remove()}let i=a.en();i.append(...t),e.replace(i),r||i.select(0,0)},triggerOnEnter:!0,type:`element`},Va={dependencies:[Fe],export:e=>{if(!W(e))return null;let n=e.getTextContent(),r=t.Yr(e,ja);if(n.indexOf(r)>-1){let e=n.match(/`{3,}/g);if(e){let t=Math.max(...e.map(e=>e.length));r="`".repeat(t+1)}}return r+(e.getLanguage()||``)+(n?`
@@ -548,7 +548,7 @@ ${a}
548
548
  </body>
549
549
  </html>`}function Yl(e){let t=[];return{html:e.replace(/src="data:(image\/[a-z0-9.+-]+);base64,([^"\s]+)"/gi,(e,n,r)=>{let i=n.split(`/`)[1].toLowerCase(),a=i===`svg+xml`?`svg`:i===`jpeg`?`jpg`:i.replace(/[^a-z0-9]/g,``)||`img`,o=`word-export-image-${t.length+1}.${a}`,s=`${jc}${o}`;return t.push({contentLocation:s,contentType:n,encodedData:r.replace(/\s/g,``)}),`src="${o}"`}),resources:t}}function Xl(e){let t=`----=_NextPart_LexicalDocxExport`,{html:n,resources:r}=Yl(e),i=al(nl(n));return[`MIME-Version: 1.0`,`Content-Type: multipart/related; boundary="${t}"; type="text/html"`,``,`--${t}`,`Content-Type: text/html; charset="utf-8"`,`Content-Transfer-Encoding: base64`,`Content-Location: ${jc}lexical-document.html`,``,i,...r.flatMap(e=>[`--${t}`,`Content-Type: ${e.contentType}`,`Content-Transfer-Encoding: base64`,`Content-Location: ${e.contentLocation}`,``,sl(e.encodedData)]),`--${t}--`].join(`\r
550
550
  `)}function Zl(){return`BibleNote ${new Date().toISOString().replace(/[:.]/g,`-`)}.docx`}function Ql(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.style.display=`none`,document.body.appendChild(r),r.click(),r.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),0)}function $l(e,t=`web`,n){let r=Xl(Jl(e,t,n)),i=!!n?.serializedEditorState,a=[{name:`[Content_Types].xml`,data:nl(Kc)},{name:`_rels/.rels`,data:nl(qc)},{name:`word/document.xml`,data:nl(Zc(t))},{name:`word/_rels/document.xml.rels`,data:nl(Qc(i))},{name:`word/afchunk.mht`,data:nl(r)}];n?.serializedEditorState&&a.push({name:`customXml/bible-note.xml`,data:nl($c(n.serializedEditorState))});let o=il(a);return new Blob([o],{type:Ac})}async function eu(e,t=`web`,n={}){let r=JSON.stringify(e.getEditorState());return $l(await Wl(e,r,n),t,{bodyClassName:Gl(),bodyDataset:Kl(),serializedEditorState:r})}async function tu(e,t=`web`,n={}){let r=Zl(),i=await eu(e,t,n),a=No();if(a){await a.saveFile({data:new Uint8Array(await i.arrayBuffer()),defaultFileName:r,filters:[{extensions:[`docx`],name:`Microsoft Word document`}]});return}Ql(i,r)}var nu=e.t(((e,t)=>{(function(n){typeof e==`object`&&t!==void 0?t.exports=n():typeof define==`function`&&define.amd?define([],n):(typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this).JSZip=n()})(function(){return function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=typeof require==`function`&&require;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=Error(`Cannot find module '`+o+`'`);throw l.code=`MODULE_NOT_FOUND`,l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=typeof require==`function`&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";var r=e(`./utils`),i=e(`./support`),a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;n.encode=function(e){for(var t,n,i,o,s,c,l,u=[],d=0,f=e.length,p=f,m=r.getTypeOf(e)!==`string`;d<e.length;)p=f-d,i=m?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|n>>4,c=1<p?(15&n)<<2|i>>6:64,l=2<p?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join(``)},n.decode=function(e){var t,n,r,o,s,c,l=0,u=0,d=`data:`;if(e.substr(0,d.length)===d)throw Error(`Invalid base64 input, it looks like a data url.`);var f,p=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,``)).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&p--,e.charAt(e.length-2)===a.charAt(64)&&p--,p%1!=0)throw Error(`Invalid base64 input, bad content length.`);for(f=i.uint8array?new Uint8Array(0|p):Array(0|p);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(o=a.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,r=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),f[u++]=t,s!==64&&(f[u++]=n),c!==64&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e(`./external`),i=e(`./stream/DataWorker`),a=e(`./stream/Crc32Probe`),o=e(`./stream/DataLengthProbe`);function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o(`data_length`)),t=this;return e.on(`end`,function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error(`Bug : uncompressed data size mismatch`)}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo(`compressedSize`,this.compressedSize).withStreamInfo(`uncompressedSize`,this.uncompressedSize).withStreamInfo(`crc32`,this.crc32).withStreamInfo(`compression`,this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o(`uncompressedSize`)).pipe(t.compressWorker(n)).pipe(new o(`compressedSize`)).withStreamInfo(`compression`,t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e(`./stream/GenericWorker`);n.STORE={magic:`\0\0`,compressWorker:function(){return new r(`STORE compression`)},uncompressWorker:function(){return new r(`STORE decompression`)}},n.DEFLATE=e(`./flate`)},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e(`./utils`),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return e!==void 0&&e.length?r.getTypeOf(e)===`string`?function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r=null;r=typeof Promise<`u`?Promise:e(`lie`),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Uint32Array<`u`,i=e(`pako`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=r?`uint8array`:`array`;function c(e,t){o.call(this,`FlateWorker/`+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic=`\b\0`,a.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c(`Deflate`,e)},n.uncompressWorker=function(){return new c(`Inflate`,{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r=``;for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,u){var d,f,p=e.file,m=e.compression,h=u!==s.utf8encode,g=a.transformTo(`string`,u(p.name)),_=a.transformTo(`string`,s.utf8encode(p.name)),v=p.comment,y=a.transformTo(`string`,u(v)),b=a.transformTo(`string`,s.utf8encode(v)),x=_.length!==p.name.length,S=b.length!==v.length,C=``,w=``,T=``,E=p.dir,D=p.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var k=0;t&&(k|=8),h||!x&&!S||(k|=2048);var A=0,j=0;E&&(A|=16),o===`UNIX`?(j=798,A|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(p.unixPermissions,E)):(j=20,A|=function(e){return 63&(e||0)}(p.dosPermissions)),d=D.getUTCHours(),d<<=6,d|=D.getUTCMinutes(),d<<=5,d|=D.getUTCSeconds()/2,f=D.getUTCFullYear()-1980,f<<=4,f|=D.getUTCMonth()+1,f<<=5,f|=D.getUTCDate(),x&&(w=r(1,1)+r(c(g),4)+_,C+=`up`+r(w.length,2)+w),S&&(T=r(1,1)+r(c(y),4)+b,C+=`uc`+r(T.length,2)+T);var M=``;return M+=`
551
- \0`,M+=r(k,2),M+=m.magic,M+=r(d,2),M+=r(f,2),M+=r(O.crc32,4),M+=r(O.compressedSize,4),M+=r(O.uncompressedSize,4),M+=r(g.length,2),M+=r(C.length,2),{fileRecord:l.LOCAL_FILE_HEADER+M+g+C,dirRecord:l.CENTRAL_FILE_HEADER+r(j,2)+M+r(y.length,2)+`\0\0\0\0`+r(A,4)+r(i,4)+g+C+y}}var a=e(`../utils`),o=e(`../stream/GenericWorker`),s=e(`../utf8`),c=e(`../crc32`),l=e(`../signature`);function u(e,t,n,r){o.call(this,`ZipFileWorker`),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,o){var s=a.transformTo(`string`,o(i));return l.CENTRAL_DIRECTORY_END+`\0\0\0\0`+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on(`error`,function(e){t.error(e)}),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch{}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var r=e(`../compressions`),i=e(`./ZipFileWorker`);n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw Error(n+` is not a valid compression method !`);return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo(`file`,{name:e,dir:c,date:l,comment:n.comment||``,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)}),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw Error(`The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.`);this.files=Object.create(null),this.comment=null,this.root=``,this.clone=function(){var e=new r;for(var t in this)typeof this[t]!=`function`&&(e[t]=this[t]);return e}}(r.prototype=e(`./object`)).loadAsync=e(`./load`),r.support=e(`./support`),r.defaults=e(`./defaults`),r.version=`3.10.2`,r.loadAsync=function(e,t){return new r().loadAsync(e,t)},r.external=e(`./external`),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e(`./utils`),i=e(`./external`),a=e(`./utf8`),o=e(`./zipEntries`),s=e(`./stream/Crc32Probe`),c=e(`./nodejsUtils`);function l(e){return new i.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on(`error`,function(e){n(e)}).on(`end`,function(){r.streamInfo.crc32===e.decompressed.crc32?t():n(Error(`Corrupted zip : CRC32 mismatch`))}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(Error(`JSZip can't accept a stream when loading a zip file.`)):r.prepareContent(`the loaded zip file`,e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new o(t);return n.load(e),n}).then(function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(l(r[a]));return i.Promise.all(n)}).then(function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=r.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e(`../utils`),i=e(`../stream/GenericWorker`);function a(e,t){i.call(this,`Nodejs stream input adapter for `+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on(`data`,function(e){t.push({data:e,meta:{percent:0}})}).on(`error`,function(e){t.isPaused?this.generatedError=e:t.error(e)}).on(`end`,function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e(`readable-stream`).Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on(`data`,function(e,t){i.push(e)||i._helper.pause(),n&&n(t)}).on(`error`,function(e){i.emit(`error`,e)}).on(`end`,function(){i.push(null)})}e(`../utils`).inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:typeof Buffer<`u`,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e==`number`)throw Error(`The "data" argument must not be a number`);return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on==`function`&&typeof e.pause==`function`&&typeof e.resume==`function`}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},c);s.date=s.date||new Date,s.compression!==null&&(s.compression=s.compression.toUpperCase()),typeof s.unixPermissions==`string`&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=h(e)),s.createFolders&&(r=m(e))&&g.call(this,r,!0);var d=i===`string`&&!1===s.binary&&!1===s.base64;n&&n.binary!==void 0||(s.binary=!d),(t instanceof l&&t.uncompressedSize===0||s.dir||!t||t.length===0)&&(s.base64=!1,s.binary=!0,t=``,s.compression=`STORE`,i=`string`);var _=null;_=t instanceof l||t instanceof o?t:f.isNode&&f.isStream(t)?new p(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var v=new u(e,_,s);this.files[e]=v}var i=e(`./utf8`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=e(`./stream/StreamHelper`),c=e(`./defaults`),l=e(`./compressedObject`),u=e(`./zipObject`),d=e(`./generate`),f=e(`./nodejsUtils`),p=e(`./nodejs/NodejsStreamInputAdapter`),m=function(e){e.slice(-1)===`/`&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf(`/`);return 0<t?e.substring(0,t):``},h=function(e){return e.slice(-1)!==`/`&&(e+=`/`),e},g=function(e,t){return t=t===void 0?c.createFolders:t,e=h(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function _(e){return Object.prototype.toString.call(e)===`[object RegExp]`}t.exports={load:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(arguments.length!==1)return e=this.root+e,r.call(this,e,t,n),this;if(_(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(_(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||=(e.slice(-1)!==`/`&&(e+=`/`),this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:`STORE`,compressionOptions:null,type:``,platform:`DOS`,comment:null,mimeType:`application/zip`,encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),n.type===`binarystring`&&(n.type=`string`),!n.type)throw Error(`No output type specified.`);a.checkSupport(n.type),n.platform!==`darwin`&&n.platform!==`freebsd`&&n.platform!==`linux`&&n.platform!==`sunos`||(n.platform=`UNIX`),n.platform===`win32`&&(n.platform=`DOS`);var r=n.comment||this.comment||``;t=d.generateWorker(this,n,r)}catch(e){(t=new o(`error`)).error(e)}return new s(t,n.type||`string`,n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e||={}).type||(e.type=`nodebuffer`),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){"use strict";t.exports=e(`stream`)},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e(`./DataReader`);function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e(`../utils`);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error(`End of data reached (data length = `+this.length+`, asked index = `+e+`). Corrupted zip ?`)},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo(`string`,this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e(`./Uint8ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e(`./DataReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e(`./ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array;var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e(`../utils`),i=e(`../support`),a=e(`./ArrayReader`),o=e(`./StringReader`),s=e(`./NodeBufferReader`),c=e(`./Uint8ArrayReader`);t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),t!==`string`||i.uint8array?t===`nodebuffer`?new s(e):i.uint8array?new c(r.transformTo(`uint8array`,e)):new a(r.transformTo(`array`,e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER=`PK`,n.CENTRAL_FILE_HEADER=`PK`,n.CENTRAL_DIRECTORY_END=`PK`,n.ZIP64_CENTRAL_DIRECTORY_LOCATOR=`PK\x07`,n.ZIP64_CENTRAL_DIRECTORY_END=`PK`,n.DATA_DESCRIPTOR=`PK\x07\b`},{}],24:[function(e,t,n){"use strict";var r=e(`./GenericWorker`),i=e(`../utils`);function a(e){r.call(this,`ConvertWorker to `+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e(`./GenericWorker`),i=e(`../crc32`);function a(){r.call(this,`Crc32Probe`),this.withStreamInfo(`crc32`,0)}e(`../utils`).inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataLengthProbe for `+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataWorker`);var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=``,this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case`string`:e=this.data.substring(this.index,t);break;case`uint8array`:e=this.data.subarray(this.index,t);break;case`array`:case`nodebuffer`:e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||`default`,this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit(`data`,e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(`end`),this.cleanUp(),this.isFinished=!0}catch(e){this.emit(`error`,e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit(`error`,e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.end()}),e.on(`error`,function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e=`Worker `+this.name;return this.previous?this.previous+` -> `+e:e}},t.exports=r},{}],29:[function(e,t,n){"use strict";var r=e(`../utils`),i=e(`./ConvertWorker`),a=e(`./GenericWorker`),o=e(`../base64`),s=e(`../support`),c=e(`../external`),l=null;if(s.nodestream)try{l=e(`../nodejs/NodejsStreamOutputAdapter`)}catch{}function u(e,t){return new c.Promise(function(n,i){var a=[],s=e._internalType,c=e._outputType,l=e._mimeType;e.on(`data`,function(e,n){a.push(e),t&&t(n)}).on(`error`,function(e){a=[],i(e)}).on(`end`,function(){try{n(function(e,t,n){switch(e){case`blob`:return r.newBlob(r.transformTo(`arraybuffer`,t),n);case`base64`:return o.encode(t);default:return r.transformTo(e,t)}}(c,function(e,t){var n,r=0,i=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case`string`:return t.join(``);case`array`:return Array.prototype.concat.apply([],t);case`uint8array`:for(i=new Uint8Array(a),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case`nodebuffer`:return Buffer.concat(t);default:throw Error(`concat : unsupported type '`+e+`'`)}}(s,a),l))}catch(e){i(e)}a=[]}).resume()})}function d(e,t,n){var o=t;switch(t){case`blob`:case`arraybuffer`:o=`uint8array`;break;case`base64`:o=`string`}try{this._internalType=o,this._outputType=t,this._mimeType=n,r.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(e){this._worker=new a(`error`),this._worker.error(e)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var n=this;return e===`data`?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport(`nodestream`),this._outputType!==`nodebuffer`)throw Error(this._outputType+` is not supported by this method`);return new l(this,{objectMode:this._outputType!==`nodebuffer`},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,n.nodebuffer=typeof Buffer<`u`,n.uint8array=typeof Uint8Array<`u`,typeof ArrayBuffer>`u`)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=new Blob([r],{type:`application/zip`}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=i.getBlob(`application/zip`).size===0}catch{n.blob=!1}}}try{n.nodestream=!!e(`readable-stream`).Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e(`./utils`),i=e(`./support`),a=e(`./nodejsUtils`),o=e(`./stream/GenericWorker`),s=Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;s[254]=s[254]=1;function l(){o.call(this,`utf-8 decode`),this.leftOver=null}function u(){o.call(this,`utf-8 encode`)}n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,`utf-8`):function(e){var t,n,r,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):Array(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo(`nodebuffer`,e).toString(`utf-8`):function(e){var t,n,i,a,o=e.length,c=Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,t+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?`uint8array`:`array`,e))},r.inherits(l,o),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?`uint8array`:`array`,e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+s[e[n]]>t?n:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e(`./support`),i=e(`./base64`),a=e(`./nodejsUtils`),o=e(`./external`);function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e(`setimmediate`),n.newBlob=function(e,t){n.checkSupport(`blob`);try{return new Blob([e],{type:t})}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch{throw Error(`Bug : can't construct the Blob.`)}}};var l={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)t===`array`||t===`nodebuffer`?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join(``)},stringifyByChar:function(e){for(var t=``,n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),i=!0;if(r===`uint8array`?i=l.applyCanBeUsed.uint8array:r===`nodebuffer`&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return l.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var f={};f.string={string:s,array:function(e){return c(e,Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,a.allocBuffer(e.length))}},f.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},f.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:u,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},f.nodebuffer={string:u,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){return t||=``,e?(n.checkSupport(e),f[n.getTypeOf(t)][e](t)):t},n.resolve=function(e){for(var t=e.split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];i===`.`||i===``&&r!==0&&r!==t.length-1||(i===`..`?n.pop():n.push(i))}return n.join(`/`)},n.getTypeOf=function(e){if(typeof e==`string`)return`string`;var t=Object.prototype.toString.call(e);return t===`[object Array]`?`array`:r.nodebuffer&&a.isBuffer(e)?`nodebuffer`:r.uint8array&&t===`[object Uint8Array]`?`uint8array`:r.arraybuffer&&t===`[object ArrayBuffer]`?`arraybuffer`:void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw Error(e+` is not supported by this platform`)},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r=``;for(n=0;n<(e||``).length;n++)r+=`\\x`+((t=e.charCodeAt(n))<16?`0`:``)+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&n[t]===void 0&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,l){return o.Promise.resolve(t).then(function(t){return r.blob&&(t instanceof Blob||[`[object File]`,`[object Blob]`].indexOf(Object.prototype.toString.call(t))!==-1)?Blob.prototype.arrayBuffer===void 0?typeof FileReader<`u`?new o.Promise(function(e,n){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(t)}):o.Promise.reject(Error(e+` is a Blob, but we have no way of reading it.`)):t.arrayBuffer():t}).then(function(t){var u=n.getTypeOf(t);return u?(u===`arraybuffer`?t=n.transformTo(`uint8array`,t):u===`string`&&(l?t=i.decode(t):a&&!0!==s&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):Array(e.length))}(t))),t):o.Promise.reject(Error(`Can't read the data of '`+e+`'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?`))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){"use strict";var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./signature`),o=e(`./zipEntry`),s=e(`./support`);function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw Error(`Corrupted zip or bug: unexpected signature (`+i.pretty(t)+`, expected `+i.pretty(e)+`)`)}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?`uint8array`:`array`,n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error(`Multi-volumes zip are not supported`)},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw Error(`Corrupted zip or bug: expected `+this.centralDirRecords+` records in central dir, got `+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?Error(`Corrupted zip: can't find end of central directory`):Error(`Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html`);this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error(`Corrupted zip: can't find the ZIP64 end of central directory locator`);if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error(`Corrupted zip: can't find the ZIP64 end of central directory`);this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw Error(`Corrupted zip: missing `+Math.abs(r)+` bytes.`)},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./compressedObject`),o=e(`./crc32`),s=e(`./utf8`),c=e(`./compressions`),l=e(`./support`);function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw Error(`Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)`);if((t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod))===null)throw Error(`Corrupted zip : compression `+i.pretty(this.compressionMethod)+` unknown (inner file : `+i.transformTo(`string`,this.fileName)+`)`);this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error(`Encrypted zip are not supported`);e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e==0&&(this.dosPermissions=63&this.externalFileAttributes),e==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!==`/`||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||={};e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?`uint8array`:`array`;if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(r!==null)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return t.readInt(1)===1&&o(this.fileName)===t.readInt(4)?s.utf8decode(t.readData(e.length-5)):null}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return t.readInt(1)===1&&o(this.fileComment)===t.readInt(4)?s.utf8decode(t.readData(e.length-5)):null}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e(`./stream/StreamHelper`),a=e(`./stream/DataWorker`),o=e(`./utf8`),s=e(`./compressedObject`),c=e(`./stream/GenericWorker`);r.prototype={internalStream:function(e){var t=null,n=`string`;try{if(!e)throw Error(`No output type specified.`);var r=(n=e.toLowerCase())===`string`||n===`text`;n!==`binarystring`&&n!==`text`||(n=`string`),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c(`error`)).error(e)}return new i(t,n,``)},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||`nodebuffer`).toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=[`asText`,`asBinary`,`asNodeBuffer`,`asUint8Array`,`asArrayBuffer`],u=function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},d=0;d<l.length;d++)r.prototype[l[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode(``);o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||e.MessageChannel===void 0)n=`document`in e&&`onreadystatechange`in e.document.createElement(`script`)?function(){var t=e.document.createElement(`script`);t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){l.push(e)!==1||r||n()}}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],37:[function(e,t,n){"use strict";var r=e(`immediate`);function i(){}var a={},o=[`REJECTED`],s=[`FULFILLED`],c=[`PENDING`];function l(e){if(typeof e!=`function`)throw TypeError(`resolver must be a function`);this.state=c,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function u(e,t,n){this.promise=e,typeof t==`function`&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof n==`function`&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(t){return a.reject(e,t)}r===e?a.reject(e,TypeError(`Cannot resolve promise with itself`)):a.resolve(e,r)})}function f(e){var t=e&&e.then;if(e&&(typeof e==`object`||typeof e==`function`)&&typeof t==`function`)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=m(function(){t(i,r)});o.status===`error`&&r(o.value)}function m(e,t){var n={};try{n.value=e(t),n.status=`success`}catch(e){n.status=`error`,n.value=e}return n}(t.exports=l).prototype.finally=function(e){if(typeof e!=`function`)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if(typeof e!=`function`&&this.state===s||typeof t!=`function`&&this.state===o)return this;var n=new this.constructor(i);return this.state===c?this.queue.push(new u(n,e,t)):d(n,this.state===s?e:t,this.outcome),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=m(f,t);if(n.status===`error`)return a.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=Array(n),s=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then(function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(l,o))},function(e){r||(r=!0,a.reject(l,e))})}},l.race=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=-1,s=new this(i);++o<n;)c=e[o],t.resolve(c).then(function(e){r||(r=!0,a.resolve(s,e))},function(e){r||(r=!0,a.reject(s,e))});var c;return s}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e(`./lib/utils/common`).assign)(r,e(`./lib/deflate`),e(`./lib/inflate`),e(`./lib/zlib/constants`)),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e(`./zlib/deflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/messages`),s=e(`./zlib/zstream`),c=Object.prototype.toString,l=0,u=-1,d=0,f=8;function p(e){if(!(this instanceof p))return new p(e);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:``},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==l)throw Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var m;if(m=typeof t.dictionary==`string`?a.string2buf(t.dictionary):c.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,m))!==l)throw Error(o[n]);this._dict_set=!0}}function m(e,t){var n=new p(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}p.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,typeof e==`string`?s.input=a.string2buf(e):c.call(e)===`[object ArrayBuffer]`?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(s.avail_out===0&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),(n=r.deflate(s,o))!==1&&n!==l)return this.onEnd(n),!(this.ended=!0);s.avail_out!==0&&(s.avail_in!==0||o!==4&&o!==2)||(this.options.to===`string`?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||s.avail_out===0)&&n!==1);return o===4?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):o!==2||(this.onEnd(l),!(s.avail_out=0))},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===l&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=p,n.deflate=m,n.deflateRaw=function(e,t){return(t||={}).raw=!0,m(e,t)},n.gzip=function(e,t){return(t||={}).gzip=!0,m(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var r=e(`./zlib/inflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/constants`),s=e(`./zlib/messages`),c=e(`./zlib/zstream`),l=e(`./zlib/gzheader`),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:``},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw Error(s[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,l,d,f,p=this.strm,m=this.options.chunkSize,h=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,typeof e==`string`?p.input=a.binstring2buf(e):u.call(e)===`[object ArrayBuffer]`?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(p.avail_out===0&&(p.output=new i.Buf8(m),p.next_out=0,p.avail_out=m),(n=r.inflate(p,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&h&&(f=typeof h==`string`?a.string2buf(h):u.call(h)===`[object ArrayBuffer]`?new Uint8Array(h):h,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(p.avail_out!==0&&n!==o.Z_STREAM_END&&(p.avail_in!==0||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||(this.options.to===`string`?(c=a.utf8border(p.output,p.next_out),l=p.next_out-c,d=a.buf2string(p.output,c),p.next_out=l,p.avail_out=m-l,l&&i.arraySet(p.output,p.output,c,l,0),this.onData(d)):this.onData(i.shrinkBuf(p.output,p.next_out)))),p.avail_in===0&&p.avail_out===0&&(g=!0)}while((0<p.avail_in||p.avail_out===0)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t||={}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e(`./common`),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n=``,o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)l[r++]=i;else if(4<(a=o[i]))l[r++]=65533,n+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;n!==0;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e(`../utils/common`),a=e(`./trees`),o=e(`./adler32`),s=e(`./crc32`),c=e(`./messages`),l=0,u=4,d=0,f=-2,p=-1,m=4,h=2,g=8,_=9,v=286,y=30,b=19,x=2*v+1,S=15,C=3,w=258,T=w+C+1,E=42,D=113,O=1,k=2,A=3,j=4;function M(e,t){return e.msg=c[t],t}function N(e){return(e<<1)-(4<e?9:0)}function P(e){for(var t=e.length;0<=--t;)e[t]=0}function F(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function I(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function R(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function z(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-T?e.strstart-(e.w_size-T):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+w,p=l[a+o-1],m=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(l[(n=t)+o]===m&&l[n+o-1]===p&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do;while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<f);if(r=w-(f-a),a=f-w,o<r){if(e.match_start=t,s<=(o=r))break;p=l[a+o-1],m=l[a+o]}}while((t=d[t&u])>c&&--i!=0);return o<=e.lookahead?o:e.lookahead}function B(e){var t,n,r,a,c,l,u,d,f,p,m=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-T)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;r=e.head[--t],e.head[t]=m<=r?r-m:0,--n;);for(t=n=m;r=e.prev[--t],e.prev[t]=m<=r?r-m:0,--n;);a+=m}if(e.strm.avail_in===0)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,f=a,p=void 0,p=l.avail_in,f<p&&(p=f),n=p===0?0:(l.avail_in-=p,i.arraySet(u,l.input,l.next_in,p,d),l.state.wrap===1?l.adler=o(l.adler,u,p,d):l.state.wrap===2&&(l.adler=s(l.adler,u,p,d)),l.next_in+=p,l.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=C)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+C-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<C)););}while(e.lookahead<T&&e.strm.avail_in!==0)}function ee(e,t){for(var n,r;;){if(e.lookahead<T){if(B(e),e.lookahead<T&&t===l)return O;if(e.lookahead===0)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-T&&(e.match_length=z(e,n)),e.match_length>=C)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-C),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=C){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,--e.match_length!=0;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(I(e,!1),e.strm.avail_out===0))return O}return e.insert=e.strstart<C-1?e.strstart:C-1,t===u?(I(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(I(e,!1),e.strm.avail_out===0)?O:k}function te(e,t){for(var n,r,i;;){if(e.lookahead<T){if(B(e),e.lookahead<T&&t===l)return O;if(e.lookahead===0)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=C-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-T&&(e.match_length=z(e,n),e.match_length<=5&&(e.strategy===1||e.match_length===C&&4096<e.strstart-e.match_start)&&(e.match_length=C-1)),e.prev_length>=C&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-C,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-C),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),--e.prev_length!=0;);if(e.match_available=0,e.match_length=C-1,e.strstart++,r&&(I(e,!1),e.strm.avail_out===0))return O}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&I(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return O}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=a._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<C-1?e.strstart:C-1,t===u?(I(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(I(e,!1),e.strm.avail_out===0)?O:k}function V(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function ne(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*x),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*b+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(S+1),this.heap=new i.Buf16(2*v+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),P(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function re(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=h,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?E:D,e.adler=t.wrap===2?0:1,t.last_flush=l,a._tr_init(t),d):M(e,f)}function H(e){var t=re(e);return t===d&&function(e){e.window_size=2*e.w_size,P(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=C-1,e.match_available=0,e.ins_h=0}(e.state),t}function U(e,t,n,r,a,o){if(!e)return f;var s=1;if(t===p&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||_<a||n!==g||r<8||15<r||t<0||9<t||o<0||m<o)return M(e,f);r===8&&(r=9);var c=new ne;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+C-1)/C),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=n,H(e)}r=[new V(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(B(e),e.lookahead===0&&t===l)return O;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,I(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-T&&(I(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(I(e,!0),e.strm.avail_out===0?A:j):(e.strstart>e.block_start&&(I(e,!1),e.strm.avail_out),O)}),new V(4,4,8,4,ee),new V(4,5,16,8,ee),new V(4,6,32,32,ee),new V(4,4,16,16,te),new V(8,16,32,32,te),new V(8,16,128,128,te),new V(8,32,128,256,te),new V(32,128,258,1024,te),new V(32,258,258,4096,te)],n.deflateInit=function(e,t){return U(e,t,g,15,8,0)},n.deflateInit2=U,n.deflateReset=H,n.deflateResetKeep=re,n.deflateSetHeader=function(e,t){return e&&e.state&&e.state.wrap===2?(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||5<t||t<0)return e?M(e,f):f;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===666&&t!==u)return M(e,e.avail_out===0?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===E)if(i.wrap===2)e.adler=0,L(i,31),L(i,139),L(i,8),i.gzhead?(L(i,+!!i.gzhead.text+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),L(i,255&i.gzhead.time),L(i,i.gzhead.time>>8&255),L(i,i.gzhead.time>>16&255),L(i,i.gzhead.time>>24&255),L(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),L(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(L(i,255&i.gzhead.extra.length),L(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(L(i,0),L(i,0),L(i,0),L(i,0),L(i,0),L(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),L(i,3),i.status=D);else{var p=g+(i.w_bits-8<<4)<<8;p|=(2<=i.strategy||i.level<2?0:i.level<6?1:i.level===6?2:3)<<6,i.strstart!==0&&(p|=32),p+=31-p%31,i.status=D,R(i,p),i.strstart!==0&&(R(i,e.adler>>>16),R(i,65535&e.adler)),e.adler=1}if(i.status===69)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending!==i.pending_buf_size));)L(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(i.status===73)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,L(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.gzindex=0,i.status=91)}else i.status=91;if(i.status===91)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,L(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.status=103)}else i.status=103;if(i.status===103&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&F(e),i.pending+2<=i.pending_buf_size&&(L(i,255&e.adler),L(i,e.adler>>8&255),e.adler=0,i.status=D)):i.status=D),i.pending!==0){if(F(e),e.avail_out===0)return i.last_flush=-1,d}else if(e.avail_in===0&&N(t)<=N(n)&&t!==u)return M(e,-5);if(i.status===666&&e.avail_in!==0)return M(e,-5);if(e.avail_in!==0||i.lookahead!==0||t!==l&&i.status!==666){var m=i.strategy===2?function(e,t){for(var n;;){if(e.lookahead===0&&(B(e),e.lookahead===0)){if(t===l)return O;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(I(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(I(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(I(e,!1),e.strm.avail_out===0)?O:k}(i,t):i.strategy===3?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=w){if(B(e),e.lookahead<=w&&t===l)return O;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=C&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+w;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=w-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=C?(n=a._tr_tally(e,1,e.match_length-C),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(I(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(I(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(I(e,!1),e.strm.avail_out===0)?O:k}(i,t):r[i.level].func(i,t);if(m!==A&&m!==j||(i.status=666),m===O||m===A)return e.avail_out===0&&(i.last_flush=-1),d;if(m===k&&(t===1?a._tr_align(i):t!==5&&(a._tr_stored_block(i,0,0,!1),t===3&&(P(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),F(e),e.avail_out===0))return i.last_flush=-1,d}return t===u?i.wrap<=0?1:(i.wrap===2?(L(i,255&e.adler),L(i,e.adler>>8&255),L(i,e.adler>>16&255),L(i,e.adler>>24&255),L(i,255&e.total_in),L(i,e.total_in>>8&255),L(i,e.total_in>>16&255),L(i,e.total_in>>24&255)):(R(i,e.adler>>>16),R(i,65535&e.adler)),F(e),0<i.wrap&&(i.wrap=-i.wrap),i.pending===0?1:d):d},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==E&&t!==69&&t!==73&&t!==91&&t!==103&&t!==D&&t!==666?M(e,f):(e.state=null,t===D?M(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,a,s,c,l,u,p,m=t.length;if(!e||!e.state||(s=(n=e.state).wrap)===2||s===1&&n.status!==E||n.lookahead)return f;for(s===1&&(e.adler=o(e.adler,t,m,0)),n.wrap=0,m>=n.w_size&&(s===0&&(P(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,m-n.w_size,n.w_size,0),t=p,m=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=m,e.next_in=0,e.input=t,B(n);n.lookahead>=C;){for(r=n.strstart,a=n.lookahead-(C-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+C-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=C-1,B(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=C-1,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,n.wrap=s,d},n.deflateInfo=`pako deflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.state,r=e.next_in,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e.input,E;i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,m=n.bits,h=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=h[p&_];t:for(;;){if(p>>>=b=y>>>24,m-=b,(b=y>>>16&255)==0)E[a++]=65535&y;else{if(!(16&b)){if(!(64&b)){y=h[(65535&y)+(p&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg=`invalid literal/length code`,n.mode=30;break e}x=65535&y,(b&=15)&&(m<b&&(p+=T[r++]<<m,m+=8),x+=p&(1<<b)-1,p>>>=b,m-=b),m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=g[p&v];r:for(;;){if(p>>>=b=y>>>24,m-=b,!(16&(b=y>>>16&255))){if(!(64&b)){y=g[(65535&y)+(p&(1<<b)-1)];continue r}e.msg=`invalid distance code`,n.mode=30;break e}if(S=65535&y,m<(b&=15)&&(p+=T[r++]<<m,(m+=8)<b&&(p+=T[r++]<<m,m+=8)),c<(S+=p&(1<<b)-1)){e.msg=`invalid distance too far back`,n.mode=30;break e}if(p>>>=b,m-=b,(b=a-o)<S){if(u<(b=S-b)&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break e}if(w=f,(C=0)===d){if(C+=l-b,b<x){for(x-=b;E[a++]=f[C++],--b;);C=a-S,w=E}}else if(d<b){if(C+=l+d-b,(b-=d)<x){for(x-=b;E[a++]=f[C++],--b;);if(C=0,d<x){for(x-=b=d;E[a++]=f[C++],--b;);C=a-S,w=E}}}else if(C+=d-b,b<x){for(x-=b;E[a++]=f[C++],--b;);C=a-S,w=E}for(;2<x;)E[a++]=w[C++],E[a++]=w[C++],E[a++]=w[C++],x-=3;x&&(E[a++]=w[C++],1<x&&(E[a++]=w[C++]))}else{for(C=a-S;E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],2<(x-=3););x&&(E[a++]=E[C++],1<x&&(E[a++]=E[C++]))}break}}break}}while(r<i&&a<s);r-=x=m>>3,p&=(1<<(m-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=m}},{}],49:[function(e,t,n){"use strict";var r=e(`../utils/common`),i=e(`./adler32`),a=e(`./crc32`),o=e(`./inffast`),s=e(`./inftrees`),c=1,l=2,u=0,d=-2,f=1,p=852,m=592;function h(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(m),t.sane=1,t.back=-1,u):d}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,_(e)):d}function y(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,v(e))):d}function b(e,t){var n,r;return e?(r=new g,(e.state=r).window=null,(n=y(e,t))!==u&&(e.state=null),n):d}var x,S,C=!0;function w(e){if(C){var t;for(x=new r.Buf32(512),S=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,S,0,e.work,{bits:5}),C=!1}e.lencode=x,e.lenbits=9,e.distcode=S,e.distbits=5}function T(e,t,n,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=v,n.inflateReset2=y,n.inflateResetKeep=_,n.inflateInit=function(e){return b(e,15)},n.inflateInit2=b,n.inflate=function(e,t){var n,p,m,g,_,v,y,b,x,S,C,E,D,O,k,A,j,M,N,P,F,I,L,R,z=0,B=new r.Buf8(4),ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return d;(n=e.state).mode===12&&(n.mode=13),_=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,p=e.input,v=e.avail_in,b=n.hold,x=n.bits,S=v,C=y,I=u;e:for(;;)switch(n.mode){case f:if(n.wrap===0){n.mode=13;break}for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(2&n.wrap&&b===35615){B[n.check=0]=255&b,B[1]=b>>>8&255,n.check=a(n.check,B,2,0),x=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg=`incorrect header check`,n.mode=30;break}if((15&b)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(x-=4,F=8+(15&(b>>>=4)),n.wbits===0)n.wbits=F;else if(F>n.wbits){e.msg=`invalid window size`,n.mode=30;break}n.dmax=1<<F,e.adler=n.check=1,n.mode=512&b?10:12,x=b=0;break;case 2:for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(n.flags=b,(255&n.flags)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(57344&n.flags){e.msg=`unknown header flags set`,n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(B[0]=255&b,B[1]=b>>>8&255,n.check=a(n.check,B,2,0)),x=b=0,n.mode=3;case 3:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.head&&(n.head.time=b),512&n.flags&&(B[0]=255&b,B[1]=b>>>8&255,B[2]=b>>>16&255,B[3]=b>>>24&255,n.check=a(n.check,B,4,0)),x=b=0,n.mode=4;case 4:for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(B[0]=255&b,B[1]=b>>>8&255,n.check=a(n.check,B,2,0)),x=b=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(B[0]=255&b,B[1]=b>>>8&255,n.check=a(n.check,B,2,0)),x=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(E=n.length)&&(E=v),E&&(n.head&&(F=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,p,g,E,F)),512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(v===0)break e;for(E=0;F=p[g+E++],n.head&&F&&n.length<65536&&(n.head.name+=String.fromCharCode(F)),F&&E<v;);if(512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,F)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(v===0)break e;for(E=0;F=p[g+E++],n.head&&F&&n.length<65536&&(n.head.comment+=String.fromCharCode(F)),F&&E<v;);if(512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,F)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(b!==(65535&n.check)){e.msg=`header crc mismatch`,n.mode=30;break}x=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}e.adler=n.check=h(b),x=b=0,n.mode=11;case 11:if(n.havedict===0)return e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,2;e.adler=n.check=1,n.mode=12;case 12:if(t===5||t===6)break e;case 13:if(n.last){b>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}switch(n.last=1&b,--x,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,t!==6)break;b>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg=`invalid block type`,n.mode=30}b>>>=2,x-=2;break;case 14:for(b>>>=7&x,x-=7&x;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if((65535&b)!=(b>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=30;break}if(n.length=65535&b,x=b=0,n.mode=15,t===6)break e;case 15:n.mode=16;case 16:if(E=n.length){if(v<E&&(E=v),y<E&&(E=y),E===0)break e;r.arraySet(m,p,g,E,_),v-=E,g+=E,y-=E,_+=E,n.length-=E;break}n.mode=12;break;case 17:for(;x<14;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(n.nlen=257+(31&b),b>>>=5,x-=5,n.ndist=1+(31&b),b>>>=5,x-=5,n.ncode=4+(15&b),b>>>=4,x-=4,286<n.nlen||30<n.ndist){e.msg=`too many length or distance symbols`,n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.lens[ee[n.have++]]=7&b,b>>>=3,x-=3}for(;n.have<19;)n.lens[ee[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},I=s(0,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg=`invalid code lengths set`,n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;A=(z=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&z,!((k=z>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(j<16)b>>>=k,x-=k,n.lens[n.have++]=j;else{if(j===16){for(R=k+2;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(b>>>=k,x-=k,n.have===0){e.msg=`invalid bit length repeat`,n.mode=30;break}F=n.lens[n.have-1],E=3+(3&b),b>>>=2,x-=2}else if(j===17){for(R=k+3;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}x-=k,F=0,E=3+(7&(b>>>=k)),b>>>=3,x-=3}else{for(R=k+7;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}x-=k,F=0,E=11+(127&(b>>>=k)),b>>>=7,x-=7}if(n.have+E>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=30;break}for(;E--;)n.lens[n.have++]=F}}if(n.mode===30)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=30;break}if(n.lenbits=9,L={bits:n.lenbits},I=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg=`invalid literal/lengths set`,n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},I=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,I){e.msg=`invalid distances set`,n.mode=30;break}if(n.mode=20,t===6)break e;case 20:n.mode=21;case 21:if(6<=v&&258<=y){e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,o(e,C),_=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,p=e.input,v=e.avail_in,b=n.hold,x=n.bits,n.mode===12&&(n.back=-1);break}for(n.back=0;A=(z=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&z,!((k=z>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(A&&!(240&A)){for(M=k,N=A,P=j;A=(z=n.lencode[P+((b&(1<<M+N)-1)>>M)])>>>16&255,j=65535&z,!(M+(k=z>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}b>>>=M,x-=M,n.back+=M}if(b>>>=k,x-=k,n.back+=k,n.length=j,A===0){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg=`invalid literal/length code`,n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(R=n.extra;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(z=n.distcode[b&(1<<n.distbits)-1])>>>16&255,j=65535&z,!((k=z>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(!(240&A)){for(M=k,N=A,P=j;A=(z=n.distcode[P+((b&(1<<M+N)-1)>>M)])>>>16&255,j=65535&z,!(M+(k=z>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}b>>>=M,x-=M,n.back+=M}if(b>>>=k,x-=k,n.back+=k,64&A){e.msg=`invalid distance code`,n.mode=30;break}n.offset=j,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(R=n.extra;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=30;break}n.mode=25;case 25:if(y===0)break e;if(E=C-y,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break}D=E>n.wnext?(E-=n.wnext,n.wsize-E):n.wnext-E,E>n.length&&(E=n.length),O=n.window}else O=m,D=_-n.offset,E=n.length;for(y<E&&(E=y),y-=E,n.length-=E;m[_++]=O[D++],--E;);n.length===0&&(n.mode=21);break;case 26:if(y===0)break e;m[_++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(v===0)break e;v--,b|=p[g++]<<x,x+=8}if(C-=y,e.total_out+=C,n.total+=C,C&&(e.adler=n.check=n.flags?a(n.check,m,C,_-C):i(n.check,m,C,_-C)),C=y,(n.flags?b:h(b))!==n.check){e.msg=`incorrect data check`,n.mode=30;break}x=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(b!==(4294967295&n.total)){e.msg=`incorrect length check`,n.mode=30;break}x=b=0}n.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,(n.wsize||C!==e.avail_out&&n.mode<30&&(n.mode<27||t!==4))&&T(e,e.output,e.next_out,C-e.avail_out)?(n.mode=31,-4):(S-=e.avail_in,C-=e.avail_out,e.total_in+=S,e.total_out+=C,n.total+=C,n.wrap&&C&&(e.adler=n.check=n.flags?a(n.check,m,C,e.next_out-C):i(n.check,m,C,e.next_out-C)),e.data_type=n.bits+(n.last?64:0)+(n.mode===12?128:0)+(n.mode===20||n.mode===15?256:0),(S==0&&C===0||t===4)&&I===u&&(I=-5),I)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&=null,e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?(n=e.state).wrap!==0&&n.mode!==11?d:n.mode===11&&i(1,t,r,0)!==n.check?-3:T(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo=`pako inflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e(`../utils/common`),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,l,u,d,f){var p,m,h,g,_,v,y,b,x,S=f.bits,C=0,w=0,T=0,E=0,D=0,O=0,k=0,A=0,j=0,M=0,N=null,P=0,F=new r.Buf16(16),I=new r.Buf16(16),L=null,R=0;for(C=0;C<=15;C++)F[C]=0;for(w=0;w<c;w++)F[t[n+w]]++;for(D=S,E=15;1<=E&&F[E]===0;E--);if(E<D&&(D=E),E===0)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0;for(T=1;T<E&&F[T]===0;T++);for(D<T&&(D=T),C=A=1;C<=15;C++)if(A<<=1,(A-=F[C])<0)return-1;if(0<A&&(e===0||E!==1))return-1;for(I[1]=0,C=1;C<15;C++)I[C+1]=I[C]+F[C];for(w=0;w<c;w++)t[n+w]!==0&&(d[I[t[n+w]]++]=w);if(v=e===0?(N=L=d,19):e===1?(N=i,P-=257,L=a,R-=257,256):(N=o,L=s,-1),C=T,_=u,k=w=M=0,h=-1,g=(j=1<<(O=D))-1,e===1&&852<j||e===2&&592<j)return 1;for(;;){for(y=C-k,x=d[w]<v?(b=0,d[w]):d[w]>v?(b=L[R+d[w]],N[P+d[w]]):(b=96,0),p=1<<C-k,T=m=1<<O;l[_+(M>>k)+(m-=p)]=y<<24|b<<16|x|0,m!==0;);for(p=1<<C-1;M&p;)p>>=1;if(p===0?M=0:(M&=p-1,M+=p),w++,--F[C]==0){if(C===E)break;C=t[n+d[w]]}if(D<C&&(M&g)!==h){for(k===0&&(k=D),_+=T,A=1<<(O=C-k);O+k<E&&!((A-=F[O+k])<=0);)O++,A<<=1;if(j+=1<<O,e===1&&852<j||e===2&&592<j)return 1;l[h=M&g]=D<<24|O<<16|_-u|0}}return M!==0&&(l[_+M]=C-k<<24|4194304),f.bits=D,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}},{}],52:[function(e,t,n){"use strict";var r=e(`../utils/common`),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,l=256,u=l+1+c,d=30,f=19,p=2*u+1,m=15,h=16,g=7,_=256,v=16,y=17,b=18,x=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],w=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=Array(2*(u+2));o(T);var E=Array(2*d);o(E);var D=Array(512);o(D);var O=Array(256);o(O);var k=Array(c);o(k);var A,j,M,N=Array(d);function P(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function F(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function I(e){return e<256?D[e]:D[256+(e>>>7)]}function L(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function R(e,t,n){e.bi_valid>h-n?(e.bi_buf|=t<<e.bi_valid&65535,L(e,e.bi_buf),e.bi_buf=t>>h-e.bi_valid,e.bi_valid+=n-h):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function z(e,t,n){R(e,n[2*t],n[2*t+1])}function B(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function ee(e,t,n){var r,i,a=Array(m+1),o=0;for(r=1;r<=m;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];s!==0&&(e[2*i]=B(a[s]++,s))}}function te(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*_]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function V(e){8<e.bi_valid?L(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ne(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function re(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&ne(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!ne(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function H(e,t,n){var r,i,a,o,s=0;if(e.last_lit!==0)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,r===0?z(e,i,t):(z(e,(a=O[i])+l+1,t),(o=x[a])!==0&&R(e,i-=k[a],o),z(e,a=I(--r),n),(o=S[a])!==0&&R(e,r-=N[a],o)),s<e.last_lit;);z(e,_,t)}function U(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=p,n=0;n<c;n++)a[2*n]===0?a[2*n+1]=0:(e.heap[++e.heap_len]=l=n,e.depth[n]=0);for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)re(e,a,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],re(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,re(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,g=t.stat_desc.max_length,_=0;for(a=0;a<=m;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<p;n++)g<(a=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(a=g,_++),c[2*r+1]=a,l<r||(e.bl_count[a]++,o=0,h<=r&&(o=f[r-h]),s=c[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*r+1]+o)));if(_!==0){do{for(a=g-1;e.bl_count[a]===0;)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,_-=2}while(0<_);for(a=g;a!==0;a--)for(r=e.bl_count[a];r!==0;)l<(i=e.heap[--n])||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(e,t),ee(a,l,e.bl_count)}function ie(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:i===0?s<=10?e.bl_tree[2*y]++:e.bl_tree[2*b]++:(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*v]++),a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function ae(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<c&&i===o)){if(s<l)for(;z(e,i,e.bl_tree),--s!=0;);else i===0?s<=10?(z(e,y,e.bl_tree),R(e,s-3,3)):(z(e,b,e.bl_tree),R(e,s-11,7)):(i!==a&&(z(e,i,e.bl_tree),s--),z(e,v,e.bl_tree),R(e,s-3,2));a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}o(N);var oe=!1;function se(e,t,n,i){R(e,(s<<1)+ +!!i,3),function(e,t,n,i){V(e),i&&(L(e,n),L(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){oe||=(function(){var e,t,n,r,i,a=Array(m+1);for(r=n=0;r<c-1;r++)for(k[r]=n,e=0;e<1<<x[r];e++)O[n++]=r;for(O[n-1]=r,r=i=0;r<16;r++)for(N[r]=i,e=0;e<1<<S[r];e++)D[i++]=r;for(i>>=7;r<d;r++)for(N[r]=i<<7,e=0;e<1<<S[r]-7;e++)D[256+i++]=r;for(t=0;t<=m;t++)a[t]=0;for(e=0;e<=143;)T[2*e+1]=8,e++,a[8]++;for(;e<=255;)T[2*e+1]=9,e++,a[9]++;for(;e<=279;)T[2*e+1]=7,e++,a[7]++;for(;e<=287;)T[2*e+1]=8,e++,a[8]++;for(ee(T,u+1,a),e=0;e<d;e++)E[2*e+1]=5,E[2*e]=B(e,5);A=new P(T,x,l+1,u,m),j=new P(E,S,0,d,m),M=new P([],C,0,f,g)}(),!0),e.l_desc=new F(e.dyn_ltree,A),e.d_desc=new F(e.dyn_dtree,j),e.bl_desc=new F(e.bl_tree,M),e.bi_buf=0,e.bi_valid=0,te(e)},n._tr_stored_block=se,n._tr_flush_block=function(e,t,n,r){var o,s,c=0;0<e.level?(e.strm.data_type===2&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&e.dyn_ltree[2*t]!==0)return i;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return a;for(t=32;t<l;t++)if(e.dyn_ltree[2*t]!==0)return a;return i}(e)),U(e,e.l_desc),U(e,e.d_desc),c=function(e){var t;for(ie(e,e.dyn_ltree,e.l_desc.max_code),ie(e,e.dyn_dtree,e.d_desc.max_code),U(e,e.bl_desc),t=f-1;3<=t&&e.bl_tree[2*w[t]+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&t!==-1?se(e,t,n,r):e.strategy===4||s===o?(R(e,2+ +!!r,3),H(e,T,E)):(R(e,4+ +!!r,3),function(e,t,n,r){var i;for(R(e,t-257,5),R(e,n-1,5),R(e,r-4,4),i=0;i<r;i++)R(e,e.bl_tree[2*w[i]+1],3);ae(e,e.dyn_ltree,t-1),ae(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),H(e,e.dyn_ltree,e.dyn_dtree)),te(e),r&&V(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,t===0?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(O[n]+l+1)]++,e.dyn_dtree[2*I(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){R(e,2,3),z(e,_,T),function(e){e.bi_valid===16?(L(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){(function(e,t){"use strict";if(!e.setImmediate){var n,r,i,a,o=1,s={},c=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n={}.toString.call(e.process)===`[object process]`?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(``,`*`),e.onmessage=n,t}}()?(a=`setImmediate$`+Math.random()+`$`,e.addEventListener?e.addEventListener(`message`,p,!1):e.attachEvent(`onmessage`,p),function(t){e.postMessage(a+t,`*`)}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):l&&`onreadystatechange`in l.createElement(`script`)?(r=l.documentElement,function(e){var t=l.createElement(`script`);t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){typeof e!=`function`&&(e=Function(``+e));for(var t=Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return s[o]={callback:e,args:t},n(o),o++},u.clearImmediate=d}function d(e){delete s[e]}function f(e){if(c)setTimeout(f,0,e);else{var n=s[e];if(n){c=!0;try{(function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}})(n)}finally{d(e),c=!1}}}}function p(t){t.source===e&&typeof t.data==`string`&&t.data.indexOf(a)===0&&f(+t.data.slice(a.length))}})(typeof self>`u`?e===void 0?this:e:self)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}]},{},[10])(10)})})),ru,iu,au,ou,su,cu,lu,uu,du,fu,pu,mu,hu,gu,_u,vu,yu,bu,xu,Su,Cu=e.n((()=>{ru=`1.13.8`,iu=typeof self==`object`&&self.self===self&&self||typeof global==`object`&&global.global===global&&global||Function(`return this`)()||{},au=Array.prototype,ou=Object.prototype,su=typeof Symbol<`u`?Symbol.prototype:null,cu=au.push,lu=au.slice,uu=ou.toString,du=ou.hasOwnProperty,fu=typeof ArrayBuffer<`u`,pu=typeof DataView<`u`,mu=Array.isArray,hu=Object.keys,gu=Object.create,_u=fu&&ArrayBuffer.isView,vu=isNaN,yu=isFinite,bu=!{toString:null}.propertyIsEnumerable(`toString`),xu=[`valueOf`,`isPrototypeOf`,`toString`,`propertyIsEnumerable`,`hasOwnProperty`,`toLocaleString`],Su=2**53-1}));function wu(e,t){return t=t==null?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var a=Array(t+1);for(i=0;i<t;i++)a[i]=arguments[i];return a[t]=r,e.apply(this,a)}}var Tu=e.n((()=>{}));function Eu(e){var t=typeof e;return t===`function`||t===`object`&&!!e}var Du=e.n((()=>{}));function Ou(e){return e===null}var ku=e.n((()=>{}));function Au(e){return e===void 0}var ju=e.n((()=>{}));function Mu(e){return e===!0||e===!1||uu.call(e)===`[object Boolean]`}var Nu=e.n((()=>{Cu()}));function Pu(e){return!!(e&&e.nodeType===1)}var Fu=e.n((()=>{}));function Iu(e){var t=`[object `+e+`]`;return function(e){return uu.call(e)===t}}var Lu=e.n((()=>{Cu()})),Ru,zu=e.n((()=>{Lu(),Ru=Iu(`String`)})),Bu,Vu=e.n((()=>{Lu(),Bu=Iu(`Number`)})),Hu,Uu=e.n((()=>{Lu(),Hu=Iu(`Date`)})),Wu,Gu=e.n((()=>{Lu(),Wu=Iu(`RegExp`)})),Ku,qu=e.n((()=>{Lu(),Ku=Iu(`Error`)})),Ju,Yu=e.n((()=>{Lu(),Ju=Iu(`Symbol`)})),Xu,Zu=e.n((()=>{Lu(),Xu=Iu(`ArrayBuffer`)})),Qu,$u,ed,td=e.n((()=>{Lu(),Cu(),Qu=Iu(`Function`),$u=iu.document&&iu.document.childNodes,typeof/./!=`function`&&typeof Int8Array!=`object`&&typeof $u!=`function`&&(Qu=function(e){return typeof e==`function`||!1}),ed=Qu})),nd,rd=e.n((()=>{Lu(),nd=Iu(`Object`)})),id,ad,od=e.n((()=>{Cu(),rd(),id=pu&&(!/\[native code\]/.test(String(DataView))||nd(new DataView(new ArrayBuffer(8)))),ad=typeof Map<`u`&&nd(new Map)}));function sd(e){return e!=null&&ed(e.getInt8)&&Xu(e.buffer)}var cd,ld,ud=e.n((()=>{Lu(),td(),Zu(),od(),cd=Iu(`DataView`),ld=id?sd:cd})),dd,fd=e.n((()=>{Cu(),Lu(),dd=mu||Iu(`Array`)}));function pd(e,t){return e!=null&&du.call(e,t)}var md=e.n((()=>{Cu()})),hd,gd,_d=e.n((()=>{Lu(),md(),hd=Iu(`Arguments`),(function(){hd(arguments)||(hd=function(e){return pd(e,`callee`)})})(),gd=hd}));function vd(e){return!Ju(e)&&yu(e)&&!isNaN(parseFloat(e))}var yd=e.n((()=>{Cu(),Yu()}));function bd(e){return Bu(e)&&vu(e)}var xd=e.n((()=>{Cu(),Vu()}));function Sd(e){return function(){return e}}var Cd=e.n((()=>{}));function wd(e){return function(t){var n=e(t);return typeof n==`number`&&n>=0&&n<=Su}}var Td=e.n((()=>{Cu()}));function Ed(e){return function(t){return t?.[e]}}var Dd=e.n((()=>{})),Od,kd=e.n((()=>{Dd(),Od=Ed(`byteLength`)})),Ad,jd=e.n((()=>{Td(),kd(),Ad=wd(Od)}));function Md(e){return _u?_u(e)&&!ld(e):Ad(e)&&Nd.test(uu.call(e))}var Nd,Pd,Fd=e.n((()=>{Cu(),ud(),Cd(),jd(),Nd=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,Pd=fu?Md:Sd(!1)})),Id,Ld=e.n((()=>{Dd(),Id=Ed(`length`)}));function Rd(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]===!0},push:function(n){return t[n]=!0,e.push(n)}}}function zd(e,t){t=Rd(t);var n=xu.length,r=e.constructor,i=ed(r)&&r.prototype||ou,a=`constructor`;for(pd(e,a)&&!t.contains(a)&&t.push(a);n--;)a=xu[n],a in e&&e[a]!==i[a]&&!t.contains(a)&&t.push(a)}var Bd=e.n((()=>{Cu(),td(),md()}));function Vd(e){if(!Eu(e))return[];if(hu)return hu(e);var t=[];for(var n in e)pd(e,n)&&t.push(n);return bu&&zd(e,t),t}var Hd=e.n((()=>{Du(),Cu(),md(),Bd()}));function Ud(e){if(e==null)return!0;var t=Id(e);return typeof t==`number`&&(dd(e)||Ru(e)||gd(e))?t===0:Id(Vd(e))===0}var Wd=e.n((()=>{Ld(),fd(),zu(),_d(),Hd()}));function Gd(e,t){var n=Vd(t),r=n.length;if(e==null)return!r;for(var i=Object(e),a=0;a<r;a++){var o=n[a];if(t[o]!==i[o]||!(o in i))return!1}return!0}var Kd=e.n((()=>{Hd()}));function qd(e){if(e instanceof qd)return e;if(!(this instanceof qd))return new qd(e);this._wrapped=e}var Jd=e.n((()=>{Cu(),qd.VERSION=ru,qd.prototype.value=function(){return this._wrapped},qd.prototype.valueOf=qd.prototype.toJSON=qd.prototype.value,qd.prototype.toString=function(){return String(this._wrapped)}}));function Yd(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Od(e))}var Xd=e.n((()=>{kd()}));function Zd(e,t){for(var n=[{a:e,b:t}],r=[],i=[];n.length;){var a=n.pop();if(a===!0){r.pop(),i.pop();continue}if(e=a.a,t=a.b,e===t){if(e!==0||1/e==1/t)continue;return!1}if(e==null||t==null)return!1;if(e!==e){if(t!==t)continue;return!1}var o=typeof e;if(o!==`function`&&o!==`object`&&typeof t!=`object`)return!1;e instanceof qd&&(e=e._wrapped),t instanceof qd&&(t=t._wrapped);var s=uu.call(e);if(s!==uu.call(t))return!1;if(id&&s==`[object Object]`&&ld(e)){if(!ld(t))return!1;s=Qd}switch(s){case`[object RegExp]`:case`[object String]`:if(``+e==``+t)continue;return!1;case`[object Number]`:n.push({a:+e,b:+t});continue;case`[object Date]`:case`[object Boolean]`:if(+e==+t)continue;return!1;case`[object Symbol]`:if(su.valueOf.call(e)===su.valueOf.call(t))continue;return!1;case`[object ArrayBuffer]`:case Qd:n.push({a:Yd(e),b:Yd(t)});continue}var c=s===`[object Array]`;if(!c&&Pd(e)){if(Od(e)!==Od(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)continue;c=!0}if(!c){if(typeof e!=`object`||typeof t!=`object`)return!1;var l=e.constructor,u=t.constructor;if(l!==u&&!(ed(l)&&l instanceof l&&ed(u)&&u instanceof u)&&`constructor`in e&&`constructor`in t)return!1}for(var d=r.length;d--;)if(r[d]===e){if(i[d]===t)break;return!1}if(!(d>=0))if(r.push(e),i.push(t),n.push(!0),c){if(d=e.length,d!==t.length)return!1;for(;d--;)n.push({a:e[d],b:t[d]})}else{var f=Vd(e),p;if(d=f.length,Vd(t).length!==d)return!1;for(;d--;){if(p=f[d],!pd(t,p))return!1;n.push({a:e[p],b:t[p]})}}}return!0}var Qd,$d=e.n((()=>{Jd(),Cu(),kd(),Fd(),td(),od(),ud(),Hd(),md(),Xd(),Qd=`[object DataView]`}));function ef(e){if(!Eu(e))return[];var t=[];for(var n in e)t.push(n);return bu&&zd(e,t),t}var tf=e.n((()=>{Du(),Cu(),Bd()}));function nf(e){var t=Id(e);return function(n){if(n==null||Id(ef(n)))return!1;for(var r=0;r<t;r++)if(!ed(n[e[r]]))return!1;return e!==lf||!ed(n[rf])}}var rf,af,of,sf,cf,lf,uf,df=e.n((()=>{Ld(),td(),tf(),rf=`forEach`,af=`has`,of=[`clear`,`delete`],sf=[`get`,af,`set`],cf=of.concat(rf,sf),lf=of.concat(sf),uf=[`add`].concat(of,rf,af)})),ff,pf=e.n((()=>{Lu(),od(),df(),ff=ad?nf(cf):Iu(`Map`)})),mf,hf=e.n((()=>{Lu(),od(),df(),mf=ad?nf(lf):Iu(`WeakMap`)})),gf,_f=e.n((()=>{Lu(),od(),df(),gf=ad?nf(uf):Iu(`Set`)})),vf,yf=e.n((()=>{Lu(),vf=Iu(`WeakSet`)}));function bf(e){for(var t=Vd(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}var xf=e.n((()=>{Hd()}));function Sf(e){for(var t=Vd(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}var Cf=e.n((()=>{Hd()}));function wf(e){for(var t={},n=Vd(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}var Tf=e.n((()=>{Hd()}));function Ef(e){var t=[];for(var n in e)ed(e[n])&&t.push(n);return t.sort()}var Df=e.n((()=>{td()}));function Of(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||n==null)return n;for(var i=1;i<r;i++)for(var a=arguments[i],o=e(a),s=o.length,c=0;c<s;c++){var l=o[c];(!t||n[l]===void 0)&&(n[l]=a[l])}return n}}var kf=e.n((()=>{})),Af,jf=e.n((()=>{kf(),tf(),Af=Of(ef)})),Mf,Nf=e.n((()=>{kf(),Hd(),Mf=Of(Vd)})),Pf,Ff=e.n((()=>{kf(),tf(),Pf=Of(ef,!0)}));function If(){return function(){}}function Lf(e){if(!Eu(e))return{};if(gu)return gu(e);var t=If();t.prototype=e;var n=new t;return t.prototype=null,n}var Rf=e.n((()=>{Du(),Cu()}));function zf(e,t){var n=Lf(e);return t&&Mf(n,t),n}var Bf=e.n((()=>{Rf(),Nf()}));function Vf(e){return Eu(e)?dd(e)?e.slice():Af({},e):e}var Hf=e.n((()=>{Du(),fd(),jf()}));function Uf(e,t){return t(e),e}var Wf=e.n((()=>{}));function Gf(e){return dd(e)?e:[e]}var Kf=e.n((()=>{Jd(),fd(),qd.toPath=Gf}));function qf(e){return qd.toPath(e)}var Jf=e.n((()=>{Jd(),Kf()}));function Yf(e,t){for(var n=t.length,r=0;r<n;r++){if(e==null)return;e=e[t[r]]}return n?e:void 0}var Xf=e.n((()=>{}));function Zf(e,t,n){var r=Yf(e,qf(t));return Au(r)?n:r}var Qf=e.n((()=>{Jf(),Xf(),ju()}));function $f(e,t){t=qf(t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(!pd(e,i))return!1;e=e[i]}return!!n}var ep=e.n((()=>{md(),Jf()}));function tp(e){return e}var np=e.n((()=>{}));function rp(e){return e=Mf({},e),function(t){return Gd(t,e)}}var ip=e.n((()=>{Nf(),Kd()}));function ap(e){return e=qf(e),function(t){return Yf(t,e)}}var op=e.n((()=>{Xf(),Jf()}));function sp(e,t,n){if(t===void 0)return e;switch(n??3){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,a){return e.call(t,n,r,i,a)}}return function(){return e.apply(t,arguments)}}var cp=e.n((()=>{}));function lp(e,t,n){return e==null?tp:ed(e)?sp(e,t,n):Eu(e)&&!dd(e)?rp(e):ap(e)}var up=e.n((()=>{np(),td(),Du(),fd(),ip(),op(),cp()}));function dp(e,t){return lp(e,t,1/0)}var fp=e.n((()=>{Jd(),up(),qd.iteratee=dp}));function pp(e,t,n){return qd.iteratee===dp?lp(e,t,n):qd.iteratee(e,t)}var mp=e.n((()=>{Jd(),up(),fp()}));function hp(e,t,n){t=pp(t,n);for(var r=Vd(e),i=r.length,a={},o=0;o<i;o++){var s=r[o];a[s]=t(e[s],s,e)}return a}var gp=e.n((()=>{mp(),Hd()}));function _p(){}var vp=e.n((()=>{}));function yp(e){return e==null?_p:function(t){return Zf(e,t)}}var bp=e.n((()=>{vp(),Qf()}));function xp(e,t,n){var r=Array(Math.max(0,e));t=sp(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}var Sp=e.n((()=>{cp()}));function Cp(e,t){return t??(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}var wp=e.n((()=>{})),Tp,Ep=e.n((()=>{Tp=Date.now||function(){return new Date().getTime()}}));function Dp(e){var t=function(t){return e[t]},n=`(?:`+Vd(e).join(`|`)+`)`,r=RegExp(n),i=RegExp(n,`g`);return function(e){return e=e==null?``:``+e,r.test(e)?e.replace(i,t):e}}var Op=e.n((()=>{Hd()})),kp,Ap=e.n((()=>{kp={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#x27;`,"`":`&#x60;`}})),jp,Mp=e.n((()=>{Op(),Ap(),jp=Dp(kp)})),Np,Pp=e.n((()=>{Tf(),Ap(),Np=wf(kp)})),Fp,Ip=e.n((()=>{Op(),Pp(),Fp=Dp(Np)})),Lp,Rp=e.n((()=>{Jd(),Lp=qd.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g}}));function zp(e){return`\\`+Hp[e]}function Bp(e,t,n){!t&&n&&(t=n),t=Pf({},t,qd.templateSettings);var r=RegExp([(t.escape||Vp).source,(t.interpolate||Vp).source,(t.evaluate||Vp).source].join(`|`)+`|$`,`g`),i=0,a=`__p+='`;e.replace(r,function(t,n,r,o,s){return a+=e.slice(i,s).replace(Up,zp),i=s+t.length,n?a+=`'+
551
+ \0`,M+=r(k,2),M+=m.magic,M+=r(d,2),M+=r(f,2),M+=r(O.crc32,4),M+=r(O.compressedSize,4),M+=r(O.uncompressedSize,4),M+=r(g.length,2),M+=r(C.length,2),{fileRecord:l.LOCAL_FILE_HEADER+M+g+C,dirRecord:l.CENTRAL_FILE_HEADER+r(j,2)+M+r(y.length,2)+`\0\0\0\0`+r(A,4)+r(i,4)+g+C+y}}var a=e(`../utils`),o=e(`../stream/GenericWorker`),s=e(`../utf8`),c=e(`../crc32`),l=e(`../signature`);function u(e,t,n,r){o.call(this,`ZipFileWorker`),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,o){var s=a.transformTo(`string`,o(i));return l.CENTRAL_DIRECTORY_END+`\0\0\0\0`+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on(`error`,function(e){t.error(e)}),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch{}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var r=e(`../compressions`),i=e(`./ZipFileWorker`);n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw Error(n+` is not a valid compression method !`);return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo(`file`,{name:e,dir:c,date:l,comment:n.comment||``,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)}),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw Error(`The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.`);this.files=Object.create(null),this.comment=null,this.root=``,this.clone=function(){var e=new r;for(var t in this)typeof this[t]!=`function`&&(e[t]=this[t]);return e}}(r.prototype=e(`./object`)).loadAsync=e(`./load`),r.support=e(`./support`),r.defaults=e(`./defaults`),r.version=`3.10.2`,r.loadAsync=function(e,t){return new r().loadAsync(e,t)},r.external=e(`./external`),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e(`./utils`),i=e(`./external`),a=e(`./utf8`),o=e(`./zipEntries`),s=e(`./stream/Crc32Probe`),c=e(`./nodejsUtils`);function l(e){return new i.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on(`error`,function(e){n(e)}).on(`end`,function(){r.streamInfo.crc32===e.decompressed.crc32?t():n(Error(`Corrupted zip : CRC32 mismatch`))}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(Error(`JSZip can't accept a stream when loading a zip file.`)):r.prepareContent(`the loaded zip file`,e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new o(t);return n.load(e),n}).then(function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(l(r[a]));return i.Promise.all(n)}).then(function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=r.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e(`../utils`),i=e(`../stream/GenericWorker`);function a(e,t){i.call(this,`Nodejs stream input adapter for `+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on(`data`,function(e){t.push({data:e,meta:{percent:0}})}).on(`error`,function(e){t.isPaused?this.generatedError=e:t.error(e)}).on(`end`,function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e(`readable-stream`).Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on(`data`,function(e,t){i.push(e)||i._helper.pause(),n&&n(t)}).on(`error`,function(e){i.emit(`error`,e)}).on(`end`,function(){i.push(null)})}e(`../utils`).inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:typeof Buffer<`u`,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e==`number`)throw Error(`The "data" argument must not be a number`);return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on==`function`&&typeof e.pause==`function`&&typeof e.resume==`function`}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},c);s.date=s.date||new Date,s.compression!==null&&(s.compression=s.compression.toUpperCase()),typeof s.unixPermissions==`string`&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=h(e)),s.createFolders&&(r=m(e))&&g.call(this,r,!0);var d=i===`string`&&!1===s.binary&&!1===s.base64;n&&n.binary!==void 0||(s.binary=!d),(t instanceof l&&t.uncompressedSize===0||s.dir||!t||t.length===0)&&(s.base64=!1,s.binary=!0,t=``,s.compression=`STORE`,i=`string`);var _=null;_=t instanceof l||t instanceof o?t:f.isNode&&f.isStream(t)?new p(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var v=new u(e,_,s);this.files[e]=v}var i=e(`./utf8`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=e(`./stream/StreamHelper`),c=e(`./defaults`),l=e(`./compressedObject`),u=e(`./zipObject`),d=e(`./generate`),f=e(`./nodejsUtils`),p=e(`./nodejs/NodejsStreamInputAdapter`),m=function(e){e.slice(-1)===`/`&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf(`/`);return 0<t?e.substring(0,t):``},h=function(e){return e.slice(-1)!==`/`&&(e+=`/`),e},g=function(e,t){return t=t===void 0?c.createFolders:t,e=h(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function _(e){return Object.prototype.toString.call(e)===`[object RegExp]`}t.exports={load:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(arguments.length!==1)return e=this.root+e,r.call(this,e,t,n),this;if(_(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(_(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||=(e.slice(-1)!==`/`&&(e+=`/`),this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:`STORE`,compressionOptions:null,type:``,platform:`DOS`,comment:null,mimeType:`application/zip`,encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),n.type===`binarystring`&&(n.type=`string`),!n.type)throw Error(`No output type specified.`);a.checkSupport(n.type),n.platform!==`darwin`&&n.platform!==`freebsd`&&n.platform!==`linux`&&n.platform!==`sunos`||(n.platform=`UNIX`),n.platform===`win32`&&(n.platform=`DOS`);var r=n.comment||this.comment||``;t=d.generateWorker(this,n,r)}catch(e){(t=new o(`error`)).error(e)}return new s(t,n.type||`string`,n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e||={}).type||(e.type=`nodebuffer`),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){"use strict";t.exports=e(`stream`)},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e(`./DataReader`);function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e(`../utils`);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error(`End of data reached (data length = `+this.length+`, asked index = `+e+`). Corrupted zip ?`)},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo(`string`,this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e(`./Uint8ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e(`./DataReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e(`./ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array;var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e(`../utils`),i=e(`../support`),a=e(`./ArrayReader`),o=e(`./StringReader`),s=e(`./NodeBufferReader`),c=e(`./Uint8ArrayReader`);t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),t!==`string`||i.uint8array?t===`nodebuffer`?new s(e):i.uint8array?new c(r.transformTo(`uint8array`,e)):new a(r.transformTo(`array`,e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER=`PK`,n.CENTRAL_FILE_HEADER=`PK`,n.CENTRAL_DIRECTORY_END=`PK`,n.ZIP64_CENTRAL_DIRECTORY_LOCATOR=`PK\x07`,n.ZIP64_CENTRAL_DIRECTORY_END=`PK`,n.DATA_DESCRIPTOR=`PK\x07\b`},{}],24:[function(e,t,n){"use strict";var r=e(`./GenericWorker`),i=e(`../utils`);function a(e){r.call(this,`ConvertWorker to `+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e(`./GenericWorker`),i=e(`../crc32`);function a(){r.call(this,`Crc32Probe`),this.withStreamInfo(`crc32`,0)}e(`../utils`).inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataLengthProbe for `+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataWorker`);var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=``,this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case`string`:e=this.data.substring(this.index,t);break;case`uint8array`:e=this.data.subarray(this.index,t);break;case`array`:case`nodebuffer`:e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||`default`,this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit(`data`,e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(`end`),this.cleanUp(),this.isFinished=!0}catch(e){this.emit(`error`,e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit(`error`,e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.end()}),e.on(`error`,function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e=`Worker `+this.name;return this.previous?this.previous+` -> `+e:e}},t.exports=r},{}],29:[function(e,t,n){"use strict";var r=e(`../utils`),i=e(`./ConvertWorker`),a=e(`./GenericWorker`),o=e(`../base64`),s=e(`../support`),c=e(`../external`),l=null;if(s.nodestream)try{l=e(`../nodejs/NodejsStreamOutputAdapter`)}catch{}function u(e,t){return new c.Promise(function(n,i){var a=[],s=e._internalType,c=e._outputType,l=e._mimeType;e.on(`data`,function(e,n){a.push(e),t&&t(n)}).on(`error`,function(e){a=[],i(e)}).on(`end`,function(){try{n(function(e,t,n){switch(e){case`blob`:return r.newBlob(r.transformTo(`arraybuffer`,t),n);case`base64`:return o.encode(t);default:return r.transformTo(e,t)}}(c,function(e,t){var n,r=0,i=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case`string`:return t.join(``);case`array`:return Array.prototype.concat.apply([],t);case`uint8array`:for(i=new Uint8Array(a),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case`nodebuffer`:return Buffer.concat(t);default:throw Error(`concat : unsupported type '`+e+`'`)}}(s,a),l))}catch(e){i(e)}a=[]}).resume()})}function d(e,t,n){var o=t;switch(t){case`blob`:case`arraybuffer`:o=`uint8array`;break;case`base64`:o=`string`}try{this._internalType=o,this._outputType=t,this._mimeType=n,r.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(e){this._worker=new a(`error`),this._worker.error(e)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var n=this;return e===`data`?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport(`nodestream`),this._outputType!==`nodebuffer`)throw Error(this._outputType+` is not supported by this method`);return new l(this,{objectMode:this._outputType!==`nodebuffer`},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,n.nodebuffer=typeof Buffer<`u`,n.uint8array=typeof Uint8Array<`u`,typeof ArrayBuffer>`u`)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=new Blob([r],{type:`application/zip`}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=i.getBlob(`application/zip`).size===0}catch{n.blob=!1}}}try{n.nodestream=!!e(`readable-stream`).Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e(`./utils`),i=e(`./support`),a=e(`./nodejsUtils`),o=e(`./stream/GenericWorker`),s=Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;s[254]=s[254]=1;function l(){o.call(this,`utf-8 decode`),this.leftOver=null}function u(){o.call(this,`utf-8 encode`)}n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,`utf-8`):function(e){var t,n,r,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):Array(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo(`nodebuffer`,e).toString(`utf-8`):function(e){var t,n,i,a,o=e.length,c=Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,t+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?`uint8array`:`array`,e))},r.inherits(l,o),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?`uint8array`:`array`,e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+s[e[n]]>t?n:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e(`./support`),i=e(`./base64`),a=e(`./nodejsUtils`),o=e(`./external`);function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e(`setimmediate`),n.newBlob=function(e,t){n.checkSupport(`blob`);try{return new Blob([e],{type:t})}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch{throw Error(`Bug : can't construct the Blob.`)}}};var l={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)t===`array`||t===`nodebuffer`?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join(``)},stringifyByChar:function(e){for(var t=``,n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),i=!0;if(r===`uint8array`?i=l.applyCanBeUsed.uint8array:r===`nodebuffer`&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return l.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var f={};f.string={string:s,array:function(e){return c(e,Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,a.allocBuffer(e.length))}},f.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},f.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:u,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},f.nodebuffer={string:u,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){return t||=``,e?(n.checkSupport(e),f[n.getTypeOf(t)][e](t)):t},n.resolve=function(e){for(var t=e.split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];i===`.`||i===``&&r!==0&&r!==t.length-1||(i===`..`?n.pop():n.push(i))}return n.join(`/`)},n.getTypeOf=function(e){if(typeof e==`string`)return`string`;var t=Object.prototype.toString.call(e);return t===`[object Array]`?`array`:r.nodebuffer&&a.isBuffer(e)?`nodebuffer`:r.uint8array&&t===`[object Uint8Array]`?`uint8array`:r.arraybuffer&&t===`[object ArrayBuffer]`?`arraybuffer`:void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw Error(e+` is not supported by this platform`)},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r=``;for(n=0;n<(e||``).length;n++)r+=`\\x`+((t=e.charCodeAt(n))<16?`0`:``)+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&n[t]===void 0&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,l){return o.Promise.resolve(t).then(function(t){return r.blob&&(t instanceof Blob||[`[object File]`,`[object Blob]`].indexOf(Object.prototype.toString.call(t))!==-1)?Blob.prototype.arrayBuffer===void 0?typeof FileReader<`u`?new o.Promise(function(e,n){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(t)}):o.Promise.reject(Error(e+` is a Blob, but we have no way of reading it.`)):t.arrayBuffer():t}).then(function(t){var u=n.getTypeOf(t);return u?(u===`arraybuffer`?t=n.transformTo(`uint8array`,t):u===`string`&&(l?t=i.decode(t):a&&!0!==s&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):Array(e.length))}(t))),t):o.Promise.reject(Error(`Can't read the data of '`+e+`'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?`))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){"use strict";var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./signature`),o=e(`./zipEntry`),s=e(`./support`);function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw Error(`Corrupted zip or bug: unexpected signature (`+i.pretty(t)+`, expected `+i.pretty(e)+`)`)}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?`uint8array`:`array`,n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error(`Multi-volumes zip are not supported`)},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw Error(`Corrupted zip or bug: expected `+this.centralDirRecords+` records in central dir, got `+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?Error(`Corrupted zip: can't find end of central directory`):Error(`Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html`);this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error(`Corrupted zip: can't find the ZIP64 end of central directory locator`);if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error(`Corrupted zip: can't find the ZIP64 end of central directory`);this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw Error(`Corrupted zip: missing `+Math.abs(r)+` bytes.`)},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./compressedObject`),o=e(`./crc32`),s=e(`./utf8`),c=e(`./compressions`),l=e(`./support`);function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw Error(`Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)`);if((t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod))===null)throw Error(`Corrupted zip : compression `+i.pretty(this.compressionMethod)+` unknown (inner file : `+i.transformTo(`string`,this.fileName)+`)`);this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error(`Encrypted zip are not supported`);e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e==0&&(this.dosPermissions=63&this.externalFileAttributes),e==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!==`/`||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||={};e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?`uint8array`:`array`;if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(r!==null)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return t.readInt(1)===1&&o(this.fileName)===t.readInt(4)?s.utf8decode(t.readData(e.length-5)):null}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return t.readInt(1)===1&&o(this.fileComment)===t.readInt(4)?s.utf8decode(t.readData(e.length-5)):null}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e(`./stream/StreamHelper`),a=e(`./stream/DataWorker`),o=e(`./utf8`),s=e(`./compressedObject`),c=e(`./stream/GenericWorker`);r.prototype={internalStream:function(e){var t=null,n=`string`;try{if(!e)throw Error(`No output type specified.`);var r=(n=e.toLowerCase())===`string`||n===`text`;n!==`binarystring`&&n!==`text`||(n=`string`),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c(`error`)).error(e)}return new i(t,n,``)},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||`nodebuffer`).toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=[`asText`,`asBinary`,`asNodeBuffer`,`asUint8Array`,`asArrayBuffer`],u=function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},d=0;d<l.length;d++)r.prototype[l[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode(``);o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||e.MessageChannel===void 0)n=`document`in e&&`onreadystatechange`in e.document.createElement(`script`)?function(){var t=e.document.createElement(`script`);t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){l.push(e)!==1||r||n()}}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],37:[function(e,t,n){"use strict";var r=e(`immediate`);function i(){}var a={},o=[`REJECTED`],s=[`FULFILLED`],c=[`PENDING`];function l(e){if(typeof e!=`function`)throw TypeError(`resolver must be a function`);this.state=c,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function u(e,t,n){this.promise=e,typeof t==`function`&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof n==`function`&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(t){return a.reject(e,t)}r===e?a.reject(e,TypeError(`Cannot resolve promise with itself`)):a.resolve(e,r)})}function f(e){var t=e&&e.then;if(e&&(typeof e==`object`||typeof e==`function`)&&typeof t==`function`)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=m(function(){t(i,r)});o.status===`error`&&r(o.value)}function m(e,t){var n={};try{n.value=e(t),n.status=`success`}catch(e){n.status=`error`,n.value=e}return n}(t.exports=l).prototype.finally=function(e){if(typeof e!=`function`)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if(typeof e!=`function`&&this.state===s||typeof t!=`function`&&this.state===o)return this;var n=new this.constructor(i);return this.state===c?this.queue.push(new u(n,e,t)):d(n,this.state===s?e:t,this.outcome),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=m(f,t);if(n.status===`error`)return a.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=Array(n),s=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then(function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(l,o))},function(e){r||(r=!0,a.reject(l,e))})}},l.race=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=-1,s=new this(i);++o<n;)c=e[o],t.resolve(c).then(function(e){r||(r=!0,a.resolve(s,e))},function(e){r||(r=!0,a.reject(s,e))});var c;return s}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e(`./lib/utils/common`).assign)(r,e(`./lib/deflate`),e(`./lib/inflate`),e(`./lib/zlib/constants`)),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e(`./zlib/deflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/messages`),s=e(`./zlib/zstream`),c=Object.prototype.toString,l=0,u=-1,d=0,f=8;function p(e){if(!(this instanceof p))return new p(e);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:``},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==l)throw Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var m;if(m=typeof t.dictionary==`string`?a.string2buf(t.dictionary):c.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,m))!==l)throw Error(o[n]);this._dict_set=!0}}function m(e,t){var n=new p(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}p.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,typeof e==`string`?s.input=a.string2buf(e):c.call(e)===`[object ArrayBuffer]`?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(s.avail_out===0&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),(n=r.deflate(s,o))!==1&&n!==l)return this.onEnd(n),!(this.ended=!0);s.avail_out!==0&&(s.avail_in!==0||o!==4&&o!==2)||(this.options.to===`string`?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||s.avail_out===0)&&n!==1);return o===4?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):o!==2||(this.onEnd(l),!(s.avail_out=0))},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===l&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=p,n.deflate=m,n.deflateRaw=function(e,t){return(t||={}).raw=!0,m(e,t)},n.gzip=function(e,t){return(t||={}).gzip=!0,m(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var r=e(`./zlib/inflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/constants`),s=e(`./zlib/messages`),c=e(`./zlib/zstream`),l=e(`./zlib/gzheader`),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:``},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw Error(s[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,l,d,f,p=this.strm,m=this.options.chunkSize,h=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,typeof e==`string`?p.input=a.binstring2buf(e):u.call(e)===`[object ArrayBuffer]`?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(p.avail_out===0&&(p.output=new i.Buf8(m),p.next_out=0,p.avail_out=m),(n=r.inflate(p,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&h&&(f=typeof h==`string`?a.string2buf(h):u.call(h)===`[object ArrayBuffer]`?new Uint8Array(h):h,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(p.avail_out!==0&&n!==o.Z_STREAM_END&&(p.avail_in!==0||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||(this.options.to===`string`?(c=a.utf8border(p.output,p.next_out),l=p.next_out-c,d=a.buf2string(p.output,c),p.next_out=l,p.avail_out=m-l,l&&i.arraySet(p.output,p.output,c,l,0),this.onData(d)):this.onData(i.shrinkBuf(p.output,p.next_out)))),p.avail_in===0&&p.avail_out===0&&(g=!0)}while((0<p.avail_in||p.avail_out===0)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t||={}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e(`./common`),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n=``,o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)l[r++]=i;else if(4<(a=o[i]))l[r++]=65533,n+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;n!==0;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e(`../utils/common`),a=e(`./trees`),o=e(`./adler32`),s=e(`./crc32`),c=e(`./messages`),l=0,u=4,d=0,f=-2,p=-1,m=4,h=2,g=8,_=9,v=286,y=30,b=19,x=2*v+1,S=15,C=3,w=258,T=w+C+1,E=42,D=113,O=1,k=2,A=3,j=4;function M(e,t){return e.msg=c[t],t}function N(e){return(e<<1)-(4<e?9:0)}function P(e){for(var t=e.length;0<=--t;)e[t]=0}function F(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function I(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function R(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function z(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-T?e.strstart-(e.w_size-T):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+w,p=l[a+o-1],m=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(l[(n=t)+o]===m&&l[n+o-1]===p&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do;while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<f);if(r=w-(f-a),a=f-w,o<r){if(e.match_start=t,s<=(o=r))break;p=l[a+o-1],m=l[a+o]}}while((t=d[t&u])>c&&--i!=0);return o<=e.lookahead?o:e.lookahead}function B(e){var t,n,r,a,c,l,u,d,f,p,m=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-T)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;r=e.head[--t],e.head[t]=m<=r?r-m:0,--n;);for(t=n=m;r=e.prev[--t],e.prev[t]=m<=r?r-m:0,--n;);a+=m}if(e.strm.avail_in===0)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,f=a,p=void 0,p=l.avail_in,f<p&&(p=f),n=p===0?0:(l.avail_in-=p,i.arraySet(u,l.input,l.next_in,p,d),l.state.wrap===1?l.adler=o(l.adler,u,p,d):l.state.wrap===2&&(l.adler=s(l.adler,u,p,d)),l.next_in+=p,l.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=C)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+C-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<C)););}while(e.lookahead<T&&e.strm.avail_in!==0)}function ee(e,t){for(var n,r;;){if(e.lookahead<T){if(B(e),e.lookahead<T&&t===l)return O;if(e.lookahead===0)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-T&&(e.match_length=z(e,n)),e.match_length>=C)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-C),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=C){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,--e.match_length!=0;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(I(e,!1),e.strm.avail_out===0))return O}return e.insert=e.strstart<C-1?e.strstart:C-1,t===u?(I(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(I(e,!1),e.strm.avail_out===0)?O:k}function te(e,t){for(var n,r,i;;){if(e.lookahead<T){if(B(e),e.lookahead<T&&t===l)return O;if(e.lookahead===0)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=C-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-T&&(e.match_length=z(e,n),e.match_length<=5&&(e.strategy===1||e.match_length===C&&4096<e.strstart-e.match_start)&&(e.match_length=C-1)),e.prev_length>=C&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-C,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-C),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),--e.prev_length!=0;);if(e.match_available=0,e.match_length=C-1,e.strstart++,r&&(I(e,!1),e.strm.avail_out===0))return O}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&I(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return O}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=a._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<C-1?e.strstart:C-1,t===u?(I(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(I(e,!1),e.strm.avail_out===0)?O:k}function V(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function ne(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*x),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*b+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(S+1),this.heap=new i.Buf16(2*v+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),P(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function re(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=h,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?E:D,e.adler=t.wrap===2?0:1,t.last_flush=l,a._tr_init(t),d):M(e,f)}function ie(e){var t=re(e);return t===d&&function(e){e.window_size=2*e.w_size,P(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=C-1,e.match_available=0,e.ins_h=0}(e.state),t}function H(e,t,n,r,a,o){if(!e)return f;var s=1;if(t===p&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||_<a||n!==g||r<8||15<r||t<0||9<t||o<0||m<o)return M(e,f);r===8&&(r=9);var c=new ne;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+C-1)/C),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=n,ie(e)}r=[new V(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(B(e),e.lookahead===0&&t===l)return O;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,I(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-T&&(I(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(I(e,!0),e.strm.avail_out===0?A:j):(e.strstart>e.block_start&&(I(e,!1),e.strm.avail_out),O)}),new V(4,4,8,4,ee),new V(4,5,16,8,ee),new V(4,6,32,32,ee),new V(4,4,16,16,te),new V(8,16,32,32,te),new V(8,16,128,128,te),new V(8,32,128,256,te),new V(32,128,258,1024,te),new V(32,258,258,4096,te)],n.deflateInit=function(e,t){return H(e,t,g,15,8,0)},n.deflateInit2=H,n.deflateReset=ie,n.deflateResetKeep=re,n.deflateSetHeader=function(e,t){return e&&e.state&&e.state.wrap===2?(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||5<t||t<0)return e?M(e,f):f;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===666&&t!==u)return M(e,e.avail_out===0?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===E)if(i.wrap===2)e.adler=0,L(i,31),L(i,139),L(i,8),i.gzhead?(L(i,+!!i.gzhead.text+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),L(i,255&i.gzhead.time),L(i,i.gzhead.time>>8&255),L(i,i.gzhead.time>>16&255),L(i,i.gzhead.time>>24&255),L(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),L(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(L(i,255&i.gzhead.extra.length),L(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(L(i,0),L(i,0),L(i,0),L(i,0),L(i,0),L(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),L(i,3),i.status=D);else{var p=g+(i.w_bits-8<<4)<<8;p|=(2<=i.strategy||i.level<2?0:i.level<6?1:i.level===6?2:3)<<6,i.strstart!==0&&(p|=32),p+=31-p%31,i.status=D,R(i,p),i.strstart!==0&&(R(i,e.adler>>>16),R(i,65535&e.adler)),e.adler=1}if(i.status===69)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending!==i.pending_buf_size));)L(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(i.status===73)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,L(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.gzindex=0,i.status=91)}else i.status=91;if(i.status===91)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,L(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.status=103)}else i.status=103;if(i.status===103&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&F(e),i.pending+2<=i.pending_buf_size&&(L(i,255&e.adler),L(i,e.adler>>8&255),e.adler=0,i.status=D)):i.status=D),i.pending!==0){if(F(e),e.avail_out===0)return i.last_flush=-1,d}else if(e.avail_in===0&&N(t)<=N(n)&&t!==u)return M(e,-5);if(i.status===666&&e.avail_in!==0)return M(e,-5);if(e.avail_in!==0||i.lookahead!==0||t!==l&&i.status!==666){var m=i.strategy===2?function(e,t){for(var n;;){if(e.lookahead===0&&(B(e),e.lookahead===0)){if(t===l)return O;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(I(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(I(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(I(e,!1),e.strm.avail_out===0)?O:k}(i,t):i.strategy===3?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=w){if(B(e),e.lookahead<=w&&t===l)return O;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=C&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+w;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=w-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=C?(n=a._tr_tally(e,1,e.match_length-C),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(I(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(I(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(I(e,!1),e.strm.avail_out===0)?O:k}(i,t):r[i.level].func(i,t);if(m!==A&&m!==j||(i.status=666),m===O||m===A)return e.avail_out===0&&(i.last_flush=-1),d;if(m===k&&(t===1?a._tr_align(i):t!==5&&(a._tr_stored_block(i,0,0,!1),t===3&&(P(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),F(e),e.avail_out===0))return i.last_flush=-1,d}return t===u?i.wrap<=0?1:(i.wrap===2?(L(i,255&e.adler),L(i,e.adler>>8&255),L(i,e.adler>>16&255),L(i,e.adler>>24&255),L(i,255&e.total_in),L(i,e.total_in>>8&255),L(i,e.total_in>>16&255),L(i,e.total_in>>24&255)):(R(i,e.adler>>>16),R(i,65535&e.adler)),F(e),0<i.wrap&&(i.wrap=-i.wrap),i.pending===0?1:d):d},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==E&&t!==69&&t!==73&&t!==91&&t!==103&&t!==D&&t!==666?M(e,f):(e.state=null,t===D?M(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,a,s,c,l,u,p,m=t.length;if(!e||!e.state||(s=(n=e.state).wrap)===2||s===1&&n.status!==E||n.lookahead)return f;for(s===1&&(e.adler=o(e.adler,t,m,0)),n.wrap=0,m>=n.w_size&&(s===0&&(P(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,m-n.w_size,n.w_size,0),t=p,m=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=m,e.next_in=0,e.input=t,B(n);n.lookahead>=C;){for(r=n.strstart,a=n.lookahead-(C-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+C-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=C-1,B(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=C-1,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,n.wrap=s,d},n.deflateInfo=`pako deflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.state,r=e.next_in,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e.input,E;i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,m=n.bits,h=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=h[p&_];t:for(;;){if(p>>>=b=y>>>24,m-=b,(b=y>>>16&255)==0)E[a++]=65535&y;else{if(!(16&b)){if(!(64&b)){y=h[(65535&y)+(p&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg=`invalid literal/length code`,n.mode=30;break e}x=65535&y,(b&=15)&&(m<b&&(p+=T[r++]<<m,m+=8),x+=p&(1<<b)-1,p>>>=b,m-=b),m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=g[p&v];r:for(;;){if(p>>>=b=y>>>24,m-=b,!(16&(b=y>>>16&255))){if(!(64&b)){y=g[(65535&y)+(p&(1<<b)-1)];continue r}e.msg=`invalid distance code`,n.mode=30;break e}if(S=65535&y,m<(b&=15)&&(p+=T[r++]<<m,(m+=8)<b&&(p+=T[r++]<<m,m+=8)),c<(S+=p&(1<<b)-1)){e.msg=`invalid distance too far back`,n.mode=30;break e}if(p>>>=b,m-=b,(b=a-o)<S){if(u<(b=S-b)&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break e}if(w=f,(C=0)===d){if(C+=l-b,b<x){for(x-=b;E[a++]=f[C++],--b;);C=a-S,w=E}}else if(d<b){if(C+=l+d-b,(b-=d)<x){for(x-=b;E[a++]=f[C++],--b;);if(C=0,d<x){for(x-=b=d;E[a++]=f[C++],--b;);C=a-S,w=E}}}else if(C+=d-b,b<x){for(x-=b;E[a++]=f[C++],--b;);C=a-S,w=E}for(;2<x;)E[a++]=w[C++],E[a++]=w[C++],E[a++]=w[C++],x-=3;x&&(E[a++]=w[C++],1<x&&(E[a++]=w[C++]))}else{for(C=a-S;E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],2<(x-=3););x&&(E[a++]=E[C++],1<x&&(E[a++]=E[C++]))}break}}break}}while(r<i&&a<s);r-=x=m>>3,p&=(1<<(m-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=m}},{}],49:[function(e,t,n){"use strict";var r=e(`../utils/common`),i=e(`./adler32`),a=e(`./crc32`),o=e(`./inffast`),s=e(`./inftrees`),c=1,l=2,u=0,d=-2,f=1,p=852,m=592;function h(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(m),t.sane=1,t.back=-1,u):d}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,_(e)):d}function y(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,v(e))):d}function b(e,t){var n,r;return e?(r=new g,(e.state=r).window=null,(n=y(e,t))!==u&&(e.state=null),n):d}var x,S,C=!0;function w(e){if(C){var t;for(x=new r.Buf32(512),S=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,S,0,e.work,{bits:5}),C=!1}e.lencode=x,e.lenbits=9,e.distcode=S,e.distbits=5}function T(e,t,n,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=v,n.inflateReset2=y,n.inflateResetKeep=_,n.inflateInit=function(e){return b(e,15)},n.inflateInit2=b,n.inflate=function(e,t){var n,p,m,g,_,v,y,b,x,S,C,E,D,O,k,A,j,M,N,P,F,I,L,R,z=0,B=new r.Buf8(4),ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return d;(n=e.state).mode===12&&(n.mode=13),_=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,p=e.input,v=e.avail_in,b=n.hold,x=n.bits,S=v,C=y,I=u;e:for(;;)switch(n.mode){case f:if(n.wrap===0){n.mode=13;break}for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(2&n.wrap&&b===35615){B[n.check=0]=255&b,B[1]=b>>>8&255,n.check=a(n.check,B,2,0),x=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg=`incorrect header check`,n.mode=30;break}if((15&b)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(x-=4,F=8+(15&(b>>>=4)),n.wbits===0)n.wbits=F;else if(F>n.wbits){e.msg=`invalid window size`,n.mode=30;break}n.dmax=1<<F,e.adler=n.check=1,n.mode=512&b?10:12,x=b=0;break;case 2:for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(n.flags=b,(255&n.flags)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(57344&n.flags){e.msg=`unknown header flags set`,n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(B[0]=255&b,B[1]=b>>>8&255,n.check=a(n.check,B,2,0)),x=b=0,n.mode=3;case 3:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.head&&(n.head.time=b),512&n.flags&&(B[0]=255&b,B[1]=b>>>8&255,B[2]=b>>>16&255,B[3]=b>>>24&255,n.check=a(n.check,B,4,0)),x=b=0,n.mode=4;case 4:for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(B[0]=255&b,B[1]=b>>>8&255,n.check=a(n.check,B,2,0)),x=b=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(B[0]=255&b,B[1]=b>>>8&255,n.check=a(n.check,B,2,0)),x=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(E=n.length)&&(E=v),E&&(n.head&&(F=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,p,g,E,F)),512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(v===0)break e;for(E=0;F=p[g+E++],n.head&&F&&n.length<65536&&(n.head.name+=String.fromCharCode(F)),F&&E<v;);if(512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,F)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(v===0)break e;for(E=0;F=p[g+E++],n.head&&F&&n.length<65536&&(n.head.comment+=String.fromCharCode(F)),F&&E<v;);if(512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,F)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(b!==(65535&n.check)){e.msg=`header crc mismatch`,n.mode=30;break}x=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}e.adler=n.check=h(b),x=b=0,n.mode=11;case 11:if(n.havedict===0)return e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,2;e.adler=n.check=1,n.mode=12;case 12:if(t===5||t===6)break e;case 13:if(n.last){b>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}switch(n.last=1&b,--x,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,t!==6)break;b>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg=`invalid block type`,n.mode=30}b>>>=2,x-=2;break;case 14:for(b>>>=7&x,x-=7&x;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if((65535&b)!=(b>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=30;break}if(n.length=65535&b,x=b=0,n.mode=15,t===6)break e;case 15:n.mode=16;case 16:if(E=n.length){if(v<E&&(E=v),y<E&&(E=y),E===0)break e;r.arraySet(m,p,g,E,_),v-=E,g+=E,y-=E,_+=E,n.length-=E;break}n.mode=12;break;case 17:for(;x<14;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(n.nlen=257+(31&b),b>>>=5,x-=5,n.ndist=1+(31&b),b>>>=5,x-=5,n.ncode=4+(15&b),b>>>=4,x-=4,286<n.nlen||30<n.ndist){e.msg=`too many length or distance symbols`,n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.lens[ee[n.have++]]=7&b,b>>>=3,x-=3}for(;n.have<19;)n.lens[ee[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},I=s(0,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg=`invalid code lengths set`,n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;A=(z=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&z,!((k=z>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(j<16)b>>>=k,x-=k,n.lens[n.have++]=j;else{if(j===16){for(R=k+2;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(b>>>=k,x-=k,n.have===0){e.msg=`invalid bit length repeat`,n.mode=30;break}F=n.lens[n.have-1],E=3+(3&b),b>>>=2,x-=2}else if(j===17){for(R=k+3;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}x-=k,F=0,E=3+(7&(b>>>=k)),b>>>=3,x-=3}else{for(R=k+7;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}x-=k,F=0,E=11+(127&(b>>>=k)),b>>>=7,x-=7}if(n.have+E>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=30;break}for(;E--;)n.lens[n.have++]=F}}if(n.mode===30)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=30;break}if(n.lenbits=9,L={bits:n.lenbits},I=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg=`invalid literal/lengths set`,n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},I=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,I){e.msg=`invalid distances set`,n.mode=30;break}if(n.mode=20,t===6)break e;case 20:n.mode=21;case 21:if(6<=v&&258<=y){e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,o(e,C),_=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,p=e.input,v=e.avail_in,b=n.hold,x=n.bits,n.mode===12&&(n.back=-1);break}for(n.back=0;A=(z=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&z,!((k=z>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(A&&!(240&A)){for(M=k,N=A,P=j;A=(z=n.lencode[P+((b&(1<<M+N)-1)>>M)])>>>16&255,j=65535&z,!(M+(k=z>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}b>>>=M,x-=M,n.back+=M}if(b>>>=k,x-=k,n.back+=k,n.length=j,A===0){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg=`invalid literal/length code`,n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(R=n.extra;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(z=n.distcode[b&(1<<n.distbits)-1])>>>16&255,j=65535&z,!((k=z>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(!(240&A)){for(M=k,N=A,P=j;A=(z=n.distcode[P+((b&(1<<M+N)-1)>>M)])>>>16&255,j=65535&z,!(M+(k=z>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}b>>>=M,x-=M,n.back+=M}if(b>>>=k,x-=k,n.back+=k,64&A){e.msg=`invalid distance code`,n.mode=30;break}n.offset=j,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(R=n.extra;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=30;break}n.mode=25;case 25:if(y===0)break e;if(E=C-y,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break}D=E>n.wnext?(E-=n.wnext,n.wsize-E):n.wnext-E,E>n.length&&(E=n.length),O=n.window}else O=m,D=_-n.offset,E=n.length;for(y<E&&(E=y),y-=E,n.length-=E;m[_++]=O[D++],--E;);n.length===0&&(n.mode=21);break;case 26:if(y===0)break e;m[_++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(v===0)break e;v--,b|=p[g++]<<x,x+=8}if(C-=y,e.total_out+=C,n.total+=C,C&&(e.adler=n.check=n.flags?a(n.check,m,C,_-C):i(n.check,m,C,_-C)),C=y,(n.flags?b:h(b))!==n.check){e.msg=`incorrect data check`,n.mode=30;break}x=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(b!==(4294967295&n.total)){e.msg=`incorrect length check`,n.mode=30;break}x=b=0}n.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,(n.wsize||C!==e.avail_out&&n.mode<30&&(n.mode<27||t!==4))&&T(e,e.output,e.next_out,C-e.avail_out)?(n.mode=31,-4):(S-=e.avail_in,C-=e.avail_out,e.total_in+=S,e.total_out+=C,n.total+=C,n.wrap&&C&&(e.adler=n.check=n.flags?a(n.check,m,C,e.next_out-C):i(n.check,m,C,e.next_out-C)),e.data_type=n.bits+(n.last?64:0)+(n.mode===12?128:0)+(n.mode===20||n.mode===15?256:0),(S==0&&C===0||t===4)&&I===u&&(I=-5),I)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&=null,e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?(n=e.state).wrap!==0&&n.mode!==11?d:n.mode===11&&i(1,t,r,0)!==n.check?-3:T(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo=`pako inflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e(`../utils/common`),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,l,u,d,f){var p,m,h,g,_,v,y,b,x,S=f.bits,C=0,w=0,T=0,E=0,D=0,O=0,k=0,A=0,j=0,M=0,N=null,P=0,F=new r.Buf16(16),I=new r.Buf16(16),L=null,R=0;for(C=0;C<=15;C++)F[C]=0;for(w=0;w<c;w++)F[t[n+w]]++;for(D=S,E=15;1<=E&&F[E]===0;E--);if(E<D&&(D=E),E===0)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0;for(T=1;T<E&&F[T]===0;T++);for(D<T&&(D=T),C=A=1;C<=15;C++)if(A<<=1,(A-=F[C])<0)return-1;if(0<A&&(e===0||E!==1))return-1;for(I[1]=0,C=1;C<15;C++)I[C+1]=I[C]+F[C];for(w=0;w<c;w++)t[n+w]!==0&&(d[I[t[n+w]]++]=w);if(v=e===0?(N=L=d,19):e===1?(N=i,P-=257,L=a,R-=257,256):(N=o,L=s,-1),C=T,_=u,k=w=M=0,h=-1,g=(j=1<<(O=D))-1,e===1&&852<j||e===2&&592<j)return 1;for(;;){for(y=C-k,x=d[w]<v?(b=0,d[w]):d[w]>v?(b=L[R+d[w]],N[P+d[w]]):(b=96,0),p=1<<C-k,T=m=1<<O;l[_+(M>>k)+(m-=p)]=y<<24|b<<16|x|0,m!==0;);for(p=1<<C-1;M&p;)p>>=1;if(p===0?M=0:(M&=p-1,M+=p),w++,--F[C]==0){if(C===E)break;C=t[n+d[w]]}if(D<C&&(M&g)!==h){for(k===0&&(k=D),_+=T,A=1<<(O=C-k);O+k<E&&!((A-=F[O+k])<=0);)O++,A<<=1;if(j+=1<<O,e===1&&852<j||e===2&&592<j)return 1;l[h=M&g]=D<<24|O<<16|_-u|0}}return M!==0&&(l[_+M]=C-k<<24|4194304),f.bits=D,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}},{}],52:[function(e,t,n){"use strict";var r=e(`../utils/common`),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,l=256,u=l+1+c,d=30,f=19,p=2*u+1,m=15,h=16,g=7,_=256,v=16,y=17,b=18,x=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],w=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=Array(2*(u+2));o(T);var E=Array(2*d);o(E);var D=Array(512);o(D);var O=Array(256);o(O);var k=Array(c);o(k);var A,j,M,N=Array(d);function P(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function F(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function I(e){return e<256?D[e]:D[256+(e>>>7)]}function L(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function R(e,t,n){e.bi_valid>h-n?(e.bi_buf|=t<<e.bi_valid&65535,L(e,e.bi_buf),e.bi_buf=t>>h-e.bi_valid,e.bi_valid+=n-h):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function z(e,t,n){R(e,n[2*t],n[2*t+1])}function B(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function ee(e,t,n){var r,i,a=Array(m+1),o=0;for(r=1;r<=m;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];s!==0&&(e[2*i]=B(a[s]++,s))}}function te(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*_]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function V(e){8<e.bi_valid?L(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ne(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function re(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&ne(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!ne(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function ie(e,t,n){var r,i,a,o,s=0;if(e.last_lit!==0)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,r===0?z(e,i,t):(z(e,(a=O[i])+l+1,t),(o=x[a])!==0&&R(e,i-=k[a],o),z(e,a=I(--r),n),(o=S[a])!==0&&R(e,r-=N[a],o)),s<e.last_lit;);z(e,_,t)}function H(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=p,n=0;n<c;n++)a[2*n]===0?a[2*n+1]=0:(e.heap[++e.heap_len]=l=n,e.depth[n]=0);for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)re(e,a,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],re(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,re(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,g=t.stat_desc.max_length,_=0;for(a=0;a<=m;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<p;n++)g<(a=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(a=g,_++),c[2*r+1]=a,l<r||(e.bl_count[a]++,o=0,h<=r&&(o=f[r-h]),s=c[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*r+1]+o)));if(_!==0){do{for(a=g-1;e.bl_count[a]===0;)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,_-=2}while(0<_);for(a=g;a!==0;a--)for(r=e.bl_count[a];r!==0;)l<(i=e.heap[--n])||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(e,t),ee(a,l,e.bl_count)}function ae(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:i===0?s<=10?e.bl_tree[2*y]++:e.bl_tree[2*b]++:(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*v]++),a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function oe(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<c&&i===o)){if(s<l)for(;z(e,i,e.bl_tree),--s!=0;);else i===0?s<=10?(z(e,y,e.bl_tree),R(e,s-3,3)):(z(e,b,e.bl_tree),R(e,s-11,7)):(i!==a&&(z(e,i,e.bl_tree),s--),z(e,v,e.bl_tree),R(e,s-3,2));a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}o(N);var se=!1;function ce(e,t,n,i){R(e,(s<<1)+ +!!i,3),function(e,t,n,i){V(e),i&&(L(e,n),L(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){se||=(function(){var e,t,n,r,i,a=Array(m+1);for(r=n=0;r<c-1;r++)for(k[r]=n,e=0;e<1<<x[r];e++)O[n++]=r;for(O[n-1]=r,r=i=0;r<16;r++)for(N[r]=i,e=0;e<1<<S[r];e++)D[i++]=r;for(i>>=7;r<d;r++)for(N[r]=i<<7,e=0;e<1<<S[r]-7;e++)D[256+i++]=r;for(t=0;t<=m;t++)a[t]=0;for(e=0;e<=143;)T[2*e+1]=8,e++,a[8]++;for(;e<=255;)T[2*e+1]=9,e++,a[9]++;for(;e<=279;)T[2*e+1]=7,e++,a[7]++;for(;e<=287;)T[2*e+1]=8,e++,a[8]++;for(ee(T,u+1,a),e=0;e<d;e++)E[2*e+1]=5,E[2*e]=B(e,5);A=new P(T,x,l+1,u,m),j=new P(E,S,0,d,m),M=new P([],C,0,f,g)}(),!0),e.l_desc=new F(e.dyn_ltree,A),e.d_desc=new F(e.dyn_dtree,j),e.bl_desc=new F(e.bl_tree,M),e.bi_buf=0,e.bi_valid=0,te(e)},n._tr_stored_block=ce,n._tr_flush_block=function(e,t,n,r){var o,s,c=0;0<e.level?(e.strm.data_type===2&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&e.dyn_ltree[2*t]!==0)return i;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return a;for(t=32;t<l;t++)if(e.dyn_ltree[2*t]!==0)return a;return i}(e)),H(e,e.l_desc),H(e,e.d_desc),c=function(e){var t;for(ae(e,e.dyn_ltree,e.l_desc.max_code),ae(e,e.dyn_dtree,e.d_desc.max_code),H(e,e.bl_desc),t=f-1;3<=t&&e.bl_tree[2*w[t]+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&t!==-1?ce(e,t,n,r):e.strategy===4||s===o?(R(e,2+ +!!r,3),ie(e,T,E)):(R(e,4+ +!!r,3),function(e,t,n,r){var i;for(R(e,t-257,5),R(e,n-1,5),R(e,r-4,4),i=0;i<r;i++)R(e,e.bl_tree[2*w[i]+1],3);oe(e,e.dyn_ltree,t-1),oe(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),ie(e,e.dyn_ltree,e.dyn_dtree)),te(e),r&&V(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,t===0?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(O[n]+l+1)]++,e.dyn_dtree[2*I(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){R(e,2,3),z(e,_,T),function(e){e.bi_valid===16?(L(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){(function(e,t){"use strict";if(!e.setImmediate){var n,r,i,a,o=1,s={},c=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n={}.toString.call(e.process)===`[object process]`?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(``,`*`),e.onmessage=n,t}}()?(a=`setImmediate$`+Math.random()+`$`,e.addEventListener?e.addEventListener(`message`,p,!1):e.attachEvent(`onmessage`,p),function(t){e.postMessage(a+t,`*`)}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):l&&`onreadystatechange`in l.createElement(`script`)?(r=l.documentElement,function(e){var t=l.createElement(`script`);t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){typeof e!=`function`&&(e=Function(``+e));for(var t=Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return s[o]={callback:e,args:t},n(o),o++},u.clearImmediate=d}function d(e){delete s[e]}function f(e){if(c)setTimeout(f,0,e);else{var n=s[e];if(n){c=!0;try{(function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}})(n)}finally{d(e),c=!1}}}}function p(t){t.source===e&&typeof t.data==`string`&&t.data.indexOf(a)===0&&f(+t.data.slice(a.length))}})(typeof self>`u`?e===void 0?this:e:self)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}]},{},[10])(10)})})),ru,iu,au,ou,su,cu,lu,uu,du,fu,pu,mu,hu,gu,_u,vu,yu,bu,xu,Su,Cu=e.n((()=>{ru=`1.13.8`,iu=typeof self==`object`&&self.self===self&&self||typeof global==`object`&&global.global===global&&global||Function(`return this`)()||{},au=Array.prototype,ou=Object.prototype,su=typeof Symbol<`u`?Symbol.prototype:null,cu=au.push,lu=au.slice,uu=ou.toString,du=ou.hasOwnProperty,fu=typeof ArrayBuffer<`u`,pu=typeof DataView<`u`,mu=Array.isArray,hu=Object.keys,gu=Object.create,_u=fu&&ArrayBuffer.isView,vu=isNaN,yu=isFinite,bu=!{toString:null}.propertyIsEnumerable(`toString`),xu=[`valueOf`,`isPrototypeOf`,`toString`,`propertyIsEnumerable`,`hasOwnProperty`,`toLocaleString`],Su=2**53-1}));function wu(e,t){return t=t==null?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var a=Array(t+1);for(i=0;i<t;i++)a[i]=arguments[i];return a[t]=r,e.apply(this,a)}}var Tu=e.n((()=>{}));function Eu(e){var t=typeof e;return t===`function`||t===`object`&&!!e}var Du=e.n((()=>{}));function Ou(e){return e===null}var ku=e.n((()=>{}));function Au(e){return e===void 0}var ju=e.n((()=>{}));function Mu(e){return e===!0||e===!1||uu.call(e)===`[object Boolean]`}var Nu=e.n((()=>{Cu()}));function Pu(e){return!!(e&&e.nodeType===1)}var Fu=e.n((()=>{}));function Iu(e){var t=`[object `+e+`]`;return function(e){return uu.call(e)===t}}var Lu=e.n((()=>{Cu()})),Ru,zu=e.n((()=>{Lu(),Ru=Iu(`String`)})),Bu,Vu=e.n((()=>{Lu(),Bu=Iu(`Number`)})),Hu,Uu=e.n((()=>{Lu(),Hu=Iu(`Date`)})),Wu,Gu=e.n((()=>{Lu(),Wu=Iu(`RegExp`)})),Ku,qu=e.n((()=>{Lu(),Ku=Iu(`Error`)})),Ju,Yu=e.n((()=>{Lu(),Ju=Iu(`Symbol`)})),Xu,Zu=e.n((()=>{Lu(),Xu=Iu(`ArrayBuffer`)})),Qu,$u,ed,td=e.n((()=>{Lu(),Cu(),Qu=Iu(`Function`),$u=iu.document&&iu.document.childNodes,typeof/./!=`function`&&typeof Int8Array!=`object`&&typeof $u!=`function`&&(Qu=function(e){return typeof e==`function`||!1}),ed=Qu})),nd,rd=e.n((()=>{Lu(),nd=Iu(`Object`)})),id,ad,od=e.n((()=>{Cu(),rd(),id=pu&&(!/\[native code\]/.test(String(DataView))||nd(new DataView(new ArrayBuffer(8)))),ad=typeof Map<`u`&&nd(new Map)}));function sd(e){return e!=null&&ed(e.getInt8)&&Xu(e.buffer)}var cd,ld,ud=e.n((()=>{Lu(),td(),Zu(),od(),cd=Iu(`DataView`),ld=id?sd:cd})),dd,fd=e.n((()=>{Cu(),Lu(),dd=mu||Iu(`Array`)}));function pd(e,t){return e!=null&&du.call(e,t)}var md=e.n((()=>{Cu()})),hd,gd,_d=e.n((()=>{Lu(),md(),hd=Iu(`Arguments`),(function(){hd(arguments)||(hd=function(e){return pd(e,`callee`)})})(),gd=hd}));function vd(e){return!Ju(e)&&yu(e)&&!isNaN(parseFloat(e))}var yd=e.n((()=>{Cu(),Yu()}));function bd(e){return Bu(e)&&vu(e)}var xd=e.n((()=>{Cu(),Vu()}));function Sd(e){return function(){return e}}var Cd=e.n((()=>{}));function wd(e){return function(t){var n=e(t);return typeof n==`number`&&n>=0&&n<=Su}}var Td=e.n((()=>{Cu()}));function Ed(e){return function(t){return t?.[e]}}var Dd=e.n((()=>{})),Od,kd=e.n((()=>{Dd(),Od=Ed(`byteLength`)})),Ad,jd=e.n((()=>{Td(),kd(),Ad=wd(Od)}));function Md(e){return _u?_u(e)&&!ld(e):Ad(e)&&Nd.test(uu.call(e))}var Nd,Pd,Fd=e.n((()=>{Cu(),ud(),Cd(),jd(),Nd=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,Pd=fu?Md:Sd(!1)})),Id,Ld=e.n((()=>{Dd(),Id=Ed(`length`)}));function Rd(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]===!0},push:function(n){return t[n]=!0,e.push(n)}}}function zd(e,t){t=Rd(t);var n=xu.length,r=e.constructor,i=ed(r)&&r.prototype||ou,a=`constructor`;for(pd(e,a)&&!t.contains(a)&&t.push(a);n--;)a=xu[n],a in e&&e[a]!==i[a]&&!t.contains(a)&&t.push(a)}var Bd=e.n((()=>{Cu(),td(),md()}));function Vd(e){if(!Eu(e))return[];if(hu)return hu(e);var t=[];for(var n in e)pd(e,n)&&t.push(n);return bu&&zd(e,t),t}var Hd=e.n((()=>{Du(),Cu(),md(),Bd()}));function Ud(e){if(e==null)return!0;var t=Id(e);return typeof t==`number`&&(dd(e)||Ru(e)||gd(e))?t===0:Id(Vd(e))===0}var Wd=e.n((()=>{Ld(),fd(),zu(),_d(),Hd()}));function Gd(e,t){var n=Vd(t),r=n.length;if(e==null)return!r;for(var i=Object(e),a=0;a<r;a++){var o=n[a];if(t[o]!==i[o]||!(o in i))return!1}return!0}var Kd=e.n((()=>{Hd()}));function qd(e){if(e instanceof qd)return e;if(!(this instanceof qd))return new qd(e);this._wrapped=e}var Jd=e.n((()=>{Cu(),qd.VERSION=ru,qd.prototype.value=function(){return this._wrapped},qd.prototype.valueOf=qd.prototype.toJSON=qd.prototype.value,qd.prototype.toString=function(){return String(this._wrapped)}}));function Yd(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Od(e))}var Xd=e.n((()=>{kd()}));function Zd(e,t){for(var n=[{a:e,b:t}],r=[],i=[];n.length;){var a=n.pop();if(a===!0){r.pop(),i.pop();continue}if(e=a.a,t=a.b,e===t){if(e!==0||1/e==1/t)continue;return!1}if(e==null||t==null)return!1;if(e!==e){if(t!==t)continue;return!1}var o=typeof e;if(o!==`function`&&o!==`object`&&typeof t!=`object`)return!1;e instanceof qd&&(e=e._wrapped),t instanceof qd&&(t=t._wrapped);var s=uu.call(e);if(s!==uu.call(t))return!1;if(id&&s==`[object Object]`&&ld(e)){if(!ld(t))return!1;s=Qd}switch(s){case`[object RegExp]`:case`[object String]`:if(``+e==``+t)continue;return!1;case`[object Number]`:n.push({a:+e,b:+t});continue;case`[object Date]`:case`[object Boolean]`:if(+e==+t)continue;return!1;case`[object Symbol]`:if(su.valueOf.call(e)===su.valueOf.call(t))continue;return!1;case`[object ArrayBuffer]`:case Qd:n.push({a:Yd(e),b:Yd(t)});continue}var c=s===`[object Array]`;if(!c&&Pd(e)){if(Od(e)!==Od(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)continue;c=!0}if(!c){if(typeof e!=`object`||typeof t!=`object`)return!1;var l=e.constructor,u=t.constructor;if(l!==u&&!(ed(l)&&l instanceof l&&ed(u)&&u instanceof u)&&`constructor`in e&&`constructor`in t)return!1}for(var d=r.length;d--;)if(r[d]===e){if(i[d]===t)break;return!1}if(!(d>=0))if(r.push(e),i.push(t),n.push(!0),c){if(d=e.length,d!==t.length)return!1;for(;d--;)n.push({a:e[d],b:t[d]})}else{var f=Vd(e),p;if(d=f.length,Vd(t).length!==d)return!1;for(;d--;){if(p=f[d],!pd(t,p))return!1;n.push({a:e[p],b:t[p]})}}}return!0}var Qd,$d=e.n((()=>{Jd(),Cu(),kd(),Fd(),td(),od(),ud(),Hd(),md(),Xd(),Qd=`[object DataView]`}));function ef(e){if(!Eu(e))return[];var t=[];for(var n in e)t.push(n);return bu&&zd(e,t),t}var tf=e.n((()=>{Du(),Cu(),Bd()}));function nf(e){var t=Id(e);return function(n){if(n==null||Id(ef(n)))return!1;for(var r=0;r<t;r++)if(!ed(n[e[r]]))return!1;return e!==lf||!ed(n[rf])}}var rf,af,of,sf,cf,lf,uf,df=e.n((()=>{Ld(),td(),tf(),rf=`forEach`,af=`has`,of=[`clear`,`delete`],sf=[`get`,af,`set`],cf=of.concat(rf,sf),lf=of.concat(sf),uf=[`add`].concat(of,rf,af)})),ff,pf=e.n((()=>{Lu(),od(),df(),ff=ad?nf(cf):Iu(`Map`)})),mf,hf=e.n((()=>{Lu(),od(),df(),mf=ad?nf(lf):Iu(`WeakMap`)})),gf,_f=e.n((()=>{Lu(),od(),df(),gf=ad?nf(uf):Iu(`Set`)})),vf,yf=e.n((()=>{Lu(),vf=Iu(`WeakSet`)}));function bf(e){for(var t=Vd(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}var xf=e.n((()=>{Hd()}));function Sf(e){for(var t=Vd(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}var Cf=e.n((()=>{Hd()}));function wf(e){for(var t={},n=Vd(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}var Tf=e.n((()=>{Hd()}));function Ef(e){var t=[];for(var n in e)ed(e[n])&&t.push(n);return t.sort()}var Df=e.n((()=>{td()}));function Of(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||n==null)return n;for(var i=1;i<r;i++)for(var a=arguments[i],o=e(a),s=o.length,c=0;c<s;c++){var l=o[c];(!t||n[l]===void 0)&&(n[l]=a[l])}return n}}var kf=e.n((()=>{})),Af,jf=e.n((()=>{kf(),tf(),Af=Of(ef)})),Mf,Nf=e.n((()=>{kf(),Hd(),Mf=Of(Vd)})),Pf,Ff=e.n((()=>{kf(),tf(),Pf=Of(ef,!0)}));function If(){return function(){}}function Lf(e){if(!Eu(e))return{};if(gu)return gu(e);var t=If();t.prototype=e;var n=new t;return t.prototype=null,n}var Rf=e.n((()=>{Du(),Cu()}));function zf(e,t){var n=Lf(e);return t&&Mf(n,t),n}var Bf=e.n((()=>{Rf(),Nf()}));function Vf(e){return Eu(e)?dd(e)?e.slice():Af({},e):e}var Hf=e.n((()=>{Du(),fd(),jf()}));function Uf(e,t){return t(e),e}var Wf=e.n((()=>{}));function Gf(e){return dd(e)?e:[e]}var Kf=e.n((()=>{Jd(),fd(),qd.toPath=Gf}));function qf(e){return qd.toPath(e)}var Jf=e.n((()=>{Jd(),Kf()}));function Yf(e,t){for(var n=t.length,r=0;r<n;r++){if(e==null)return;e=e[t[r]]}return n?e:void 0}var Xf=e.n((()=>{}));function Zf(e,t,n){var r=Yf(e,qf(t));return Au(r)?n:r}var Qf=e.n((()=>{Jf(),Xf(),ju()}));function $f(e,t){t=qf(t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(!pd(e,i))return!1;e=e[i]}return!!n}var ep=e.n((()=>{md(),Jf()}));function tp(e){return e}var np=e.n((()=>{}));function rp(e){return e=Mf({},e),function(t){return Gd(t,e)}}var ip=e.n((()=>{Nf(),Kd()}));function ap(e){return e=qf(e),function(t){return Yf(t,e)}}var op=e.n((()=>{Xf(),Jf()}));function sp(e,t,n){if(t===void 0)return e;switch(n??3){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,a){return e.call(t,n,r,i,a)}}return function(){return e.apply(t,arguments)}}var cp=e.n((()=>{}));function lp(e,t,n){return e==null?tp:ed(e)?sp(e,t,n):Eu(e)&&!dd(e)?rp(e):ap(e)}var up=e.n((()=>{np(),td(),Du(),fd(),ip(),op(),cp()}));function dp(e,t){return lp(e,t,1/0)}var fp=e.n((()=>{Jd(),up(),qd.iteratee=dp}));function pp(e,t,n){return qd.iteratee===dp?lp(e,t,n):qd.iteratee(e,t)}var mp=e.n((()=>{Jd(),up(),fp()}));function hp(e,t,n){t=pp(t,n);for(var r=Vd(e),i=r.length,a={},o=0;o<i;o++){var s=r[o];a[s]=t(e[s],s,e)}return a}var gp=e.n((()=>{mp(),Hd()}));function _p(){}var vp=e.n((()=>{}));function yp(e){return e==null?_p:function(t){return Zf(e,t)}}var bp=e.n((()=>{vp(),Qf()}));function xp(e,t,n){var r=Array(Math.max(0,e));t=sp(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}var Sp=e.n((()=>{cp()}));function Cp(e,t){return t??(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}var wp=e.n((()=>{})),Tp,Ep=e.n((()=>{Tp=Date.now||function(){return new Date().getTime()}}));function Dp(e){var t=function(t){return e[t]},n=`(?:`+Vd(e).join(`|`)+`)`,r=RegExp(n),i=RegExp(n,`g`);return function(e){return e=e==null?``:``+e,r.test(e)?e.replace(i,t):e}}var Op=e.n((()=>{Hd()})),kp,Ap=e.n((()=>{kp={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#x27;`,"`":`&#x60;`}})),jp,Mp=e.n((()=>{Op(),Ap(),jp=Dp(kp)})),Np,Pp=e.n((()=>{Tf(),Ap(),Np=wf(kp)})),Fp,Ip=e.n((()=>{Op(),Pp(),Fp=Dp(Np)})),Lp,Rp=e.n((()=>{Jd(),Lp=qd.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g}}));function zp(e){return`\\`+Hp[e]}function Bp(e,t,n){!t&&n&&(t=n),t=Pf({},t,qd.templateSettings);var r=RegExp([(t.escape||Vp).source,(t.interpolate||Vp).source,(t.evaluate||Vp).source].join(`|`)+`|$`,`g`),i=0,a=`__p+='`;e.replace(r,function(t,n,r,o,s){return a+=e.slice(i,s).replace(Up,zp),i=s+t.length,n?a+=`'+
552
552
  ((__t=(`+n+`))==null?'':_.escape(__t))+
553
553
  '`:r?a+=`'+
554
554
  ((__t=(`+r+`))==null?'':__t)+
@@ -572,29 +572,29 @@ __p+='`),t}),a+=`';
572
572
  `;g++,e=Array(g*4+1).join(` `);for(var n=0;n<this.length;++n){for(var r=this[n]===this?`[Circular AggregateError]`:this[n]+``,i=r.split(`
573
573
  `),a=0;a<i.length;++a)i[a]=e+i[a];r=i.join(`
574
574
  `),t+=r+`
575
- `}return g--,t};function _(e){if(!(this instanceof _))return new _(e);o(this,`name`,`OperationalError`),o(this,`message`,e),this.cause=e,this.isOperational=!0,e instanceof Error?(o(this,`message`,e.message),o(this,`stack`,e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}a(_,Error);var v=Error.__BluebirdErrorTypes__;v||(v=r({CancellationError:d,TimeoutError:f,OperationalError:_,RejectionError:_,AggregateError:p}),n.defineProperty(Error,`__BluebirdErrorTypes__`,{value:v,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error,TypeError:c,RangeError:l,CancellationError:v.CancellationError,OperationalError:v.OperationalError,TimeoutError:v.TimeoutError,AggregateError:v.AggregateError,Warning:u}})),Qg=e.t(((e,t)=>{t.exports=function(e,t){var n=qg(),r=n.errorObj,i=n.isObject;function a(n,a){if(i(n)){if(n instanceof e)return n;var o=s(n);if(o===r){a&&a._pushContext();var c=e.reject(o.e);return a&&a._popContext(),c}else if(typeof o==`function`){if(l(n)){var c=new e(t);return n._then(c._fulfill,c._reject,void 0,c,null),c}return u(n,o,a)}}return n}function o(e){return e.then}function s(e){try{return o(e)}catch(e){return r.e=e,r}}var c={}.hasOwnProperty;function l(e){try{return c.call(e,`_promise0`)}catch{return!1}}function u(i,a,o){var s=new e(t),c=s;o&&o._pushContext(),s._captureStackTrace(),o&&o._popContext();var l=!0,u=n.tryCatch(a).call(i,d,f);l=!1,s&&u===r&&(s._rejectCallback(u.e,!0,!0),s=null);function d(e){s&&=(s._resolveCallback(e),null)}function f(e){s&&=(s._rejectCallback(e,l,!0),null)}return c}return a}})),$g=e.t(((e,t)=>{t.exports=function(e,t,n,r,i){var a=qg();a.isArray;function o(e){switch(e){case-2:return[];case-3:return{}}}function s(n){var r=this._promise=new e(t);n instanceof e&&r._propagateFrom(n,3),r._setOnCancel(this),this._values=n,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.inherits(s,i),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function t(i,s){var c=n(this._values,this._promise);if(c instanceof e){c=c._target();var l=c._bitField;if(this._values=c,!(l&50397184))return this._promise._setAsyncGuaranteed(),c._then(t,this._reject,void 0,this,s);if(l&33554432)c=c._value();else if(l&16777216)return this._reject(c._reason());else return this._cancel()}if(c=a.asArray(c),c===null){var u=r(`expecting an array or an iterable object but got `+a.classString(c)).reason();this._promise._rejectCallback(u,!1);return}if(c.length===0){s===-5?this._resolveEmptyArray():this._resolve(o(s));return}this._iterate(c)},s.prototype._iterate=function(t){var r=this.getActualLength(t.length);this._length=r,this._values=this.shouldCopyValues()?Array(r):this._values;for(var i=this._promise,a=!1,o=null,s=0;s<r;++s){var c=n(t[s],i);c instanceof e?(c=c._target(),o=c._bitField):o=null,a?o!==null&&c.suppressUnhandledRejections():o===null?a=this._promiseFulfilled(c,s):o&50397184?a=o&33554432?this._promiseFulfilled(c._value(),s):o&16777216?this._promiseRejected(c._reason(),s):this._promiseCancelled(s):(c._proxy(this,s),this._values[s]=c)}a||i._setAsyncGuaranteed()},s.prototype._isResolved=function(){return this._values===null},s.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},s.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},s.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},s.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=this._length?(this._resolve(this._values),!0):!1},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n<t.length;++n)t[n]instanceof e&&t[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(e){return e},s}})),e_=e.t(((e,t)=>{t.exports=function(e){var t=!1,n=[];e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){};function r(){this._trace=new r.CapturedTrace(a())}r.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(this._trace!==void 0){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null};function i(){if(t)return new r}function a(){var e=n.length-1;if(e>=0)return n[e]}return r.CapturedTrace=null,r.create=i,r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,i=e.prototype._popContext,o=e._peekContext,s=e.prototype._peekContext,c=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=i,e._peekContext=o,e.prototype._peekContext=s,e.prototype._promiseCreated=c,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=a,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&e._promiseCreated==null&&(e._promiseCreated=this)}},r}})),t_=e.t(((e,t)=>{t.exports=function(e,t){var n=e._getDomain,r=e._async,i=Zg().Warning,a=qg(),o=a.canAttachTrace,s,c,l=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,u=/\((?:timers\.js):\d+:\d+\)/,d=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,f=null,p=null,m=!1,h,g=!!(a.env(`BLUEBIRD_DEBUG`)!=0&&(a.env(`BLUEBIRD_DEBUG`)||a.env(`NODE_ENV`)===`development`)),_=!!(a.env(`BLUEBIRD_WARNINGS`)!=0&&(g||a.env(`BLUEBIRD_WARNINGS`))),v=!!(a.env(`BLUEBIRD_LONG_STACK_TRACES`)!=0&&(g||a.env(`BLUEBIRD_LONG_STACK_TRACES`))),y=a.env(`BLUEBIRD_W_FORGOTTEN_RETURN`)!=0&&(_||!!a.env(`BLUEBIRD_W_FORGOTTEN_RETURN`));e.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=e._bitField&-1048577|524288},e.prototype._ensurePossibleRejectionHandled=function(){this._bitField&524288||(this._setRejectionIsUnhandled(),r.invokeLater(this._notifyUnhandledRejection,this,void 0))},e.prototype._notifyUnhandledRejectionIsHandled=function(){ie(`rejectionHandled`,s,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField|=268435456},e.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!=0},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),ie(`unhandledRejection`,c,e,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField|=262144},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField&=-262145},e.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField|=1048576},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField&=-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},e.prototype._warn=function(e,t,n){return B(e,t,n||this)},e.onPossiblyUnhandledRejection=function(e){var t=n();c=typeof e==`function`?t===null?e:a.domainBind(t,e):void 0},e.onUnhandledRejectionHandled=function(e){var t=n();s=typeof e==`function`?t===null?e:a.domainBind(t,e):void 0};var b=function(){};e.longStackTraces=function(){if(r.haveItemsQueued()&&!me.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created
575
+ `}return g--,t};function _(e){if(!(this instanceof _))return new _(e);o(this,`name`,`OperationalError`),o(this,`message`,e),this.cause=e,this.isOperational=!0,e instanceof Error?(o(this,`message`,e.message),o(this,`stack`,e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}a(_,Error);var v=Error.__BluebirdErrorTypes__;v||(v=r({CancellationError:d,TimeoutError:f,OperationalError:_,RejectionError:_,AggregateError:p}),n.defineProperty(Error,`__BluebirdErrorTypes__`,{value:v,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error,TypeError:c,RangeError:l,CancellationError:v.CancellationError,OperationalError:v.OperationalError,TimeoutError:v.TimeoutError,AggregateError:v.AggregateError,Warning:u}})),Qg=e.t(((e,t)=>{t.exports=function(e,t){var n=qg(),r=n.errorObj,i=n.isObject;function a(n,a){if(i(n)){if(n instanceof e)return n;var o=s(n);if(o===r){a&&a._pushContext();var c=e.reject(o.e);return a&&a._popContext(),c}else if(typeof o==`function`){if(l(n)){var c=new e(t);return n._then(c._fulfill,c._reject,void 0,c,null),c}return u(n,o,a)}}return n}function o(e){return e.then}function s(e){try{return o(e)}catch(e){return r.e=e,r}}var c={}.hasOwnProperty;function l(e){try{return c.call(e,`_promise0`)}catch{return!1}}function u(i,a,o){var s=new e(t),c=s;o&&o._pushContext(),s._captureStackTrace(),o&&o._popContext();var l=!0,u=n.tryCatch(a).call(i,d,f);l=!1,s&&u===r&&(s._rejectCallback(u.e,!0,!0),s=null);function d(e){s&&=(s._resolveCallback(e),null)}function f(e){s&&=(s._rejectCallback(e,l,!0),null)}return c}return a}})),$g=e.t(((e,t)=>{t.exports=function(e,t,n,r,i){var a=qg();a.isArray;function o(e){switch(e){case-2:return[];case-3:return{}}}function s(n){var r=this._promise=new e(t);n instanceof e&&r._propagateFrom(n,3),r._setOnCancel(this),this._values=n,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.inherits(s,i),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function t(i,s){var c=n(this._values,this._promise);if(c instanceof e){c=c._target();var l=c._bitField;if(this._values=c,!(l&50397184))return this._promise._setAsyncGuaranteed(),c._then(t,this._reject,void 0,this,s);if(l&33554432)c=c._value();else if(l&16777216)return this._reject(c._reason());else return this._cancel()}if(c=a.asArray(c),c===null){var u=r(`expecting an array or an iterable object but got `+a.classString(c)).reason();this._promise._rejectCallback(u,!1);return}if(c.length===0){s===-5?this._resolveEmptyArray():this._resolve(o(s));return}this._iterate(c)},s.prototype._iterate=function(t){var r=this.getActualLength(t.length);this._length=r,this._values=this.shouldCopyValues()?Array(r):this._values;for(var i=this._promise,a=!1,o=null,s=0;s<r;++s){var c=n(t[s],i);c instanceof e?(c=c._target(),o=c._bitField):o=null,a?o!==null&&c.suppressUnhandledRejections():o===null?a=this._promiseFulfilled(c,s):o&50397184?a=o&33554432?this._promiseFulfilled(c._value(),s):o&16777216?this._promiseRejected(c._reason(),s):this._promiseCancelled(s):(c._proxy(this,s),this._values[s]=c)}a||i._setAsyncGuaranteed()},s.prototype._isResolved=function(){return this._values===null},s.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},s.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},s.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},s.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=this._length?(this._resolve(this._values),!0):!1},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n<t.length;++n)t[n]instanceof e&&t[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(e){return e},s}})),e_=e.t(((e,t)=>{t.exports=function(e){var t=!1,n=[];e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){};function r(){this._trace=new r.CapturedTrace(a())}r.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(this._trace!==void 0){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null};function i(){if(t)return new r}function a(){var e=n.length-1;if(e>=0)return n[e]}return r.CapturedTrace=null,r.create=i,r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,i=e.prototype._popContext,o=e._peekContext,s=e.prototype._peekContext,c=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=i,e._peekContext=o,e.prototype._peekContext=s,e.prototype._promiseCreated=c,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=a,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&e._promiseCreated==null&&(e._promiseCreated=this)}},r}})),t_=e.t(((e,t)=>{t.exports=function(e,t){var n=e._getDomain,r=e._async,i=Zg().Warning,a=qg(),o=a.canAttachTrace,s,c,l=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,u=/\((?:timers\.js):\d+:\d+\)/,d=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,f=null,p=null,m=!1,h,g=!!(a.env(`BLUEBIRD_DEBUG`)!=0&&(a.env(`BLUEBIRD_DEBUG`)||a.env(`NODE_ENV`)===`development`)),_=!!(a.env(`BLUEBIRD_WARNINGS`)!=0&&(g||a.env(`BLUEBIRD_WARNINGS`))),v=!!(a.env(`BLUEBIRD_LONG_STACK_TRACES`)!=0&&(g||a.env(`BLUEBIRD_LONG_STACK_TRACES`))),y=a.env(`BLUEBIRD_W_FORGOTTEN_RETURN`)!=0&&(_||!!a.env(`BLUEBIRD_W_FORGOTTEN_RETURN`));e.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=e._bitField&-1048577|524288},e.prototype._ensurePossibleRejectionHandled=function(){this._bitField&524288||(this._setRejectionIsUnhandled(),r.invokeLater(this._notifyUnhandledRejection,this,void 0))},e.prototype._notifyUnhandledRejectionIsHandled=function(){ae(`rejectionHandled`,s,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField|=268435456},e.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!=0},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),ae(`unhandledRejection`,c,e,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField|=262144},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField&=-262145},e.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField|=1048576},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField&=-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},e.prototype._warn=function(e,t,n){return B(e,t,n||this)},e.onPossiblyUnhandledRejection=function(e){var t=n();c=typeof e==`function`?t===null?e:a.domainBind(t,e):void 0},e.onUnhandledRejectionHandled=function(e){var t=n();s=typeof e==`function`?t===null?e:a.domainBind(t,e):void 0};var b=function(){};e.longStackTraces=function(){if(r.haveItemsQueued()&&!U.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created
576
576
 
577
577
  See http://goo.gl/MqrFmX
578
- `);if(!me.longStackTraces&&se()){var n=e.prototype._captureStackTrace,i=e.prototype._attachExtraTrace;me.longStackTraces=!0,b=function(){if(r.haveItemsQueued()&&!me.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created
578
+ `);if(!U.longStackTraces&&ce()){var n=e.prototype._captureStackTrace,i=e.prototype._attachExtraTrace;U.longStackTraces=!0,b=function(){if(r.haveItemsQueued()&&!U.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created
579
579
 
580
580
  See http://goo.gl/MqrFmX
581
- `);e.prototype._captureStackTrace=n,e.prototype._attachExtraTrace=i,t.deactivateLongStackTraces(),r.enableTrampoline(),me.longStackTraces=!1},e.prototype._captureStackTrace=I,e.prototype._attachExtraTrace=L,t.activateLongStackTraces(),r.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return me.longStackTraces&&se()};var x=(function(){try{if(typeof CustomEvent==`function`){var e=new CustomEvent(`CustomEvent`);return a.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!a.global.dispatchEvent(n)}}else if(typeof Event==`function`){var e=new Event(`CustomEvent`);return a.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!a.global.dispatchEvent(n)}}else{var e=document.createEvent(`CustomEvent`);return e.initCustomEvent(`testingtheevent`,!1,!0,{}),a.global.dispatchEvent(e),function(e,t){var n=document.createEvent(`CustomEvent`);return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!a.global.dispatchEvent(n)}}}catch{}return function(){return!1}})(),S=(function(){return a.isNode?function(){return process.emit.apply(process,arguments)}:a.global?function(e){var t=`on`+e.toLowerCase(),n=a.global[t];return n?(n.apply(a.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}})();function C(e,t){return{promise:t}}var w={promiseCreated:C,promiseFulfilled:C,promiseRejected:C,promiseResolved:C,promiseCancelled:C,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:C},T=function(e){var t=!1;try{t=S.apply(null,arguments)}catch(e){r.throwLater(e),t=!0}var n=!1;try{n=x(e,w[e].apply(null,arguments))}catch(e){r.throwLater(e),n=!0}return n||t};e.config=function(t){if(t=Object(t),`longStackTraces`in t&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&b()),`warnings`in t){var n=t.warnings;me.warnings=!!n,y=me.warnings,a.isObject(n)&&`wForgottenReturn`in n&&(y=!!n.wForgottenReturn)}if(`cancellation`in t&&t.cancellation&&!me.cancellation){if(r.haveItemsQueued())throw Error(`cannot enable cancellation after promises are in use`);e.prototype._clearCancellationData=j,e.prototype._propagateFrom=M,e.prototype._onCancel=k,e.prototype._setOnCancel=A,e.prototype._attachCancellationCallback=O,e.prototype._execute=D,P=M,me.cancellation=!0}return`monitoring`in t&&(t.monitoring&&!me.monitoring?(me.monitoring=!0,e.prototype._fireEvent=T):!t.monitoring&&me.monitoring&&(me.monitoring=!1,e.prototype._fireEvent=E)),e};function E(){return!1}e.prototype._fireEvent=E,e.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(e){},e.prototype._attachCancellationCallback=function(e){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(e,t){};function D(e,t,n){var r=this;try{e(t,n,function(e){if(typeof e!=`function`)throw TypeError(`onCancel must be a function, got: `+a.toString(e));r._attachCancellationCallback(e)})}catch(e){return e}}function O(e){if(!this._isCancellable())return this;var t=this._onCancel();t===void 0?this._setOnCancel(e):a.isArray(t)?t.push(e):this._setOnCancel([t,e])}function k(){return this._onCancelField}function A(e){this._onCancelField=e}function j(){this._cancellationParent=void 0,this._onCancelField=void 0}function M(e,t){if(t&1){this._cancellationParent=e;var n=e._branchesRemainingToCancel;n===void 0&&(n=0),e._branchesRemainingToCancel=n+1}t&2&&e._isBound()&&this._setBoundTo(e._boundTo)}function N(e,t){t&2&&e._isBound()&&this._setBoundTo(e._boundTo)}var P=N;function F(){var t=this._boundTo;return t!==void 0&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function I(){this._trace=new fe(this._peekContext())}function L(e,t){if(o(e)){var n=this._trace;if(n!==void 0&&t&&(n=n._parent),n!==void 0)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=H(e);a.notEnumerableProp(e,`stack`,r.message+`
581
+ `);e.prototype._captureStackTrace=n,e.prototype._attachExtraTrace=i,t.deactivateLongStackTraces(),r.enableTrampoline(),U.longStackTraces=!1},e.prototype._captureStackTrace=I,e.prototype._attachExtraTrace=L,t.activateLongStackTraces(),r.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return U.longStackTraces&&ce()};var x=(function(){try{if(typeof CustomEvent==`function`){var e=new CustomEvent(`CustomEvent`);return a.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!a.global.dispatchEvent(n)}}else if(typeof Event==`function`){var e=new Event(`CustomEvent`);return a.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!a.global.dispatchEvent(n)}}else{var e=document.createEvent(`CustomEvent`);return e.initCustomEvent(`testingtheevent`,!1,!0,{}),a.global.dispatchEvent(e),function(e,t){var n=document.createEvent(`CustomEvent`);return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!a.global.dispatchEvent(n)}}}catch{}return function(){return!1}})(),S=(function(){return a.isNode?function(){return process.emit.apply(process,arguments)}:a.global?function(e){var t=`on`+e.toLowerCase(),n=a.global[t];return n?(n.apply(a.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}})();function C(e,t){return{promise:t}}var w={promiseCreated:C,promiseFulfilled:C,promiseRejected:C,promiseResolved:C,promiseCancelled:C,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:C},T=function(e){var t=!1;try{t=S.apply(null,arguments)}catch(e){r.throwLater(e),t=!0}var n=!1;try{n=x(e,w[e].apply(null,arguments))}catch(e){r.throwLater(e),n=!0}return n||t};e.config=function(t){if(t=Object(t),`longStackTraces`in t&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&b()),`warnings`in t){var n=t.warnings;U.warnings=!!n,y=U.warnings,a.isObject(n)&&`wForgottenReturn`in n&&(y=!!n.wForgottenReturn)}if(`cancellation`in t&&t.cancellation&&!U.cancellation){if(r.haveItemsQueued())throw Error(`cannot enable cancellation after promises are in use`);e.prototype._clearCancellationData=j,e.prototype._propagateFrom=M,e.prototype._onCancel=k,e.prototype._setOnCancel=A,e.prototype._attachCancellationCallback=O,e.prototype._execute=D,P=M,U.cancellation=!0}return`monitoring`in t&&(t.monitoring&&!U.monitoring?(U.monitoring=!0,e.prototype._fireEvent=T):!t.monitoring&&U.monitoring&&(U.monitoring=!1,e.prototype._fireEvent=E)),e};function E(){return!1}e.prototype._fireEvent=E,e.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(e){},e.prototype._attachCancellationCallback=function(e){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(e,t){};function D(e,t,n){var r=this;try{e(t,n,function(e){if(typeof e!=`function`)throw TypeError(`onCancel must be a function, got: `+a.toString(e));r._attachCancellationCallback(e)})}catch(e){return e}}function O(e){if(!this._isCancellable())return this;var t=this._onCancel();t===void 0?this._setOnCancel(e):a.isArray(t)?t.push(e):this._setOnCancel([t,e])}function k(){return this._onCancelField}function A(e){this._onCancelField=e}function j(){this._cancellationParent=void 0,this._onCancelField=void 0}function M(e,t){if(t&1){this._cancellationParent=e;var n=e._branchesRemainingToCancel;n===void 0&&(n=0),e._branchesRemainingToCancel=n+1}t&2&&e._isBound()&&this._setBoundTo(e._boundTo)}function N(e,t){t&2&&e._isBound()&&this._setBoundTo(e._boundTo)}var P=N;function F(){var t=this._boundTo;return t!==void 0&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function I(){this._trace=new pe(this._peekContext())}function L(e,t){if(o(e)){var n=this._trace;if(n!==void 0&&t&&(n=n._parent),n!==void 0)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=ie(e);a.notEnumerableProp(e,`stack`,r.message+`
582
582
  `+r.stack.join(`
583
583
  `)),a.notEnumerableProp(e,`__stackCleaned__`,!0)}}}function R(e,t,n,r,i){if(e===void 0&&t!==null&&y){if(i!==void 0&&i._returnedNonUndefined()||!(r._bitField&65535))return;n&&(n+=` `);var a=``,o=``;if(t._trace){for(var s=t._trace.stack.split(`
584
584
  `),c=ne(s),l=c.length-1;l>=0;--l){var f=c[l];if(!u.test(f)){var p=f.match(d);p&&(a=`at `+p[1]+`:`+p[2]+`:`+p[3]+` `);break}}if(c.length>0){for(var m=c[0],l=0;l<s.length;++l)if(s[l]===m){l>0&&(o=`
585
- `+s[l-1]);break}}}var h=`a promise was created in a `+n+`handler `+a+`but was not returned from it, see http://goo.gl/rRqMUw`+o;r._warn(h,!0,t)}}function z(e,t){var n=e+` is deprecated and will be removed in a future version.`;return t&&(n+=` Use `+t+` instead.`),B(n)}function B(t,n,r){if(me.warnings){var a=new i(t),o;if(n)r._attachExtraTrace(a);else if(me.longStackTraces&&(o=e._peekContext()))o.attachExtraTrace(a);else{var s=H(a);a.stack=s.message+`
585
+ `+s[l-1]);break}}}var h=`a promise was created in a `+n+`handler `+a+`but was not returned from it, see http://goo.gl/rRqMUw`+o;r._warn(h,!0,t)}}function z(e,t){var n=e+` is deprecated and will be removed in a future version.`;return t&&(n+=` Use `+t+` instead.`),B(n)}function B(t,n,r){if(U.warnings){var a=new i(t),o;if(n)r._attachExtraTrace(a);else if(U.longStackTraces&&(o=e._peekContext()))o.attachExtraTrace(a);else{var s=ie(a);a.stack=s.message+`
586
586
  `+s.stack.join(`
587
- `)}T(`warning`,a)||U(a,``,!0)}}function ee(e,t){for(var n=0;n<t.length-1;++n)t[n].push(`From previous event:`),t[n]=t[n].join(`
587
+ `)}T(`warning`,a)||H(a,``,!0)}}function ee(e,t){for(var n=0;n<t.length-1;++n)t[n].push(`From previous event:`),t[n]=t[n].join(`
588
588
  `);return n<t.length&&(t[n]=t[n].join(`
589
589
  `)),e+`
590
590
  `+t.join(`
591
- `)}function te(e){for(var t=0;t<e.length;++t)(e[t].length===0||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}function V(e){for(var t=e[0],n=1;n<e.length;++n){for(var r=e[n],i=t.length-1,a=t[i],o=-1,s=r.length-1;s>=0;--s)if(r[s]===a){o=s;break}for(var s=o;s>=0;--s){var c=r[s];if(t[i]===c)t.pop(),i--;else break}t=r}}function ne(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r===` (No stack trace)`||f.test(r),a=i&&ce(r);i&&!a&&(m&&r.charAt(0)!==` `&&(r=` `+r),t.push(r))}return t}function re(e){for(var t=e.stack.replace(/\s+$/g,``).split(`
592
- `),n=0;n<t.length;++n){var r=t[n];if(r===` (No stack trace)`||f.test(r))break}return n>0&&e.name!=`SyntaxError`&&(t=t.slice(n)),t}function H(e){var t=e.stack,n=e.toString();return t=typeof t==`string`&&t.length>0?re(e):[` (No stack trace)`],{message:n,stack:e.name==`SyntaxError`?t:ne(t)}}function U(e,t,n){if(typeof console<`u`){var r;if(a.isObject(e)){var i=e.stack;r=t+p(i,e)}else r=t+String(e);typeof h==`function`?h(r,n):(typeof console.log==`function`||typeof console.log==`object`)&&console.log(r)}}function ie(e,t,n,i){var a=!1;try{typeof t==`function`&&(a=!0,e===`rejectionHandled`?t(i):t(n,i))}catch(e){r.throwLater(e)}e===`unhandledRejection`?!T(e,n,i)&&!a&&U(n,`Unhandled rejection `):T(e,i)}function ae(e){var t;if(typeof e==`function`)t=`[function `+(e.name||`anonymous`)+`]`;else{if(t=e&&typeof e.toString==`function`?e.toString():a.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch{}t.length===0&&(t=`(empty array)`)}return`(<`+oe(t)+`>, no stack trace)`}function oe(e){var t=41;return e.length<t?e:e.substr(0,t-3)+`...`}function se(){return typeof pe==`function`}var ce=function(){return!1},le=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function ue(e){var t=e.match(le);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function de(e,t){if(se()){for(var n=e.stack.split(`
591
+ `)}function te(e){for(var t=0;t<e.length;++t)(e[t].length===0||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}function V(e){for(var t=e[0],n=1;n<e.length;++n){for(var r=e[n],i=t.length-1,a=t[i],o=-1,s=r.length-1;s>=0;--s)if(r[s]===a){o=s;break}for(var s=o;s>=0;--s){var c=r[s];if(t[i]===c)t.pop(),i--;else break}t=r}}function ne(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r===` (No stack trace)`||f.test(r),a=i&&le(r);i&&!a&&(m&&r.charAt(0)!==` `&&(r=` `+r),t.push(r))}return t}function re(e){for(var t=e.stack.replace(/\s+$/g,``).split(`
592
+ `),n=0;n<t.length;++n){var r=t[n];if(r===` (No stack trace)`||f.test(r))break}return n>0&&e.name!=`SyntaxError`&&(t=t.slice(n)),t}function ie(e){var t=e.stack,n=e.toString();return t=typeof t==`string`&&t.length>0?re(e):[` (No stack trace)`],{message:n,stack:e.name==`SyntaxError`?t:ne(t)}}function H(e,t,n){if(typeof console<`u`){var r;if(a.isObject(e)){var i=e.stack;r=t+p(i,e)}else r=t+String(e);typeof h==`function`?h(r,n):(typeof console.log==`function`||typeof console.log==`object`)&&console.log(r)}}function ae(e,t,n,i){var a=!1;try{typeof t==`function`&&(a=!0,e===`rejectionHandled`?t(i):t(n,i))}catch(e){r.throwLater(e)}e===`unhandledRejection`?!T(e,n,i)&&!a&&H(n,`Unhandled rejection `):T(e,i)}function oe(e){var t;if(typeof e==`function`)t=`[function `+(e.name||`anonymous`)+`]`;else{if(t=e&&typeof e.toString==`function`?e.toString():a.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch{}t.length===0&&(t=`(empty array)`)}return`(<`+se(t)+`>, no stack trace)`}function se(e){var t=41;return e.length<t?e:e.substr(0,t-3)+`...`}function ce(){return typeof me==`function`}var le=function(){return!1},ue=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function de(e){var t=e.match(ue);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function fe(e,t){if(ce()){for(var n=e.stack.split(`
593
593
  `),r=t.stack.split(`
594
- `),i=-1,a=-1,o,s,c=0;c<n.length;++c){var u=ue(n[c]);if(u){o=u.fileName,i=u.line;break}}for(var c=0;c<r.length;++c){var u=ue(r[c]);if(u){s=u.fileName,a=u.line;break}}i<0||a<0||!o||!s||o!==s||i>=a||(ce=function(e){if(l.test(e))return!0;var t=ue(e);return!!(t&&t.fileName===o&&i<=t.line&&t.line<=a)})}}function fe(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(e===void 0?0:e._length);pe(this,fe),t>32&&this.uncycle()}a.inherits(fe,Error),t.CapturedTrace=fe,fe.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;i!==void 0;++r)t.push(i),i=i._parent;e=this._length=r;for(var r=e-1;r>=0;--r){var a=t[r].stack;n[a]===void 0&&(n[a]=r)}for(var r=0;r<e;++r){var o=n[t[r].stack];if(o!==void 0&&o!==r){o>0&&(t[o-1]._parent=void 0,t[o-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var s=r>0?t[r-1]:this;o<e-1?(s._parent=t[o+1],s._parent.uncycle(),s._length=s._parent._length+1):(s._parent=void 0,s._length=1);for(var c=s._length+1,l=r-2;l>=0;--l)t[l]._length=c,c++;return}}}},fe.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=H(e),n=t.message,r=[t.stack],i=this;i!==void 0;)r.push(ne(i.stack.split(`
595
- `))),i=i._parent;V(r),te(r),a.notEnumerableProp(e,`stack`,ee(n,r)),a.notEnumerableProp(e,`__stackCleaned__`,!0)}};var pe=(function(){var e=/^\s*at\s*/,t=function(e,t){return typeof e==`string`?e:t.name!==void 0&&t.message!==void 0?t.toString():ae(t)};if(typeof Error.stackTraceLimit==`number`&&typeof Error.captureStackTrace==`function`){Error.stackTraceLimit+=6,f=e,p=t;var n=Error.captureStackTrace;return ce=function(e){return l.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var r=Error();if(typeof r.stack==`string`&&r.stack.split(`
596
- `)[0].indexOf(`stackDetection@`)>=0)return f=/@/,p=t,m=!0,function(e){e.stack=Error().stack};var i;try{throw Error()}catch(e){i=`stack`in e}return!(`stack`in r)&&i&&typeof Error.stackTraceLimit==`number`?(f=e,p=t,function(e){Error.stackTraceLimit+=6;try{throw Error()}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}):(p=function(e,t){return typeof e==`string`?e:(typeof t==`object`||typeof t==`function`)&&t.name!==void 0&&t.message!==void 0?t.toString():ae(t)},null)})([]);typeof console<`u`&&console.warn!==void 0&&(h=function(e){console.warn(e)},a.isNode&&process.stderr.isTTY?h=function(e,t){console.warn((t?`\x1B[33m`:`\x1B[31m`)+e+`\x1B[0m
597
- `)}:!a.isNode&&typeof Error().stack==`string`&&(h=function(e,t){console.warn(`%c`+e,t?`color: darkorange`:`color: red`)}));var me={warnings:_,longStackTraces:!1,cancellation:!1,monitoring:!1};return v&&e.longStackTraces(),{longStackTraces:function(){return me.longStackTraces},warnings:function(){return me.warnings},cancellation:function(){return me.cancellation},monitoring:function(){return me.monitoring},propagateFromFunction:function(){return P},boundValueFunction:function(){return F},checkForgottenReturns:R,setBounds:de,warn:B,deprecated:z,CapturedTrace:fe,fireDomEvent:x,fireGlobalEvent:S}}})),n_=e.t(((e,t)=>{t.exports=function(e,t){var n=qg(),r=e.CancellationError,i=n.errorObj;function a(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}a.prototype.isFinallyHandler=function(){return this.type===0};function o(e){this.finallyHandler=e}o.prototype._resultCancelled=function(){s(this.finallyHandler)};function s(e,t){return e.cancelPromise==null?!1:(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function c(){return u.call(this,this.promise._target()._settledValue())}function l(e){if(!s(this,e))return i.e=e,i}function u(n){var a=this.promise,u=this.handler;if(!this.called){this.called=!0;var d=this.isFinallyHandler()?u.call(a._boundValue()):u.call(a._boundValue(),n);if(d!==void 0){a._setReturnedNonUndefined();var f=t(d,a);if(f instanceof e){if(this.cancelPromise!=null)if(f._isCancelled()){var p=new r(`late cancellation observer`);return a._attachExtraTrace(p),i.e=p,i}else f.isPending()&&f._attachCancellationCallback(new o(this));return f._then(c,l,void 0,this,void 0)}}}return a.isRejected()?(s(this),i.e=n,i):(s(this),n)}return e.prototype._passThrough=function(e,t,n,r){return typeof e==`function`?this._then(n,r,void 0,new a(this,t,e),void 0):this.then()},e.prototype.lastly=e.prototype.finally=function(e){return this._passThrough(e,0,u,u)},e.prototype.tap=function(e){return this._passThrough(e,1,u)},a}})),r_=e.t(((e,t)=>{t.exports=function(e){var t=qg(),n=Kg().keys,r=t.tryCatch,i=t.errorObj;function a(a,o,s){return function(c){var l=s._boundValue();predicateLoop:for(var u=0;u<a.length;++u){var d=a[u];if(d===Error||d!=null&&d.prototype instanceof Error){if(c instanceof d)return r(o).call(l,c)}else if(typeof d==`function`){var f=r(d).call(l,c);if(f===i)return f;if(f)return r(o).call(l,c)}else if(t.isObject(c)){for(var p=n(d),m=0;m<p.length;++m){var h=p[m];if(d[h]!=c[h])continue predicateLoop}return r(o).call(l,c)}}return e}}return a}})),i_=e.t(((e,t)=>{var n=qg(),r=n.maybeWrapAsError,i=Zg().OperationalError,a=Kg();function o(e){return e instanceof Error&&a.getPrototypeOf(e)===Error.prototype}var s=/^(?:name|message|stack|cause)$/;function c(e){var t;if(o(e)){t=new i(e),t.name=e.name,t.message=e.message,t.stack=e.stack;for(var r=a.keys(e),c=0;c<r.length;++c){var l=r[c];s.test(l)||(t[l]=e[l])}return t}return n.markAsOriginatingFromRejection(e),e}function l(e,t){return function(n,i){if(e!==null){if(n){var a=c(r(n));e._attachExtraTrace(a),e._reject(a)}else if(!t)e._fulfill(i);else{for(var o=arguments.length,s=Array(Math.max(o-1,0)),l=1;l<o;++l)s[l-1]=arguments[l];e._fulfill(s)}e=null}}}t.exports=l})),a_=e.t(((e,t)=>{t.exports=function(e,t,n,r,i){var a=qg(),o=a.tryCatch;e.method=function(n){if(typeof n!=`function`)throw new e.TypeError(`expecting a function but got `+a.classString(n));return function(){var r=new e(t);r._captureStackTrace(),r._pushContext();var a=o(n).apply(this,arguments),s=r._popContext();return i.checkForgottenReturns(a,s,`Promise.method`,r),r._resolveFromSyncValue(a),r}},e.attempt=e.try=function(n){if(typeof n!=`function`)return r(`expecting a function but got `+a.classString(n));var s=new e(t);s._captureStackTrace(),s._pushContext();var c;if(arguments.length>1){i.deprecated(`calling Promise.try with more than 1 argument`);var l=arguments[1],u=arguments[2];c=a.isArray(l)?o(n).apply(u,l):o(n).call(u,l)}else c=o(n)();var d=s._popContext();return i.checkForgottenReturns(c,d,`Promise.try`,s),s._resolveFromSyncValue(c),s},e.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}})),o_=e.t(((e,t)=>{t.exports=function(e,t,n,r){var i=!1,a=function(e,t){this._reject(t)},o=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(a,a,null,this,e)},s=function(e,t){this._bitField&50397184||this._resolveCallback(t.target)},c=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(a){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var l=n(a),u=new e(t);u._propagateFrom(this,1);var d=this._target();if(u._setBoundTo(l),l instanceof e){var f={promiseRejectionQueued:!1,promise:u,target:d,bindingPromise:l};d._then(t,o,void 0,u,f),l._then(s,c,void 0,u,f),u._setOnCancel(l)}else u._resolveCallback(d);return u},e.prototype._setBoundTo=function(e){e===void 0?this._bitField&=-2097153:(this._bitField|=2097152,this._boundTo=e)},e.prototype._isBound=function(){return(this._bitField&2097152)==2097152},e.bind=function(t,n){return e.resolve(n).bind(t)}}})),s_=e.t(((e,t)=>{t.exports=function(e,t,n,r){var i=qg(),a=i.tryCatch,o=i.errorObj,s=e._async;e.prototype.break=e.prototype.cancel=function(){if(!r.cancellation())return this._warn(`cancellation is disabled`);for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(n==null||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}else e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),s.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(e,t){if(i.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(e!==void 0)if(typeof e==`function`){if(!t){var r=a(e).call(this._boundValue());r===o&&(this._attachExtraTrace(r.e),s.throwLater(r.e))}}else e._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),s.invoke(this._doInvokeOnCancel,this,e)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}})),c_=e.t(((e,t)=>{t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1];return this.caught(e,function(){throw t})},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];return r instanceof e&&r.suppressUnhandledRejections(),this.caught(n,function(){return r})}}})),l_=e.t(((e,t)=>{t.exports=function(e){function t(e){e===void 0?(this._bitField=0,this._settledValueField=void 0):(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw TypeError(`cannot get fulfillment value of a non-fulfilled promise
594
+ `),i=-1,a=-1,o,s,c=0;c<n.length;++c){var u=de(n[c]);if(u){o=u.fileName,i=u.line;break}}for(var c=0;c<r.length;++c){var u=de(r[c]);if(u){s=u.fileName,a=u.line;break}}i<0||a<0||!o||!s||o!==s||i>=a||(le=function(e){if(l.test(e))return!0;var t=de(e);return!!(t&&t.fileName===o&&i<=t.line&&t.line<=a)})}}function pe(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(e===void 0?0:e._length);me(this,pe),t>32&&this.uncycle()}a.inherits(pe,Error),t.CapturedTrace=pe,pe.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;i!==void 0;++r)t.push(i),i=i._parent;e=this._length=r;for(var r=e-1;r>=0;--r){var a=t[r].stack;n[a]===void 0&&(n[a]=r)}for(var r=0;r<e;++r){var o=n[t[r].stack];if(o!==void 0&&o!==r){o>0&&(t[o-1]._parent=void 0,t[o-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var s=r>0?t[r-1]:this;o<e-1?(s._parent=t[o+1],s._parent.uncycle(),s._length=s._parent._length+1):(s._parent=void 0,s._length=1);for(var c=s._length+1,l=r-2;l>=0;--l)t[l]._length=c,c++;return}}}},pe.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=ie(e),n=t.message,r=[t.stack],i=this;i!==void 0;)r.push(ne(i.stack.split(`
595
+ `))),i=i._parent;V(r),te(r),a.notEnumerableProp(e,`stack`,ee(n,r)),a.notEnumerableProp(e,`__stackCleaned__`,!0)}};var me=(function(){var e=/^\s*at\s*/,t=function(e,t){return typeof e==`string`?e:t.name!==void 0&&t.message!==void 0?t.toString():oe(t)};if(typeof Error.stackTraceLimit==`number`&&typeof Error.captureStackTrace==`function`){Error.stackTraceLimit+=6,f=e,p=t;var n=Error.captureStackTrace;return le=function(e){return l.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var r=Error();if(typeof r.stack==`string`&&r.stack.split(`
596
+ `)[0].indexOf(`stackDetection@`)>=0)return f=/@/,p=t,m=!0,function(e){e.stack=Error().stack};var i;try{throw Error()}catch(e){i=`stack`in e}return!(`stack`in r)&&i&&typeof Error.stackTraceLimit==`number`?(f=e,p=t,function(e){Error.stackTraceLimit+=6;try{throw Error()}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}):(p=function(e,t){return typeof e==`string`?e:(typeof t==`object`||typeof t==`function`)&&t.name!==void 0&&t.message!==void 0?t.toString():oe(t)},null)})([]);typeof console<`u`&&console.warn!==void 0&&(h=function(e){console.warn(e)},a.isNode&&process.stderr.isTTY?h=function(e,t){console.warn((t?`\x1B[33m`:`\x1B[31m`)+e+`\x1B[0m
597
+ `)}:!a.isNode&&typeof Error().stack==`string`&&(h=function(e,t){console.warn(`%c`+e,t?`color: darkorange`:`color: red`)}));var U={warnings:_,longStackTraces:!1,cancellation:!1,monitoring:!1};return v&&e.longStackTraces(),{longStackTraces:function(){return U.longStackTraces},warnings:function(){return U.warnings},cancellation:function(){return U.cancellation},monitoring:function(){return U.monitoring},propagateFromFunction:function(){return P},boundValueFunction:function(){return F},checkForgottenReturns:R,setBounds:fe,warn:B,deprecated:z,CapturedTrace:pe,fireDomEvent:x,fireGlobalEvent:S}}})),n_=e.t(((e,t)=>{t.exports=function(e,t){var n=qg(),r=e.CancellationError,i=n.errorObj;function a(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}a.prototype.isFinallyHandler=function(){return this.type===0};function o(e){this.finallyHandler=e}o.prototype._resultCancelled=function(){s(this.finallyHandler)};function s(e,t){return e.cancelPromise==null?!1:(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function c(){return u.call(this,this.promise._target()._settledValue())}function l(e){if(!s(this,e))return i.e=e,i}function u(n){var a=this.promise,u=this.handler;if(!this.called){this.called=!0;var d=this.isFinallyHandler()?u.call(a._boundValue()):u.call(a._boundValue(),n);if(d!==void 0){a._setReturnedNonUndefined();var f=t(d,a);if(f instanceof e){if(this.cancelPromise!=null)if(f._isCancelled()){var p=new r(`late cancellation observer`);return a._attachExtraTrace(p),i.e=p,i}else f.isPending()&&f._attachCancellationCallback(new o(this));return f._then(c,l,void 0,this,void 0)}}}return a.isRejected()?(s(this),i.e=n,i):(s(this),n)}return e.prototype._passThrough=function(e,t,n,r){return typeof e==`function`?this._then(n,r,void 0,new a(this,t,e),void 0):this.then()},e.prototype.lastly=e.prototype.finally=function(e){return this._passThrough(e,0,u,u)},e.prototype.tap=function(e){return this._passThrough(e,1,u)},a}})),r_=e.t(((e,t)=>{t.exports=function(e){var t=qg(),n=Kg().keys,r=t.tryCatch,i=t.errorObj;function a(a,o,s){return function(c){var l=s._boundValue();predicateLoop:for(var u=0;u<a.length;++u){var d=a[u];if(d===Error||d!=null&&d.prototype instanceof Error){if(c instanceof d)return r(o).call(l,c)}else if(typeof d==`function`){var f=r(d).call(l,c);if(f===i)return f;if(f)return r(o).call(l,c)}else if(t.isObject(c)){for(var p=n(d),m=0;m<p.length;++m){var h=p[m];if(d[h]!=c[h])continue predicateLoop}return r(o).call(l,c)}}return e}}return a}})),i_=e.t(((e,t)=>{var n=qg(),r=n.maybeWrapAsError,i=Zg().OperationalError,a=Kg();function o(e){return e instanceof Error&&a.getPrototypeOf(e)===Error.prototype}var s=/^(?:name|message|stack|cause)$/;function c(e){var t;if(o(e)){t=new i(e),t.name=e.name,t.message=e.message,t.stack=e.stack;for(var r=a.keys(e),c=0;c<r.length;++c){var l=r[c];s.test(l)||(t[l]=e[l])}return t}return n.markAsOriginatingFromRejection(e),e}function l(e,t){return function(n,i){if(e!==null){if(n){var a=c(r(n));e._attachExtraTrace(a),e._reject(a)}else if(!t)e._fulfill(i);else{for(var o=arguments.length,s=Array(Math.max(o-1,0)),l=1;l<o;++l)s[l-1]=arguments[l];e._fulfill(s)}e=null}}}t.exports=l})),a_=e.t(((e,t)=>{t.exports=function(e,t,n,r,i){var a=qg(),o=a.tryCatch;e.method=function(n){if(typeof n!=`function`)throw new e.TypeError(`expecting a function but got `+a.classString(n));return function(){var r=new e(t);r._captureStackTrace(),r._pushContext();var a=o(n).apply(this,arguments),s=r._popContext();return i.checkForgottenReturns(a,s,`Promise.method`,r),r._resolveFromSyncValue(a),r}},e.attempt=e.try=function(n){if(typeof n!=`function`)return r(`expecting a function but got `+a.classString(n));var s=new e(t);s._captureStackTrace(),s._pushContext();var c;if(arguments.length>1){i.deprecated(`calling Promise.try with more than 1 argument`);var l=arguments[1],u=arguments[2];c=a.isArray(l)?o(n).apply(u,l):o(n).call(u,l)}else c=o(n)();var d=s._popContext();return i.checkForgottenReturns(c,d,`Promise.try`,s),s._resolveFromSyncValue(c),s},e.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}})),o_=e.t(((e,t)=>{t.exports=function(e,t,n,r){var i=!1,a=function(e,t){this._reject(t)},o=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(a,a,null,this,e)},s=function(e,t){this._bitField&50397184||this._resolveCallback(t.target)},c=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(a){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var l=n(a),u=new e(t);u._propagateFrom(this,1);var d=this._target();if(u._setBoundTo(l),l instanceof e){var f={promiseRejectionQueued:!1,promise:u,target:d,bindingPromise:l};d._then(t,o,void 0,u,f),l._then(s,c,void 0,u,f),u._setOnCancel(l)}else u._resolveCallback(d);return u},e.prototype._setBoundTo=function(e){e===void 0?this._bitField&=-2097153:(this._bitField|=2097152,this._boundTo=e)},e.prototype._isBound=function(){return(this._bitField&2097152)==2097152},e.bind=function(t,n){return e.resolve(n).bind(t)}}})),s_=e.t(((e,t)=>{t.exports=function(e,t,n,r){var i=qg(),a=i.tryCatch,o=i.errorObj,s=e._async;e.prototype.break=e.prototype.cancel=function(){if(!r.cancellation())return this._warn(`cancellation is disabled`);for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(n==null||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}else e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),s.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(e,t){if(i.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(e!==void 0)if(typeof e==`function`){if(!t){var r=a(e).call(this._boundValue());r===o&&(this._attachExtraTrace(r.e),s.throwLater(r.e))}}else e._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),s.invoke(this._doInvokeOnCancel,this,e)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}})),c_=e.t(((e,t)=>{t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1];return this.caught(e,function(){throw t})},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];return r instanceof e&&r.suppressUnhandledRejections(),this.caught(n,function(){return r})}}})),l_=e.t(((e,t)=>{t.exports=function(e){function t(e){e===void 0?(this._bitField=0,this._settledValueField=void 0):(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw TypeError(`cannot get fulfillment value of a non-fulfilled promise
598
598
 
599
599
  See http://goo.gl/MqrFmX
600
600
  `);return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw TypeError(`cannot get rejection reason of a non-rejected promise
@@ -738,13 +738,13 @@ __p+='`),t}),a+=`';
738
738
  `)},n=function(){return new O.PromiseInspection(this._target())},r=function(e){return O.reject(new f(e))};function i(){}var a={},o=qg(),s=o.isNode?function(){var e=process.domain;return e===void 0&&(e=null),e}:function(){return null};o.notEnumerableProp(O,`_getDomain`,s);var c=Kg(),l=Xg(),u=new l;c.defineProperty(O,`_async`,{value:u});var d=Zg(),f=O.TypeError=d.TypeError;O.RangeError=d.RangeError;var p=O.CancellationError=d.CancellationError;O.TimeoutError=d.TimeoutError,O.OperationalError=d.OperationalError,O.RejectionError=d.OperationalError,O.AggregateError=d.AggregateError;var m=function(){},h={},g={},_=Qg()(O,m),v=$g()(O,m,_,r,i),y=e_()(O),b=y.create,x=t_()(O,y);x.CapturedTrace;var S=n_()(O,_),C=r_()(g),w=i_(),T=o.errorObj,E=o.tryCatch;function D(e,t){if(typeof t!=`function`)throw new f(`expecting a function but got `+o.classString(t));if(e.constructor!==O)throw new f(`the promise constructor cannot be invoked directly
739
739
 
740
740
  See http://goo.gl/MqrFmX
741
- `)}function O(e){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,e!==m&&(D(this,e),this._resolveFromExecutor(e)),this._promiseCreated(),this._fireEvent(`promiseCreated`,this)}O.prototype.toString=function(){return`[object Promise]`},O.prototype.caught=O.prototype.catch=function(e){var t=arguments.length;if(t>1){var n=Array(t-1),i=0,a;for(a=0;a<t-1;++a){var s=arguments[a];if(o.isObject(s))n[i++]=s;else return r(`expecting an object but got A catch statement predicate `+o.classString(s))}return n.length=i,e=arguments[a],this.then(void 0,C(n,e,this))}return this.then(void 0,e)},O.prototype.reflect=function(){return this._then(n,n,void 0,this,void 0)},O.prototype.then=function(e,t){if(x.warnings()&&arguments.length>0&&typeof e!=`function`&&typeof t!=`function`){var n=`.then() only accepts functions but was passed: `+o.classString(e);arguments.length>1&&(n+=`, `+o.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},O.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},O.prototype.spread=function(e){return typeof e==`function`?this.all()._then(e,void 0,void 0,h,void 0):r(`expecting a function but got `+o.classString(e))},O.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},O.prototype.all=function(){return arguments.length>0&&this._warn(`.all() was passed arguments but it does not take any`),new v(this).promise()},O.prototype.error=function(e){return this.caught(o.originatesFromRejection,e)},O.getNewLibraryCopy=t.exports,O.is=function(e){return e instanceof O},O.fromNode=O.fromCallback=function(e){var t=new O(m);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=E(e)(w(t,n));return r===T&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},O.all=function(e){return new v(e).promise()},O.cast=function(e){var t=_(e);return t instanceof O||(t=new O(m),t._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},O.resolve=O.fulfilled=O.cast,O.reject=O.rejected=function(e){var t=new O(m);return t._captureStackTrace(),t._rejectCallback(e,!0),t},O.setScheduler=function(e){if(typeof e!=`function`)throw new f(`expecting a function but got `+o.classString(e));return u.setScheduler(e)},O.prototype._then=function(e,t,n,r,i){var a=i!==void 0,c=a?i:new O(m),l=this._target(),d=l._bitField;a||(c._propagateFrom(this,3),c._captureStackTrace(),r===void 0&&this._bitField&2097152&&(r=d&50397184?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent(`promiseChained`,this,c));var f=s();if(d&50397184){var h,g,_=l._settlePromiseCtx;d&33554432?(g=l._rejectionHandler0,h=e):d&16777216?(g=l._fulfillmentHandler0,h=t,l._unsetRejectionIsUnhandled()):(_=l._settlePromiseLateCancellationObserver,g=new p(`late cancellation observer`),l._attachExtraTrace(g),h=t),u.invoke(_,l,{handler:f===null?h:typeof h==`function`&&o.domainBind(f,h),promise:c,receiver:r,value:g})}else l._addCallbacks(e,t,c,r,f);return c},O.prototype._length=function(){return this._bitField&65535},O.prototype._isFateSealed=function(){return(this._bitField&117506048)!=0},O.prototype._isFollowing=function(){return(this._bitField&67108864)==67108864},O.prototype._setLength=function(e){this._bitField=this._bitField&-65536|e&65535},O.prototype._setFulfilled=function(){this._bitField|=33554432,this._fireEvent(`promiseFulfilled`,this)},O.prototype._setRejected=function(){this._bitField|=16777216,this._fireEvent(`promiseRejected`,this)},O.prototype._setFollowing=function(){this._bitField|=67108864,this._fireEvent(`promiseResolved`,this)},O.prototype._setIsFinal=function(){this._bitField|=4194304},O.prototype._isFinal=function(){return(this._bitField&4194304)>0},O.prototype._unsetCancelled=function(){this._bitField&=-65537},O.prototype._setCancelled=function(){this._bitField|=65536,this._fireEvent(`promiseCancelled`,this)},O.prototype._setWillBeCancelled=function(){this._bitField|=8388608},O.prototype._setAsyncGuaranteed=function(){u.hasCustomScheduler()||(this._bitField|=134217728)},O.prototype._receiverAt=function(e){var t=e===0?this._receiver0:this[e*4-4+3];if(t!==a)return t===void 0&&this._isBound()?this._boundValue():t},O.prototype._promiseAt=function(e){return this[e*4-4+2]},O.prototype._fulfillmentHandlerAt=function(e){return this[e*4-4+0]},O.prototype._rejectionHandlerAt=function(e){return this[e*4-4+1]},O.prototype._boundValue=function(){},O.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);i===void 0&&(i=a),this._addCallbacks(t,n,r,i,null)},O.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);o===void 0&&(o=a),this._addCallbacks(n,r,i,o,null)},O.prototype._addCallbacks=function(e,t,n,r,i){var a=this._length();if(a>=65531&&(a=0,this._setLength(0)),a===0)this._promise0=n,this._receiver0=r,typeof e==`function`&&(this._fulfillmentHandler0=i===null?e:o.domainBind(i,e)),typeof t==`function`&&(this._rejectionHandler0=i===null?t:o.domainBind(i,t));else{var s=a*4-4;this[s+2]=n,this[s+3]=r,typeof e==`function`&&(this[s+0]=i===null?e:o.domainBind(i,e)),typeof t==`function`&&(this[s+1]=i===null?t:o.domainBind(i,t))}return this._setLength(a+1),a},O.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},O.prototype._resolveCallback=function(t,n){if(!(this._bitField&117506048)){if(t===this)return this._rejectCallback(e(),!1);var r=_(t,this);if(!(r instanceof O))return this._fulfill(t);n&&this._propagateFrom(r,2);var i=r._target();if(i===this){this._reject(e());return}var a=i._bitField;if(!(a&50397184)){var o=this._length();o>0&&i._migrateCallback0(this);for(var s=1;s<o;++s)i._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(i)}else if(a&33554432)this._fulfill(i._value());else if(a&16777216)this._reject(i._reason());else{var c=new p(`late cancellation observer`);i._attachExtraTrace(c),this._reject(c)}}},O.prototype._rejectCallback=function(e,t,n){var r=o.ensureErrorObject(e),i=r===e;if(!i&&!n&&x.warnings()){var a=`a promise was rejected with a non-error: `+o.classString(e);this._warn(a,!0)}this._attachExtraTrace(r,t?i:!1),this._reject(e)},O.prototype._resolveFromExecutor=function(e){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(e,function(e){t._resolveCallback(e)},function(e){t._rejectCallback(e,n)});n=!1,this._popContext(),r!==void 0&&t._rejectCallback(r,!0)},O.prototype._settlePromiseFromHandler=function(e,t,n,r){var i=r._bitField;if(!(i&65536)){r._pushContext();var a;t===h?!n||typeof n.length!=`number`?(a=T,a.e=new f(`cannot .spread() a non-array: `+o.classString(n))):a=E(e).apply(this._boundValue(),n):a=E(e).call(t,n);var s=r._popContext();i=r._bitField,!(i&65536)&&(a===g?r._reject(n):a===T?r._rejectCallback(a.e,!1):(x.checkForgottenReturns(a,s,``,r,this),r._resolveCallback(a)))}},O.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},O.prototype._followee=function(){return this._rejectionHandler0},O.prototype._setFollowee=function(e){this._rejectionHandler0=e},O.prototype._settlePromise=function(e,t,r,a){var o=e instanceof O,s=this._bitField,c=(s&134217728)!=0;s&65536?(o&&e._invokeInternalOnCancel(),r instanceof S&&r.isFinallyHandler()?(r.cancelPromise=e,E(t).call(r,a)===T&&e._reject(T.e)):t===n?e._fulfill(n.call(r)):r instanceof i?r._promiseCancelled(e):o||e instanceof v?e._cancel():r.cancel()):typeof t==`function`?o?(c&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,r,a,e)):t.call(r,a,e):r instanceof i?r._isResolved()||(s&33554432?r._promiseFulfilled(a,e):r._promiseRejected(a,e)):o&&(c&&e._setAsyncGuaranteed(),s&33554432?e._fulfill(a):e._reject(a))},O.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,r=e.receiver,i=e.value;typeof t==`function`?n instanceof O?this._settlePromiseFromHandler(t,r,i,n):t.call(r,i,n):n instanceof O&&n._reject(i)},O.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},O.prototype._settlePromise0=function(e,t,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,e,i,t)},O.prototype._clearCallbackDataAtIndex=function(e){var t=e*4-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},O.prototype._fulfill=function(t){var n=this._bitField;if(!((n&117506048)>>>16)){if(t===this){var r=e();return this._attachExtraTrace(r),this._reject(r)}this._setFulfilled(),this._rejectionHandler0=t,(n&65535)>0&&(n&134217728?this._settlePromises():u.settlePromises(this))}},O.prototype._reject=function(e){var t=this._bitField;if(!((t&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return u.fatalError(e,o.isNode);(t&65535)>0?u.settlePromises(this):this._ensurePossibleRejectionHandled()}},O.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),a=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,a,t)}},O.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),a=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,a,t)}},O.prototype._settlePromises=function(){var e=this._bitField,t=e&65535;if(t>0){if(e&16842752){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},O.prototype._settledValue=function(){var e=this._bitField;if(e&33554432)return this._rejectionHandler0;if(e&16777216)return this._fulfillmentHandler0};function k(e){this.promise._resolveCallback(e)}function A(e){this.promise._rejectCallback(e,!1)}O.defer=O.pending=function(){return x.deprecated(`Promise.defer`,`new Promise`),{promise:new O(m),resolve:k,reject:A}},o.notEnumerableProp(O,`_makeSelfResolutionError`,e),a_()(O,m,_,r,x),o_()(O,m,_,x),s_()(O,v,r,x),c_()(O),l_()(O),u_()(O,v,_,m,u,s),O.Promise=O,O.version=`3.4.7`,d_()(O,v,r,_,m,x),f_()(O),p_()(O,r,_,b,m,x),m_()(O,m,x),h_()(O,r,m,_,i,x),g_()(O),__()(O,m),v_()(O,v,_,r),y_()(O,m,_,r),b_()(O,v,r,_,m,x),x_()(O,v,x),S_()(O,v,r),C_()(O,m),w_()(O,m),T_()(O),o.toFastProperties(O),o.toFastProperties(O.prototype);function j(e){var t=new O(m);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return j({a:1}),j({b:2}),j({c:3}),j(1),j(function(){}),j(void 0),j(!1),j(new O(m)),x.setBounds(l.firstLineError,o.lastLineError),O}})),D_=e.t((t=>{var n=(Gg(),e.i(Wg)),r=E_()();t.defer=i,t.when=r.resolve,t.resolve=r.resolve,t.all=r.all,t.props=r.props,t.reject=r.reject,t.promisify=r.promisify,t.mapSeries=r.mapSeries,t.attempt=r.attempt,t.nfcall=function(e){var t=Array.prototype.slice.call(arguments,1);return r.promisify(e).apply(null,t)},r.prototype.fail=r.prototype.caught,r.prototype.also=function(e){return this.then(function(t){var i=n.extend({},t,e(t));return r.props(i)})};function i(){var e,t,n=new r.Promise(function(n,r){e=n,t=r});return{resolve:e,reject:t,promise:n}}})),O_=e.t((t=>{var n=(Gg(),e.i(Wg)),r=t.types={document:`document`,paragraph:`paragraph`,run:`run`,text:`text`,tab:`tab`,checkbox:`checkbox`,hyperlink:`hyperlink`,noteReference:`noteReference`,image:`image`,note:`note`,commentReference:`commentReference`,comment:`comment`,table:`table`,tableRow:`tableRow`,tableCell:`tableCell`,break:`break`,bookmarkStart:`bookmarkStart`};function i(e,t){return t||={},{type:r.document,children:e,notes:t.notes||new p({}),comments:t.comments||[]}}function a(e,t){t||={};var n=t.indent||{};return{type:r.paragraph,children:e,styleId:t.styleId||null,styleName:t.styleName||null,numbering:t.numbering||null,alignment:t.alignment||null,indent:{start:n.start||null,end:n.end||null,firstLine:n.firstLine||null,hanging:n.hanging||null}}}function o(e,t){return t||={},{type:r.run,children:e,styleId:t.styleId||null,styleName:t.styleName||null,isBold:!!t.isBold,isUnderline:!!t.isUnderline,isItalic:!!t.isItalic,isStrikethrough:!!t.isStrikethrough,isAllCaps:!!t.isAllCaps,isSmallCaps:!!t.isSmallCaps,verticalAlignment:t.verticalAlignment||s.baseline,font:t.font||null,fontSize:t.fontSize||null,highlight:t.highlight||null}}var s={baseline:`baseline`,superscript:`superscript`,subscript:`subscript`};function c(e){return{type:r.text,value:e}}function l(){return{type:r.tab}}function u(e){return{type:r.checkbox,checked:e.checked}}function d(e,t){return{type:r.hyperlink,children:e,href:t.href,anchor:t.anchor,targetFrame:t.targetFrame}}function f(e){return{type:r.noteReference,noteType:e.noteType,noteId:e.noteId}}function p(e){this._notes=n.indexBy(e,function(e){return _(e.noteType,e.noteId)})}p.prototype.resolve=function(e){return this.findNoteByKey(_(e.noteType,e.noteId))},p.prototype.findNoteByKey=function(e){return this._notes[e]||null};function m(e){return{type:r.note,noteType:e.noteType,noteId:e.noteId,body:e.body}}function h(e){return{type:r.commentReference,commentId:e.commentId}}function g(e){return{type:r.comment,commentId:e.commentId,body:e.body,authorName:e.authorName,authorInitials:e.authorInitials}}function _(e,t){return e+`-`+t}function v(e){return{type:r.image,read:function(t){return t?e.readImage(t):e.readImage().then(function(e){return Buffer.from(e)})},readAsArrayBuffer:function(){return e.readImage()},readAsBase64String:function(){return e.readImage(`base64`)},readAsBuffer:function(){return e.readImage().then(function(e){return Buffer.from(e)})},altText:e.altText,contentType:e.contentType}}function y(e,t){return t||={},{type:r.table,children:e,styleId:t.styleId||null,styleName:t.styleName||null}}function b(e,t){return t||={},{type:r.tableRow,children:e,isHeader:t.isHeader||!1}}function x(e,t){return t||={},{type:r.tableCell,children:e,colSpan:t.colSpan==null?1:t.colSpan,rowSpan:t.rowSpan==null?1:t.rowSpan}}function S(e){return{type:r.break,breakType:e}}function C(e){return{type:r.bookmarkStart,name:e.name}}t.document=t.Document=i,t.paragraph=t.Paragraph=a,t.run=t.Run=o,t.text=t.Text=c,t.tab=t.Tab=l,t.checkbox=t.Checkbox=u,t.Hyperlink=d,t.noteReference=t.NoteReference=f,t.Notes=p,t.Note=m,t.commentReference=h,t.comment=g,t.Image=v,t.Table=y,t.TableRow=b,t.TableCell=x,t.lineBreak=S(`line`),t.pageBreak=S(`page`),t.columnBreak=S(`column`),t.BookmarkStart=C,t.verticalAlignment=s})),k_=e.t((t=>{var n=(Gg(),e.i(Wg));t.Result=r,t.success=i,t.warning=a,t.error=o;function r(e,t){this.value=e,this.messages=t||[]}r.prototype.map=function(e){return new r(e(this.value),this.messages)},r.prototype.flatMap=function(e){var t=e(this.value);return new r(t.value,s([this,t]))},r.prototype.flatMapThen=function(e){var t=this;return e(this.value).then(function(e){return new r(e.value,s([t,e]))})},r.combine=function(e){return new r(n.flatten(n.pluck(e,`value`)),s(e))};function i(e){return new r(e,[])}function a(e){return{type:`warning`,message:e}}function o(e){return{type:`error`,message:e.message,error:e}}function s(e){var t=[];return n.flatten(n.pluck(e,`messages`),!0).forEach(function(e){c(t,e)||t.push(e)}),t}function c(e,t){return n.find(e,l.bind(null,t))!==void 0}function l(e,t){return e.type===t.type&&e.message===t.message}})),A_=e.t((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),j_=e.t((e=>{var t=A_(),n=nu();e.openArrayBuffer=r,e.splitPath=i,e.joinPath=a;function r(e){return n.loadAsync(e).then(function(e){function n(t){return e.file(t)!==null}function r(n,r){return e.file(n).async(`uint8array`).then(function(e){return r===`base64`?t.fromByteArray(e):r?new TextDecoder(r).decode(e):e})}function i(t,n){e.file(t,n)}function a(){return e.generateAsync({type:`arraybuffer`})}return{exists:n,read:r,write:i,toArrayBuffer:a}})}function i(e){var t=e.lastIndexOf(`/`);return t===-1?{dirname:``,basename:e}:{dirname:e.substring(0,t),basename:e.substring(t+1)}}function a(){var e=Array.prototype.filter.call(arguments,function(e){return e}),t=[];return e.forEach(function(e){/^\//.test(e)?t=[e]:t.push(e)}),t.join(`/`)}})),M_=e.t((t=>{var n=(Gg(),e.i(Wg));t.Element=i,t.element=function(e,t,n){return new i(e,t,n)},t.text=function(e){return{type:`text`,value:e}};var r=t.emptyElement={first:function(){return null},firstOrEmpty:function(){return r},attributes:{},children:[]};function i(e,t,n){this.type=`element`,this.name=e,this.attributes=t||{},this.children=n||[]}i.prototype.first=function(e){return n.find(this.children,function(t){return t.name===e})},i.prototype.firstOrEmpty=function(e){return this.first(e)||r},i.prototype.getElementsByTagName=function(e){return o(n.filter(this.children,function(t){return t.name===e}))},i.prototype.text=function(){if(this.children.length===0)return``;if(this.children.length!==1||this.children[0].type!==`text`)throw Error(`Not implemented`);return this.children[0].value};var a={getElementsByTagName:function(e){return o(n.flatten(this.map(function(t){return t.getElementsByTagName(e)},!0)))}};function o(e){return n.extend(e,a)}})),N_=e.t((e=>{function t(e,t,n){if(n===void 0&&(n=Array.prototype),e&&typeof n.find==`function`)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];if(t.call(void 0,i,r,e))return i}}function n(e,t){return t===void 0&&(t=Object),t&&typeof t.freeze==`function`?t.freeze(e):e}function r(e,t){if(typeof e!=`object`||!e)throw TypeError(`target is not an object`);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var i=n({HTML:`text/html`,isHTML:function(e){return e===i.HTML},XML_APPLICATION:`application/xml`,XML_TEXT:`text/xml`,XML_XHTML_APPLICATION:`application/xhtml+xml`,XML_SVG_IMAGE:`image/svg+xml`}),a=n({HTML:`http://www.w3.org/1999/xhtml`,isHTML:function(e){return e===a.HTML},SVG:`http://www.w3.org/2000/svg`,XML:`http://www.w3.org/XML/1998/namespace`,XMLNS:`http://www.w3.org/2000/xmlns/`}),o=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=RegExp(`[\\-\\.0-9`+o.source.slice(1,-1)+`\\u00B7\\u0300-\\u036F\\u203F-\\u2040]`),c=RegExp(`^`+o.source+s.source+`*(?::`+o.source+s.source+`*)?$`);e.assign=r,e.find=t,e.freeze=n,e.MIME_TYPE=i,e.NAMESPACE=a,e.nameStartChar=o,e.nameChar=s,e.tagNamePattern=c})),P_=e.t((e=>{var t=N_(),n=t.find,r=t.NAMESPACE,i=t.tagNamePattern;function a(e){return e!==``}function o(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function c(e){if(!e)return[];var t=o(e);return Object.keys(t.reduce(s,{}))}function l(e){return function(t){return e&&e.indexOf(t)!==-1}}function u(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function d(e,t){var n=e.prototype;if(!(n instanceof t)){function r(){}r.prototype=t.prototype,r=new r,u(n,r),e.prototype=n=r}n.constructor!=e&&(typeof e!=`function`&&console.error(`unknown Class:`+e),n.constructor=e)}var f={},p=f.ELEMENT_NODE=1,m=f.ATTRIBUTE_NODE=2,h=f.TEXT_NODE=3,g=f.CDATA_SECTION_NODE=4,_=f.ENTITY_REFERENCE_NODE=5,v=f.ENTITY_NODE=6,y=f.PROCESSING_INSTRUCTION_NODE=7,b=f.COMMENT_NODE=8,x=f.DOCUMENT_NODE=9,S=f.DOCUMENT_TYPE_NODE=10,C=f.DOCUMENT_FRAGMENT_NODE=11,w=f.NOTATION_NODE=12,T={},E={};T.INDEX_SIZE_ERR=(E[1]=`Index size error`,1),T.DOMSTRING_SIZE_ERR=(E[2]=`DOMString size error`,2);var D=T.HIERARCHY_REQUEST_ERR=(E[3]=`Hierarchy request error`,3);T.WRONG_DOCUMENT_ERR=(E[4]=`Wrong document`,4);var O=T.INVALID_CHARACTER_ERR=(E[5]=`Invalid character`,5);T.NO_DATA_ALLOWED_ERR=(E[6]=`No data allowed`,6),T.NO_MODIFICATION_ALLOWED_ERR=(E[7]=`No modification allowed`,7);var k=T.NOT_FOUND_ERR=(E[8]=`Not found`,8);T.NOT_SUPPORTED_ERR=(E[9]=`Not supported`,9);var A=T.INUSE_ATTRIBUTE_ERR=(E[10]=`Attribute in use`,10),j=T.INVALID_STATE_ERR=(E[11]=`Invalid state`,11);T.SYNTAX_ERR=(E[12]=`Syntax error`,12),T.INVALID_MODIFICATION_ERR=(E[13]=`Invalid modification`,13),T.NAMESPACE_ERR=(E[14]=`Invalid namespace`,14),T.INVALID_ACCESS_ERR=(E[15]=`Invalid access`,15);function M(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,E[e]),this.message=E[e],Error.captureStackTrace&&Error.captureStackTrace(this,M);return n.code=e,t&&(this.message=this.message+`: `+t),n}M.prototype=Error.prototype,u(T,M);function N(){}N.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t,n){for(var r=!!n&&!!n.requireWellFormed,i=[],a=0;a<this.length;a++)W(this[a],i,e,t,null,r);return i.join(``)},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function P(e,t){this._node=e,this._refresh=t,F(this)}function F(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(ze(e,`length`,n.length),!e.$$length||n.length<e.$$length)for(var r=n.length;r in e;r++)Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];u(n,e),e._inc=t}}P.prototype.item=function(e){return F(this),this[e]||null},d(P,N);function I(){this._nameIndex=Object.create(null)}function L(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function R(e,t){e._nameIndex[t.nodeName]=t}function z(e,t){e._nameIndex[t.nodeName]===t&&delete e._nameIndex[t.nodeName]}function B(e,t,n,r){if(r?(t[L(t,r)]=n,z(t,r)):t[t.length++]=n,R(t,n),e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&ae(i,e,r),ie(i,e,n))}}function ee(e,t,n){var r=L(t,n);if(r>=0){for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,z(t,n),e){var a=e.ownerDocument;a&&(ae(a,e,n),n.ownerElement=null)}}else throw new M(k,Error(e.tagName+`@`+n))}I.prototype={length:0,item:N.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new M(A);var n=this._nameIndex[e.nodeName];return B(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t=e.ownerElement,n;if(t&&t!=this._ownerElement)throw new M(A);return n=this.getNamedItemNS(e.namespaceURI,e.localName),B(this._ownerElement,this,e,n),n},removeNamedItem:function(e){var t=this.getNamedItem(e);return ee(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return ee(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}};function te(){}te.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new U;if(r.implementation=this,r.childNodes=new N,r.doctype=n||null,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new De;return r.name=e,r.nodeName=e,r.publicId=t||``,r.systemId=n||``,r}};function V(){}V.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return ve(this,e,t)},replaceChild:function(e,t){ve(this,e,t,_e),t&&this.removeChild(t)},removeChild:function(e){return se(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return Re(this.ownerDocument||this,this,e)},normalize:function(){H(this,null,{enter:function(e){for(var t=e.firstChild;t;){var n=t.nextSibling;if(n!==null&&n.nodeType===h&&t.nodeType===h){for(var r=[],i=n;i!==null&&i.nodeType===h;)r.push(i.data),i=i.nextSibling;for(var a=t.nextSibling;a!==i;){var o=a.nextSibling;a.parentNode=null,a.previousSibling=null,a.nextSibling=null,a=o}t.nextSibling=i,i===null?e.lastChild=t:i.previousSibling=t,t.appendData(r.join(``)),oe(e.ownerDocument,e),t=i}else t=n}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r}t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return this.lookupPrefix(e)==null}};function ne(e){return e==`<`&&`&lt;`||e==`>`&&`&gt;`||e==`&`&&`&amp;`||e==`"`&&`&quot;`||`&#`+e.charCodeAt()+`;`}u(f,V),u(f,V.prototype);function re(e,t){return H(e,null,{enter:function(e){return!t(e)||H.STOP}})===H.STOP}function H(e,t,n){for(var r=[{node:e,context:t,phase:H.ENTER}];r.length>0;){var i=r.pop();if(i.phase===H.ENTER){var a=n.enter(i.node,i.context);if(a===H.STOP)return H.STOP;if(r.push({node:i.node,context:a,phase:H.EXIT}),a==null)continue;for(var o=i.node.lastChild;o;)r.push({node:o,context:a,phase:H.ENTER}),o=o.previousSibling}else n.exit&&n.exit(i.node,i.context)}}H.STOP=Symbol(`walkDOM.STOP`),H.ENTER=0,H.EXIT=1;function U(){this.ownerDocument=this}function ie(e,t,n){e&&e._inc++,n.namespaceURI===r.XMLNS&&(t._nsMap[n.prefix?n.localName:``]=n.value)}function ae(e,t,n,i){e&&e._inc++,n.namespaceURI===r.XMLNS&&delete t._nsMap[n.prefix?n.localName:``]}function oe(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,a=0;i;)r[a++]=i,i=i.nextSibling;r.length=a,delete r[r.length]}}}function se(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,oe(e.ownerDocument,e),t}function ce(e){return e&&(e.nodeType===V.DOCUMENT_NODE||e.nodeType===V.DOCUMENT_FRAGMENT_NODE||e.nodeType===V.ELEMENT_NODE)}function le(e){return e&&(de(e)||fe(e)||ue(e)||e.nodeType===V.DOCUMENT_FRAGMENT_NODE||e.nodeType===V.COMMENT_NODE||e.nodeType===V.PROCESSING_INSTRUCTION_NODE)}function ue(e){return e&&e.nodeType===V.DOCUMENT_TYPE_NODE}function de(e){return e&&e.nodeType===V.ELEMENT_NODE}function fe(e){return e&&e.nodeType===V.TEXT_NODE}function pe(e,t){var r=e.childNodes||[];if(n(r,de)||ue(t))return!1;var i=n(r,ue);return!(t&&i&&r.indexOf(i)>r.indexOf(t))}function me(e,t){var r=e.childNodes||[];function i(e){return de(e)&&e!==t}if(n(r,i))return!1;var a=n(r,ue);return!(t&&a&&r.indexOf(a)>r.indexOf(t))}function he(e,t,n){if(!ce(e))throw new M(D,`Unexpected parent node type `+e.nodeType);if(n&&n.parentNode!==e)throw new M(k,`child not in parent`);if(!le(t)||ue(t)&&e.nodeType!==V.DOCUMENT_NODE)throw new M(D,`Unexpected node type `+t.nodeType+` for parent node type `+e.nodeType)}function ge(e,t,r){var i=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===V.DOCUMENT_FRAGMENT_NODE){var o=a.filter(de);if(o.length>1||n(a,fe))throw new M(D,`More than one element or text in fragment`);if(o.length===1&&!pe(e,r))throw new M(D,`Element in fragment can not be inserted before doctype`)}if(de(t)&&!pe(e,r))throw new M(D,`Only one element can be added and only after doctype`);if(ue(t)){if(n(i,ue))throw new M(D,`Only one doctype is allowed`);var s=n(i,de);if(r&&i.indexOf(s)<i.indexOf(r))throw new M(D,`Doctype can only be inserted before an element`);if(!r&&s)throw new M(D,`Doctype can not be appended since element is present`)}}function _e(e,t,r){var i=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===V.DOCUMENT_FRAGMENT_NODE){var o=a.filter(de);if(o.length>1||n(a,fe))throw new M(D,`More than one element or text in fragment`);if(o.length===1&&!me(e,r))throw new M(D,`Element in fragment can not be inserted before doctype`)}if(de(t)&&!me(e,r))throw new M(D,`Only one element can be added and only after doctype`);if(ue(t)){function s(e){return ue(e)&&e!==r}if(n(i,s))throw new M(D,`Only one doctype is allowed`);var c=n(i,de);if(r&&i.indexOf(c)<i.indexOf(r))throw new M(D,`Doctype can only be inserted before an element`)}}function ve(e,t,n,r){he(e,t,n),e.nodeType===V.DOCUMENT_NODE&&(r||ge)(e,t,n);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===C){var a=t.firstChild;if(a==null)return t;var o=t.lastChild}else a=o=t;var s=n?n.previousSibling:e.lastChild;a.previousSibling=s,o.nextSibling=n,s?s.nextSibling=a:e.firstChild=a,n==null?e.lastChild=o:n.previousSibling=o;do{a.parentNode=e;var c=e.ownerDocument||e;ye(a,c)}while(a!==o&&(a=a.nextSibling));return oe(e.ownerDocument||e,e),t.nodeType==C&&(t.firstChild=t.lastChild=null),t}function ye(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===p&&e.attributes)for(var n=0;n<e.attributes.length;n++){var r=e.attributes.item(n);r&&(r.ownerDocument=t)}for(var i=e.firstChild;i;)ye(i,t),i=i.nextSibling}}function be(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,oe(e.ownerDocument,e,t),ye(t,e.ownerDocument||e),t}U.prototype={nodeName:`#document`,nodeType:x,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==C){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return ve(this,e,t),ye(e,this),this.documentElement===null&&e.nodeType===p&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),se(this,e)},replaceChild:function(e,t){ve(this,e,t,_e),ye(e,this),t&&this.removeChild(t),de(e)&&(this.documentElement=e)},importNode:function(e,t){return Le(this,e,t)},getElementById:function(e){var t=null;return re(this.documentElement,function(n){if(n.nodeType==p&&n.getAttribute(`id`)==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=c(e);return new P(this,function(n){var r=[];return t.length>0&&re(n.documentElement,function(i){if(i!==n&&i.nodeType===p){var a=i.getAttribute(`class`);if(a){var o=e===a;if(!o){var s=c(a);o=t.every(l(s))}o&&r.push(i)}}}),r})},createElement:function(e){var t=new xe;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new N;var n=t.attributes=new I;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new je;return e.ownerDocument=this,e.childNodes=new N,e},createTextNode:function(e){var t=new we;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new Te;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){if(e.indexOf(`]]>`)!==-1)throw new M(O,`data contains "]]>"`);var t=new Ee;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Me;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new Se;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!i.test(e))throw new M(O,`not a valid xml name "`+e+`"`);var t=new Ae;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new xe,r=t.split(`:`),i=n.attributes=new I;return n.childNodes=new N,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new Se,r=t.split(`:`);return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},d(U,V);function xe(){this._nsMap={}}xe.prototype={nodeType:p,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||``},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=``+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===C?this.insertBefore(e,null):be(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||``},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=``+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new P(this,function(t){var n=[];return re(t,function(r){r!==t&&r.nodeType==p&&(e===`*`||r.tagName==e)&&n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new P(this,function(n){var r=[];return re(n,function(i){i!==n&&i.nodeType===p&&(e===`*`||i.namespaceURI===e)&&(t===`*`||i.localName==t)&&r.push(i)}),r})}},U.prototype.getElementsByTagName=xe.prototype.getElementsByTagName,U.prototype.getElementsByTagNameNS=xe.prototype.getElementsByTagNameNS,d(xe,V);function Se(){}Se.prototype.nodeType=m,d(Se,V);function Ce(){}Ce.prototype={data:``,substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw Error(E[D])},deleteData:function(e,t){this.replaceData(e,t,``)},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}},d(Ce,V);function we(){}we.prototype={nodeName:`#text`,nodeType:h,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},d(we,Ce);function Te(){}Te.prototype={nodeName:`#comment`,nodeType:b},d(Te,Ce);function Ee(){}Ee.prototype={nodeName:`#cdata-section`,nodeType:g},d(Ee,Ce);function De(){}De.prototype.nodeType=S,d(De,V);function Oe(){}Oe.prototype.nodeType=w,d(Oe,V);function ke(){}ke.prototype.nodeType=v,d(ke,V);function Ae(){}Ae.prototype.nodeType=_,d(Ae,V);function je(){}je.prototype.nodeName=`#document-fragment`,je.prototype.nodeType=C,d(je,V);function Me(){}Me.prototype.nodeType=y,d(Me,V);function Ne(){}Ne.prototype.serializeToString=function(e,t,n,r){return Pe.call(e,t,n,r)},V.prototype.toString=Pe;function Pe(e,t,n){var r=!!n&&!!n.requireWellFormed,i=[],a=this.nodeType==9&&this.documentElement||this,o=a.prefix,s=a.namespaceURI;if(s&&o==null){var o=a.lookupPrefix(s);if(o==null)var c=[{namespace:s,prefix:null}]}return W(this,i,e,t,c,r),i.join(``)}function Fe(e,t,n){var i=e.prefix||``,a=e.namespaceURI;if(!a||i===`xml`&&a===r.XML||a===r.XMLNS)return!1;for(var o=n.length;o--;){var s=n[o];if(s.prefix===i)return s.namespace!==a}return!0}function Ie(e,t,n,r){if(r&&!i.test(t))throw new M(j,`The attribute name "`+t+`" is not a valid XML QName`);e.push(` `,t,`="`,n.replace(/[<>&"\t\n\r]/g,ne),`"`)}function W(e,t,n,a,o,s){o||=[],H(e,{ns:o,isHTML:n},{enter:function(e,n){var o=n.ns,c=n.isHTML;if(a)if(e=a(e),e){if(typeof e==`string`)return t.push(e),null}else return null;switch(e.nodeType){case p:var l=e.attributes,u=l.length,d=e.tagName;c=r.isHTML(e.namespaceURI)||c;var f=d;if(!c&&!e.prefix&&e.namespaceURI){for(var v,w=0;w<l.length;w++)if(l.item(w).name===`xmlns`){v=l.item(w).value;break}if(!v)for(var T=o.length-1;T>=0;T--){var E=o[T];if(E.prefix===``&&E.namespace===e.namespaceURI){v=E.namespace;break}}if(v!==e.namespaceURI)for(var T=o.length-1;T>=0;T--){var E=o[T];if(E.namespace===e.namespaceURI){E.prefix&&(f=E.prefix+`:`+d);break}}}if(s&&!i.test(f))throw new M(j,`The element name "`+f+`" is not a valid XML QName`);t.push(`<`,f);for(var D=o.slice(),O=0;O<u;O++){var k=l.item(O);k.prefix==`xmlns`?D.push({prefix:k.localName,namespace:k.value}):k.nodeName==`xmlns`&&D.push({prefix:``,namespace:k.value})}for(var O=0;O<u;O++){var k=l.item(O);if(Fe(k,c,D)){var A=k.prefix||``,N=k.namespaceURI;Ie(t,A?`xmlns:`+A:`xmlns`,N,s),D.push({prefix:A,namespace:N})}var P=a?a(k):k;P&&(typeof P==`string`?t.push(P):Ie(t,P.name,P.value,s))}if(d===f&&Fe(e,c,D)){var F=e.prefix||``,N=e.namespaceURI;Ie(t,F?`xmlns:`+F:`xmlns`,N,s),D.push({prefix:F,namespace:N})}var I=e.firstChild;if(I||c&&!/^(?:meta|link|img|br|hr|input)$/i.test(d)){if(t.push(`>`),c&&/^script$/i.test(d)){for(;I;)I.data?t.push(I.data):W(I,t,c,a,D.slice(),s),I=I.nextSibling;return t.push(`</`,d,`>`),null}return{ns:D,isHTML:c,tag:f}}else return t.push(`/>`),null;case x:case C:return{ns:o.slice(),isHTML:c,tag:null};case m:return Ie(t,e.name,e.value,s),null;case h:return t.push(e.data.replace(/[<&>]/g,ne)),null;case g:if(s&&e.data.indexOf(`]]>`)!==-1)throw new M(j,`The CDATASection data contains "]]>"`);return t.push(`<![CDATA[`,e.data.replace(/]]>/g,`]]]]><![CDATA[>`),`]]>`),null;case b:if(s&&e.data.indexOf(`-->`)!==-1)throw new M(j,`The comment node data contains "-->"`);return t.push(`<!--`,e.data,`-->`),null;case S:if(s){if(!i.test(e.name))throw new M(j,`The doctype name "`+e.name+`" is not a valid XML Name`);if(e.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(e.publicId))throw new M(j,`DocumentType publicId is not a valid PubidLiteral`);if(e.systemId&&!/^("[^"]*"|'[^']*')$/.test(e.systemId))throw new M(j,`DocumentType systemId is not a valid SystemLiteral`);if(e.internalSubset&&e.internalSubset.indexOf(`]>`)!==-1)throw new M(j,`DocumentType internalSubset contains "]>"`)}var L=e.publicId,R=e.systemId;if(t.push(`<!DOCTYPE `,e.name),L)t.push(` PUBLIC `,L),R&&R!=`.`&&t.push(` `,R),t.push(`>`);else if(R&&R!=`.`)t.push(` SYSTEM `,R,`>`);else{var z=e.internalSubset;z&&t.push(` [`,z,`]`),t.push(`>`)}return null;case y:if(s){if(!i.test(e.target)||e.target.indexOf(`:`)!==-1||e.target.toLowerCase()===`xml`)throw new M(j,`The processing instruction target "`+e.target+`" is not a valid XML NCName or is reserved`);if(e.data.indexOf(`?>`)!==-1)throw new M(j,`The ProcessingInstruction data contains "?>"`)}return t.push(`<?`,e.target,` `,e.data,`?>`),null;case _:if(s&&!i.test(e.nodeName))throw new M(j,`The entity reference name "`+e.nodeName+`" is not a valid XML Name`);return t.push(`&`,e.nodeName,`;`),null;default:return t.push(`??`,e.nodeName),null}},exit:function(e,n){n&&n.tag&&t.push(`</`,n.tag,`>`)}})}function Le(e,t,n){var r;return H(t,null,{enter:function(t,i){var a=t.cloneNode(!1);return a.ownerDocument=e,a.parentNode=null,i===null?r=a:i.appendChild(a),t.nodeType===m||n?a:null}}),r}function Re(e,t,n){var r;return H(t,null,{enter:function(t,i){var a=new t.constructor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=t[o];typeof s!=`object`&&s!=a[o]&&(a[o]=s)}t.childNodes&&(a.childNodes=new N),a.ownerDocument=e;var c=n;switch(a.nodeType){case p:var l=t.attributes,u=a.attributes=new I,d=l.length;u._ownerElement=a;for(var f=0;f<d;f++)a.setAttributeNode(Re(e,l.item(f),!0));break;case m:c=!0}return i===null?r=a:i.appendChild(a),c?a:null}}),r}function ze(e,t,n){e[t]=n}try{Object.defineProperty&&(Object.defineProperty(P.prototype,"length",{get:function(){return F(this),this.$$length}}),Object.defineProperty(V.prototype,"textContent",{get:function(){if(this.nodeType===p||this.nodeType===C){var e=[];return H(this,null,{enter:function(t){if(t.nodeType===p||t.nodeType===C)return!0;if(t.nodeType===y||t.nodeType===b)return null;e.push(t.nodeValue)}}),e.join(``)}return this.nodeValue},set:function(e){switch(this.nodeType){case p:case C:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ze=function(e,t,n){e[`$$`+t]=n})}catch{}e.DocumentType=De,e.DOMException=M,e.DOMImplementation=te,e.Element=xe,e.Node=V,e.NodeList=N,e.walkDOM=H,e.XMLSerializer=Ne})),F_=e.t((e=>{var t=N_().freeze;e.XML_ENTITIES=t({amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}),e.HTML_ENTITIES=t({Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:`∾̳`,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:`⁡`,Afr:`𝔄`,afr:`𝔞`,Agrave:`À`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,Alpha:`Α`,alpha:`α`,Amacr:`Ā`,amacr:`ā`,amalg:`⨿`,AMP:`&`,amp:`&`,And:`⩓`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,Aogon:`Ą`,aogon:`ą`,Aopf:`𝔸`,aopf:`𝕒`,ap:`≈`,apacir:`⩯`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:`⁡`,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:`𝒜`,ascr:`𝒶`,Assign:`≔`,ast:`*`,asymp:`≈`,asympeq:`≍`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,Backslash:`∖`,Barv:`⫧`,barvee:`⊽`,Barwed:`⌆`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,Bcy:`Б`,bcy:`б`,bdquo:`„`,becaus:`∵`,Because:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,Bernoullis:`ℬ`,Beta:`Β`,beta:`β`,beth:`ℶ`,between:`≬`,Bfr:`𝔅`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bNot:`⫭`,bnot:`⌐`,Bopf:`𝔹`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxbox:`⧉`,boxDL:`╗`,boxDl:`╖`,boxdL:`╕`,boxdl:`┐`,boxDR:`╔`,boxDr:`╓`,boxdR:`╒`,boxdr:`┌`,boxH:`═`,boxh:`─`,boxHD:`╦`,boxHd:`╤`,boxhD:`╥`,boxhd:`┬`,boxHU:`╩`,boxHu:`╧`,boxhU:`╨`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxUL:`╝`,boxUl:`╜`,boxuL:`╛`,boxul:`┘`,boxUR:`╚`,boxUr:`╙`,boxuR:`╘`,boxur:`└`,boxV:`║`,boxv:`│`,boxVH:`╬`,boxVh:`╫`,boxvH:`╪`,boxvh:`┼`,boxVL:`╣`,boxVl:`╢`,boxvL:`╡`,boxvl:`┤`,boxVR:`╠`,boxVr:`╟`,boxvR:`╞`,boxvr:`├`,bprime:`‵`,Breve:`˘`,breve:`˘`,brvbar:`¦`,Bscr:`ℬ`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,Bumpeq:`≎`,bumpeq:`≏`,Cacute:`Ć`,cacute:`ć`,Cap:`⋒`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,CapitalDifferentialD:`ⅅ`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,Cayleys:`ℭ`,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,CenterDot:`·`,centerdot:`·`,Cfr:`ℭ`,cfr:`𝔠`,CHcy:`Ч`,chcy:`ч`,check:`✓`,checkmark:`✓`,Chi:`Χ`,chi:`χ`,cir:`○`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,CircleDot:`⊙`,circledR:`®`,circledS:`Ⓢ`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,cirE:`⧃`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,clubs:`♣`,clubsuit:`♣`,Colon:`∷`,colon:`:`,Colone:`⩴`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,Congruent:`≡`,Conint:`∯`,conint:`∮`,ContourIntegral:`∮`,Copf:`ℂ`,copf:`𝕔`,coprod:`∐`,Coproduct:`∐`,COPY:`©`,copy:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,Cross:`⨯`,cross:`✗`,Cscr:`𝒞`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,Cup:`⋓`,cup:`∪`,cupbrcap:`⩈`,CupCap:`≍`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,Dagger:`‡`,dagger:`†`,daleth:`ℸ`,Darr:`↡`,dArr:`⇓`,darr:`↓`,dash:`‐`,Dashv:`⫤`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,Dcaron:`Ď`,dcaron:`ď`,Dcy:`Д`,dcy:`д`,DD:`ⅅ`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,DDotrahd:`⤑`,ddotseq:`⩷`,deg:`°`,Del:`∇`,Delta:`Δ`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:`𝔇`,dfr:`𝔡`,dHar:`⥥`,dharl:`⇃`,dharr:`⇂`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,diam:`⋄`,Diamond:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,DifferentialD:`ⅆ`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,DJcy:`Ђ`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,Dopf:`𝔻`,dopf:`𝕕`,Dot:`¨`,dot:`˙`,DotDot:`⃜`,doteq:`≐`,doteqdot:`≑`,DotEqual:`≐`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,Downarrow:`⇓`,downarrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,Dscr:`𝒟`,dscr:`𝒹`,DScy:`Ѕ`,dscy:`ѕ`,dsol:`⧶`,Dstrok:`Đ`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Џ`,dzcy:`џ`,dzigrarr:`⟿`,Eacute:`É`,eacute:`é`,easter:`⩮`,Ecaron:`Ě`,ecaron:`ě`,ecir:`≖`,Ecirc:`Ê`,ecirc:`ê`,ecolon:`≕`,Ecy:`Э`,ecy:`э`,eDDot:`⩷`,Edot:`Ė`,eDot:`≑`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,Efr:`𝔈`,efr:`𝔢`,eg:`⪚`,Egrave:`È`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,Element:`∈`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,Emacr:`Ē`,emacr:`ē`,empty:`∅`,emptyset:`∅`,EmptySmallSquare:`◻`,emptyv:`∅`,EmptyVerySmallSquare:`▫`,emsp:` `,emsp13:` `,emsp14:` `,ENG:`Ŋ`,eng:`ŋ`,ensp:` `,Eogon:`Ę`,eogon:`ę`,Eopf:`𝔼`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,Equal:`⩵`,equals:`=`,EqualTilde:`≂`,equest:`≟`,Equilibrium:`⇌`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erarr:`⥱`,erDot:`≓`,Escr:`ℰ`,escr:`ℯ`,esdot:`≐`,Esim:`⩳`,esim:`≂`,Eta:`Η`,eta:`η`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,Exists:`∃`,expectation:`ℰ`,ExponentialE:`ⅇ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,Fcy:`Ф`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,Ffr:`𝔉`,ffr:`𝔣`,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:`𝔽`,fopf:`𝕗`,ForAll:`∀`,forall:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:`ℱ`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,Fscr:`ℱ`,fscr:`𝒻`,gacute:`ǵ`,Gamma:`Γ`,gamma:`γ`,Gammad:`Ϝ`,gammad:`ϝ`,gap:`⪆`,Gbreve:`Ğ`,gbreve:`ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gcy:`Г`,gcy:`г`,Gdot:`Ġ`,gdot:`ġ`,gE:`≧`,ge:`≥`,gEl:`⪌`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,Gfr:`𝔊`,gfr:`𝔤`,Gg:`⋙`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gl:`≷`,gla:`⪥`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gnE:`≩`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:`𝔾`,gopf:`𝕘`,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,Gt:`≫`,GT:`>`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,Hacek:`ˇ`,hairsp:` `,half:`½`,hamilt:`ℋ`,HARDcy:`Ъ`,hardcy:`ъ`,hArr:`⇔`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,Hfr:`ℌ`,hfr:`𝔥`,HilbertSpace:`ℋ`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,Hopf:`ℍ`,hopf:`𝕙`,horbar:`―`,HorizontalLine:`─`,Hscr:`ℋ`,hscr:`𝒽`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:`⁃`,hyphen:`‐`,Iacute:`Í`,iacute:`í`,ic:`⁣`,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,Ifr:`ℑ`,ifr:`𝔦`,Igrave:`Ì`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,IJlig:`IJ`,ijlig:`ij`,Im:`ℑ`,Imacr:`Ī`,imacr:`ī`,image:`ℑ`,ImaginaryI:`ⅈ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,Implies:`⇒`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,Int:`∬`,int:`∫`,intcal:`⊺`,integers:`ℤ`,Integral:`∫`,intercal:`⊺`,Intersection:`⋂`,intlarhk:`⨗`,intprod:`⨼`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,IOcy:`Ё`,iocy:`ё`,Iogon:`Į`,iogon:`į`,Iopf:`𝕀`,iopf:`𝕚`,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,Iscr:`ℐ`,iscr:`𝒾`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:`𝔍`,jfr:`𝔧`,jmath:`ȷ`,Jopf:`𝕁`,jopf:`𝕛`,Jscr:`𝒥`,jscr:`𝒿`,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:`𝔎`,kfr:`𝔨`,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:`𝕂`,kopf:`𝕜`,Kscr:`𝒦`,kscr:`𝓀`,lAarr:`⇚`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,Lambda:`Λ`,lambda:`λ`,Lang:`⟪`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,Laplacetrf:`ℒ`,laquo:`«`,Larr:`↞`,lArr:`⇐`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,lAtail:`⤛`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lBarr:`⤎`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ļ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,Lcy:`Л`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,lE:`≦`,le:`≤`,LeftAngleBracket:`⟨`,LeftArrow:`←`,Leftarrow:`⇐`,leftarrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,leftarrowtail:`↢`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,LeftRightArrow:`↔`,Leftrightarrow:`⇔`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,leftthreetimes:`⋋`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,lEg:`⪋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:`𝔏`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lHar:`⥢`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,LJcy:`Љ`,ljcy:`љ`,Ll:`⋘`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,Lleftarrow:`⇚`,llhard:`⥫`,lltri:`◺`,Lmidot:`Ŀ`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnap:`⪉`,lnapprox:`⪉`,lnE:`≨`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,LongLeftArrow:`⟵`,Longleftarrow:`⟸`,longleftarrow:`⟵`,LongLeftRightArrow:`⟷`,Longleftrightarrow:`⟺`,longleftrightarrow:`⟷`,longmapsto:`⟼`,LongRightArrow:`⟶`,Longrightarrow:`⟹`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,Lopf:`𝕃`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,Lscr:`ℒ`,lscr:`𝓁`,Lsh:`↰`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,Lstrok:`Ł`,lstrok:`ł`,Lt:`≪`,LT:`<`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,ltrPar:`⦖`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:`𝕄`,mopf:`𝕞`,mp:`∓`,Mscr:`ℳ`,mscr:`𝓂`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,Ncy:`Н`,ncy:`н`,ndash:`–`,ne:`≠`,nearhk:`⤤`,neArr:`⇗`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
741
+ `)}function O(e){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,e!==m&&(D(this,e),this._resolveFromExecutor(e)),this._promiseCreated(),this._fireEvent(`promiseCreated`,this)}O.prototype.toString=function(){return`[object Promise]`},O.prototype.caught=O.prototype.catch=function(e){var t=arguments.length;if(t>1){var n=Array(t-1),i=0,a;for(a=0;a<t-1;++a){var s=arguments[a];if(o.isObject(s))n[i++]=s;else return r(`expecting an object but got A catch statement predicate `+o.classString(s))}return n.length=i,e=arguments[a],this.then(void 0,C(n,e,this))}return this.then(void 0,e)},O.prototype.reflect=function(){return this._then(n,n,void 0,this,void 0)},O.prototype.then=function(e,t){if(x.warnings()&&arguments.length>0&&typeof e!=`function`&&typeof t!=`function`){var n=`.then() only accepts functions but was passed: `+o.classString(e);arguments.length>1&&(n+=`, `+o.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},O.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},O.prototype.spread=function(e){return typeof e==`function`?this.all()._then(e,void 0,void 0,h,void 0):r(`expecting a function but got `+o.classString(e))},O.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},O.prototype.all=function(){return arguments.length>0&&this._warn(`.all() was passed arguments but it does not take any`),new v(this).promise()},O.prototype.error=function(e){return this.caught(o.originatesFromRejection,e)},O.getNewLibraryCopy=t.exports,O.is=function(e){return e instanceof O},O.fromNode=O.fromCallback=function(e){var t=new O(m);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=E(e)(w(t,n));return r===T&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},O.all=function(e){return new v(e).promise()},O.cast=function(e){var t=_(e);return t instanceof O||(t=new O(m),t._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},O.resolve=O.fulfilled=O.cast,O.reject=O.rejected=function(e){var t=new O(m);return t._captureStackTrace(),t._rejectCallback(e,!0),t},O.setScheduler=function(e){if(typeof e!=`function`)throw new f(`expecting a function but got `+o.classString(e));return u.setScheduler(e)},O.prototype._then=function(e,t,n,r,i){var a=i!==void 0,c=a?i:new O(m),l=this._target(),d=l._bitField;a||(c._propagateFrom(this,3),c._captureStackTrace(),r===void 0&&this._bitField&2097152&&(r=d&50397184?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent(`promiseChained`,this,c));var f=s();if(d&50397184){var h,g,_=l._settlePromiseCtx;d&33554432?(g=l._rejectionHandler0,h=e):d&16777216?(g=l._fulfillmentHandler0,h=t,l._unsetRejectionIsUnhandled()):(_=l._settlePromiseLateCancellationObserver,g=new p(`late cancellation observer`),l._attachExtraTrace(g),h=t),u.invoke(_,l,{handler:f===null?h:typeof h==`function`&&o.domainBind(f,h),promise:c,receiver:r,value:g})}else l._addCallbacks(e,t,c,r,f);return c},O.prototype._length=function(){return this._bitField&65535},O.prototype._isFateSealed=function(){return(this._bitField&117506048)!=0},O.prototype._isFollowing=function(){return(this._bitField&67108864)==67108864},O.prototype._setLength=function(e){this._bitField=this._bitField&-65536|e&65535},O.prototype._setFulfilled=function(){this._bitField|=33554432,this._fireEvent(`promiseFulfilled`,this)},O.prototype._setRejected=function(){this._bitField|=16777216,this._fireEvent(`promiseRejected`,this)},O.prototype._setFollowing=function(){this._bitField|=67108864,this._fireEvent(`promiseResolved`,this)},O.prototype._setIsFinal=function(){this._bitField|=4194304},O.prototype._isFinal=function(){return(this._bitField&4194304)>0},O.prototype._unsetCancelled=function(){this._bitField&=-65537},O.prototype._setCancelled=function(){this._bitField|=65536,this._fireEvent(`promiseCancelled`,this)},O.prototype._setWillBeCancelled=function(){this._bitField|=8388608},O.prototype._setAsyncGuaranteed=function(){u.hasCustomScheduler()||(this._bitField|=134217728)},O.prototype._receiverAt=function(e){var t=e===0?this._receiver0:this[e*4-4+3];if(t!==a)return t===void 0&&this._isBound()?this._boundValue():t},O.prototype._promiseAt=function(e){return this[e*4-4+2]},O.prototype._fulfillmentHandlerAt=function(e){return this[e*4-4+0]},O.prototype._rejectionHandlerAt=function(e){return this[e*4-4+1]},O.prototype._boundValue=function(){},O.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);i===void 0&&(i=a),this._addCallbacks(t,n,r,i,null)},O.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);o===void 0&&(o=a),this._addCallbacks(n,r,i,o,null)},O.prototype._addCallbacks=function(e,t,n,r,i){var a=this._length();if(a>=65531&&(a=0,this._setLength(0)),a===0)this._promise0=n,this._receiver0=r,typeof e==`function`&&(this._fulfillmentHandler0=i===null?e:o.domainBind(i,e)),typeof t==`function`&&(this._rejectionHandler0=i===null?t:o.domainBind(i,t));else{var s=a*4-4;this[s+2]=n,this[s+3]=r,typeof e==`function`&&(this[s+0]=i===null?e:o.domainBind(i,e)),typeof t==`function`&&(this[s+1]=i===null?t:o.domainBind(i,t))}return this._setLength(a+1),a},O.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},O.prototype._resolveCallback=function(t,n){if(!(this._bitField&117506048)){if(t===this)return this._rejectCallback(e(),!1);var r=_(t,this);if(!(r instanceof O))return this._fulfill(t);n&&this._propagateFrom(r,2);var i=r._target();if(i===this){this._reject(e());return}var a=i._bitField;if(!(a&50397184)){var o=this._length();o>0&&i._migrateCallback0(this);for(var s=1;s<o;++s)i._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(i)}else if(a&33554432)this._fulfill(i._value());else if(a&16777216)this._reject(i._reason());else{var c=new p(`late cancellation observer`);i._attachExtraTrace(c),this._reject(c)}}},O.prototype._rejectCallback=function(e,t,n){var r=o.ensureErrorObject(e),i=r===e;if(!i&&!n&&x.warnings()){var a=`a promise was rejected with a non-error: `+o.classString(e);this._warn(a,!0)}this._attachExtraTrace(r,t?i:!1),this._reject(e)},O.prototype._resolveFromExecutor=function(e){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(e,function(e){t._resolveCallback(e)},function(e){t._rejectCallback(e,n)});n=!1,this._popContext(),r!==void 0&&t._rejectCallback(r,!0)},O.prototype._settlePromiseFromHandler=function(e,t,n,r){var i=r._bitField;if(!(i&65536)){r._pushContext();var a;t===h?!n||typeof n.length!=`number`?(a=T,a.e=new f(`cannot .spread() a non-array: `+o.classString(n))):a=E(e).apply(this._boundValue(),n):a=E(e).call(t,n);var s=r._popContext();i=r._bitField,!(i&65536)&&(a===g?r._reject(n):a===T?r._rejectCallback(a.e,!1):(x.checkForgottenReturns(a,s,``,r,this),r._resolveCallback(a)))}},O.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},O.prototype._followee=function(){return this._rejectionHandler0},O.prototype._setFollowee=function(e){this._rejectionHandler0=e},O.prototype._settlePromise=function(e,t,r,a){var o=e instanceof O,s=this._bitField,c=(s&134217728)!=0;s&65536?(o&&e._invokeInternalOnCancel(),r instanceof S&&r.isFinallyHandler()?(r.cancelPromise=e,E(t).call(r,a)===T&&e._reject(T.e)):t===n?e._fulfill(n.call(r)):r instanceof i?r._promiseCancelled(e):o||e instanceof v?e._cancel():r.cancel()):typeof t==`function`?o?(c&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,r,a,e)):t.call(r,a,e):r instanceof i?r._isResolved()||(s&33554432?r._promiseFulfilled(a,e):r._promiseRejected(a,e)):o&&(c&&e._setAsyncGuaranteed(),s&33554432?e._fulfill(a):e._reject(a))},O.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,r=e.receiver,i=e.value;typeof t==`function`?n instanceof O?this._settlePromiseFromHandler(t,r,i,n):t.call(r,i,n):n instanceof O&&n._reject(i)},O.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},O.prototype._settlePromise0=function(e,t,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,e,i,t)},O.prototype._clearCallbackDataAtIndex=function(e){var t=e*4-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},O.prototype._fulfill=function(t){var n=this._bitField;if(!((n&117506048)>>>16)){if(t===this){var r=e();return this._attachExtraTrace(r),this._reject(r)}this._setFulfilled(),this._rejectionHandler0=t,(n&65535)>0&&(n&134217728?this._settlePromises():u.settlePromises(this))}},O.prototype._reject=function(e){var t=this._bitField;if(!((t&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return u.fatalError(e,o.isNode);(t&65535)>0?u.settlePromises(this):this._ensurePossibleRejectionHandled()}},O.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),a=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,a,t)}},O.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),a=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,a,t)}},O.prototype._settlePromises=function(){var e=this._bitField,t=e&65535;if(t>0){if(e&16842752){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},O.prototype._settledValue=function(){var e=this._bitField;if(e&33554432)return this._rejectionHandler0;if(e&16777216)return this._fulfillmentHandler0};function k(e){this.promise._resolveCallback(e)}function A(e){this.promise._rejectCallback(e,!1)}O.defer=O.pending=function(){return x.deprecated(`Promise.defer`,`new Promise`),{promise:new O(m),resolve:k,reject:A}},o.notEnumerableProp(O,`_makeSelfResolutionError`,e),a_()(O,m,_,r,x),o_()(O,m,_,x),s_()(O,v,r,x),c_()(O),l_()(O),u_()(O,v,_,m,u,s),O.Promise=O,O.version=`3.4.7`,d_()(O,v,r,_,m,x),f_()(O),p_()(O,r,_,b,m,x),m_()(O,m,x),h_()(O,r,m,_,i,x),g_()(O),__()(O,m),v_()(O,v,_,r),y_()(O,m,_,r),b_()(O,v,r,_,m,x),x_()(O,v,x),S_()(O,v,r),C_()(O,m),w_()(O,m),T_()(O),o.toFastProperties(O),o.toFastProperties(O.prototype);function j(e){var t=new O(m);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return j({a:1}),j({b:2}),j({c:3}),j(1),j(function(){}),j(void 0),j(!1),j(new O(m)),x.setBounds(l.firstLineError,o.lastLineError),O}})),D_=e.t((t=>{var n=(Gg(),e.i(Wg)),r=E_()();t.defer=i,t.when=r.resolve,t.resolve=r.resolve,t.all=r.all,t.props=r.props,t.reject=r.reject,t.promisify=r.promisify,t.mapSeries=r.mapSeries,t.attempt=r.attempt,t.nfcall=function(e){var t=Array.prototype.slice.call(arguments,1);return r.promisify(e).apply(null,t)},r.prototype.fail=r.prototype.caught,r.prototype.also=function(e){return this.then(function(t){var i=n.extend({},t,e(t));return r.props(i)})};function i(){var e,t,n=new r.Promise(function(n,r){e=n,t=r});return{resolve:e,reject:t,promise:n}}})),O_=e.t((t=>{var n=(Gg(),e.i(Wg)),r=t.types={document:`document`,paragraph:`paragraph`,run:`run`,text:`text`,tab:`tab`,checkbox:`checkbox`,hyperlink:`hyperlink`,noteReference:`noteReference`,image:`image`,note:`note`,commentReference:`commentReference`,comment:`comment`,table:`table`,tableRow:`tableRow`,tableCell:`tableCell`,break:`break`,bookmarkStart:`bookmarkStart`};function i(e,t){return t||={},{type:r.document,children:e,notes:t.notes||new p({}),comments:t.comments||[]}}function a(e,t){t||={};var n=t.indent||{};return{type:r.paragraph,children:e,styleId:t.styleId||null,styleName:t.styleName||null,numbering:t.numbering||null,alignment:t.alignment||null,indent:{start:n.start||null,end:n.end||null,firstLine:n.firstLine||null,hanging:n.hanging||null}}}function o(e,t){return t||={},{type:r.run,children:e,styleId:t.styleId||null,styleName:t.styleName||null,isBold:!!t.isBold,isUnderline:!!t.isUnderline,isItalic:!!t.isItalic,isStrikethrough:!!t.isStrikethrough,isAllCaps:!!t.isAllCaps,isSmallCaps:!!t.isSmallCaps,verticalAlignment:t.verticalAlignment||s.baseline,font:t.font||null,fontSize:t.fontSize||null,highlight:t.highlight||null}}var s={baseline:`baseline`,superscript:`superscript`,subscript:`subscript`};function c(e){return{type:r.text,value:e}}function l(){return{type:r.tab}}function u(e){return{type:r.checkbox,checked:e.checked}}function d(e,t){return{type:r.hyperlink,children:e,href:t.href,anchor:t.anchor,targetFrame:t.targetFrame}}function f(e){return{type:r.noteReference,noteType:e.noteType,noteId:e.noteId}}function p(e){this._notes=n.indexBy(e,function(e){return _(e.noteType,e.noteId)})}p.prototype.resolve=function(e){return this.findNoteByKey(_(e.noteType,e.noteId))},p.prototype.findNoteByKey=function(e){return this._notes[e]||null};function m(e){return{type:r.note,noteType:e.noteType,noteId:e.noteId,body:e.body}}function h(e){return{type:r.commentReference,commentId:e.commentId}}function g(e){return{type:r.comment,commentId:e.commentId,body:e.body,authorName:e.authorName,authorInitials:e.authorInitials}}function _(e,t){return e+`-`+t}function v(e){return{type:r.image,read:function(t){return t?e.readImage(t):e.readImage().then(function(e){return Buffer.from(e)})},readAsArrayBuffer:function(){return e.readImage()},readAsBase64String:function(){return e.readImage(`base64`)},readAsBuffer:function(){return e.readImage().then(function(e){return Buffer.from(e)})},altText:e.altText,contentType:e.contentType}}function y(e,t){return t||={},{type:r.table,children:e,styleId:t.styleId||null,styleName:t.styleName||null}}function b(e,t){return t||={},{type:r.tableRow,children:e,isHeader:t.isHeader||!1}}function x(e,t){return t||={},{type:r.tableCell,children:e,colSpan:t.colSpan==null?1:t.colSpan,rowSpan:t.rowSpan==null?1:t.rowSpan}}function S(e){return{type:r.break,breakType:e}}function C(e){return{type:r.bookmarkStart,name:e.name}}t.document=t.Document=i,t.paragraph=t.Paragraph=a,t.run=t.Run=o,t.text=t.Text=c,t.tab=t.Tab=l,t.checkbox=t.Checkbox=u,t.Hyperlink=d,t.noteReference=t.NoteReference=f,t.Notes=p,t.Note=m,t.commentReference=h,t.comment=g,t.Image=v,t.Table=y,t.TableRow=b,t.TableCell=x,t.lineBreak=S(`line`),t.pageBreak=S(`page`),t.columnBreak=S(`column`),t.BookmarkStart=C,t.verticalAlignment=s})),k_=e.t((t=>{var n=(Gg(),e.i(Wg));t.Result=r,t.success=i,t.warning=a,t.error=o;function r(e,t){this.value=e,this.messages=t||[]}r.prototype.map=function(e){return new r(e(this.value),this.messages)},r.prototype.flatMap=function(e){var t=e(this.value);return new r(t.value,s([this,t]))},r.prototype.flatMapThen=function(e){var t=this;return e(this.value).then(function(e){return new r(e.value,s([t,e]))})},r.combine=function(e){return new r(n.flatten(n.pluck(e,`value`)),s(e))};function i(e){return new r(e,[])}function a(e){return{type:`warning`,message:e}}function o(e){return{type:`error`,message:e.message,error:e}}function s(e){var t=[];return n.flatten(n.pluck(e,`messages`),!0).forEach(function(e){c(t,e)||t.push(e)}),t}function c(e,t){return n.find(e,l.bind(null,t))!==void 0}function l(e,t){return e.type===t.type&&e.message===t.message}})),A_=e.t((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),j_=e.t((e=>{var t=A_(),n=nu();e.openArrayBuffer=r,e.splitPath=i,e.joinPath=a;function r(e){return n.loadAsync(e).then(function(e){function n(t){return e.file(t)!==null}function r(n,r){return e.file(n).async(`uint8array`).then(function(e){return r===`base64`?t.fromByteArray(e):r?new TextDecoder(r).decode(e):e})}function i(t,n){e.file(t,n)}function a(){return e.generateAsync({type:`arraybuffer`})}return{exists:n,read:r,write:i,toArrayBuffer:a}})}function i(e){var t=e.lastIndexOf(`/`);return t===-1?{dirname:``,basename:e}:{dirname:e.substring(0,t),basename:e.substring(t+1)}}function a(){var e=Array.prototype.filter.call(arguments,function(e){return e}),t=[];return e.forEach(function(e){/^\//.test(e)?t=[e]:t.push(e)}),t.join(`/`)}})),M_=e.t((t=>{var n=(Gg(),e.i(Wg));t.Element=i,t.element=function(e,t,n){return new i(e,t,n)},t.text=function(e){return{type:`text`,value:e}};var r=t.emptyElement={first:function(){return null},firstOrEmpty:function(){return r},attributes:{},children:[]};function i(e,t,n){this.type=`element`,this.name=e,this.attributes=t||{},this.children=n||[]}i.prototype.first=function(e){return n.find(this.children,function(t){return t.name===e})},i.prototype.firstOrEmpty=function(e){return this.first(e)||r},i.prototype.getElementsByTagName=function(e){return o(n.filter(this.children,function(t){return t.name===e}))},i.prototype.text=function(){if(this.children.length===0)return``;if(this.children.length!==1||this.children[0].type!==`text`)throw Error(`Not implemented`);return this.children[0].value};var a={getElementsByTagName:function(e){return o(n.flatten(this.map(function(t){return t.getElementsByTagName(e)},!0)))}};function o(e){return n.extend(e,a)}})),N_=e.t((e=>{function t(e,t,n){if(n===void 0&&(n=Array.prototype),e&&typeof n.find==`function`)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];if(t.call(void 0,i,r,e))return i}}function n(e,t){return t===void 0&&(t=Object),t&&typeof t.freeze==`function`?t.freeze(e):e}function r(e,t){if(typeof e!=`object`||!e)throw TypeError(`target is not an object`);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var i=n({HTML:`text/html`,isHTML:function(e){return e===i.HTML},XML_APPLICATION:`application/xml`,XML_TEXT:`text/xml`,XML_XHTML_APPLICATION:`application/xhtml+xml`,XML_SVG_IMAGE:`image/svg+xml`}),a=n({HTML:`http://www.w3.org/1999/xhtml`,isHTML:function(e){return e===a.HTML},SVG:`http://www.w3.org/2000/svg`,XML:`http://www.w3.org/XML/1998/namespace`,XMLNS:`http://www.w3.org/2000/xmlns/`}),o=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=RegExp(`[\\-\\.0-9`+o.source.slice(1,-1)+`\\u00B7\\u0300-\\u036F\\u203F-\\u2040]`),c=RegExp(`^`+o.source+s.source+`*(?::`+o.source+s.source+`*)?$`);e.assign=r,e.find=t,e.freeze=n,e.MIME_TYPE=i,e.NAMESPACE=a,e.nameStartChar=o,e.nameChar=s,e.tagNamePattern=c})),P_=e.t((e=>{var t=N_(),n=t.find,r=t.NAMESPACE,i=t.tagNamePattern;function a(e){return e!==``}function o(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function c(e){if(!e)return[];var t=o(e);return Object.keys(t.reduce(s,{}))}function l(e){return function(t){return e&&e.indexOf(t)!==-1}}function u(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function d(e,t){var n=e.prototype;if(!(n instanceof t)){function r(){}r.prototype=t.prototype,r=new r,u(n,r),e.prototype=n=r}n.constructor!=e&&(typeof e!=`function`&&console.error(`unknown Class:`+e),n.constructor=e)}var f={},p=f.ELEMENT_NODE=1,m=f.ATTRIBUTE_NODE=2,h=f.TEXT_NODE=3,g=f.CDATA_SECTION_NODE=4,_=f.ENTITY_REFERENCE_NODE=5,v=f.ENTITY_NODE=6,y=f.PROCESSING_INSTRUCTION_NODE=7,b=f.COMMENT_NODE=8,x=f.DOCUMENT_NODE=9,S=f.DOCUMENT_TYPE_NODE=10,C=f.DOCUMENT_FRAGMENT_NODE=11,w=f.NOTATION_NODE=12,T={},E={};T.INDEX_SIZE_ERR=(E[1]=`Index size error`,1),T.DOMSTRING_SIZE_ERR=(E[2]=`DOMString size error`,2);var D=T.HIERARCHY_REQUEST_ERR=(E[3]=`Hierarchy request error`,3);T.WRONG_DOCUMENT_ERR=(E[4]=`Wrong document`,4);var O=T.INVALID_CHARACTER_ERR=(E[5]=`Invalid character`,5);T.NO_DATA_ALLOWED_ERR=(E[6]=`No data allowed`,6),T.NO_MODIFICATION_ALLOWED_ERR=(E[7]=`No modification allowed`,7);var k=T.NOT_FOUND_ERR=(E[8]=`Not found`,8);T.NOT_SUPPORTED_ERR=(E[9]=`Not supported`,9);var A=T.INUSE_ATTRIBUTE_ERR=(E[10]=`Attribute in use`,10),j=T.INVALID_STATE_ERR=(E[11]=`Invalid state`,11);T.SYNTAX_ERR=(E[12]=`Syntax error`,12),T.INVALID_MODIFICATION_ERR=(E[13]=`Invalid modification`,13),T.NAMESPACE_ERR=(E[14]=`Invalid namespace`,14),T.INVALID_ACCESS_ERR=(E[15]=`Invalid access`,15);function M(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,E[e]),this.message=E[e],Error.captureStackTrace&&Error.captureStackTrace(this,M);return n.code=e,t&&(this.message=this.message+`: `+t),n}M.prototype=Error.prototype,u(T,M);function N(){}N.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t,n){for(var r=!!n&&!!n.requireWellFormed,i=[],a=0;a<this.length;a++)W(this[a],i,e,t,null,r);return i.join(``)},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function P(e,t){this._node=e,this._refresh=t,F(this)}function F(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(ze(e,`length`,n.length),!e.$$length||n.length<e.$$length)for(var r=n.length;r in e;r++)Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];u(n,e),e._inc=t}}P.prototype.item=function(e){return F(this),this[e]||null},d(P,N);function I(){this._nameIndex=Object.create(null)}function L(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function R(e,t){e._nameIndex[t.nodeName]=t}function z(e,t){e._nameIndex[t.nodeName]===t&&delete e._nameIndex[t.nodeName]}function B(e,t,n,r){if(r?(t[L(t,r)]=n,z(t,r)):t[t.length++]=n,R(t,n),e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&oe(i,e,r),ae(i,e,n))}}function ee(e,t,n){var r=L(t,n);if(r>=0){for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,z(t,n),e){var a=e.ownerDocument;a&&(oe(a,e,n),n.ownerElement=null)}}else throw new M(k,Error(e.tagName+`@`+n))}I.prototype={length:0,item:N.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new M(A);var n=this._nameIndex[e.nodeName];return B(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t=e.ownerElement,n;if(t&&t!=this._ownerElement)throw new M(A);return n=this.getNamedItemNS(e.namespaceURI,e.localName),B(this._ownerElement,this,e,n),n},removeNamedItem:function(e){var t=this.getNamedItem(e);return ee(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return ee(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}};function te(){}te.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new H;if(r.implementation=this,r.childNodes=new N,r.doctype=n||null,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new De;return r.name=e,r.nodeName=e,r.publicId=t||``,r.systemId=n||``,r}};function V(){}V.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return ve(this,e,t)},replaceChild:function(e,t){ve(this,e,t,_e),t&&this.removeChild(t)},removeChild:function(e){return ce(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return Re(this.ownerDocument||this,this,e)},normalize:function(){ie(this,null,{enter:function(e){for(var t=e.firstChild;t;){var n=t.nextSibling;if(n!==null&&n.nodeType===h&&t.nodeType===h){for(var r=[],i=n;i!==null&&i.nodeType===h;)r.push(i.data),i=i.nextSibling;for(var a=t.nextSibling;a!==i;){var o=a.nextSibling;a.parentNode=null,a.previousSibling=null,a.nextSibling=null,a=o}t.nextSibling=i,i===null?e.lastChild=t:i.previousSibling=t,t.appendData(r.join(``)),se(e.ownerDocument,e),t=i}else t=n}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r}t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return this.lookupPrefix(e)==null}};function ne(e){return e==`<`&&`&lt;`||e==`>`&&`&gt;`||e==`&`&&`&amp;`||e==`"`&&`&quot;`||`&#`+e.charCodeAt()+`;`}u(f,V),u(f,V.prototype);function re(e,t){return ie(e,null,{enter:function(e){return!t(e)||ie.STOP}})===ie.STOP}function ie(e,t,n){for(var r=[{node:e,context:t,phase:ie.ENTER}];r.length>0;){var i=r.pop();if(i.phase===ie.ENTER){var a=n.enter(i.node,i.context);if(a===ie.STOP)return ie.STOP;if(r.push({node:i.node,context:a,phase:ie.EXIT}),a==null)continue;for(var o=i.node.lastChild;o;)r.push({node:o,context:a,phase:ie.ENTER}),o=o.previousSibling}else n.exit&&n.exit(i.node,i.context)}}ie.STOP=Symbol(`walkDOM.STOP`),ie.ENTER=0,ie.EXIT=1;function H(){this.ownerDocument=this}function ae(e,t,n){e&&e._inc++,n.namespaceURI===r.XMLNS&&(t._nsMap[n.prefix?n.localName:``]=n.value)}function oe(e,t,n,i){e&&e._inc++,n.namespaceURI===r.XMLNS&&delete t._nsMap[n.prefix?n.localName:``]}function se(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,a=0;i;)r[a++]=i,i=i.nextSibling;r.length=a,delete r[r.length]}}}function ce(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,se(e.ownerDocument,e),t}function le(e){return e&&(e.nodeType===V.DOCUMENT_NODE||e.nodeType===V.DOCUMENT_FRAGMENT_NODE||e.nodeType===V.ELEMENT_NODE)}function ue(e){return e&&(fe(e)||pe(e)||de(e)||e.nodeType===V.DOCUMENT_FRAGMENT_NODE||e.nodeType===V.COMMENT_NODE||e.nodeType===V.PROCESSING_INSTRUCTION_NODE)}function de(e){return e&&e.nodeType===V.DOCUMENT_TYPE_NODE}function fe(e){return e&&e.nodeType===V.ELEMENT_NODE}function pe(e){return e&&e.nodeType===V.TEXT_NODE}function me(e,t){var r=e.childNodes||[];if(n(r,fe)||de(t))return!1;var i=n(r,de);return!(t&&i&&r.indexOf(i)>r.indexOf(t))}function U(e,t){var r=e.childNodes||[];function i(e){return fe(e)&&e!==t}if(n(r,i))return!1;var a=n(r,de);return!(t&&a&&r.indexOf(a)>r.indexOf(t))}function he(e,t,n){if(!le(e))throw new M(D,`Unexpected parent node type `+e.nodeType);if(n&&n.parentNode!==e)throw new M(k,`child not in parent`);if(!ue(t)||de(t)&&e.nodeType!==V.DOCUMENT_NODE)throw new M(D,`Unexpected node type `+t.nodeType+` for parent node type `+e.nodeType)}function ge(e,t,r){var i=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===V.DOCUMENT_FRAGMENT_NODE){var o=a.filter(fe);if(o.length>1||n(a,pe))throw new M(D,`More than one element or text in fragment`);if(o.length===1&&!me(e,r))throw new M(D,`Element in fragment can not be inserted before doctype`)}if(fe(t)&&!me(e,r))throw new M(D,`Only one element can be added and only after doctype`);if(de(t)){if(n(i,de))throw new M(D,`Only one doctype is allowed`);var s=n(i,fe);if(r&&i.indexOf(s)<i.indexOf(r))throw new M(D,`Doctype can only be inserted before an element`);if(!r&&s)throw new M(D,`Doctype can not be appended since element is present`)}}function _e(e,t,r){var i=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===V.DOCUMENT_FRAGMENT_NODE){var o=a.filter(fe);if(o.length>1||n(a,pe))throw new M(D,`More than one element or text in fragment`);if(o.length===1&&!U(e,r))throw new M(D,`Element in fragment can not be inserted before doctype`)}if(fe(t)&&!U(e,r))throw new M(D,`Only one element can be added and only after doctype`);if(de(t)){function s(e){return de(e)&&e!==r}if(n(i,s))throw new M(D,`Only one doctype is allowed`);var c=n(i,fe);if(r&&i.indexOf(c)<i.indexOf(r))throw new M(D,`Doctype can only be inserted before an element`)}}function ve(e,t,n,r){he(e,t,n),e.nodeType===V.DOCUMENT_NODE&&(r||ge)(e,t,n);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===C){var a=t.firstChild;if(a==null)return t;var o=t.lastChild}else a=o=t;var s=n?n.previousSibling:e.lastChild;a.previousSibling=s,o.nextSibling=n,s?s.nextSibling=a:e.firstChild=a,n==null?e.lastChild=o:n.previousSibling=o;do{a.parentNode=e;var c=e.ownerDocument||e;ye(a,c)}while(a!==o&&(a=a.nextSibling));return se(e.ownerDocument||e,e),t.nodeType==C&&(t.firstChild=t.lastChild=null),t}function ye(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===p&&e.attributes)for(var n=0;n<e.attributes.length;n++){var r=e.attributes.item(n);r&&(r.ownerDocument=t)}for(var i=e.firstChild;i;)ye(i,t),i=i.nextSibling}}function be(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,se(e.ownerDocument,e,t),ye(t,e.ownerDocument||e),t}H.prototype={nodeName:`#document`,nodeType:x,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==C){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return ve(this,e,t),ye(e,this),this.documentElement===null&&e.nodeType===p&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),ce(this,e)},replaceChild:function(e,t){ve(this,e,t,_e),ye(e,this),t&&this.removeChild(t),fe(e)&&(this.documentElement=e)},importNode:function(e,t){return Le(this,e,t)},getElementById:function(e){var t=null;return re(this.documentElement,function(n){if(n.nodeType==p&&n.getAttribute(`id`)==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=c(e);return new P(this,function(n){var r=[];return t.length>0&&re(n.documentElement,function(i){if(i!==n&&i.nodeType===p){var a=i.getAttribute(`class`);if(a){var o=e===a;if(!o){var s=c(a);o=t.every(l(s))}o&&r.push(i)}}}),r})},createElement:function(e){var t=new xe;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new N;var n=t.attributes=new I;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new je;return e.ownerDocument=this,e.childNodes=new N,e},createTextNode:function(e){var t=new we;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new Te;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){if(e.indexOf(`]]>`)!==-1)throw new M(O,`data contains "]]>"`);var t=new Ee;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Me;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new Se;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!i.test(e))throw new M(O,`not a valid xml name "`+e+`"`);var t=new Ae;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new xe,r=t.split(`:`),i=n.attributes=new I;return n.childNodes=new N,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new Se,r=t.split(`:`);return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},d(H,V);function xe(){this._nsMap={}}xe.prototype={nodeType:p,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||``},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=``+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===C?this.insertBefore(e,null):be(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||``},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=``+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new P(this,function(t){var n=[];return re(t,function(r){r!==t&&r.nodeType==p&&(e===`*`||r.tagName==e)&&n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new P(this,function(n){var r=[];return re(n,function(i){i!==n&&i.nodeType===p&&(e===`*`||i.namespaceURI===e)&&(t===`*`||i.localName==t)&&r.push(i)}),r})}},H.prototype.getElementsByTagName=xe.prototype.getElementsByTagName,H.prototype.getElementsByTagNameNS=xe.prototype.getElementsByTagNameNS,d(xe,V);function Se(){}Se.prototype.nodeType=m,d(Se,V);function Ce(){}Ce.prototype={data:``,substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw Error(E[D])},deleteData:function(e,t){this.replaceData(e,t,``)},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}},d(Ce,V);function we(){}we.prototype={nodeName:`#text`,nodeType:h,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},d(we,Ce);function Te(){}Te.prototype={nodeName:`#comment`,nodeType:b},d(Te,Ce);function Ee(){}Ee.prototype={nodeName:`#cdata-section`,nodeType:g},d(Ee,Ce);function De(){}De.prototype.nodeType=S,d(De,V);function Oe(){}Oe.prototype.nodeType=w,d(Oe,V);function ke(){}ke.prototype.nodeType=v,d(ke,V);function Ae(){}Ae.prototype.nodeType=_,d(Ae,V);function je(){}je.prototype.nodeName=`#document-fragment`,je.prototype.nodeType=C,d(je,V);function Me(){}Me.prototype.nodeType=y,d(Me,V);function Ne(){}Ne.prototype.serializeToString=function(e,t,n,r){return Pe.call(e,t,n,r)},V.prototype.toString=Pe;function Pe(e,t,n){var r=!!n&&!!n.requireWellFormed,i=[],a=this.nodeType==9&&this.documentElement||this,o=a.prefix,s=a.namespaceURI;if(s&&o==null){var o=a.lookupPrefix(s);if(o==null)var c=[{namespace:s,prefix:null}]}return W(this,i,e,t,c,r),i.join(``)}function Fe(e,t,n){var i=e.prefix||``,a=e.namespaceURI;if(!a||i===`xml`&&a===r.XML||a===r.XMLNS)return!1;for(var o=n.length;o--;){var s=n[o];if(s.prefix===i)return s.namespace!==a}return!0}function Ie(e,t,n,r){if(r&&!i.test(t))throw new M(j,`The attribute name "`+t+`" is not a valid XML QName`);e.push(` `,t,`="`,n.replace(/[<>&"\t\n\r]/g,ne),`"`)}function W(e,t,n,a,o,s){o||=[],ie(e,{ns:o,isHTML:n},{enter:function(e,n){var o=n.ns,c=n.isHTML;if(a)if(e=a(e),e){if(typeof e==`string`)return t.push(e),null}else return null;switch(e.nodeType){case p:var l=e.attributes,u=l.length,d=e.tagName;c=r.isHTML(e.namespaceURI)||c;var f=d;if(!c&&!e.prefix&&e.namespaceURI){for(var v,w=0;w<l.length;w++)if(l.item(w).name===`xmlns`){v=l.item(w).value;break}if(!v)for(var T=o.length-1;T>=0;T--){var E=o[T];if(E.prefix===``&&E.namespace===e.namespaceURI){v=E.namespace;break}}if(v!==e.namespaceURI)for(var T=o.length-1;T>=0;T--){var E=o[T];if(E.namespace===e.namespaceURI){E.prefix&&(f=E.prefix+`:`+d);break}}}if(s&&!i.test(f))throw new M(j,`The element name "`+f+`" is not a valid XML QName`);t.push(`<`,f);for(var D=o.slice(),O=0;O<u;O++){var k=l.item(O);k.prefix==`xmlns`?D.push({prefix:k.localName,namespace:k.value}):k.nodeName==`xmlns`&&D.push({prefix:``,namespace:k.value})}for(var O=0;O<u;O++){var k=l.item(O);if(Fe(k,c,D)){var A=k.prefix||``,N=k.namespaceURI;Ie(t,A?`xmlns:`+A:`xmlns`,N,s),D.push({prefix:A,namespace:N})}var P=a?a(k):k;P&&(typeof P==`string`?t.push(P):Ie(t,P.name,P.value,s))}if(d===f&&Fe(e,c,D)){var F=e.prefix||``,N=e.namespaceURI;Ie(t,F?`xmlns:`+F:`xmlns`,N,s),D.push({prefix:F,namespace:N})}var I=e.firstChild;if(I||c&&!/^(?:meta|link|img|br|hr|input)$/i.test(d)){if(t.push(`>`),c&&/^script$/i.test(d)){for(;I;)I.data?t.push(I.data):W(I,t,c,a,D.slice(),s),I=I.nextSibling;return t.push(`</`,d,`>`),null}return{ns:D,isHTML:c,tag:f}}else return t.push(`/>`),null;case x:case C:return{ns:o.slice(),isHTML:c,tag:null};case m:return Ie(t,e.name,e.value,s),null;case h:return t.push(e.data.replace(/[<&>]/g,ne)),null;case g:if(s&&e.data.indexOf(`]]>`)!==-1)throw new M(j,`The CDATASection data contains "]]>"`);return t.push(`<![CDATA[`,e.data.replace(/]]>/g,`]]]]><![CDATA[>`),`]]>`),null;case b:if(s&&e.data.indexOf(`-->`)!==-1)throw new M(j,`The comment node data contains "-->"`);return t.push(`<!--`,e.data,`-->`),null;case S:if(s){if(!i.test(e.name))throw new M(j,`The doctype name "`+e.name+`" is not a valid XML Name`);if(e.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(e.publicId))throw new M(j,`DocumentType publicId is not a valid PubidLiteral`);if(e.systemId&&!/^("[^"]*"|'[^']*')$/.test(e.systemId))throw new M(j,`DocumentType systemId is not a valid SystemLiteral`);if(e.internalSubset&&e.internalSubset.indexOf(`]>`)!==-1)throw new M(j,`DocumentType internalSubset contains "]>"`)}var L=e.publicId,R=e.systemId;if(t.push(`<!DOCTYPE `,e.name),L)t.push(` PUBLIC `,L),R&&R!=`.`&&t.push(` `,R),t.push(`>`);else if(R&&R!=`.`)t.push(` SYSTEM `,R,`>`);else{var z=e.internalSubset;z&&t.push(` [`,z,`]`),t.push(`>`)}return null;case y:if(s){if(!i.test(e.target)||e.target.indexOf(`:`)!==-1||e.target.toLowerCase()===`xml`)throw new M(j,`The processing instruction target "`+e.target+`" is not a valid XML NCName or is reserved`);if(e.data.indexOf(`?>`)!==-1)throw new M(j,`The ProcessingInstruction data contains "?>"`)}return t.push(`<?`,e.target,` `,e.data,`?>`),null;case _:if(s&&!i.test(e.nodeName))throw new M(j,`The entity reference name "`+e.nodeName+`" is not a valid XML Name`);return t.push(`&`,e.nodeName,`;`),null;default:return t.push(`??`,e.nodeName),null}},exit:function(e,n){n&&n.tag&&t.push(`</`,n.tag,`>`)}})}function Le(e,t,n){var r;return ie(t,null,{enter:function(t,i){var a=t.cloneNode(!1);return a.ownerDocument=e,a.parentNode=null,i===null?r=a:i.appendChild(a),t.nodeType===m||n?a:null}}),r}function Re(e,t,n){var r;return ie(t,null,{enter:function(t,i){var a=new t.constructor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=t[o];typeof s!=`object`&&s!=a[o]&&(a[o]=s)}t.childNodes&&(a.childNodes=new N),a.ownerDocument=e;var c=n;switch(a.nodeType){case p:var l=t.attributes,u=a.attributes=new I,d=l.length;u._ownerElement=a;for(var f=0;f<d;f++)a.setAttributeNode(Re(e,l.item(f),!0));break;case m:c=!0}return i===null?r=a:i.appendChild(a),c?a:null}}),r}function ze(e,t,n){e[t]=n}try{Object.defineProperty&&(Object.defineProperty(P.prototype,"length",{get:function(){return F(this),this.$$length}}),Object.defineProperty(V.prototype,"textContent",{get:function(){if(this.nodeType===p||this.nodeType===C){var e=[];return ie(this,null,{enter:function(t){if(t.nodeType===p||t.nodeType===C)return!0;if(t.nodeType===y||t.nodeType===b)return null;e.push(t.nodeValue)}}),e.join(``)}return this.nodeValue},set:function(e){switch(this.nodeType){case p:case C:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ze=function(e,t,n){e[`$$`+t]=n})}catch{}e.DocumentType=De,e.DOMException=M,e.DOMImplementation=te,e.Element=xe,e.Node=V,e.NodeList=N,e.walkDOM=ie,e.XMLSerializer=Ne})),F_=e.t((e=>{var t=N_().freeze;e.XML_ENTITIES=t({amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}),e.HTML_ENTITIES=t({Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:`∾̳`,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:`⁡`,Afr:`𝔄`,afr:`𝔞`,Agrave:`À`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,Alpha:`Α`,alpha:`α`,Amacr:`Ā`,amacr:`ā`,amalg:`⨿`,AMP:`&`,amp:`&`,And:`⩓`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,Aogon:`Ą`,aogon:`ą`,Aopf:`𝔸`,aopf:`𝕒`,ap:`≈`,apacir:`⩯`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:`⁡`,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:`𝒜`,ascr:`𝒶`,Assign:`≔`,ast:`*`,asymp:`≈`,asympeq:`≍`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,Backslash:`∖`,Barv:`⫧`,barvee:`⊽`,Barwed:`⌆`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,Bcy:`Б`,bcy:`б`,bdquo:`„`,becaus:`∵`,Because:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,Bernoullis:`ℬ`,Beta:`Β`,beta:`β`,beth:`ℶ`,between:`≬`,Bfr:`𝔅`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bNot:`⫭`,bnot:`⌐`,Bopf:`𝔹`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxbox:`⧉`,boxDL:`╗`,boxDl:`╖`,boxdL:`╕`,boxdl:`┐`,boxDR:`╔`,boxDr:`╓`,boxdR:`╒`,boxdr:`┌`,boxH:`═`,boxh:`─`,boxHD:`╦`,boxHd:`╤`,boxhD:`╥`,boxhd:`┬`,boxHU:`╩`,boxHu:`╧`,boxhU:`╨`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxUL:`╝`,boxUl:`╜`,boxuL:`╛`,boxul:`┘`,boxUR:`╚`,boxUr:`╙`,boxuR:`╘`,boxur:`└`,boxV:`║`,boxv:`│`,boxVH:`╬`,boxVh:`╫`,boxvH:`╪`,boxvh:`┼`,boxVL:`╣`,boxVl:`╢`,boxvL:`╡`,boxvl:`┤`,boxVR:`╠`,boxVr:`╟`,boxvR:`╞`,boxvr:`├`,bprime:`‵`,Breve:`˘`,breve:`˘`,brvbar:`¦`,Bscr:`ℬ`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,Bumpeq:`≎`,bumpeq:`≏`,Cacute:`Ć`,cacute:`ć`,Cap:`⋒`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,CapitalDifferentialD:`ⅅ`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,Cayleys:`ℭ`,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,CenterDot:`·`,centerdot:`·`,Cfr:`ℭ`,cfr:`𝔠`,CHcy:`Ч`,chcy:`ч`,check:`✓`,checkmark:`✓`,Chi:`Χ`,chi:`χ`,cir:`○`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,CircleDot:`⊙`,circledR:`®`,circledS:`Ⓢ`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,cirE:`⧃`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,clubs:`♣`,clubsuit:`♣`,Colon:`∷`,colon:`:`,Colone:`⩴`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,Congruent:`≡`,Conint:`∯`,conint:`∮`,ContourIntegral:`∮`,Copf:`ℂ`,copf:`𝕔`,coprod:`∐`,Coproduct:`∐`,COPY:`©`,copy:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,Cross:`⨯`,cross:`✗`,Cscr:`𝒞`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,Cup:`⋓`,cup:`∪`,cupbrcap:`⩈`,CupCap:`≍`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,Dagger:`‡`,dagger:`†`,daleth:`ℸ`,Darr:`↡`,dArr:`⇓`,darr:`↓`,dash:`‐`,Dashv:`⫤`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,Dcaron:`Ď`,dcaron:`ď`,Dcy:`Д`,dcy:`д`,DD:`ⅅ`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,DDotrahd:`⤑`,ddotseq:`⩷`,deg:`°`,Del:`∇`,Delta:`Δ`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:`𝔇`,dfr:`𝔡`,dHar:`⥥`,dharl:`⇃`,dharr:`⇂`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,diam:`⋄`,Diamond:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,DifferentialD:`ⅆ`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,DJcy:`Ђ`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,Dopf:`𝔻`,dopf:`𝕕`,Dot:`¨`,dot:`˙`,DotDot:`⃜`,doteq:`≐`,doteqdot:`≑`,DotEqual:`≐`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,Downarrow:`⇓`,downarrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,Dscr:`𝒟`,dscr:`𝒹`,DScy:`Ѕ`,dscy:`ѕ`,dsol:`⧶`,Dstrok:`Đ`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Џ`,dzcy:`џ`,dzigrarr:`⟿`,Eacute:`É`,eacute:`é`,easter:`⩮`,Ecaron:`Ě`,ecaron:`ě`,ecir:`≖`,Ecirc:`Ê`,ecirc:`ê`,ecolon:`≕`,Ecy:`Э`,ecy:`э`,eDDot:`⩷`,Edot:`Ė`,eDot:`≑`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,Efr:`𝔈`,efr:`𝔢`,eg:`⪚`,Egrave:`È`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,Element:`∈`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,Emacr:`Ē`,emacr:`ē`,empty:`∅`,emptyset:`∅`,EmptySmallSquare:`◻`,emptyv:`∅`,EmptyVerySmallSquare:`▫`,emsp:` `,emsp13:` `,emsp14:` `,ENG:`Ŋ`,eng:`ŋ`,ensp:` `,Eogon:`Ę`,eogon:`ę`,Eopf:`𝔼`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,Equal:`⩵`,equals:`=`,EqualTilde:`≂`,equest:`≟`,Equilibrium:`⇌`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erarr:`⥱`,erDot:`≓`,Escr:`ℰ`,escr:`ℯ`,esdot:`≐`,Esim:`⩳`,esim:`≂`,Eta:`Η`,eta:`η`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,Exists:`∃`,expectation:`ℰ`,ExponentialE:`ⅇ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,Fcy:`Ф`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,Ffr:`𝔉`,ffr:`𝔣`,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:`𝔽`,fopf:`𝕗`,ForAll:`∀`,forall:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:`ℱ`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,Fscr:`ℱ`,fscr:`𝒻`,gacute:`ǵ`,Gamma:`Γ`,gamma:`γ`,Gammad:`Ϝ`,gammad:`ϝ`,gap:`⪆`,Gbreve:`Ğ`,gbreve:`ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gcy:`Г`,gcy:`г`,Gdot:`Ġ`,gdot:`ġ`,gE:`≧`,ge:`≥`,gEl:`⪌`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,Gfr:`𝔊`,gfr:`𝔤`,Gg:`⋙`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gl:`≷`,gla:`⪥`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gnE:`≩`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:`𝔾`,gopf:`𝕘`,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,Gt:`≫`,GT:`>`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,Hacek:`ˇ`,hairsp:` `,half:`½`,hamilt:`ℋ`,HARDcy:`Ъ`,hardcy:`ъ`,hArr:`⇔`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,Hfr:`ℌ`,hfr:`𝔥`,HilbertSpace:`ℋ`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,Hopf:`ℍ`,hopf:`𝕙`,horbar:`―`,HorizontalLine:`─`,Hscr:`ℋ`,hscr:`𝒽`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:`⁃`,hyphen:`‐`,Iacute:`Í`,iacute:`í`,ic:`⁣`,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,Ifr:`ℑ`,ifr:`𝔦`,Igrave:`Ì`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,IJlig:`IJ`,ijlig:`ij`,Im:`ℑ`,Imacr:`Ī`,imacr:`ī`,image:`ℑ`,ImaginaryI:`ⅈ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,Implies:`⇒`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,Int:`∬`,int:`∫`,intcal:`⊺`,integers:`ℤ`,Integral:`∫`,intercal:`⊺`,Intersection:`⋂`,intlarhk:`⨗`,intprod:`⨼`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,IOcy:`Ё`,iocy:`ё`,Iogon:`Į`,iogon:`į`,Iopf:`𝕀`,iopf:`𝕚`,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,Iscr:`ℐ`,iscr:`𝒾`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:`𝔍`,jfr:`𝔧`,jmath:`ȷ`,Jopf:`𝕁`,jopf:`𝕛`,Jscr:`𝒥`,jscr:`𝒿`,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:`𝔎`,kfr:`𝔨`,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:`𝕂`,kopf:`𝕜`,Kscr:`𝒦`,kscr:`𝓀`,lAarr:`⇚`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,Lambda:`Λ`,lambda:`λ`,Lang:`⟪`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,Laplacetrf:`ℒ`,laquo:`«`,Larr:`↞`,lArr:`⇐`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,lAtail:`⤛`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lBarr:`⤎`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ļ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,Lcy:`Л`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,lE:`≦`,le:`≤`,LeftAngleBracket:`⟨`,LeftArrow:`←`,Leftarrow:`⇐`,leftarrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,leftarrowtail:`↢`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,LeftRightArrow:`↔`,Leftrightarrow:`⇔`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,leftthreetimes:`⋋`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,lEg:`⪋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:`𝔏`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lHar:`⥢`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,LJcy:`Љ`,ljcy:`љ`,Ll:`⋘`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,Lleftarrow:`⇚`,llhard:`⥫`,lltri:`◺`,Lmidot:`Ŀ`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnap:`⪉`,lnapprox:`⪉`,lnE:`≨`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,LongLeftArrow:`⟵`,Longleftarrow:`⟸`,longleftarrow:`⟵`,LongLeftRightArrow:`⟷`,Longleftrightarrow:`⟺`,longleftrightarrow:`⟷`,longmapsto:`⟼`,LongRightArrow:`⟶`,Longrightarrow:`⟹`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,Lopf:`𝕃`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,Lscr:`ℒ`,lscr:`𝓁`,Lsh:`↰`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,Lstrok:`Ł`,lstrok:`ł`,Lt:`≪`,LT:`<`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,ltrPar:`⦖`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:`𝕄`,mopf:`𝕞`,mp:`∓`,Mscr:`ℳ`,mscr:`𝓂`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,Ncy:`Н`,ncy:`н`,ndash:`–`,ne:`≠`,nearhk:`⤤`,neArr:`⇗`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
742
742
  `,nexist:`∄`,nexists:`∄`,Nfr:`𝔑`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,nGg:`⋙̸`,ngsim:`≵`,nGt:`≫⃒`,ngt:`≯`,ngtr:`≯`,nGtv:`≫̸`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,NJcy:`Њ`,njcy:`њ`,nlArr:`⇍`,nlarr:`↚`,nldr:`‥`,nlE:`≦̸`,nle:`≰`,nLeftarrow:`⇍`,nleftarrow:`↚`,nLeftrightarrow:`⇎`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nLl:`⋘̸`,nlsim:`≴`,nLt:`≪⃒`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nLtv:`≪̸`,nmid:`∤`,NoBreak:`⁠`,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,nopf:`𝕟`,Not:`⫬`,not:`¬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,notin:`∉`,notindot:`⋵̸`,notinE:`⋹̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nRightarrow:`⇏`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,Nscr:`𝒩`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,Ntilde:`Ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,Nu:`Ν`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvap:`≍⃒`,nVDash:`⊯`,nVdash:`⊮`,nvDash:`⊭`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvHarr:`⤄`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwarhk:`⤣`,nwArr:`⇖`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,Oacute:`Ó`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,Ocirc:`Ô`,ocirc:`ô`,Ocy:`О`,ocy:`о`,odash:`⊝`,Odblac:`Ő`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,OElig:`Œ`,oelig:`œ`,ofcir:`⦿`,Ofr:`𝔒`,ofr:`𝔬`,ogon:`˛`,Ograve:`Ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,Omacr:`Ō`,omacr:`ō`,Omega:`Ω`,omega:`ω`,Omicron:`Ο`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,Oopf:`𝕆`,oopf:`𝕠`,opar:`⦷`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,operp:`⦹`,oplus:`⊕`,Or:`⩔`,or:`∨`,orarr:`↻`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oS:`Ⓢ`,Oscr:`𝒪`,oscr:`ℴ`,Oslash:`Ø`,oslash:`ø`,osol:`⊘`,Otilde:`Õ`,otilde:`õ`,Otimes:`⨷`,otimes:`⊗`,otimesas:`⨶`,Ouml:`Ö`,ouml:`ö`,ovbar:`⌽`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,PartialD:`∂`,Pcy:`П`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,Pfr:`𝔓`,pfr:`𝔭`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,Pi:`Π`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,PlusMinus:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,Poincareplane:`ℌ`,pointint:`⨕`,Popf:`ℙ`,popf:`𝕡`,pound:`£`,Pr:`⪻`,pr:`≺`,prap:`⪷`,prcue:`≼`,prE:`⪳`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,Prime:`″`,prime:`′`,primes:`ℙ`,prnap:`⪹`,prnE:`⪵`,prnsim:`⋨`,prod:`∏`,Product:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,Proportion:`∷`,Proportional:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,Pscr:`𝒫`,pscr:`𝓅`,Psi:`Ψ`,psi:`ψ`,puncsp:` `,Qfr:`𝔔`,qfr:`𝔮`,qint:`⨌`,Qopf:`ℚ`,qopf:`𝕢`,qprime:`⁗`,Qscr:`𝒬`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,QUOT:`"`,quot:`"`,rAarr:`⇛`,race:`∽̱`,Racute:`Ŕ`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,Rang:`⟫`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,Rarr:`↠`,rArr:`⇒`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,Rarrtl:`⤖`,rarrtl:`↣`,rarrw:`↝`,rAtail:`⤜`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,RBarr:`⤐`,rBarr:`⤏`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,Rcy:`Р`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,Re:`ℜ`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,REG:`®`,reg:`®`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,rfisht:`⥽`,rfloor:`⌋`,Rfr:`ℜ`,rfr:`𝔯`,rHar:`⥤`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,RightAngleBracket:`⟩`,RightArrow:`→`,Rightarrow:`⇒`,rightarrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,rightarrowtail:`↣`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,rightthreetimes:`⋌`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:`‏`,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,Ropf:`ℝ`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,Rrightarrow:`⇛`,rsaquo:`›`,Rscr:`ℛ`,rscr:`𝓇`,Rsh:`↱`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,RuleDelayed:`⧴`,ruluhar:`⥨`,rx:`℞`,Sacute:`Ś`,sacute:`ś`,sbquo:`‚`,Sc:`⪼`,sc:`≻`,scap:`⪸`,Scaron:`Š`,scaron:`š`,sccue:`≽`,scE:`⪴`,sce:`⪰`,Scedil:`Ş`,scedil:`ş`,Scirc:`Ŝ`,scirc:`ŝ`,scnap:`⪺`,scnE:`⪶`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,Scy:`С`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,searhk:`⤥`,seArr:`⇘`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,Sfr:`𝔖`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,SHCHcy:`Щ`,shchcy:`щ`,SHcy:`Ш`,shcy:`ш`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,shortmid:`∣`,shortparallel:`∥`,ShortRightArrow:`→`,ShortUpArrow:`↑`,shy:`­`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,SmallCircle:`∘`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,SOFTcy:`Ь`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,Sopf:`𝕊`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,Sqrt:`√`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,Square:`□`,square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,squarf:`▪`,squf:`▪`,srarr:`→`,Sscr:`𝒮`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,Star:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,Sub:`⋐`,sub:`⊂`,subdot:`⪽`,subE:`⫅`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,Subset:`⋐`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,SubsetEqual:`⊆`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,SuchThat:`∋`,Sum:`∑`,sum:`∑`,sung:`♪`,Sup:`⋑`,sup:`⊃`,sup1:`¹`,sup2:`²`,sup3:`³`,supdot:`⪾`,supdsub:`⫘`,supE:`⫆`,supe:`⊇`,supedot:`⫄`,Superset:`⊃`,SupersetEqual:`⊇`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,Supset:`⋑`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swarhk:`⤦`,swArr:`⇙`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,Tab:` `,target:`⌖`,Tau:`Τ`,tau:`τ`,tbrk:`⎴`,Tcaron:`Ť`,tcaron:`ť`,Tcedil:`Ţ`,tcedil:`ţ`,Tcy:`Т`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,Tfr:`𝔗`,tfr:`𝔱`,there4:`∴`,Therefore:`∴`,therefore:`∴`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,ThickSpace:`  `,thinsp:` `,ThinSpace:` `,thkap:`≈`,thksim:`∼`,THORN:`Þ`,thorn:`þ`,Tilde:`∼`,tilde:`˜`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,Topf:`𝕋`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,TRADE:`™`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,TripleDot:`⃛`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,Tscr:`𝒯`,tscr:`𝓉`,TScy:`Ц`,tscy:`ц`,TSHcy:`Ћ`,tshcy:`ћ`,Tstrok:`Ŧ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Uacute:`Ú`,uacute:`ú`,Uarr:`↟`,uArr:`⇑`,uarr:`↑`,Uarrocir:`⥉`,Ubrcy:`Ў`,ubrcy:`ў`,Ubreve:`Ŭ`,ubreve:`ŭ`,Ucirc:`Û`,ucirc:`û`,Ucy:`У`,ucy:`у`,udarr:`⇅`,Udblac:`Ű`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,Ufr:`𝔘`,ufr:`𝔲`,Ugrave:`Ù`,ugrave:`ù`,uHar:`⥣`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,Umacr:`Ū`,umacr:`ū`,uml:`¨`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,uogon:`ų`,Uopf:`𝕌`,uopf:`𝕦`,UpArrow:`↑`,Uparrow:`⇑`,uparrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,Updownarrow:`⇕`,updownarrow:`↕`,UpEquilibrium:`⥮`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,upsi:`υ`,upsih:`ϒ`,Upsilon:`Υ`,upsilon:`υ`,UpTee:`⊥`,UpTeeArrow:`↥`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,Uring:`Ů`,uring:`ů`,urtri:`◹`,Uscr:`𝒰`,uscr:`𝓊`,utdot:`⋰`,Utilde:`Ũ`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,Uuml:`Ü`,uuml:`ü`,uwangle:`⦧`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,vArr:`⇕`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,Vbar:`⫫`,vBar:`⫨`,vBarv:`⫩`,Vcy:`В`,vcy:`в`,VDash:`⊫`,Vdash:`⊩`,vDash:`⊨`,vdash:`⊢`,Vdashl:`⫦`,Vee:`⋁`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,Verbar:`‖`,verbar:`|`,Vert:`‖`,vert:`|`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,Vopf:`𝕍`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,Vscr:`𝒱`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,Vvdash:`⊪`,vzigzag:`⦚`,Wcirc:`Ŵ`,wcirc:`ŵ`,wedbar:`⩟`,Wedge:`⋀`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,Wfr:`𝔚`,wfr:`𝔴`,Wopf:`𝕎`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,Wscr:`𝒲`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,Xfr:`𝔛`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,Xi:`Ξ`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,Xopf:`𝕏`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,Xscr:`𝒳`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,Yacute:`Ý`,yacute:`ý`,YAcy:`Я`,yacy:`я`,Ycirc:`Ŷ`,ycirc:`ŷ`,Ycy:`Ы`,ycy:`ы`,yen:`¥`,Yfr:`𝔜`,yfr:`𝔶`,YIcy:`Ї`,yicy:`ї`,Yopf:`𝕐`,yopf:`𝕪`,Yscr:`𝒴`,yscr:`𝓎`,YUcy:`Ю`,yucy:`ю`,Yuml:`Ÿ`,yuml:`ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`З`,zcy:`з`,Zdot:`Ż`,zdot:`ż`,zeetrf:`ℨ`,ZeroWidthSpace:`​`,Zeta:`Ζ`,zeta:`ζ`,Zfr:`ℨ`,zfr:`𝔷`,ZHcy:`Ж`,zhcy:`ж`,zigrarr:`⇝`,Zopf:`ℤ`,zopf:`𝕫`,Zscr:`𝒵`,zscr:`𝓏`,zwj:`‍`,zwnj:`‌`}),e.entityMap=e.HTML_ENTITIES})),I_=e.t((e=>{var t=N_().NAMESPACE,n=N_().tagNamePattern,r=0,i=1,a=2,o=3,s=4,c=5,l=6,u=7;function d(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,d)}d.prototype=Error(),d.prototype.name=d.name;function f(){}f.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),y(t,t={}),p(e,t,n,r,this.errorHandler),r.endDocument()}};function p(e,r,i,a,o){function s(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}else return String.fromCharCode(e)}function c(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(i,t)?i[t]:t.charAt(0)===`#`?s(parseInt(t.substr(1).replace(`x`,`0x`))):(o.error(`entity not found:`+e),e)}function l(t){if(t>E){var n=e.substring(E,t).replace(/&#?\w+;/g,c);C&&u(E),a.characters(n,0,t-E),E=t}}function u(t,n){for(;t>=p&&(n=y.exec(e));)f=n.index,p=f+n[0].length,C.lineNumber++;C.columnNumber=t-f+1}for(var f=0,p=0,y=/.*(?:\r\n?|\n)|.*$/g,C=a.locator,w=[{currentNSMap:r}],T={},E=0;;){try{var D=e.indexOf(`<`,E);if(D<0){if(!e.substr(E).match(/^\s*$/)){var O=a.doc,k=O.createTextNode(e.substr(E));O.appendChild(k),a.currentElement=k}return}switch(D>E&&l(D),e.charAt(D+1)){case`/`:var A=e.indexOf(`>`,D+3),j=e.substring(D+2,A).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,`$1`),M=w.pop();A<0?(j=e.substring(D+2).replace(/[\s<].*/,``),o.error(`end tag name: `+j+` is not complete:`+M.tagName),A=D+1+j.length):j.match(/\s</)?(j=j.replace(/[\s<].*/,``),o.error(`end tag name: `+j+` maybe not complete`),A=D+1+j.length):/[ \t\n\r]/.test(j)&&n.test(j.split(/[ \t\n\r]/)[0])&&o.error(`end tag name is followed by whitespace and trailing content: "`+j+`"`);var N=M.localNSMap,P=M.tagName==j;if(P||M.tagName&&M.tagName.toLowerCase()==j.toLowerCase()){if(a.endElement(M.uri,M.localName,j),N)for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&a.endPrefixMapping(F);P||o.fatalError(`end tag name: `+j+` is not match the current start tagName:`+M.tagName)}else w.push(M);A++;break;case`?`:C&&u(D),A=x(e,D,a);break;case`!`:C&&u(D),A=b(e,D,a,o);break;default:C&&u(D);var I=new S,L=w[w.length-1].currentNSMap,A=h(e,D,I,L,c,o),R=I.length;if(!I.closed&&v(e,A,I.tagName,T)&&(I.closed=!0,i.nbsp||o.warning(`unclosed xml attribute`)),C&&R){for(var z=m(C,{}),B=0;B<R;B++){var ee=I[B];u(ee.offset),ee.locator=m(C,{})}a.locator=z,g(I,a,L)&&w.push(I),a.locator=C}else g(I,a,L)&&w.push(I);t.isHTML(I.uri)&&!I.closed?A=_(e,A,I.tagName,c,a):A++}}catch(e){if(e instanceof d)throw e;o.error(`element parse error: `+e),A=-1}A>E?E=A:l(Math.max(D,E)+1)}}function m(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function h(e,n,d,f,p,m){function h(e,t,n){d.attributeNames.hasOwnProperty(e)&&m.fatalError(`Attribute `+e+` redefined`),d.addValue(e,t.replace(/[\t\n\r]/g,` `).replace(/&#?\w+;/g,p),n)}for(var g,_,v=++n,y=r;;){var b=e.charAt(v);if(y===r&&b===`<`)throw Error(`unexpected < in tag name: `+e.slice(n,v));switch(b){case`=`:if(y===i)g=e.slice(n,v),y=o;else if(y===a)y=o;else throw Error(`attribute equal must after attrName`);break;case`'`:case`"`:if(y===o||y===i)if(y===i&&(m.warning(`attribute value must after "="`),g=e.slice(n,v)),n=v+1,v=e.indexOf(b,n),v>0)_=e.slice(n,v),h(g,_,n-1),y=c;else throw Error(`attribute value no end '`+b+`' match`);else if(y==s)_=e.slice(n,v),h(g,_,n),m.warning(`attribute "`+g+`" missed start quot(`+b+`)!!`),n=v+1,y=c;else throw Error(`attribute value must after "="`);break;case`/`:switch(y){case r:d.setTagName(e.slice(n,v));case c:case l:case u:y=u,d.closed=!0;case s:case i:break;case a:d.closed=!0;break;default:throw Error(`attribute invalid close char('/')`)}break;case``:return m.error(`unexpected end of input`),y==r&&d.setTagName(e.slice(n,v)),v;case`>`:switch(y){case r:d.setTagName(e.slice(n,v));case c:case l:case u:break;case s:case i:_=e.slice(n,v),_.slice(-1)===`/`&&(d.closed=!0,_=_.slice(0,-1));case a:y===a&&(_=g),y==s?(m.warning(`attribute "`+_+`" missed quot(")!`),h(g,_,n)):((!t.isHTML(f[``])||!_.match(/^(?:disabled|checked|selected)$/i))&&m.warning(`attribute "`+_+`" missed value!! "`+_+`" instead!!`),h(_,_,n));break;case o:throw Error(`attribute value missed!!`)}return v;case`€`:b=` `;default:if(b<=` `)switch(y){case r:d.setTagName(e.slice(n,v)),y=l;break;case i:g=e.slice(n,v),y=a;break;case s:var _=e.slice(n,v);m.warning(`attribute "`+_+`" missed quot(")!!`),h(g,_,n);case c:y=l;break}else switch(y){case a:d.tagName,(!t.isHTML(f[``])||!g.match(/^(?:disabled|checked|selected)$/i))&&m.warning(`attribute "`+g+`" missed value!! "`+g+`" instead2!!`),h(g,g,n),n=v,y=i;break;case c:m.warning(`attribute space is required"`+g+`"!!`);case l:y=i,n=v;break;case o:y=s,n=v;break;case u:throw Error(`elements closed character '/' and '>' must be connected to`)}}v++}}function g(e,n,r){for(var i=e.tagName,a=null,o=e.length;o--;){var s=e[o],c=s.qName,l=s.value,u=c.indexOf(`:`);if(u>0)var d=s.prefix=c.slice(0,u),f=c.slice(u+1),p=d===`xmlns`&&f;else f=c,d=null,p=c===`xmlns`&&``;s.localName=f,p!==!1&&(a??(a={},r=Object.create(r)),r[p]=a[p]=l,s.uri=t.XMLNS,n.startPrefixMapping(p,l))}for(var o=e.length;o--;){s=e[o];var d=s.prefix;d&&(d===`xml`&&(s.uri=t.XML),d!==`xmlns`&&(s.uri=r[d||``]))}var u=i.indexOf(`:`);u>0?(d=e.prefix=i.slice(0,u),f=e.localName=i.slice(u+1)):(d=null,f=e.localName=i);var m=e.uri=r[d||``];if(n.startElement(m,f,i,e),e.closed){if(n.endElement(m,f,i),a)for(d in a)Object.prototype.hasOwnProperty.call(a,d)&&n.endPrefixMapping(d)}else return e.currentNSMap=r,e.localNSMap=a,!0}function _(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf(`</`+n+`>`,t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(n)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,r),i.characters(o,0,o.length),a)}return t+1}function v(e,t,n,r){var i=r[n];return i??(i=e.lastIndexOf(`</`+n+`>`),i<t&&(i=e.lastIndexOf(`</`+n)),r[n]=i),i<t}function y(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function b(e,t,n,r){switch(e.charAt(t+2)){case`-`:if(e.charAt(t+3)===`-`){var i=e.indexOf(`-->`,t+4);return i>t?(n.comment(e,t+4,i-t-4),i+3):(r.error(`Unclosed comment`),-1)}else return-1;default:if(e.substr(t+3,6)==`CDATA[`){var i=e.indexOf(`]]>`,t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var a=C(e,t),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],c=!1,l=!1;o>3&&(/^public$/i.test(a[2][0])?(c=a[3][0],l=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(l=a[3][0]));var u=a[o-1];return n.startDTD(s,c,l),n.endDTD(),u.index+u[0].length}}return-1}function x(e,t,n){var r=e.indexOf(`?>`,t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function S(){this.attributeNames={}}S.prototype={setTagName:function(e){if(!n.test(e))throw Error(`invalid tagName:`+e);this.tagName=e},addValue:function(e,t,r){if(!n.test(e))throw Error(`invalid attribute:`+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};function C(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=t,i.exec(e);n=i.exec(e);)if(r.push(n),n[1])return r}e.XMLReader=f,e.ParseError=d})),L_=e.t((e=>{var t=N_(),n=P_(),r=F_(),i=I_(),a=n.DOMImplementation,o=t.NAMESPACE,s=i.ParseError,c=i.XMLReader;function l(e){return e.replace(/\r[\n\u0085]/g,`
743
743
  `).replace(/[\r\u0085\u2028]/g,`
744
744
  `)}function u(e){this.options=e||{locator:{}}}u.prototype.parseFromString=function(e,t){var n=this.options,i=new c,a=n.domBuilder||new f,s=n.errorHandler,u=n.locator,p=n.xmlns||{},m=/\/x?html?$/.test(t),h=m?r.HTML_ENTITIES:r.XML_ENTITIES;u&&a.setDocumentLocator(u),i.errorHandler=d(s,a,u),i.domBuilder=n.domBuilder||a,m&&(p[``]=o.HTML),p.xml=p.xml||o.XML;var g=n.normalizeLineEndings||l;return e&&typeof e==`string`?i.parse(g(e),p,h):i.errorHandler.error(`invalid doc source`),a.doc};function d(e,t,n){if(!e){if(t instanceof f)return t;e=t}var r={},i=e instanceof Function;n||={};function a(t){var a=e[t];!a&&i&&(a=e.length==2?function(n){e(t,n)}:e),r[t]=a&&function(e){a(`[xmldom `+t+`] `+e+m(n))}||function(){}}return a(`warning`),a(`error`),a(`fatalError`),r}function f(){this.cdata=!1}function p(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}f.prototype={startDocument:function(){this.doc=new a().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),o=r.length;g(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var s=0;s<o;s++){var e=r.getURI(s),c=r.getValue(s),n=r.getQName(s),l=i.createAttributeNS(e,n);this.locator&&p(r.getLocator(s),l),l.value=l.nodeValue=c,a.setAttributeNode(l)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName,this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&p(this.locator,n),g(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=h.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else var r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&p(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=h.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&p(this.locator,r),g(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&p(this.locator,i),g(this,i),this.doc.doctype=i}},warning:function(e){console.warn(`[xmldom warning] `+e,m(this.locator))},error:function(e){console.error(`[xmldom error] `+e,m(this.locator))},fatalError:function(e){throw new s(e,this.locator)}};function m(e){if(e)return`
745
745
  @`+(e.systemId||``)+`#[line:`+e.lineNumber+`,col:`+e.columnNumber+`]`}function h(e,t,n){return typeof e==`string`?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+``:e}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(e){f.prototype[e]=function(){return null}});function g(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}e.__DOMHandler=f,e.normalizeLineEndings=l,e.DOMParser=u})),R_=e.t((e=>{var t=P_();e.DOMImplementation=t.DOMImplementation,e.XMLSerializer=t.XMLSerializer,e.DOMParser=L_().DOMParser})),z_=e.t((e=>{var t=R_(),n=P_();function r(e){var n=null,r=new t.DOMParser({errorHandler:function(e,t){n={level:e,message:t}}}).parseFromString(e);if(n===null)return r;throw Error(n.level+`: `+n.message)}e.parseFromString=r,e.Node=n.Node})),B_=e.t((t=>{var n=D_(),r=(Gg(),e.i(Wg)),i=z_(),a=M_(),o=a.Element;t.readString=c;var s=i.Node;function c(e,t){t||={};try{var c=i.parseFromString(e,`text/xml`)}catch(e){return n.reject(e)}if(c.documentElement.tagName===`parsererror`)return n.resolve(Error(c.documentElement.textContent));function l(e){switch(e.nodeType){case s.ELEMENT_NODE:return u(e);case s.TEXT_NODE:return a.text(e.nodeValue)}}function u(e){var t=d(e),n=[];r.forEach(e.childNodes,function(e){var t=l(e);t&&n.push(t)});var i=Object.create(null);return r.forEach(e.attributes,function(e){i[d(e)]=e.value}),new o(t,i,n)}function d(e){if(e.namespaceURI){var n=t[e.namespaceURI];return(n?n+`:`:`{`+e.namespaceURI+`}`)+e.localName}else return e.localName}return n.resolve(l(c.documentElement))}})),V_=e.t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c=[].slice,l={}.hasOwnProperty;e=function(){var e,t,n,r,i,o=arguments[0];if(i=2<=arguments.length?c.call(arguments,1):[],a(Object.assign))Object.assign.apply(null,arguments);else for(e=0,n=i.length;e<n;e++)if(r=i[e],r!=null)for(t in r)l.call(r,t)&&(o[t]=r[t]);return o},a=function(e){return!!e&&Object.prototype.toString.call(e)===`[object Function]`},o=function(e){var t;return!!e&&((t=typeof e)==`function`||t===`object`)},r=function(e){return a(Array.isArray)?Array.isArray(e):Object.prototype.toString.call(e)===`[object Array]`},i=function(e){var t;if(r(e))return!e.length;for(t in e)if(l.call(e,t))return!1;return!0},s=function(e){var t,n;return o(e)&&(n=Object.getPrototypeOf(e))&&(t=n.constructor)&&typeof t==`function`&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},n=function(e){return a(e.valueOf)?e.valueOf():e},t.exports.assign=e,t.exports.isFunction=a,t.exports.isObject=o,t.exports.isArray=r,t.exports.isEmpty=i,t.exports.isPlainObject=s,t.exports.getValue=n}).call(e)})),H_=e.t(((e,t)=>{(function(){t.exports=(function(){function e(e,t,n){if(this.options=e.options,this.stringify=e.stringify,this.parent=e,t==null)throw Error(`Missing attribute name. `+this.debugInfo(t));if(n==null)throw Error(`Missing attribute value. `+this.debugInfo(t));this.name=this.stringify.attName(t),this.value=this.stringify.attValue(n)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(e){return this.options.writer.set(e).attribute(this)},e.prototype.debugInfo=function(e){return e||=this.name,e==null?`parent: <`+this.parent.name+`>`:`attribute: {`+e+`}, parent: <`+this.parent.name+`>`},e})()}).call(e)})),U_=e.t(((e,t)=>{(function(){var e,n,r,i,a,o,s=function(e,t){for(var n in t)c.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},c={}.hasOwnProperty;o=V_(),a=o.isObject,i=o.isFunction,r=o.getValue,n=nv(),e=H_(),t.exports=(function(t){s(n,t);function n(e,t,r){if(n.__super__.constructor.call(this,e),t==null)throw Error(`Missing element name. `+this.debugInfo());this.name=this.stringify.eleName(t),this.attributes={},r!=null&&this.attribute(r),e.isDocument&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this)}return n.prototype.clone=function(){var e,t,n=Object.create(this),r;for(t in n.isRoot&&(n.documentObject=null),n.attributes={},r=this.attributes,r)c.call(r,t)&&(e=r[t],n.attributes[t]=e.clone());return n.children=[],this.children.forEach(function(e){var t=e.clone();return t.parent=n,n.children.push(t)}),n},n.prototype.attribute=function(t,n){var o,s;if(t!=null&&(t=r(t)),a(t))for(o in t)c.call(t,o)&&(s=t[o],this.attribute(o,s));else i(n)&&(n=n.apply()),(!this.options.skipNullAttributes||n!=null)&&(this.attributes[t]=new e(this,t,n));return this},n.prototype.removeAttribute=function(e){var t,n,i;if(e==null)throw Error(`Missing attribute name. `+this.debugInfo());if(e=r(e),Array.isArray(e))for(n=0,i=e.length;n<i;n++)t=e[n],delete this.attributes[t];else delete this.attributes[e];return this},n.prototype.toString=function(e){return this.options.writer.set(e).element(this)},n.prototype.att=function(e,t){return this.attribute(e,t)},n.prototype.a=function(e,t){return this.attribute(e,t)},n})(n)}).call(e)})),W_=e.t(((e,t)=>{(function(){var e,n=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=nv(),t.exports=(function(e){n(t,e);function t(e,n){if(t.__super__.constructor.call(this,e),n==null)throw Error(`Missing CDATA text. `+this.debugInfo());this.text=this.stringify.cdata(n)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)},t})(e)}).call(e)})),G_=e.t(((e,t)=>{(function(){var e,n=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=nv(),t.exports=(function(e){n(t,e);function t(e,n){if(t.__super__.constructor.call(this,e),n==null)throw Error(`Missing comment text. `+this.debugInfo());this.text=this.stringify.comment(n)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).comment(this)},t})(e)}).call(e)})),K_=e.t(((e,t)=>{(function(){var e,n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=V_().isObject,e=nv(),t.exports=(function(e){r(t,e);function t(e,r,i,a){var o;t.__super__.constructor.call(this,e),n(r)&&(o=r,r=o.version,i=o.encoding,a=o.standalone),r||=`1.0`,this.version=this.stringify.xmlVersion(r),i!=null&&(this.encoding=this.stringify.xmlEncoding(i)),a!=null&&(this.standalone=this.stringify.xmlStandalone(a))}return t.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},t})(e)}).call(e)})),q_=e.t(((e,t)=>{(function(){var e,n=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=nv(),t.exports=(function(e){n(t,e);function t(e,n,r,i,a,o){if(t.__super__.constructor.call(this,e),n==null)throw Error(`Missing DTD element name. `+this.debugInfo());if(r==null)throw Error(`Missing DTD attribute name. `+this.debugInfo(n));if(!i)throw Error(`Missing DTD attribute type. `+this.debugInfo(n));if(!a)throw Error(`Missing DTD attribute default. `+this.debugInfo(n));if(a.indexOf(`#`)!==0&&(a=`#`+a),!a.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error(`Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. `+this.debugInfo(n));if(o&&!a.match(/^(#FIXED|#DEFAULT)$/))throw Error(`Default value only applies to #FIXED or #DEFAULT. `+this.debugInfo(n));this.elementName=this.stringify.eleName(n),this.attributeName=this.stringify.attName(r),this.attributeType=this.stringify.dtdAttType(i),this.defaultValue=this.stringify.dtdAttDefault(o),this.defaultValueType=a}return t.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)},t})(e)}).call(e)})),J_=e.t(((e,t)=>{(function(){var e,n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=V_().isObject,e=nv(),t.exports=(function(e){r(t,e);function t(e,r,i,a){if(t.__super__.constructor.call(this,e),i==null)throw Error(`Missing DTD entity name. `+this.debugInfo(i));if(a==null)throw Error(`Missing DTD entity value. `+this.debugInfo(i));if(this.pe=!!r,this.name=this.stringify.eleName(i),!n(a))this.value=this.stringify.dtdEntityValue(a);else{if(!a.pubID&&!a.sysID)throw Error(`Public and/or system identifiers are required for an external entity. `+this.debugInfo(i));if(a.pubID&&!a.sysID)throw Error(`System identifier is required for a public external entity. `+this.debugInfo(i));if(a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID)),a.nData!=null&&(this.nData=this.stringify.dtdNData(a.nData)),this.pe&&this.nData)throw Error(`Notation declaration is not allowed in a parameter entity. `+this.debugInfo(i))}}return t.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},t})(e)}).call(e)})),Y_=e.t(((e,t)=>{(function(){var e,n=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=nv(),t.exports=(function(e){n(t,e);function t(e,n,r){if(t.__super__.constructor.call(this,e),n==null)throw Error(`Missing DTD element name. `+this.debugInfo());r||=`(#PCDATA)`,Array.isArray(r)&&(r=`(`+r.join(`,`)+`)`),this.name=this.stringify.eleName(n),this.value=this.stringify.dtdElementValue(r)}return t.prototype.toString=function(e){return this.options.writer.set(e).dtdElement(this)},t})(e)}).call(e)})),X_=e.t(((e,t)=>{(function(){var e,n=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=nv(),t.exports=(function(e){n(t,e);function t(e,n,r){if(t.__super__.constructor.call(this,e),n==null)throw Error(`Missing DTD notation name. `+this.debugInfo(n));if(!r.pubID&&!r.sysID)throw Error(`Public or system identifiers are required for an external entity. `+this.debugInfo(n));this.name=this.stringify.eleName(n),r.pubID!=null&&(this.pubID=this.stringify.dtdPubID(r.pubID)),r.sysID!=null&&(this.sysID=this.stringify.dtdSysID(r.sysID))}return t.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)},t})(e)}).call(e)})),Z_=e.t(((e,t)=>{(function(){var e,n,r,i,a,o,s=function(e,t){for(var n in t)c.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},c={}.hasOwnProperty;o=V_().isObject,a=nv(),e=q_(),r=J_(),n=Y_(),i=X_(),t.exports=(function(t){s(a,t);function a(e,t,n){var r,i;a.__super__.constructor.call(this,e),this.name=`!DOCTYPE`,this.documentObject=e,o(t)&&(r=t,t=r.pubID,n=r.sysID),n??(i=[t,n],n=i[0],t=i[1]),t!=null&&(this.pubID=this.stringify.dtdPubID(t)),n!=null&&(this.sysID=this.stringify.dtdSysID(n))}return a.prototype.element=function(e,t){var r=new n(this,e,t);return this.children.push(r),this},a.prototype.attList=function(t,n,r,i,a){var o=new e(this,t,n,r,i,a);return this.children.push(o),this},a.prototype.entity=function(e,t){var n=new r(this,!1,e,t);return this.children.push(n),this},a.prototype.pEntity=function(e,t){var n=new r(this,!0,e,t);return this.children.push(n),this},a.prototype.notation=function(e,t){var n=new i(this,e,t);return this.children.push(n),this},a.prototype.toString=function(e){return this.options.writer.set(e).docType(this)},a.prototype.ele=function(e,t){return this.element(e,t)},a.prototype.att=function(e,t,n,r,i){return this.attList(e,t,n,r,i)},a.prototype.ent=function(e,t){return this.entity(e,t)},a.prototype.pent=function(e,t){return this.pEntity(e,t)},a.prototype.not=function(e,t){return this.notation(e,t)},a.prototype.up=function(){return this.root()||this.documentObject},a})(a)}).call(e)})),Q_=e.t(((e,t)=>{(function(){var e,n=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=nv(),t.exports=(function(e){n(t,e);function t(e,n){if(t.__super__.constructor.call(this,e),n==null)throw Error(`Missing raw text. `+this.debugInfo());this.value=this.stringify.raw(n)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).raw(this)},t})(e)}).call(e)})),$_=e.t(((e,t)=>{(function(){var e,n=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=nv(),t.exports=(function(e){n(t,e);function t(e,n){if(t.__super__.constructor.call(this,e),n==null)throw Error(`Missing element text. `+this.debugInfo());this.value=this.stringify.eleText(n)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).text(this)},t})(e)}).call(e)})),ev=e.t(((e,t)=>{(function(){var e,n=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=nv(),t.exports=(function(e){n(t,e);function t(e,n,r){if(t.__super__.constructor.call(this,e),n==null)throw Error(`Missing instruction target. `+this.debugInfo());this.target=this.stringify.insTarget(n),r&&(this.value=this.stringify.insValue(r))}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)},t})(e)}).call(e)})),tv=e.t(((e,t)=>{(function(){var e,n=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=nv(),t.exports=(function(e){n(t,e);function t(e){t.__super__.constructor.call(this,e),this.isDummy=!0}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return``},t})(e)}).call(e)})),nv=e.t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h={}.hasOwnProperty;m=V_(),p=m.isObject,f=m.isFunction,d=m.isEmpty,u=m.getValue,o=null,e=null,n=null,r=null,i=null,c=null,l=null,s=null,a=null,t.exports=(function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],o||(o=U_(),e=W_(),n=G_(),r=K_(),i=Z_(),c=Q_(),l=$_(),s=ev(),a=tv())}return t.prototype.element=function(e,t,n){var r,i,a,o,s,c=null,l,m,g,_,v;if(t===null&&n==null&&(g=[{},null],t=g[0],n=g[1]),t??={},t=u(t),p(t)||(_=[t,n],n=_[0],t=_[1]),e!=null&&(e=u(e)),Array.isArray(e))for(a=0,l=e.length;a<l;a++)i=e[a],c=this.element(i);else if(f(e))c=this.element(e.apply());else if(p(e)){for(s in e)if(h.call(e,s))if(v=e[s],f(v)&&(v=v.apply()),p(v)&&d(v)&&(v=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&s.indexOf(this.stringify.convertAttKey)===0)c=this.attribute(s.substr(this.stringify.convertAttKey.length),v);else if(!this.options.separateArrayItems&&Array.isArray(v))for(o=0,m=v.length;o<m;o++)i=v[o],r={},r[s]=i,c=this.element(r);else p(v)?(c=this.element(s),c.element(v)):c=this.element(s,v)}else c=this.options.skipNullNodes&&n===null?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&e.indexOf(this.stringify.convertTextKey)===0?this.text(n):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&e.indexOf(this.stringify.convertCDataKey)===0?this.cdata(n):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&e.indexOf(this.stringify.convertCommentKey)===0?this.comment(n):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&e.indexOf(this.stringify.convertRawKey)===0?this.raw(n):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&e.indexOf(this.stringify.convertPIKey)===0?this.instruction(e.substr(this.stringify.convertPIKey.length),n):this.node(e,t,n);if(c==null)throw Error(`Could not create any elements with: `+e+`. `+this.debugInfo());return c},t.prototype.insertBefore=function(e,t,n){var r,i,a;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(e));return i=this.parent.children.indexOf(this),a=this.parent.children.splice(i),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,a),r},t.prototype.insertAfter=function(e,t,n){var r,i,a;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(e));return i=this.parent.children.indexOf(this),a=this.parent.children.splice(i+1),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,a),r},t.prototype.remove=function(){var e;if(this.isRoot)throw Error(`Cannot remove the root element. `+this.debugInfo());return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1]),this.parent},t.prototype.node=function(e,t,n){var r,i;return e!=null&&(e=u(e)),t||={},t=u(t),p(t)||(i=[t,n],n=i[0],t=i[1]),r=new o(this,e,t),n!=null&&r.text(n),this.children.push(r),r},t.prototype.text=function(e){var t=new l(this,e);return this.children.push(t),this},t.prototype.cdata=function(t){var n=new e(this,t);return this.children.push(n),this},t.prototype.comment=function(e){var t=new n(this,e);return this.children.push(t),this},t.prototype.commentBefore=function(e){var t=this.parent.children.indexOf(this),n=this.parent.children.splice(t);return this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.commentAfter=function(e){var t=this.parent.children.indexOf(this),n=this.parent.children.splice(t+1);return this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.raw=function(e){var t=new c(this,e);return this.children.push(t),this},t.prototype.dummy=function(){var e=new a(this);return this.children.push(e),e},t.prototype.instruction=function(e,t){var n,r,i,a,o;if(e!=null&&(e=u(e)),t!=null&&(t=u(t)),Array.isArray(e))for(a=0,o=e.length;a<o;a++)n=e[a],this.instruction(n);else if(p(e))for(n in e)h.call(e,n)&&(r=e[n],this.instruction(n,r));else f(t)&&(t=t.apply()),i=new s(this,e,t),this.children.push(i);return this},t.prototype.instructionBefore=function(e,t){var n=this.parent.children.indexOf(this),r=this.parent.children.splice(n);return this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.instructionAfter=function(e,t){var n=this.parent.children.indexOf(this),r=this.parent.children.splice(n+1);return this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.declaration=function(e,t,n){var i=this.document(),a=new r(i,e,t,n);return i.children[0]instanceof r?i.children[0]=a:i.children.unshift(a),i.root()||i},t.prototype.doctype=function(e,t){var n,r=this.document(),a=new i(r,e,t),o,s,c,l,u,d=r.children,f;for(o=s=0,l=d.length;s<l;o=++s)if(n=d[o],n instanceof i)return r.children[o]=a,a;for(f=r.children,o=c=0,u=f.length;c<u;o=++c)if(n=f[o],n.isRoot)return r.children.splice(o,0,a),a;return r.children.push(a),a},t.prototype.up=function(){if(this.isRoot)throw Error(`The root node has no parent. Use doc() if you need to get the document object.`);return this.parent},t.prototype.root=function(){for(var e=this;e;)if(e.isDocument)return e.rootObject;else if(e.isRoot)return e;else e=e.parent},t.prototype.document=function(){for(var e=this;e;)if(e.isDocument)return e;else e=e.parent},t.prototype.end=function(e){return this.document().end(e)},t.prototype.prev=function(){for(var e=this.parent.children.indexOf(this);e>0&&this.parent.children[e-1].isDummy;)--e;if(e<1)throw Error(`Already at the first node. `+this.debugInfo());return this.parent.children[e-1]},t.prototype.next=function(){for(var e=this.parent.children.indexOf(this);e<this.parent.children.length-1&&this.parent.children[e+1].isDummy;)e+=1;if(e===-1||e===this.parent.children.length-1)throw Error(`Already at the last node. `+this.debugInfo());return this.parent.children[e+1]},t.prototype.importDocument=function(e){var t=e.root().clone();return t.parent=this,t.isRoot=!1,this.children.push(t),this},t.prototype.debugInfo=function(e){return e||=this.name,e==null&&!this.parent?.name?``:e==null?`parent: <`+this.parent.name+`>`:this.parent?.name?`node: <`+e+`>, parent: <`+this.parent.name+`>`:`node: <`+e+`>`},t.prototype.ele=function(e,t,n){return this.element(e,t,n)},t.prototype.nod=function(e,t,n){return this.node(e,t,n)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},t.prototype.dtd=function(e,t){return this.doctype(e,t)},t.prototype.e=function(e,t,n){return this.element(e,t,n)},t.prototype.n=function(e,t,n){return this.node(e,t,n)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(e){return this.importDocument(e)},t})()}).call(e)})),rv=e.t(((e,t)=>{(function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n={}.hasOwnProperty;t.exports=(function(){function t(t){this.assertLegalChar=e(this.assertLegalChar,this);var r,i,a;for(r in t||={},this.noDoubleEncoding=t.noDoubleEncoding,i=t.stringify||{},i)n.call(i,r)&&(a=i[r],this[r]=a)}return t.prototype.eleName=function(e){return e=``+e||``,this.assertLegalChar(e)},t.prototype.eleText=function(e){return e=``+e||``,this.assertLegalChar(this.elEscape(e))},t.prototype.cdata=function(e){return e=``+e||``,e=e.replace(`]]>`,`]]]]><![CDATA[>`),this.assertLegalChar(e)},t.prototype.comment=function(e){if(e=``+e||``,e.match(/--/))throw Error(`Comment text cannot contain double-hypen: `+e);return this.assertLegalChar(e)},t.prototype.raw=function(e){return``+e||``},t.prototype.attName=function(e){return e=``+e||``},t.prototype.attValue=function(e){return e=``+e||``,this.attEscape(e)},t.prototype.insTarget=function(e){return``+e||``},t.prototype.insValue=function(e){if(e=``+e||``,e.match(/\?>/))throw Error(`Invalid processing instruction value: `+e);return e},t.prototype.xmlVersion=function(e){if(e=``+e||``,!e.match(/1\.[0-9]+/))throw Error(`Invalid version number: `+e);return e},t.prototype.xmlEncoding=function(e){if(e=``+e||``,!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error(`Invalid encoding: `+e);return e},t.prototype.xmlStandalone=function(e){return e?`yes`:`no`},t.prototype.dtdPubID=function(e){return``+e||``},t.prototype.dtdSysID=function(e){return``+e||``},t.prototype.dtdElementValue=function(e){return``+e||``},t.prototype.dtdAttType=function(e){return``+e||``},t.prototype.dtdAttDefault=function(e){return e==null?e:``+e||``},t.prototype.dtdEntityValue=function(e){return``+e||``},t.prototype.dtdNData=function(e){return``+e||``},t.prototype.convertAttKey=`@`,t.prototype.convertPIKey=`?`,t.prototype.convertTextKey=`#text`,t.prototype.convertCDataKey=`#cdata`,t.prototype.convertCommentKey=`#comment`,t.prototype.convertRawKey=`#raw`,t.prototype.assertLegalChar=function(e){var t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(t)throw Error(`Invalid character in string: `+e+` at index `+t.index);return e},t.prototype.elEscape=function(e){var t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/\r/g,`&#xD;`)},t.prototype.attEscape=function(e){var t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,`&amp;`).replace(/</g,`&lt;`).replace(/"/g,`&quot;`).replace(/\t/g,`&#x9;`).replace(/\n/g,`&#xA;`).replace(/\r/g,`&#xD;`)},t})()}).call(e)})),iv=e.t(((e,t)=>{(function(){var e={}.hasOwnProperty;t.exports=(function(){function t(t){var n,r,i;for(n in t||={},this.pretty=t.pretty||!1,this.allowEmpty=t.allowEmpty??!1,this.pretty?(this.indent=t.indent??` `,this.newline=t.newline??`
746
746
  `,this.offset=t.offset??0,this.dontprettytextnodes=t.dontprettytextnodes??0):(this.indent=``,this.newline=``,this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=t.spacebeforeslash??``,this.spacebeforeslash===!0&&(this.spacebeforeslash=` `),this.newlinedefault=this.newline,this.prettydefault=this.pretty,r=t.writer||{},r)e.call(r,n)&&(i=r[n],this[n]=i)}return t.prototype.set=function(t){var n,r,i;for(n in t||={},`pretty`in t&&(this.pretty=t.pretty),`allowEmpty`in t&&(this.allowEmpty=t.allowEmpty),this.pretty?(this.indent=`indent`in t?t.indent:` `,this.newline=`newline`in t?t.newline:`
747
- `,this.offset=`offset`in t?t.offset:0,this.dontprettytextnodes=`dontprettytextnodes`in t?t.dontprettytextnodes:0):(this.indent=``,this.newline=``,this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=`spacebeforeslash`in t?t.spacebeforeslash:``,this.spacebeforeslash===!0&&(this.spacebeforeslash=` `),this.newlinedefault=this.newline,this.prettydefault=this.pretty,r=t.writer||{},r)e.call(r,n)&&(i=r[n],this[n]=i);return this},t.prototype.space=function(e){var t;return this.pretty?(t=(e||0)+this.offset+1,t>0?Array(t).join(this.indent):``):``},t})()}).call(e)})),av=e.t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h=function(e,t){for(var n in t)g.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},g={}.hasOwnProperty;s=K_(),c=Z_(),e=W_(),n=G_(),u=U_(),f=Q_(),p=$_(),d=ev(),l=tv(),r=q_(),i=Y_(),a=J_(),o=X_(),m=iv(),t.exports=(function(t){h(m,t);function m(e){m.__super__.constructor.call(this,e)}return m.prototype.document=function(e){var t,r,i,a,o;for(this.textispresent=!1,a=``,o=e.children,r=0,i=o.length;r<i;r++)t=o[r],!(t instanceof l)&&(a+=(function(){switch(!1){case!(t instanceof s):return this.declaration(t);case!(t instanceof c):return this.docType(t);case!(t instanceof n):return this.comment(t);case!(t instanceof d):return this.processingInstruction(t);default:return this.element(t,0)}}).call(this));return this.pretty&&a.slice(-this.newline.length)===this.newline&&(a=a.slice(0,-this.newline.length)),a},m.prototype.attribute=function(e){return` `+e.name+`="`+e.value+`"`},m.prototype.cdata=function(e,t){return this.space(t)+`<![CDATA[`+e.text+`]]>`+this.newline},m.prototype.comment=function(e,t){return this.space(t)+`<!-- `+e.text+` -->`+this.newline},m.prototype.declaration=function(e,t){var n=this.space(t);return n+=`<?xml version="`+e.version+`"`,e.encoding!=null&&(n+=` encoding="`+e.encoding+`"`),e.standalone!=null&&(n+=` standalone="`+e.standalone+`"`),n+=this.spacebeforeslash+`?>`,n+=this.newline,n},m.prototype.docType=function(t,s){var c,l,u,f,p;if(s||=0,f=this.space(s),f+=`<!DOCTYPE `+t.root().name,t.pubID&&t.sysID?f+=` PUBLIC "`+t.pubID+`" "`+t.sysID+`"`:t.sysID&&(f+=` SYSTEM "`+t.sysID+`"`),t.children.length>0){for(f+=` [`,f+=this.newline,p=t.children,l=0,u=p.length;l<u;l++)c=p[l],f+=(function(){switch(!1){case!(c instanceof r):return this.dtdAttList(c,s+1);case!(c instanceof i):return this.dtdElement(c,s+1);case!(c instanceof a):return this.dtdEntity(c,s+1);case!(c instanceof o):return this.dtdNotation(c,s+1);case!(c instanceof e):return this.cdata(c,s+1);case!(c instanceof n):return this.comment(c,s+1);case!(c instanceof d):return this.processingInstruction(c,s+1);default:throw Error(`Unknown DTD node type: `+c.constructor.name)}}).call(this);f+=`]`}return f+=this.spacebeforeslash+`>`,f+=this.newline,f},m.prototype.element=function(t,r){var i,a,o,s,c,m,h,_,v,y,b,x,S;for(h in r||=0,S=!1,this.textispresent?(this.newline=``,this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),x=this.space(r),_=``,_+=x+`<`+t.name,v=t.attributes,v)g.call(v,h)&&(i=v[h],_+=this.attribute(i));if(t.children.length===0||t.children.every(function(e){return e.value===``}))this.allowEmpty?_+=`></`+t.name+`>`+this.newline:_+=this.spacebeforeslash+`/>`+this.newline;else if(this.pretty&&t.children.length===1&&t.children[0].value!=null)_+=`>`,_+=t.children[0].value,_+=`</`+t.name+`>`+this.newline;else{if(this.dontprettytextnodes){for(y=t.children,o=0,c=y.length;o<c;o++)if(a=y[o],a.value!=null){this.textispresent++,S=!0;break}}for(this.textispresent&&(this.newline=``,this.pretty=!1,x=this.space(r)),_+=`>`+this.newline,b=t.children,s=0,m=b.length;s<m;s++)a=b[s],_+=(function(){switch(!1){case!(a instanceof e):return this.cdata(a,r+1);case!(a instanceof n):return this.comment(a,r+1);case!(a instanceof u):return this.element(a,r+1);case!(a instanceof f):return this.raw(a,r+1);case!(a instanceof p):return this.text(a,r+1);case!(a instanceof d):return this.processingInstruction(a,r+1);case!(a instanceof l):return``;default:throw Error(`Unknown XML node type: `+a.constructor.name)}}).call(this);S&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),_+=x+`</`+t.name+`>`+this.newline}return _},m.prototype.processingInstruction=function(e,t){var n=this.space(t)+`<?`+e.target;return e.value&&(n+=` `+e.value),n+=this.spacebeforeslash+`?>`+this.newline,n},m.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline},m.prototype.text=function(e,t){return this.space(t)+e.value+this.newline},m.prototype.dtdAttList=function(e,t){var n=this.space(t)+`<!ATTLIST `+e.elementName+` `+e.attributeName+` `+e.attributeType;return e.defaultValueType!==`#DEFAULT`&&(n+=` `+e.defaultValueType),e.defaultValue&&(n+=` "`+e.defaultValue+`"`),n+=this.spacebeforeslash+`>`+this.newline,n},m.prototype.dtdElement=function(e,t){return this.space(t)+`<!ELEMENT `+e.name+` `+e.value+this.spacebeforeslash+`>`+this.newline},m.prototype.dtdEntity=function(e,t){var n=this.space(t)+`<!ENTITY`;return e.pe&&(n+=` %`),n+=` `+e.name,e.value?n+=` "`+e.value+`"`:(e.pubID&&e.sysID?n+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.sysID&&(n+=` SYSTEM "`+e.sysID+`"`),e.nData&&(n+=` NDATA `+e.nData)),n+=this.spacebeforeslash+`>`+this.newline,n},m.prototype.dtdNotation=function(e,t){var n=this.space(t)+`<!NOTATION `+e.name;return e.pubID&&e.sysID?n+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.pubID?n+=` PUBLIC "`+e.pubID+`"`:e.sysID&&(n+=` SYSTEM "`+e.sysID+`"`),n+=this.spacebeforeslash+`>`+this.newline,n},m.prototype.openNode=function(e,t){var n,r,i,a;if(t||=0,e instanceof u){for(r in i=this.space(t)+`<`+e.name,a=e.attributes,a)g.call(a,r)&&(n=a[r],i+=this.attribute(n));return i+=(e.children?`>`:`/>`)+this.newline,i}else return i=this.space(t)+`<!DOCTYPE `+e.rootNodeName,e.pubID&&e.sysID?i+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.sysID&&(i+=` SYSTEM "`+e.sysID+`"`),i+=(e.children?` [`:`>`)+this.newline,i},m.prototype.closeNode=function(e,t){switch(t||=0,!1){case!(e instanceof u):return this.space(t)+`</`+e.name+`>`+this.newline;case!(e instanceof c):return this.space(t)+`]>`+this.newline}},m})(m)}).call(e)})),ov=e.t(((e,t)=>{(function(){var e,n,r,i,a=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;i=V_().isPlainObject,e=nv(),r=rv(),n=av(),t.exports=(function(e){a(t,e);function t(e){t.__super__.constructor.call(this,null),this.name=`?xml`,e||={},e.writer||=new n,this.options=e,this.stringify=new r(e),this.isDocument=!0}return t.prototype.end=function(e){var t;return e?i(e)&&(t=e,e=this.options.writer.set(t)):e=this.options.writer,e.document(this)},t.prototype.toString=function(e){return this.options.writer.set(e).document(this)},t})(e)}).call(e)})),sv=e.t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x={}.hasOwnProperty;b=V_(),v=b.isObject,_=b.isFunction,y=b.isPlainObject,g=b.getValue,u=U_(),n=W_(),r=G_(),f=Q_(),h=$_(),d=ev(),c=K_(),l=Z_(),i=q_(),o=J_(),a=Y_(),s=X_(),e=H_(),m=rv(),p=av(),t.exports=(function(){function t(e,t,n){var r;this.name=`?xml`,e||={},e.writer?y(e.writer)&&(r=e.writer,e.writer=new p(r)):e.writer=new p(e),this.options=e,this.writer=e.writer,this.stringify=new m(e),this.onDataCallback=t||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.node=function(e,t,n){var r,i;if(e==null)throw Error(`Missing node name.`);if(this.root&&this.currentLevel===-1)throw Error(`Document can only have one root node. `+this.debugInfo(e));return this.openCurrent(),e=g(e),t===null&&n==null&&(r=[{},null],t=r[0],n=r[1]),t??={},t=g(t),v(t)||(i=[t,n],n=i[0],t=i[1]),this.currentNode=new u(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,n!=null&&this.text(n),this},t.prototype.element=function(e,t,n){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(e,t,n)},t.prototype.attribute=function(t,n){var r,i;if(!this.currentNode||this.currentNode.children)throw Error(`att() can only be used immediately after an ele() call in callback mode. `+this.debugInfo(t));if(t!=null&&(t=g(t)),v(t))for(r in t)x.call(t,r)&&(i=t[r],this.attribute(r,i));else _(n)&&(n=n.apply()),(!this.options.skipNullAttributes||n!=null)&&(this.currentNode.attributes[t]=new e(this,t,n));return this},t.prototype.text=function(e){var t;return this.openCurrent(),t=new h(this,e),this.onData(this.writer.text(t,this.currentLevel+1),this.currentLevel+1),this},t.prototype.cdata=function(e){var t;return this.openCurrent(),t=new n(this,e),this.onData(this.writer.cdata(t,this.currentLevel+1),this.currentLevel+1),this},t.prototype.comment=function(e){var t;return this.openCurrent(),t=new r(this,e),this.onData(this.writer.comment(t,this.currentLevel+1),this.currentLevel+1),this},t.prototype.raw=function(e){var t;return this.openCurrent(),t=new f(this,e),this.onData(this.writer.raw(t,this.currentLevel+1),this.currentLevel+1),this},t.prototype.instruction=function(e,t){var n,r,i,a,o;if(this.openCurrent(),e!=null&&(e=g(e)),t!=null&&(t=g(t)),Array.isArray(e))for(n=0,a=e.length;n<a;n++)r=e[n],this.instruction(r);else if(v(e))for(r in e)x.call(e,r)&&(i=e[r],this.instruction(r,i));else _(t)&&(t=t.apply()),o=new d(this,e,t),this.onData(this.writer.processingInstruction(o,this.currentLevel+1),this.currentLevel+1);return this},t.prototype.declaration=function(e,t,n){var r;if(this.openCurrent(),this.documentStarted)throw Error(`declaration() must be the first node.`);return r=new c(this,e,t,n),this.onData(this.writer.declaration(r,this.currentLevel+1),this.currentLevel+1),this},t.prototype.doctype=function(e,t,n){if(this.openCurrent(),e==null)throw Error(`Missing root node name.`);if(this.root)throw Error(`dtd() must come before the root node.`);return this.currentNode=new l(this,t,n),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},t.prototype.dtdElement=function(e,t){var n;return this.openCurrent(),n=new a(this,e,t),this.onData(this.writer.dtdElement(n,this.currentLevel+1),this.currentLevel+1),this},t.prototype.attList=function(e,t,n,r,a){var o;return this.openCurrent(),o=new i(this,e,t,n,r,a),this.onData(this.writer.dtdAttList(o,this.currentLevel+1),this.currentLevel+1),this},t.prototype.entity=function(e,t){var n;return this.openCurrent(),n=new o(this,!1,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1),this.currentLevel+1),this},t.prototype.pEntity=function(e,t){var n;return this.openCurrent(),n=new o(this,!0,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1),this.currentLevel+1),this},t.prototype.notation=function(e,t){var n;return this.openCurrent(),n=new s(this,e,t),this.onData(this.writer.dtdNotation(n,this.currentLevel+1),this.currentLevel+1),this},t.prototype.up=function(){if(this.currentLevel<0)throw Error(`The document node has no parent.`);return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},t.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(e){if(!e.isOpen)return!this.root&&this.currentLevel===0&&e instanceof u&&(this.root=e),this.onData(this.writer.openNode(e,this.currentLevel),this.currentLevel),e.isOpen=!0},t.prototype.closeNode=function(e){if(!e.isClosed)return this.onData(this.writer.closeNode(e,this.currentLevel),this.currentLevel),e.isClosed=!0},t.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.debugInfo=function(e){return e==null?``:`node: <`+e+`>`},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(e,t,n){return this.node(e,t,n)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},t.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)},t.prototype.e=function(e,t,n){return this.element(e,t,n)},t.prototype.n=function(e,t,n){return this.node(e,t,n)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(e,t){return this.entity(e,t)},t.prototype.pent=function(e,t){return this.pEntity(e,t)},t.prototype.not=function(e,t){return this.notation(e,t)},t})()}).call(e)})),cv=e.t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h=function(e,t){for(var n in t)g.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},g={}.hasOwnProperty;s=K_(),c=Z_(),e=W_(),n=G_(),u=U_(),f=Q_(),p=$_(),d=ev(),l=tv(),r=q_(),i=Y_(),a=J_(),o=X_(),m=iv(),t.exports=(function(t){h(m,t);function m(e,t){m.__super__.constructor.call(this,t),this.stream=e}return m.prototype.document=function(e){var t,r,i,a,o,u=e.children,f,p;for(r=0,a=u.length;r<a;r++)t=u[r],t.isLastRootNode=!1;for(e.children[e.children.length-1].isLastRootNode=!0,f=e.children,p=[],i=0,o=f.length;i<o;i++)if(t=f[i],!(t instanceof l))switch(!1){case!(t instanceof s):p.push(this.declaration(t));break;case!(t instanceof c):p.push(this.docType(t));break;case!(t instanceof n):p.push(this.comment(t));break;case!(t instanceof d):p.push(this.processingInstruction(t));break;default:p.push(this.element(t))}return p},m.prototype.attribute=function(e){return this.stream.write(` `+e.name+`="`+e.value+`"`)},m.prototype.cdata=function(e,t){return this.stream.write(this.space(t)+`<![CDATA[`+e.text+`]]>`+this.endline(e))},m.prototype.comment=function(e,t){return this.stream.write(this.space(t)+`<!-- `+e.text+` -->`+this.endline(e))},m.prototype.declaration=function(e,t){return this.stream.write(this.space(t)),this.stream.write(`<?xml version="`+e.version+`"`),e.encoding!=null&&this.stream.write(` encoding="`+e.encoding+`"`),e.standalone!=null&&this.stream.write(` standalone="`+e.standalone+`"`),this.stream.write(this.spacebeforeslash+`?>`),this.stream.write(this.endline(e))},m.prototype.docType=function(t,s){var c,l,u,f;if(s||=0,this.stream.write(this.space(s)),this.stream.write(`<!DOCTYPE `+t.root().name),t.pubID&&t.sysID?this.stream.write(` PUBLIC "`+t.pubID+`" "`+t.sysID+`"`):t.sysID&&this.stream.write(` SYSTEM "`+t.sysID+`"`),t.children.length>0){for(this.stream.write(` [`),this.stream.write(this.endline(t)),f=t.children,l=0,u=f.length;l<u;l++)switch(c=f[l],!1){case!(c instanceof r):this.dtdAttList(c,s+1);break;case!(c instanceof i):this.dtdElement(c,s+1);break;case!(c instanceof a):this.dtdEntity(c,s+1);break;case!(c instanceof o):this.dtdNotation(c,s+1);break;case!(c instanceof e):this.cdata(c,s+1);break;case!(c instanceof n):this.comment(c,s+1);break;case!(c instanceof d):this.processingInstruction(c,s+1);break;default:throw Error(`Unknown DTD node type: `+c.constructor.name)}this.stream.write(`]`)}return this.stream.write(this.spacebeforeslash+`>`),this.stream.write(this.endline(t))},m.prototype.element=function(t,r){var i,a,o,s,c,m,h,_;for(c in r||=0,_=this.space(r),this.stream.write(_+`<`+t.name),m=t.attributes,m)g.call(m,c)&&(i=m[c],this.attribute(i));if(t.children.length===0||t.children.every(function(e){return e.value===``}))this.allowEmpty?this.stream.write(`></`+t.name+`>`):this.stream.write(this.spacebeforeslash+`/>`);else if(this.pretty&&t.children.length===1&&t.children[0].value!=null)this.stream.write(`>`),this.stream.write(t.children[0].value),this.stream.write(`</`+t.name+`>`);else{for(this.stream.write(`>`+this.newline),h=t.children,o=0,s=h.length;o<s;o++)switch(a=h[o],!1){case!(a instanceof e):this.cdata(a,r+1);break;case!(a instanceof n):this.comment(a,r+1);break;case!(a instanceof u):this.element(a,r+1);break;case!(a instanceof f):this.raw(a,r+1);break;case!(a instanceof p):this.text(a,r+1);break;case!(a instanceof d):this.processingInstruction(a,r+1);break;case!(a instanceof l):break;default:throw Error(`Unknown XML node type: `+a.constructor.name)}this.stream.write(_+`</`+t.name+`>`)}return this.stream.write(this.endline(t))},m.prototype.processingInstruction=function(e,t){return this.stream.write(this.space(t)+`<?`+e.target),e.value&&this.stream.write(` `+e.value),this.stream.write(this.spacebeforeslash+`?>`+this.endline(e))},m.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},m.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},m.prototype.dtdAttList=function(e,t){return this.stream.write(this.space(t)+`<!ATTLIST `+e.elementName+` `+e.attributeName+` `+e.attributeType),e.defaultValueType!==`#DEFAULT`&&this.stream.write(` `+e.defaultValueType),e.defaultValue&&this.stream.write(` "`+e.defaultValue+`"`),this.stream.write(this.spacebeforeslash+`>`+this.endline(e))},m.prototype.dtdElement=function(e,t){return this.stream.write(this.space(t)+`<!ELEMENT `+e.name+` `+e.value),this.stream.write(this.spacebeforeslash+`>`+this.endline(e))},m.prototype.dtdEntity=function(e,t){return this.stream.write(this.space(t)+`<!ENTITY`),e.pe&&this.stream.write(` %`),this.stream.write(` `+e.name),e.value?this.stream.write(` "`+e.value+`"`):(e.pubID&&e.sysID?this.stream.write(` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`):e.sysID&&this.stream.write(` SYSTEM "`+e.sysID+`"`),e.nData&&this.stream.write(` NDATA `+e.nData)),this.stream.write(this.spacebeforeslash+`>`+this.endline(e))},m.prototype.dtdNotation=function(e,t){return this.stream.write(this.space(t)+`<!NOTATION `+e.name),e.pubID&&e.sysID?this.stream.write(` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`):e.pubID?this.stream.write(` PUBLIC "`+e.pubID+`"`):e.sysID&&this.stream.write(` SYSTEM "`+e.sysID+`"`),this.stream.write(this.spacebeforeslash+`>`+this.endline(e))},m.prototype.endline=function(e){return e.isLastRootNode?``:this.newline},m})(m)}).call(e)})),lv=e.t(((e,t)=>{(function(){var e,n,r,i,a,o,s=V_();a=s.assign,o=s.isFunction,e=ov(),n=sv(),i=av(),r=cv(),t.exports.create=function(t,n,r,i){var o,s;if(t==null)throw Error(`Root element needs a name.`);return i=a({},n,r,i),o=new e(i),s=o.element(t),i.headless||(o.declaration(i),(i.pubID!=null||i.sysID!=null)&&o.doctype(i)),s},t.exports.begin=function(t,r,i){var a;return o(t)&&(a=[t,r],r=a[0],i=a[1],t={}),r?new n(t,r,i):new e(t)},t.exports.stringWriter=function(e){return new i(e)},t.exports.streamWriter=function(e,t){return new r(e,t)}}).call(e)})),uv=e.t((t=>{var n=(Gg(),e.i(Wg)),r=lv();t.writeString=i;function i(e,t){var i=n.invert(t),o={element:c,text:a};function s(e,t){return o[t.type](e,t)}function c(e,t){var n=e.element(l(t.name),t.attributes);t.children.forEach(function(e){s(n,e)})}function l(e){var t=/^\{(.*)\}(.*)$/.exec(e);if(t){var n=i[t[1]];return n+(n===``?``:`:`)+t[2]}else return e}function u(e){var i=r.create(l(e.name),{version:`1.0`,encoding:`UTF-8`,standalone:!0});return n.forEach(t,function(e,t){var n=`xmlns`+(t===``?``:`:`+t);i.attribute(n,e)}),e.children.forEach(function(e){s(i,e)}),i.end()}return u(e)}function a(e,t){e.text(t.value)}})),dv=e.t((e=>{var t=M_();e.Element=t.Element,e.element=t.element,e.emptyElement=t.emptyElement,e.text=t.text,e.readString=B_().readString,e.writeString=uv().writeString})),fv=e.t((t=>{var n=(Gg(),e.i(Wg)),r=D_(),i=dv();t.read=o,t.readXmlFromZipFile=s;var a={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":`w`,"http://schemas.openxmlformats.org/officeDocument/2006/relationships":`r`,"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":`wp`,"http://schemas.openxmlformats.org/drawingml/2006/main":`a`,"http://schemas.openxmlformats.org/drawingml/2006/picture":`pic`,"http://purl.oclc.org/ooxml/wordprocessingml/main":`w`,"http://purl.oclc.org/ooxml/officeDocument/relationships":`r`,"http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":`wp`,"http://purl.oclc.org/ooxml/drawingml/main":`a`,"http://purl.oclc.org/ooxml/drawingml/picture":`pic`,"http://schemas.openxmlformats.org/package/2006/content-types":`content-types`,"http://schemas.openxmlformats.org/package/2006/relationships":`relationships`,"http://schemas.openxmlformats.org/markup-compatibility/2006":`mc`,"urn:schemas-microsoft-com:vml":`v`,"urn:schemas-microsoft-com:office:word":`office-word`,"http://schemas.microsoft.com/office/word/2010/wordml":`wordml`};function o(e){return i.readString(e,a).then(function(e){return l(e)[0]})}function s(e,t){return e.exists(t)?e.read(t,`utf-8`).then(c).then(o):r.resolve(null)}function c(e){return e.replace(/^\uFEFF/g,``)}function l(e){return e.type===`element`?e.name===`mc:AlternateContent`?e.firstOrEmpty(`mc:Fallback`).children:(e.children=n.flatten(e.children.map(l,!0)),[e]):[e]}})),pv=e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={SYMBOL:{32:32,33:33,34:8704,35:35,36:8707,37:37,38:38,39:8717,40:40,41:41,42:42,43:43,44:44,45:8722,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:8773,65:913,66:914,67:935,68:916,69:917,70:934,71:915,72:919,73:921,74:977,75:922,76:923,77:924,78:925,79:927,80:928,81:920,82:929,83:931,84:932,85:933,86:962,87:937,88:926,89:936,90:918,91:91,92:8756,93:93,94:8869,95:95,96:8254,97:945,98:946,99:967,100:948,101:949,102:966,103:947,104:951,105:953,106:981,107:954,108:955,109:956,110:957,111:959,112:960,113:952,114:961,115:963,116:964,117:965,118:982,119:969,120:958,121:968,122:950,123:123,124:124,125:125,126:126,160:8364,161:978,162:8242,163:8804,164:8260,165:8734,166:402,167:9827,168:9830,169:9829,170:9824,171:8596,172:8592,173:8593,174:8594,175:8595,176:176,177:177,178:8243,179:8805,180:215,181:8733,182:8706,183:8226,184:247,185:8800,186:8801,187:8776,188:8230,189:9168,190:9135,191:8629,192:8501,193:8465,194:8476,195:8472,196:8855,197:8853,198:8709,199:8745,200:8746,201:8835,202:8839,203:8836,204:8834,205:8838,206:8712,207:8713,208:8736,209:8711,210:174,211:169,212:8482,213:8719,214:8730,215:8901,216:172,217:8743,218:8744,219:8660,220:8656,221:8657,222:8658,223:8659,224:9674,225:12296,226:174,227:169,228:8482,229:8721,230:9115,231:9116,232:9117,233:9121,234:9122,235:9123,236:9127,237:9128,238:9129,239:9130,240:63743,241:12297,242:8747,243:8992,244:9134,245:8993,246:9118,247:9119,248:9120,249:9124,250:9125,251:9126,252:9131,253:9132,254:9133},WEBDINGS:{32:32,33:128375,34:128376,35:128370,36:128374,37:127942,38:127894,39:128391,40:128488,41:128489,42:128496,43:128497,44:127798,45:127895,46:128638,47:128636,48:128469,49:128470,50:128471,51:9204,52:9205,53:9206,54:9207,55:9194,56:9193,57:9198,58:9197,59:9208,60:9209,61:9210,62:128474,63:128499,64:128736,65:127959,66:127960,67:127961,68:127962,69:127964,70:127981,71:127963,72:127968,73:127958,74:127965,75:128739,76:128269,77:127956,78:128065,79:128066,80:127966,81:127957,82:128740,83:127967,84:128755,85:128364,86:128363,87:128360,88:128264,89:127892,90:127893,91:128492,92:128637,93:128493,94:128490,95:128491,96:11156,97:10004,98:128690,99:11036,100:128737,101:128230,102:128753,103:11035,104:128657,105:128712,106:128745,107:128752,108:128968,109:128372,110:11044,111:128741,112:128660,113:128472,114:128473,115:10067,116:128754,117:128647,118:128653,119:9971,120:10680,121:8854,122:128685,123:128494,124:9168,125:128495,126:128498,128:128697,129:128698,130:128713,131:128714,132:128700,133:128125,134:127947,135:9975,136:127938,137:127948,138:127946,139:127940,140:127949,141:127950,142:128664,143:128480,144:128738,145:128176,146:127991,147:128179,148:128106,149:128481,150:128482,151:128483,152:10031,153:128388,154:128389,155:128387,156:128390,157:128441,158:128442,159:128443,160:128373,161:128368,162:128445,163:128446,164:128203,165:128466,166:128467,167:128366,168:128218,169:128478,170:128479,171:128451,172:128450,173:128444,174:127917,175:127900,176:127896,177:127897,178:127911,179:128191,180:127902,181:128247,182:127903,183:127916,184:128253,185:128249,186:128254,187:128251,188:127898,189:127899,190:128250,191:128187,192:128421,193:128422,194:128423,195:128377,196:127918,197:128379,198:128380,199:128223,200:128385,201:128384,202:128424,203:128425,204:128447,205:128426,206:128476,207:128274,208:128275,209:128477,210:128229,211:128228,212:128371,213:127779,214:127780,215:127781,216:127782,217:9729,218:127784,219:127783,220:127785,221:127786,222:127788,223:127787,224:127772,225:127777,226:128715,227:128719,228:127869,229:127864,230:128718,231:128717,232:9413,233:9855,234:128710,235:128392,236:127891,237:128484,238:128485,239:128486,240:128487,241:128746,242:128063,243:128038,244:128031,245:128021,246:128008,247:128620,248:128622,249:128621,250:128623,251:128506,252:127757,253:127759,254:127758,255:128330},WINGDINGS:{32:32,33:128393,34:9986,35:9985,36:128083,37:128365,38:128366,39:128367,40:128383,41:9990,42:128386,43:128387,44:128234,45:128235,46:128236,47:128237,48:128448,49:128449,50:128462,51:128463,52:128464,53:128452,54:8987,55:128430,56:128432,57:128434,58:128435,59:128436,60:128427,61:128428,62:9991,63:9997,64:128398,65:9996,66:128399,67:128077,68:128078,69:9756,70:9758,71:9757,72:9759,73:128400,74:9786,75:128528,76:9785,77:128163,78:128369,79:127987,80:127985,81:9992,82:9788,83:127778,84:10052,85:128326,86:10014,87:128328,88:10016,89:10017,90:9770,91:9775,92:128329,93:9784,94:9800,95:9801,96:9802,97:9803,98:9804,99:9805,100:9806,101:9807,102:9808,103:9809,104:9810,105:9811,106:128624,107:128629,108:9899,109:128318,110:9724,111:128911,112:128912,113:10065,114:10066,115:128927,116:10731,117:9670,118:10070,119:11049,120:8999,121:11193,122:8984,123:127989,124:127990,125:128630,126:128631,127:9647,128:127243,129:10112,130:10113,131:10114,132:10115,133:10116,134:10117,135:10118,136:10119,137:10120,138:10121,139:127244,140:10122,141:10123,142:10124,143:10125,144:10126,145:10127,146:10128,147:10129,148:10130,149:10131,150:128610,151:128608,152:128609,153:128611,154:128606,155:128604,156:128605,157:128607,158:8729,159:8226,160:11037,161:11096,162:128902,163:128904,164:128906,165:128907,166:128319,167:9642,168:128910,169:128961,170:128965,171:9733,172:128971,173:128975,174:128979,175:128977,176:11216,177:8982,178:11214,179:11215,180:11217,181:10026,182:10032,183:128336,184:128337,185:128338,186:128339,187:128340,188:128341,189:128342,190:128343,191:128344,192:128345,193:128346,194:128347,195:11184,196:11185,197:11186,198:11187,199:11188,200:11189,201:11190,202:11191,203:128618,204:128619,205:128597,206:128596,207:128599,208:128598,209:128592,210:128593,211:128594,212:128595,213:9003,214:8998,215:11160,216:11162,217:11161,218:11163,219:11144,220:11146,221:11145,222:11147,223:129128,224:129130,225:129129,226:129131,227:129132,228:129133,229:129135,230:129134,231:129144,232:129146,233:129145,234:129147,235:129148,236:129149,237:129151,238:129150,239:8678,240:8680,241:8679,242:8681,243:11012,244:8691,245:11009,246:11008,247:11011,248:11010,249:129196,250:129197,251:128502,252:10003,253:128503,254:128505},"WINGDINGS 2":{32:32,33:128394,34:128395,35:128396,36:128397,37:9988,38:9984,39:128382,40:128381,41:128453,42:128454,43:128455,44:128456,45:128457,46:128458,47:128459,48:128460,49:128461,50:128203,51:128465,52:128468,53:128437,54:128438,55:128439,56:128440,57:128429,58:128431,59:128433,60:128402,61:128403,62:128408,63:128409,64:128410,65:128411,66:128072,67:128073,68:128412,69:128413,70:128414,71:128415,72:128416,73:128417,74:128070,75:128071,76:128418,77:128419,78:128401,79:128500,80:128504,81:128501,82:9745,83:11197,84:9746,85:11198,86:11199,87:128711,88:10680,89:128625,90:128628,91:128626,92:128627,93:8253,94:128633,95:128634,96:128635,97:128614,98:128612,99:128613,100:128615,101:128602,102:128600,103:128601,104:128603,105:9450,106:9312,107:9313,108:9314,109:9315,110:9316,111:9317,112:9318,113:9319,114:9320,115:9321,116:9471,117:10102,118:10103,119:10104,120:10105,121:10106,122:10107,123:10108,124:10109,125:10110,126:10111,128:9737,129:127765,130:9789,131:9790,132:11839,133:10013,134:128327,135:128348,136:128349,137:128350,138:128351,139:128352,140:128353,141:128354,142:128355,143:128356,144:128357,145:128358,146:128359,147:128616,148:128617,149:8901,150:128900,151:10625,152:9679,153:9675,154:128901,155:128903,156:128905,157:8857,158:10687,159:128908,160:128909,161:9726,162:9632,163:9633,164:128913,165:128914,166:128915,167:128916,168:9635,169:128917,170:128918,171:128919,172:128920,173:11049,174:11045,175:9671,176:128922,177:9672,178:128923,179:128924,180:128925,181:128926,182:11050,183:11047,184:9674,185:128928,186:9686,187:9687,188:11210,189:11211,190:11200,191:11201,192:11039,193:11202,194:11043,195:11042,196:11203,197:11204,198:128929,199:128930,200:128931,201:128932,202:128933,203:128934,204:128935,205:128936,206:128937,207:128938,208:128939,209:128940,210:128941,211:128942,212:128943,213:128944,214:128945,215:128946,216:128947,217:128948,218:128949,219:128950,220:128951,221:128952,222:128953,223:128954,224:128955,225:128956,226:128957,227:128958,228:128959,229:128960,230:128962,231:128964,232:128966,233:128969,234:128970,235:10038,236:128972,237:128974,238:128976,239:128978,240:10041,241:128963,242:128967,243:10031,244:128973,245:128980,246:11212,247:11213,248:8251,249:8258},"WINGDINGS 3":{32:32,33:11104,34:11106,35:11105,36:11107,37:11110,38:11111,39:11113,40:11112,41:11120,42:11122,43:11121,44:11123,45:11126,46:11128,47:11131,48:11133,49:11108,50:11109,51:11114,52:11116,53:11115,54:11117,55:11085,56:11168,57:11169,58:11170,59:11171,60:11172,61:11173,62:11174,63:11175,64:11152,65:11153,66:11154,67:11155,68:11136,69:11139,70:11134,71:11135,72:11140,73:11142,74:11141,75:11143,76:11151,77:11149,78:11150,79:11148,80:11118,81:11119,82:9099,83:8996,84:8963,85:8997,86:9251,87:9085,88:8682,89:11192,90:129184,91:129185,92:129186,93:129187,94:129188,95:129189,96:129190,97:129191,98:129192,99:129193,100:129194,101:129195,102:129104,103:129106,104:129105,105:129107,106:129108,107:129109,108:129111,109:129110,110:129112,111:129113,112:9650,113:9660,114:9651,115:9661,116:9664,117:9654,118:9665,119:9655,120:9699,121:9698,122:9700,123:9701,124:128896,125:128898,126:128897,128:128899,129:11205,130:11206,131:11207,132:11208,133:11164,134:11166,135:11165,136:11167,137:129040,138:129042,139:129041,140:129043,141:129044,142:129046,143:129045,144:129047,145:129048,146:129050,147:129049,148:129051,149:129052,150:129054,151:129053,152:129055,153:129024,154:129026,155:129025,156:129027,157:129028,158:129030,159:129029,160:129031,161:129032,162:129034,163:129033,164:129035,165:129056,166:129058,167:129060,168:129062,169:129064,170:129066,171:129068,172:129180,173:129181,174:129182,175:129183,176:129070,177:129072,178:129074,179:129076,180:129078,181:129080,182:129082,183:129081,184:129083,185:129176,186:129178,187:129177,188:129179,189:129084,190:129086,191:129085,192:129087,193:129088,194:129090,195:129089,196:129091,197:129092,198:129094,199:129093,200:129095,201:11176,202:11177,203:11178,204:11179,205:11180,206:11181,207:11182,208:11183,209:129120,210:129122,211:129121,212:129123,213:129124,214:129125,215:129127,216:129126,217:129136,218:129138,219:129137,220:129139,221:129140,222:129141,223:129143,224:129142,225:129152,226:129154,227:129153,228:129155,229:129156,230:129157,231:129159,232:129158,233:129168,234:129170,235:129169,236:129171,237:129172,238:129174,239:129173,240:129175}}})),mv=e.t((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.hex=e.dec=e.codePoint=void 0;var n=t(pv()),r=String.fromCodePoint?String.fromCodePoint:s;function i(e,t){var i=n.default[e.toUpperCase()];if(i!==void 0){var a=i[t];if(a!==void 0)return{codePoint:a,string:r(a)}}}e.codePoint=i;function a(e,t){return i(e,parseInt(t,10))}e.dec=a;function o(e,t){return i(e,parseInt(t,16))}e.hex=o;function s(e){if(e<=65535)return String.fromCharCode(e);var t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}})),hv=e.t((t=>{var n=(Gg(),e.i(Wg));t.paragraph=r,t.run=i,t._elements=o,t._elementsOfType=a,t.getDescendantsOfType=s,t.getDescendants=c;function r(e){return a(`paragraph`,e)}function i(e){return a(`run`,e)}function a(e,t){return o(function(n){return n.type===e?t(n):n})}function o(e){return function t(r){if(r.children){var i=n.map(r.children,t);r=n.extend(r,{children:i})}return e(r)}}function s(e,t){return c(e).filter(function(e){return e.type===t})}function c(e){var t=[];return l(e,function(e){t.push(e)}),t}function l(e,t){e.children&&e.children.forEach(function(e){l(e,t),t(e)})}})),gv=e.t((e=>{e.uriToZipEntryName=t,e.replaceFragment=n;function t(e,t){return t.charAt(0)===`/`?t.substr(1):e+`/`+t}function n(e,t){var n=e.indexOf(`#`);return n!==-1&&(e=e.substring(0,n)),e+`#`+t}})),_v=e.t((t=>{t.createBodyReader=u,t._readNumberingProperties=f;var n=mv(),r=(Gg(),e.i(Wg)),i=O_(),a=k_().Result,o=k_().warning,s=dv(),c=hv(),l=gv();function u(e){return{readXmlElement:function(t){return new d(e).readXmlElement(t)},readXmlElements:function(t){return new d(e).readXmlElements(t)}}}function d(e){var t=[],a=[],u=[],d=e.relationships,x=e.contentTypes,S=e.docxFile,C=e.files,w=e.numbering,T=e.styles;function E(e){return b(e.map(D))}function D(e){if(e.type===`element`){var t=ie[e.name];if(t)return t(e);if(!Object.prototype.hasOwnProperty.call(m,e.name))return h([o(`An unrecognised element was ignored: `+e.name)])}return g()}function O(e){return F(e).map(function(t){return{type:`paragraphProperties`,styleId:t.styleId,styleName:t.name,alignment:e.firstOrEmpty(`w:jc`).attributes[`w:val`],numbering:f(t.styleId,e.firstOrEmpty(`w:numPr`),w),indent:k(e.firstOrEmpty(`w:ind`))}})}function k(e){return{start:e.attributes[`w:start`]||e.attributes[`w:left`],end:e.attributes[`w:end`]||e.attributes[`w:right`],firstLine:e.attributes[`w:firstLine`],hanging:e.attributes[`w:hanging`]}}function A(e){return I(e).map(function(t){var n=e.firstOrEmpty(`w:sz`).attributes[`w:val`],r=/^[0-9]+$/.test(n)?parseInt(n,10)/2:null;return{type:`runProperties`,styleId:t.styleId,styleName:t.name,verticalAlignment:e.firstOrEmpty(`w:vertAlign`).attributes[`w:val`],font:e.firstOrEmpty(`w:rFonts`).attributes[`w:ascii`],fontSize:r,isBold:M(e.first(`w:b`)),isUnderline:j(e.first(`w:u`)),isItalic:M(e.first(`w:i`)),isStrikethrough:M(e.first(`w:strike`)),isAllCaps:M(e.first(`w:caps`)),isSmallCaps:M(e.first(`w:smallCaps`)),highlight:P(e.firstOrEmpty(`w:highlight`).attributes[`w:val`])}})}function j(e){if(e){var t=e.attributes[`w:val`];return t!==void 0&&t!==`false`&&t!==`0`&&t!==`none`}else return!1}function M(e){if(e){var t=e.attributes[`w:val`];return t!==`false`&&t!==`0`}else return!1}function N(e){return e!==`false`&&e!==`0`}function P(e){return!e||e===`none`?null:e}function F(e){return R(e,`w:pStyle`,`Paragraph`,T.findParagraphStyleById)}function I(e){return R(e,`w:rStyle`,`Run`,T.findCharacterStyleById)}function L(e){return R(e,`w:tblStyle`,`Table`,T.findTableStyleById)}function R(e,t,n,r){var i=[],a=e.first(t),o=null,s=null;if(a&&(o=a.attributes[`w:val`],o)){var c=r(o);c?s=c.name:i.push(ye(n,o))}return v({styleId:o,name:s},i)}function z(e){var n=e.attributes[`w:fldCharType`];if(n===`begin`)t.push({type:`begin`,fldChar:e}),a=[];else if(n===`end`){if(t.length===0)return h([o(`Ignoring complex field end character without corresponding start character`)]);var r=t.pop();if(r.type===`begin`&&(r=ee(r)),r.type===`checkbox`)return _(i.checkbox({checked:r.checked}))}else if(n===`separate`){if(t.length===0)return h([o(`Ignoring complex field separator character without corresponding start character`)]);var s=ee(t.pop());t.push(s)}return g()}function B(){var e=r.last(t.filter(function(e){return e.type===`hyperlink`}));return e?e.options:null}function ee(e){return te(a.join(``),e.type===`begin`?e.fldChar:s.emptyElement)}function te(e,t){var n=/^\s*HYPERLINK\s+(\\l\s+)?(?:"(.*)"|([^\\]\S*))/.exec(e);if(n){var r=n[2]===void 0?n[3]:n[2];return{type:`hyperlink`,options:n[1]===void 0?{href:r}:{anchor:r}}}if(/\s*FORMCHECKBOX\s*/.exec(e)){var i=t.firstOrEmpty(`w:ffData`).firstOrEmpty(`w:checkBox`);return{type:`checkbox`,checked:M(i.first(`w:checked`)??i.first(`w:default`))}}return{type:`unknown`}}function V(e){return a.push(e.text()),g()}function ne(e){var t=e.attributes[`w:font`],r=e.attributes[`w:char`],a=n.hex(t,r);return a==null&&/^F0..$/.test(r)&&(a=n.hex(t,r.substring(2))),a==null?h([o(`A w:sym element with an unsupported character was ignored: char `+r+` in font `+t)]):_(new i.Text(a.string))}function re(e){return function(t){var n=t.attributes[`w:id`];return _(new i.NoteReference({noteType:e,noteId:n}))}}function H(e){return _(i.commentReference({commentId:e.attributes[`w:id`]}))}function U(e){return E(e.children)}var ie={"w:p":function(e){var t=e.firstOrEmpty(`w:pPr`);if(t.firstOrEmpty(`w:rPr`).first(`w:del`))return e.children.forEach(function(e){u.push(e)}),g();var n=e.children;return u.length>0&&(n=u.concat(n),u=[]),y.map(O(t),E(n),function(e,t){return new i.Paragraph(t,e)}).insertExtra()},"w:r":function(e){return y.map(A(e.firstOrEmpty(`w:rPr`)),E(e.children),function(e,t){var n=B();return n!==null&&(t=[new i.Hyperlink(t,n)]),new i.Run(t,e)})},"w:fldChar":z,"w:instrText":V,"w:t":function(e){return _(new i.Text(e.text()))},"w:tab":function(e){return _(new i.Tab)},"w:noBreakHyphen":function(){return _(new i.Text(`‑`))},"w:softHyphen":function(e){return _(new i.Text(`­`))},"w:sym":ne,"w:hyperlink":function(e){var t=e.attributes[`r:id`],n=e.attributes[`w:anchor`];return E(e.children).map(function(a){function o(t){var n=e.attributes[`w:tgtFrame`]||null;return new i.Hyperlink(a,r.extend({targetFrame:n},t))}if(t){var s=d.findTargetByRelationshipId(t);return n&&(s=l.replaceFragment(s,n)),o({href:s})}else if(n)return o({anchor:n});else return a})},"w:tbl":ae,"w:tr":se,"w:tc":ce,"w:footnoteReference":re(`footnote`),"w:endnoteReference":re(`endnote`),"w:commentReference":H,"w:br":function(e){var t=e.attributes[`w:type`];return t==null||t===`textWrapping`?_(i.lineBreak):t===`page`?_(i.pageBreak):t===`column`?_(i.columnBreak):h([o(`Unsupported break type: `+t)])},"w:bookmarkStart":function(e){var t=e.attributes[`w:name`];return t===`_GoBack`?g():_(new i.BookmarkStart({name:t}))},"mc:AlternateContent":function(e){return U(e.firstOrEmpty(`mc:Fallback`))},"w:sdt":function(e){return E(e.firstOrEmpty(`w:sdtContent`).children).map(function(t){var n=e.firstOrEmpty(`w:sdtPr`).first(`wordml:checkbox`);if(n){var r=n.first(`wordml:checked`),a=!!r&&N(r.attributes[`wordml:val`]),o=i.checkbox({checked:a}),s=!1,l=t.map(c._elementsOfType(i.types.text,function(e){return e.value.length>0&&!s?(s=!0,o):e}));return s?l:o}else return t})},"w:ins":U,"w:object":U,"w:smartTag":U,"w:drawing":U,"w:pict":function(e){return U(e).toExtra()},"v:roundrect":U,"v:shape":U,"v:textbox":U,"w:txbxContent":U,"wp:inline":fe,"wp:anchor":fe,"v:imagedata":ge,"v:group":U,"v:rect":U};return{readXmlElement:D,readXmlElements:E};function ae(e){var t=oe(e.firstOrEmpty(`w:tblPr`));return E(e.children).flatMap(ue).flatMap(function(e){return t.map(function(t){return i.Table(e,t)})})}function oe(e){return L(e).map(function(e){return{styleId:e.styleId,styleName:e.name}})}function se(e){var t=e.firstOrEmpty(`w:trPr`);if(t.first(`w:del`))return g();var n=!!t.first(`w:tblHeader`);return E(e.children).map(function(e){return i.TableRow(e,{isHeader:n})})}function ce(e){return E(e.children).map(function(t){var n=e.firstOrEmpty(`w:tcPr`),r=n.firstOrEmpty(`w:gridSpan`).attributes[`w:val`],a=r?parseInt(r,10):1,o=i.TableCell(t,{colSpan:a});return o._vMerge=le(n),o})}function le(e){var t=e.first(`w:vMerge`);if(t){var n=t.attributes[`w:val`];return n===`continue`||!n}else return null}function ue(e){if(r.any(e,function(e){return e.type!==i.types.tableRow}))return de(e),v(e,[o(`unexpected non-row element in table, cell merging may be incorrect`)]);if(r.any(e,function(e){return r.any(e.children,function(e){return e.type!==i.types.tableCell})}))return de(e),v(e,[o(`unexpected non-cell element in table row, cell merging may be incorrect`)]);var t={};return e.forEach(function(e){var n=0;e.children.forEach(function(e){e._vMerge&&t[n]?t[n].rowSpan++:(t[n]=e,e._vMerge=!1),n+=e.colSpan})}),e.forEach(function(e){e.children=e.children.filter(function(e){return!e._vMerge}),e.children.forEach(function(e){delete e._vMerge})}),_(e)}function de(e){e.forEach(function(e){c.getDescendantsOfType(e,i.types.tableCell).forEach(function(e){delete e._vMerge})})}function fe(e){return b(e.getElementsByTagName(`a:graphic`).getElementsByTagName(`a:graphicData`).getElementsByTagName(`pic:pic`).getElementsByTagName(`pic:blipFill`).getElementsByTagName(`a:blip`).map(pe.bind(null,e)))}function pe(e,t){var n=e.firstOrEmpty(`wp:docPr`),r=n.attributes,a=me(r.descr)?r.title:r.descr,s=he(t);return s===null?h([o(`Could not find image file for a:blip element`)]):ve(s,a).map(function(e){var t=n.firstOrEmpty(`a:hlinkClick`).attributes[`r:id`];if(t){var r=d.findTargetByRelationshipId(t);return new i.Hyperlink([e],{href:r})}else return e})}function me(e){return e==null||/^\s*$/.test(e)}function he(e){var t=e.attributes[`r:embed`],n=e.attributes[`r:link`];if(t)return _e(t);if(n){var r=d.findTargetByRelationshipId(n);return{path:r,read:C.read.bind(C,r)}}else return null}function ge(e){var t=e.attributes[`r:id`];return t?ve(_e(t),e.attributes[`o:title`]):h([o(`A v:imagedata element without a relationship ID was ignored`)])}function _e(e){var t=l.uriToZipEntryName(`word`,d.findTargetByRelationshipId(e));return{path:t,read:S.read.bind(S,t)}}function ve(e,t){var n=x.findContentType(e.path);return v(i.Image({readImage:e.read,altText:t,contentType:n}),p[n]?[]:o(`Image of type `+n+` is unlikely to display in web browsers`))}function ye(e,t){return o(e+` style with ID `+t+` was referenced but not defined in the document`)}}function f(e,t,n){var r=t.firstOrEmpty(`w:ilvl`).attributes[`w:val`],i=t.firstOrEmpty(`w:numId`).attributes[`w:val`];if(r!==void 0&&i!==void 0)return n.findLevel(i,r);if(e!=null){var a=n.findLevelByParagraphStyleId(e);if(a!=null)return a}return i===void 0?null:n.findLevel(i,`0`)}var p={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},m={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function h(e){return new y(null,null,e)}function g(){return new y(null)}function _(e){return new y(e)}function v(e,t){return new y(e,null,t)}function y(e,t,n){this.value=e||[],this.extra=t||[],this._result=new a({element:this.value,extra:t},n),this.messages=this._result.messages}y.prototype.toExtra=function(){return new y(null,x(this.extra,this.value),this.messages)},y.prototype.insertExtra=function(){var e=this.extra;return e&&e.length?new y(x(this.value,e),null,this.messages):this},y.prototype.map=function(e){var t=this._result.map(function(t){return e(t.element)});return new y(t.value,this.extra,t.messages)},y.prototype.flatMap=function(e){var t=this._result.flatMap(function(t){return e(t.element)._result});return new y(t.value.element,x(this.extra,t.value.extra),t.messages)},y.map=function(e,t,n){return new y(n(e.value,t.value),x(e.extra,t.extra),e.messages.concat(t.messages))};function b(e){var t=a.combine(r.pluck(e,`_result`));return new y(r.flatten(r.pluck(t.value,`element`)),r.filter(r.flatten(r.pluck(t.value,`extra`)),S),t.messages)}function x(e,t){return r.flatten([e,t])}function S(e){return e}})),vv=e.t((e=>{e.DocumentXmlReader=r;var t=O_(),n=k_().Result;function r(e){var r=e.bodyReader;function i(i){var a=i.first(`w:body`);if(a==null)throw Error(`Could not find the body element: are you sure this is a docx file?`);var o=r.readXmlElements(a.children).map(function(n){return new t.Document(n,{notes:e.notes,comments:e.comments})});return new n(o.value,o.messages)}return{convertXmlToDocument:i}}})),yv=e.t((e=>{e.readRelationships=t,e.defaultValue=new n([]),e.Relationships=n;function t(e){var t=[];return e.children.forEach(function(e){if(e.name===`relationships:Relationship`){var n={relationshipId:e.attributes.Id,target:e.attributes.Target,type:e.attributes.Type};t.push(n)}}),new n(t)}function n(e){var t=Object.create(null);e.forEach(function(e){t[e.relationshipId]=e.target});var n=Object.create(null);return e.forEach(function(e){n[e.type]||(n[e.type]=[]),n[e.type].push(e.target)}),{findTargetByRelationshipId:function(e){return t[e]},findTargetsByType:function(e){return n[e]||[]}}}})),bv=e.t((e=>{e.readContentTypesFromXml=n;var t={png:`png`,gif:`gif`,jpeg:`jpeg`,jpg:`jpeg`,tif:`tiff`,tiff:`tiff`,bmp:`bmp`};e.defaultContentTypes=r({},{});function n(e){var t=Object.create(null),n=Object.create(null);return e.children.forEach(function(e){if(e.name===`content-types:Default`&&(t[e.attributes.Extension]=e.attributes.ContentType),e.name===`content-types:Override`){var r=e.attributes.PartName;r.charAt(0)===`/`&&(r=r.substring(1)),n[r]=e.attributes.ContentType}}),r(n,t)}function r(e,n){return{findContentType:function(r){var i=e[r];if(i)return i;var a=r.split(`.`),o=a[a.length-1];if(Object.prototype.hasOwnProperty.call(n,o))return n[o];var s=t[o.toLowerCase()];return s?`image/`+s:null}}}})),xv=e.t((t=>{var n=(Gg(),e.i(Wg));t.readNumberingXml=i,t.Numbering=r,t.defaultNumbering=new r({},{});function r(e,t,r){var i=n.flatten(n.values(t).map(function(e){return n.values(e.levels)})),a=n.indexBy(i.filter(function(e){return e.paragraphStyleId!=null}),`paragraphStyleId`);function o(e,t){return s(e,t,Object.create(null))}function s(n,i,a){if(a[n])return null;a[n]=!0;var o=e[n];if(!o)return null;var c=t[o.abstractNumId];return c?c.numStyleLink==null?t[o.abstractNumId].levels[i]:s(r.findNumberingStyleById(c.numStyleLink).numId,i,a):null}function c(e){return a[e]||null}return{findLevel:o,findLevelByParagraphStyleId:c}}function i(e,t){if(!t||!t.styles)throw Error(`styles is missing`);var n=a(e);return new r(s(e,n),n,t.styles)}function a(e){var t=Object.create(null);return e.getElementsByTagName(`w:abstractNum`).forEach(function(e){var n=e.attributes[`w:abstractNumId`];t[n]=o(e)}),t}function o(e){var t=Object.create(null),n=null;return e.getElementsByTagName(`w:lvl`).forEach(function(e){var r=e.attributes[`w:ilvl`],i=e.firstOrEmpty(`w:numFmt`).attributes[`w:val`]!==`bullet`,a=e.firstOrEmpty(`w:pStyle`).attributes[`w:val`];r===void 0?n={isOrdered:i,level:`0`,paragraphStyleId:a}:t[r]={isOrdered:i,level:r,paragraphStyleId:a}}),n!==null&&t[n.level]===void 0&&(t[n.level]=n),{levels:t,numStyleLink:e.firstOrEmpty(`w:numStyleLink`).attributes[`w:val`]}}function s(e){var t=Object.create(null);return e.getElementsByTagName(`w:num`).forEach(function(e){var n=e.attributes[`w:numId`];t[n]={abstractNumId:e.first(`w:abstractNumId`).attributes[`w:val`]}}),t}})),Sv=e.t((e=>{e.readStylesXml=n,e.Styles=t,e.defaultStyles=new t({},{});function t(e,t,n,r){return{findParagraphStyleById:function(t){return e[t]},findCharacterStyleById:function(e){return t[e]},findTableStyleById:function(e){return n[e]},findNumberingStyleById:function(e){return r[e]}}}t.EMPTY=new t({},{},{},{});function n(e){var n=Object.create(null),i=Object.create(null),a=Object.create(null),o=Object.create(null);return e.getElementsByTagName(`w:style`).forEach(function(e){var t=r(e),s;switch(t.type){case`paragraph`:s=n;break;case`character`:s=i;break;case`table`:s=a;break;case`numbering`:s=o;break}s&&s[t.styleId]===void 0&&(s[t.styleId]=t)}),new t(n,i,a,o)}function r(e){var t=e.attributes[`w:type`];return t===`numbering`?a(t,e):{type:t,styleId:o(e),name:i(e)}}function i(e){var t=e.first(`w:name`);return t?t.attributes[`w:val`]:null}function a(e,t){var n=o(t);return{type:e,numId:t.firstOrEmpty(`w:pPr`).firstOrEmpty(`w:numPr`).firstOrEmpty(`w:numId`).attributes[`w:val`],styleId:n}}function o(e){return e.attributes[`w:styleId`]}})),Cv=e.t((e=>{var t=O_(),n=k_().Result;e.createFootnotesReader=r.bind(e,`footnote`),e.createEndnotesReader=r.bind(e,`endnote`);function r(e,r){function i(t){return n.combine(t.getElementsByTagName(`w:`+e).filter(a).map(o))}function a(e){var t=e.attributes[`w:type`];return t!==`continuationSeparator`&&t!==`separator`}function o(n){var i=n.attributes[`w:id`];return r.readXmlElements(n.children).map(function(n){return t.Note({noteType:e,noteId:i,body:n})})}return i}})),wv=e.t((e=>{var t=O_(),n=k_().Result;function r(e){function r(e){return n.combine(e.getElementsByTagName(`w:comment`).map(i))}function i(n){var r=n.attributes[`w:id`];function i(e){return(n.attributes[e]||``).trim()||null}return e.readXmlElements(n.children).map(function(e){return t.comment({commentId:r,body:e,authorName:i(`w:author`),authorInitials:i(`w:initials`)})})}return r}e.createCommentsReader=r})),Tv=e.t((e=>{var t=D_();e.Files=n;function n(){function e(e){return t.reject(Error(`could not open external image: '`+e+`'
747
+ `,this.offset=`offset`in t?t.offset:0,this.dontprettytextnodes=`dontprettytextnodes`in t?t.dontprettytextnodes:0):(this.indent=``,this.newline=``,this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=`spacebeforeslash`in t?t.spacebeforeslash:``,this.spacebeforeslash===!0&&(this.spacebeforeslash=` `),this.newlinedefault=this.newline,this.prettydefault=this.pretty,r=t.writer||{},r)e.call(r,n)&&(i=r[n],this[n]=i);return this},t.prototype.space=function(e){var t;return this.pretty?(t=(e||0)+this.offset+1,t>0?Array(t).join(this.indent):``):``},t})()}).call(e)})),av=e.t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h=function(e,t){for(var n in t)g.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},g={}.hasOwnProperty;s=K_(),c=Z_(),e=W_(),n=G_(),u=U_(),f=Q_(),p=$_(),d=ev(),l=tv(),r=q_(),i=Y_(),a=J_(),o=X_(),m=iv(),t.exports=(function(t){h(m,t);function m(e){m.__super__.constructor.call(this,e)}return m.prototype.document=function(e){var t,r,i,a,o;for(this.textispresent=!1,a=``,o=e.children,r=0,i=o.length;r<i;r++)t=o[r],!(t instanceof l)&&(a+=(function(){switch(!1){case!(t instanceof s):return this.declaration(t);case!(t instanceof c):return this.docType(t);case!(t instanceof n):return this.comment(t);case!(t instanceof d):return this.processingInstruction(t);default:return this.element(t,0)}}).call(this));return this.pretty&&a.slice(-this.newline.length)===this.newline&&(a=a.slice(0,-this.newline.length)),a},m.prototype.attribute=function(e){return` `+e.name+`="`+e.value+`"`},m.prototype.cdata=function(e,t){return this.space(t)+`<![CDATA[`+e.text+`]]>`+this.newline},m.prototype.comment=function(e,t){return this.space(t)+`<!-- `+e.text+` -->`+this.newline},m.prototype.declaration=function(e,t){var n=this.space(t);return n+=`<?xml version="`+e.version+`"`,e.encoding!=null&&(n+=` encoding="`+e.encoding+`"`),e.standalone!=null&&(n+=` standalone="`+e.standalone+`"`),n+=this.spacebeforeslash+`?>`,n+=this.newline,n},m.prototype.docType=function(t,s){var c,l,u,f,p;if(s||=0,f=this.space(s),f+=`<!DOCTYPE `+t.root().name,t.pubID&&t.sysID?f+=` PUBLIC "`+t.pubID+`" "`+t.sysID+`"`:t.sysID&&(f+=` SYSTEM "`+t.sysID+`"`),t.children.length>0){for(f+=` [`,f+=this.newline,p=t.children,l=0,u=p.length;l<u;l++)c=p[l],f+=(function(){switch(!1){case!(c instanceof r):return this.dtdAttList(c,s+1);case!(c instanceof i):return this.dtdElement(c,s+1);case!(c instanceof a):return this.dtdEntity(c,s+1);case!(c instanceof o):return this.dtdNotation(c,s+1);case!(c instanceof e):return this.cdata(c,s+1);case!(c instanceof n):return this.comment(c,s+1);case!(c instanceof d):return this.processingInstruction(c,s+1);default:throw Error(`Unknown DTD node type: `+c.constructor.name)}}).call(this);f+=`]`}return f+=this.spacebeforeslash+`>`,f+=this.newline,f},m.prototype.element=function(t,r){var i,a,o,s,c,m,h,_,v,y,b,x,S;for(h in r||=0,S=!1,this.textispresent?(this.newline=``,this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),x=this.space(r),_=``,_+=x+`<`+t.name,v=t.attributes,v)g.call(v,h)&&(i=v[h],_+=this.attribute(i));if(t.children.length===0||t.children.every(function(e){return e.value===``}))this.allowEmpty?_+=`></`+t.name+`>`+this.newline:_+=this.spacebeforeslash+`/>`+this.newline;else if(this.pretty&&t.children.length===1&&t.children[0].value!=null)_+=`>`,_+=t.children[0].value,_+=`</`+t.name+`>`+this.newline;else{if(this.dontprettytextnodes){for(y=t.children,o=0,c=y.length;o<c;o++)if(a=y[o],a.value!=null){this.textispresent++,S=!0;break}}for(this.textispresent&&(this.newline=``,this.pretty=!1,x=this.space(r)),_+=`>`+this.newline,b=t.children,s=0,m=b.length;s<m;s++)a=b[s],_+=(function(){switch(!1){case!(a instanceof e):return this.cdata(a,r+1);case!(a instanceof n):return this.comment(a,r+1);case!(a instanceof u):return this.element(a,r+1);case!(a instanceof f):return this.raw(a,r+1);case!(a instanceof p):return this.text(a,r+1);case!(a instanceof d):return this.processingInstruction(a,r+1);case!(a instanceof l):return``;default:throw Error(`Unknown XML node type: `+a.constructor.name)}}).call(this);S&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),_+=x+`</`+t.name+`>`+this.newline}return _},m.prototype.processingInstruction=function(e,t){var n=this.space(t)+`<?`+e.target;return e.value&&(n+=` `+e.value),n+=this.spacebeforeslash+`?>`+this.newline,n},m.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline},m.prototype.text=function(e,t){return this.space(t)+e.value+this.newline},m.prototype.dtdAttList=function(e,t){var n=this.space(t)+`<!ATTLIST `+e.elementName+` `+e.attributeName+` `+e.attributeType;return e.defaultValueType!==`#DEFAULT`&&(n+=` `+e.defaultValueType),e.defaultValue&&(n+=` "`+e.defaultValue+`"`),n+=this.spacebeforeslash+`>`+this.newline,n},m.prototype.dtdElement=function(e,t){return this.space(t)+`<!ELEMENT `+e.name+` `+e.value+this.spacebeforeslash+`>`+this.newline},m.prototype.dtdEntity=function(e,t){var n=this.space(t)+`<!ENTITY`;return e.pe&&(n+=` %`),n+=` `+e.name,e.value?n+=` "`+e.value+`"`:(e.pubID&&e.sysID?n+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.sysID&&(n+=` SYSTEM "`+e.sysID+`"`),e.nData&&(n+=` NDATA `+e.nData)),n+=this.spacebeforeslash+`>`+this.newline,n},m.prototype.dtdNotation=function(e,t){var n=this.space(t)+`<!NOTATION `+e.name;return e.pubID&&e.sysID?n+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.pubID?n+=` PUBLIC "`+e.pubID+`"`:e.sysID&&(n+=` SYSTEM "`+e.sysID+`"`),n+=this.spacebeforeslash+`>`+this.newline,n},m.prototype.openNode=function(e,t){var n,r,i,a;if(t||=0,e instanceof u){for(r in i=this.space(t)+`<`+e.name,a=e.attributes,a)g.call(a,r)&&(n=a[r],i+=this.attribute(n));return i+=(e.children?`>`:`/>`)+this.newline,i}else return i=this.space(t)+`<!DOCTYPE `+e.rootNodeName,e.pubID&&e.sysID?i+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.sysID&&(i+=` SYSTEM "`+e.sysID+`"`),i+=(e.children?` [`:`>`)+this.newline,i},m.prototype.closeNode=function(e,t){switch(t||=0,!1){case!(e instanceof u):return this.space(t)+`</`+e.name+`>`+this.newline;case!(e instanceof c):return this.space(t)+`]>`+this.newline}},m})(m)}).call(e)})),ov=e.t(((e,t)=>{(function(){var e,n,r,i,a=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;i=V_().isPlainObject,e=nv(),r=rv(),n=av(),t.exports=(function(e){a(t,e);function t(e){t.__super__.constructor.call(this,null),this.name=`?xml`,e||={},e.writer||=new n,this.options=e,this.stringify=new r(e),this.isDocument=!0}return t.prototype.end=function(e){var t;return e?i(e)&&(t=e,e=this.options.writer.set(t)):e=this.options.writer,e.document(this)},t.prototype.toString=function(e){return this.options.writer.set(e).document(this)},t})(e)}).call(e)})),sv=e.t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x={}.hasOwnProperty;b=V_(),v=b.isObject,_=b.isFunction,y=b.isPlainObject,g=b.getValue,u=U_(),n=W_(),r=G_(),f=Q_(),h=$_(),d=ev(),c=K_(),l=Z_(),i=q_(),o=J_(),a=Y_(),s=X_(),e=H_(),m=rv(),p=av(),t.exports=(function(){function t(e,t,n){var r;this.name=`?xml`,e||={},e.writer?y(e.writer)&&(r=e.writer,e.writer=new p(r)):e.writer=new p(e),this.options=e,this.writer=e.writer,this.stringify=new m(e),this.onDataCallback=t||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.node=function(e,t,n){var r,i;if(e==null)throw Error(`Missing node name.`);if(this.root&&this.currentLevel===-1)throw Error(`Document can only have one root node. `+this.debugInfo(e));return this.openCurrent(),e=g(e),t===null&&n==null&&(r=[{},null],t=r[0],n=r[1]),t??={},t=g(t),v(t)||(i=[t,n],n=i[0],t=i[1]),this.currentNode=new u(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,n!=null&&this.text(n),this},t.prototype.element=function(e,t,n){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(e,t,n)},t.prototype.attribute=function(t,n){var r,i;if(!this.currentNode||this.currentNode.children)throw Error(`att() can only be used immediately after an ele() call in callback mode. `+this.debugInfo(t));if(t!=null&&(t=g(t)),v(t))for(r in t)x.call(t,r)&&(i=t[r],this.attribute(r,i));else _(n)&&(n=n.apply()),(!this.options.skipNullAttributes||n!=null)&&(this.currentNode.attributes[t]=new e(this,t,n));return this},t.prototype.text=function(e){var t;return this.openCurrent(),t=new h(this,e),this.onData(this.writer.text(t,this.currentLevel+1),this.currentLevel+1),this},t.prototype.cdata=function(e){var t;return this.openCurrent(),t=new n(this,e),this.onData(this.writer.cdata(t,this.currentLevel+1),this.currentLevel+1),this},t.prototype.comment=function(e){var t;return this.openCurrent(),t=new r(this,e),this.onData(this.writer.comment(t,this.currentLevel+1),this.currentLevel+1),this},t.prototype.raw=function(e){var t;return this.openCurrent(),t=new f(this,e),this.onData(this.writer.raw(t,this.currentLevel+1),this.currentLevel+1),this},t.prototype.instruction=function(e,t){var n,r,i,a,o;if(this.openCurrent(),e!=null&&(e=g(e)),t!=null&&(t=g(t)),Array.isArray(e))for(n=0,a=e.length;n<a;n++)r=e[n],this.instruction(r);else if(v(e))for(r in e)x.call(e,r)&&(i=e[r],this.instruction(r,i));else _(t)&&(t=t.apply()),o=new d(this,e,t),this.onData(this.writer.processingInstruction(o,this.currentLevel+1),this.currentLevel+1);return this},t.prototype.declaration=function(e,t,n){var r;if(this.openCurrent(),this.documentStarted)throw Error(`declaration() must be the first node.`);return r=new c(this,e,t,n),this.onData(this.writer.declaration(r,this.currentLevel+1),this.currentLevel+1),this},t.prototype.doctype=function(e,t,n){if(this.openCurrent(),e==null)throw Error(`Missing root node name.`);if(this.root)throw Error(`dtd() must come before the root node.`);return this.currentNode=new l(this,t,n),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},t.prototype.dtdElement=function(e,t){var n;return this.openCurrent(),n=new a(this,e,t),this.onData(this.writer.dtdElement(n,this.currentLevel+1),this.currentLevel+1),this},t.prototype.attList=function(e,t,n,r,a){var o;return this.openCurrent(),o=new i(this,e,t,n,r,a),this.onData(this.writer.dtdAttList(o,this.currentLevel+1),this.currentLevel+1),this},t.prototype.entity=function(e,t){var n;return this.openCurrent(),n=new o(this,!1,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1),this.currentLevel+1),this},t.prototype.pEntity=function(e,t){var n;return this.openCurrent(),n=new o(this,!0,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1),this.currentLevel+1),this},t.prototype.notation=function(e,t){var n;return this.openCurrent(),n=new s(this,e,t),this.onData(this.writer.dtdNotation(n,this.currentLevel+1),this.currentLevel+1),this},t.prototype.up=function(){if(this.currentLevel<0)throw Error(`The document node has no parent.`);return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},t.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(e){if(!e.isOpen)return!this.root&&this.currentLevel===0&&e instanceof u&&(this.root=e),this.onData(this.writer.openNode(e,this.currentLevel),this.currentLevel),e.isOpen=!0},t.prototype.closeNode=function(e){if(!e.isClosed)return this.onData(this.writer.closeNode(e,this.currentLevel),this.currentLevel),e.isClosed=!0},t.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.debugInfo=function(e){return e==null?``:`node: <`+e+`>`},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(e,t,n){return this.node(e,t,n)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},t.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)},t.prototype.e=function(e,t,n){return this.element(e,t,n)},t.prototype.n=function(e,t,n){return this.node(e,t,n)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(e,t){return this.entity(e,t)},t.prototype.pent=function(e,t){return this.pEntity(e,t)},t.prototype.not=function(e,t){return this.notation(e,t)},t})()}).call(e)})),cv=e.t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h=function(e,t){for(var n in t)g.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},g={}.hasOwnProperty;s=K_(),c=Z_(),e=W_(),n=G_(),u=U_(),f=Q_(),p=$_(),d=ev(),l=tv(),r=q_(),i=Y_(),a=J_(),o=X_(),m=iv(),t.exports=(function(t){h(m,t);function m(e,t){m.__super__.constructor.call(this,t),this.stream=e}return m.prototype.document=function(e){var t,r,i,a,o,u=e.children,f,p;for(r=0,a=u.length;r<a;r++)t=u[r],t.isLastRootNode=!1;for(e.children[e.children.length-1].isLastRootNode=!0,f=e.children,p=[],i=0,o=f.length;i<o;i++)if(t=f[i],!(t instanceof l))switch(!1){case!(t instanceof s):p.push(this.declaration(t));break;case!(t instanceof c):p.push(this.docType(t));break;case!(t instanceof n):p.push(this.comment(t));break;case!(t instanceof d):p.push(this.processingInstruction(t));break;default:p.push(this.element(t))}return p},m.prototype.attribute=function(e){return this.stream.write(` `+e.name+`="`+e.value+`"`)},m.prototype.cdata=function(e,t){return this.stream.write(this.space(t)+`<![CDATA[`+e.text+`]]>`+this.endline(e))},m.prototype.comment=function(e,t){return this.stream.write(this.space(t)+`<!-- `+e.text+` -->`+this.endline(e))},m.prototype.declaration=function(e,t){return this.stream.write(this.space(t)),this.stream.write(`<?xml version="`+e.version+`"`),e.encoding!=null&&this.stream.write(` encoding="`+e.encoding+`"`),e.standalone!=null&&this.stream.write(` standalone="`+e.standalone+`"`),this.stream.write(this.spacebeforeslash+`?>`),this.stream.write(this.endline(e))},m.prototype.docType=function(t,s){var c,l,u,f;if(s||=0,this.stream.write(this.space(s)),this.stream.write(`<!DOCTYPE `+t.root().name),t.pubID&&t.sysID?this.stream.write(` PUBLIC "`+t.pubID+`" "`+t.sysID+`"`):t.sysID&&this.stream.write(` SYSTEM "`+t.sysID+`"`),t.children.length>0){for(this.stream.write(` [`),this.stream.write(this.endline(t)),f=t.children,l=0,u=f.length;l<u;l++)switch(c=f[l],!1){case!(c instanceof r):this.dtdAttList(c,s+1);break;case!(c instanceof i):this.dtdElement(c,s+1);break;case!(c instanceof a):this.dtdEntity(c,s+1);break;case!(c instanceof o):this.dtdNotation(c,s+1);break;case!(c instanceof e):this.cdata(c,s+1);break;case!(c instanceof n):this.comment(c,s+1);break;case!(c instanceof d):this.processingInstruction(c,s+1);break;default:throw Error(`Unknown DTD node type: `+c.constructor.name)}this.stream.write(`]`)}return this.stream.write(this.spacebeforeslash+`>`),this.stream.write(this.endline(t))},m.prototype.element=function(t,r){var i,a,o,s,c,m,h,_;for(c in r||=0,_=this.space(r),this.stream.write(_+`<`+t.name),m=t.attributes,m)g.call(m,c)&&(i=m[c],this.attribute(i));if(t.children.length===0||t.children.every(function(e){return e.value===``}))this.allowEmpty?this.stream.write(`></`+t.name+`>`):this.stream.write(this.spacebeforeslash+`/>`);else if(this.pretty&&t.children.length===1&&t.children[0].value!=null)this.stream.write(`>`),this.stream.write(t.children[0].value),this.stream.write(`</`+t.name+`>`);else{for(this.stream.write(`>`+this.newline),h=t.children,o=0,s=h.length;o<s;o++)switch(a=h[o],!1){case!(a instanceof e):this.cdata(a,r+1);break;case!(a instanceof n):this.comment(a,r+1);break;case!(a instanceof u):this.element(a,r+1);break;case!(a instanceof f):this.raw(a,r+1);break;case!(a instanceof p):this.text(a,r+1);break;case!(a instanceof d):this.processingInstruction(a,r+1);break;case!(a instanceof l):break;default:throw Error(`Unknown XML node type: `+a.constructor.name)}this.stream.write(_+`</`+t.name+`>`)}return this.stream.write(this.endline(t))},m.prototype.processingInstruction=function(e,t){return this.stream.write(this.space(t)+`<?`+e.target),e.value&&this.stream.write(` `+e.value),this.stream.write(this.spacebeforeslash+`?>`+this.endline(e))},m.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},m.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},m.prototype.dtdAttList=function(e,t){return this.stream.write(this.space(t)+`<!ATTLIST `+e.elementName+` `+e.attributeName+` `+e.attributeType),e.defaultValueType!==`#DEFAULT`&&this.stream.write(` `+e.defaultValueType),e.defaultValue&&this.stream.write(` "`+e.defaultValue+`"`),this.stream.write(this.spacebeforeslash+`>`+this.endline(e))},m.prototype.dtdElement=function(e,t){return this.stream.write(this.space(t)+`<!ELEMENT `+e.name+` `+e.value),this.stream.write(this.spacebeforeslash+`>`+this.endline(e))},m.prototype.dtdEntity=function(e,t){return this.stream.write(this.space(t)+`<!ENTITY`),e.pe&&this.stream.write(` %`),this.stream.write(` `+e.name),e.value?this.stream.write(` "`+e.value+`"`):(e.pubID&&e.sysID?this.stream.write(` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`):e.sysID&&this.stream.write(` SYSTEM "`+e.sysID+`"`),e.nData&&this.stream.write(` NDATA `+e.nData)),this.stream.write(this.spacebeforeslash+`>`+this.endline(e))},m.prototype.dtdNotation=function(e,t){return this.stream.write(this.space(t)+`<!NOTATION `+e.name),e.pubID&&e.sysID?this.stream.write(` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`):e.pubID?this.stream.write(` PUBLIC "`+e.pubID+`"`):e.sysID&&this.stream.write(` SYSTEM "`+e.sysID+`"`),this.stream.write(this.spacebeforeslash+`>`+this.endline(e))},m.prototype.endline=function(e){return e.isLastRootNode?``:this.newline},m})(m)}).call(e)})),lv=e.t(((e,t)=>{(function(){var e,n,r,i,a,o,s=V_();a=s.assign,o=s.isFunction,e=ov(),n=sv(),i=av(),r=cv(),t.exports.create=function(t,n,r,i){var o,s;if(t==null)throw Error(`Root element needs a name.`);return i=a({},n,r,i),o=new e(i),s=o.element(t),i.headless||(o.declaration(i),(i.pubID!=null||i.sysID!=null)&&o.doctype(i)),s},t.exports.begin=function(t,r,i){var a;return o(t)&&(a=[t,r],r=a[0],i=a[1],t={}),r?new n(t,r,i):new e(t)},t.exports.stringWriter=function(e){return new i(e)},t.exports.streamWriter=function(e,t){return new r(e,t)}}).call(e)})),uv=e.t((t=>{var n=(Gg(),e.i(Wg)),r=lv();t.writeString=i;function i(e,t){var i=n.invert(t),o={element:c,text:a};function s(e,t){return o[t.type](e,t)}function c(e,t){var n=e.element(l(t.name),t.attributes);t.children.forEach(function(e){s(n,e)})}function l(e){var t=/^\{(.*)\}(.*)$/.exec(e);if(t){var n=i[t[1]];return n+(n===``?``:`:`)+t[2]}else return e}function u(e){var i=r.create(l(e.name),{version:`1.0`,encoding:`UTF-8`,standalone:!0});return n.forEach(t,function(e,t){var n=`xmlns`+(t===``?``:`:`+t);i.attribute(n,e)}),e.children.forEach(function(e){s(i,e)}),i.end()}return u(e)}function a(e,t){e.text(t.value)}})),dv=e.t((e=>{var t=M_();e.Element=t.Element,e.element=t.element,e.emptyElement=t.emptyElement,e.text=t.text,e.readString=B_().readString,e.writeString=uv().writeString})),fv=e.t((t=>{var n=(Gg(),e.i(Wg)),r=D_(),i=dv();t.read=o,t.readXmlFromZipFile=s;var a={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":`w`,"http://schemas.openxmlformats.org/officeDocument/2006/relationships":`r`,"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":`wp`,"http://schemas.openxmlformats.org/drawingml/2006/main":`a`,"http://schemas.openxmlformats.org/drawingml/2006/picture":`pic`,"http://purl.oclc.org/ooxml/wordprocessingml/main":`w`,"http://purl.oclc.org/ooxml/officeDocument/relationships":`r`,"http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":`wp`,"http://purl.oclc.org/ooxml/drawingml/main":`a`,"http://purl.oclc.org/ooxml/drawingml/picture":`pic`,"http://schemas.openxmlformats.org/package/2006/content-types":`content-types`,"http://schemas.openxmlformats.org/package/2006/relationships":`relationships`,"http://schemas.openxmlformats.org/markup-compatibility/2006":`mc`,"urn:schemas-microsoft-com:vml":`v`,"urn:schemas-microsoft-com:office:word":`office-word`,"http://schemas.microsoft.com/office/word/2010/wordml":`wordml`};function o(e){return i.readString(e,a).then(function(e){return l(e)[0]})}function s(e,t){return e.exists(t)?e.read(t,`utf-8`).then(c).then(o):r.resolve(null)}function c(e){return e.replace(/^\uFEFF/g,``)}function l(e){return e.type===`element`?e.name===`mc:AlternateContent`?e.firstOrEmpty(`mc:Fallback`).children:(e.children=n.flatten(e.children.map(l,!0)),[e]):[e]}})),pv=e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={SYMBOL:{32:32,33:33,34:8704,35:35,36:8707,37:37,38:38,39:8717,40:40,41:41,42:42,43:43,44:44,45:8722,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:8773,65:913,66:914,67:935,68:916,69:917,70:934,71:915,72:919,73:921,74:977,75:922,76:923,77:924,78:925,79:927,80:928,81:920,82:929,83:931,84:932,85:933,86:962,87:937,88:926,89:936,90:918,91:91,92:8756,93:93,94:8869,95:95,96:8254,97:945,98:946,99:967,100:948,101:949,102:966,103:947,104:951,105:953,106:981,107:954,108:955,109:956,110:957,111:959,112:960,113:952,114:961,115:963,116:964,117:965,118:982,119:969,120:958,121:968,122:950,123:123,124:124,125:125,126:126,160:8364,161:978,162:8242,163:8804,164:8260,165:8734,166:402,167:9827,168:9830,169:9829,170:9824,171:8596,172:8592,173:8593,174:8594,175:8595,176:176,177:177,178:8243,179:8805,180:215,181:8733,182:8706,183:8226,184:247,185:8800,186:8801,187:8776,188:8230,189:9168,190:9135,191:8629,192:8501,193:8465,194:8476,195:8472,196:8855,197:8853,198:8709,199:8745,200:8746,201:8835,202:8839,203:8836,204:8834,205:8838,206:8712,207:8713,208:8736,209:8711,210:174,211:169,212:8482,213:8719,214:8730,215:8901,216:172,217:8743,218:8744,219:8660,220:8656,221:8657,222:8658,223:8659,224:9674,225:12296,226:174,227:169,228:8482,229:8721,230:9115,231:9116,232:9117,233:9121,234:9122,235:9123,236:9127,237:9128,238:9129,239:9130,240:63743,241:12297,242:8747,243:8992,244:9134,245:8993,246:9118,247:9119,248:9120,249:9124,250:9125,251:9126,252:9131,253:9132,254:9133},WEBDINGS:{32:32,33:128375,34:128376,35:128370,36:128374,37:127942,38:127894,39:128391,40:128488,41:128489,42:128496,43:128497,44:127798,45:127895,46:128638,47:128636,48:128469,49:128470,50:128471,51:9204,52:9205,53:9206,54:9207,55:9194,56:9193,57:9198,58:9197,59:9208,60:9209,61:9210,62:128474,63:128499,64:128736,65:127959,66:127960,67:127961,68:127962,69:127964,70:127981,71:127963,72:127968,73:127958,74:127965,75:128739,76:128269,77:127956,78:128065,79:128066,80:127966,81:127957,82:128740,83:127967,84:128755,85:128364,86:128363,87:128360,88:128264,89:127892,90:127893,91:128492,92:128637,93:128493,94:128490,95:128491,96:11156,97:10004,98:128690,99:11036,100:128737,101:128230,102:128753,103:11035,104:128657,105:128712,106:128745,107:128752,108:128968,109:128372,110:11044,111:128741,112:128660,113:128472,114:128473,115:10067,116:128754,117:128647,118:128653,119:9971,120:10680,121:8854,122:128685,123:128494,124:9168,125:128495,126:128498,128:128697,129:128698,130:128713,131:128714,132:128700,133:128125,134:127947,135:9975,136:127938,137:127948,138:127946,139:127940,140:127949,141:127950,142:128664,143:128480,144:128738,145:128176,146:127991,147:128179,148:128106,149:128481,150:128482,151:128483,152:10031,153:128388,154:128389,155:128387,156:128390,157:128441,158:128442,159:128443,160:128373,161:128368,162:128445,163:128446,164:128203,165:128466,166:128467,167:128366,168:128218,169:128478,170:128479,171:128451,172:128450,173:128444,174:127917,175:127900,176:127896,177:127897,178:127911,179:128191,180:127902,181:128247,182:127903,183:127916,184:128253,185:128249,186:128254,187:128251,188:127898,189:127899,190:128250,191:128187,192:128421,193:128422,194:128423,195:128377,196:127918,197:128379,198:128380,199:128223,200:128385,201:128384,202:128424,203:128425,204:128447,205:128426,206:128476,207:128274,208:128275,209:128477,210:128229,211:128228,212:128371,213:127779,214:127780,215:127781,216:127782,217:9729,218:127784,219:127783,220:127785,221:127786,222:127788,223:127787,224:127772,225:127777,226:128715,227:128719,228:127869,229:127864,230:128718,231:128717,232:9413,233:9855,234:128710,235:128392,236:127891,237:128484,238:128485,239:128486,240:128487,241:128746,242:128063,243:128038,244:128031,245:128021,246:128008,247:128620,248:128622,249:128621,250:128623,251:128506,252:127757,253:127759,254:127758,255:128330},WINGDINGS:{32:32,33:128393,34:9986,35:9985,36:128083,37:128365,38:128366,39:128367,40:128383,41:9990,42:128386,43:128387,44:128234,45:128235,46:128236,47:128237,48:128448,49:128449,50:128462,51:128463,52:128464,53:128452,54:8987,55:128430,56:128432,57:128434,58:128435,59:128436,60:128427,61:128428,62:9991,63:9997,64:128398,65:9996,66:128399,67:128077,68:128078,69:9756,70:9758,71:9757,72:9759,73:128400,74:9786,75:128528,76:9785,77:128163,78:128369,79:127987,80:127985,81:9992,82:9788,83:127778,84:10052,85:128326,86:10014,87:128328,88:10016,89:10017,90:9770,91:9775,92:128329,93:9784,94:9800,95:9801,96:9802,97:9803,98:9804,99:9805,100:9806,101:9807,102:9808,103:9809,104:9810,105:9811,106:128624,107:128629,108:9899,109:128318,110:9724,111:128911,112:128912,113:10065,114:10066,115:128927,116:10731,117:9670,118:10070,119:11049,120:8999,121:11193,122:8984,123:127989,124:127990,125:128630,126:128631,127:9647,128:127243,129:10112,130:10113,131:10114,132:10115,133:10116,134:10117,135:10118,136:10119,137:10120,138:10121,139:127244,140:10122,141:10123,142:10124,143:10125,144:10126,145:10127,146:10128,147:10129,148:10130,149:10131,150:128610,151:128608,152:128609,153:128611,154:128606,155:128604,156:128605,157:128607,158:8729,159:8226,160:11037,161:11096,162:128902,163:128904,164:128906,165:128907,166:128319,167:9642,168:128910,169:128961,170:128965,171:9733,172:128971,173:128975,174:128979,175:128977,176:11216,177:8982,178:11214,179:11215,180:11217,181:10026,182:10032,183:128336,184:128337,185:128338,186:128339,187:128340,188:128341,189:128342,190:128343,191:128344,192:128345,193:128346,194:128347,195:11184,196:11185,197:11186,198:11187,199:11188,200:11189,201:11190,202:11191,203:128618,204:128619,205:128597,206:128596,207:128599,208:128598,209:128592,210:128593,211:128594,212:128595,213:9003,214:8998,215:11160,216:11162,217:11161,218:11163,219:11144,220:11146,221:11145,222:11147,223:129128,224:129130,225:129129,226:129131,227:129132,228:129133,229:129135,230:129134,231:129144,232:129146,233:129145,234:129147,235:129148,236:129149,237:129151,238:129150,239:8678,240:8680,241:8679,242:8681,243:11012,244:8691,245:11009,246:11008,247:11011,248:11010,249:129196,250:129197,251:128502,252:10003,253:128503,254:128505},"WINGDINGS 2":{32:32,33:128394,34:128395,35:128396,36:128397,37:9988,38:9984,39:128382,40:128381,41:128453,42:128454,43:128455,44:128456,45:128457,46:128458,47:128459,48:128460,49:128461,50:128203,51:128465,52:128468,53:128437,54:128438,55:128439,56:128440,57:128429,58:128431,59:128433,60:128402,61:128403,62:128408,63:128409,64:128410,65:128411,66:128072,67:128073,68:128412,69:128413,70:128414,71:128415,72:128416,73:128417,74:128070,75:128071,76:128418,77:128419,78:128401,79:128500,80:128504,81:128501,82:9745,83:11197,84:9746,85:11198,86:11199,87:128711,88:10680,89:128625,90:128628,91:128626,92:128627,93:8253,94:128633,95:128634,96:128635,97:128614,98:128612,99:128613,100:128615,101:128602,102:128600,103:128601,104:128603,105:9450,106:9312,107:9313,108:9314,109:9315,110:9316,111:9317,112:9318,113:9319,114:9320,115:9321,116:9471,117:10102,118:10103,119:10104,120:10105,121:10106,122:10107,123:10108,124:10109,125:10110,126:10111,128:9737,129:127765,130:9789,131:9790,132:11839,133:10013,134:128327,135:128348,136:128349,137:128350,138:128351,139:128352,140:128353,141:128354,142:128355,143:128356,144:128357,145:128358,146:128359,147:128616,148:128617,149:8901,150:128900,151:10625,152:9679,153:9675,154:128901,155:128903,156:128905,157:8857,158:10687,159:128908,160:128909,161:9726,162:9632,163:9633,164:128913,165:128914,166:128915,167:128916,168:9635,169:128917,170:128918,171:128919,172:128920,173:11049,174:11045,175:9671,176:128922,177:9672,178:128923,179:128924,180:128925,181:128926,182:11050,183:11047,184:9674,185:128928,186:9686,187:9687,188:11210,189:11211,190:11200,191:11201,192:11039,193:11202,194:11043,195:11042,196:11203,197:11204,198:128929,199:128930,200:128931,201:128932,202:128933,203:128934,204:128935,205:128936,206:128937,207:128938,208:128939,209:128940,210:128941,211:128942,212:128943,213:128944,214:128945,215:128946,216:128947,217:128948,218:128949,219:128950,220:128951,221:128952,222:128953,223:128954,224:128955,225:128956,226:128957,227:128958,228:128959,229:128960,230:128962,231:128964,232:128966,233:128969,234:128970,235:10038,236:128972,237:128974,238:128976,239:128978,240:10041,241:128963,242:128967,243:10031,244:128973,245:128980,246:11212,247:11213,248:8251,249:8258},"WINGDINGS 3":{32:32,33:11104,34:11106,35:11105,36:11107,37:11110,38:11111,39:11113,40:11112,41:11120,42:11122,43:11121,44:11123,45:11126,46:11128,47:11131,48:11133,49:11108,50:11109,51:11114,52:11116,53:11115,54:11117,55:11085,56:11168,57:11169,58:11170,59:11171,60:11172,61:11173,62:11174,63:11175,64:11152,65:11153,66:11154,67:11155,68:11136,69:11139,70:11134,71:11135,72:11140,73:11142,74:11141,75:11143,76:11151,77:11149,78:11150,79:11148,80:11118,81:11119,82:9099,83:8996,84:8963,85:8997,86:9251,87:9085,88:8682,89:11192,90:129184,91:129185,92:129186,93:129187,94:129188,95:129189,96:129190,97:129191,98:129192,99:129193,100:129194,101:129195,102:129104,103:129106,104:129105,105:129107,106:129108,107:129109,108:129111,109:129110,110:129112,111:129113,112:9650,113:9660,114:9651,115:9661,116:9664,117:9654,118:9665,119:9655,120:9699,121:9698,122:9700,123:9701,124:128896,125:128898,126:128897,128:128899,129:11205,130:11206,131:11207,132:11208,133:11164,134:11166,135:11165,136:11167,137:129040,138:129042,139:129041,140:129043,141:129044,142:129046,143:129045,144:129047,145:129048,146:129050,147:129049,148:129051,149:129052,150:129054,151:129053,152:129055,153:129024,154:129026,155:129025,156:129027,157:129028,158:129030,159:129029,160:129031,161:129032,162:129034,163:129033,164:129035,165:129056,166:129058,167:129060,168:129062,169:129064,170:129066,171:129068,172:129180,173:129181,174:129182,175:129183,176:129070,177:129072,178:129074,179:129076,180:129078,181:129080,182:129082,183:129081,184:129083,185:129176,186:129178,187:129177,188:129179,189:129084,190:129086,191:129085,192:129087,193:129088,194:129090,195:129089,196:129091,197:129092,198:129094,199:129093,200:129095,201:11176,202:11177,203:11178,204:11179,205:11180,206:11181,207:11182,208:11183,209:129120,210:129122,211:129121,212:129123,213:129124,214:129125,215:129127,216:129126,217:129136,218:129138,219:129137,220:129139,221:129140,222:129141,223:129143,224:129142,225:129152,226:129154,227:129153,228:129155,229:129156,230:129157,231:129159,232:129158,233:129168,234:129170,235:129169,236:129171,237:129172,238:129174,239:129173,240:129175}}})),mv=e.t((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.hex=e.dec=e.codePoint=void 0;var n=t(pv()),r=String.fromCodePoint?String.fromCodePoint:s;function i(e,t){var i=n.default[e.toUpperCase()];if(i!==void 0){var a=i[t];if(a!==void 0)return{codePoint:a,string:r(a)}}}e.codePoint=i;function a(e,t){return i(e,parseInt(t,10))}e.dec=a;function o(e,t){return i(e,parseInt(t,16))}e.hex=o;function s(e){if(e<=65535)return String.fromCharCode(e);var t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}})),hv=e.t((t=>{var n=(Gg(),e.i(Wg));t.paragraph=r,t.run=i,t._elements=o,t._elementsOfType=a,t.getDescendantsOfType=s,t.getDescendants=c;function r(e){return a(`paragraph`,e)}function i(e){return a(`run`,e)}function a(e,t){return o(function(n){return n.type===e?t(n):n})}function o(e){return function t(r){if(r.children){var i=n.map(r.children,t);r=n.extend(r,{children:i})}return e(r)}}function s(e,t){return c(e).filter(function(e){return e.type===t})}function c(e){var t=[];return l(e,function(e){t.push(e)}),t}function l(e,t){e.children&&e.children.forEach(function(e){l(e,t),t(e)})}})),gv=e.t((e=>{e.uriToZipEntryName=t,e.replaceFragment=n;function t(e,t){return t.charAt(0)===`/`?t.substr(1):e+`/`+t}function n(e,t){var n=e.indexOf(`#`);return n!==-1&&(e=e.substring(0,n)),e+`#`+t}})),_v=e.t((t=>{t.createBodyReader=u,t._readNumberingProperties=f;var n=mv(),r=(Gg(),e.i(Wg)),i=O_(),a=k_().Result,o=k_().warning,s=dv(),c=hv(),l=gv();function u(e){return{readXmlElement:function(t){return new d(e).readXmlElement(t)},readXmlElements:function(t){return new d(e).readXmlElements(t)}}}function d(e){var t=[],a=[],u=[],d=e.relationships,x=e.contentTypes,S=e.docxFile,C=e.files,w=e.numbering,T=e.styles;function E(e){return b(e.map(D))}function D(e){if(e.type===`element`){var t=ae[e.name];if(t)return t(e);if(!Object.prototype.hasOwnProperty.call(m,e.name))return h([o(`An unrecognised element was ignored: `+e.name)])}return g()}function O(e){return F(e).map(function(t){return{type:`paragraphProperties`,styleId:t.styleId,styleName:t.name,alignment:e.firstOrEmpty(`w:jc`).attributes[`w:val`],numbering:f(t.styleId,e.firstOrEmpty(`w:numPr`),w),indent:k(e.firstOrEmpty(`w:ind`))}})}function k(e){return{start:e.attributes[`w:start`]||e.attributes[`w:left`],end:e.attributes[`w:end`]||e.attributes[`w:right`],firstLine:e.attributes[`w:firstLine`],hanging:e.attributes[`w:hanging`]}}function A(e){return I(e).map(function(t){var n=e.firstOrEmpty(`w:sz`).attributes[`w:val`],r=/^[0-9]+$/.test(n)?parseInt(n,10)/2:null;return{type:`runProperties`,styleId:t.styleId,styleName:t.name,verticalAlignment:e.firstOrEmpty(`w:vertAlign`).attributes[`w:val`],font:e.firstOrEmpty(`w:rFonts`).attributes[`w:ascii`],fontSize:r,isBold:M(e.first(`w:b`)),isUnderline:j(e.first(`w:u`)),isItalic:M(e.first(`w:i`)),isStrikethrough:M(e.first(`w:strike`)),isAllCaps:M(e.first(`w:caps`)),isSmallCaps:M(e.first(`w:smallCaps`)),highlight:P(e.firstOrEmpty(`w:highlight`).attributes[`w:val`])}})}function j(e){if(e){var t=e.attributes[`w:val`];return t!==void 0&&t!==`false`&&t!==`0`&&t!==`none`}else return!1}function M(e){if(e){var t=e.attributes[`w:val`];return t!==`false`&&t!==`0`}else return!1}function N(e){return e!==`false`&&e!==`0`}function P(e){return!e||e===`none`?null:e}function F(e){return R(e,`w:pStyle`,`Paragraph`,T.findParagraphStyleById)}function I(e){return R(e,`w:rStyle`,`Run`,T.findCharacterStyleById)}function L(e){return R(e,`w:tblStyle`,`Table`,T.findTableStyleById)}function R(e,t,n,r){var i=[],a=e.first(t),o=null,s=null;if(a&&(o=a.attributes[`w:val`],o)){var c=r(o);c?s=c.name:i.push(ye(n,o))}return v({styleId:o,name:s},i)}function z(e){var n=e.attributes[`w:fldCharType`];if(n===`begin`)t.push({type:`begin`,fldChar:e}),a=[];else if(n===`end`){if(t.length===0)return h([o(`Ignoring complex field end character without corresponding start character`)]);var r=t.pop();if(r.type===`begin`&&(r=ee(r)),r.type===`checkbox`)return _(i.checkbox({checked:r.checked}))}else if(n===`separate`){if(t.length===0)return h([o(`Ignoring complex field separator character without corresponding start character`)]);var s=ee(t.pop());t.push(s)}return g()}function B(){var e=r.last(t.filter(function(e){return e.type===`hyperlink`}));return e?e.options:null}function ee(e){return te(a.join(``),e.type===`begin`?e.fldChar:s.emptyElement)}function te(e,t){var n=/^\s*HYPERLINK\s+(\\l\s+)?(?:"(.*)"|([^\\]\S*))/.exec(e);if(n){var r=n[2]===void 0?n[3]:n[2];return{type:`hyperlink`,options:n[1]===void 0?{href:r}:{anchor:r}}}if(/\s*FORMCHECKBOX\s*/.exec(e)){var i=t.firstOrEmpty(`w:ffData`).firstOrEmpty(`w:checkBox`);return{type:`checkbox`,checked:M(i.first(`w:checked`)??i.first(`w:default`))}}return{type:`unknown`}}function V(e){return a.push(e.text()),g()}function ne(e){var t=e.attributes[`w:font`],r=e.attributes[`w:char`],a=n.hex(t,r);return a==null&&/^F0..$/.test(r)&&(a=n.hex(t,r.substring(2))),a==null?h([o(`A w:sym element with an unsupported character was ignored: char `+r+` in font `+t)]):_(new i.Text(a.string))}function re(e){return function(t){var n=t.attributes[`w:id`];return _(new i.NoteReference({noteType:e,noteId:n}))}}function ie(e){return _(i.commentReference({commentId:e.attributes[`w:id`]}))}function H(e){return E(e.children)}var ae={"w:p":function(e){var t=e.firstOrEmpty(`w:pPr`);if(t.firstOrEmpty(`w:rPr`).first(`w:del`))return e.children.forEach(function(e){u.push(e)}),g();var n=e.children;return u.length>0&&(n=u.concat(n),u=[]),y.map(O(t),E(n),function(e,t){return new i.Paragraph(t,e)}).insertExtra()},"w:r":function(e){return y.map(A(e.firstOrEmpty(`w:rPr`)),E(e.children),function(e,t){var n=B();return n!==null&&(t=[new i.Hyperlink(t,n)]),new i.Run(t,e)})},"w:fldChar":z,"w:instrText":V,"w:t":function(e){return _(new i.Text(e.text()))},"w:tab":function(e){return _(new i.Tab)},"w:noBreakHyphen":function(){return _(new i.Text(`‑`))},"w:softHyphen":function(e){return _(new i.Text(`­`))},"w:sym":ne,"w:hyperlink":function(e){var t=e.attributes[`r:id`],n=e.attributes[`w:anchor`];return E(e.children).map(function(a){function o(t){var n=e.attributes[`w:tgtFrame`]||null;return new i.Hyperlink(a,r.extend({targetFrame:n},t))}if(t){var s=d.findTargetByRelationshipId(t);return n&&(s=l.replaceFragment(s,n)),o({href:s})}else if(n)return o({anchor:n});else return a})},"w:tbl":oe,"w:tr":ce,"w:tc":le,"w:footnoteReference":re(`footnote`),"w:endnoteReference":re(`endnote`),"w:commentReference":ie,"w:br":function(e){var t=e.attributes[`w:type`];return t==null||t===`textWrapping`?_(i.lineBreak):t===`page`?_(i.pageBreak):t===`column`?_(i.columnBreak):h([o(`Unsupported break type: `+t)])},"w:bookmarkStart":function(e){var t=e.attributes[`w:name`];return t===`_GoBack`?g():_(new i.BookmarkStart({name:t}))},"mc:AlternateContent":function(e){return H(e.firstOrEmpty(`mc:Fallback`))},"w:sdt":function(e){return E(e.firstOrEmpty(`w:sdtContent`).children).map(function(t){var n=e.firstOrEmpty(`w:sdtPr`).first(`wordml:checkbox`);if(n){var r=n.first(`wordml:checked`),a=!!r&&N(r.attributes[`wordml:val`]),o=i.checkbox({checked:a}),s=!1,l=t.map(c._elementsOfType(i.types.text,function(e){return e.value.length>0&&!s?(s=!0,o):e}));return s?l:o}else return t})},"w:ins":H,"w:object":H,"w:smartTag":H,"w:drawing":H,"w:pict":function(e){return H(e).toExtra()},"v:roundrect":H,"v:shape":H,"v:textbox":H,"w:txbxContent":H,"wp:inline":pe,"wp:anchor":pe,"v:imagedata":ge,"v:group":H,"v:rect":H};return{readXmlElement:D,readXmlElements:E};function oe(e){var t=se(e.firstOrEmpty(`w:tblPr`));return E(e.children).flatMap(de).flatMap(function(e){return t.map(function(t){return i.Table(e,t)})})}function se(e){return L(e).map(function(e){return{styleId:e.styleId,styleName:e.name}})}function ce(e){var t=e.firstOrEmpty(`w:trPr`);if(t.first(`w:del`))return g();var n=!!t.first(`w:tblHeader`);return E(e.children).map(function(e){return i.TableRow(e,{isHeader:n})})}function le(e){return E(e.children).map(function(t){var n=e.firstOrEmpty(`w:tcPr`),r=n.firstOrEmpty(`w:gridSpan`).attributes[`w:val`],a=r?parseInt(r,10):1,o=i.TableCell(t,{colSpan:a});return o._vMerge=ue(n),o})}function ue(e){var t=e.first(`w:vMerge`);if(t){var n=t.attributes[`w:val`];return n===`continue`||!n}else return null}function de(e){if(r.any(e,function(e){return e.type!==i.types.tableRow}))return fe(e),v(e,[o(`unexpected non-row element in table, cell merging may be incorrect`)]);if(r.any(e,function(e){return r.any(e.children,function(e){return e.type!==i.types.tableCell})}))return fe(e),v(e,[o(`unexpected non-cell element in table row, cell merging may be incorrect`)]);var t={};return e.forEach(function(e){var n=0;e.children.forEach(function(e){e._vMerge&&t[n]?t[n].rowSpan++:(t[n]=e,e._vMerge=!1),n+=e.colSpan})}),e.forEach(function(e){e.children=e.children.filter(function(e){return!e._vMerge}),e.children.forEach(function(e){delete e._vMerge})}),_(e)}function fe(e){e.forEach(function(e){c.getDescendantsOfType(e,i.types.tableCell).forEach(function(e){delete e._vMerge})})}function pe(e){return b(e.getElementsByTagName(`a:graphic`).getElementsByTagName(`a:graphicData`).getElementsByTagName(`pic:pic`).getElementsByTagName(`pic:blipFill`).getElementsByTagName(`a:blip`).map(me.bind(null,e)))}function me(e,t){var n=e.firstOrEmpty(`wp:docPr`),r=n.attributes,a=U(r.descr)?r.title:r.descr,s=he(t);return s===null?h([o(`Could not find image file for a:blip element`)]):ve(s,a).map(function(e){var t=n.firstOrEmpty(`a:hlinkClick`).attributes[`r:id`];if(t){var r=d.findTargetByRelationshipId(t);return new i.Hyperlink([e],{href:r})}else return e})}function U(e){return e==null||/^\s*$/.test(e)}function he(e){var t=e.attributes[`r:embed`],n=e.attributes[`r:link`];if(t)return _e(t);if(n){var r=d.findTargetByRelationshipId(n);return{path:r,read:C.read.bind(C,r)}}else return null}function ge(e){var t=e.attributes[`r:id`];return t?ve(_e(t),e.attributes[`o:title`]):h([o(`A v:imagedata element without a relationship ID was ignored`)])}function _e(e){var t=l.uriToZipEntryName(`word`,d.findTargetByRelationshipId(e));return{path:t,read:S.read.bind(S,t)}}function ve(e,t){var n=x.findContentType(e.path);return v(i.Image({readImage:e.read,altText:t,contentType:n}),p[n]?[]:o(`Image of type `+n+` is unlikely to display in web browsers`))}function ye(e,t){return o(e+` style with ID `+t+` was referenced but not defined in the document`)}}function f(e,t,n){var r=t.firstOrEmpty(`w:ilvl`).attributes[`w:val`],i=t.firstOrEmpty(`w:numId`).attributes[`w:val`];if(r!==void 0&&i!==void 0)return n.findLevel(i,r);if(e!=null){var a=n.findLevelByParagraphStyleId(e);if(a!=null)return a}return i===void 0?null:n.findLevel(i,`0`)}var p={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},m={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function h(e){return new y(null,null,e)}function g(){return new y(null)}function _(e){return new y(e)}function v(e,t){return new y(e,null,t)}function y(e,t,n){this.value=e||[],this.extra=t||[],this._result=new a({element:this.value,extra:t},n),this.messages=this._result.messages}y.prototype.toExtra=function(){return new y(null,x(this.extra,this.value),this.messages)},y.prototype.insertExtra=function(){var e=this.extra;return e&&e.length?new y(x(this.value,e),null,this.messages):this},y.prototype.map=function(e){var t=this._result.map(function(t){return e(t.element)});return new y(t.value,this.extra,t.messages)},y.prototype.flatMap=function(e){var t=this._result.flatMap(function(t){return e(t.element)._result});return new y(t.value.element,x(this.extra,t.value.extra),t.messages)},y.map=function(e,t,n){return new y(n(e.value,t.value),x(e.extra,t.extra),e.messages.concat(t.messages))};function b(e){var t=a.combine(r.pluck(e,`_result`));return new y(r.flatten(r.pluck(t.value,`element`)),r.filter(r.flatten(r.pluck(t.value,`extra`)),S),t.messages)}function x(e,t){return r.flatten([e,t])}function S(e){return e}})),vv=e.t((e=>{e.DocumentXmlReader=r;var t=O_(),n=k_().Result;function r(e){var r=e.bodyReader;function i(i){var a=i.first(`w:body`);if(a==null)throw Error(`Could not find the body element: are you sure this is a docx file?`);var o=r.readXmlElements(a.children).map(function(n){return new t.Document(n,{notes:e.notes,comments:e.comments})});return new n(o.value,o.messages)}return{convertXmlToDocument:i}}})),yv=e.t((e=>{e.readRelationships=t,e.defaultValue=new n([]),e.Relationships=n;function t(e){var t=[];return e.children.forEach(function(e){if(e.name===`relationships:Relationship`){var n={relationshipId:e.attributes.Id,target:e.attributes.Target,type:e.attributes.Type};t.push(n)}}),new n(t)}function n(e){var t=Object.create(null);e.forEach(function(e){t[e.relationshipId]=e.target});var n=Object.create(null);return e.forEach(function(e){n[e.type]||(n[e.type]=[]),n[e.type].push(e.target)}),{findTargetByRelationshipId:function(e){return t[e]},findTargetsByType:function(e){return n[e]||[]}}}})),bv=e.t((e=>{e.readContentTypesFromXml=n;var t={png:`png`,gif:`gif`,jpeg:`jpeg`,jpg:`jpeg`,tif:`tiff`,tiff:`tiff`,bmp:`bmp`};e.defaultContentTypes=r({},{});function n(e){var t=Object.create(null),n=Object.create(null);return e.children.forEach(function(e){if(e.name===`content-types:Default`&&(t[e.attributes.Extension]=e.attributes.ContentType),e.name===`content-types:Override`){var r=e.attributes.PartName;r.charAt(0)===`/`&&(r=r.substring(1)),n[r]=e.attributes.ContentType}}),r(n,t)}function r(e,n){return{findContentType:function(r){var i=e[r];if(i)return i;var a=r.split(`.`),o=a[a.length-1];if(Object.prototype.hasOwnProperty.call(n,o))return n[o];var s=t[o.toLowerCase()];return s?`image/`+s:null}}}})),xv=e.t((t=>{var n=(Gg(),e.i(Wg));t.readNumberingXml=i,t.Numbering=r,t.defaultNumbering=new r({},{});function r(e,t,r){var i=n.flatten(n.values(t).map(function(e){return n.values(e.levels)})),a=n.indexBy(i.filter(function(e){return e.paragraphStyleId!=null}),`paragraphStyleId`);function o(e,t){return s(e,t,Object.create(null))}function s(n,i,a){if(a[n])return null;a[n]=!0;var o=e[n];if(!o)return null;var c=t[o.abstractNumId];return c?c.numStyleLink==null?t[o.abstractNumId].levels[i]:s(r.findNumberingStyleById(c.numStyleLink).numId,i,a):null}function c(e){return a[e]||null}return{findLevel:o,findLevelByParagraphStyleId:c}}function i(e,t){if(!t||!t.styles)throw Error(`styles is missing`);var n=a(e);return new r(s(e,n),n,t.styles)}function a(e){var t=Object.create(null);return e.getElementsByTagName(`w:abstractNum`).forEach(function(e){var n=e.attributes[`w:abstractNumId`];t[n]=o(e)}),t}function o(e){var t=Object.create(null),n=null;return e.getElementsByTagName(`w:lvl`).forEach(function(e){var r=e.attributes[`w:ilvl`],i=e.firstOrEmpty(`w:numFmt`).attributes[`w:val`]!==`bullet`,a=e.firstOrEmpty(`w:pStyle`).attributes[`w:val`];r===void 0?n={isOrdered:i,level:`0`,paragraphStyleId:a}:t[r]={isOrdered:i,level:r,paragraphStyleId:a}}),n!==null&&t[n.level]===void 0&&(t[n.level]=n),{levels:t,numStyleLink:e.firstOrEmpty(`w:numStyleLink`).attributes[`w:val`]}}function s(e){var t=Object.create(null);return e.getElementsByTagName(`w:num`).forEach(function(e){var n=e.attributes[`w:numId`];t[n]={abstractNumId:e.first(`w:abstractNumId`).attributes[`w:val`]}}),t}})),Sv=e.t((e=>{e.readStylesXml=n,e.Styles=t,e.defaultStyles=new t({},{});function t(e,t,n,r){return{findParagraphStyleById:function(t){return e[t]},findCharacterStyleById:function(e){return t[e]},findTableStyleById:function(e){return n[e]},findNumberingStyleById:function(e){return r[e]}}}t.EMPTY=new t({},{},{},{});function n(e){var n=Object.create(null),i=Object.create(null),a=Object.create(null),o=Object.create(null);return e.getElementsByTagName(`w:style`).forEach(function(e){var t=r(e),s;switch(t.type){case`paragraph`:s=n;break;case`character`:s=i;break;case`table`:s=a;break;case`numbering`:s=o;break}s&&s[t.styleId]===void 0&&(s[t.styleId]=t)}),new t(n,i,a,o)}function r(e){var t=e.attributes[`w:type`];return t===`numbering`?a(t,e):{type:t,styleId:o(e),name:i(e)}}function i(e){var t=e.first(`w:name`);return t?t.attributes[`w:val`]:null}function a(e,t){var n=o(t);return{type:e,numId:t.firstOrEmpty(`w:pPr`).firstOrEmpty(`w:numPr`).firstOrEmpty(`w:numId`).attributes[`w:val`],styleId:n}}function o(e){return e.attributes[`w:styleId`]}})),Cv=e.t((e=>{var t=O_(),n=k_().Result;e.createFootnotesReader=r.bind(e,`footnote`),e.createEndnotesReader=r.bind(e,`endnote`);function r(e,r){function i(t){return n.combine(t.getElementsByTagName(`w:`+e).filter(a).map(o))}function a(e){var t=e.attributes[`w:type`];return t!==`continuationSeparator`&&t!==`separator`}function o(n){var i=n.attributes[`w:id`];return r.readXmlElements(n.children).map(function(n){return t.Note({noteType:e,noteId:i,body:n})})}return i}})),wv=e.t((e=>{var t=O_(),n=k_().Result;function r(e){function r(e){return n.combine(e.getElementsByTagName(`w:comment`).map(i))}function i(n){var r=n.attributes[`w:id`];function i(e){return(n.attributes[e]||``).trim()||null}return e.readXmlElements(n.children).map(function(e){return t.comment({commentId:r,body:e,authorName:i(`w:author`),authorInitials:i(`w:initials`)})})}return r}e.createCommentsReader=r})),Tv=e.t((e=>{var t=D_();e.Files=n;function n(){function e(e){return t.reject(Error(`could not open external image: '`+e+`'
748
748
  cannot open linked files from a web browser`))}return{read:e}}})),Ev=e.t((e=>{e.read=h,e._findPartPaths=g;var t=D_(),n=O_(),r=k_().Result,i=j_(),a=fv().readXmlFromZipFile,o=_v().createBodyReader,s=vv().DocumentXmlReader,c=yv(),l=bv(),u=xv(),d=Sv(),f=Cv(),p=wv(),m=Tv().Files;function h(e,i,a){i||={},a||={};var o=new m({externalFileAccess:a.externalFileAccess,relativeToFile:i.path});return t.props({contentTypes:S(e),partPaths:g(e),docxFile:e,files:o}).also(function(t){return{styles:w(e,t.partPaths.styles)}}).also(function(t){return{numbering:C(e,t.partPaths.numbering,t.styles)}}).also(function(e){return{footnotes:b(e.partPaths.footnotes,e,function(e,t){return t?f.createFootnotesReader(e)(t):new r([])}),endnotes:b(e.partPaths.endnotes,e,function(e,t){return t?f.createEndnotesReader(e)(t):new r([])}),comments:b(e.partPaths.comments,e,function(e,t){return t?p.createCommentsReader(e)(t):new r([])})}}).also(function(e){return{notes:e.footnotes.flatMap(function(t){return e.endnotes.map(function(e){return new n.Notes(t.concat(e))})})}}).then(function(e){return b(e.partPaths.mainDocument,e,function(t,n){return e.notes.flatMap(function(r){return e.comments.flatMap(function(e){return new s({bodyReader:t,notes:r,comments:e}).convertXmlToDocument(n)})})})})}function g(e){return T(e).then(function(t){var n=_({docxFile:e,relationships:t,relationshipType:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`,basePath:``,fallbackPath:`word/document.xml`});if(!e.exists(n))throw Error(`Could not find main document part. Are you sure this is a valid .docx file?`);return y({filename:x(n),readElement:c.readRelationships,defaultValue:c.defaultValue})(e).then(function(t){function r(r){return _({docxFile:e,relationships:t,relationshipType:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/`+r,basePath:i.splitPath(n).dirname,fallbackPath:`word/`+r+`.xml`})}return{mainDocument:n,comments:r(`comments`),endnotes:r(`endnotes`),footnotes:r(`footnotes`),numbering:r(`numbering`),styles:r(`styles`)}})})}function _(e){var t=e.docxFile,n=e.relationships,r=e.relationshipType,a=e.basePath,o=e.fallbackPath,s=n.findTargetsByType(r).map(function(e){return v(i.joinPath(a,e),`/`)}).filter(function(e){return t.exists(e)});return s.length===0?o:s[0]}function v(e,t){return e.substring(0,t.length)===t?e.substring(t.length):e}function y(e){return function(t){return a(t,e.filename).then(function(t){return t?e.readElement(t):e.defaultValue})}}function b(e,t,n){return y({filename:x(e),readElement:c.readRelationships,defaultValue:c.defaultValue})(t.docxFile).then(function(r){var i=new o({relationships:r,contentTypes:t.contentTypes,docxFile:t.docxFile,numbering:t.numbering,styles:t.styles,files:t.files});return a(t.docxFile,e).then(function(e){return n(i,e)})})}function x(e){var t=i.splitPath(e);return i.joinPath(t.dirname,`_rels`,t.basename+`.rels`)}var S=y({filename:`[Content_Types].xml`,readElement:l.readContentTypesFromXml,defaultValue:l.defaultContentTypes});function C(e,t,n){return y({filename:t,readElement:function(e){return u.readNumberingXml(e,{styles:n})},defaultValue:u.defaultNumbering})(e)}function w(e,t){return y({filename:t,readElement:d.readStylesXml,defaultValue:d.defaultStyles})(e)}var T=y({filename:`_rels/.rels`,readElement:c.readRelationships,defaultValue:c.defaultValue})})),Dv=e.t((t=>{var n=(Gg(),e.i(Wg)),r=D_(),i=dv();t.writeStyleMap=c,t.readStyleMap=f;var a=`http://schemas.zwobble.org/mammoth/style-map`,o=`mammoth/style-map`,s=`/`+o;function c(e,t){return e.write(o,t),l(e).then(function(){return u(e)})}function l(e){var t=`word/_rels/document.xml.rels`,n=`http://schemas.openxmlformats.org/package/2006/relationships`,r=`{`+n+`}Relationship`;return e.read(t,`utf8`).then(i.readString).then(function(o){var c=o.children;d(c,r,`Id`,{Id:`rMammothStyleMap`,Type:a,Target:s});var l={"":n};return e.write(t,i.writeString(o,l))})}function u(e){var t=`[Content_Types].xml`,n=`http://schemas.openxmlformats.org/package/2006/content-types`,r=`{`+n+`}Override`;return e.read(t,`utf8`).then(i.readString).then(function(a){var o=a.children;d(o,r,`PartName`,{PartName:s,ContentType:`text/prs.mammoth.style-map`});var c={"":n};return e.write(t,i.writeString(a,c))})}function d(e,t,r,a){var o=n.find(e,function(e){return e.name===t&&e.attributes[r]===a[r]});o?o.attributes=a:e.push(i.element(t,a))}function f(e){return e.exists(o)?e.read(o,`utf8`):r.resolve(null)}})),Ov=e.t((e=>{var t=jv();function n(e,n,r){return i(t.element(e,n,{fresh:!1}),r)}function r(e,n,r){return i(t.element(e,n,{fresh:!0}),r)}function i(e,t){return{type:`element`,tag:e,children:t||[]}}function a(e){return{type:`text`,value:e}}e.freshElement=r,e.nonFreshElement=n,e.elementWithTag=i,e.text=a,e.forceWrite={type:`forceWrite`};var o={br:!0,hr:!0,img:!0,input:!0};function s(e){return e.children.length===0&&o[e.tag.tagName]}e.isVoidElement=s})),kv=e.t(((t,n)=>{var r=(Gg(),e.i(Wg)),i=Ov();function a(e){return o(f(e))}function o(e){var t=[];return e.map(s).forEach(function(e){d(t,e)}),t}function s(e){return c[e.type](e)}var c={element:l,text:u,forceWrite:u};function l(e){return i.elementWithTag(e.tag,o(e.children))}function u(e){return e}function d(e,t){var n=e[e.length-1];t.type===`element`&&!t.tag.fresh&&n&&n.type===`element`&&t.tag.matchesElement(n.tag)?(t.tag.separator&&d(n.children,i.text(t.tag.separator)),t.children.forEach(function(e){d(n.children,e)})):e.push(t)}function f(e){return p(e,function(e){return m[e.type](e)})}function p(e,t){return r.flatten(r.map(e,t),!0)}var m={element:g,text:_,forceWrite:h};function h(e){return[e]}function g(e){var t=f(e.children);return t.length===0&&!i.isVoidElement(e)?[]:[i.elementWithTag(e.tag,t)]}function _(e){return e.value.length===0?[]:[e]}n.exports=a})),Av=e.t((e=>{var t=Ov();e.freshElement=t.freshElement,e.nonFreshElement=t.nonFreshElement,e.elementWithTag=t.elementWithTag,e.text=t.text,e.forceWrite=t.forceWrite,e.simplify=kv();function n(e,t){t.forEach(function(t){r(e,t)})}function r(e,t){i[t.type](e,t)}var i={element:a,text:o,forceWrite:function(){}};function a(e,r){t.isVoidElement(r)?e.selfClosing(r.tag.tagName,r.tag.attributes):(e.open(r.tag.tagName,r.tag.attributes),n(e,r.children),e.close(r.tag.tagName))}function o(e,t){e.text(t.value)}e.write=n})),jv=e.t((t=>{var n=(Gg(),e.i(Wg)),r=Av();t.topLevelElement=i,t.elements=a,t.element=s;function i(e,t){return a([s(e,t,{fresh:!0})])}function a(e){return new o(e.map(function(e){return n.isString(e)?s(e):e}))}function o(e){this._elements=e}o.prototype.wrap=function(e){for(var t=e(),n=this._elements.length-1;n>=0;n--)t=this._elements[n].wrapNodes(t);return t};function s(e,t,n){return n||={},new c(e,t,n)}function c(e,t,r){var i=Object.create(null);n.isArray(e)?(e.forEach(function(e){i[e]=!0}),e=e[0]):i[e]=!0,this.tagName=e,this.tagNames=i,this.attributes=t||{},this.fresh=r.fresh,this.separator=r.separator}c.prototype.matchesElement=function(e){return this.tagNames[e.tagName]&&n.isEqual(this.attributes||{},e.attributes||{})},c.prototype.wrap=function(e){return this.wrapNodes(e())},c.prototype.wrapNodes=function(e){return[r.elementWithTag(this,e)]},t.empty=a([]),t.ignore={wrap:function(){return[]}}})),Mv=e.t((t=>{var n=(Gg(),e.i(Wg)),r=D_(),i=Av();t.imgElement=a;function a(e){return function(t,a){return r.when(e(t)).then(function(e){var r={};return t.altText&&(r.alt=t.altText),n.extend(r,e),[i.freshElement(`img`,r)]})}}t.inline=t.imgElement,t.dataUri=a(function(e){return e.readAsBase64String().then(function(t){return{src:`data:`+e.contentType+`;base64,`+t}})});function o(e){return e.contentType.split(/\/|\\/)[1]}t.imageFilenameExtension=o})),Nv=e.t((t=>{var n=(Gg(),e.i(Wg));t.writer=r;function r(e){return e||={},e.prettyPrint?a():o()}var i={div:!0,p:!0,ul:!0,li:!0};function a(){var e=0,t=[],r=!0,a=!1,s=o();function c(n,a){i[n]&&m(),t.push(n),s.open(n,a),i[n]&&e++,r=!1}function l(n){i[n]&&(e--,m()),t.pop(),s.close(n)}function u(e){p();var t=h()?e:e.replace(`
749
749
  `,`
750
750
  `);s.text(t)}function d(e,t){m(),s.selfClosing(e,t)}function f(){return t.length===0||i[t[t.length-1]]}function p(){a||=(m(),!0)}function m(){if(a=!1,!r&&f()&&!h()){s._append(`
@@ -756,7 +756,7 @@ cannot open linked files from a web browser`))}return{read:e}}})),Ev=e.t((e=>{e.
756
756
  `),br:i(``,`
757
757
  `),ul:s({isOrdered:!1}),ol:s({isOrdered:!0}),li:c,strong:r(`__`),em:r(`*`),a,img:o};(function(){for(var e=1;e<=6;e++)l[`h`+e]=i(u(`#`,e)+` `,`
758
758
 
759
- `)})();function u(e,t){return Array(t+1).join(e)}function d(){var e=[],t=[],r=null,i={};function a(n,a){a||={};var s=(l[n]||function(){return{}})(a,r,i);t.push({end:s.end,list:r}),s.list&&(r=s.list);var c=s.anchorPosition===`before`;c&&o(a),e.push(s.start||``),c||o(a)}function o(t){t.id&&e.push(`<a id="`+t.id+`"></a>`)}function s(i){var a=t.pop();r=a.list;var o=n.isFunction(a.end)?a.end():a.end;e.push(o||``)}function c(e,t){a(e,t),s(e)}function u(t){e.push(f(t))}function d(){return e.join(``)}return{asString:d,open:a,close:s,text:u,selfClosing:c}}t.writer=d;function f(e){return e.replace(/\\/g,`\\\\`).replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,`\\$1`)}})),Fv=e.t((e=>{var t=Nv(),n=Pv();e.writer=r;function r(e){return e||={},e.outputFormat===`markdown`?n.writer():t.writer(e)}})),Iv=e.t((t=>{var n=(Gg(),e.i(Wg)),r=D_(),i=O_(),a=jv(),o=k_(),s=Mv(),c=Av(),l=Fv();t.DocumentConverter=u;function u(e){return{convertToHtml:function(t){return new d(e,n.indexBy(t.type===i.types.document?t.comments:[],`commentId`)).convertToHtml(t)}}}function d(e,t){var u=1,d=[],f=[];e=n.extend({ignoreEmptyParagraphs:!0},e);var v=e.idPrefix===void 0?``:e.idPrefix,y=e.ignoreEmptyParagraphs,b=a.topLevelElement(`p`),x=e.styleMap||[];function S(t){var i=[],a=w(t,i,Object.create(null)),s=[];g(a,function(e){e.type===`deferred`&&s.push(e)});var u=Object.create(null);return r.mapSeries(s,function(e){return e.value().then(function(t){u[e.id]=t})}).then(function(){function t(e){return h(e,function(e){return e.type===`deferred`?u[e.id]:e.children?[n.extend({},e,{children:t(e.children)})]:[e]})}var r=l.writer({prettyPrint:e.prettyPrint,outputFormat:e.outputFormat});return c.write(r,c.simplify(t(a))),new o.Result(r.asString(),i)})}function C(e,t,n){return h(e,function(e){return w(e,t,n)})}function w(e,t,n){if(!n)throw Error(`options not set`);var r=H[e.type];return r?r(e,t,n):[]}function T(e,t,n){return E(e,t).wrap(function(){var r=C(e.children,t,n);return y?r:[c.forceWrite].concat(r)})}function E(e,t){var n=A(e);return n?n.to:(e.styleId&&t.push(m(`paragraph`,e)),b)}function D(e,t,n){var r=function(){return C(e.children,t,n)},o=[];if(e.highlight!==null){var s=k({type:`highlight`,color:e.highlight});s&&o.push(s)}e.isSmallCaps&&o.push(O(`smallCaps`)),e.isAllCaps&&o.push(O(`allCaps`)),e.isStrikethrough&&o.push(O(`strikethrough`,`s`)),e.isUnderline&&o.push(O(`underline`)),e.verticalAlignment===i.verticalAlignment.subscript&&o.push(a.element(`sub`,{},{fresh:!1})),e.verticalAlignment===i.verticalAlignment.superscript&&o.push(a.element(`sup`,{},{fresh:!1})),e.isItalic&&o.push(O(`italic`,`em`)),e.isBold&&o.push(O(`bold`,`strong`));var c=a.empty,l=A(e);return l?c=l.to:e.styleId&&t.push(m(`run`,e)),o.push(c),o.forEach(function(e){r=e.wrap.bind(e,r)}),r()}function O(e,t){return k({type:e})||(t?a.element(t,{},{fresh:!1}):a.empty)}function k(e,t){var n=A(e);return n?n.to:t}function A(e){for(var t=0;t<x.length;t++)if(x[t].from.matches(e))return x[t]}function j(e){return function(t,n){return r.attempt(function(){return e(t,n)}).caught(function(e){return n.push(o.error(e)),[]})}}function M(e){return P(e.noteType,e.noteId)}function N(e){return F(e.noteType,e.noteId)}function P(e,t){return I(e+`-`+t)}function F(e,t){return I(e+`-ref-`+t)}function I(e){return v+e}var L=a.elements([a.element(`table`,{},{fresh:!0})]);function R(e,t,n){return k(e,L).wrap(function(){return z(e,t,n)})}function z(e,t,r){var a=n.findIndex(e.children,function(e){return!e.type===i.types.tableRow||!e.isHeader});a===-1&&(a=e.children.length);var o;if(a===0)o=C(e.children,t,n.extend({},r,{isTableHeader:!1}));else{var s=C(e.children.slice(0,a),t,n.extend({},r,{isTableHeader:!0})),l=C(e.children.slice(a),t,n.extend({},r,{isTableHeader:!1}));o=[c.freshElement(`thead`,{},s),c.freshElement(`tbody`,{},l)]}return[c.forceWrite].concat(o)}function B(e,t,n){var r=C(e.children,t,n);return[c.freshElement(`tr`,{},[c.forceWrite].concat(r))]}function ee(e,t,n){var r=n.isTableHeader?`th`:`td`,i=C(e.children,t,n),a={};return e.colSpan!==1&&(a.colspan=e.colSpan.toString()),e.rowSpan!==1&&(a.rowspan=e.rowSpan.toString()),[c.freshElement(r,a,[c.forceWrite].concat(i))]}function te(e,n,r){return k(e,a.ignore).wrap(function(){var n=t[e.commentId],r=f.length+1,i=`[`+_(n)+r+`]`;return f.push({label:i,comment:n}),[c.freshElement(`a`,{href:`#`+P(`comment`,e.commentId),id:F(`comment`,e.commentId)},[c.text(i)])]})}function V(e,t,n){var r=e.label,i=e.comment,a=C(i.body,t,n).concat([c.nonFreshElement(`p`,{},[c.text(` `),c.freshElement(`a`,{href:`#`+F(`comment`,i.commentId)},[c.text(`↑`)])])]);return[c.freshElement(`dt`,{id:P(`comment`,i.commentId)},[c.text(`Comment `+r)]),c.freshElement(`dd`,{},a)]}function ne(e,t,n){return re(e).wrap(function(){return[]})}function re(e){var t=A(e);return t?t.to:e.breakType===`line`?a.topLevelElement(`br`):a.empty}var H={document:function(e,t,n){var r=C(e.children,t,n),i=C(d.map(function(t){return e.notes.resolve(t)}),t,n);return r.concat([c.freshElement(`ol`,{},i),c.freshElement(`dl`,{},h(f,function(e){return V(e,t,n)}))])},paragraph:T,run:D,text:function(e,t,n){return[c.text(e.value)]},tab:function(e,t,n){return[c.text(` `)]},hyperlink:function(e,t,n){var r={href:e.anchor?`#`+I(e.anchor):e.href};e.targetFrame!=null&&(r.target=e.targetFrame);var i=C(e.children,t,n);return[c.nonFreshElement(`a`,r,i)]},checkbox:function(e){var t={type:`checkbox`};return e.checked&&(t.checked=`checked`),[c.freshElement(`input`,t)]},bookmarkStart:function(e,t,n){return[c.freshElement(`a`,{id:I(e.name)},[c.forceWrite])]},noteReference:function(e,t,n){d.push(e);var r=c.freshElement(`a`,{href:`#`+M(e),id:N(e)},[c.text(`[`+u+++`]`)]);return[c.freshElement(`sup`,{},[r])]},note:function(e,t,n){var r=C(e.body,t,n),i=c.elementWithTag(a.element(`p`,{},{fresh:!1}),[c.text(` `),c.freshElement(`a`,{href:`#`+N(e)},[c.text(`↑`)])]),o=r.concat([i]);return c.freshElement(`li`,{id:M(e)},o)},commentReference:te,comment:V,image:p(j(e.convertImage||s.dataUri)),table:R,tableRow:B,tableCell:ee,break:ne};return{convertToHtml:S}}var f=1;function p(e){return function(t,n,r){return[{type:`deferred`,id:f++,value:function(){return e(t,n,r)}}]}}function m(e,t){return o.warning(`Unrecognised `+e+` style: '`+t.styleName+`' (Style ID: `+t.styleId+`)`)}function h(e,t){return n.flatten(e.map(t),!0)}function g(e,t){e.forEach(function(e){t(e),e.children&&g(e.children,t)})}var _=t.commentAuthorLabel=function(e){return e.authorInitials||``}})),Lv=e.t((e=>{var t=O_();function n(e){if(e.type===`text`)return e.value;if(e.type===t.types.tab)return` `;var r=e.type===`paragraph`?`
759
+ `)})();function u(e,t){return Array(t+1).join(e)}function d(){var e=[],t=[],r=null,i={};function a(n,a){a||={};var s=(l[n]||function(){return{}})(a,r,i);t.push({end:s.end,list:r}),s.list&&(r=s.list);var c=s.anchorPosition===`before`;c&&o(a),e.push(s.start||``),c||o(a)}function o(t){t.id&&e.push(`<a id="`+t.id+`"></a>`)}function s(i){var a=t.pop();r=a.list;var o=n.isFunction(a.end)?a.end():a.end;e.push(o||``)}function c(e,t){a(e,t),s(e)}function u(t){e.push(f(t))}function d(){return e.join(``)}return{asString:d,open:a,close:s,text:u,selfClosing:c}}t.writer=d;function f(e){return e.replace(/\\/g,`\\\\`).replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,`\\$1`)}})),Fv=e.t((e=>{var t=Nv(),n=Pv();e.writer=r;function r(e){return e||={},e.outputFormat===`markdown`?n.writer():t.writer(e)}})),Iv=e.t((t=>{var n=(Gg(),e.i(Wg)),r=D_(),i=O_(),a=jv(),o=k_(),s=Mv(),c=Av(),l=Fv();t.DocumentConverter=u;function u(e){return{convertToHtml:function(t){return new d(e,n.indexBy(t.type===i.types.document?t.comments:[],`commentId`)).convertToHtml(t)}}}function d(e,t){var u=1,d=[],f=[];e=n.extend({ignoreEmptyParagraphs:!0},e);var v=e.idPrefix===void 0?``:e.idPrefix,y=e.ignoreEmptyParagraphs,b=a.topLevelElement(`p`),x=e.styleMap||[];function S(t){var i=[],a=w(t,i,Object.create(null)),s=[];g(a,function(e){e.type===`deferred`&&s.push(e)});var u=Object.create(null);return r.mapSeries(s,function(e){return e.value().then(function(t){u[e.id]=t})}).then(function(){function t(e){return h(e,function(e){return e.type===`deferred`?u[e.id]:e.children?[n.extend({},e,{children:t(e.children)})]:[e]})}var r=l.writer({prettyPrint:e.prettyPrint,outputFormat:e.outputFormat});return c.write(r,c.simplify(t(a))),new o.Result(r.asString(),i)})}function C(e,t,n){return h(e,function(e){return w(e,t,n)})}function w(e,t,n){if(!n)throw Error(`options not set`);var r=ie[e.type];return r?r(e,t,n):[]}function T(e,t,n){return E(e,t).wrap(function(){var r=C(e.children,t,n);return y?r:[c.forceWrite].concat(r)})}function E(e,t){var n=A(e);return n?n.to:(e.styleId&&t.push(m(`paragraph`,e)),b)}function D(e,t,n){var r=function(){return C(e.children,t,n)},o=[];if(e.highlight!==null){var s=k({type:`highlight`,color:e.highlight});s&&o.push(s)}e.isSmallCaps&&o.push(O(`smallCaps`)),e.isAllCaps&&o.push(O(`allCaps`)),e.isStrikethrough&&o.push(O(`strikethrough`,`s`)),e.isUnderline&&o.push(O(`underline`)),e.verticalAlignment===i.verticalAlignment.subscript&&o.push(a.element(`sub`,{},{fresh:!1})),e.verticalAlignment===i.verticalAlignment.superscript&&o.push(a.element(`sup`,{},{fresh:!1})),e.isItalic&&o.push(O(`italic`,`em`)),e.isBold&&o.push(O(`bold`,`strong`));var c=a.empty,l=A(e);return l?c=l.to:e.styleId&&t.push(m(`run`,e)),o.push(c),o.forEach(function(e){r=e.wrap.bind(e,r)}),r()}function O(e,t){return k({type:e})||(t?a.element(t,{},{fresh:!1}):a.empty)}function k(e,t){var n=A(e);return n?n.to:t}function A(e){for(var t=0;t<x.length;t++)if(x[t].from.matches(e))return x[t]}function j(e){return function(t,n){return r.attempt(function(){return e(t,n)}).caught(function(e){return n.push(o.error(e)),[]})}}function M(e){return P(e.noteType,e.noteId)}function N(e){return F(e.noteType,e.noteId)}function P(e,t){return I(e+`-`+t)}function F(e,t){return I(e+`-ref-`+t)}function I(e){return v+e}var L=a.elements([a.element(`table`,{},{fresh:!0})]);function R(e,t,n){return k(e,L).wrap(function(){return z(e,t,n)})}function z(e,t,r){var a=n.findIndex(e.children,function(e){return!e.type===i.types.tableRow||!e.isHeader});a===-1&&(a=e.children.length);var o;if(a===0)o=C(e.children,t,n.extend({},r,{isTableHeader:!1}));else{var s=C(e.children.slice(0,a),t,n.extend({},r,{isTableHeader:!0})),l=C(e.children.slice(a),t,n.extend({},r,{isTableHeader:!1}));o=[c.freshElement(`thead`,{},s),c.freshElement(`tbody`,{},l)]}return[c.forceWrite].concat(o)}function B(e,t,n){var r=C(e.children,t,n);return[c.freshElement(`tr`,{},[c.forceWrite].concat(r))]}function ee(e,t,n){var r=n.isTableHeader?`th`:`td`,i=C(e.children,t,n),a={};return e.colSpan!==1&&(a.colspan=e.colSpan.toString()),e.rowSpan!==1&&(a.rowspan=e.rowSpan.toString()),[c.freshElement(r,a,[c.forceWrite].concat(i))]}function te(e,n,r){return k(e,a.ignore).wrap(function(){var n=t[e.commentId],r=f.length+1,i=`[`+_(n)+r+`]`;return f.push({label:i,comment:n}),[c.freshElement(`a`,{href:`#`+P(`comment`,e.commentId),id:F(`comment`,e.commentId)},[c.text(i)])]})}function V(e,t,n){var r=e.label,i=e.comment,a=C(i.body,t,n).concat([c.nonFreshElement(`p`,{},[c.text(` `),c.freshElement(`a`,{href:`#`+F(`comment`,i.commentId)},[c.text(`↑`)])])]);return[c.freshElement(`dt`,{id:P(`comment`,i.commentId)},[c.text(`Comment `+r)]),c.freshElement(`dd`,{},a)]}function ne(e,t,n){return re(e).wrap(function(){return[]})}function re(e){var t=A(e);return t?t.to:e.breakType===`line`?a.topLevelElement(`br`):a.empty}var ie={document:function(e,t,n){var r=C(e.children,t,n),i=C(d.map(function(t){return e.notes.resolve(t)}),t,n);return r.concat([c.freshElement(`ol`,{},i),c.freshElement(`dl`,{},h(f,function(e){return V(e,t,n)}))])},paragraph:T,run:D,text:function(e,t,n){return[c.text(e.value)]},tab:function(e,t,n){return[c.text(` `)]},hyperlink:function(e,t,n){var r={href:e.anchor?`#`+I(e.anchor):e.href};e.targetFrame!=null&&(r.target=e.targetFrame);var i=C(e.children,t,n);return[c.nonFreshElement(`a`,r,i)]},checkbox:function(e){var t={type:`checkbox`};return e.checked&&(t.checked=`checked`),[c.freshElement(`input`,t)]},bookmarkStart:function(e,t,n){return[c.freshElement(`a`,{id:I(e.name)},[c.forceWrite])]},noteReference:function(e,t,n){d.push(e);var r=c.freshElement(`a`,{href:`#`+M(e),id:N(e)},[c.text(`[`+u+++`]`)]);return[c.freshElement(`sup`,{},[r])]},note:function(e,t,n){var r=C(e.body,t,n),i=c.elementWithTag(a.element(`p`,{},{fresh:!1}),[c.text(` `),c.freshElement(`a`,{href:`#`+N(e)},[c.text(`↑`)])]),o=r.concat([i]);return c.freshElement(`li`,{id:M(e)},o)},commentReference:te,comment:V,image:p(j(e.convertImage||s.dataUri)),table:R,tableRow:B,tableCell:ee,break:ne};return{convertToHtml:S}}var f=1;function p(e){return function(t,n,r){return[{type:`deferred`,id:f++,value:function(){return e(t,n,r)}}]}}function m(e,t){return o.warning(`Unrecognised `+e+` style: '`+t.styleName+`' (Style ID: `+t.styleId+`)`)}function h(e,t){return n.flatten(e.map(t),!0)}function g(e,t){e.forEach(function(e){t(e),e.children&&g(e.children,t)})}var _=t.commentAuthorLabel=function(e){return e.authorInitials||``}})),Lv=e.t((e=>{var t=O_();function n(e){if(e.type===`text`)return e.value;if(e.type===t.types.tab)return` `;var r=e.type===`paragraph`?`
760
760
 
761
761
  `:``;return(e.children||[]).map(n).join(``)+r}e.convertElementToRawText=n})),Rv=e.t(((e,t)=>{var n=t.exports=function(e,t){this._tokens=e,this._startIndex=t||0};n.prototype.head=function(){return this._tokens[this._startIndex]},n.prototype.tail=function(e){return new n(this._tokens,this._startIndex+1)},n.prototype.toArray=function(){return this._tokens.slice(this._startIndex)},n.prototype.end=function(){return this._tokens[this._tokens.length-1]},n.prototype.to=function(e){var t=this.head().source,n=e.head()||e.end();return t.to(n.source)}})),zv=e.t((e=>{var t=Rv();e.Parser=function(e){return{parseTokens:function(e,n){return e(new t(n))}}}})),Bv=e.t((e=>{e.none=Object.create({value:function(){throw Error(`Called value on none`)},isNone:function(){return!0},isSome:function(){return!1},map:function(){return e.none},flatMap:function(){return e.none},filter:function(){return e.none},toArray:function(){return[]},orElse:t,valueOrElse:t});function t(e){return typeof e==`function`?e():e}e.some=function(e){return new n(e)};var n=function(e){this._value=e};n.prototype.value=function(){return this._value},n.prototype.isNone=function(){return!1},n.prototype.isSome=function(){return!0},n.prototype.map=function(e){return new n(e(this._value))},n.prototype.flatMap=function(e){return e(this._value)},n.prototype.filter=function(t){return t(this._value)?this:e.none},n.prototype.toArray=function(){return[this._value]},n.prototype.orElse=function(e){return this},n.prototype.valueOrElse=function(e){return this._value},e.isOption=function(t){return t===e.none||t instanceof n},e.fromNullable=function(t){return t==null?e.none:new n(t)}})),Vv=e.t(((e,t)=>{t.exports={failure:function(e,t){if(e.length<1)throw Error(`Failure must have errors`);return new n({status:`failure`,remaining:t,errors:e})},error:function(e,t){if(e.length<1)throw Error(`Failure must have errors`);return new n({status:`error`,remaining:t,errors:e})},success:function(e,t,r){return new n({status:`success`,value:e,source:r,remaining:t,errors:[]})},cut:function(e){return new n({status:`cut`,remaining:e,errors:[]})}};var n=function(e){this._value=e.value,this._status=e.status,this._hasValue=e.value!==void 0,this._remaining=e.remaining,this._source=e.source,this._errors=e.errors};n.prototype.map=function(e){return this._hasValue?new n({value:e(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this},n.prototype.changeRemaining=function(e){return new n({value:this._value,status:this._status,remaining:e,source:this._source,errors:this._errors})},n.prototype.isSuccess=function(){return this._status===`success`||this._status===`cut`},n.prototype.isFailure=function(){return this._status===`failure`},n.prototype.isError=function(){return this._status===`error`},n.prototype.isCut=function(){return this._status===`cut`},n.prototype.value=function(){return this._value},n.prototype.remaining=function(){return this._remaining},n.prototype.source=function(){return this._source},n.prototype.errors=function(){return this._errors}})),Hv=e.t((e=>{e.error=function(e){return new t(e)};var t=function(e){this.expected=e.expected,this.actual=e.actual,this._location=e.location};t.prototype.describe=function(){return(this._location?this._location.describe()+`:
762
762
  `:``)+`Expected `+this.expected+`
@@ -859,7 +859,7 @@ ${e}
859
859
  </body>
860
860
  </html>`}function Iy(e,t=`web`){let n=Py(e)??`<div class="editor-scroller"><div class="editor"><div class="ContentEditable__root">${e.getEditorState().read(()=>r.x(e,null))}</div></div></div>`,i=document.createElement(`iframe`);i.title=`Print editor document`,i.setAttribute(`aria-hidden`,`true`),i.style.border=`0`,i.style.bottom=`0`,i.style.height=`0`,i.style.position=`fixed`,i.style.right=`0`,i.style.width=`0`,i.addEventListener(`load`,()=>{let e=i.contentWindow;if(e===null){i.remove();return}let t=!1,n=()=>{t||(t=!0,e.removeEventListener(`afterprint`,n),i.remove())};e.addEventListener(`afterprint`,n),e.focus(),e.print(),window.setTimeout(n,yy)},{once:!0}),i.srcdoc=Fy(n,t,{baseHref:document.baseURI,bodyClassName:Dy(document.body.className),bodyDataset:My(),bodyStyle:jy(e),documentStyles:Ay()}),document.body.appendChild(i)}var Ly=e.r({default:()=>Ry}),Ry=[{description:`grinning face`,emoji:`😀`,category:`Smileys & Emotion`,aliases:[`grinning`],tags:[`smile`,`happy`],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`😃`,description:`grinning face with big eyes`,category:`Smileys & Emotion`,aliases:[`smiley`],tags:[`happy`,`joy`,`haha`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😄`,description:`grinning face with smiling eyes`,category:`Smileys & Emotion`,aliases:[`smile`],tags:[`happy`,`joy`,`laugh`,`pleased`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😁`,description:`beaming face with smiling eyes`,category:`Smileys & Emotion`,aliases:[`grin`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😆`,description:`grinning squinting face`,category:`Smileys & Emotion`,aliases:[`laughing`,`satisfied`],tags:[`happy`,`haha`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😅`,description:`grinning face with sweat`,category:`Smileys & Emotion`,aliases:[`sweat_smile`],tags:[`hot`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🤣`,description:`rolling on the floor laughing`,category:`Smileys & Emotion`,aliases:[`rofl`],tags:[`lol`,`laughing`],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`😂`,description:`face with tears of joy`,category:`Smileys & Emotion`,aliases:[`joy`],tags:[`tears`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🙂`,description:`slightly smiling face`,category:`Smileys & Emotion`,aliases:[`slightly_smiling_face`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🙃`,description:`upside-down face`,category:`Smileys & Emotion`,aliases:[`upside_down_face`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`😉`,description:`winking face`,category:`Smileys & Emotion`,aliases:[`wink`],tags:[`flirt`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😊`,description:`smiling face with smiling eyes`,category:`Smileys & Emotion`,aliases:[`blush`],tags:[`proud`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😇`,description:`smiling face with halo`,category:`Smileys & Emotion`,aliases:[`innocent`],tags:[`angel`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥰`,description:`smiling face with hearts`,category:`Smileys & Emotion`,aliases:[`smiling_face_with_three_hearts`],tags:[`love`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`😍`,description:`smiling face with heart-eyes`,category:`Smileys & Emotion`,aliases:[`heart_eyes`],tags:[`love`,`crush`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🤩`,description:`star-struck`,category:`Smileys & Emotion`,aliases:[`star_struck`],tags:[`eyes`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`😘`,description:`face blowing a kiss`,category:`Smileys & Emotion`,aliases:[`kissing_heart`],tags:[`flirt`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😗`,description:`kissing face`,category:`Smileys & Emotion`,aliases:[`kissing`],tags:[],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`☺️`,description:`smiling face`,category:`Smileys & Emotion`,aliases:[`relaxed`],tags:[`blush`,`pleased`],unicode_version:``,ios_version:`6.0`},{emoji:`😚`,description:`kissing face with closed eyes`,category:`Smileys & Emotion`,aliases:[`kissing_closed_eyes`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😙`,description:`kissing face with smiling eyes`,category:`Smileys & Emotion`,aliases:[`kissing_smiling_eyes`],tags:[],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`🥲`,description:`smiling face with tear`,category:`Smileys & Emotion`,aliases:[`smiling_face_with_tear`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`😋`,description:`face savoring food`,category:`Smileys & Emotion`,aliases:[`yum`],tags:[`tongue`,`lick`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😛`,description:`face with tongue`,category:`Smileys & Emotion`,aliases:[`stuck_out_tongue`],tags:[],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`😜`,description:`winking face with tongue`,category:`Smileys & Emotion`,aliases:[`stuck_out_tongue_winking_eye`],tags:[`prank`,`silly`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🤪`,description:`zany face`,category:`Smileys & Emotion`,aliases:[`zany_face`],tags:[`goofy`,`wacky`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`😝`,description:`squinting face with tongue`,category:`Smileys & Emotion`,aliases:[`stuck_out_tongue_closed_eyes`],tags:[`prank`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🤑`,description:`money-mouth face`,category:`Smileys & Emotion`,aliases:[`money_mouth_face`],tags:[`rich`],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🤗`,description:`hugging face`,category:`Smileys & Emotion`,aliases:[`hugs`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🤭`,description:`face with hand over mouth`,category:`Smileys & Emotion`,aliases:[`hand_over_mouth`],tags:[`quiet`,`whoops`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🤫`,description:`shushing face`,category:`Smileys & Emotion`,aliases:[`shushing_face`],tags:[`silence`,`quiet`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🤔`,description:`thinking face`,category:`Smileys & Emotion`,aliases:[`thinking`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🤐`,description:`zipper-mouth face`,category:`Smileys & Emotion`,aliases:[`zipper_mouth_face`],tags:[`silence`,`hush`],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🤨`,description:`face with raised eyebrow`,category:`Smileys & Emotion`,aliases:[`raised_eyebrow`],tags:[`suspicious`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`😐`,description:`neutral face`,category:`Smileys & Emotion`,aliases:[`neutral_face`],tags:[`meh`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😑`,description:`expressionless face`,category:`Smileys & Emotion`,aliases:[`expressionless`],tags:[],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`😶`,description:`face without mouth`,category:`Smileys & Emotion`,aliases:[`no_mouth`],tags:[`mute`,`silence`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😶‍🌫️`,description:`face in clouds`,category:`Smileys & Emotion`,aliases:[`face_in_clouds`],tags:[],unicode_version:`13.1`,ios_version:`14.0`},{emoji:`😏`,description:`smirking face`,category:`Smileys & Emotion`,aliases:[`smirk`],tags:[`smug`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😒`,description:`unamused face`,category:`Smileys & Emotion`,aliases:[`unamused`],tags:[`meh`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🙄`,description:`face with rolling eyes`,category:`Smileys & Emotion`,aliases:[`roll_eyes`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`😬`,description:`grimacing face`,category:`Smileys & Emotion`,aliases:[`grimacing`],tags:[],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`😮‍💨`,description:`face exhaling`,category:`Smileys & Emotion`,aliases:[`face_exhaling`],tags:[],unicode_version:`13.1`,ios_version:`14.0`},{emoji:`🤥`,description:`lying face`,category:`Smileys & Emotion`,aliases:[`lying_face`],tags:[`liar`],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`😌`,description:`relieved face`,category:`Smileys & Emotion`,aliases:[`relieved`],tags:[`whew`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😔`,description:`pensive face`,category:`Smileys & Emotion`,aliases:[`pensive`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😪`,description:`sleepy face`,category:`Smileys & Emotion`,aliases:[`sleepy`],tags:[`tired`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🤤`,description:`drooling face`,category:`Smileys & Emotion`,aliases:[`drooling_face`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`😴`,description:`sleeping face`,category:`Smileys & Emotion`,aliases:[`sleeping`],tags:[`zzz`],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`😷`,description:`face with medical mask`,category:`Smileys & Emotion`,aliases:[`mask`],tags:[`sick`,`ill`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🤒`,description:`face with thermometer`,category:`Smileys & Emotion`,aliases:[`face_with_thermometer`],tags:[`sick`],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🤕`,description:`face with head-bandage`,category:`Smileys & Emotion`,aliases:[`face_with_head_bandage`],tags:[`hurt`],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🤢`,description:`nauseated face`,category:`Smileys & Emotion`,aliases:[`nauseated_face`],tags:[`sick`,`barf`,`disgusted`],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🤮`,description:`face vomiting`,category:`Smileys & Emotion`,aliases:[`vomiting_face`],tags:[`barf`,`sick`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🤧`,description:`sneezing face`,category:`Smileys & Emotion`,aliases:[`sneezing_face`],tags:[`achoo`,`sick`],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🥵`,description:`hot face`,category:`Smileys & Emotion`,aliases:[`hot_face`],tags:[`heat`,`sweating`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥶`,description:`cold face`,category:`Smileys & Emotion`,aliases:[`cold_face`],tags:[`freezing`,`ice`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥴`,description:`woozy face`,category:`Smileys & Emotion`,aliases:[`woozy_face`],tags:[`groggy`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`😵`,description:`knocked-out face`,category:`Smileys & Emotion`,aliases:[`dizzy_face`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😵‍💫`,description:`face with spiral eyes`,category:`Smileys & Emotion`,aliases:[`face_with_spiral_eyes`],tags:[],unicode_version:`13.1`,ios_version:`14.0`},{emoji:`🤯`,description:`exploding head`,category:`Smileys & Emotion`,aliases:[`exploding_head`],tags:[`mind`,`blown`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🤠`,description:`cowboy hat face`,category:`Smileys & Emotion`,aliases:[`cowboy_hat_face`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🥳`,description:`partying face`,category:`Smileys & Emotion`,aliases:[`partying_face`],tags:[`celebration`,`birthday`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥸`,description:`disguised face`,category:`Smileys & Emotion`,aliases:[`disguised_face`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`😎`,description:`smiling face with sunglasses`,category:`Smileys & Emotion`,aliases:[`sunglasses`],tags:[`cool`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🤓`,description:`nerd face`,category:`Smileys & Emotion`,aliases:[`nerd_face`],tags:[`geek`,`glasses`],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🧐`,description:`face with monocle`,category:`Smileys & Emotion`,aliases:[`monocle_face`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`😕`,description:`confused face`,category:`Smileys & Emotion`,aliases:[`confused`],tags:[],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`😟`,description:`worried face`,category:`Smileys & Emotion`,aliases:[`worried`],tags:[`nervous`],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`🙁`,description:`slightly frowning face`,category:`Smileys & Emotion`,aliases:[`slightly_frowning_face`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`☹️`,description:`frowning face`,category:`Smileys & Emotion`,aliases:[`frowning_face`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`😮`,description:`face with open mouth`,category:`Smileys & Emotion`,aliases:[`open_mouth`],tags:[`surprise`,`impressed`,`wow`],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`😯`,description:`hushed face`,category:`Smileys & Emotion`,aliases:[`hushed`],tags:[`silence`,`speechless`],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`😲`,description:`astonished face`,category:`Smileys & Emotion`,aliases:[`astonished`],tags:[`amazed`,`gasp`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😳`,description:`flushed face`,category:`Smileys & Emotion`,aliases:[`flushed`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥺`,description:`pleading face`,category:`Smileys & Emotion`,aliases:[`pleading_face`],tags:[`puppy`,`eyes`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`😦`,description:`frowning face with open mouth`,category:`Smileys & Emotion`,aliases:[`frowning`],tags:[],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`😧`,description:`anguished face`,category:`Smileys & Emotion`,aliases:[`anguished`],tags:[`stunned`],unicode_version:`6.1`,ios_version:`6.0`},{emoji:`😨`,description:`fearful face`,category:`Smileys & Emotion`,aliases:[`fearful`],tags:[`scared`,`shocked`,`oops`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😰`,description:`anxious face with sweat`,category:`Smileys & Emotion`,aliases:[`cold_sweat`],tags:[`nervous`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😥`,description:`sad but relieved face`,category:`Smileys & Emotion`,aliases:[`disappointed_relieved`],tags:[`phew`,`sweat`,`nervous`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😢`,description:`crying face`,category:`Smileys & Emotion`,aliases:[`cry`],tags:[`sad`,`tear`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😭`,description:`loudly crying face`,category:`Smileys & Emotion`,aliases:[`sob`],tags:[`sad`,`cry`,`bawling`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😱`,description:`face screaming in fear`,category:`Smileys & Emotion`,aliases:[`scream`],tags:[`horror`,`shocked`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😖`,description:`confounded face`,category:`Smileys & Emotion`,aliases:[`confounded`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😣`,description:`persevering face`,category:`Smileys & Emotion`,aliases:[`persevere`],tags:[`struggling`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😞`,description:`disappointed face`,category:`Smileys & Emotion`,aliases:[`disappointed`],tags:[`sad`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😓`,description:`downcast face with sweat`,category:`Smileys & Emotion`,aliases:[`sweat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😩`,description:`weary face`,category:`Smileys & Emotion`,aliases:[`weary`],tags:[`tired`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😫`,description:`tired face`,category:`Smileys & Emotion`,aliases:[`tired_face`],tags:[`upset`,`whine`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥱`,description:`yawning face`,category:`Smileys & Emotion`,aliases:[`yawning_face`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`😤`,description:`face with steam from nose`,category:`Smileys & Emotion`,aliases:[`triumph`],tags:[`smug`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😡`,description:`pouting face`,category:`Smileys & Emotion`,aliases:[`rage`,`pout`],tags:[`angry`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😠`,description:`angry face`,category:`Smileys & Emotion`,aliases:[`angry`],tags:[`mad`,`annoyed`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🤬`,description:`face with symbols on mouth`,category:`Smileys & Emotion`,aliases:[`cursing_face`],tags:[`foul`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`😈`,description:`smiling face with horns`,category:`Smileys & Emotion`,aliases:[`smiling_imp`],tags:[`devil`,`evil`,`horns`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👿`,description:`angry face with horns`,category:`Smileys & Emotion`,aliases:[`imp`],tags:[`angry`,`devil`,`evil`,`horns`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💀`,description:`skull`,category:`Smileys & Emotion`,aliases:[`skull`],tags:[`dead`,`danger`,`poison`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`☠️`,description:`skull and crossbones`,category:`Smileys & Emotion`,aliases:[`skull_and_crossbones`],tags:[`danger`,`pirate`],unicode_version:``,ios_version:`9.1`},{emoji:`💩`,description:`pile of poo`,category:`Smileys & Emotion`,aliases:[`hankey`,`poop`,`shit`],tags:[`crap`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🤡`,description:`clown face`,category:`Smileys & Emotion`,aliases:[`clown_face`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`👹`,description:`ogre`,category:`Smileys & Emotion`,aliases:[`japanese_ogre`],tags:[`monster`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👺`,description:`goblin`,category:`Smileys & Emotion`,aliases:[`japanese_goblin`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👻`,description:`ghost`,category:`Smileys & Emotion`,aliases:[`ghost`],tags:[`halloween`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👽`,description:`alien`,category:`Smileys & Emotion`,aliases:[`alien`],tags:[`ufo`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👾`,description:`alien monster`,category:`Smileys & Emotion`,aliases:[`space_invader`],tags:[`game`,`retro`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🤖`,description:`robot`,category:`Smileys & Emotion`,aliases:[`robot`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`😺`,description:`grinning cat`,category:`Smileys & Emotion`,aliases:[`smiley_cat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😸`,description:`grinning cat with smiling eyes`,category:`Smileys & Emotion`,aliases:[`smile_cat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😹`,description:`cat with tears of joy`,category:`Smileys & Emotion`,aliases:[`joy_cat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😻`,description:`smiling cat with heart-eyes`,category:`Smileys & Emotion`,aliases:[`heart_eyes_cat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😼`,description:`cat with wry smile`,category:`Smileys & Emotion`,aliases:[`smirk_cat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😽`,description:`kissing cat`,category:`Smileys & Emotion`,aliases:[`kissing_cat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🙀`,description:`weary cat`,category:`Smileys & Emotion`,aliases:[`scream_cat`],tags:[`horror`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😿`,description:`crying cat`,category:`Smileys & Emotion`,aliases:[`crying_cat_face`],tags:[`sad`,`tear`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`😾`,description:`pouting cat`,category:`Smileys & Emotion`,aliases:[`pouting_cat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🙈`,description:`see-no-evil monkey`,category:`Smileys & Emotion`,aliases:[`see_no_evil`],tags:[`monkey`,`blind`,`ignore`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🙉`,description:`hear-no-evil monkey`,category:`Smileys & Emotion`,aliases:[`hear_no_evil`],tags:[`monkey`,`deaf`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🙊`,description:`speak-no-evil monkey`,category:`Smileys & Emotion`,aliases:[`speak_no_evil`],tags:[`monkey`,`mute`,`hush`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💋`,description:`kiss mark`,category:`Smileys & Emotion`,aliases:[`kiss`],tags:[`lipstick`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💌`,description:`love letter`,category:`Smileys & Emotion`,aliases:[`love_letter`],tags:[`email`,`envelope`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💘`,description:`heart with arrow`,category:`Smileys & Emotion`,aliases:[`cupid`],tags:[`love`,`heart`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💝`,description:`heart with ribbon`,category:`Smileys & Emotion`,aliases:[`gift_heart`],tags:[`chocolates`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💖`,description:`sparkling heart`,category:`Smileys & Emotion`,aliases:[`sparkling_heart`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💗`,description:`growing heart`,category:`Smileys & Emotion`,aliases:[`heartpulse`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💓`,description:`beating heart`,category:`Smileys & Emotion`,aliases:[`heartbeat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💞`,description:`revolving hearts`,category:`Smileys & Emotion`,aliases:[`revolving_hearts`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💕`,description:`two hearts`,category:`Smileys & Emotion`,aliases:[`two_hearts`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💟`,description:`heart decoration`,category:`Smileys & Emotion`,aliases:[`heart_decoration`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`❣️`,description:`heart exclamation`,category:`Smileys & Emotion`,aliases:[`heavy_heart_exclamation`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`💔`,description:`broken heart`,category:`Smileys & Emotion`,aliases:[`broken_heart`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`❤️‍🔥`,description:`heart on fire`,category:`Smileys & Emotion`,aliases:[`heart_on_fire`],tags:[],unicode_version:`13.1`,ios_version:`14.0`},{emoji:`❤️‍🩹`,description:`mending heart`,category:`Smileys & Emotion`,aliases:[`mending_heart`],tags:[],unicode_version:`13.1`,ios_version:`14.0`},{emoji:`❤️`,description:`red heart`,category:`Smileys & Emotion`,aliases:[`heart`],tags:[`love`],unicode_version:``,ios_version:`6.0`},{emoji:`🧡`,description:`orange heart`,category:`Smileys & Emotion`,aliases:[`orange_heart`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`💛`,description:`yellow heart`,category:`Smileys & Emotion`,aliases:[`yellow_heart`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💚`,description:`green heart`,category:`Smileys & Emotion`,aliases:[`green_heart`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💙`,description:`blue heart`,category:`Smileys & Emotion`,aliases:[`blue_heart`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💜`,description:`purple heart`,category:`Smileys & Emotion`,aliases:[`purple_heart`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🤎`,description:`brown heart`,category:`Smileys & Emotion`,aliases:[`brown_heart`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🖤`,description:`black heart`,category:`Smileys & Emotion`,aliases:[`black_heart`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🤍`,description:`white heart`,category:`Smileys & Emotion`,aliases:[`white_heart`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`💯`,description:`hundred points`,category:`Smileys & Emotion`,aliases:[`100`],tags:[`score`,`perfect`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💢`,description:`anger symbol`,category:`Smileys & Emotion`,aliases:[`anger`],tags:[`angry`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💥`,description:`collision`,category:`Smileys & Emotion`,aliases:[`boom`,`collision`],tags:[`explode`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💫`,description:`dizzy`,category:`Smileys & Emotion`,aliases:[`dizzy`],tags:[`star`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💦`,description:`sweat droplets`,category:`Smileys & Emotion`,aliases:[`sweat_drops`],tags:[`water`,`workout`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💨`,description:`dashing away`,category:`Smileys & Emotion`,aliases:[`dash`],tags:[`wind`,`blow`,`fast`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕳️`,description:`hole`,category:`Smileys & Emotion`,aliases:[`hole`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`💣`,description:`bomb`,category:`Smileys & Emotion`,aliases:[`bomb`],tags:[`boom`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💬`,description:`speech balloon`,category:`Smileys & Emotion`,aliases:[`speech_balloon`],tags:[`comment`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👁️‍🗨️`,description:`eye in speech bubble`,category:`Smileys & Emotion`,aliases:[`eye_speech_bubble`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🗨️`,description:`left speech bubble`,category:`Smileys & Emotion`,aliases:[`left_speech_bubble`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🗯️`,description:`right anger bubble`,category:`Smileys & Emotion`,aliases:[`right_anger_bubble`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`💭`,description:`thought balloon`,category:`Smileys & Emotion`,aliases:[`thought_balloon`],tags:[`thinking`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💤`,description:`zzz`,category:`Smileys & Emotion`,aliases:[`zzz`],tags:[`sleeping`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👋`,description:`waving hand`,category:`People & Body`,aliases:[`wave`],tags:[`goodbye`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🤚`,description:`raised back of hand`,category:`People & Body`,aliases:[`raised_back_of_hand`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🖐️`,description:`hand with fingers splayed`,category:`People & Body`,aliases:[`raised_hand_with_fingers_splayed`],tags:[],unicode_version:`7.0`,ios_version:`9.1`,skin_tones:!0},{emoji:`✋`,description:`raised hand`,category:`People & Body`,aliases:[`hand`,`raised_hand`],tags:[`highfive`,`stop`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🖖`,description:`vulcan salute`,category:`People & Body`,aliases:[`vulcan_salute`],tags:[`prosper`,`spock`],unicode_version:`7.0`,ios_version:`8.3`,skin_tones:!0},{emoji:`👌`,description:`OK hand`,category:`People & Body`,aliases:[`ok_hand`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🤌`,description:`pinched fingers`,category:`People & Body`,aliases:[`pinched_fingers`],tags:[],unicode_version:`13.0`,ios_version:`14.0`,skin_tones:!0},{emoji:`🤏`,description:`pinching hand`,category:`People & Body`,aliases:[`pinching_hand`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`✌️`,description:`victory hand`,category:`People & Body`,aliases:[`v`],tags:[`victory`,`peace`],unicode_version:``,ios_version:`6.0`,skin_tones:!0},{emoji:`🤞`,description:`crossed fingers`,category:`People & Body`,aliases:[`crossed_fingers`],tags:[`luck`,`hopeful`],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🤟`,description:`love-you gesture`,category:`People & Body`,aliases:[`love_you_gesture`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🤘`,description:`sign of the horns`,category:`People & Body`,aliases:[`metal`],tags:[],unicode_version:`8.0`,ios_version:`9.1`,skin_tones:!0},{emoji:`🤙`,description:`call me hand`,category:`People & Body`,aliases:[`call_me_hand`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`👈`,description:`backhand index pointing left`,category:`People & Body`,aliases:[`point_left`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👉`,description:`backhand index pointing right`,category:`People & Body`,aliases:[`point_right`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👆`,description:`backhand index pointing up`,category:`People & Body`,aliases:[`point_up_2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🖕`,description:`middle finger`,category:`People & Body`,aliases:[`middle_finger`,`fu`],tags:[],unicode_version:`7.0`,ios_version:`9.1`,skin_tones:!0},{emoji:`👇`,description:`backhand index pointing down`,category:`People & Body`,aliases:[`point_down`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`☝️`,description:`index pointing up`,category:`People & Body`,aliases:[`point_up`],tags:[],unicode_version:``,ios_version:`6.0`,skin_tones:!0},{emoji:`👍`,description:`thumbs up`,category:`People & Body`,aliases:[`+1`,`thumbsup`],tags:[`approve`,`ok`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👎`,description:`thumbs down`,category:`People & Body`,aliases:[`-1`,`thumbsdown`],tags:[`disapprove`,`bury`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`✊`,description:`raised fist`,category:`People & Body`,aliases:[`fist_raised`,`fist`],tags:[`power`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👊`,description:`oncoming fist`,category:`People & Body`,aliases:[`fist_oncoming`,`facepunch`,`punch`],tags:[`attack`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🤛`,description:`left-facing fist`,category:`People & Body`,aliases:[`fist_left`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🤜`,description:`right-facing fist`,category:`People & Body`,aliases:[`fist_right`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`👏`,description:`clapping hands`,category:`People & Body`,aliases:[`clap`],tags:[`praise`,`applause`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🙌`,description:`raising hands`,category:`People & Body`,aliases:[`raised_hands`],tags:[`hooray`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👐`,description:`open hands`,category:`People & Body`,aliases:[`open_hands`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🤲`,description:`palms up together`,category:`People & Body`,aliases:[`palms_up_together`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🤝`,description:`handshake`,category:`People & Body`,aliases:[`handshake`],tags:[`deal`],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🙏`,description:`folded hands`,category:`People & Body`,aliases:[`pray`],tags:[`please`,`hope`,`wish`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`✍️`,description:`writing hand`,category:`People & Body`,aliases:[`writing_hand`],tags:[],unicode_version:``,ios_version:`9.1`,skin_tones:!0},{emoji:`💅`,description:`nail polish`,category:`People & Body`,aliases:[`nail_care`],tags:[`beauty`,`manicure`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🤳`,description:`selfie`,category:`People & Body`,aliases:[`selfie`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`💪`,description:`flexed biceps`,category:`People & Body`,aliases:[`muscle`],tags:[`flex`,`bicep`,`strong`,`workout`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🦾`,description:`mechanical arm`,category:`People & Body`,aliases:[`mechanical_arm`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🦿`,description:`mechanical leg`,category:`People & Body`,aliases:[`mechanical_leg`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🦵`,description:`leg`,category:`People & Body`,aliases:[`leg`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🦶`,description:`foot`,category:`People & Body`,aliases:[`foot`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👂`,description:`ear`,category:`People & Body`,aliases:[`ear`],tags:[`hear`,`sound`,`listen`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🦻`,description:`ear with hearing aid`,category:`People & Body`,aliases:[`ear_with_hearing_aid`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`👃`,description:`nose`,category:`People & Body`,aliases:[`nose`],tags:[`smell`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🧠`,description:`brain`,category:`People & Body`,aliases:[`brain`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🫀`,description:`anatomical heart`,category:`People & Body`,aliases:[`anatomical_heart`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🫁`,description:`lungs`,category:`People & Body`,aliases:[`lungs`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🦷`,description:`tooth`,category:`People & Body`,aliases:[`tooth`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🦴`,description:`bone`,category:`People & Body`,aliases:[`bone`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`👀`,description:`eyes`,category:`People & Body`,aliases:[`eyes`],tags:[`look`,`see`,`watch`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👁️`,description:`eye`,category:`People & Body`,aliases:[`eye`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`👅`,description:`tongue`,category:`People & Body`,aliases:[`tongue`],tags:[`taste`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👄`,description:`mouth`,category:`People & Body`,aliases:[`lips`],tags:[`kiss`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👶`,description:`baby`,category:`People & Body`,aliases:[`baby`],tags:[`child`,`newborn`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🧒`,description:`child`,category:`People & Body`,aliases:[`child`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👦`,description:`boy`,category:`People & Body`,aliases:[`boy`],tags:[`child`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👧`,description:`girl`,category:`People & Body`,aliases:[`girl`],tags:[`child`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🧑`,description:`person`,category:`People & Body`,aliases:[`adult`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👱`,description:`person: blond hair`,category:`People & Body`,aliases:[`blond_haired_person`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👨`,description:`man`,category:`People & Body`,aliases:[`man`],tags:[`mustache`,`father`,`dad`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🧔`,description:`person: beard`,category:`People & Body`,aliases:[`bearded_person`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧔‍♂️`,description:`man: beard`,category:`People & Body`,aliases:[`man_beard`],tags:[],unicode_version:`13.1`,ios_version:`14.0`,skin_tones:!0},{emoji:`🧔‍♀️`,description:`woman: beard`,category:`People & Body`,aliases:[`woman_beard`],tags:[],unicode_version:`13.1`,ios_version:`14.0`,skin_tones:!0},{emoji:`👨‍🦰`,description:`man: red hair`,category:`People & Body`,aliases:[`red_haired_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👨‍🦱`,description:`man: curly hair`,category:`People & Body`,aliases:[`curly_haired_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👨‍🦳`,description:`man: white hair`,category:`People & Body`,aliases:[`white_haired_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👨‍🦲`,description:`man: bald`,category:`People & Body`,aliases:[`bald_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👩`,description:`woman`,category:`People & Body`,aliases:[`woman`],tags:[`girls`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👩‍🦰`,description:`woman: red hair`,category:`People & Body`,aliases:[`red_haired_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧑‍🦰`,description:`person: red hair`,category:`People & Body`,aliases:[`person_red_hair`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👩‍🦱`,description:`woman: curly hair`,category:`People & Body`,aliases:[`curly_haired_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧑‍🦱`,description:`person: curly hair`,category:`People & Body`,aliases:[`person_curly_hair`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👩‍🦳`,description:`woman: white hair`,category:`People & Body`,aliases:[`white_haired_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧑‍🦳`,description:`person: white hair`,category:`People & Body`,aliases:[`person_white_hair`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👩‍🦲`,description:`woman: bald`,category:`People & Body`,aliases:[`bald_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧑‍🦲`,description:`person: bald`,category:`People & Body`,aliases:[`person_bald`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👱‍♀️`,description:`woman: blond hair`,category:`People & Body`,aliases:[`blond_haired_woman`,`blonde_woman`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`👱‍♂️`,description:`man: blond hair`,category:`People & Body`,aliases:[`blond_haired_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧓`,description:`older person`,category:`People & Body`,aliases:[`older_adult`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👴`,description:`old man`,category:`People & Body`,aliases:[`older_man`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👵`,description:`old woman`,category:`People & Body`,aliases:[`older_woman`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🙍`,description:`person frowning`,category:`People & Body`,aliases:[`frowning_person`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🙍‍♂️`,description:`man frowning`,category:`People & Body`,aliases:[`frowning_man`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🙍‍♀️`,description:`woman frowning`,category:`People & Body`,aliases:[`frowning_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🙎`,description:`person pouting`,category:`People & Body`,aliases:[`pouting_face`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🙎‍♂️`,description:`man pouting`,category:`People & Body`,aliases:[`pouting_man`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🙎‍♀️`,description:`woman pouting`,category:`People & Body`,aliases:[`pouting_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🙅`,description:`person gesturing NO`,category:`People & Body`,aliases:[`no_good`],tags:[`stop`,`halt`,`denied`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🙅‍♂️`,description:`man gesturing NO`,category:`People & Body`,aliases:[`no_good_man`,`ng_man`],tags:[`stop`,`halt`,`denied`],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🙅‍♀️`,description:`woman gesturing NO`,category:`People & Body`,aliases:[`no_good_woman`,`ng_woman`],tags:[`stop`,`halt`,`denied`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🙆`,description:`person gesturing OK`,category:`People & Body`,aliases:[`ok_person`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🙆‍♂️`,description:`man gesturing OK`,category:`People & Body`,aliases:[`ok_man`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🙆‍♀️`,description:`woman gesturing OK`,category:`People & Body`,aliases:[`ok_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`💁`,description:`person tipping hand`,category:`People & Body`,aliases:[`tipping_hand_person`,`information_desk_person`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`💁‍♂️`,description:`man tipping hand`,category:`People & Body`,aliases:[`tipping_hand_man`,`sassy_man`],tags:[`information`],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`💁‍♀️`,description:`woman tipping hand`,category:`People & Body`,aliases:[`tipping_hand_woman`,`sassy_woman`],tags:[`information`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🙋`,description:`person raising hand`,category:`People & Body`,aliases:[`raising_hand`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🙋‍♂️`,description:`man raising hand`,category:`People & Body`,aliases:[`raising_hand_man`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🙋‍♀️`,description:`woman raising hand`,category:`People & Body`,aliases:[`raising_hand_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧏`,description:`deaf person`,category:`People & Body`,aliases:[`deaf_person`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`🧏‍♂️`,description:`deaf man`,category:`People & Body`,aliases:[`deaf_man`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`🧏‍♀️`,description:`deaf woman`,category:`People & Body`,aliases:[`deaf_woman`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`🙇`,description:`person bowing`,category:`People & Body`,aliases:[`bow`],tags:[`respect`,`thanks`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🙇‍♂️`,description:`man bowing`,category:`People & Body`,aliases:[`bowing_man`],tags:[`respect`,`thanks`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🙇‍♀️`,description:`woman bowing`,category:`People & Body`,aliases:[`bowing_woman`],tags:[`respect`,`thanks`],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🤦`,description:`person facepalming`,category:`People & Body`,aliases:[`facepalm`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🤦‍♂️`,description:`man facepalming`,category:`People & Body`,aliases:[`man_facepalming`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🤦‍♀️`,description:`woman facepalming`,category:`People & Body`,aliases:[`woman_facepalming`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🤷`,description:`person shrugging`,category:`People & Body`,aliases:[`shrug`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🤷‍♂️`,description:`man shrugging`,category:`People & Body`,aliases:[`man_shrugging`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🤷‍♀️`,description:`woman shrugging`,category:`People & Body`,aliases:[`woman_shrugging`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍⚕️`,description:`health worker`,category:`People & Body`,aliases:[`health_worker`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍⚕️`,description:`man health worker`,category:`People & Body`,aliases:[`man_health_worker`],tags:[`doctor`,`nurse`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍⚕️`,description:`woman health worker`,category:`People & Body`,aliases:[`woman_health_worker`],tags:[`doctor`,`nurse`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍🎓`,description:`student`,category:`People & Body`,aliases:[`student`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🎓`,description:`man student`,category:`People & Body`,aliases:[`man_student`],tags:[`graduation`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍🎓`,description:`woman student`,category:`People & Body`,aliases:[`woman_student`],tags:[`graduation`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍🏫`,description:`teacher`,category:`People & Body`,aliases:[`teacher`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🏫`,description:`man teacher`,category:`People & Body`,aliases:[`man_teacher`],tags:[`school`,`professor`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍🏫`,description:`woman teacher`,category:`People & Body`,aliases:[`woman_teacher`],tags:[`school`,`professor`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍⚖️`,description:`judge`,category:`People & Body`,aliases:[`judge`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍⚖️`,description:`man judge`,category:`People & Body`,aliases:[`man_judge`],tags:[`justice`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍⚖️`,description:`woman judge`,category:`People & Body`,aliases:[`woman_judge`],tags:[`justice`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍🌾`,description:`farmer`,category:`People & Body`,aliases:[`farmer`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🌾`,description:`man farmer`,category:`People & Body`,aliases:[`man_farmer`],tags:[],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍🌾`,description:`woman farmer`,category:`People & Body`,aliases:[`woman_farmer`],tags:[],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍🍳`,description:`cook`,category:`People & Body`,aliases:[`cook`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🍳`,description:`man cook`,category:`People & Body`,aliases:[`man_cook`],tags:[`chef`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍🍳`,description:`woman cook`,category:`People & Body`,aliases:[`woman_cook`],tags:[`chef`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍🔧`,description:`mechanic`,category:`People & Body`,aliases:[`mechanic`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🔧`,description:`man mechanic`,category:`People & Body`,aliases:[`man_mechanic`],tags:[],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍🔧`,description:`woman mechanic`,category:`People & Body`,aliases:[`woman_mechanic`],tags:[],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍🏭`,description:`factory worker`,category:`People & Body`,aliases:[`factory_worker`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🏭`,description:`man factory worker`,category:`People & Body`,aliases:[`man_factory_worker`],tags:[],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍🏭`,description:`woman factory worker`,category:`People & Body`,aliases:[`woman_factory_worker`],tags:[],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍💼`,description:`office worker`,category:`People & Body`,aliases:[`office_worker`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍💼`,description:`man office worker`,category:`People & Body`,aliases:[`man_office_worker`],tags:[`business`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍💼`,description:`woman office worker`,category:`People & Body`,aliases:[`woman_office_worker`],tags:[`business`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍🔬`,description:`scientist`,category:`People & Body`,aliases:[`scientist`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🔬`,description:`man scientist`,category:`People & Body`,aliases:[`man_scientist`],tags:[`research`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍🔬`,description:`woman scientist`,category:`People & Body`,aliases:[`woman_scientist`],tags:[`research`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍💻`,description:`technologist`,category:`People & Body`,aliases:[`technologist`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍💻`,description:`man technologist`,category:`People & Body`,aliases:[`man_technologist`],tags:[`coder`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍💻`,description:`woman technologist`,category:`People & Body`,aliases:[`woman_technologist`],tags:[`coder`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍🎤`,description:`singer`,category:`People & Body`,aliases:[`singer`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🎤`,description:`man singer`,category:`People & Body`,aliases:[`man_singer`],tags:[`rockstar`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍🎤`,description:`woman singer`,category:`People & Body`,aliases:[`woman_singer`],tags:[`rockstar`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍🎨`,description:`artist`,category:`People & Body`,aliases:[`artist`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🎨`,description:`man artist`,category:`People & Body`,aliases:[`man_artist`],tags:[`painter`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍🎨`,description:`woman artist`,category:`People & Body`,aliases:[`woman_artist`],tags:[`painter`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍✈️`,description:`pilot`,category:`People & Body`,aliases:[`pilot`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍✈️`,description:`man pilot`,category:`People & Body`,aliases:[`man_pilot`],tags:[],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍✈️`,description:`woman pilot`,category:`People & Body`,aliases:[`woman_pilot`],tags:[],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍🚀`,description:`astronaut`,category:`People & Body`,aliases:[`astronaut`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🚀`,description:`man astronaut`,category:`People & Body`,aliases:[`man_astronaut`],tags:[`space`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍🚀`,description:`woman astronaut`,category:`People & Body`,aliases:[`woman_astronaut`],tags:[`space`],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍🚒`,description:`firefighter`,category:`People & Body`,aliases:[`firefighter`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🚒`,description:`man firefighter`,category:`People & Body`,aliases:[`man_firefighter`],tags:[],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👩‍🚒`,description:`woman firefighter`,category:`People & Body`,aliases:[`woman_firefighter`],tags:[],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`👮`,description:`police officer`,category:`People & Body`,aliases:[`police_officer`,`cop`],tags:[`law`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👮‍♂️`,description:`man police officer`,category:`People & Body`,aliases:[`policeman`],tags:[`law`,`cop`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👮‍♀️`,description:`woman police officer`,category:`People & Body`,aliases:[`policewoman`],tags:[`law`,`cop`],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🕵️`,description:`detective`,category:`People & Body`,aliases:[`detective`],tags:[`sleuth`],unicode_version:`7.0`,ios_version:`9.1`,skin_tones:!0},{emoji:`🕵️‍♂️`,description:`man detective`,category:`People & Body`,aliases:[`male_detective`],tags:[`sleuth`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🕵️‍♀️`,description:`woman detective`,category:`People & Body`,aliases:[`female_detective`],tags:[`sleuth`],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`💂`,description:`guard`,category:`People & Body`,aliases:[`guard`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`💂‍♂️`,description:`man guard`,category:`People & Body`,aliases:[`guardsman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`💂‍♀️`,description:`woman guard`,category:`People & Body`,aliases:[`guardswoman`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🥷`,description:`ninja`,category:`People & Body`,aliases:[`ninja`],tags:[],unicode_version:`13.0`,ios_version:`14.0`,skin_tones:!0},{emoji:`👷`,description:`construction worker`,category:`People & Body`,aliases:[`construction_worker`],tags:[`helmet`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👷‍♂️`,description:`man construction worker`,category:`People & Body`,aliases:[`construction_worker_man`],tags:[`helmet`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👷‍♀️`,description:`woman construction worker`,category:`People & Body`,aliases:[`construction_worker_woman`],tags:[`helmet`],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🤴`,description:`prince`,category:`People & Body`,aliases:[`prince`],tags:[`crown`,`royal`],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`👸`,description:`princess`,category:`People & Body`,aliases:[`princess`],tags:[`crown`,`royal`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👳`,description:`person wearing turban`,category:`People & Body`,aliases:[`person_with_turban`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👳‍♂️`,description:`man wearing turban`,category:`People & Body`,aliases:[`man_with_turban`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👳‍♀️`,description:`woman wearing turban`,category:`People & Body`,aliases:[`woman_with_turban`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`👲`,description:`person with skullcap`,category:`People & Body`,aliases:[`man_with_gua_pi_mao`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🧕`,description:`woman with headscarf`,category:`People & Body`,aliases:[`woman_with_headscarf`],tags:[`hijab`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🤵`,description:`person in tuxedo`,category:`People & Body`,aliases:[`person_in_tuxedo`],tags:[`groom`,`marriage`,`wedding`],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🤵‍♂️`,description:`man in tuxedo`,category:`People & Body`,aliases:[`man_in_tuxedo`],tags:[],unicode_version:`13.0`,ios_version:`14.0`,skin_tones:!0},{emoji:`🤵‍♀️`,description:`woman in tuxedo`,category:`People & Body`,aliases:[`woman_in_tuxedo`],tags:[],unicode_version:`13.0`,ios_version:`14.0`,skin_tones:!0},{emoji:`👰`,description:`person with veil`,category:`People & Body`,aliases:[`person_with_veil`],tags:[`marriage`,`wedding`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👰‍♂️`,description:`man with veil`,category:`People & Body`,aliases:[`man_with_veil`],tags:[],unicode_version:`13.0`,ios_version:`14.0`,skin_tones:!0},{emoji:`👰‍♀️`,description:`woman with veil`,category:`People & Body`,aliases:[`woman_with_veil`,`bride_with_veil`],tags:[],unicode_version:`13.0`,ios_version:`14.0`,skin_tones:!0},{emoji:`🤰`,description:`pregnant woman`,category:`People & Body`,aliases:[`pregnant_woman`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🤱`,description:`breast-feeding`,category:`People & Body`,aliases:[`breast_feeding`],tags:[`nursing`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👩‍🍼`,description:`woman feeding baby`,category:`People & Body`,aliases:[`woman_feeding_baby`],tags:[],unicode_version:`13.0`,ios_version:`14.0`,skin_tones:!0},{emoji:`👨‍🍼`,description:`man feeding baby`,category:`People & Body`,aliases:[`man_feeding_baby`],tags:[],unicode_version:`13.0`,ios_version:`14.0`,skin_tones:!0},{emoji:`🧑‍🍼`,description:`person feeding baby`,category:`People & Body`,aliases:[`person_feeding_baby`],tags:[],unicode_version:`13.0`,ios_version:`14.0`,skin_tones:!0},{emoji:`👼`,description:`baby angel`,category:`People & Body`,aliases:[`angel`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🎅`,description:`Santa Claus`,category:`People & Body`,aliases:[`santa`],tags:[`christmas`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🤶`,description:`Mrs. Claus`,category:`People & Body`,aliases:[`mrs_claus`],tags:[`santa`],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🧑‍🎄`,description:`mx claus`,category:`People & Body`,aliases:[`mx_claus`],tags:[],unicode_version:`13.0`,ios_version:`14.0`,skin_tones:!0},{emoji:`🦸`,description:`superhero`,category:`People & Body`,aliases:[`superhero`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🦸‍♂️`,description:`man superhero`,category:`People & Body`,aliases:[`superhero_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🦸‍♀️`,description:`woman superhero`,category:`People & Body`,aliases:[`superhero_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🦹`,description:`supervillain`,category:`People & Body`,aliases:[`supervillain`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🦹‍♂️`,description:`man supervillain`,category:`People & Body`,aliases:[`supervillain_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🦹‍♀️`,description:`woman supervillain`,category:`People & Body`,aliases:[`supervillain_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧙`,description:`mage`,category:`People & Body`,aliases:[`mage`],tags:[`wizard`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧙‍♂️`,description:`man mage`,category:`People & Body`,aliases:[`mage_man`],tags:[`wizard`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧙‍♀️`,description:`woman mage`,category:`People & Body`,aliases:[`mage_woman`],tags:[`wizard`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧚`,description:`fairy`,category:`People & Body`,aliases:[`fairy`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧚‍♂️`,description:`man fairy`,category:`People & Body`,aliases:[`fairy_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧚‍♀️`,description:`woman fairy`,category:`People & Body`,aliases:[`fairy_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧛`,description:`vampire`,category:`People & Body`,aliases:[`vampire`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧛‍♂️`,description:`man vampire`,category:`People & Body`,aliases:[`vampire_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧛‍♀️`,description:`woman vampire`,category:`People & Body`,aliases:[`vampire_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧜`,description:`merperson`,category:`People & Body`,aliases:[`merperson`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧜‍♂️`,description:`merman`,category:`People & Body`,aliases:[`merman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧜‍♀️`,description:`mermaid`,category:`People & Body`,aliases:[`mermaid`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧝`,description:`elf`,category:`People & Body`,aliases:[`elf`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧝‍♂️`,description:`man elf`,category:`People & Body`,aliases:[`elf_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧝‍♀️`,description:`woman elf`,category:`People & Body`,aliases:[`elf_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧞`,description:`genie`,category:`People & Body`,aliases:[`genie`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧞‍♂️`,description:`man genie`,category:`People & Body`,aliases:[`genie_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧞‍♀️`,description:`woman genie`,category:`People & Body`,aliases:[`genie_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧟`,description:`zombie`,category:`People & Body`,aliases:[`zombie`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧟‍♂️`,description:`man zombie`,category:`People & Body`,aliases:[`zombie_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧟‍♀️`,description:`woman zombie`,category:`People & Body`,aliases:[`zombie_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`💆`,description:`person getting massage`,category:`People & Body`,aliases:[`massage`],tags:[`spa`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`💆‍♂️`,description:`man getting massage`,category:`People & Body`,aliases:[`massage_man`],tags:[`spa`],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`💆‍♀️`,description:`woman getting massage`,category:`People & Body`,aliases:[`massage_woman`],tags:[`spa`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`💇`,description:`person getting haircut`,category:`People & Body`,aliases:[`haircut`],tags:[`beauty`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`💇‍♂️`,description:`man getting haircut`,category:`People & Body`,aliases:[`haircut_man`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`💇‍♀️`,description:`woman getting haircut`,category:`People & Body`,aliases:[`haircut_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🚶`,description:`person walking`,category:`People & Body`,aliases:[`walking`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🚶‍♂️`,description:`man walking`,category:`People & Body`,aliases:[`walking_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🚶‍♀️`,description:`woman walking`,category:`People & Body`,aliases:[`walking_woman`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🧍`,description:`person standing`,category:`People & Body`,aliases:[`standing_person`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`🧍‍♂️`,description:`man standing`,category:`People & Body`,aliases:[`standing_man`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`🧍‍♀️`,description:`woman standing`,category:`People & Body`,aliases:[`standing_woman`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`🧎`,description:`person kneeling`,category:`People & Body`,aliases:[`kneeling_person`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`🧎‍♂️`,description:`man kneeling`,category:`People & Body`,aliases:[`kneeling_man`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`🧎‍♀️`,description:`woman kneeling`,category:`People & Body`,aliases:[`kneeling_woman`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`🧑‍🦯`,description:`person with white cane`,category:`People & Body`,aliases:[`person_with_probing_cane`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🦯`,description:`man with white cane`,category:`People & Body`,aliases:[`man_with_probing_cane`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`👩‍🦯`,description:`woman with white cane`,category:`People & Body`,aliases:[`woman_with_probing_cane`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`🧑‍🦼`,description:`person in motorized wheelchair`,category:`People & Body`,aliases:[`person_in_motorized_wheelchair`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🦼`,description:`man in motorized wheelchair`,category:`People & Body`,aliases:[`man_in_motorized_wheelchair`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`👩‍🦼`,description:`woman in motorized wheelchair`,category:`People & Body`,aliases:[`woman_in_motorized_wheelchair`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`🧑‍🦽`,description:`person in manual wheelchair`,category:`People & Body`,aliases:[`person_in_manual_wheelchair`],tags:[],unicode_version:`12.1`,ios_version:`13.2`,skin_tones:!0},{emoji:`👨‍🦽`,description:`man in manual wheelchair`,category:`People & Body`,aliases:[`man_in_manual_wheelchair`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`👩‍🦽`,description:`woman in manual wheelchair`,category:`People & Body`,aliases:[`woman_in_manual_wheelchair`],tags:[],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`🏃`,description:`person running`,category:`People & Body`,aliases:[`runner`,`running`],tags:[`exercise`,`workout`,`marathon`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🏃‍♂️`,description:`man running`,category:`People & Body`,aliases:[`running_man`],tags:[`exercise`,`workout`,`marathon`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🏃‍♀️`,description:`woman running`,category:`People & Body`,aliases:[`running_woman`],tags:[`exercise`,`workout`,`marathon`],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`💃`,description:`woman dancing`,category:`People & Body`,aliases:[`woman_dancing`,`dancer`],tags:[`dress`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🕺`,description:`man dancing`,category:`People & Body`,aliases:[`man_dancing`],tags:[`dancer`],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🕴️`,description:`person in suit levitating`,category:`People & Body`,aliases:[`business_suit_levitating`],tags:[],unicode_version:`7.0`,ios_version:`9.1`,skin_tones:!0},{emoji:`👯`,description:`people with bunny ears`,category:`People & Body`,aliases:[`dancers`],tags:[`bunny`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👯‍♂️`,description:`men with bunny ears`,category:`People & Body`,aliases:[`dancing_men`],tags:[`bunny`],unicode_version:`6.0`,ios_version:`10.0`},{emoji:`👯‍♀️`,description:`women with bunny ears`,category:`People & Body`,aliases:[`dancing_women`],tags:[`bunny`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧖`,description:`person in steamy room`,category:`People & Body`,aliases:[`sauna_person`],tags:[`steamy`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧖‍♂️`,description:`man in steamy room`,category:`People & Body`,aliases:[`sauna_man`],tags:[`steamy`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧖‍♀️`,description:`woman in steamy room`,category:`People & Body`,aliases:[`sauna_woman`],tags:[`steamy`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧗`,description:`person climbing`,category:`People & Body`,aliases:[`climbing`],tags:[`bouldering`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧗‍♂️`,description:`man climbing`,category:`People & Body`,aliases:[`climbing_man`],tags:[`bouldering`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧗‍♀️`,description:`woman climbing`,category:`People & Body`,aliases:[`climbing_woman`],tags:[`bouldering`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🤺`,description:`person fencing`,category:`People & Body`,aliases:[`person_fencing`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🏇`,description:`horse racing`,category:`People & Body`,aliases:[`horse_racing`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`⛷️`,description:`skier`,category:`People & Body`,aliases:[`skier`],tags:[],unicode_version:`5.2`,ios_version:`9.1`},{emoji:`🏂`,description:`snowboarder`,category:`People & Body`,aliases:[`snowboarder`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🏌️`,description:`person golfing`,category:`People & Body`,aliases:[`golfing`],tags:[],unicode_version:`7.0`,ios_version:`9.1`,skin_tones:!0},{emoji:`🏌️‍♂️`,description:`man golfing`,category:`People & Body`,aliases:[`golfing_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🏌️‍♀️`,description:`woman golfing`,category:`People & Body`,aliases:[`golfing_woman`],tags:[],unicode_version:``,ios_version:`10.0`,skin_tones:!0},{emoji:`🏄`,description:`person surfing`,category:`People & Body`,aliases:[`surfer`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🏄‍♂️`,description:`man surfing`,category:`People & Body`,aliases:[`surfing_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🏄‍♀️`,description:`woman surfing`,category:`People & Body`,aliases:[`surfing_woman`],tags:[],unicode_version:`7.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🚣`,description:`person rowing boat`,category:`People & Body`,aliases:[`rowboat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🚣‍♂️`,description:`man rowing boat`,category:`People & Body`,aliases:[`rowing_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🚣‍♀️`,description:`woman rowing boat`,category:`People & Body`,aliases:[`rowing_woman`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🏊`,description:`person swimming`,category:`People & Body`,aliases:[`swimmer`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🏊‍♂️`,description:`man swimming`,category:`People & Body`,aliases:[`swimming_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🏊‍♀️`,description:`woman swimming`,category:`People & Body`,aliases:[`swimming_woman`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`⛹️`,description:`person bouncing ball`,category:`People & Body`,aliases:[`bouncing_ball_person`],tags:[`basketball`],unicode_version:`5.2`,ios_version:`9.1`,skin_tones:!0},{emoji:`⛹️‍♂️`,description:`man bouncing ball`,category:`People & Body`,aliases:[`bouncing_ball_man`,`basketball_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`⛹️‍♀️`,description:`woman bouncing ball`,category:`People & Body`,aliases:[`bouncing_ball_woman`,`basketball_woman`],tags:[],unicode_version:`7.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🏋️`,description:`person lifting weights`,category:`People & Body`,aliases:[`weight_lifting`],tags:[`gym`,`workout`],unicode_version:`7.0`,ios_version:`9.1`,skin_tones:!0},{emoji:`🏋️‍♂️`,description:`man lifting weights`,category:`People & Body`,aliases:[`weight_lifting_man`],tags:[`gym`,`workout`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🏋️‍♀️`,description:`woman lifting weights`,category:`People & Body`,aliases:[`weight_lifting_woman`],tags:[`gym`,`workout`],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🚴`,description:`person biking`,category:`People & Body`,aliases:[`bicyclist`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🚴‍♂️`,description:`man biking`,category:`People & Body`,aliases:[`biking_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🚴‍♀️`,description:`woman biking`,category:`People & Body`,aliases:[`biking_woman`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🚵`,description:`person mountain biking`,category:`People & Body`,aliases:[`mountain_bicyclist`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🚵‍♂️`,description:`man mountain biking`,category:`People & Body`,aliases:[`mountain_biking_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🚵‍♀️`,description:`woman mountain biking`,category:`People & Body`,aliases:[`mountain_biking_woman`],tags:[],unicode_version:`6.0`,ios_version:`10.0`,skin_tones:!0},{emoji:`🤸`,description:`person cartwheeling`,category:`People & Body`,aliases:[`cartwheeling`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🤸‍♂️`,description:`man cartwheeling`,category:`People & Body`,aliases:[`man_cartwheeling`],tags:[],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🤸‍♀️`,description:`woman cartwheeling`,category:`People & Body`,aliases:[`woman_cartwheeling`],tags:[],unicode_version:``,ios_version:`10.2`,skin_tones:!0},{emoji:`🤼`,description:`people wrestling`,category:`People & Body`,aliases:[`wrestling`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🤼‍♂️`,description:`men wrestling`,category:`People & Body`,aliases:[`men_wrestling`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🤼‍♀️`,description:`women wrestling`,category:`People & Body`,aliases:[`women_wrestling`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🤽`,description:`person playing water polo`,category:`People & Body`,aliases:[`water_polo`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🤽‍♂️`,description:`man playing water polo`,category:`People & Body`,aliases:[`man_playing_water_polo`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🤽‍♀️`,description:`woman playing water polo`,category:`People & Body`,aliases:[`woman_playing_water_polo`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🤾`,description:`person playing handball`,category:`People & Body`,aliases:[`handball_person`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🤾‍♂️`,description:`man playing handball`,category:`People & Body`,aliases:[`man_playing_handball`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🤾‍♀️`,description:`woman playing handball`,category:`People & Body`,aliases:[`woman_playing_handball`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🤹`,description:`person juggling`,category:`People & Body`,aliases:[`juggling_person`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🤹‍♂️`,description:`man juggling`,category:`People & Body`,aliases:[`man_juggling`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🤹‍♀️`,description:`woman juggling`,category:`People & Body`,aliases:[`woman_juggling`],tags:[],unicode_version:`9.0`,ios_version:`10.2`,skin_tones:!0},{emoji:`🧘`,description:`person in lotus position`,category:`People & Body`,aliases:[`lotus_position`],tags:[`meditation`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧘‍♂️`,description:`man in lotus position`,category:`People & Body`,aliases:[`lotus_position_man`],tags:[`meditation`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🧘‍♀️`,description:`woman in lotus position`,category:`People & Body`,aliases:[`lotus_position_woman`],tags:[`meditation`],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`🛀`,description:`person taking bath`,category:`People & Body`,aliases:[`bath`],tags:[`shower`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`🛌`,description:`person in bed`,category:`People & Body`,aliases:[`sleeping_bed`],tags:[],unicode_version:`7.0`,ios_version:`9.1`,skin_tones:!0},{emoji:`🧑‍🤝‍🧑`,description:`people holding hands`,category:`People & Body`,aliases:[`people_holding_hands`],tags:[`couple`,`date`],unicode_version:`12.0`,ios_version:`13.0`,skin_tones:!0},{emoji:`👭`,description:`women holding hands`,category:`People & Body`,aliases:[`two_women_holding_hands`],tags:[`couple`,`date`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👫`,description:`woman and man holding hands`,category:`People & Body`,aliases:[`couple`],tags:[`date`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👬`,description:`men holding hands`,category:`People & Body`,aliases:[`two_men_holding_hands`],tags:[`couple`,`date`],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`💏`,description:`kiss`,category:`People & Body`,aliases:[`couplekiss`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👩‍❤️‍💋‍👨`,description:`kiss: woman, man`,category:`People & Body`,aliases:[`couplekiss_man_woman`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👨‍❤️‍💋‍👨`,description:`kiss: man, man`,category:`People & Body`,aliases:[`couplekiss_man_man`],tags:[],unicode_version:`6.0`,ios_version:`8.3`,skin_tones:!0},{emoji:`👩‍❤️‍💋‍👩`,description:`kiss: woman, woman`,category:`People & Body`,aliases:[`couplekiss_woman_woman`],tags:[],unicode_version:`6.0`,ios_version:`8.3`,skin_tones:!0},{emoji:`💑`,description:`couple with heart`,category:`People & Body`,aliases:[`couple_with_heart`],tags:[],unicode_version:`6.0`,ios_version:`6.0`,skin_tones:!0},{emoji:`👩‍❤️‍👨`,description:`couple with heart: woman, man`,category:`People & Body`,aliases:[`couple_with_heart_woman_man`],tags:[],unicode_version:`11.0`,ios_version:`12.1`,skin_tones:!0},{emoji:`👨‍❤️‍👨`,description:`couple with heart: man, man`,category:`People & Body`,aliases:[`couple_with_heart_man_man`],tags:[],unicode_version:`6.0`,ios_version:`8.3`,skin_tones:!0},{emoji:`👩‍❤️‍👩`,description:`couple with heart: woman, woman`,category:`People & Body`,aliases:[`couple_with_heart_woman_woman`],tags:[],unicode_version:`6.0`,ios_version:`8.3`,skin_tones:!0},{emoji:`👪`,description:`family`,category:`People & Body`,aliases:[`family`],tags:[`home`,`parents`,`child`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👨‍👩‍👦`,description:`family: man, woman, boy`,category:`People & Body`,aliases:[`family_man_woman_boy`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`👨‍👩‍👧`,description:`family: man, woman, girl`,category:`People & Body`,aliases:[`family_man_woman_girl`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👨‍👩‍👧‍👦`,description:`family: man, woman, girl, boy`,category:`People & Body`,aliases:[`family_man_woman_girl_boy`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👨‍👩‍👦‍👦`,description:`family: man, woman, boy, boy`,category:`People & Body`,aliases:[`family_man_woman_boy_boy`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👨‍👩‍👧‍👧`,description:`family: man, woman, girl, girl`,category:`People & Body`,aliases:[`family_man_woman_girl_girl`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👨‍👨‍👦`,description:`family: man, man, boy`,category:`People & Body`,aliases:[`family_man_man_boy`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👨‍👨‍👧`,description:`family: man, man, girl`,category:`People & Body`,aliases:[`family_man_man_girl`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👨‍👨‍👧‍👦`,description:`family: man, man, girl, boy`,category:`People & Body`,aliases:[`family_man_man_girl_boy`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👨‍👨‍👦‍👦`,description:`family: man, man, boy, boy`,category:`People & Body`,aliases:[`family_man_man_boy_boy`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👨‍👨‍👧‍👧`,description:`family: man, man, girl, girl`,category:`People & Body`,aliases:[`family_man_man_girl_girl`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👩‍👩‍👦`,description:`family: woman, woman, boy`,category:`People & Body`,aliases:[`family_woman_woman_boy`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👩‍👩‍👧`,description:`family: woman, woman, girl`,category:`People & Body`,aliases:[`family_woman_woman_girl`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👩‍👩‍👧‍👦`,description:`family: woman, woman, girl, boy`,category:`People & Body`,aliases:[`family_woman_woman_girl_boy`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👩‍👩‍👦‍👦`,description:`family: woman, woman, boy, boy`,category:`People & Body`,aliases:[`family_woman_woman_boy_boy`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👩‍👩‍👧‍👧`,description:`family: woman, woman, girl, girl`,category:`People & Body`,aliases:[`family_woman_woman_girl_girl`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`👨‍👦`,description:`family: man, boy`,category:`People & Body`,aliases:[`family_man_boy`],tags:[],unicode_version:`6.0`,ios_version:`10.0`},{emoji:`👨‍👦‍👦`,description:`family: man, boy, boy`,category:`People & Body`,aliases:[`family_man_boy_boy`],tags:[],unicode_version:`6.0`,ios_version:`10.0`},{emoji:`👨‍👧`,description:`family: man, girl`,category:`People & Body`,aliases:[`family_man_girl`],tags:[],unicode_version:`6.0`,ios_version:`10.0`},{emoji:`👨‍👧‍👦`,description:`family: man, girl, boy`,category:`People & Body`,aliases:[`family_man_girl_boy`],tags:[],unicode_version:`6.0`,ios_version:`10.0`},{emoji:`👨‍👧‍👧`,description:`family: man, girl, girl`,category:`People & Body`,aliases:[`family_man_girl_girl`],tags:[],unicode_version:`6.0`,ios_version:`10.0`},{emoji:`👩‍👦`,description:`family: woman, boy`,category:`People & Body`,aliases:[`family_woman_boy`],tags:[],unicode_version:`6.0`,ios_version:`10.0`},{emoji:`👩‍👦‍👦`,description:`family: woman, boy, boy`,category:`People & Body`,aliases:[`family_woman_boy_boy`],tags:[],unicode_version:`6.0`,ios_version:`10.0`},{emoji:`👩‍👧`,description:`family: woman, girl`,category:`People & Body`,aliases:[`family_woman_girl`],tags:[],unicode_version:`6.0`,ios_version:`10.0`},{emoji:`👩‍👧‍👦`,description:`family: woman, girl, boy`,category:`People & Body`,aliases:[`family_woman_girl_boy`],tags:[],unicode_version:`6.0`,ios_version:`10.0`},{emoji:`👩‍👧‍👧`,description:`family: woman, girl, girl`,category:`People & Body`,aliases:[`family_woman_girl_girl`],tags:[],unicode_version:`6.0`,ios_version:`10.0`},{emoji:`🗣️`,description:`speaking head`,category:`People & Body`,aliases:[`speaking_head`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`👤`,description:`bust in silhouette`,category:`People & Body`,aliases:[`bust_in_silhouette`],tags:[`user`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👥`,description:`busts in silhouette`,category:`People & Body`,aliases:[`busts_in_silhouette`],tags:[`users`,`group`,`team`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🫂`,description:`people hugging`,category:`People & Body`,aliases:[`people_hugging`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`👣`,description:`footprints`,category:`People & Body`,aliases:[`footprints`],tags:[`feet`,`tracks`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐵`,description:`monkey face`,category:`Animals & Nature`,aliases:[`monkey_face`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐒`,description:`monkey`,category:`Animals & Nature`,aliases:[`monkey`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦍`,description:`gorilla`,category:`Animals & Nature`,aliases:[`gorilla`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🦧`,description:`orangutan`,category:`Animals & Nature`,aliases:[`orangutan`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🐶`,description:`dog face`,category:`Animals & Nature`,aliases:[`dog`],tags:[`pet`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐕`,description:`dog`,category:`Animals & Nature`,aliases:[`dog2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦮`,description:`guide dog`,category:`Animals & Nature`,aliases:[`guide_dog`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🐕‍🦺`,description:`service dog`,category:`Animals & Nature`,aliases:[`service_dog`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🐩`,description:`poodle`,category:`Animals & Nature`,aliases:[`poodle`],tags:[`dog`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐺`,description:`wolf`,category:`Animals & Nature`,aliases:[`wolf`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦊`,description:`fox`,category:`Animals & Nature`,aliases:[`fox_face`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🦝`,description:`raccoon`,category:`Animals & Nature`,aliases:[`raccoon`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🐱`,description:`cat face`,category:`Animals & Nature`,aliases:[`cat`],tags:[`pet`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐈`,description:`cat`,category:`Animals & Nature`,aliases:[`cat2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐈‍⬛`,description:`black cat`,category:`Animals & Nature`,aliases:[`black_cat`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🦁`,description:`lion`,category:`Animals & Nature`,aliases:[`lion`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🐯`,description:`tiger face`,category:`Animals & Nature`,aliases:[`tiger`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐅`,description:`tiger`,category:`Animals & Nature`,aliases:[`tiger2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐆`,description:`leopard`,category:`Animals & Nature`,aliases:[`leopard`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐴`,description:`horse face`,category:`Animals & Nature`,aliases:[`horse`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐎`,description:`horse`,category:`Animals & Nature`,aliases:[`racehorse`],tags:[`speed`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦄`,description:`unicorn`,category:`Animals & Nature`,aliases:[`unicorn`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🦓`,description:`zebra`,category:`Animals & Nature`,aliases:[`zebra`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🦌`,description:`deer`,category:`Animals & Nature`,aliases:[`deer`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🦬`,description:`bison`,category:`Animals & Nature`,aliases:[`bison`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🐮`,description:`cow face`,category:`Animals & Nature`,aliases:[`cow`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐂`,description:`ox`,category:`Animals & Nature`,aliases:[`ox`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐃`,description:`water buffalo`,category:`Animals & Nature`,aliases:[`water_buffalo`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐄`,description:`cow`,category:`Animals & Nature`,aliases:[`cow2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐷`,description:`pig face`,category:`Animals & Nature`,aliases:[`pig`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐖`,description:`pig`,category:`Animals & Nature`,aliases:[`pig2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐗`,description:`boar`,category:`Animals & Nature`,aliases:[`boar`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐽`,description:`pig nose`,category:`Animals & Nature`,aliases:[`pig_nose`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐏`,description:`ram`,category:`Animals & Nature`,aliases:[`ram`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐑`,description:`ewe`,category:`Animals & Nature`,aliases:[`sheep`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐐`,description:`goat`,category:`Animals & Nature`,aliases:[`goat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐪`,description:`camel`,category:`Animals & Nature`,aliases:[`dromedary_camel`],tags:[`desert`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐫`,description:`two-hump camel`,category:`Animals & Nature`,aliases:[`camel`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦙`,description:`llama`,category:`Animals & Nature`,aliases:[`llama`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🦒`,description:`giraffe`,category:`Animals & Nature`,aliases:[`giraffe`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🐘`,description:`elephant`,category:`Animals & Nature`,aliases:[`elephant`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦣`,description:`mammoth`,category:`Animals & Nature`,aliases:[`mammoth`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🦏`,description:`rhinoceros`,category:`Animals & Nature`,aliases:[`rhinoceros`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🦛`,description:`hippopotamus`,category:`Animals & Nature`,aliases:[`hippopotamus`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🐭`,description:`mouse face`,category:`Animals & Nature`,aliases:[`mouse`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐁`,description:`mouse`,category:`Animals & Nature`,aliases:[`mouse2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐀`,description:`rat`,category:`Animals & Nature`,aliases:[`rat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐹`,description:`hamster`,category:`Animals & Nature`,aliases:[`hamster`],tags:[`pet`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐰`,description:`rabbit face`,category:`Animals & Nature`,aliases:[`rabbit`],tags:[`bunny`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐇`,description:`rabbit`,category:`Animals & Nature`,aliases:[`rabbit2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐿️`,description:`chipmunk`,category:`Animals & Nature`,aliases:[`chipmunk`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🦫`,description:`beaver`,category:`Animals & Nature`,aliases:[`beaver`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🦔`,description:`hedgehog`,category:`Animals & Nature`,aliases:[`hedgehog`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🦇`,description:`bat`,category:`Animals & Nature`,aliases:[`bat`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🐻`,description:`bear`,category:`Animals & Nature`,aliases:[`bear`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐻‍❄️`,description:`polar bear`,category:`Animals & Nature`,aliases:[`polar_bear`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🐨`,description:`koala`,category:`Animals & Nature`,aliases:[`koala`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐼`,description:`panda`,category:`Animals & Nature`,aliases:[`panda_face`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦥`,description:`sloth`,category:`Animals & Nature`,aliases:[`sloth`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🦦`,description:`otter`,category:`Animals & Nature`,aliases:[`otter`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🦨`,description:`skunk`,category:`Animals & Nature`,aliases:[`skunk`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🦘`,description:`kangaroo`,category:`Animals & Nature`,aliases:[`kangaroo`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🦡`,description:`badger`,category:`Animals & Nature`,aliases:[`badger`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🐾`,description:`paw prints`,category:`Animals & Nature`,aliases:[`feet`,`paw_prints`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦃`,description:`turkey`,category:`Animals & Nature`,aliases:[`turkey`],tags:[`thanksgiving`],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🐔`,description:`chicken`,category:`Animals & Nature`,aliases:[`chicken`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐓`,description:`rooster`,category:`Animals & Nature`,aliases:[`rooster`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐣`,description:`hatching chick`,category:`Animals & Nature`,aliases:[`hatching_chick`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐤`,description:`baby chick`,category:`Animals & Nature`,aliases:[`baby_chick`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐥`,description:`front-facing baby chick`,category:`Animals & Nature`,aliases:[`hatched_chick`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐦`,description:`bird`,category:`Animals & Nature`,aliases:[`bird`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐧`,description:`penguin`,category:`Animals & Nature`,aliases:[`penguin`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕊️`,description:`dove`,category:`Animals & Nature`,aliases:[`dove`],tags:[`peace`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🦅`,description:`eagle`,category:`Animals & Nature`,aliases:[`eagle`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🦆`,description:`duck`,category:`Animals & Nature`,aliases:[`duck`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🦢`,description:`swan`,category:`Animals & Nature`,aliases:[`swan`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🦉`,description:`owl`,category:`Animals & Nature`,aliases:[`owl`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🦤`,description:`dodo`,category:`Animals & Nature`,aliases:[`dodo`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🪶`,description:`feather`,category:`Animals & Nature`,aliases:[`feather`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🦩`,description:`flamingo`,category:`Animals & Nature`,aliases:[`flamingo`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🦚`,description:`peacock`,category:`Animals & Nature`,aliases:[`peacock`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🦜`,description:`parrot`,category:`Animals & Nature`,aliases:[`parrot`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🐸`,description:`frog`,category:`Animals & Nature`,aliases:[`frog`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐊`,description:`crocodile`,category:`Animals & Nature`,aliases:[`crocodile`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐢`,description:`turtle`,category:`Animals & Nature`,aliases:[`turtle`],tags:[`slow`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦎`,description:`lizard`,category:`Animals & Nature`,aliases:[`lizard`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🐍`,description:`snake`,category:`Animals & Nature`,aliases:[`snake`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐲`,description:`dragon face`,category:`Animals & Nature`,aliases:[`dragon_face`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐉`,description:`dragon`,category:`Animals & Nature`,aliases:[`dragon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦕`,description:`sauropod`,category:`Animals & Nature`,aliases:[`sauropod`],tags:[`dinosaur`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🦖`,description:`T-Rex`,category:`Animals & Nature`,aliases:[`t-rex`],tags:[`dinosaur`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🐳`,description:`spouting whale`,category:`Animals & Nature`,aliases:[`whale`],tags:[`sea`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐋`,description:`whale`,category:`Animals & Nature`,aliases:[`whale2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐬`,description:`dolphin`,category:`Animals & Nature`,aliases:[`dolphin`,`flipper`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦭`,description:`seal`,category:`Animals & Nature`,aliases:[`seal`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🐟`,description:`fish`,category:`Animals & Nature`,aliases:[`fish`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐠`,description:`tropical fish`,category:`Animals & Nature`,aliases:[`tropical_fish`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐡`,description:`blowfish`,category:`Animals & Nature`,aliases:[`blowfish`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦈`,description:`shark`,category:`Animals & Nature`,aliases:[`shark`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🐙`,description:`octopus`,category:`Animals & Nature`,aliases:[`octopus`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐚`,description:`spiral shell`,category:`Animals & Nature`,aliases:[`shell`],tags:[`sea`,`beach`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐌`,description:`snail`,category:`Animals & Nature`,aliases:[`snail`],tags:[`slow`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦋`,description:`butterfly`,category:`Animals & Nature`,aliases:[`butterfly`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🐛`,description:`bug`,category:`Animals & Nature`,aliases:[`bug`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐜`,description:`ant`,category:`Animals & Nature`,aliases:[`ant`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🐝`,description:`honeybee`,category:`Animals & Nature`,aliases:[`bee`,`honeybee`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪲`,description:`beetle`,category:`Animals & Nature`,aliases:[`beetle`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🐞`,description:`lady beetle`,category:`Animals & Nature`,aliases:[`lady_beetle`],tags:[`bug`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🦗`,description:`cricket`,category:`Animals & Nature`,aliases:[`cricket`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🪳`,description:`cockroach`,category:`Animals & Nature`,aliases:[`cockroach`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🕷️`,description:`spider`,category:`Animals & Nature`,aliases:[`spider`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🕸️`,description:`spider web`,category:`Animals & Nature`,aliases:[`spider_web`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🦂`,description:`scorpion`,category:`Animals & Nature`,aliases:[`scorpion`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🦟`,description:`mosquito`,category:`Animals & Nature`,aliases:[`mosquito`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🪰`,description:`fly`,category:`Animals & Nature`,aliases:[`fly`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🪱`,description:`worm`,category:`Animals & Nature`,aliases:[`worm`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🦠`,description:`microbe`,category:`Animals & Nature`,aliases:[`microbe`],tags:[`germ`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`💐`,description:`bouquet`,category:`Animals & Nature`,aliases:[`bouquet`],tags:[`flowers`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌸`,description:`cherry blossom`,category:`Animals & Nature`,aliases:[`cherry_blossom`],tags:[`flower`,`spring`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💮`,description:`white flower`,category:`Animals & Nature`,aliases:[`white_flower`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏵️`,description:`rosette`,category:`Animals & Nature`,aliases:[`rosette`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🌹`,description:`rose`,category:`Animals & Nature`,aliases:[`rose`],tags:[`flower`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥀`,description:`wilted flower`,category:`Animals & Nature`,aliases:[`wilted_flower`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🌺`,description:`hibiscus`,category:`Animals & Nature`,aliases:[`hibiscus`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌻`,description:`sunflower`,category:`Animals & Nature`,aliases:[`sunflower`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌼`,description:`blossom`,category:`Animals & Nature`,aliases:[`blossom`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌷`,description:`tulip`,category:`Animals & Nature`,aliases:[`tulip`],tags:[`flower`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌱`,description:`seedling`,category:`Animals & Nature`,aliases:[`seedling`],tags:[`plant`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪴`,description:`potted plant`,category:`Animals & Nature`,aliases:[`potted_plant`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🌲`,description:`evergreen tree`,category:`Animals & Nature`,aliases:[`evergreen_tree`],tags:[`wood`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌳`,description:`deciduous tree`,category:`Animals & Nature`,aliases:[`deciduous_tree`],tags:[`wood`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌴`,description:`palm tree`,category:`Animals & Nature`,aliases:[`palm_tree`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌵`,description:`cactus`,category:`Animals & Nature`,aliases:[`cactus`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌾`,description:`sheaf of rice`,category:`Animals & Nature`,aliases:[`ear_of_rice`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌿`,description:`herb`,category:`Animals & Nature`,aliases:[`herb`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`☘️`,description:`shamrock`,category:`Animals & Nature`,aliases:[`shamrock`],tags:[],unicode_version:`4.1`,ios_version:`9.1`},{emoji:`🍀`,description:`four leaf clover`,category:`Animals & Nature`,aliases:[`four_leaf_clover`],tags:[`luck`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍁`,description:`maple leaf`,category:`Animals & Nature`,aliases:[`maple_leaf`],tags:[`canada`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍂`,description:`fallen leaf`,category:`Animals & Nature`,aliases:[`fallen_leaf`],tags:[`autumn`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍃`,description:`leaf fluttering in wind`,category:`Animals & Nature`,aliases:[`leaves`],tags:[`leaf`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍇`,description:`grapes`,category:`Food & Drink`,aliases:[`grapes`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍈`,description:`melon`,category:`Food & Drink`,aliases:[`melon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍉`,description:`watermelon`,category:`Food & Drink`,aliases:[`watermelon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍊`,description:`tangerine`,category:`Food & Drink`,aliases:[`tangerine`,`orange`,`mandarin`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍋`,description:`lemon`,category:`Food & Drink`,aliases:[`lemon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍌`,description:`banana`,category:`Food & Drink`,aliases:[`banana`],tags:[`fruit`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍍`,description:`pineapple`,category:`Food & Drink`,aliases:[`pineapple`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥭`,description:`mango`,category:`Food & Drink`,aliases:[`mango`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🍎`,description:`red apple`,category:`Food & Drink`,aliases:[`apple`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍏`,description:`green apple`,category:`Food & Drink`,aliases:[`green_apple`],tags:[`fruit`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍐`,description:`pear`,category:`Food & Drink`,aliases:[`pear`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍑`,description:`peach`,category:`Food & Drink`,aliases:[`peach`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍒`,description:`cherries`,category:`Food & Drink`,aliases:[`cherries`],tags:[`fruit`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍓`,description:`strawberry`,category:`Food & Drink`,aliases:[`strawberry`],tags:[`fruit`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🫐`,description:`blueberries`,category:`Food & Drink`,aliases:[`blueberries`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🥝`,description:`kiwi fruit`,category:`Food & Drink`,aliases:[`kiwi_fruit`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🍅`,description:`tomato`,category:`Food & Drink`,aliases:[`tomato`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🫒`,description:`olive`,category:`Food & Drink`,aliases:[`olive`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🥥`,description:`coconut`,category:`Food & Drink`,aliases:[`coconut`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥑`,description:`avocado`,category:`Food & Drink`,aliases:[`avocado`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🍆`,description:`eggplant`,category:`Food & Drink`,aliases:[`eggplant`],tags:[`aubergine`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥔`,description:`potato`,category:`Food & Drink`,aliases:[`potato`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🥕`,description:`carrot`,category:`Food & Drink`,aliases:[`carrot`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🌽`,description:`ear of corn`,category:`Food & Drink`,aliases:[`corn`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌶️`,description:`hot pepper`,category:`Food & Drink`,aliases:[`hot_pepper`],tags:[`spicy`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🫑`,description:`bell pepper`,category:`Food & Drink`,aliases:[`bell_pepper`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🥒`,description:`cucumber`,category:`Food & Drink`,aliases:[`cucumber`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🥬`,description:`leafy green`,category:`Food & Drink`,aliases:[`leafy_green`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥦`,description:`broccoli`,category:`Food & Drink`,aliases:[`broccoli`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧄`,description:`garlic`,category:`Food & Drink`,aliases:[`garlic`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🧅`,description:`onion`,category:`Food & Drink`,aliases:[`onion`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🍄`,description:`mushroom`,category:`Food & Drink`,aliases:[`mushroom`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥜`,description:`peanuts`,category:`Food & Drink`,aliases:[`peanuts`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🌰`,description:`chestnut`,category:`Food & Drink`,aliases:[`chestnut`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍞`,description:`bread`,category:`Food & Drink`,aliases:[`bread`],tags:[`toast`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥐`,description:`croissant`,category:`Food & Drink`,aliases:[`croissant`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🥖`,description:`baguette bread`,category:`Food & Drink`,aliases:[`baguette_bread`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🫓`,description:`flatbread`,category:`Food & Drink`,aliases:[`flatbread`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🥨`,description:`pretzel`,category:`Food & Drink`,aliases:[`pretzel`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥯`,description:`bagel`,category:`Food & Drink`,aliases:[`bagel`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥞`,description:`pancakes`,category:`Food & Drink`,aliases:[`pancakes`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🧇`,description:`waffle`,category:`Food & Drink`,aliases:[`waffle`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🧀`,description:`cheese wedge`,category:`Food & Drink`,aliases:[`cheese`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🍖`,description:`meat on bone`,category:`Food & Drink`,aliases:[`meat_on_bone`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍗`,description:`poultry leg`,category:`Food & Drink`,aliases:[`poultry_leg`],tags:[`meat`,`chicken`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥩`,description:`cut of meat`,category:`Food & Drink`,aliases:[`cut_of_meat`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥓`,description:`bacon`,category:`Food & Drink`,aliases:[`bacon`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🍔`,description:`hamburger`,category:`Food & Drink`,aliases:[`hamburger`],tags:[`burger`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍟`,description:`french fries`,category:`Food & Drink`,aliases:[`fries`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍕`,description:`pizza`,category:`Food & Drink`,aliases:[`pizza`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌭`,description:`hot dog`,category:`Food & Drink`,aliases:[`hotdog`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🥪`,description:`sandwich`,category:`Food & Drink`,aliases:[`sandwich`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🌮`,description:`taco`,category:`Food & Drink`,aliases:[`taco`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🌯`,description:`burrito`,category:`Food & Drink`,aliases:[`burrito`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🫔`,description:`tamale`,category:`Food & Drink`,aliases:[`tamale`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🥙`,description:`stuffed flatbread`,category:`Food & Drink`,aliases:[`stuffed_flatbread`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🧆`,description:`falafel`,category:`Food & Drink`,aliases:[`falafel`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🥚`,description:`egg`,category:`Food & Drink`,aliases:[`egg`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🍳`,description:`cooking`,category:`Food & Drink`,aliases:[`fried_egg`],tags:[`breakfast`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥘`,description:`shallow pan of food`,category:`Food & Drink`,aliases:[`shallow_pan_of_food`],tags:[`paella`,`curry`],unicode_version:``,ios_version:`10.2`},{emoji:`🍲`,description:`pot of food`,category:`Food & Drink`,aliases:[`stew`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🫕`,description:`fondue`,category:`Food & Drink`,aliases:[`fondue`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🥣`,description:`bowl with spoon`,category:`Food & Drink`,aliases:[`bowl_with_spoon`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥗`,description:`green salad`,category:`Food & Drink`,aliases:[`green_salad`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🍿`,description:`popcorn`,category:`Food & Drink`,aliases:[`popcorn`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🧈`,description:`butter`,category:`Food & Drink`,aliases:[`butter`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🧂`,description:`salt`,category:`Food & Drink`,aliases:[`salt`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥫`,description:`canned food`,category:`Food & Drink`,aliases:[`canned_food`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🍱`,description:`bento box`,category:`Food & Drink`,aliases:[`bento`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍘`,description:`rice cracker`,category:`Food & Drink`,aliases:[`rice_cracker`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍙`,description:`rice ball`,category:`Food & Drink`,aliases:[`rice_ball`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍚`,description:`cooked rice`,category:`Food & Drink`,aliases:[`rice`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍛`,description:`curry rice`,category:`Food & Drink`,aliases:[`curry`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍜`,description:`steaming bowl`,category:`Food & Drink`,aliases:[`ramen`],tags:[`noodle`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍝`,description:`spaghetti`,category:`Food & Drink`,aliases:[`spaghetti`],tags:[`pasta`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍠`,description:`roasted sweet potato`,category:`Food & Drink`,aliases:[`sweet_potato`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍢`,description:`oden`,category:`Food & Drink`,aliases:[`oden`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍣`,description:`sushi`,category:`Food & Drink`,aliases:[`sushi`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍤`,description:`fried shrimp`,category:`Food & Drink`,aliases:[`fried_shrimp`],tags:[`tempura`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍥`,description:`fish cake with swirl`,category:`Food & Drink`,aliases:[`fish_cake`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥮`,description:`moon cake`,category:`Food & Drink`,aliases:[`moon_cake`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🍡`,description:`dango`,category:`Food & Drink`,aliases:[`dango`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥟`,description:`dumpling`,category:`Food & Drink`,aliases:[`dumpling`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥠`,description:`fortune cookie`,category:`Food & Drink`,aliases:[`fortune_cookie`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥡`,description:`takeout box`,category:`Food & Drink`,aliases:[`takeout_box`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🦀`,description:`crab`,category:`Food & Drink`,aliases:[`crab`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🦞`,description:`lobster`,category:`Food & Drink`,aliases:[`lobster`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🦐`,description:`shrimp`,category:`Food & Drink`,aliases:[`shrimp`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🦑`,description:`squid`,category:`Food & Drink`,aliases:[`squid`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🦪`,description:`oyster`,category:`Food & Drink`,aliases:[`oyster`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🍦`,description:`soft ice cream`,category:`Food & Drink`,aliases:[`icecream`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍧`,description:`shaved ice`,category:`Food & Drink`,aliases:[`shaved_ice`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍨`,description:`ice cream`,category:`Food & Drink`,aliases:[`ice_cream`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍩`,description:`doughnut`,category:`Food & Drink`,aliases:[`doughnut`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍪`,description:`cookie`,category:`Food & Drink`,aliases:[`cookie`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎂`,description:`birthday cake`,category:`Food & Drink`,aliases:[`birthday`],tags:[`party`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍰`,description:`shortcake`,category:`Food & Drink`,aliases:[`cake`],tags:[`dessert`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🧁`,description:`cupcake`,category:`Food & Drink`,aliases:[`cupcake`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥧`,description:`pie`,category:`Food & Drink`,aliases:[`pie`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🍫`,description:`chocolate bar`,category:`Food & Drink`,aliases:[`chocolate_bar`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍬`,description:`candy`,category:`Food & Drink`,aliases:[`candy`],tags:[`sweet`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍭`,description:`lollipop`,category:`Food & Drink`,aliases:[`lollipop`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍮`,description:`custard`,category:`Food & Drink`,aliases:[`custard`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍯`,description:`honey pot`,category:`Food & Drink`,aliases:[`honey_pot`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍼`,description:`baby bottle`,category:`Food & Drink`,aliases:[`baby_bottle`],tags:[`milk`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥛`,description:`glass of milk`,category:`Food & Drink`,aliases:[`milk_glass`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`☕`,description:`hot beverage`,category:`Food & Drink`,aliases:[`coffee`],tags:[`cafe`,`espresso`],unicode_version:`4.0`,ios_version:`6.0`},{emoji:`🫖`,description:`teapot`,category:`Food & Drink`,aliases:[`teapot`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🍵`,description:`teacup without handle`,category:`Food & Drink`,aliases:[`tea`],tags:[`green`,`breakfast`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍶`,description:`sake`,category:`Food & Drink`,aliases:[`sake`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍾`,description:`bottle with popping cork`,category:`Food & Drink`,aliases:[`champagne`],tags:[`bottle`,`bubbly`,`celebration`],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🍷`,description:`wine glass`,category:`Food & Drink`,aliases:[`wine_glass`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍸`,description:`cocktail glass`,category:`Food & Drink`,aliases:[`cocktail`],tags:[`drink`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍹`,description:`tropical drink`,category:`Food & Drink`,aliases:[`tropical_drink`],tags:[`summer`,`vacation`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍺`,description:`beer mug`,category:`Food & Drink`,aliases:[`beer`],tags:[`drink`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🍻`,description:`clinking beer mugs`,category:`Food & Drink`,aliases:[`beers`],tags:[`drinks`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥂`,description:`clinking glasses`,category:`Food & Drink`,aliases:[`clinking_glasses`],tags:[`cheers`,`toast`],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🥃`,description:`tumbler glass`,category:`Food & Drink`,aliases:[`tumbler_glass`],tags:[`whisky`],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🥤`,description:`cup with straw`,category:`Food & Drink`,aliases:[`cup_with_straw`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧋`,description:`bubble tea`,category:`Food & Drink`,aliases:[`bubble_tea`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🧃`,description:`beverage box`,category:`Food & Drink`,aliases:[`beverage_box`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🧉`,description:`mate`,category:`Food & Drink`,aliases:[`mate`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🧊`,description:`ice`,category:`Food & Drink`,aliases:[`ice_cube`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🥢`,description:`chopsticks`,category:`Food & Drink`,aliases:[`chopsticks`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🍽️`,description:`fork and knife with plate`,category:`Food & Drink`,aliases:[`plate_with_cutlery`],tags:[`dining`,`dinner`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🍴`,description:`fork and knife`,category:`Food & Drink`,aliases:[`fork_and_knife`],tags:[`cutlery`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥄`,description:`spoon`,category:`Food & Drink`,aliases:[`spoon`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🔪`,description:`kitchen knife`,category:`Food & Drink`,aliases:[`hocho`,`knife`],tags:[`cut`,`chop`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏺`,description:`amphora`,category:`Food & Drink`,aliases:[`amphora`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🌍`,description:`globe showing Europe-Africa`,category:`Travel & Places`,aliases:[`earth_africa`],tags:[`globe`,`world`,`international`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌎`,description:`globe showing Americas`,category:`Travel & Places`,aliases:[`earth_americas`],tags:[`globe`,`world`,`international`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌏`,description:`globe showing Asia-Australia`,category:`Travel & Places`,aliases:[`earth_asia`],tags:[`globe`,`world`,`international`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌐`,description:`globe with meridians`,category:`Travel & Places`,aliases:[`globe_with_meridians`],tags:[`world`,`global`,`international`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🗺️`,description:`world map`,category:`Travel & Places`,aliases:[`world_map`],tags:[`travel`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🗾`,description:`map of Japan`,category:`Travel & Places`,aliases:[`japan`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🧭`,description:`compass`,category:`Travel & Places`,aliases:[`compass`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🏔️`,description:`snow-capped mountain`,category:`Travel & Places`,aliases:[`mountain_snow`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`⛰️`,description:`mountain`,category:`Travel & Places`,aliases:[`mountain`],tags:[],unicode_version:`5.2`,ios_version:`9.1`},{emoji:`🌋`,description:`volcano`,category:`Travel & Places`,aliases:[`volcano`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🗻`,description:`mount fuji`,category:`Travel & Places`,aliases:[`mount_fuji`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏕️`,description:`camping`,category:`Travel & Places`,aliases:[`camping`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏖️`,description:`beach with umbrella`,category:`Travel & Places`,aliases:[`beach_umbrella`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏜️`,description:`desert`,category:`Travel & Places`,aliases:[`desert`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏝️`,description:`desert island`,category:`Travel & Places`,aliases:[`desert_island`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏞️`,description:`national park`,category:`Travel & Places`,aliases:[`national_park`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏟️`,description:`stadium`,category:`Travel & Places`,aliases:[`stadium`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏛️`,description:`classical building`,category:`Travel & Places`,aliases:[`classical_building`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏗️`,description:`building construction`,category:`Travel & Places`,aliases:[`building_construction`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🧱`,description:`brick`,category:`Travel & Places`,aliases:[`bricks`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🪨`,description:`rock`,category:`Travel & Places`,aliases:[`rock`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🪵`,description:`wood`,category:`Travel & Places`,aliases:[`wood`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🛖`,description:`hut`,category:`Travel & Places`,aliases:[`hut`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🏘️`,description:`houses`,category:`Travel & Places`,aliases:[`houses`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏚️`,description:`derelict house`,category:`Travel & Places`,aliases:[`derelict_house`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏠`,description:`house`,category:`Travel & Places`,aliases:[`house`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏡`,description:`house with garden`,category:`Travel & Places`,aliases:[`house_with_garden`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏢`,description:`office building`,category:`Travel & Places`,aliases:[`office`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏣`,description:`Japanese post office`,category:`Travel & Places`,aliases:[`post_office`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏤`,description:`post office`,category:`Travel & Places`,aliases:[`european_post_office`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏥`,description:`hospital`,category:`Travel & Places`,aliases:[`hospital`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏦`,description:`bank`,category:`Travel & Places`,aliases:[`bank`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏨`,description:`hotel`,category:`Travel & Places`,aliases:[`hotel`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏩`,description:`love hotel`,category:`Travel & Places`,aliases:[`love_hotel`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏪`,description:`convenience store`,category:`Travel & Places`,aliases:[`convenience_store`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏫`,description:`school`,category:`Travel & Places`,aliases:[`school`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏬`,description:`department store`,category:`Travel & Places`,aliases:[`department_store`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏭`,description:`factory`,category:`Travel & Places`,aliases:[`factory`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏯`,description:`Japanese castle`,category:`Travel & Places`,aliases:[`japanese_castle`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏰`,description:`castle`,category:`Travel & Places`,aliases:[`european_castle`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💒`,description:`wedding`,category:`Travel & Places`,aliases:[`wedding`],tags:[`marriage`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🗼`,description:`Tokyo tower`,category:`Travel & Places`,aliases:[`tokyo_tower`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🗽`,description:`Statue of Liberty`,category:`Travel & Places`,aliases:[`statue_of_liberty`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⛪`,description:`church`,category:`Travel & Places`,aliases:[`church`],tags:[],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`🕌`,description:`mosque`,category:`Travel & Places`,aliases:[`mosque`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🛕`,description:`hindu temple`,category:`Travel & Places`,aliases:[`hindu_temple`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🕍`,description:`synagogue`,category:`Travel & Places`,aliases:[`synagogue`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`⛩️`,description:`shinto shrine`,category:`Travel & Places`,aliases:[`shinto_shrine`],tags:[],unicode_version:`5.2`,ios_version:`9.1`},{emoji:`🕋`,description:`kaaba`,category:`Travel & Places`,aliases:[`kaaba`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`⛲`,description:`fountain`,category:`Travel & Places`,aliases:[`fountain`],tags:[],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`⛺`,description:`tent`,category:`Travel & Places`,aliases:[`tent`],tags:[`camping`],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`🌁`,description:`foggy`,category:`Travel & Places`,aliases:[`foggy`],tags:[`karl`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌃`,description:`night with stars`,category:`Travel & Places`,aliases:[`night_with_stars`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏙️`,description:`cityscape`,category:`Travel & Places`,aliases:[`cityscape`],tags:[`skyline`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🌄`,description:`sunrise over mountains`,category:`Travel & Places`,aliases:[`sunrise_over_mountains`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌅`,description:`sunrise`,category:`Travel & Places`,aliases:[`sunrise`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌆`,description:`cityscape at dusk`,category:`Travel & Places`,aliases:[`city_sunset`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌇`,description:`sunset`,category:`Travel & Places`,aliases:[`city_sunrise`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌉`,description:`bridge at night`,category:`Travel & Places`,aliases:[`bridge_at_night`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`♨️`,description:`hot springs`,category:`Travel & Places`,aliases:[`hotsprings`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`🎠`,description:`carousel horse`,category:`Travel & Places`,aliases:[`carousel_horse`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎡`,description:`ferris wheel`,category:`Travel & Places`,aliases:[`ferris_wheel`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎢`,description:`roller coaster`,category:`Travel & Places`,aliases:[`roller_coaster`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💈`,description:`barber pole`,category:`Travel & Places`,aliases:[`barber`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎪`,description:`circus tent`,category:`Travel & Places`,aliases:[`circus_tent`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚂`,description:`locomotive`,category:`Travel & Places`,aliases:[`steam_locomotive`],tags:[`train`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚃`,description:`railway car`,category:`Travel & Places`,aliases:[`railway_car`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚄`,description:`high-speed train`,category:`Travel & Places`,aliases:[`bullettrain_side`],tags:[`train`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚅`,description:`bullet train`,category:`Travel & Places`,aliases:[`bullettrain_front`],tags:[`train`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚆`,description:`train`,category:`Travel & Places`,aliases:[`train2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚇`,description:`metro`,category:`Travel & Places`,aliases:[`metro`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚈`,description:`light rail`,category:`Travel & Places`,aliases:[`light_rail`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚉`,description:`station`,category:`Travel & Places`,aliases:[`station`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚊`,description:`tram`,category:`Travel & Places`,aliases:[`tram`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚝`,description:`monorail`,category:`Travel & Places`,aliases:[`monorail`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚞`,description:`mountain railway`,category:`Travel & Places`,aliases:[`mountain_railway`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚋`,description:`tram car`,category:`Travel & Places`,aliases:[`train`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚌`,description:`bus`,category:`Travel & Places`,aliases:[`bus`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚍`,description:`oncoming bus`,category:`Travel & Places`,aliases:[`oncoming_bus`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚎`,description:`trolleybus`,category:`Travel & Places`,aliases:[`trolleybus`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚐`,description:`minibus`,category:`Travel & Places`,aliases:[`minibus`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚑`,description:`ambulance`,category:`Travel & Places`,aliases:[`ambulance`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚒`,description:`fire engine`,category:`Travel & Places`,aliases:[`fire_engine`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚓`,description:`police car`,category:`Travel & Places`,aliases:[`police_car`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚔`,description:`oncoming police car`,category:`Travel & Places`,aliases:[`oncoming_police_car`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚕`,description:`taxi`,category:`Travel & Places`,aliases:[`taxi`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚖`,description:`oncoming taxi`,category:`Travel & Places`,aliases:[`oncoming_taxi`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚗`,description:`automobile`,category:`Travel & Places`,aliases:[`car`,`red_car`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚘`,description:`oncoming automobile`,category:`Travel & Places`,aliases:[`oncoming_automobile`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚙`,description:`sport utility vehicle`,category:`Travel & Places`,aliases:[`blue_car`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛻`,description:`pickup truck`,category:`Travel & Places`,aliases:[`pickup_truck`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🚚`,description:`delivery truck`,category:`Travel & Places`,aliases:[`truck`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚛`,description:`articulated lorry`,category:`Travel & Places`,aliases:[`articulated_lorry`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚜`,description:`tractor`,category:`Travel & Places`,aliases:[`tractor`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏎️`,description:`racing car`,category:`Travel & Places`,aliases:[`racing_car`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏍️`,description:`motorcycle`,category:`Travel & Places`,aliases:[`motorcycle`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🛵`,description:`motor scooter`,category:`Travel & Places`,aliases:[`motor_scooter`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🦽`,description:`manual wheelchair`,category:`Travel & Places`,aliases:[`manual_wheelchair`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🦼`,description:`motorized wheelchair`,category:`Travel & Places`,aliases:[`motorized_wheelchair`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🛺`,description:`auto rickshaw`,category:`Travel & Places`,aliases:[`auto_rickshaw`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🚲`,description:`bicycle`,category:`Travel & Places`,aliases:[`bike`],tags:[`bicycle`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛴`,description:`kick scooter`,category:`Travel & Places`,aliases:[`kick_scooter`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🛹`,description:`skateboard`,category:`Travel & Places`,aliases:[`skateboard`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🛼`,description:`roller skate`,category:`Travel & Places`,aliases:[`roller_skate`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🚏`,description:`bus stop`,category:`Travel & Places`,aliases:[`busstop`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛣️`,description:`motorway`,category:`Travel & Places`,aliases:[`motorway`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🛤️`,description:`railway track`,category:`Travel & Places`,aliases:[`railway_track`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🛢️`,description:`oil drum`,category:`Travel & Places`,aliases:[`oil_drum`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`⛽`,description:`fuel pump`,category:`Travel & Places`,aliases:[`fuelpump`],tags:[],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`🚨`,description:`police car light`,category:`Travel & Places`,aliases:[`rotating_light`],tags:[`911`,`emergency`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚥`,description:`horizontal traffic light`,category:`Travel & Places`,aliases:[`traffic_light`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚦`,description:`vertical traffic light`,category:`Travel & Places`,aliases:[`vertical_traffic_light`],tags:[`semaphore`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛑`,description:`stop sign`,category:`Travel & Places`,aliases:[`stop_sign`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🚧`,description:`construction`,category:`Travel & Places`,aliases:[`construction`],tags:[`wip`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⚓`,description:`anchor`,category:`Travel & Places`,aliases:[`anchor`],tags:[`ship`],unicode_version:`4.1`,ios_version:`6.0`},{emoji:`⛵`,description:`sailboat`,category:`Travel & Places`,aliases:[`boat`,`sailboat`],tags:[],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`🛶`,description:`canoe`,category:`Travel & Places`,aliases:[`canoe`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🚤`,description:`speedboat`,category:`Travel & Places`,aliases:[`speedboat`],tags:[`ship`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛳️`,description:`passenger ship`,category:`Travel & Places`,aliases:[`passenger_ship`],tags:[`cruise`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`⛴️`,description:`ferry`,category:`Travel & Places`,aliases:[`ferry`],tags:[],unicode_version:`5.2`,ios_version:`9.1`},{emoji:`🛥️`,description:`motor boat`,category:`Travel & Places`,aliases:[`motor_boat`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🚢`,description:`ship`,category:`Travel & Places`,aliases:[`ship`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`✈️`,description:`airplane`,category:`Travel & Places`,aliases:[`airplane`],tags:[`flight`],unicode_version:``,ios_version:`6.0`},{emoji:`🛩️`,description:`small airplane`,category:`Travel & Places`,aliases:[`small_airplane`],tags:[`flight`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🛫`,description:`airplane departure`,category:`Travel & Places`,aliases:[`flight_departure`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🛬`,description:`airplane arrival`,category:`Travel & Places`,aliases:[`flight_arrival`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🪂`,description:`parachute`,category:`Travel & Places`,aliases:[`parachute`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`💺`,description:`seat`,category:`Travel & Places`,aliases:[`seat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚁`,description:`helicopter`,category:`Travel & Places`,aliases:[`helicopter`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚟`,description:`suspension railway`,category:`Travel & Places`,aliases:[`suspension_railway`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚠`,description:`mountain cableway`,category:`Travel & Places`,aliases:[`mountain_cableway`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚡`,description:`aerial tramway`,category:`Travel & Places`,aliases:[`aerial_tramway`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛰️`,description:`satellite`,category:`Travel & Places`,aliases:[`artificial_satellite`],tags:[`orbit`,`space`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🚀`,description:`rocket`,category:`Travel & Places`,aliases:[`rocket`],tags:[`ship`,`launch`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛸`,description:`flying saucer`,category:`Travel & Places`,aliases:[`flying_saucer`],tags:[`ufo`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🛎️`,description:`bellhop bell`,category:`Travel & Places`,aliases:[`bellhop_bell`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🧳`,description:`luggage`,category:`Travel & Places`,aliases:[`luggage`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`⌛`,description:`hourglass done`,category:`Travel & Places`,aliases:[`hourglass`],tags:[`time`],unicode_version:``,ios_version:`6.0`},{emoji:`⏳`,description:`hourglass not done`,category:`Travel & Places`,aliases:[`hourglass_flowing_sand`],tags:[`time`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⌚`,description:`watch`,category:`Travel & Places`,aliases:[`watch`],tags:[`time`],unicode_version:``,ios_version:`6.0`},{emoji:`⏰`,description:`alarm clock`,category:`Travel & Places`,aliases:[`alarm_clock`],tags:[`morning`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⏱️`,description:`stopwatch`,category:`Travel & Places`,aliases:[`stopwatch`],tags:[],unicode_version:`6.0`,ios_version:`9.1`},{emoji:`⏲️`,description:`timer clock`,category:`Travel & Places`,aliases:[`timer_clock`],tags:[],unicode_version:`6.0`,ios_version:`9.1`},{emoji:`🕰️`,description:`mantelpiece clock`,category:`Travel & Places`,aliases:[`mantelpiece_clock`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🕛`,description:`twelve o’clock`,category:`Travel & Places`,aliases:[`clock12`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕧`,description:`twelve-thirty`,category:`Travel & Places`,aliases:[`clock1230`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕐`,description:`one o’clock`,category:`Travel & Places`,aliases:[`clock1`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕜`,description:`one-thirty`,category:`Travel & Places`,aliases:[`clock130`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕑`,description:`two o’clock`,category:`Travel & Places`,aliases:[`clock2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕝`,description:`two-thirty`,category:`Travel & Places`,aliases:[`clock230`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕒`,description:`three o’clock`,category:`Travel & Places`,aliases:[`clock3`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕞`,description:`three-thirty`,category:`Travel & Places`,aliases:[`clock330`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕓`,description:`four o’clock`,category:`Travel & Places`,aliases:[`clock4`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕟`,description:`four-thirty`,category:`Travel & Places`,aliases:[`clock430`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕔`,description:`five o’clock`,category:`Travel & Places`,aliases:[`clock5`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕠`,description:`five-thirty`,category:`Travel & Places`,aliases:[`clock530`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕕`,description:`six o’clock`,category:`Travel & Places`,aliases:[`clock6`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕡`,description:`six-thirty`,category:`Travel & Places`,aliases:[`clock630`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕖`,description:`seven o’clock`,category:`Travel & Places`,aliases:[`clock7`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕢`,description:`seven-thirty`,category:`Travel & Places`,aliases:[`clock730`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕗`,description:`eight o’clock`,category:`Travel & Places`,aliases:[`clock8`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕣`,description:`eight-thirty`,category:`Travel & Places`,aliases:[`clock830`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕘`,description:`nine o’clock`,category:`Travel & Places`,aliases:[`clock9`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕤`,description:`nine-thirty`,category:`Travel & Places`,aliases:[`clock930`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕙`,description:`ten o’clock`,category:`Travel & Places`,aliases:[`clock10`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕥`,description:`ten-thirty`,category:`Travel & Places`,aliases:[`clock1030`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕚`,description:`eleven o’clock`,category:`Travel & Places`,aliases:[`clock11`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕦`,description:`eleven-thirty`,category:`Travel & Places`,aliases:[`clock1130`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌑`,description:`new moon`,category:`Travel & Places`,aliases:[`new_moon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌒`,description:`waxing crescent moon`,category:`Travel & Places`,aliases:[`waxing_crescent_moon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌓`,description:`first quarter moon`,category:`Travel & Places`,aliases:[`first_quarter_moon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌔`,description:`waxing gibbous moon`,category:`Travel & Places`,aliases:[`moon`,`waxing_gibbous_moon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌕`,description:`full moon`,category:`Travel & Places`,aliases:[`full_moon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌖`,description:`waning gibbous moon`,category:`Travel & Places`,aliases:[`waning_gibbous_moon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌗`,description:`last quarter moon`,category:`Travel & Places`,aliases:[`last_quarter_moon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌘`,description:`waning crescent moon`,category:`Travel & Places`,aliases:[`waning_crescent_moon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌙`,description:`crescent moon`,category:`Travel & Places`,aliases:[`crescent_moon`],tags:[`night`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌚`,description:`new moon face`,category:`Travel & Places`,aliases:[`new_moon_with_face`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌛`,description:`first quarter moon face`,category:`Travel & Places`,aliases:[`first_quarter_moon_with_face`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌜`,description:`last quarter moon face`,category:`Travel & Places`,aliases:[`last_quarter_moon_with_face`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌡️`,description:`thermometer`,category:`Travel & Places`,aliases:[`thermometer`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`☀️`,description:`sun`,category:`Travel & Places`,aliases:[`sunny`],tags:[`weather`],unicode_version:``,ios_version:`6.0`},{emoji:`🌝`,description:`full moon face`,category:`Travel & Places`,aliases:[`full_moon_with_face`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌞`,description:`sun with face`,category:`Travel & Places`,aliases:[`sun_with_face`],tags:[`summer`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪐`,description:`ringed planet`,category:`Travel & Places`,aliases:[`ringed_planet`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`⭐`,description:`star`,category:`Travel & Places`,aliases:[`star`],tags:[],unicode_version:`5.1`,ios_version:`6.0`},{emoji:`🌟`,description:`glowing star`,category:`Travel & Places`,aliases:[`star2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌠`,description:`shooting star`,category:`Travel & Places`,aliases:[`stars`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌌`,description:`milky way`,category:`Travel & Places`,aliases:[`milky_way`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`☁️`,description:`cloud`,category:`Travel & Places`,aliases:[`cloud`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`⛅`,description:`sun behind cloud`,category:`Travel & Places`,aliases:[`partly_sunny`],tags:[`weather`,`cloud`],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`⛈️`,description:`cloud with lightning and rain`,category:`Travel & Places`,aliases:[`cloud_with_lightning_and_rain`],tags:[],unicode_version:`5.2`,ios_version:`9.1`},{emoji:`🌤️`,description:`sun behind small cloud`,category:`Travel & Places`,aliases:[`sun_behind_small_cloud`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🌥️`,description:`sun behind large cloud`,category:`Travel & Places`,aliases:[`sun_behind_large_cloud`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🌦️`,description:`sun behind rain cloud`,category:`Travel & Places`,aliases:[`sun_behind_rain_cloud`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🌧️`,description:`cloud with rain`,category:`Travel & Places`,aliases:[`cloud_with_rain`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🌨️`,description:`cloud with snow`,category:`Travel & Places`,aliases:[`cloud_with_snow`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🌩️`,description:`cloud with lightning`,category:`Travel & Places`,aliases:[`cloud_with_lightning`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🌪️`,description:`tornado`,category:`Travel & Places`,aliases:[`tornado`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🌫️`,description:`fog`,category:`Travel & Places`,aliases:[`fog`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🌬️`,description:`wind face`,category:`Travel & Places`,aliases:[`wind_face`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🌀`,description:`cyclone`,category:`Travel & Places`,aliases:[`cyclone`],tags:[`swirl`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌈`,description:`rainbow`,category:`Travel & Places`,aliases:[`rainbow`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌂`,description:`closed umbrella`,category:`Travel & Places`,aliases:[`closed_umbrella`],tags:[`weather`,`rain`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`☂️`,description:`umbrella`,category:`Travel & Places`,aliases:[`open_umbrella`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`☔`,description:`umbrella with rain drops`,category:`Travel & Places`,aliases:[`umbrella`],tags:[`rain`,`weather`],unicode_version:`4.0`,ios_version:`6.0`},{emoji:`⛱️`,description:`umbrella on ground`,category:`Travel & Places`,aliases:[`parasol_on_ground`],tags:[`beach_umbrella`],unicode_version:`5.2`,ios_version:`9.1`},{emoji:`⚡`,description:`high voltage`,category:`Travel & Places`,aliases:[`zap`],tags:[`lightning`,`thunder`],unicode_version:`4.0`,ios_version:`6.0`},{emoji:`❄️`,description:`snowflake`,category:`Travel & Places`,aliases:[`snowflake`],tags:[`winter`,`cold`,`weather`],unicode_version:``,ios_version:`6.0`},{emoji:`☃️`,description:`snowman`,category:`Travel & Places`,aliases:[`snowman_with_snow`],tags:[`winter`,`christmas`],unicode_version:``,ios_version:`9.1`},{emoji:`⛄`,description:`snowman without snow`,category:`Travel & Places`,aliases:[`snowman`],tags:[`winter`],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`☄️`,description:`comet`,category:`Travel & Places`,aliases:[`comet`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`🔥`,description:`fire`,category:`Travel & Places`,aliases:[`fire`],tags:[`burn`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💧`,description:`droplet`,category:`Travel & Places`,aliases:[`droplet`],tags:[`water`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🌊`,description:`water wave`,category:`Travel & Places`,aliases:[`ocean`],tags:[`sea`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎃`,description:`jack-o-lantern`,category:`Activities`,aliases:[`jack_o_lantern`],tags:[`halloween`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎄`,description:`Christmas tree`,category:`Activities`,aliases:[`christmas_tree`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎆`,description:`fireworks`,category:`Activities`,aliases:[`fireworks`],tags:[`festival`,`celebration`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎇`,description:`sparkler`,category:`Activities`,aliases:[`sparkler`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🧨`,description:`firecracker`,category:`Activities`,aliases:[`firecracker`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`✨`,description:`sparkles`,category:`Activities`,aliases:[`sparkles`],tags:[`shiny`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎈`,description:`balloon`,category:`Activities`,aliases:[`balloon`],tags:[`party`,`birthday`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎉`,description:`party popper`,category:`Activities`,aliases:[`tada`],tags:[`hooray`,`party`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎊`,description:`confetti ball`,category:`Activities`,aliases:[`confetti_ball`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎋`,description:`tanabata tree`,category:`Activities`,aliases:[`tanabata_tree`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎍`,description:`pine decoration`,category:`Activities`,aliases:[`bamboo`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎎`,description:`Japanese dolls`,category:`Activities`,aliases:[`dolls`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎏`,description:`carp streamer`,category:`Activities`,aliases:[`flags`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎐`,description:`wind chime`,category:`Activities`,aliases:[`wind_chime`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎑`,description:`moon viewing ceremony`,category:`Activities`,aliases:[`rice_scene`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🧧`,description:`red envelope`,category:`Activities`,aliases:[`red_envelope`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🎀`,description:`ribbon`,category:`Activities`,aliases:[`ribbon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎁`,description:`wrapped gift`,category:`Activities`,aliases:[`gift`],tags:[`present`,`birthday`,`christmas`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎗️`,description:`reminder ribbon`,category:`Activities`,aliases:[`reminder_ribbon`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🎟️`,description:`admission tickets`,category:`Activities`,aliases:[`tickets`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🎫`,description:`ticket`,category:`Activities`,aliases:[`ticket`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎖️`,description:`military medal`,category:`Activities`,aliases:[`medal_military`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏆`,description:`trophy`,category:`Activities`,aliases:[`trophy`],tags:[`award`,`contest`,`winner`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏅`,description:`sports medal`,category:`Activities`,aliases:[`medal_sports`],tags:[`gold`,`winner`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🥇`,description:`1st place medal`,category:`Activities`,aliases:[`1st_place_medal`],tags:[`gold`],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🥈`,description:`2nd place medal`,category:`Activities`,aliases:[`2nd_place_medal`],tags:[`silver`],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🥉`,description:`3rd place medal`,category:`Activities`,aliases:[`3rd_place_medal`],tags:[`bronze`],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`⚽`,description:`soccer ball`,category:`Activities`,aliases:[`soccer`],tags:[`sports`],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`⚾`,description:`baseball`,category:`Activities`,aliases:[`baseball`],tags:[`sports`],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`🥎`,description:`softball`,category:`Activities`,aliases:[`softball`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🏀`,description:`basketball`,category:`Activities`,aliases:[`basketball`],tags:[`sports`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏐`,description:`volleyball`,category:`Activities`,aliases:[`volleyball`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🏈`,description:`american football`,category:`Activities`,aliases:[`football`],tags:[`sports`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏉`,description:`rugby football`,category:`Activities`,aliases:[`rugby_football`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎾`,description:`tennis`,category:`Activities`,aliases:[`tennis`],tags:[`sports`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥏`,description:`flying disc`,category:`Activities`,aliases:[`flying_disc`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🎳`,description:`bowling`,category:`Activities`,aliases:[`bowling`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏏`,description:`cricket game`,category:`Activities`,aliases:[`cricket_game`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🏑`,description:`field hockey`,category:`Activities`,aliases:[`field_hockey`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🏒`,description:`ice hockey`,category:`Activities`,aliases:[`ice_hockey`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🥍`,description:`lacrosse`,category:`Activities`,aliases:[`lacrosse`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🏓`,description:`ping pong`,category:`Activities`,aliases:[`ping_pong`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🏸`,description:`badminton`,category:`Activities`,aliases:[`badminton`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🥊`,description:`boxing glove`,category:`Activities`,aliases:[`boxing_glove`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🥋`,description:`martial arts uniform`,category:`Activities`,aliases:[`martial_arts_uniform`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🥅`,description:`goal net`,category:`Activities`,aliases:[`goal_net`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`⛳`,description:`flag in hole`,category:`Activities`,aliases:[`golf`],tags:[],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`⛸️`,description:`ice skate`,category:`Activities`,aliases:[`ice_skate`],tags:[`skating`],unicode_version:`5.2`,ios_version:`9.1`},{emoji:`🎣`,description:`fishing pole`,category:`Activities`,aliases:[`fishing_pole_and_fish`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🤿`,description:`diving mask`,category:`Activities`,aliases:[`diving_mask`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🎽`,description:`running shirt`,category:`Activities`,aliases:[`running_shirt_with_sash`],tags:[`marathon`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎿`,description:`skis`,category:`Activities`,aliases:[`ski`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛷`,description:`sled`,category:`Activities`,aliases:[`sled`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥌`,description:`curling stone`,category:`Activities`,aliases:[`curling_stone`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🎯`,description:`bullseye`,category:`Activities`,aliases:[`dart`],tags:[`target`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪀`,description:`yo-yo`,category:`Activities`,aliases:[`yo_yo`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🪁`,description:`kite`,category:`Activities`,aliases:[`kite`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🎱`,description:`pool 8 ball`,category:`Activities`,aliases:[`8ball`],tags:[`pool`,`billiards`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔮`,description:`crystal ball`,category:`Activities`,aliases:[`crystal_ball`],tags:[`fortune`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪄`,description:`magic wand`,category:`Activities`,aliases:[`magic_wand`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🧿`,description:`nazar amulet`,category:`Activities`,aliases:[`nazar_amulet`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🎮`,description:`video game`,category:`Activities`,aliases:[`video_game`],tags:[`play`,`controller`,`console`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕹️`,description:`joystick`,category:`Activities`,aliases:[`joystick`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🎰`,description:`slot machine`,category:`Activities`,aliases:[`slot_machine`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎲`,description:`game die`,category:`Activities`,aliases:[`game_die`],tags:[`dice`,`gambling`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🧩`,description:`puzzle piece`,category:`Activities`,aliases:[`jigsaw`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧸`,description:`teddy bear`,category:`Activities`,aliases:[`teddy_bear`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🪅`,description:`piñata`,category:`Activities`,aliases:[`pinata`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🪆`,description:`nesting dolls`,category:`Activities`,aliases:[`nesting_dolls`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`♠️`,description:`spade suit`,category:`Activities`,aliases:[`spades`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♥️`,description:`heart suit`,category:`Activities`,aliases:[`hearts`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♦️`,description:`diamond suit`,category:`Activities`,aliases:[`diamonds`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♣️`,description:`club suit`,category:`Activities`,aliases:[`clubs`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♟️`,description:`chess pawn`,category:`Activities`,aliases:[`chess_pawn`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🃏`,description:`joker`,category:`Activities`,aliases:[`black_joker`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🀄`,description:`mahjong red dragon`,category:`Activities`,aliases:[`mahjong`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`🎴`,description:`flower playing cards`,category:`Activities`,aliases:[`flower_playing_cards`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎭`,description:`performing arts`,category:`Activities`,aliases:[`performing_arts`],tags:[`theater`,`drama`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🖼️`,description:`framed picture`,category:`Activities`,aliases:[`framed_picture`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🎨`,description:`artist palette`,category:`Activities`,aliases:[`art`],tags:[`design`,`paint`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🧵`,description:`thread`,category:`Activities`,aliases:[`thread`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🪡`,description:`sewing needle`,category:`Activities`,aliases:[`sewing_needle`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🧶`,description:`yarn`,category:`Activities`,aliases:[`yarn`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🪢`,description:`knot`,category:`Activities`,aliases:[`knot`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`👓`,description:`glasses`,category:`Objects`,aliases:[`eyeglasses`],tags:[`glasses`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕶️`,description:`sunglasses`,category:`Objects`,aliases:[`dark_sunglasses`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🥽`,description:`goggles`,category:`Objects`,aliases:[`goggles`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥼`,description:`lab coat`,category:`Objects`,aliases:[`lab_coat`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🦺`,description:`safety vest`,category:`Objects`,aliases:[`safety_vest`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`👔`,description:`necktie`,category:`Objects`,aliases:[`necktie`],tags:[`shirt`,`formal`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👕`,description:`t-shirt`,category:`Objects`,aliases:[`shirt`,`tshirt`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👖`,description:`jeans`,category:`Objects`,aliases:[`jeans`],tags:[`pants`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🧣`,description:`scarf`,category:`Objects`,aliases:[`scarf`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧤`,description:`gloves`,category:`Objects`,aliases:[`gloves`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧥`,description:`coat`,category:`Objects`,aliases:[`coat`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧦`,description:`socks`,category:`Objects`,aliases:[`socks`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`👗`,description:`dress`,category:`Objects`,aliases:[`dress`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👘`,description:`kimono`,category:`Objects`,aliases:[`kimono`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥻`,description:`sari`,category:`Objects`,aliases:[`sari`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🩱`,description:`one-piece swimsuit`,category:`Objects`,aliases:[`one_piece_swimsuit`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🩲`,description:`briefs`,category:`Objects`,aliases:[`swim_brief`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🩳`,description:`shorts`,category:`Objects`,aliases:[`shorts`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`👙`,description:`bikini`,category:`Objects`,aliases:[`bikini`],tags:[`beach`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👚`,description:`woman’s clothes`,category:`Objects`,aliases:[`womans_clothes`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👛`,description:`purse`,category:`Objects`,aliases:[`purse`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👜`,description:`handbag`,category:`Objects`,aliases:[`handbag`],tags:[`bag`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👝`,description:`clutch bag`,category:`Objects`,aliases:[`pouch`],tags:[`bag`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛍️`,description:`shopping bags`,category:`Objects`,aliases:[`shopping`],tags:[`bags`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🎒`,description:`backpack`,category:`Objects`,aliases:[`school_satchel`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🩴`,description:`thong sandal`,category:`Objects`,aliases:[`thong_sandal`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`👞`,description:`man’s shoe`,category:`Objects`,aliases:[`mans_shoe`,`shoe`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👟`,description:`running shoe`,category:`Objects`,aliases:[`athletic_shoe`],tags:[`sneaker`,`sport`,`running`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🥾`,description:`hiking boot`,category:`Objects`,aliases:[`hiking_boot`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🥿`,description:`flat shoe`,category:`Objects`,aliases:[`flat_shoe`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`👠`,description:`high-heeled shoe`,category:`Objects`,aliases:[`high_heel`],tags:[`shoe`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👡`,description:`woman’s sandal`,category:`Objects`,aliases:[`sandal`],tags:[`shoe`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🩰`,description:`ballet shoes`,category:`Objects`,aliases:[`ballet_shoes`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`👢`,description:`woman’s boot`,category:`Objects`,aliases:[`boot`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👑`,description:`crown`,category:`Objects`,aliases:[`crown`],tags:[`king`,`queen`,`royal`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`👒`,description:`woman’s hat`,category:`Objects`,aliases:[`womans_hat`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎩`,description:`top hat`,category:`Objects`,aliases:[`tophat`],tags:[`hat`,`classy`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎓`,description:`graduation cap`,category:`Objects`,aliases:[`mortar_board`],tags:[`education`,`college`,`university`,`graduation`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🧢`,description:`billed cap`,category:`Objects`,aliases:[`billed_cap`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🪖`,description:`military helmet`,category:`Objects`,aliases:[`military_helmet`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`⛑️`,description:`rescue worker’s helmet`,category:`Objects`,aliases:[`rescue_worker_helmet`],tags:[],unicode_version:`5.2`,ios_version:`9.1`},{emoji:`📿`,description:`prayer beads`,category:`Objects`,aliases:[`prayer_beads`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`💄`,description:`lipstick`,category:`Objects`,aliases:[`lipstick`],tags:[`makeup`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💍`,description:`ring`,category:`Objects`,aliases:[`ring`],tags:[`wedding`,`marriage`,`engaged`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💎`,description:`gem stone`,category:`Objects`,aliases:[`gem`],tags:[`diamond`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔇`,description:`muted speaker`,category:`Objects`,aliases:[`mute`],tags:[`sound`,`volume`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔈`,description:`speaker low volume`,category:`Objects`,aliases:[`speaker`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔉`,description:`speaker medium volume`,category:`Objects`,aliases:[`sound`],tags:[`volume`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔊`,description:`speaker high volume`,category:`Objects`,aliases:[`loud_sound`],tags:[`volume`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📢`,description:`loudspeaker`,category:`Objects`,aliases:[`loudspeaker`],tags:[`announcement`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📣`,description:`megaphone`,category:`Objects`,aliases:[`mega`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📯`,description:`postal horn`,category:`Objects`,aliases:[`postal_horn`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔔`,description:`bell`,category:`Objects`,aliases:[`bell`],tags:[`sound`,`notification`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔕`,description:`bell with slash`,category:`Objects`,aliases:[`no_bell`],tags:[`volume`,`off`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎼`,description:`musical score`,category:`Objects`,aliases:[`musical_score`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎵`,description:`musical note`,category:`Objects`,aliases:[`musical_note`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎶`,description:`musical notes`,category:`Objects`,aliases:[`notes`],tags:[`music`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎙️`,description:`studio microphone`,category:`Objects`,aliases:[`studio_microphone`],tags:[`podcast`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🎚️`,description:`level slider`,category:`Objects`,aliases:[`level_slider`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🎛️`,description:`control knobs`,category:`Objects`,aliases:[`control_knobs`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🎤`,description:`microphone`,category:`Objects`,aliases:[`microphone`],tags:[`sing`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎧`,description:`headphone`,category:`Objects`,aliases:[`headphones`],tags:[`music`,`earphones`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📻`,description:`radio`,category:`Objects`,aliases:[`radio`],tags:[`podcast`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎷`,description:`saxophone`,category:`Objects`,aliases:[`saxophone`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪗`,description:`accordion`,category:`Objects`,aliases:[`accordion`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🎸`,description:`guitar`,category:`Objects`,aliases:[`guitar`],tags:[`rock`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎹`,description:`musical keyboard`,category:`Objects`,aliases:[`musical_keyboard`],tags:[`piano`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎺`,description:`trumpet`,category:`Objects`,aliases:[`trumpet`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎻`,description:`violin`,category:`Objects`,aliases:[`violin`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪕`,description:`banjo`,category:`Objects`,aliases:[`banjo`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🥁`,description:`drum`,category:`Objects`,aliases:[`drum`],tags:[],unicode_version:``,ios_version:`10.2`},{emoji:`🪘`,description:`long drum`,category:`Objects`,aliases:[`long_drum`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`📱`,description:`mobile phone`,category:`Objects`,aliases:[`iphone`],tags:[`smartphone`,`mobile`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📲`,description:`mobile phone with arrow`,category:`Objects`,aliases:[`calling`],tags:[`call`,`incoming`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`☎️`,description:`telephone`,category:`Objects`,aliases:[`phone`,`telephone`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`📞`,description:`telephone receiver`,category:`Objects`,aliases:[`telephone_receiver`],tags:[`phone`,`call`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📟`,description:`pager`,category:`Objects`,aliases:[`pager`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📠`,description:`fax machine`,category:`Objects`,aliases:[`fax`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔋`,description:`battery`,category:`Objects`,aliases:[`battery`],tags:[`power`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔌`,description:`electric plug`,category:`Objects`,aliases:[`electric_plug`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💻`,description:`laptop`,category:`Objects`,aliases:[`computer`],tags:[`desktop`,`screen`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🖥️`,description:`desktop computer`,category:`Objects`,aliases:[`desktop_computer`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🖨️`,description:`printer`,category:`Objects`,aliases:[`printer`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`⌨️`,description:`keyboard`,category:`Objects`,aliases:[`keyboard`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`🖱️`,description:`computer mouse`,category:`Objects`,aliases:[`computer_mouse`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🖲️`,description:`trackball`,category:`Objects`,aliases:[`trackball`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`💽`,description:`computer disk`,category:`Objects`,aliases:[`minidisc`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💾`,description:`floppy disk`,category:`Objects`,aliases:[`floppy_disk`],tags:[`save`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💿`,description:`optical disk`,category:`Objects`,aliases:[`cd`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📀`,description:`dvd`,category:`Objects`,aliases:[`dvd`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🧮`,description:`abacus`,category:`Objects`,aliases:[`abacus`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🎥`,description:`movie camera`,category:`Objects`,aliases:[`movie_camera`],tags:[`film`,`video`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎞️`,description:`film frames`,category:`Objects`,aliases:[`film_strip`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`📽️`,description:`film projector`,category:`Objects`,aliases:[`film_projector`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🎬`,description:`clapper board`,category:`Objects`,aliases:[`clapper`],tags:[`film`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📺`,description:`television`,category:`Objects`,aliases:[`tv`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📷`,description:`camera`,category:`Objects`,aliases:[`camera`],tags:[`photo`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📸`,description:`camera with flash`,category:`Objects`,aliases:[`camera_flash`],tags:[`photo`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`📹`,description:`video camera`,category:`Objects`,aliases:[`video_camera`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📼`,description:`videocassette`,category:`Objects`,aliases:[`vhs`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔍`,description:`magnifying glass tilted left`,category:`Objects`,aliases:[`mag`],tags:[`search`,`zoom`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔎`,description:`magnifying glass tilted right`,category:`Objects`,aliases:[`mag_right`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🕯️`,description:`candle`,category:`Objects`,aliases:[`candle`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`💡`,description:`light bulb`,category:`Objects`,aliases:[`bulb`],tags:[`idea`,`light`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔦`,description:`flashlight`,category:`Objects`,aliases:[`flashlight`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏮`,description:`red paper lantern`,category:`Objects`,aliases:[`izakaya_lantern`,`lantern`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪔`,description:`diya lamp`,category:`Objects`,aliases:[`diya_lamp`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`📔`,description:`notebook with decorative cover`,category:`Objects`,aliases:[`notebook_with_decorative_cover`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📕`,description:`closed book`,category:`Objects`,aliases:[`closed_book`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📖`,description:`open book`,category:`Objects`,aliases:[`book`,`open_book`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📗`,description:`green book`,category:`Objects`,aliases:[`green_book`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📘`,description:`blue book`,category:`Objects`,aliases:[`blue_book`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📙`,description:`orange book`,category:`Objects`,aliases:[`orange_book`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📚`,description:`books`,category:`Objects`,aliases:[`books`],tags:[`library`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📓`,description:`notebook`,category:`Objects`,aliases:[`notebook`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📒`,description:`ledger`,category:`Objects`,aliases:[`ledger`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📃`,description:`page with curl`,category:`Objects`,aliases:[`page_with_curl`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📜`,description:`scroll`,category:`Objects`,aliases:[`scroll`],tags:[`document`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📄`,description:`page facing up`,category:`Objects`,aliases:[`page_facing_up`],tags:[`document`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📰`,description:`newspaper`,category:`Objects`,aliases:[`newspaper`],tags:[`press`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🗞️`,description:`rolled-up newspaper`,category:`Objects`,aliases:[`newspaper_roll`],tags:[`press`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`📑`,description:`bookmark tabs`,category:`Objects`,aliases:[`bookmark_tabs`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔖`,description:`bookmark`,category:`Objects`,aliases:[`bookmark`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏷️`,description:`label`,category:`Objects`,aliases:[`label`],tags:[`tag`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`💰`,description:`money bag`,category:`Objects`,aliases:[`moneybag`],tags:[`dollar`,`cream`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪙`,description:`coin`,category:`Objects`,aliases:[`coin`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`💴`,description:`yen banknote`,category:`Objects`,aliases:[`yen`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💵`,description:`dollar banknote`,category:`Objects`,aliases:[`dollar`],tags:[`money`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💶`,description:`euro banknote`,category:`Objects`,aliases:[`euro`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💷`,description:`pound banknote`,category:`Objects`,aliases:[`pound`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💸`,description:`money with wings`,category:`Objects`,aliases:[`money_with_wings`],tags:[`dollar`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💳`,description:`credit card`,category:`Objects`,aliases:[`credit_card`],tags:[`subscription`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🧾`,description:`receipt`,category:`Objects`,aliases:[`receipt`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`💹`,description:`chart increasing with yen`,category:`Objects`,aliases:[`chart`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`✉️`,description:`envelope`,category:`Objects`,aliases:[`envelope`],tags:[`letter`,`email`],unicode_version:``,ios_version:`6.0`},{emoji:`📧`,description:`e-mail`,category:`Objects`,aliases:[`email`,`e-mail`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📨`,description:`incoming envelope`,category:`Objects`,aliases:[`incoming_envelope`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📩`,description:`envelope with arrow`,category:`Objects`,aliases:[`envelope_with_arrow`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📤`,description:`outbox tray`,category:`Objects`,aliases:[`outbox_tray`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📥`,description:`inbox tray`,category:`Objects`,aliases:[`inbox_tray`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📦`,description:`package`,category:`Objects`,aliases:[`package`],tags:[`shipping`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📫`,description:`closed mailbox with raised flag`,category:`Objects`,aliases:[`mailbox`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📪`,description:`closed mailbox with lowered flag`,category:`Objects`,aliases:[`mailbox_closed`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📬`,description:`open mailbox with raised flag`,category:`Objects`,aliases:[`mailbox_with_mail`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📭`,description:`open mailbox with lowered flag`,category:`Objects`,aliases:[`mailbox_with_no_mail`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📮`,description:`postbox`,category:`Objects`,aliases:[`postbox`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🗳️`,description:`ballot box with ballot`,category:`Objects`,aliases:[`ballot_box`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`✏️`,description:`pencil`,category:`Objects`,aliases:[`pencil2`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`✒️`,description:`black nib`,category:`Objects`,aliases:[`black_nib`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`🖋️`,description:`fountain pen`,category:`Objects`,aliases:[`fountain_pen`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🖊️`,description:`pen`,category:`Objects`,aliases:[`pen`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🖌️`,description:`paintbrush`,category:`Objects`,aliases:[`paintbrush`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🖍️`,description:`crayon`,category:`Objects`,aliases:[`crayon`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`📝`,description:`memo`,category:`Objects`,aliases:[`memo`,`pencil`],tags:[`document`,`note`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💼`,description:`briefcase`,category:`Objects`,aliases:[`briefcase`],tags:[`business`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📁`,description:`file folder`,category:`Objects`,aliases:[`file_folder`],tags:[`directory`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📂`,description:`open file folder`,category:`Objects`,aliases:[`open_file_folder`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🗂️`,description:`card index dividers`,category:`Objects`,aliases:[`card_index_dividers`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`📅`,description:`calendar`,category:`Objects`,aliases:[`date`],tags:[`calendar`,`schedule`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📆`,description:`tear-off calendar`,category:`Objects`,aliases:[`calendar`],tags:[`schedule`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🗒️`,description:`spiral notepad`,category:`Objects`,aliases:[`spiral_notepad`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🗓️`,description:`spiral calendar`,category:`Objects`,aliases:[`spiral_calendar`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`📇`,description:`card index`,category:`Objects`,aliases:[`card_index`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📈`,description:`chart increasing`,category:`Objects`,aliases:[`chart_with_upwards_trend`],tags:[`graph`,`metrics`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📉`,description:`chart decreasing`,category:`Objects`,aliases:[`chart_with_downwards_trend`],tags:[`graph`,`metrics`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📊`,description:`bar chart`,category:`Objects`,aliases:[`bar_chart`],tags:[`stats`,`metrics`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📋`,description:`clipboard`,category:`Objects`,aliases:[`clipboard`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📌`,description:`pushpin`,category:`Objects`,aliases:[`pushpin`],tags:[`location`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📍`,description:`round pushpin`,category:`Objects`,aliases:[`round_pushpin`],tags:[`location`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📎`,description:`paperclip`,category:`Objects`,aliases:[`paperclip`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🖇️`,description:`linked paperclips`,category:`Objects`,aliases:[`paperclips`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`📏`,description:`straight ruler`,category:`Objects`,aliases:[`straight_ruler`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📐`,description:`triangular ruler`,category:`Objects`,aliases:[`triangular_ruler`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`✂️`,description:`scissors`,category:`Objects`,aliases:[`scissors`],tags:[`cut`],unicode_version:``,ios_version:`6.0`},{emoji:`🗃️`,description:`card file box`,category:`Objects`,aliases:[`card_file_box`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🗄️`,description:`file cabinet`,category:`Objects`,aliases:[`file_cabinet`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🗑️`,description:`wastebasket`,category:`Objects`,aliases:[`wastebasket`],tags:[`trash`],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🔒`,description:`locked`,category:`Objects`,aliases:[`lock`],tags:[`security`,`private`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔓`,description:`unlocked`,category:`Objects`,aliases:[`unlock`],tags:[`security`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔏`,description:`locked with pen`,category:`Objects`,aliases:[`lock_with_ink_pen`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔐`,description:`locked with key`,category:`Objects`,aliases:[`closed_lock_with_key`],tags:[`security`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔑`,description:`key`,category:`Objects`,aliases:[`key`],tags:[`lock`,`password`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🗝️`,description:`old key`,category:`Objects`,aliases:[`old_key`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🔨`,description:`hammer`,category:`Objects`,aliases:[`hammer`],tags:[`tool`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪓`,description:`axe`,category:`Objects`,aliases:[`axe`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`⛏️`,description:`pick`,category:`Objects`,aliases:[`pick`],tags:[],unicode_version:`5.2`,ios_version:`9.1`},{emoji:`⚒️`,description:`hammer and pick`,category:`Objects`,aliases:[`hammer_and_pick`],tags:[],unicode_version:`4.1`,ios_version:`9.1`},{emoji:`🛠️`,description:`hammer and wrench`,category:`Objects`,aliases:[`hammer_and_wrench`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🗡️`,description:`dagger`,category:`Objects`,aliases:[`dagger`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`⚔️`,description:`crossed swords`,category:`Objects`,aliases:[`crossed_swords`],tags:[],unicode_version:`4.1`,ios_version:`9.1`},{emoji:`🔫`,description:`water pistol`,category:`Objects`,aliases:[`gun`],tags:[`shoot`,`weapon`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪃`,description:`boomerang`,category:`Objects`,aliases:[`boomerang`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🏹`,description:`bow and arrow`,category:`Objects`,aliases:[`bow_and_arrow`],tags:[`archery`],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🛡️`,description:`shield`,category:`Objects`,aliases:[`shield`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🪚`,description:`carpentry saw`,category:`Objects`,aliases:[`carpentry_saw`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🔧`,description:`wrench`,category:`Objects`,aliases:[`wrench`],tags:[`tool`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪛`,description:`screwdriver`,category:`Objects`,aliases:[`screwdriver`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🔩`,description:`nut and bolt`,category:`Objects`,aliases:[`nut_and_bolt`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⚙️`,description:`gear`,category:`Objects`,aliases:[`gear`],tags:[],unicode_version:`4.1`,ios_version:`9.1`},{emoji:`🗜️`,description:`clamp`,category:`Objects`,aliases:[`clamp`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`⚖️`,description:`balance scale`,category:`Objects`,aliases:[`balance_scale`],tags:[],unicode_version:`4.1`,ios_version:`9.1`},{emoji:`🦯`,description:`white cane`,category:`Objects`,aliases:[`probing_cane`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🔗`,description:`link`,category:`Objects`,aliases:[`link`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⛓️`,description:`chains`,category:`Objects`,aliases:[`chains`],tags:[],unicode_version:`5.2`,ios_version:`9.1`},{emoji:`🪝`,description:`hook`,category:`Objects`,aliases:[`hook`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🧰`,description:`toolbox`,category:`Objects`,aliases:[`toolbox`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧲`,description:`magnet`,category:`Objects`,aliases:[`magnet`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🪜`,description:`ladder`,category:`Objects`,aliases:[`ladder`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`⚗️`,description:`alembic`,category:`Objects`,aliases:[`alembic`],tags:[],unicode_version:`4.1`,ios_version:`9.1`},{emoji:`🧪`,description:`test tube`,category:`Objects`,aliases:[`test_tube`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧫`,description:`petri dish`,category:`Objects`,aliases:[`petri_dish`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧬`,description:`dna`,category:`Objects`,aliases:[`dna`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🔬`,description:`microscope`,category:`Objects`,aliases:[`microscope`],tags:[`science`,`laboratory`,`investigate`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔭`,description:`telescope`,category:`Objects`,aliases:[`telescope`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📡`,description:`satellite antenna`,category:`Objects`,aliases:[`satellite`],tags:[`signal`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💉`,description:`syringe`,category:`Objects`,aliases:[`syringe`],tags:[`health`,`hospital`,`needle`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🩸`,description:`drop of blood`,category:`Objects`,aliases:[`drop_of_blood`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`💊`,description:`pill`,category:`Objects`,aliases:[`pill`],tags:[`health`,`medicine`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🩹`,description:`adhesive bandage`,category:`Objects`,aliases:[`adhesive_bandage`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🩺`,description:`stethoscope`,category:`Objects`,aliases:[`stethoscope`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🚪`,description:`door`,category:`Objects`,aliases:[`door`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛗`,description:`elevator`,category:`Objects`,aliases:[`elevator`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🪞`,description:`mirror`,category:`Objects`,aliases:[`mirror`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🪟`,description:`window`,category:`Objects`,aliases:[`window`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🛏️`,description:`bed`,category:`Objects`,aliases:[`bed`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🛋️`,description:`couch and lamp`,category:`Objects`,aliases:[`couch_and_lamp`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🪑`,description:`chair`,category:`Objects`,aliases:[`chair`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🚽`,description:`toilet`,category:`Objects`,aliases:[`toilet`],tags:[`wc`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪠`,description:`plunger`,category:`Objects`,aliases:[`plunger`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🚿`,description:`shower`,category:`Objects`,aliases:[`shower`],tags:[`bath`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛁`,description:`bathtub`,category:`Objects`,aliases:[`bathtub`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪤`,description:`mouse trap`,category:`Objects`,aliases:[`mouse_trap`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🪒`,description:`razor`,category:`Objects`,aliases:[`razor`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🧴`,description:`lotion bottle`,category:`Objects`,aliases:[`lotion_bottle`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧷`,description:`safety pin`,category:`Objects`,aliases:[`safety_pin`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧹`,description:`broom`,category:`Objects`,aliases:[`broom`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧺`,description:`basket`,category:`Objects`,aliases:[`basket`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧻`,description:`roll of paper`,category:`Objects`,aliases:[`roll_of_paper`],tags:[`toilet`],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🪣`,description:`bucket`,category:`Objects`,aliases:[`bucket`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🧼`,description:`soap`,category:`Objects`,aliases:[`soap`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🪥`,description:`toothbrush`,category:`Objects`,aliases:[`toothbrush`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🧽`,description:`sponge`,category:`Objects`,aliases:[`sponge`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🧯`,description:`fire extinguisher`,category:`Objects`,aliases:[`fire_extinguisher`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🛒`,description:`shopping cart`,category:`Objects`,aliases:[`shopping_cart`],tags:[],unicode_version:`9.0`,ios_version:`10.2`},{emoji:`🚬`,description:`cigarette`,category:`Objects`,aliases:[`smoking`],tags:[`cigarette`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⚰️`,description:`coffin`,category:`Objects`,aliases:[`coffin`],tags:[`funeral`],unicode_version:`4.1`,ios_version:`9.1`},{emoji:`🪦`,description:`headstone`,category:`Objects`,aliases:[`headstone`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`⚱️`,description:`funeral urn`,category:`Objects`,aliases:[`funeral_urn`],tags:[],unicode_version:`4.1`,ios_version:`9.1`},{emoji:`🗿`,description:`moai`,category:`Objects`,aliases:[`moyai`],tags:[`stone`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🪧`,description:`placard`,category:`Objects`,aliases:[`placard`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🏧`,description:`ATM sign`,category:`Symbols`,aliases:[`atm`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚮`,description:`litter in bin sign`,category:`Symbols`,aliases:[`put_litter_in_its_place`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚰`,description:`potable water`,category:`Symbols`,aliases:[`potable_water`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`♿`,description:`wheelchair symbol`,category:`Symbols`,aliases:[`wheelchair`],tags:[`accessibility`],unicode_version:`4.1`,ios_version:`6.0`},{emoji:`🚹`,description:`men’s room`,category:`Symbols`,aliases:[`mens`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚺`,description:`women’s room`,category:`Symbols`,aliases:[`womens`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚻`,description:`restroom`,category:`Symbols`,aliases:[`restroom`],tags:[`toilet`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚼`,description:`baby symbol`,category:`Symbols`,aliases:[`baby_symbol`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚾`,description:`water closet`,category:`Symbols`,aliases:[`wc`],tags:[`toilet`,`restroom`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛂`,description:`passport control`,category:`Symbols`,aliases:[`passport_control`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛃`,description:`customs`,category:`Symbols`,aliases:[`customs`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛄`,description:`baggage claim`,category:`Symbols`,aliases:[`baggage_claim`],tags:[`airport`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛅`,description:`left luggage`,category:`Symbols`,aliases:[`left_luggage`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⚠️`,description:`warning`,category:`Symbols`,aliases:[`warning`],tags:[`wip`],unicode_version:`4.0`,ios_version:`6.0`},{emoji:`🚸`,description:`children crossing`,category:`Symbols`,aliases:[`children_crossing`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⛔`,description:`no entry`,category:`Symbols`,aliases:[`no_entry`],tags:[`limit`],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`🚫`,description:`prohibited`,category:`Symbols`,aliases:[`no_entry_sign`],tags:[`block`,`forbidden`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚳`,description:`no bicycles`,category:`Symbols`,aliases:[`no_bicycles`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚭`,description:`no smoking`,category:`Symbols`,aliases:[`no_smoking`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚯`,description:`no littering`,category:`Symbols`,aliases:[`do_not_litter`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚱`,description:`non-potable water`,category:`Symbols`,aliases:[`non-potable_water`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚷`,description:`no pedestrians`,category:`Symbols`,aliases:[`no_pedestrians`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📵`,description:`no mobile phones`,category:`Symbols`,aliases:[`no_mobile_phones`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔞`,description:`no one under eighteen`,category:`Symbols`,aliases:[`underage`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`☢️`,description:`radioactive`,category:`Symbols`,aliases:[`radioactive`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`☣️`,description:`biohazard`,category:`Symbols`,aliases:[`biohazard`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`⬆️`,description:`up arrow`,category:`Symbols`,aliases:[`arrow_up`],tags:[],unicode_version:`4.0`,ios_version:`6.0`},{emoji:`↗️`,description:`up-right arrow`,category:`Symbols`,aliases:[`arrow_upper_right`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`➡️`,description:`right arrow`,category:`Symbols`,aliases:[`arrow_right`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`↘️`,description:`down-right arrow`,category:`Symbols`,aliases:[`arrow_lower_right`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`⬇️`,description:`down arrow`,category:`Symbols`,aliases:[`arrow_down`],tags:[],unicode_version:`4.0`,ios_version:`6.0`},{emoji:`↙️`,description:`down-left arrow`,category:`Symbols`,aliases:[`arrow_lower_left`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`⬅️`,description:`left arrow`,category:`Symbols`,aliases:[`arrow_left`],tags:[],unicode_version:`4.0`,ios_version:`6.0`},{emoji:`↖️`,description:`up-left arrow`,category:`Symbols`,aliases:[`arrow_upper_left`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`↕️`,description:`up-down arrow`,category:`Symbols`,aliases:[`arrow_up_down`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`↔️`,description:`left-right arrow`,category:`Symbols`,aliases:[`left_right_arrow`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`↩️`,description:`right arrow curving left`,category:`Symbols`,aliases:[`leftwards_arrow_with_hook`],tags:[`return`],unicode_version:``,ios_version:`6.0`},{emoji:`↪️`,description:`left arrow curving right`,category:`Symbols`,aliases:[`arrow_right_hook`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`⤴️`,description:`right arrow curving up`,category:`Symbols`,aliases:[`arrow_heading_up`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`⤵️`,description:`right arrow curving down`,category:`Symbols`,aliases:[`arrow_heading_down`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`🔃`,description:`clockwise vertical arrows`,category:`Symbols`,aliases:[`arrows_clockwise`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔄`,description:`counterclockwise arrows button`,category:`Symbols`,aliases:[`arrows_counterclockwise`],tags:[`sync`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔙`,description:`BACK arrow`,category:`Symbols`,aliases:[`back`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔚`,description:`END arrow`,category:`Symbols`,aliases:[`end`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔛`,description:`ON! arrow`,category:`Symbols`,aliases:[`on`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔜`,description:`SOON arrow`,category:`Symbols`,aliases:[`soon`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔝`,description:`TOP arrow`,category:`Symbols`,aliases:[`top`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🛐`,description:`place of worship`,category:`Symbols`,aliases:[`place_of_worship`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`⚛️`,description:`atom symbol`,category:`Symbols`,aliases:[`atom_symbol`],tags:[],unicode_version:`4.1`,ios_version:`9.1`},{emoji:`🕉️`,description:`om`,category:`Symbols`,aliases:[`om`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`✡️`,description:`star of David`,category:`Symbols`,aliases:[`star_of_david`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`☸️`,description:`wheel of dharma`,category:`Symbols`,aliases:[`wheel_of_dharma`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`☯️`,description:`yin yang`,category:`Symbols`,aliases:[`yin_yang`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`✝️`,description:`latin cross`,category:`Symbols`,aliases:[`latin_cross`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`☦️`,description:`orthodox cross`,category:`Symbols`,aliases:[`orthodox_cross`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`☪️`,description:`star and crescent`,category:`Symbols`,aliases:[`star_and_crescent`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`☮️`,description:`peace symbol`,category:`Symbols`,aliases:[`peace_symbol`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`🕎`,description:`menorah`,category:`Symbols`,aliases:[`menorah`],tags:[],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🔯`,description:`dotted six-pointed star`,category:`Symbols`,aliases:[`six_pointed_star`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`♈`,description:`Aries`,category:`Symbols`,aliases:[`aries`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♉`,description:`Taurus`,category:`Symbols`,aliases:[`taurus`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♊`,description:`Gemini`,category:`Symbols`,aliases:[`gemini`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♋`,description:`Cancer`,category:`Symbols`,aliases:[`cancer`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♌`,description:`Leo`,category:`Symbols`,aliases:[`leo`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♍`,description:`Virgo`,category:`Symbols`,aliases:[`virgo`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♎`,description:`Libra`,category:`Symbols`,aliases:[`libra`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♏`,description:`Scorpio`,category:`Symbols`,aliases:[`scorpius`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♐`,description:`Sagittarius`,category:`Symbols`,aliases:[`sagittarius`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♑`,description:`Capricorn`,category:`Symbols`,aliases:[`capricorn`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♒`,description:`Aquarius`,category:`Symbols`,aliases:[`aquarius`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`♓`,description:`Pisces`,category:`Symbols`,aliases:[`pisces`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`⛎`,description:`Ophiuchus`,category:`Symbols`,aliases:[`ophiuchus`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔀`,description:`shuffle tracks button`,category:`Symbols`,aliases:[`twisted_rightwards_arrows`],tags:[`shuffle`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔁`,description:`repeat button`,category:`Symbols`,aliases:[`repeat`],tags:[`loop`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔂`,description:`repeat single button`,category:`Symbols`,aliases:[`repeat_one`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`▶️`,description:`play button`,category:`Symbols`,aliases:[`arrow_forward`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`⏩`,description:`fast-forward button`,category:`Symbols`,aliases:[`fast_forward`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⏭️`,description:`next track button`,category:`Symbols`,aliases:[`next_track_button`],tags:[],unicode_version:`6.0`,ios_version:`9.1`},{emoji:`⏯️`,description:`play or pause button`,category:`Symbols`,aliases:[`play_or_pause_button`],tags:[],unicode_version:`6.0`,ios_version:`9.1`},{emoji:`◀️`,description:`reverse button`,category:`Symbols`,aliases:[`arrow_backward`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`⏪`,description:`fast reverse button`,category:`Symbols`,aliases:[`rewind`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⏮️`,description:`last track button`,category:`Symbols`,aliases:[`previous_track_button`],tags:[],unicode_version:`6.0`,ios_version:`9.1`},{emoji:`🔼`,description:`upwards button`,category:`Symbols`,aliases:[`arrow_up_small`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⏫`,description:`fast up button`,category:`Symbols`,aliases:[`arrow_double_up`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔽`,description:`downwards button`,category:`Symbols`,aliases:[`arrow_down_small`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⏬`,description:`fast down button`,category:`Symbols`,aliases:[`arrow_double_down`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⏸️`,description:`pause button`,category:`Symbols`,aliases:[`pause_button`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`⏹️`,description:`stop button`,category:`Symbols`,aliases:[`stop_button`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`⏺️`,description:`record button`,category:`Symbols`,aliases:[`record_button`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`⏏️`,description:`eject button`,category:`Symbols`,aliases:[`eject_button`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🎦`,description:`cinema`,category:`Symbols`,aliases:[`cinema`],tags:[`film`,`movie`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔅`,description:`dim button`,category:`Symbols`,aliases:[`low_brightness`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔆`,description:`bright button`,category:`Symbols`,aliases:[`high_brightness`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📶`,description:`antenna bars`,category:`Symbols`,aliases:[`signal_strength`],tags:[`wifi`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📳`,description:`vibration mode`,category:`Symbols`,aliases:[`vibration_mode`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📴`,description:`mobile phone off`,category:`Symbols`,aliases:[`mobile_phone_off`],tags:[`mute`,`off`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`♀️`,description:`female sign`,category:`Symbols`,aliases:[`female_sign`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`♂️`,description:`male sign`,category:`Symbols`,aliases:[`male_sign`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`⚧️`,description:`transgender symbol`,category:`Symbols`,aliases:[`transgender_symbol`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`✖️`,description:`multiply`,category:`Symbols`,aliases:[`heavy_multiplication_x`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`➕`,description:`plus`,category:`Symbols`,aliases:[`heavy_plus_sign`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`➖`,description:`minus`,category:`Symbols`,aliases:[`heavy_minus_sign`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`➗`,description:`divide`,category:`Symbols`,aliases:[`heavy_division_sign`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`♾️`,description:`infinity`,category:`Symbols`,aliases:[`infinity`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`‼️`,description:`double exclamation mark`,category:`Symbols`,aliases:[`bangbang`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`⁉️`,description:`exclamation question mark`,category:`Symbols`,aliases:[`interrobang`],tags:[],unicode_version:`3.0`,ios_version:`6.0`},{emoji:`❓`,description:`red question mark`,category:`Symbols`,aliases:[`question`],tags:[`confused`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`❔`,description:`white question mark`,category:`Symbols`,aliases:[`grey_question`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`❕`,description:`white exclamation mark`,category:`Symbols`,aliases:[`grey_exclamation`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`❗`,description:`red exclamation mark`,category:`Symbols`,aliases:[`exclamation`,`heavy_exclamation_mark`],tags:[`bang`],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`〰️`,description:`wavy dash`,category:`Symbols`,aliases:[`wavy_dash`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`💱`,description:`currency exchange`,category:`Symbols`,aliases:[`currency_exchange`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💲`,description:`heavy dollar sign`,category:`Symbols`,aliases:[`heavy_dollar_sign`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⚕️`,description:`medical symbol`,category:`Symbols`,aliases:[`medical_symbol`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`♻️`,description:`recycling symbol`,category:`Symbols`,aliases:[`recycle`],tags:[`environment`,`green`],unicode_version:`3.2`,ios_version:`6.0`},{emoji:`⚜️`,description:`fleur-de-lis`,category:`Symbols`,aliases:[`fleur_de_lis`],tags:[],unicode_version:`4.1`,ios_version:`9.1`},{emoji:`🔱`,description:`trident emblem`,category:`Symbols`,aliases:[`trident`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`📛`,description:`name badge`,category:`Symbols`,aliases:[`name_badge`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔰`,description:`Japanese symbol for beginner`,category:`Symbols`,aliases:[`beginner`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`⭕`,description:`hollow red circle`,category:`Symbols`,aliases:[`o`],tags:[],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`✅`,description:`check mark button`,category:`Symbols`,aliases:[`white_check_mark`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`☑️`,description:`check box with check`,category:`Symbols`,aliases:[`ballot_box_with_check`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`✔️`,description:`check mark`,category:`Symbols`,aliases:[`heavy_check_mark`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`❌`,description:`cross mark`,category:`Symbols`,aliases:[`x`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`❎`,description:`cross mark button`,category:`Symbols`,aliases:[`negative_squared_cross_mark`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`➰`,description:`curly loop`,category:`Symbols`,aliases:[`curly_loop`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`➿`,description:`double curly loop`,category:`Symbols`,aliases:[`loop`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`〽️`,description:`part alternation mark`,category:`Symbols`,aliases:[`part_alternation_mark`],tags:[],unicode_version:`3.2`,ios_version:`6.0`},{emoji:`✳️`,description:`eight-spoked asterisk`,category:`Symbols`,aliases:[`eight_spoked_asterisk`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`✴️`,description:`eight-pointed star`,category:`Symbols`,aliases:[`eight_pointed_black_star`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`❇️`,description:`sparkle`,category:`Symbols`,aliases:[`sparkle`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`©️`,description:`copyright`,category:`Symbols`,aliases:[`copyright`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`®️`,description:`registered`,category:`Symbols`,aliases:[`registered`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`™️`,description:`trade mark`,category:`Symbols`,aliases:[`tm`],tags:[`trademark`],unicode_version:``,ios_version:`6.0`},{emoji:`#️⃣`,description:`keycap: #`,category:`Symbols`,aliases:[`hash`],tags:[`number`],unicode_version:``,ios_version:`6.0`},{emoji:`*️⃣`,description:`keycap: *`,category:`Symbols`,aliases:[`asterisk`],tags:[],unicode_version:``,ios_version:`9.1`},{emoji:`0️⃣`,description:`keycap: 0`,category:`Symbols`,aliases:[`zero`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`1️⃣`,description:`keycap: 1`,category:`Symbols`,aliases:[`one`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`2️⃣`,description:`keycap: 2`,category:`Symbols`,aliases:[`two`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`3️⃣`,description:`keycap: 3`,category:`Symbols`,aliases:[`three`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`4️⃣`,description:`keycap: 4`,category:`Symbols`,aliases:[`four`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`5️⃣`,description:`keycap: 5`,category:`Symbols`,aliases:[`five`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`6️⃣`,description:`keycap: 6`,category:`Symbols`,aliases:[`six`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`7️⃣`,description:`keycap: 7`,category:`Symbols`,aliases:[`seven`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`8️⃣`,description:`keycap: 8`,category:`Symbols`,aliases:[`eight`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`9️⃣`,description:`keycap: 9`,category:`Symbols`,aliases:[`nine`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`🔟`,description:`keycap: 10`,category:`Symbols`,aliases:[`keycap_ten`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔠`,description:`input latin uppercase`,category:`Symbols`,aliases:[`capital_abcd`],tags:[`letters`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔡`,description:`input latin lowercase`,category:`Symbols`,aliases:[`abcd`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔢`,description:`input numbers`,category:`Symbols`,aliases:[`1234`],tags:[`numbers`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔣`,description:`input symbols`,category:`Symbols`,aliases:[`symbols`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔤`,description:`input latin letters`,category:`Symbols`,aliases:[`abc`],tags:[`alphabet`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🅰️`,description:`A button (blood type)`,category:`Symbols`,aliases:[`a`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🆎`,description:`AB button (blood type)`,category:`Symbols`,aliases:[`ab`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🅱️`,description:`B button (blood type)`,category:`Symbols`,aliases:[`b`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🆑`,description:`CL button`,category:`Symbols`,aliases:[`cl`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🆒`,description:`COOL button`,category:`Symbols`,aliases:[`cool`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🆓`,description:`FREE button`,category:`Symbols`,aliases:[`free`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`ℹ️`,description:`information`,category:`Symbols`,aliases:[`information_source`],tags:[],unicode_version:`3.0`,ios_version:`6.0`},{emoji:`🆔`,description:`ID button`,category:`Symbols`,aliases:[`id`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`Ⓜ️`,description:`circled M`,category:`Symbols`,aliases:[`m`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`🆕`,description:`NEW button`,category:`Symbols`,aliases:[`new`],tags:[`fresh`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🆖`,description:`NG button`,category:`Symbols`,aliases:[`ng`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🅾️`,description:`O button (blood type)`,category:`Symbols`,aliases:[`o2`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🆗`,description:`OK button`,category:`Symbols`,aliases:[`ok`],tags:[`yes`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🅿️`,description:`P button`,category:`Symbols`,aliases:[`parking`],tags:[],unicode_version:`5.2`,ios_version:`6.0`},{emoji:`🆘`,description:`SOS button`,category:`Symbols`,aliases:[`sos`],tags:[`help`,`emergency`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🆙`,description:`UP! button`,category:`Symbols`,aliases:[`up`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🆚`,description:`VS button`,category:`Symbols`,aliases:[`vs`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🈁`,description:`Japanese “here” button`,category:`Symbols`,aliases:[`koko`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🈂️`,description:`Japanese “service charge” button`,category:`Symbols`,aliases:[`sa`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🈷️`,description:`Japanese “monthly amount” button`,category:`Symbols`,aliases:[`u6708`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🈶`,description:`Japanese “not free of charge” button`,category:`Symbols`,aliases:[`u6709`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🈯`,description:`Japanese “reserved” button`,category:`Symbols`,aliases:[`u6307`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`🉐`,description:`Japanese “bargain” button`,category:`Symbols`,aliases:[`ideograph_advantage`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🈹`,description:`Japanese “discount” button`,category:`Symbols`,aliases:[`u5272`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🈚`,description:`Japanese “free of charge” button`,category:`Symbols`,aliases:[`u7121`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`🈲`,description:`Japanese “prohibited” button`,category:`Symbols`,aliases:[`u7981`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🉑`,description:`Japanese “acceptable” button`,category:`Symbols`,aliases:[`accept`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🈸`,description:`Japanese “application” button`,category:`Symbols`,aliases:[`u7533`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🈴`,description:`Japanese “passing grade” button`,category:`Symbols`,aliases:[`u5408`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🈳`,description:`Japanese “vacancy” button`,category:`Symbols`,aliases:[`u7a7a`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`㊗️`,description:`Japanese “congratulations” button`,category:`Symbols`,aliases:[`congratulations`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`㊙️`,description:`Japanese “secret” button`,category:`Symbols`,aliases:[`secret`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`🈺`,description:`Japanese “open for business” button`,category:`Symbols`,aliases:[`u55b6`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🈵`,description:`Japanese “no vacancy” button`,category:`Symbols`,aliases:[`u6e80`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔴`,description:`red circle`,category:`Symbols`,aliases:[`red_circle`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🟠`,description:`orange circle`,category:`Symbols`,aliases:[`orange_circle`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🟡`,description:`yellow circle`,category:`Symbols`,aliases:[`yellow_circle`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🟢`,description:`green circle`,category:`Symbols`,aliases:[`green_circle`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🔵`,description:`blue circle`,category:`Symbols`,aliases:[`large_blue_circle`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🟣`,description:`purple circle`,category:`Symbols`,aliases:[`purple_circle`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🟤`,description:`brown circle`,category:`Symbols`,aliases:[`brown_circle`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`⚫`,description:`black circle`,category:`Symbols`,aliases:[`black_circle`],tags:[],unicode_version:`4.1`,ios_version:`6.0`},{emoji:`⚪`,description:`white circle`,category:`Symbols`,aliases:[`white_circle`],tags:[],unicode_version:`4.1`,ios_version:`6.0`},{emoji:`🟥`,description:`red square`,category:`Symbols`,aliases:[`red_square`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🟧`,description:`orange square`,category:`Symbols`,aliases:[`orange_square`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🟨`,description:`yellow square`,category:`Symbols`,aliases:[`yellow_square`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🟩`,description:`green square`,category:`Symbols`,aliases:[`green_square`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🟦`,description:`blue square`,category:`Symbols`,aliases:[`blue_square`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🟪`,description:`purple square`,category:`Symbols`,aliases:[`purple_square`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`🟫`,description:`brown square`,category:`Symbols`,aliases:[`brown_square`],tags:[],unicode_version:`12.0`,ios_version:`13.0`},{emoji:`⬛`,description:`black large square`,category:`Symbols`,aliases:[`black_large_square`],tags:[],unicode_version:`5.1`,ios_version:`6.0`},{emoji:`⬜`,description:`white large square`,category:`Symbols`,aliases:[`white_large_square`],tags:[],unicode_version:`5.1`,ios_version:`6.0`},{emoji:`◼️`,description:`black medium square`,category:`Symbols`,aliases:[`black_medium_square`],tags:[],unicode_version:`3.2`,ios_version:`6.0`},{emoji:`◻️`,description:`white medium square`,category:`Symbols`,aliases:[`white_medium_square`],tags:[],unicode_version:`3.2`,ios_version:`6.0`},{emoji:`◾`,description:`black medium-small square`,category:`Symbols`,aliases:[`black_medium_small_square`],tags:[],unicode_version:`3.2`,ios_version:`6.0`},{emoji:`◽`,description:`white medium-small square`,category:`Symbols`,aliases:[`white_medium_small_square`],tags:[],unicode_version:`3.2`,ios_version:`6.0`},{emoji:`▪️`,description:`black small square`,category:`Symbols`,aliases:[`black_small_square`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`▫️`,description:`white small square`,category:`Symbols`,aliases:[`white_small_square`],tags:[],unicode_version:``,ios_version:`6.0`},{emoji:`🔶`,description:`large orange diamond`,category:`Symbols`,aliases:[`large_orange_diamond`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔷`,description:`large blue diamond`,category:`Symbols`,aliases:[`large_blue_diamond`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔸`,description:`small orange diamond`,category:`Symbols`,aliases:[`small_orange_diamond`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔹`,description:`small blue diamond`,category:`Symbols`,aliases:[`small_blue_diamond`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔺`,description:`red triangle pointed up`,category:`Symbols`,aliases:[`small_red_triangle`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔻`,description:`red triangle pointed down`,category:`Symbols`,aliases:[`small_red_triangle_down`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`💠`,description:`diamond with a dot`,category:`Symbols`,aliases:[`diamond_shape_with_a_dot_inside`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔘`,description:`radio button`,category:`Symbols`,aliases:[`radio_button`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔳`,description:`white square button`,category:`Symbols`,aliases:[`white_square_button`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🔲`,description:`black square button`,category:`Symbols`,aliases:[`black_square_button`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏁`,description:`chequered flag`,category:`Flags`,aliases:[`checkered_flag`],tags:[`milestone`,`finish`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🚩`,description:`triangular flag`,category:`Flags`,aliases:[`triangular_flag_on_post`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🎌`,description:`crossed flags`,category:`Flags`,aliases:[`crossed_flags`],tags:[],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🏴`,description:`black flag`,category:`Flags`,aliases:[`black_flag`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏳️`,description:`white flag`,category:`Flags`,aliases:[`white_flag`],tags:[],unicode_version:`7.0`,ios_version:`9.1`},{emoji:`🏳️‍🌈`,description:`rainbow flag`,category:`Flags`,aliases:[`rainbow_flag`],tags:[`pride`],unicode_version:`6.0`,ios_version:`10.0`},{emoji:`🏳️‍⚧️`,description:`transgender flag`,category:`Flags`,aliases:[`transgender_flag`],tags:[],unicode_version:`13.0`,ios_version:`14.0`},{emoji:`🏴‍☠️`,description:`pirate flag`,category:`Flags`,aliases:[`pirate_flag`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🇦🇨`,description:`flag: Ascension Island`,category:`Flags`,aliases:[`ascension_island`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🇦🇩`,description:`flag: Andorra`,category:`Flags`,aliases:[`andorra`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇪`,description:`flag: United Arab Emirates`,category:`Flags`,aliases:[`united_arab_emirates`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇫`,description:`flag: Afghanistan`,category:`Flags`,aliases:[`afghanistan`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇬`,description:`flag: Antigua & Barbuda`,category:`Flags`,aliases:[`antigua_barbuda`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇮`,description:`flag: Anguilla`,category:`Flags`,aliases:[`anguilla`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇱`,description:`flag: Albania`,category:`Flags`,aliases:[`albania`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇲`,description:`flag: Armenia`,category:`Flags`,aliases:[`armenia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇴`,description:`flag: Angola`,category:`Flags`,aliases:[`angola`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇶`,description:`flag: Antarctica`,category:`Flags`,aliases:[`antarctica`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇦🇷`,description:`flag: Argentina`,category:`Flags`,aliases:[`argentina`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇸`,description:`flag: American Samoa`,category:`Flags`,aliases:[`american_samoa`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇹`,description:`flag: Austria`,category:`Flags`,aliases:[`austria`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇺`,description:`flag: Australia`,category:`Flags`,aliases:[`australia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇼`,description:`flag: Aruba`,category:`Flags`,aliases:[`aruba`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇦🇽`,description:`flag: Åland Islands`,category:`Flags`,aliases:[`aland_islands`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇦🇿`,description:`flag: Azerbaijan`,category:`Flags`,aliases:[`azerbaijan`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇦`,description:`flag: Bosnia & Herzegovina`,category:`Flags`,aliases:[`bosnia_herzegovina`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇧`,description:`flag: Barbados`,category:`Flags`,aliases:[`barbados`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇩`,description:`flag: Bangladesh`,category:`Flags`,aliases:[`bangladesh`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇪`,description:`flag: Belgium`,category:`Flags`,aliases:[`belgium`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇫`,description:`flag: Burkina Faso`,category:`Flags`,aliases:[`burkina_faso`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇬`,description:`flag: Bulgaria`,category:`Flags`,aliases:[`bulgaria`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇭`,description:`flag: Bahrain`,category:`Flags`,aliases:[`bahrain`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇮`,description:`flag: Burundi`,category:`Flags`,aliases:[`burundi`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇯`,description:`flag: Benin`,category:`Flags`,aliases:[`benin`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇱`,description:`flag: St. Barthélemy`,category:`Flags`,aliases:[`st_barthelemy`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇧🇲`,description:`flag: Bermuda`,category:`Flags`,aliases:[`bermuda`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇳`,description:`flag: Brunei`,category:`Flags`,aliases:[`brunei`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇴`,description:`flag: Bolivia`,category:`Flags`,aliases:[`bolivia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇶`,description:`flag: Caribbean Netherlands`,category:`Flags`,aliases:[`caribbean_netherlands`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇧🇷`,description:`flag: Brazil`,category:`Flags`,aliases:[`brazil`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇸`,description:`flag: Bahamas`,category:`Flags`,aliases:[`bahamas`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇹`,description:`flag: Bhutan`,category:`Flags`,aliases:[`bhutan`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇻`,description:`flag: Bouvet Island`,category:`Flags`,aliases:[`bouvet_island`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🇧🇼`,description:`flag: Botswana`,category:`Flags`,aliases:[`botswana`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇾`,description:`flag: Belarus`,category:`Flags`,aliases:[`belarus`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇧🇿`,description:`flag: Belize`,category:`Flags`,aliases:[`belize`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇦`,description:`flag: Canada`,category:`Flags`,aliases:[`canada`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇨`,description:`flag: Cocos (Keeling) Islands`,category:`Flags`,aliases:[`cocos_islands`],tags:[`keeling`],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇨🇩`,description:`flag: Congo - Kinshasa`,category:`Flags`,aliases:[`congo_kinshasa`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇫`,description:`flag: Central African Republic`,category:`Flags`,aliases:[`central_african_republic`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇬`,description:`flag: Congo - Brazzaville`,category:`Flags`,aliases:[`congo_brazzaville`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇭`,description:`flag: Switzerland`,category:`Flags`,aliases:[`switzerland`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇮`,description:`flag: Côte d’Ivoire`,category:`Flags`,aliases:[`cote_divoire`],tags:[`ivory`],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇰`,description:`flag: Cook Islands`,category:`Flags`,aliases:[`cook_islands`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇱`,description:`flag: Chile`,category:`Flags`,aliases:[`chile`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇲`,description:`flag: Cameroon`,category:`Flags`,aliases:[`cameroon`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇳`,description:`flag: China`,category:`Flags`,aliases:[`cn`],tags:[`china`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🇨🇴`,description:`flag: Colombia`,category:`Flags`,aliases:[`colombia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇵`,description:`flag: Clipperton Island`,category:`Flags`,aliases:[`clipperton_island`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🇨🇷`,description:`flag: Costa Rica`,category:`Flags`,aliases:[`costa_rica`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇺`,description:`flag: Cuba`,category:`Flags`,aliases:[`cuba`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇻`,description:`flag: Cape Verde`,category:`Flags`,aliases:[`cape_verde`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇼`,description:`flag: Curaçao`,category:`Flags`,aliases:[`curacao`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇽`,description:`flag: Christmas Island`,category:`Flags`,aliases:[`christmas_island`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇨🇾`,description:`flag: Cyprus`,category:`Flags`,aliases:[`cyprus`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇨🇿`,description:`flag: Czechia`,category:`Flags`,aliases:[`czech_republic`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇩🇪`,description:`flag: Germany`,category:`Flags`,aliases:[`de`],tags:[`flag`,`germany`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🇩🇬`,description:`flag: Diego Garcia`,category:`Flags`,aliases:[`diego_garcia`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🇩🇯`,description:`flag: Djibouti`,category:`Flags`,aliases:[`djibouti`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇩🇰`,description:`flag: Denmark`,category:`Flags`,aliases:[`denmark`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇩🇲`,description:`flag: Dominica`,category:`Flags`,aliases:[`dominica`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇩🇴`,description:`flag: Dominican Republic`,category:`Flags`,aliases:[`dominican_republic`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇩🇿`,description:`flag: Algeria`,category:`Flags`,aliases:[`algeria`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇪🇦`,description:`flag: Ceuta & Melilla`,category:`Flags`,aliases:[`ceuta_melilla`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🇪🇨`,description:`flag: Ecuador`,category:`Flags`,aliases:[`ecuador`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇪🇪`,description:`flag: Estonia`,category:`Flags`,aliases:[`estonia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇪🇬`,description:`flag: Egypt`,category:`Flags`,aliases:[`egypt`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇪🇭`,description:`flag: Western Sahara`,category:`Flags`,aliases:[`western_sahara`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇪🇷`,description:`flag: Eritrea`,category:`Flags`,aliases:[`eritrea`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇪🇸`,description:`flag: Spain`,category:`Flags`,aliases:[`es`],tags:[`spain`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🇪🇹`,description:`flag: Ethiopia`,category:`Flags`,aliases:[`ethiopia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇪🇺`,description:`flag: European Union`,category:`Flags`,aliases:[`eu`,`european_union`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇫🇮`,description:`flag: Finland`,category:`Flags`,aliases:[`finland`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇫🇯`,description:`flag: Fiji`,category:`Flags`,aliases:[`fiji`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇫🇰`,description:`flag: Falkland Islands`,category:`Flags`,aliases:[`falkland_islands`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇫🇲`,description:`flag: Micronesia`,category:`Flags`,aliases:[`micronesia`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇫🇴`,description:`flag: Faroe Islands`,category:`Flags`,aliases:[`faroe_islands`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇫🇷`,description:`flag: France`,category:`Flags`,aliases:[`fr`],tags:[`france`,`french`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🇬🇦`,description:`flag: Gabon`,category:`Flags`,aliases:[`gabon`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇧`,description:`flag: United Kingdom`,category:`Flags`,aliases:[`gb`,`uk`],tags:[`flag`,`british`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🇬🇩`,description:`flag: Grenada`,category:`Flags`,aliases:[`grenada`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇪`,description:`flag: Georgia`,category:`Flags`,aliases:[`georgia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇫`,description:`flag: French Guiana`,category:`Flags`,aliases:[`french_guiana`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇬`,description:`flag: Guernsey`,category:`Flags`,aliases:[`guernsey`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇬🇭`,description:`flag: Ghana`,category:`Flags`,aliases:[`ghana`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇮`,description:`flag: Gibraltar`,category:`Flags`,aliases:[`gibraltar`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇱`,description:`flag: Greenland`,category:`Flags`,aliases:[`greenland`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇬🇲`,description:`flag: Gambia`,category:`Flags`,aliases:[`gambia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇳`,description:`flag: Guinea`,category:`Flags`,aliases:[`guinea`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇵`,description:`flag: Guadeloupe`,category:`Flags`,aliases:[`guadeloupe`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇬🇶`,description:`flag: Equatorial Guinea`,category:`Flags`,aliases:[`equatorial_guinea`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇷`,description:`flag: Greece`,category:`Flags`,aliases:[`greece`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇸`,description:`flag: South Georgia & South Sandwich Islands`,category:`Flags`,aliases:[`south_georgia_south_sandwich_islands`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇬🇹`,description:`flag: Guatemala`,category:`Flags`,aliases:[`guatemala`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇺`,description:`flag: Guam`,category:`Flags`,aliases:[`guam`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇼`,description:`flag: Guinea-Bissau`,category:`Flags`,aliases:[`guinea_bissau`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇬🇾`,description:`flag: Guyana`,category:`Flags`,aliases:[`guyana`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇭🇰`,description:`flag: Hong Kong SAR China`,category:`Flags`,aliases:[`hong_kong`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇭🇲`,description:`flag: Heard & McDonald Islands`,category:`Flags`,aliases:[`heard_mcdonald_islands`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🇭🇳`,description:`flag: Honduras`,category:`Flags`,aliases:[`honduras`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇭🇷`,description:`flag: Croatia`,category:`Flags`,aliases:[`croatia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇭🇹`,description:`flag: Haiti`,category:`Flags`,aliases:[`haiti`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇭🇺`,description:`flag: Hungary`,category:`Flags`,aliases:[`hungary`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇮🇨`,description:`flag: Canary Islands`,category:`Flags`,aliases:[`canary_islands`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇮🇩`,description:`flag: Indonesia`,category:`Flags`,aliases:[`indonesia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇮🇪`,description:`flag: Ireland`,category:`Flags`,aliases:[`ireland`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇮🇱`,description:`flag: Israel`,category:`Flags`,aliases:[`israel`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇮🇲`,description:`flag: Isle of Man`,category:`Flags`,aliases:[`isle_of_man`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇮🇳`,description:`flag: India`,category:`Flags`,aliases:[`india`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇮🇴`,description:`flag: British Indian Ocean Territory`,category:`Flags`,aliases:[`british_indian_ocean_territory`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇮🇶`,description:`flag: Iraq`,category:`Flags`,aliases:[`iraq`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇮🇷`,description:`flag: Iran`,category:`Flags`,aliases:[`iran`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇮🇸`,description:`flag: Iceland`,category:`Flags`,aliases:[`iceland`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇮🇹`,description:`flag: Italy`,category:`Flags`,aliases:[`it`],tags:[`italy`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🇯🇪`,description:`flag: Jersey`,category:`Flags`,aliases:[`jersey`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇯🇲`,description:`flag: Jamaica`,category:`Flags`,aliases:[`jamaica`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇯🇴`,description:`flag: Jordan`,category:`Flags`,aliases:[`jordan`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇯🇵`,description:`flag: Japan`,category:`Flags`,aliases:[`jp`],tags:[`japan`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🇰🇪`,description:`flag: Kenya`,category:`Flags`,aliases:[`kenya`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇰🇬`,description:`flag: Kyrgyzstan`,category:`Flags`,aliases:[`kyrgyzstan`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇰🇭`,description:`flag: Cambodia`,category:`Flags`,aliases:[`cambodia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇰🇮`,description:`flag: Kiribati`,category:`Flags`,aliases:[`kiribati`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇰🇲`,description:`flag: Comoros`,category:`Flags`,aliases:[`comoros`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇰🇳`,description:`flag: St. Kitts & Nevis`,category:`Flags`,aliases:[`st_kitts_nevis`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇰🇵`,description:`flag: North Korea`,category:`Flags`,aliases:[`north_korea`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇰🇷`,description:`flag: South Korea`,category:`Flags`,aliases:[`kr`],tags:[`korea`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🇰🇼`,description:`flag: Kuwait`,category:`Flags`,aliases:[`kuwait`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇰🇾`,description:`flag: Cayman Islands`,category:`Flags`,aliases:[`cayman_islands`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇰🇿`,description:`flag: Kazakhstan`,category:`Flags`,aliases:[`kazakhstan`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇱🇦`,description:`flag: Laos`,category:`Flags`,aliases:[`laos`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇱🇧`,description:`flag: Lebanon`,category:`Flags`,aliases:[`lebanon`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇱🇨`,description:`flag: St. Lucia`,category:`Flags`,aliases:[`st_lucia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇱🇮`,description:`flag: Liechtenstein`,category:`Flags`,aliases:[`liechtenstein`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇱🇰`,description:`flag: Sri Lanka`,category:`Flags`,aliases:[`sri_lanka`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇱🇷`,description:`flag: Liberia`,category:`Flags`,aliases:[`liberia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇱🇸`,description:`flag: Lesotho`,category:`Flags`,aliases:[`lesotho`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇱🇹`,description:`flag: Lithuania`,category:`Flags`,aliases:[`lithuania`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇱🇺`,description:`flag: Luxembourg`,category:`Flags`,aliases:[`luxembourg`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇱🇻`,description:`flag: Latvia`,category:`Flags`,aliases:[`latvia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇱🇾`,description:`flag: Libya`,category:`Flags`,aliases:[`libya`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇦`,description:`flag: Morocco`,category:`Flags`,aliases:[`morocco`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇨`,description:`flag: Monaco`,category:`Flags`,aliases:[`monaco`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇲🇩`,description:`flag: Moldova`,category:`Flags`,aliases:[`moldova`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇪`,description:`flag: Montenegro`,category:`Flags`,aliases:[`montenegro`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇫`,description:`flag: St. Martin`,category:`Flags`,aliases:[`st_martin`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🇲🇬`,description:`flag: Madagascar`,category:`Flags`,aliases:[`madagascar`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇭`,description:`flag: Marshall Islands`,category:`Flags`,aliases:[`marshall_islands`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇲🇰`,description:`flag: North Macedonia`,category:`Flags`,aliases:[`macedonia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇱`,description:`flag: Mali`,category:`Flags`,aliases:[`mali`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇲`,description:`flag: Myanmar (Burma)`,category:`Flags`,aliases:[`myanmar`],tags:[`burma`],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇳`,description:`flag: Mongolia`,category:`Flags`,aliases:[`mongolia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇴`,description:`flag: Macao SAR China`,category:`Flags`,aliases:[`macau`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇵`,description:`flag: Northern Mariana Islands`,category:`Flags`,aliases:[`northern_mariana_islands`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇶`,description:`flag: Martinique`,category:`Flags`,aliases:[`martinique`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇲🇷`,description:`flag: Mauritania`,category:`Flags`,aliases:[`mauritania`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇸`,description:`flag: Montserrat`,category:`Flags`,aliases:[`montserrat`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇹`,description:`flag: Malta`,category:`Flags`,aliases:[`malta`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇺`,description:`flag: Mauritius`,category:`Flags`,aliases:[`mauritius`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇲🇻`,description:`flag: Maldives`,category:`Flags`,aliases:[`maldives`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇼`,description:`flag: Malawi`,category:`Flags`,aliases:[`malawi`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇽`,description:`flag: Mexico`,category:`Flags`,aliases:[`mexico`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇾`,description:`flag: Malaysia`,category:`Flags`,aliases:[`malaysia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇲🇿`,description:`flag: Mozambique`,category:`Flags`,aliases:[`mozambique`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇳🇦`,description:`flag: Namibia`,category:`Flags`,aliases:[`namibia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇳🇨`,description:`flag: New Caledonia`,category:`Flags`,aliases:[`new_caledonia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇳🇪`,description:`flag: Niger`,category:`Flags`,aliases:[`niger`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇳🇫`,description:`flag: Norfolk Island`,category:`Flags`,aliases:[`norfolk_island`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇳🇬`,description:`flag: Nigeria`,category:`Flags`,aliases:[`nigeria`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇳🇮`,description:`flag: Nicaragua`,category:`Flags`,aliases:[`nicaragua`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇳🇱`,description:`flag: Netherlands`,category:`Flags`,aliases:[`netherlands`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇳🇴`,description:`flag: Norway`,category:`Flags`,aliases:[`norway`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇳🇵`,description:`flag: Nepal`,category:`Flags`,aliases:[`nepal`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇳🇷`,description:`flag: Nauru`,category:`Flags`,aliases:[`nauru`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇳🇺`,description:`flag: Niue`,category:`Flags`,aliases:[`niue`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇳🇿`,description:`flag: New Zealand`,category:`Flags`,aliases:[`new_zealand`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇴🇲`,description:`flag: Oman`,category:`Flags`,aliases:[`oman`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇵🇦`,description:`flag: Panama`,category:`Flags`,aliases:[`panama`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇵🇪`,description:`flag: Peru`,category:`Flags`,aliases:[`peru`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇵🇫`,description:`flag: French Polynesia`,category:`Flags`,aliases:[`french_polynesia`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇵🇬`,description:`flag: Papua New Guinea`,category:`Flags`,aliases:[`papua_new_guinea`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇵🇭`,description:`flag: Philippines`,category:`Flags`,aliases:[`philippines`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇵🇰`,description:`flag: Pakistan`,category:`Flags`,aliases:[`pakistan`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇵🇱`,description:`flag: Poland`,category:`Flags`,aliases:[`poland`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇵🇲`,description:`flag: St. Pierre & Miquelon`,category:`Flags`,aliases:[`st_pierre_miquelon`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇵🇳`,description:`flag: Pitcairn Islands`,category:`Flags`,aliases:[`pitcairn_islands`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇵🇷`,description:`flag: Puerto Rico`,category:`Flags`,aliases:[`puerto_rico`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇵🇸`,description:`flag: Palestinian Territories`,category:`Flags`,aliases:[`palestinian_territories`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇵🇹`,description:`flag: Portugal`,category:`Flags`,aliases:[`portugal`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇵🇼`,description:`flag: Palau`,category:`Flags`,aliases:[`palau`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇵🇾`,description:`flag: Paraguay`,category:`Flags`,aliases:[`paraguay`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇶🇦`,description:`flag: Qatar`,category:`Flags`,aliases:[`qatar`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇷🇪`,description:`flag: Réunion`,category:`Flags`,aliases:[`reunion`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇷🇴`,description:`flag: Romania`,category:`Flags`,aliases:[`romania`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇷🇸`,description:`flag: Serbia`,category:`Flags`,aliases:[`serbia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇷🇺`,description:`flag: Russia`,category:`Flags`,aliases:[`ru`],tags:[`russia`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🇷🇼`,description:`flag: Rwanda`,category:`Flags`,aliases:[`rwanda`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇦`,description:`flag: Saudi Arabia`,category:`Flags`,aliases:[`saudi_arabia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇧`,description:`flag: Solomon Islands`,category:`Flags`,aliases:[`solomon_islands`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇨`,description:`flag: Seychelles`,category:`Flags`,aliases:[`seychelles`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇩`,description:`flag: Sudan`,category:`Flags`,aliases:[`sudan`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇪`,description:`flag: Sweden`,category:`Flags`,aliases:[`sweden`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇬`,description:`flag: Singapore`,category:`Flags`,aliases:[`singapore`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇭`,description:`flag: St. Helena`,category:`Flags`,aliases:[`st_helena`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇸🇮`,description:`flag: Slovenia`,category:`Flags`,aliases:[`slovenia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇯`,description:`flag: Svalbard & Jan Mayen`,category:`Flags`,aliases:[`svalbard_jan_mayen`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🇸🇰`,description:`flag: Slovakia`,category:`Flags`,aliases:[`slovakia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇱`,description:`flag: Sierra Leone`,category:`Flags`,aliases:[`sierra_leone`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇲`,description:`flag: San Marino`,category:`Flags`,aliases:[`san_marino`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇳`,description:`flag: Senegal`,category:`Flags`,aliases:[`senegal`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇴`,description:`flag: Somalia`,category:`Flags`,aliases:[`somalia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇷`,description:`flag: Suriname`,category:`Flags`,aliases:[`suriname`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇸`,description:`flag: South Sudan`,category:`Flags`,aliases:[`south_sudan`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇹`,description:`flag: São Tomé & Príncipe`,category:`Flags`,aliases:[`sao_tome_principe`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇻`,description:`flag: El Salvador`,category:`Flags`,aliases:[`el_salvador`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇽`,description:`flag: Sint Maarten`,category:`Flags`,aliases:[`sint_maarten`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇾`,description:`flag: Syria`,category:`Flags`,aliases:[`syria`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇸🇿`,description:`flag: Eswatini`,category:`Flags`,aliases:[`swaziland`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇹🇦`,description:`flag: Tristan da Cunha`,category:`Flags`,aliases:[`tristan_da_cunha`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🇹🇨`,description:`flag: Turks & Caicos Islands`,category:`Flags`,aliases:[`turks_caicos_islands`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇹🇩`,description:`flag: Chad`,category:`Flags`,aliases:[`chad`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇹🇫`,description:`flag: French Southern Territories`,category:`Flags`,aliases:[`french_southern_territories`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇹🇬`,description:`flag: Togo`,category:`Flags`,aliases:[`togo`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇹🇭`,description:`flag: Thailand`,category:`Flags`,aliases:[`thailand`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇹🇯`,description:`flag: Tajikistan`,category:`Flags`,aliases:[`tajikistan`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇹🇰`,description:`flag: Tokelau`,category:`Flags`,aliases:[`tokelau`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇹🇱`,description:`flag: Timor-Leste`,category:`Flags`,aliases:[`timor_leste`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇹🇲`,description:`flag: Turkmenistan`,category:`Flags`,aliases:[`turkmenistan`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇹🇳`,description:`flag: Tunisia`,category:`Flags`,aliases:[`tunisia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇹🇴`,description:`flag: Tonga`,category:`Flags`,aliases:[`tonga`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇹🇷`,description:`flag: Turkey`,category:`Flags`,aliases:[`tr`],tags:[`turkey`],unicode_version:`8.0`,ios_version:`9.1`},{emoji:`🇹🇹`,description:`flag: Trinidad & Tobago`,category:`Flags`,aliases:[`trinidad_tobago`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇹🇻`,description:`flag: Tuvalu`,category:`Flags`,aliases:[`tuvalu`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇹🇼`,description:`flag: Taiwan`,category:`Flags`,aliases:[`taiwan`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇹🇿`,description:`flag: Tanzania`,category:`Flags`,aliases:[`tanzania`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇺🇦`,description:`flag: Ukraine`,category:`Flags`,aliases:[`ukraine`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇺🇬`,description:`flag: Uganda`,category:`Flags`,aliases:[`uganda`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇺🇲`,description:`flag: U.S. Outlying Islands`,category:`Flags`,aliases:[`us_outlying_islands`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🇺🇳`,description:`flag: United Nations`,category:`Flags`,aliases:[`united_nations`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🇺🇸`,description:`flag: United States`,category:`Flags`,aliases:[`us`],tags:[`flag`,`united`,`america`],unicode_version:`6.0`,ios_version:`6.0`},{emoji:`🇺🇾`,description:`flag: Uruguay`,category:`Flags`,aliases:[`uruguay`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇺🇿`,description:`flag: Uzbekistan`,category:`Flags`,aliases:[`uzbekistan`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇻🇦`,description:`flag: Vatican City`,category:`Flags`,aliases:[`vatican_city`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇻🇨`,description:`flag: St. Vincent & Grenadines`,category:`Flags`,aliases:[`st_vincent_grenadines`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇻🇪`,description:`flag: Venezuela`,category:`Flags`,aliases:[`venezuela`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇻🇬`,description:`flag: British Virgin Islands`,category:`Flags`,aliases:[`british_virgin_islands`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇻🇮`,description:`flag: U.S. Virgin Islands`,category:`Flags`,aliases:[`us_virgin_islands`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇻🇳`,description:`flag: Vietnam`,category:`Flags`,aliases:[`vietnam`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇻🇺`,description:`flag: Vanuatu`,category:`Flags`,aliases:[`vanuatu`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇼🇫`,description:`flag: Wallis & Futuna`,category:`Flags`,aliases:[`wallis_futuna`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇼🇸`,description:`flag: Samoa`,category:`Flags`,aliases:[`samoa`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇽🇰`,description:`flag: Kosovo`,category:`Flags`,aliases:[`kosovo`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇾🇪`,description:`flag: Yemen`,category:`Flags`,aliases:[`yemen`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇾🇹`,description:`flag: Mayotte`,category:`Flags`,aliases:[`mayotte`],tags:[],unicode_version:`6.0`,ios_version:`9.0`},{emoji:`🇿🇦`,description:`flag: South Africa`,category:`Flags`,aliases:[`south_africa`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇿🇲`,description:`flag: Zambia`,category:`Flags`,aliases:[`zambia`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🇿🇼`,description:`flag: Zimbabwe`,category:`Flags`,aliases:[`zimbabwe`],tags:[],unicode_version:`6.0`,ios_version:`8.3`},{emoji:`🏴󠁧󠁢󠁥󠁮󠁧󠁿`,description:`flag: England`,category:`Flags`,aliases:[`england`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🏴󠁧󠁢󠁳󠁣󠁴󠁿`,description:`flag: Scotland`,category:`Flags`,aliases:[`scotland`],tags:[],unicode_version:`11.0`,ios_version:`12.1`},{emoji:`🏴󠁧󠁢󠁷󠁬󠁳󠁿`,description:`flag: Wales`,category:`Flags`,aliases:[`wales`],tags:[],unicode_version:`11.0`,ios_version:`12.1`}],zy={dependencies:[vi],export:e=>r.G(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=bi();r||e.getNextSibling()!=null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`},By={dependencies:[a.D],export:e=>a.E(e)?`![${e.getAltText()}](${e.getSrc()})`:null,importRegExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))/,regExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))$/,replace:(e,t)=>{let[,n,r]=t,i=a.w({altText:n,maxWidth:800,src:r});e.replace(i)},trigger:`)`,type:`text-match`},Vy={dependencies:[],export:()=>null,importRegExp:/:([a-z0-9_]+):/,regExp:/:([a-z0-9_]+):$/,replace:(e,[,n])=>{let r=Ry.find(e=>e.aliases.includes(n))?.emoji;r&&e.replace(t.D(r))},trigger:`:`,type:`text-match`},Hy={dependencies:[d.a],export:e=>d.i(e)?`$${e.getEquation()}$`:null,importRegExp:/\$([^$]+?)\$/,regExp:/\$([^$]+?)\$$/,replace:(e,t)=>{let[,n]=t,r=d.r(n,!0);e.replace(r)},trigger:`$`,type:`text-match`},Uy=/^(?:\|)(.+)(?:\|)\s?$/,Wy=/^(\| ?:?-*:? ?)+\|\s?$/,Gy={dependencies:[a.At,a.Jt,a.Wt],export:e=>{if(!a.Ut(e))return null;let t=[];for(let n of e.getChildren()){let e=[];if(!a.Ft(n))continue;let r=!1;for(let t of n.getChildren())a.Rt(t)&&(e.push(Mo(Yy,t).replace(/\n/g,`\\n`).trim()),t.__headerState===a.Ht.ROW&&(r=!0));t.push(`| ${e.join(` | `)} |`),r&&t.push(`| ${e.map(e=>`---`).join(` | `)} |`)}return t.join(`
861
861
  `)},regExp:Uy,replace:(e,n,r)=>{if(Wy.test(r[0])){let t=e.getPreviousSibling();if(!t||!a.Ut(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!a.Ft(r))return;r.getChildren().forEach(e=>{a.Rt(e)&&e.setHeaderStyles(a.Ht.ROW,a.Ht.ROW)}),e.remove();return}let i=Jy(r[0]);if(i==null)return;let o=[i],s=e.getPreviousSibling(),c=i.length;for(;s&&!(!t.kn(s)||s.getChildrenSize()!==1);){let e=s.getFirstChild();if(!t.Jt(e))break;let n=Jy(e.getTextContent());if(n==null)break;c=Math.max(c,n.length),o.unshift(n);let r=s.getPreviousSibling();s.remove(),s=r}let l=a.Vt();for(let e of o){let t=a.Pt();l.append(t);for(let n=0;n<c;n++)t.append(n<e.length?e[n]:qy(``))}let u=e.getPreviousSibling();a.Ut(u)&&Ky(u)===c?(u.append(...l.getChildren()),e.remove()):e.replace(l),l.selectEnd()},type:`element`};function Ky(e){let t=e.getFirstChild();return a.Ft(t)?t.getChildrenSize():0}var qy=e=>{e=e.replace(/\\n/g,`
862
- `);let t=a.Gt(a.Ht.NO_STATUS);return jo(e,Yy,t),t},Jy=e=>{let t=e.match(Uy);return!t||!t[1]?null:t[1].split(`|`).map(e=>qy(e))},Yy=[Gy,zy,By,Vy,Hy,Ua,...to,...no,...ro,...io],Xy=`lexical-playground-read-only-mode`,{name:Zy,version:Qy}=y,$y=850,eb=[`beforeinput`,`compositionstart`,`cut`,`drop`,`paste`],tb=8e3,nb=`Plain link ready. Anyone with the URL can open this editor state.`,rb=`Protected link ready. Readers will be asked for the password.`,ib={display:`contents`},ab=`button:not(:disabled), [role="button"]:not([aria-disabled="true"]), a[href], input[type="button"]:not(:disabled), input[type="submit"]:not(:disabled)`,ob=`__fullscreen__`;function sb(e){switch(e.trim().toLowerCase()){case`esc`:return`escape`;case`space`:case`spacebar`:return` `;case`plus`:return`+`;default:return e.trim().toLowerCase()}}function cb(e){return e===` `?`Space`:e.length===1?e.toUpperCase():e}function lb(e){if(e===void 0)return null;let t=e.split(`+`).map(e=>e.trim()).filter(Boolean),n=null,r=!1,i=!1,a=!1,o=!1;return t.forEach(e=>{switch(e.toLowerCase()){case`alt`:case`option`:r=!0;break;case`cmd`:case`command`:case`meta`:a=!0;break;case`control`:case`ctrl`:i=!0;break;case`shift`:o=!0;break;default:n=n===null?sb(e):``}}),n===null||n===``?null:{altKey:r,ariaKeyShortcut:[i?`Control`:null,r?`Alt`:null,o?`Shift`:null,a?`Meta`:null,cb(n)].filter(Boolean).join(`+`),ctrlKey:i,key:n,metaKey:a,shiftKey:o}}function ub(e,t){return e.altKey===t.altKey&&e.ctrlKey===t.ctrlKey&&e.metaKey===t.metaKey&&e.shiftKey===t.shiftKey&&sb(e.key)===t.key}function db(e){return e.matches(ab)?e:e.querySelector(ab)}function fb(e,t){let n=typeof t==`string`&&t.length>0?t:e.description;return e.shortcutKey===void 0?n:n===void 0?e.shortcutKey:`${n} (${e.shortcutKey})`}function pb(e){let t=lb(e.shortcutKey),n=h.Children.toArray(e.children),r=n[0];if(n.length!==1||!(0,h.isValidElement)(r)||typeof r.type!=`string`)return e.children;let i=fb(e,r.props.title),a={};return t!==null&&(a[`aria-keyshortcuts`]=t.ariaKeyShortcut),i!==void 0&&i!==r.props.title&&(a.title=i),Object.keys(a).length===0?e.children:(0,h.cloneElement)(r,a)}function mb(){let e=i.d();return e!==null&&e.getItem(Xy)===`true`}function hb(e){let t=i.d();if(t!==null){if(e){t.setItem(Xy,`true`);return}t.removeItem(Xy)}}function gb(e){let t=e.key.toLowerCase();return(e.ctrlKey||e.metaKey)&&(t===`v`||t===`x`)?!0:e.ctrlKey||e.metaKey||e.altKey?!1:e.key.length===1||e.key===`Backspace`||e.key===`Delete`||e.key===`Enter`||e.key===`Tab`}function _b(e,t){let n=t.target;if(n instanceof Node&&e.contains(n))return!0;let r=document.activeElement;if(r!==null&&e.contains(r))return!0;let i=window.getSelection()?.anchorNode;return i!=null&&e.contains(i)}function vb({forceReadOnly:e=!1,footerActionButtons:n=Qn,isMinimize:r,isOnApp:o,onToggleFullscreen:c,onToggleComments:l,onToggleLookup:u,print:d,setShowComments:f,setShowLookup:p,shouldPreserveNewLinesInMarkdown:m,showComments:g,showLookup:y,showModal:b}){let[x]=t.oi(),[S,C]=(0,h.useState)(()=>e||mb()?!1:x.isEditable()),[w,T]=(0,h.useState)(!0),[E,D]=(0,h.useState)(0),[O,k]=(0,h.useState)(!1),[A,j]=(0,h.useState)(null),M=(0,h.useRef)(null),N=(0,h.useRef)(null),P=(0,h.useRef)(new Map),F=(0,h.useRef)(null),I=(0,h.useRef)(null),{setOption:L,settings:{pageSize:R}}=i.r(),{showStickyNotes:z,toggleStickyNotesVisibility:B}=s.c(),ee=a.at(),{shortToVerseData:te,verseFullTextToListShorts:V}=a._t(),ne=(0,h.useCallback)(()=>{D(e=>e+1),M.current!==null&&window.clearTimeout(M.current),M.current=window.setTimeout(()=>{D(0),M.current=null},$y)},[]),re=[`action-button`,S?`lock`:`unlock is-locked`,!S&&E>0?`is-locked-notice`:``].filter(Boolean).join(` `),H=(0,h.useCallback)(()=>{if(d!==void 0){d();return}Iy(x,R)},[x,R,d]),U=(0,h.useCallback)(async e=>{try{let t=await vy(x,e);b(`Word document imported`,e=>(0,_.jsx)(yb,{result:t,onClose:e}))}catch(e){let t=e instanceof Error?e.message:`The Word document could not be imported.`;b(`Word import failed`,e=>(0,_.jsx)(bb,{message:t,onClose:e}))}},[x,b]),ie=(0,h.useCallback)(e=>{let t=e.currentTarget,n=t.files?.[0];t.value=``,n&&U(n)},[U]),ae=(0,h.useCallback)(async()=>{let e=No();if(!e){N.current?.click();return}try{let t=await e.openFile({filters:[{extensions:[`docx`],name:`Microsoft Word document`}]});if(!(`data`in t))return;await U(new Blob([Uint8Array.from(t.data).buffer],{type:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`}))}catch(e){let t=e instanceof Error?e.message:`The Word document could not be opened.`;b(`Word import failed`,e=>(0,_.jsx)(bb,{message:t,onClose:e}))}},[U,b]),oe=(0,h.useCallback)(async()=>{try{await tu(x,R,{lookupManagers:ee,shortToVerseData:te,verseFullTextToListShorts:V})}catch(e){let t=e instanceof Error?e.message:`The Word document could not be saved.`;b(`Word export failed`,e=>(0,_.jsx)(bb,{message:t,onClose:e}))}},[x,ee,R,te,b,V]);(0,h.useEffect)(()=>{if(e){hb(!0),x.setEditable(!1),C(!1);return}mb()&&(x.setEditable(!1),C(!1))},[x,e]),(0,h.useEffect)(()=>()=>{M.current!==null&&window.clearTimeout(M.current)},[]),(0,h.useEffect)(()=>{S&&(M.current!==null&&(window.clearTimeout(M.current),M.current=null),D(0))},[S]),(0,h.useEffect)(()=>{if(S)return;let e=x.getRootElement(),t=x.registerRootListener(t=>{e=t}),n=t=>{e!==null&&_b(e,t)&&ne()},r=t=>{e!==null&&_b(e,t)&&gb(t)&&ne()};return document.addEventListener(`keydown`,r,!0),eb.forEach(e=>{document.addEventListener(e,n,!0)}),()=>{t(),document.removeEventListener(`keydown`,r,!0),eb.forEach(e=>{document.removeEventListener(e,n,!0)})}},[x,S,ne]),(0,h.useEffect)(()=>x.registerEditableListener(e=>{C(e),hb(!e)}),[x]),(0,h.useEffect)(()=>{!e||!S||(hb(!0),x.setEditable(!1),C(!1))},[x,e,S]),(0,h.useEffect)(()=>x.registerUpdateListener(({dirtyElements:e,prevEditorState:n,tags:r})=>{x.getEditorState().read(()=>{let e=t.Dr().getChildren();if(e.length>1)T(!1);else if(t.kn(e[0])){let t=e[0].getChildren();T(t.length===0)}else T(!1)})}),[x,S]);let se=(0,h.useCallback)(()=>{x.update(()=>{let e=t.Dr(),n=e.getFirstChild();if(W(n)&&n.getLanguage()===`markdown`)jo(n.getTextContent(),Yy,void 0,m);else{let n=Mo(Yy,void 0,m),r=Ie(`markdown`);r.append(t.D(n)),e.clear().append(r),n.length===0&&r.select()}})},[x,m]),ce=(0,h.useCallback)(()=>{let e=JSON.stringify(x.getEditorState()),t=xr(e);b(`Share as link`,n=>t===null?(0,_.jsx)(Tb,{onClose:n}):(0,_.jsx)(Sb,{onClose:n,serializedEditorState:e,shareLink:t}))},[x,b]),le=(0,h.useCallback)(()=>{let e=F.current;if(e===null)return;let t=e.getBoundingClientRect();j({bottom:Math.max(8,window.innerHeight-t.top+4),right:Math.max(8,window.innerWidth-t.right)})},[]),ue=(0,h.useCallback)(async()=>{let e=No();if(!e){sa(x);return}try{let n=await e.openFile({filters:[{extensions:[`lexical`],name:`BibleNote editor file`}]});if(!(`data`in n))return;let r=new TextDecoder().decode(n.data);x.setEditorState(oa(x,r)),x.dispatchCommand(t.dt,void 0),x.focus()}catch(e){let t=e instanceof Error?e.message:`The editor file could not be imported.`;b(`Import failed`,e=>(0,_.jsx)(bb,{message:t,onClose:e}))}},[x,b]),de=(0,h.useCallback)(async()=>{let e=No(),t=new Date().toISOString().replace(/[:.]/g,`-`);if(!e){ca(x,{fileName:`BibleNote ${t}`,source:`Playground`});return}try{let n=aa(x.getEditorState(),{source:`Playground`});await e.saveFile({data:JSON.stringify(n),defaultFileName:`BibleNote ${t}.lexical`,filters:[{extensions:[`lexical`],name:`BibleNote editor file`}]})}catch(e){let t=e instanceof Error?e.message:`The editor file could not be exported.`;b(`Export failed`,e=>(0,_.jsx)(bb,{message:t,onClose:e}))}},[x,b]),fe=(0,h.useCallback)(()=>{b(`Editor information`,()=>(0,_.jsx)(Db,{}))},[b]),pe=(0,h.useCallback)(()=>{k(!1)},[]),me=(0,h.useCallback)((e,t)=>{if(t===null){P.current.delete(e);return}P.current.set(e,t)},[]),he=(0,h.useCallback)(()=>{if(O){k(!1);return}le(),k(!0)},[O,le]);return(0,h.useEffect)(()=>{if(!O)return;le();let e=e=>{let t=e.target;t instanceof Node&&(F.current?.contains(t)||I.current?.contains(t)||k(!1))},t=e=>{e.key===`Escape`&&k(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),window.addEventListener(`resize`,le),window.addEventListener(`scroll`,le,!0),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t),window.removeEventListener(`resize`,le),window.removeEventListener(`scroll`,le,!0)}},[O,le]),(0,h.useEffect)(()=>{let e=[...n.before,...n.after].map(e=>({id:e.id,shortcut:lb(e.shortcutKey)})).filter(e=>e.shortcut!==null);if(e.length===0)return;let t=t=>{if(t.defaultPrevented||t.repeat||t.isComposing)return;let n=e.find(e=>ub(t,e.shortcut));if(n===void 0)return;let r=P.current.get(n.id),i=r===void 0?null:db(r);i!==null&&(t.preventDefault(),i.click())};return document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`keydown`,t)}},[n]),(0,_.jsxs)(`div`,{className:`d-flex flex-wrap justify-content-end actions`,style:{overflowX:`auto`,overflowY:`hidden`},children:[n.before.map(e=>(0,_.jsx)(xb,{actionButton:e,setFooterActionButtonElement:me},e.id)),(0,_.jsx)(`button`,{className:`action-button sticky-notes-toggle`,onClick:B,title:z?`Hide Sticky Notes`:`Show Sticky Notes`,"aria-label":z?`Hide sticky notes`:`Show sticky notes`,"aria-pressed":z,children:(0,_.jsx)(`i`,{className:`bi bi-${z?`stickies-fill`:`stickies`}`})}),(0,_.jsx)(`button`,{className:`action-button import-docx`,onClick:()=>void ae(),title:`Import Word Document`,"aria-label":`Import Microsoft Word document`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-file-earmark-arrow-up`})}),(0,_.jsx)(`input`,{ref:N,accept:ay,"aria-label":`Choose Microsoft Word document`,hidden:!0,onChange:ie,type:`file`}),(0,_.jsx)(`button`,{className:`action-button export-docx`,onClick:()=>void oe(),title:`Download Word Document`,"aria-label":`Download as Word document`,children:(0,_.jsx)(`i`,{className:`bi bi-file-word`})}),(0,_.jsx)(`button`,{className:`action-button print`,onClick:H,title:`Print`,"aria-label":`Print document`,children:(0,_.jsx)(`i`,{className:`bi bi-printer`})}),(0,_.jsxs)(`label`,{className:`page-size-selector`,title:`Page size`,children:[(0,_.jsx)(`span`,{className:`visually-hidden`,children:`Page size`}),(0,_.jsx)(`i`,{className:`bi bi-file-earmark`,"aria-hidden":`true`}),(0,_.jsxs)(`select`,{"aria-label":`Page size`,value:R,onChange:e=>{let t=e.target.value;if(t===ob){c?.();return}i.g(t)&&L(`pageSize`,t)},children:[i.m().map(e=>(0,_.jsx)(`option`,{value:e.key,children:e.label},e.key)),(0,_.jsx)(`option`,{value:ob,children:`Full Screen`})]})]}),(0,_.jsx)(`button`,{className:`action-button clear`,disabled:w,onClick:()=>{b(`Clear editor`,e=>(0,_.jsx)(Ob,{editor:x,onClose:e}))},title:`Clear`,"aria-label":`Clear editor contents`,children:(0,_.jsx)(`i`,{className:`bi bi-eraser`})}),(0,_.jsx)(`button`,{className:re,onClick:()=>{if(e){ne(),hb(!0),x.setEditable(!1),C(!1);return}let t=!S;hb(!t),x.setEditable(t),C(t)},title:e?`Read-Only Mode Locked`:`Read-Only Mode`,"aria-label":e&&!S?`Read-only mode is locked`:`${S?`Lock`:`Unlock`} read-only mode`,children:(0,_.jsx)(`i`,{className:`bi bi-${S?`unlock`:`lock`}-fill`},`${S?`editable`:`locked`}-${E}`)}),!o&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{className:`action-button share-link`,onClick:ce,title:`Share as Link`,"aria-label":`Share editor state as link`,children:(0,_.jsx)(`i`,{className:`bi bi-link-45deg`})}),(0,_.jsx)(`button`,{className:`action-button`,onClick:se,title:`Convert From Markdown`,"aria-label":`Convert from markdown`,children:(0,_.jsx)(`i`,{className:`bi bi-markdown-fill`})})]}),g!==void 0&&f!==void 0&&(0,_.jsx)(`button`,{className:`action-button comments-toggle ${g?`active`:``}`,onClick:()=>l?l():f(e=>!e),title:g?`Hide Comments`:`Show Comments`,"aria-label":g?`Hide comments`:`Show comments`,"aria-pressed":g,children:(0,_.jsx)(`i`,{className:`bi ${g?`bi-chat-dots-fill`:`bi-chat-dots`}`})}),y!==void 0&&p!==void 0&&(0,_.jsxs)(`button`,{className:`action-button lookup-toggle ${y?`active`:``}`,onClick:()=>u?u():p(e=>!e),title:y?`Hide Lookup`:`Show Lookup (name or location)`,"aria-label":y?`Hide lookup`:`Show lookup`,"aria-pressed":y,children:[(0,_.jsx)(`i`,{className:`bi bi-person-fill`}),(0,_.jsx)(`i`,{className:`bi bi-geo-alt-fill`})]}),r?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{ref:F,className:`action-button more-actions ${O?`active`:``}`,onClick:he,title:`More actions`,"aria-label":`More document actions`,"aria-expanded":O,"aria-haspopup":`menu`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-three-dots`})}),O&&A!==null?(0,v.createPortal)((0,_.jsxs)(`div`,{ref:I,className:`dropdown actions-overflow-menu`,role:`menu`,"aria-label":`More document actions`,style:{bottom:`${A.bottom}px`,right:`${A.right}px`},children:[(0,_.jsxs)(`button`,{className:`item`,onClick:()=>{ue(),pe()},role:`menuitem`,type:`button`,children:[(0,_.jsx)(`span`,{className:`icon`,children:(0,_.jsx)(`i`,{className:`bi bi-upload`})}),(0,_.jsx)(`span`,{className:`text`,children:`Import`})]}),(0,_.jsxs)(`button`,{className:`item`,onClick:()=>{de(),pe()},role:`menuitem`,type:`button`,children:[(0,_.jsx)(`span`,{className:`icon`,children:(0,_.jsx)(`i`,{className:`bi bi-download`})}),(0,_.jsx)(`span`,{className:`text`,children:`Export`})]}),(0,_.jsxs)(`button`,{className:`item`,onClick:()=>{fe(),pe()},role:`menuitem`,type:`button`,children:[(0,_.jsx)(`span`,{className:`icon`,children:(0,_.jsx)(`i`,{className:`bi bi-info-circle`})}),(0,_.jsx)(`span`,{className:`text`,children:`Editor Information`})]})]}),document.body):null]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{className:`action-button import`,onClick:ue,title:`Import`,"aria-label":`Import editor state from JSON`,children:(0,_.jsx)(`i`,{className:`bi bi-upload`})}),(0,_.jsx)(`button`,{className:`action-button export`,onClick:de,title:`Export`,"aria-label":`Export editor state to JSON`,children:(0,_.jsx)(`i`,{className:`bi bi-download`})}),(0,_.jsx)(`button`,{className:`action-button info`,onClick:fe,title:`Editor Information`,"aria-label":`Show editor information`,children:(0,_.jsx)(`i`,{className:`bi bi-info-circle`})})]}),n.after.map(e=>(0,_.jsx)(xb,{actionButton:e,setFooterActionButtonElement:me},e.id))]})}function yb({onClose:e,result:t}){return(0,_.jsxs)(`div`,{className:`ActionsPlugin__dialog`,children:[(0,_.jsx)(`p`,{children:t.source===`bible-note`?`The document was restored from its BibleNote round-trip data, including editor-specific content.`:`The Word document content was imported. Word-only layout features may be simplified so they remain editable.`}),t.warnings.length>0&&(0,_.jsxs)(`details`,{children:[(0,_.jsxs)(`summary`,{children:[t.warnings.length,` import warning`,t.warnings.length===1?``:`s`]}),(0,_.jsx)(`ul`,{children:t.warnings.map((e,t)=>(0,_.jsx)(`li`,{children:e},`${t}-${e}`))})]}),(0,_.jsx)(u.t,{onClick:e,children:`Done`})]})}function bb({message:e,onClose:t}){return(0,_.jsxs)(`div`,{className:`ActionsPlugin__dialog`,children:[(0,_.jsx)(`p`,{children:e}),(0,_.jsx)(u.t,{onClick:t,children:`Close`})]})}function xb({actionButton:e,setFooterActionButtonElement:t}){return(0,_.jsx)(`span`,{ref:n=>{t(e.id,n)},style:ib,children:pb(e)})}function Sb({onClose:e,serializedEditorState:t,shareLink:n}){let r=(0,h.useRef)(null),[i,a]=(0,h.useState)(`idle`),[o,s]=(0,h.useState)(!1),[c,l]=(0,h.useState)(``),[d,f]=(0,h.useState)(``),[p,m]=(0,h.useState)(n),g=Cb(n,nb),[v,y]=(0,h.useState)(g.message),[b,x]=(0,h.useState)(g.tone),[S,C]=(0,h.useState)(!1),w=wr();(0,h.useEffect)(()=>{a(`idle`)},[p]),(0,h.useEffect)(()=>{if(!o){let e=Cb(n,nb);m(n),y(e.message),x(e.tone),C(!1);return}if(!w){m(``),y(`Password protection is unavailable in this browser.`),x(`muted`),C(!1);return}if(c.length===0||d.length===0){m(``),y(`Enter and confirm a password to generate the protected link.`),x(`muted`),C(!1);return}if(c!==d){m(``),y(`Passwords must match before the link can be created.`),x(`muted`),C(!1);return}let e=!0;return m(``),y(`Encrypting the share link...`),x(`muted`),C(!0),Sr(t,c).then(t=>{if(!e)return;if(t===null){y(`The protected share link could not be created.`),x(`muted`);return}let n=Cb(t,rb);m(t),y(n.message),x(n.tone)}).catch(()=>{e&&(y(`The protected share link could not be created.`),x(`muted`))}).finally(()=>{e&&C(!1)}),()=>{e=!1}},[w,d,o,c,t,n]);let T=(0,h.useCallback)(async()=>{if(p){a(`copying`);try{let e=await Eb(p,r.current);a(e?`success`:`error`)}catch{a(`error`)}}},[p]);return(0,_.jsxs)(`div`,{className:`d-flex flex-column gap-3`,children:[(0,_.jsxs)(`label`,{className:`d-flex align-items-center gap-2 m-0`,children:[(0,_.jsx)(`input`,{checked:o,className:`form-check-input m-0`,onChange:e=>{s(e.currentTarget.checked)},type:`checkbox`}),(0,_.jsx)(`span`,{children:`Password protect link`})]}),o?(0,_.jsxs)(`div`,{className:`d-flex flex-column gap-2`,children:[(0,_.jsxs)(`label`,{className:`d-flex flex-column gap-1 m-0`,children:[(0,_.jsx)(`span`,{children:`Password`}),(0,_.jsx)(`input`,{autoComplete:`new-password`,className:`form-control`,disabled:!w,onChange:e=>{l(e.currentTarget.value)},type:`password`,value:c})]}),(0,_.jsxs)(`label`,{className:`d-flex flex-column gap-1 m-0`,children:[(0,_.jsx)(`span`,{children:`Confirm password`}),(0,_.jsx)(`input`,{autoComplete:`new-password`,className:`form-control`,disabled:!w,onChange:e=>{f(e.currentTarget.value)},type:`password`,value:d})]})]}):null,(0,_.jsx)(`p`,{className:`m-0 ${b===`warning`?`text-warning`:`text-body-secondary`}`,role:`status`,children:v}),(0,_.jsx)(`label`,{className:`visually-hidden`,htmlFor:`share-editor-state-link`,children:`Shared editor link`}),(0,_.jsx)(`textarea`,{ref:r,id:`share-editor-state-link`,className:`form-control`,readOnly:!0,rows:5,value:p,onFocus:e=>e.currentTarget.select()}),(0,_.jsxs)(`div`,{className:`d-flex justify-content-end gap-2`,children:[(0,_.jsx)(u.t,{disabled:i===`copying`||S||!p,onClick:()=>{T()},children:i===`copying`?`Copying...`:i===`success`?`Copied`:i===`error`?`Copy failed`:`Copy link`}),(0,_.jsx)(u.t,{onClick:e,children:`Close`})]})]})}function Cb(e,t){return e.length>tb?{message:wb(e),tone:`warning`}:{message:t,tone:`muted`}}function wb(e){return`Share link is ${e.length.toLocaleString(`en-US`)} / ${tb.toLocaleString(`en-US`)} characters. It may be too long for some apps or browsers, but it can still be copied.`}function Tb({onClose:e}){return(0,_.jsxs)(_.Fragment,{children:[`Unable to create a share link for the current editor state.`,(0,_.jsx)(`div`,{className:`Modal__content pt-4`,children:(0,_.jsx)(u.t,{onClick:e,children:`Close`})})]})}async function Eb(e,t){return navigator.clipboard?.writeText?(await navigator.clipboard.writeText(e),!0):t===null||typeof document.execCommand!=`function`?!1:(t.focus(),t.select(),document.execCommand(`copy`))}function Db(){return(0,_.jsxs)(`dl`,{className:`m-0`,children:[(0,_.jsxs)(`div`,{className:`d-flex align-items-center justify-content-between gap-4`,children:[(0,_.jsx)(`dt`,{className:`fw-normal text-body-secondary`,children:`Editor package`}),(0,_.jsx)(`dd`,{className:`m-0 fw-semibold`,children:Zy})]}),(0,_.jsxs)(`div`,{className:`d-flex align-items-center justify-content-between gap-4 mt-2`,children:[(0,_.jsx)(`dt`,{className:`fw-normal text-body-secondary`,children:`Editor version`}),(0,_.jsx)(`dd`,{className:`m-0 fw-semibold`,children:Qy})]})]})}function Ob({editor:e,onClose:n}){return(0,_.jsxs)(_.Fragment,{children:[`Are you sure you want to clear the editor?`,(0,_.jsxs)(`div`,{className:`Modal__content pt-4`,children:[(0,_.jsx)(u.t,{onClick:()=>{nr(),e.dispatchCommand(t.hn,void 0),e.focus(),n()},children:`Clear`}),` `,(0,_.jsx)(u.t,{onClick:()=>{e.focus(),n()},children:`Cancel`})]})]})}var kb=class e extends t.Wt{__uuid;static clone(t){return new e(t.__text,t.__uuid,t.__key)}static getType(){return`autocomplete`}static importDOM(){return null}static importJSON(e){return Ab(e.text,e.uuid).updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),uuid:this.__uuid}}constructor(e,t,n){super(e,n),this.__uuid=t}updateDOM(e,t,n){return!1}exportDOM(e){return{element:null}}excludeFromCopy(){return!0}createDOM(e){let t=super.createDOM(e);return t.classList.add(e.theme.autocomplete),this.__uuid!==Lb&&(t.style.display=`none`),t}};function Ab(e,t){return new kb(e,t).setMode(`token`)}var jb=new WeakMap;function Mb(e){let t=e.changedTouches[0];return t===void 0?null:[t.clientX,t.clientY]}function Nb(e,t){let n=jb.get(e);if(n===void 0){let t=new Set,r=e=>{n!==void 0&&(n.start=Mb(e))},i=e=>{if(n===void 0)return;let r=n.start;if(r===null)return;let i=Mb(e);for(let n of t)i!==null&&n([i[0]-r[0],i[1]-r[1]],e)};e.addEventListener(`touchstart`,r),e.addEventListener(`touchend`,i),n={handleTouchend:i,handleTouchstart:r,listeners:t,start:null},jb.set(e,n)}return n.listeners.add(t),()=>Pb(e,t)}function Pb(e,t){let n=jb.get(e);if(n===void 0)return;let r=n.listeners;r.delete(t),r.size===0&&(jb.delete(e),e.removeEventListener(`touchstart`,n.handleTouchstart),e.removeEventListener(`touchend`,n.handleTouchend))}function Fb(e,t){return Nb(e,(e,n)=>{let[r,i]=e;r>0&&r>Math.abs(i)&&t(r,n)})}var Ib={tag:t.Jr},Lb=Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5);function Rb(e){if(!t.bn(e)||!e.isCollapsed())return[!1,``];let r=e.getNodes()[0],i=e.anchor;if(!t.Jt(r)||!r.isSimpleText()||!n.O(i))return[!1,``];let a=[],o=r.getTextContent(),s=r.getTextContentSize(),c;for(;s--&&s>=0&&(c=o[s])!==` `;)a.push(c);return a.length===0?[!1,``]:[!0,a.reverse().join(``)]}function zb(){return(0,h.useCallback)(e=>new Hb().query(e),[])}function Bb(e){let t=window.navigator.userAgentData;return`${e} ${(t===void 0?window.innerWidth<=800&&window.innerHeight<=600:t.mobile)?`(SWIPE ⮕)`:`(TAB)`}`}function Vb(){let[e]=t.oi(),n=zb(),{toolbarState:r}=j();return(0,h.useEffect)(()=>{let i=null,a=null,o=null,s=null,c=0;function l(){let e=i===null?null:t.Ht(i);e!==null&&e.isAttached()&&(e.remove(),i=null),s!==null&&(s.dismiss(),s=null),a=null,o=null,c=0}function u(n,l){s!==n||l===null||e.update(()=>{let e=t.tt(),[n,s]=Rb(e);if(!n||s!==a||!t.bn(e))return;let u=e.clone();c=e.getNodes()[0].getFormat();let d=Ab(Bb(l),Lb).setFormat(c).setStyle(`font-size: ${r.fontSize}`);i=d.getKey(),e.insertNodes([d]),t.En(u),o=l},Ib)}function d(e){let t=e.getKey();e.__uuid===Lb&&t!==i&&l()}function f(){e.update(()=>{let[e,r]=Rb(t.tt());if(!e){l();return}r!==a&&(l(),s=n(r),s.promise.then(e=>{s!==null&&u(s,e)}).catch(e=>{e!==`Dismissed`&&console.error(e)}),a=r)},Ib)}function p(){if(o===null||i===null)return!1;let e=t.Ht(i);if(e===null)return!1;let n=t.D(o).setFormat(c).setStyle(`font-size: ${r.fontSize}`);return e.replace(n),n.selectNext(),l(),!0}function m(e){return p()?(e.preventDefault(),!0):!1}function h(n,r){e.update(()=>{p()?r.preventDefault():t.pt(Ib.tag)})}function g(){e.update(()=>{l()},Ib)}let _=e.getRootElement();return t.Yn(e.registerNodeTransform(kb,d),e.registerUpdateListener(f),e.registerCommand(t.zn,m,1),e.registerCommand(t.Dn,m,1),..._===null?[]:[Fb(_,h)],g)},[e,n,r.fontSize]),null}var Hb=class{DATABASE=Ub;LATENCY=200;query=e=>{let t=!1;return{dismiss:()=>{t=!0},promise:new Promise((n,r)=>{setTimeout(()=>{if(t)return r(`Dismissed`);let i=e.length;if(e===``||i<4)return n(null);let a=e.charCodeAt(0),o=a>=65&&a<=90,s=o?String.fromCharCode(a+32)+e.substring(1):e,c=this.DATABASE.find(e=>e.startsWith(s)??null);if(c===void 0)return n(null);let l=(o?String.fromCharCode(c.charCodeAt(0)-32)+c.substring(1):c).substring(i);return n(l===``?null:l)},this.LATENCY)})}}},Ub=`information.available.copyright.university.management.international.development.education.community.technology.following.resources.including.directory.government.department.description.insurance.different.categories.conditions.accessories.september.questions.application.financial.equipment.performance.experience.important.activities.additional.something.professional.committee.washington.california.reference.companies.computers.president.australia.discussion.entertainment.agreement.marketing.association.collection.solutions.electronics.technical.microsoft.conference.environment.statement.downloads.applications.requirements.individual.subscribe.everything.production.commercial.advertising.treatment.newsletter.knowledge.currently.construction.registered.protection.engineering.published.corporate.customers.materials.countries.standards.political.advertise.environmental.availability.employment.commission.administration.institute.sponsored.electronic.condition.effective.organization.selection.corporation.executive.necessary.according.particular.facilities.opportunities.appropriate.statistics.investment.christmas.registration.furniture.wednesday.structure.distribution.industrial.potential.responsible.communications.associated.foundation.documents.communication.independent.operating.developed.telephone.population.navigation.operations.therefore.christian.understand.publications.worldwide.connection.publisher.introduction.properties.accommodation.excellent.opportunity.assessment.especially.interface.operation.restaurants.beautiful.locations.significant.technologies.manufacturer.providing.authority.considered.programme.enterprise.educational.employees.alternative.processing.responsibility.resolution.publication.relations.photography.components.assistance.completed.organizations.otherwise.transportation.disclaimer.membership.recommended.background.character.maintenance.functions.trademarks.phentermine.submitted.television.interested.throughout.established.programming.regarding.instructions.increased.understanding.beginning.associates.instruments.businesses.specified.restaurant.procedures.relationship.traditional.sometimes.themselves.transport.interesting.evaluation.implementation.galleries.references.presented.literature.respective.definition.secretary.networking.australian.magazines.francisco.individuals.guidelines.installation.described.attention.difference.regulations.certificate.directions.documentation.automotive.successful.communities.situation.publishing.emergency.developing.determine.temperature.announcements.historical.ringtones.difficult.scientific.satellite.particularly.functional.monitoring.architecture.recommend.dictionary.accounting.manufacturing.professor.generally.continued.techniques.permission.generation.component.guarantee.processes.interests.paperback.classifieds.supported.competition.providers.characters.thousands.apartments.generated.administrative.practices.reporting.essential.affiliate.immediately.designated.integrated.configuration.comprehensive.universal.presentation.languages.compliance.improvement.pennsylvania.challenge.acceptance.strategies.affiliates.multimedia.certified.computing.interactive.procedure.leadership.religious.breakfast.developer.approximately.recommendations.comparison.automatically.minnesota.adventure.institutions.assistant.advertisement.headlines.yesterday.determined.wholesale.extension.statements.completely.electrical.applicable.manufacturers.classical.dedicated.direction.basketball.wisconsin.personnel.identified.professionals.advantage.newsletters.estimated.anonymous.miscellaneous.integration.interview.framework.installed.massachusetts.associate.frequently.discussions.laboratory.destination.intelligence.specifications.tripadvisor.residential.decisions.industries.partnership.editorial.expression.provisions.principles.suggestions.replacement.strategic.economics.compatible.apartment.netherlands.consulting.recreation.participants.favorites.translation.estimates.protected.philadelphia.officials.contained.legislation.parameters.relationships.tennessee.representative.frequency.introduced.departments.residents.displayed.performed.administrator.addresses.permanent.agriculture.constitutes.portfolio.practical.delivered.collectibles.infrastructure.exclusive.originally.utilities.philosophy.regulation.reduction.nutrition.recording.secondary.wonderful.announced.prevention.mentioned.automatic.healthcare.maintained.increasing.connected.directors.participation.containing.combination.amendment.guaranteed.libraries.distributed.singapore.enterprises.convention.principal.certification.previously.buildings.household.batteries.positions.subscription.contemporary.panasonic.permalink.signature.provision.certainly.newspaper.liability.trademark.trackback.americans.promotion.conversion.reasonable.broadband.influence.importance.webmaster.prescription.specifically.represent.conservation.louisiana.javascript.marketplace.evolution.certificates.objectives.suggested.concerned.structures.encyclopedia.continuing.interracial.competitive.suppliers.preparation.receiving.accordance.discussed.elizabeth.reservations.playstation.instruction.annotation.differences.establish.expressed.paragraph.mathematics.compensation.conducted.percentage.mississippi.requested.connecticut.personals.immediate.agricultural.supporting.collections.participate.specialist.experienced.investigation.institution.searching.proceedings.transmission.characteristics.experiences.extremely.verzeichnis.contracts.concerning.developers.equivalent.chemistry.neighborhood.variables.continues.curriculum.psychology.responses.circumstances.identification.appliances.elementary.unlimited.printable.enforcement.hardcover.celebrity.chocolate.hampshire.bluetooth.controlled.requirement.authorities.representatives.pregnancy.biography.attractions.transactions.authorized.retirement.financing.efficiency.efficient.commitment.specialty.interviews.qualified.discovery.classified.confidence.lifestyle.consistent.clearance.connections.inventory.converter.organisation.objective.indicated.securities.volunteer.democratic.switzerland.parameter.processor.dimensions.contribute.challenges.recognition.submission.encourage.regulatory.inspection.consumers.territory.transaction.manchester.contributions.continuous.resulting.cambridge.initiative.execution.disability.increases.contractor.examination.indicates.committed.extensive.affordable.candidate.databases.outstanding.perspective.messenger.tournament.consideration.discounts.catalogue.publishers.caribbean.reservation.remaining.depending.expansion.purchased.performing.collected.absolutely.featuring.implement.scheduled.calculator.significantly.temporary.sufficient.awareness.vancouver.contribution.measurement.constitution.packaging.consultation.northwest.classroom.democracy.wallpaper.merchandise.resistance.baltimore.candidates.charlotte.biological.transition.preferences.instrument.classification.physician.hollywood.wikipedia.spiritual.photographs.relatively.satisfaction.represents.pittsburgh.preferred.intellectual.comfortable.interaction.listening.effectively.experimental.revolution.consolidation.landscape.dependent.mechanical.consultants.applicant.cooperation.acquisition.implemented.directories.recognized.notification.licensing.textbooks.diversity.cleveland.investments.accessibility.sensitive.templates.completion.universities.technique.contractors.subscriptions.calculate.alexander.broadcast.converted.anniversary.improvements.specification.accessible.accessory.typically.representation.arrangements.conferences.uniprotkb.consumption.birmingham.afternoon.consultant.controller.ownership.committees.legislative.researchers.unsubscribe.molecular.residence.attorneys.operators.sustainable.philippines.statistical.innovation.employers.definitions.elections.stainless.newspapers.hospitals.exception.successfully.indonesia.primarily.capabilities.recommendation.recruitment.organized.improving.expensive.organisations.explained.programmes.expertise.mechanism.jewellery.eventually.agreements.considering.innovative.conclusion.disorders.collaboration.detection.formation.engineers.proposals.moderator.tutorials.settlement.collectables.fantastic.governments.purchasing.appointed.operational.corresponding.descriptions.determination.animation.productions.telecommunications.instructor.approaches.highlights.designers.melbourne.scientists.blackjack.argentina.possibility.commissioner.dangerous.reliability.unfortunately.respectively.volunteers.attachment.appointment.workshops.hurricane.represented.mortgages.responsibilities.carefully.productivity.investors.underground.diagnosis.principle.vacations.calculated.appearance.incorporated.notebooks.algorithm.valentine.involving.investing.christopher.admission.terrorism.parliament.situations.allocated.corrections.structural.municipal.describes.disabilities.substance.prohibited.addressed.simulation.initiatives.concentration.interpretation.bankruptcy.optimization.substances.discovered.restrictions.participating.exhibition.composition.nationwide.definitely.existence.commentary.limousines.developments.immigration.destinations.necessarily.attribute.apparently.surrounding.mountains.popularity.postposted.coordinator.obviously.fundamental.substantial.progressive.championship.sacramento.impossible.depression.testimonials.memorabilia.cartridge.explanation.cincinnati.subsection.electricity.permitted.workplace.confirmed.wallpapers.infection.eligibility.involvement.placement.observations.vbulletin.subsequent.motorcycle.disclosure.establishment.presentations.undergraduate.occupation.donations.associations.citysearch.radiation.seriously.elsewhere.pollution.conservative.guestbook.effectiveness.demonstrate.atmosphere.experiment.purchases.federation.assignment.chemicals.everybody.nashville.counseling.acceptable.satisfied.measurements.milwaukee.medication.warehouse.shareware.violation.configure.stability.southwest.institutional.expectations.independence.metabolism.personally.excellence.somewhere.attributes.recognize.screening.thumbnail.forgotten.intelligent.edinburgh.obligation.regardless.restricted.republican.merchants.attendance.arguments.amsterdam.adventures.announcement.appreciate.regularly.mechanisms.customize.tradition.indicators.emissions.physicians.complaint.experiments.afghanistan.scholarship.governance.supplements.camcorder.implementing.ourselves.conversation.capability.producing.precision.contributed.reproduction.ingredients.franchise.complaints.promotions.rehabilitation.maintaining.environments.reception.correctly.consequences.geography.appearing.integrity.discrimination.processed.implications.functionality.intermediate.emotional.platforms.overnight.geographic.preliminary.districts.introduce.promotional.chevrolet.specialists.generator.suspension.correction.authentication.communicate.supplement.showtimes.promoting.machinery.bandwidth.probability.dimension.schedules.admissions.quarterly.illustrated.continental.alternate.achievement.limitations.automated.passenger.convenient.orientation.childhood.flexibility.jurisdiction.displaying.encouraged.cartridges.declaration.automation.advantages.preparing.recipient.extensions.athletics.southeast.alternatives.determining.personalized.conditioning.partnerships.destruction.increasingly.migration.basically.conventional.applicants.occupational.adjustment.treatments.camcorders.difficulty.collective.coalition.enrollment.producers.collector.interfaces.advertisers.representing.observation.restoration.convenience.returning.opposition.container.defendant.confirmation.supervisor.peripherals.bestsellers.departure.minneapolis.interactions.intervention.attraction.modification.customized.understood.assurance.happening.amendments.metropolitan.compilation.verification.attractive.recordings.jefferson.gardening.obligations.orchestra.polyphonic.outsourcing.adjustable.allocation.discipline.demonstrated.identifying.alphabetical.dispatched.installing.voluntary.photographer.messaging.constructed.additions.requiring.engagement.refinance.calendars.arrangement.conclusions.bibliography.compatibility.furthermore.cooperative.measuring.jacksonville.headquarters.transfers.transformation.attachments.administrators.personality.facilitate.subscriber.priorities.bookstore.parenting.incredible.commonwealth.pharmaceutical.manhattan.workforce.organizational.portuguese.everywhere.discharge.halloween.hazardous.methodology.housewares.reputation.resistant.democrats.recycling.qualifications.slideshow.variation.transferred.photograph.distributor.underlying.wrestling.photoshop.gathering.projection.mathematical.specialized.diagnostic.indianapolis.corporations.criticism.automobile.confidential.statutory.accommodations.northeast.downloaded.paintings.injection.yorkshire.populations.protective.initially.indicator.eliminate.sunglasses.preference.threshold.venezuela.exploration.sequences.astronomy.translate.announces.compression.establishing.constitutional.perfectly.instantly.litigation.submissions.broadcasting.horizontal.terrorist.informational.ecommerce.suffering.prospective.ultimately.artificial.spectacular.coordination.connector.affiliated.activation.naturally.subscribers.mitsubishi.underwear.potentially.constraints.inclusive.dimensional.considerable.selecting.processors.pantyhose.difficulties.complexity.constantly.barcelona.presidential.documentary.territories.palestinian.legislature.hospitality.procurement.theoretical.exercises.surveillance.protocols.highlight.substitute.inclusion.hopefully.brilliant.evaluated.assignments.termination.households.authentic.montgomery.architectural.louisville.macintosh.movements.amenities.virtually.authorization.projector.comparative.psychological.surprised.genealogy.expenditure.liverpool.connectivity.algorithms.similarly.collaborative.excluding.commander.suggestion.spotlight.investigate.connecting.logistics.proportion.significance.symposium.essentials.protecting.transmitted.screenshots.intensive.switching.correspondence.supervision.expenditures.separation.testimony.celebrities.mandatory.boundaries.syndication.celebration.filtering.luxembourg.offensive.deployment.colleagues.separated.directive.governing.retailers.occasionally.attending.recruiting.instructional.traveling.permissions.biotechnology.prescribed.catherine.reproduced.calculation.consolidated.occasions.equations.exceptional.respondents.considerations.queensland.musicians.composite.unavailable.essentially.designing.assessments.brunswick.sensitivity.preservation.streaming.intensity.technological.syndicate.antivirus.addressing.discounted.bangladesh.constitute.concluded.desperate.demonstration.governmental.manufactured.graduation.variations.addiction.springfield.synthesis.undefined.unemployment.enhancement.newcastle.performances.societies.brazilian.identical.petroleum.norwegian.retention.exchanges.soundtrack.wondering.profession.separately.physiology.collecting.participant.scholarships.recreational.dominican.friendship.expanding.provincial.investigations.medications.rochester.advertiser.encryption.downloadable.sophisticated.possession.laboratories.vegetables.thumbnails.stockings.respondent.destroyed.manufacture.wordpress.vulnerability.accountability.celebrate.accredited.appliance.compressed.scheduling.perspectives.mortality.christians.therapeutic.impressive.accordingly.architect.challenging.microwave.accidents.relocation.contributors.violations.temperatures.competitions.discretion.cosmetics.repository.concentrations.christianity.negotiations.realistic.generating.christina.congressional.photographic.modifications.millennium.achieving.fisheries.exceptions.reactions.macromedia.companion.divisions.additionally.fellowship.victorian.copyrights.lithuania.mastercard.chronicles.obtaining.distribute.decorative.enlargement.campaigns.conjunction.instances.indigenous.validation.corruption.incentives.cholesterol.differential.scientist.starsmerchant.arthritis.nevertheless.practitioners.transcript.inflation.compounds.contracting.structured.reasonably.graduates.recommends.controlling.distributors.arlington.particles.extraordinary.indicating.coordinate.exclusively.limitation.widescreen.illustration.construct.inquiries.inspiration.affecting.downloading.aggregate.forecasts.complicated.shopzilla.decorating.expressions.shakespeare.connectors.conflicts.travelers.offerings.incorrect.furnishings.guatemala.perception.renaissance.pathology.ordinance.photographers.infections.configured.festivals.possibilities.contributing.analytical.circulation.assumption.jerusalem.transexuales.invention.technician.executives.enquiries.cognitive.exploring.registrar.supporters.withdrawal.predicted.saskatchewan.cancellation.ministers.veterinary.prostores.relevance.incentive.butterfly.mechanics.numerical.reflection.accompanied.invitation.princeton.spirituality.meanwhile.proprietary.childrens.thumbzilla.porcelain.pichunter.translated.columnists.consensus.delivering.journalism.intention.undertaken.statewide.semiconductor.illustrations.happiness.substantially.identifier.calculations.conducting.accomplished.calculators.impression.correlation.fragrance.neighbors.transparent.charleston.champions.selections.projectors.inappropriate.comparing.vocational.pharmacies.introducing.appreciated.albuquerque.distinguished.projected.assumptions.shareholders.developmental.regulated.anticipated.completing.comparable.confusion.copyrighted.warranties.documented.paperbacks.keyboards.vulnerable.reflected.respiratory.notifications.transexual.mainstream.evaluating.subcommittee.maternity.journalists.foundations.volleyball.liabilities.decreased.tolerance.creativity.describing.lightning.quotations.inspector.bookmarks.behavioral.riverside.bathrooms.abilities.initiated.nonprofit.lancaster.suspended.containers.attitudes.simultaneously.integrate.sociology.screenshot.exhibitions.confident.retrieved.officially.consortium.recipients.delicious.traditions.periodically.hungarian.referring.transform.educators.vegetable.humanities.independently.alignment.henderson.britannica.competitors.visibility.consciousness.encounter.resolutions.accessing.attempted.witnesses.administered.strengthen.frederick.aggressive.advertisements.sublimedirectory.disturbed.determines.sculpture.motivation.pharmacology.passengers.quantities.petersburg.consistently.powerpoint.obituaries.punishment.appreciation.subsequently.providence.restriction.incorporate.backgrounds.treasurer.lightweight.transcription.complications.scripting.remembered.synthetic.testament.specifics.partially.wilderness.generations.tournaments.sponsorship.headphones.proceeding.volkswagen.uncertainty.breakdown.reconstruction.subsidiary.strengths.encouraging.furnished.terrorists.comparisons.beneficial.distributions.viewpicture.threatened.republicans.discusses.responded.abstracts.prediction.pharmaceuticals.thesaurus.individually.battlefield.literally.ecological.appraisal.consisting.submitting.citations.geographical.mozambique.disclaimers.championships.sheffield.finishing.wellington.prospects.bulgarian.aboriginal.remarkable.preventing.productive.boulevard.compliant.penalties.imagination.refurbished.activated.conferencing.armstrong.politicians.trackbacks.accommodate.christine.accepting.precipitation.isolation.sustained.approximate.programmer.greetings.inherited.incomplete.chronicle.legitimate.biographies.investigator.plaintiff.prisoners.mediterranean.nightlife.architects.entrepreneur.freelance.excessive.screensaver.valuation.unexpected.cigarette.characteristic.metallica.consequently.appointments.narrative.academics.quantitative.screensavers.subdivision.distinction.livestock.exemption.sustainability.formatting.nutritional.nicaragua.affiliation.relatives.satisfactory.revolutionary.bracelets.telephony.breathing.thickness.adjustments.graphical.discussing.aerospace.meaningful.maintains.shortcuts.voyeurweb.extending.specifies.accreditation.blackberry.meditation.microphone.macedonia.combining.instrumental.organizing.moderators.kazakhstan.standings.partition.invisible.translations.commodity.kilometers.thanksgiving.guarantees.indication.congratulations.cigarettes.controllers.consultancy.conventions.coordinates.responding.physically.stakeholders.hydrocodone.consecutive.attempting.representations.competing.peninsula.accurately.considers.ministries.vacancies.parliamentary.acknowledge.thoroughly.nottingham.identifies.questionnaire.qualification.modelling.miniature.interstate.consequence.systematic.perceived.madagascar.presenting.troubleshooting.uzbekistan.centuries.magnitude.richardson.fragrances.vocabulary.earthquake.fundraising.geological.assessing.introduces.webmasters.computational.acdbentity.participated.handhelds.answering.impressed.conspiracy.organizer.combinations.preceding.cumulative.amplifier.arbitrary.prominent.lexington.contacted.recorders.occasional.innovations.postcards.reviewing.explicitly.transsexual.citizenship.informative.girlfriend.bloomberg.hierarchy.influenced.abandoned.complement.mauritius.checklist.requesting.lauderdale.scenarios.extraction.elevation.utilization.beverages.calibration.efficiently.entertaining.prerequisite.hypothesis.medicines.regression.enhancements.renewable.intersection.passwords.consistency.collectors.azerbaijan.astrology.occurring.supplemental.travelling.induction.precisely.spreading.provinces.widespread.incidence.incidents.enhancing.interference.palestine.listprice.atmospheric.knowledgestorm.referenced.publicity.proposition.allowance.designation.duplicate.criterion.civilization.vietnamese.tremendous.corrected.encountered.internationally.surrounded.creatures.commented.accomplish.vegetarian.newfoundland.investigated.ambassador.stephanie.contacting.vegetation.findarticles.specially.infectious.continuity.phenomenon.conscious.referrals.differently.integrating.revisions.reasoning.charitable.annotated.convinced.burlington.replacing.researcher.watershed.occupations.acknowledged.equilibrium.characterized.privilege.qualifying.estimation.pediatric.techrepublic.institutes.brochures.traveller.appropriations.suspected.benchmark.beginners.instructors.highlighted.stationery.unauthorized.competent.contributor.demonstrates.gradually.desirable.journalist.afterwards.religions.explosion.signatures.disciplines.daughters.conversations.simplified.motherboard.bibliographic.champagne.deviation.superintendent.housewives.influences.inspections.irrigation.hydraulic.robertson.penetration.conviction.omissions.retrieval.qualities.prototype.importantly.apparatus.explaining.nomination.empirical.dependence.sexuality.polyester.commitments.suggesting.remainder.privileges.televisions.specializing.commodities.motorcycles.concentrate.reproductive.molecules.refrigerator.intervals.sentences.exclusion.workstation.holocaust.receivers.disposition.navigator.investigators.marijuana.cathedral.fairfield.fascinating.landscapes.lafayette.computation.cardiovascular.salvation.predictions.accompanying.selective.arbitration.configuring.editorials.sacrifice.removable.convergence.gibraltar.anthropology.malpractice.reporters.necessity.rendering.hepatitis.nationally.waterproof.specialties.humanitarian.invitations.functioning.economies.alexandria.bacterial.undertake.continuously.achievements.convertible.secretariat.paragraphs.adolescent.nominations.cancelled.introductory.reservoir.occurrence.worcester.demographic.disciplinary.respected.portraits.interpreted.evaluations.elimination.hypothetical.immigrants.complimentary.helicopter.performer.commissions.powerseller.graduated.surprising.unnecessary.dramatically.yugoslavia.characterization.likelihood.fundamentals.contamination.endangered.compromise.expiration.namespace.peripheral.negotiation.opponents.nominated.confidentiality.electoral.changelog.alternatively.greensboro.controversial.recovered.upgrading.frontpage.demanding.defensive.forbidden.programmers.monitored.installations.deutschland.practitioner.motivated.smithsonian.examining.revelation.delegation.dictionaries.greenhouse.transparency.currencies.survivors.positioning.descending.temporarily.frequencies.reflections.municipality.detective.experiencing.fireplace.endorsement.psychiatry.persistent.summaries.looksmart.magnificent.colleague.adaptation.paintball.enclosure.supervisors.westminster.distances.absorption.treasures.transcripts.disappointed.continually.communist.collectible.entrepreneurs.creations.acquisitions.biodiversity.excitement.presently.mysterious.librarian.subsidiaries.stockholm.indonesian.therapist.promising.relaxation.thereafter.commissioners.forwarding.nightmare.reductions.southampton.organisms.telescope.portsmouth.advancement.harassment.generators.generates.replication.inexpensive.receptors.interventions.huntington.internship.aluminium.snowboard.beastality.evanescence.coordinated.shipments.antarctica.chancellor.controversy.legendary.beautifully.antibodies.examinations.immunology.departmental.terminology.gentleman.reproduce.convicted.roommates.threatening.spokesman.activists.frankfurt.encourages.assembled.restructuring.terminals.simulations.sufficiently.conditional.crossword.conceptual.liechtenstein.translator.automobiles.continent.longitude.challenged.telecharger.insertion.instrumentation.constraint.groundwater.strengthening.insulation.infringement.subjective.swaziland.varieties.mediawiki.configurations`.split(`.`),Wb=t.ar?h.useLayoutEffect:h.useEffect,Gb=class{key;ref;icon;title;constructor(e){this.key=e,this.ref={current:null},this.setRefElement=this.setRefElement.bind(this)}setRefElement(e){this.ref={current:e}}},Kb=e=>{let t=e.closest(`#typeahead-menu`);if(!t)return;let n=t.getBoundingClientRect();n.top+n.height>window.innerHeight&&t.scrollIntoView({block:`center`}),n.top<0&&t.scrollIntoView({block:`center`}),e.scrollIntoView({block:`nearest`})};function qb(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top-6&&n.top<=r.bottom+6}var Jb=t.x(`SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND`);function Yb({index:e,isSelected:t,onClick:n,onMouseEnter:r,option:i}){let a=`item`;return t&&(a+=` selected`),(0,_.jsxs)(`li`,{tabIndex:-1,className:a,ref:i.setRefElement,role:`option`,"aria-selected":t,id:`typeahead-item-`+e,onMouseEnter:r,onClick:n,children:[i.icon,(0,_.jsx)(`span`,{className:`text`,children:i.title})]},i.key)}function Xb({close:e,editor:n,anchorElementRef:r,resolution:i,options:a,menuRenderFn:o,onSelectOption:s,shouldSplitNodeWithQuery:c=!1,commandPriority:l=1,preselectFirstItem:u=!0}){let[d,f]=(0,h.useState)(null),p=d===null?null:Math.min(a.length-1,d);(0,h.useEffect)(()=>{u&&f(0)},[i.match&&i.match.matchingString,u]);let m=(0,h.useCallback)(r=>{n.update(()=>{s(r,i.match!=null&&c?function(e){let n=t.tt();if(!t.bn(n)||!n.isCollapsed())return null;let r=n.anchor;if(r.type!==`text`)return null;let i=r.getNode();if(!i.isSimpleText())return null;let a=r.offset,o=i.getTextContent().slice(0,a),s=e.replaceableString.length,c=a-function(e,t,n){let r=n;for(let n=r;n<=t.length;n++)e.slice(-n)===t.substring(0,n)&&(r=n);return r}(o,e.matchingString,s);if(c<0)return null;let l;return c===0?[l]=i.splitText(a):[,l]=i.splitText(c,a),l}(i.match):null,e,i.match?i.match.matchingString:``)})},[n,c,i.match,s,e]),g=(0,h.useCallback)(e=>{let t=n.getRootElement();t!==null&&(t.setAttribute(`aria-activedescendant`,`typeahead-item-`+e),f(e))},[n]),y=(0,h.useCallback)(()=>r.current&&a.length?v.default.createPortal((0,_.jsx)(`div`,{className:`typeahead-popover mentions-menu`,children:(0,_.jsx)(`ul`,{children:a.map((e,t)=>(0,_.jsx)(Yb,{index:t,isSelected:p===t,onClick:()=>{f(t),m(e)},onMouseEnter:()=>{f(t)},option:e},e.key))})}),r.current):null,[r,a,p,m,f]);(0,h.useEffect)(()=>()=>{let e=n.getRootElement();e!==null&&e.removeAttribute(`aria-activedescendant`)},[n]),Wb(()=>{a===null?f(null):p===null&&u&&g(0)},[a,p,g,u]),(0,h.useEffect)(()=>t.Yn(n.registerCommand(Jb,({option:e})=>!(!e.ref||e.ref.current==null)&&(Kb(e.ref.current),!0),l)),[n,g,l]),(0,h.useEffect)(()=>t.Yn(n.registerCommand(t.Qn,e=>{let t=e;if(a!==null&&a.length){let e=p===null||p===a.length-1?0:p+1;g(e);let r=a[e];if(!r)return g(-1),t.preventDefault(),t.stopImmediatePropagation(),!0;r.ref&&r.ref.current&&n.dispatchCommand(Jb,{index:e,option:r}),t.preventDefault(),t.stopImmediatePropagation()}return!0},l),n.registerCommand(t.Cr,e=>{let t=e;if(a!==null&&a.length){let e=p===null||p===0?a.length-1:p-1;g(e);let n=a[e];if(!n)return g(-1),t.preventDefault(),t.stopImmediatePropagation(),!0;n.ref&&n.ref.current&&Kb(n.ref.current),t.preventDefault(),t.stopImmediatePropagation()}return!0},l),n.registerCommand(t.jn,t=>{let n=t;return n.preventDefault(),n.stopImmediatePropagation(),e(),!0},l),n.registerCommand(t.zn,e=>{let t=e;return a!==null&&p!==null&&a[p]!=null&&(t.preventDefault(),t.stopImmediatePropagation(),m(a[p]),!0)},l),n.registerCommand(t.yn,e=>!(a===null||p===null||a[p]==null||e&&e.shiftKey)&&(e!==null&&(e.preventDefault(),e.stopImmediatePropagation()),m(a[p]),!0),l)),[m,e,n,a,p,g,l]);let b=(0,h.useMemo)(()=>({options:a,selectOptionAndCleanUp:m,selectedIndex:p,setHighlightedIndex:f}),[m,p,a]);return o==null?y():o(r,b,i.match?i.match.matchingString:``)}function Zb(e,t){t!=null&&(e.className=t),e.setAttribute(`aria-label`,`Typeahead menu`),e.setAttribute(`role`,`listbox`),e.style.display=`block`,e.style.position=`absolute`}function Qb(e,r,i,a,o=!0){let[s]=t.oi(),c=a??function(e){if(!t.ar)return;let n=e.getRootElement();if(n!==null){let e=n.getRootNode();return t.Gn(e)?e:n.ownerDocument.body}return document.body}(s),l=t.ar?t.E(s.getRootElement()).createElement(`div`):null,u=(0,h.useRef)(l),d=(0,h.useCallback)(()=>{if(u.current===null||c===void 0)return;u.current.style.top=u.current.style.bottom;let t=s.getRootElement(),n=u.current,r=n.firstChild;if(t!==null&&e!==null){let{left:a,top:s,width:l,height:d}=e.getRect(),f=u.current.offsetHeight;if(n.style.top=`${s+f+3+(o?window.pageYOffset:0)}px`,n.style.left=`${a+window.pageXOffset}px`,n.style.height=`${d}px`,n.style.width=`${l}px`,r!==null){r.style.top=`${s}`;let e=r.getBoundingClientRect(),i=e.height,c=e.width,l=t.getBoundingClientRect();a+c>l.right&&(n.style.left=`${l.right-c+window.pageXOffset}px`),(s+i>window.innerHeight||s+i>l.bottom)&&s-l.top>i+d&&(n.style.top=`${s-i-d+(o?window.pageYOffset:0)}px`)}n.isConnected||(Zb(n,i),c.append(n)),n.setAttribute(`id`,`typeahead-menu`),t.setAttribute(`aria-controls`,`typeahead-menu`)}},[s,e,o,i,c]);(0,h.useEffect)(()=>{let t=s.getRootElement();return e!==null&&d(),()=>{t!==null&&t.removeAttribute(`aria-controls`);let e=u.current;e!==null&&e.isConnected&&(e.remove(),e.removeAttribute(`id`))}},[s,d,e]);let f=(0,h.useCallback)(t=>{e!==null&&(t||r(null))},[e,r]);return function(e,r,i,a){let[o]=t.oi();(0,h.useEffect)(()=>{if(r!=null&&e!=null){let e=o.getRootElement(),s=e==null?document.body:n.C(e,!1),c=!1,l=qb(r,s),u=function(){c||=(window.requestAnimationFrame(function(){i(),c=!1}),!0);let e=qb(r,s);e!==l&&(l=e,a?.(e))},d=new ResizeObserver(i),f=t.vr(e??r);return d.observe(r),t.Yn(t.yt(window,`resize`,i),t.yt(document,`scroll`,u,{capture:!0,passive:!0}),...f.map(e=>t.yt(e,`scroll`,u,{capture:!0,passive:!0})),()=>d.unobserve(r))}},[r,o,a,i,e])}(e,u.current,d,f),l!=null&&l===u.current&&(Zb(l,i),c?.append(l)),u}function $b({options:e,nodeKey:n,onClose:r,onOpen:i,onSelectOption:a,menuRenderFn:o,anchorClassName:s,commandPriority:c=1,parent:l}){let[u]=t.oi(),[d,f]=(0,h.useState)(null),p=Qb(d,f,s,l),m=(0,h.useCallback)(()=>{f(null),r!=null&&d!==null&&r()},[r,d]),g=(0,h.useCallback)(e=>{f(e),i!=null&&d===null&&i(e)},[i,d]),v=(0,h.useCallback)(()=>{n?u.update(()=>{let e=t.Ht(n),r=u.getElementByKey(n);e!=null&&r!=null&&d==null&&(0,h.startTransition)(()=>g({getRect:()=>r.getBoundingClientRect()}))}):n==null&&d!=null&&m()},[m,u,n,g,d]);return(0,h.useEffect)(()=>{v()},[v,n]),(0,h.useEffect)(()=>{if(n!=null)return u.registerUpdateListener(({dirtyElements:e})=>{e.get(n)&&v()})},[u,v,n]),p.current===null||d===null||u===null?null:(0,_.jsx)(Xb,{close:m,resolution:d,editor:u,anchorElementRef:p,options:e,menuRenderFn:o,onSelectOption:a,commandPriority:c})}var ex=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,tx=t.x(`INSERT_EMBED_COMMAND`),nx=class extends Gb{title;onSelect;constructor(e,t){super(e),this.title=e,this.onSelect=t.onSelect.bind(this)}};function rx({embedConfigs:e,onOpenEmbedModalForConfig:n,getMenuOptions:r,menuRenderFn:i,menuCommandPriority:o=1}){let[s]=t.oi(),[c,l]=(0,h.useState)(null),[u,d]=(0,h.useState)(null),f=(0,h.useCallback)(()=>{l(null),d(null)},[]),p=(0,h.useCallback)(async n=>{let r=s.read(`latest`,function(){let e=t.Ht(n);if(a.X(e))return e.getURL()});if(r!==void 0)for(let t of e)await Promise.resolve(t.parseUrl(r))!=null&&(d(t),l(n))},[s,e]);(0,h.useEffect)(()=>t.Yn(...[a.Q,a.Z].map(e=>s.registerMutationListener(e,(...e)=>((e,{updateTags:t,dirtyLeaves:n})=>{for(let[r,i]of e)i===`created`&&t.has(`paste`)&&n.size<=3?p(r):r===c&&f()})(...e),{skipInitialization:!0}))),[p,s,c,f]),(0,h.useEffect)(()=>{if(n)return s.registerCommand(tx,t=>{let r=e.find(({type:e})=>e===t);return!!r&&(n(r),!0)},0)},[s,e,n]);let m=(0,h.useCallback)(async function(){if(u!=null&&c!=null){let e=s.read(`latest`,()=>{let e=t.Ht(c);return a.X(e)?e:null});if(a.X(e)){let n=await Promise.resolve(u.parseUrl(e.__url));n!=null&&s.update(()=>{t.tt()||e.selectEnd(),u.insertNode(s,n),e.isAttached()&&e.remove()})}}},[u,s,c]),g=(0,h.useMemo)(()=>u!=null&&c!=null?r(u,m,f):[],[u,m,r,c,f]),v=(0,h.useCallback)((e,t,n)=>{s.update(()=>{e.onSelect(t),n()})},[s]);return c==null?null:(0,_.jsx)($b,{nodeKey:c,onClose:f,onSelectOption:v,options:g,menuRenderFn:i,commandPriority:o})}function ix(){let[e,t]=(0,h.useState)(null),n=(0,h.useCallback)(()=>{t(null)},[]);return[(0,h.useMemo)(()=>{if(e===null)return null;let{title:t,content:r,closeOnClickOutside:i}=e;return(0,_.jsx)(o.f,{onClose:n,title:t,closeOnClickOutside:i,children:r})},[e,n]),(0,h.useCallback)((e,r,i=!1)=>{t({closeOnClickOutside:i,content:r(n),title:e})},[n])]}function ax({children:e}){return(0,_.jsx)(`div`,{className:`DialogButtonsList d-flex flex-column gap-3 mt-3`,children:e})}function ox({"data-test-id":e,children:t}){return(0,_.jsx)(`div`,{className:`DialogActions d-flex justify-content-end mt-3`,"data-test-id":e,children:t})}function sx({children:e,format:r,nodeKey:i,className:a}){let[o]=t.oi(),[s,l,u]=c.t(i),d=(0,h.useRef)(null);return(0,h.useEffect)(()=>t.Yn(o.registerCommand(t.tr,e=>{if(s){let r=t.tt();if(t.Fr(r)){let n=t.Ht(i);cn(n)&&n.setFormat(e)}else if(t.bn(r)){let t=r.getNodes();for(let r of t)cn(r)?r.setFormat(e):n.o(r).setFormat(e)}return!0}return!1},1),o.registerCommand(t.K,e=>t.Zn(e)===d.current&&(e.preventDefault(),e.shiftKey||u(),l(!s),!0),1)),[u,o,s,i,l]),(0,_.jsx)(`div`,{className:[a.base,s?a.focus:null].filter(Boolean).join(` `),ref:d,style:{textAlign:r||void 0},children:e})}var cx=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,lx=`allow-scripts allow-same-origin allow-popups allow-forms`,ux=560,dx=315;function fx(e){if(e===null)return`inherit`;let t=Number.parseInt(e,10);return Number.isNaN(t)?`inherit`:t}function px({className:e,format:n,height:r,nodeKey:o,url:s,width:u}){let[d]=t.oi(),f=l.t(),[p,m,g]=c.t(o),[v,y]=(0,h.useState)(!1),b=(0,h.useRef)(null),x=(0,h.useRef)(null);(0,h.useEffect)(()=>{if(!f){p&&g();return}return d.registerCommand(t.K,e=>{if(v)return!0;let n=e.target;return b.current!==null&&t.Ln(n)&&b.current.contains(n)?(e.shiftKey||g(),m(!p),!0):!1},1)},[g,d,f,v,p,m]);let S=(0,h.useCallback)(()=>{y(!0)},[]),C=(0,h.useCallback)((e,n)=>{setTimeout(()=>{y(!1)},200),d.update(()=>{let r=t.Ht(o);_x(r)&&r.setWidthAndHeight(e,n)})},[d,o]),w=(p||v)&&f,T=f&&!p;return(0,_.jsx)(sx,{className:e,format:n,nodeKey:o,children:(0,_.jsxs)(`div`,{className:`editor-media website-embed${w?` focused`:``}`,ref:b,style:{height:r===`inherit`?dx:r,width:u===`inherit`?ux:u},children:[(0,_.jsx)(`iframe`,{className:`website-embed__frame`,src:a.C(s),allow:cx,allowFullScreen:!0,loading:`lazy`,referrerPolicy:`no-referrer`,sandbox:lx,style:{pointerEvents:v?`none`:void 0},title:`Website embed`}),T&&(0,_.jsx)(`div`,{className:`website-embed__shield`,"data-testid":`website-shield`}),w&&(0,_.jsx)(i.t,{buttonRef:x,captionsEnabled:!1,editor:d,mediaRef:b,onResizeEnd:C,onResizeStart:S,setShowCaption:()=>void 0,showCaption:!0})]})})}function mx(e){let t=e.getAttribute(`data-lexical-website`);return t?{node:gx(t,fx(e.getAttribute(`width`)),fx(e.getAttribute(`height`)))}:null}var hx=class e extends sn{__url;__width;__height;static getType(){return`website`}static clone(t){return new e(t.__url,t.__width,t.__height,t.__format,t.__key)}static importJSON(e){let{url:t,width:n,height:r}=e;return gx(t,n,r).updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),height:this.__height,url:this.__url,width:this.__width}}constructor(e,t=`inherit`,n=`inherit`,r,i){super(r,i),this.__url=e,this.__width=t,this.__height=n}exportDOM(){let e=document.createElement(`iframe`);return e.setAttribute(`data-lexical-website`,this.__url),e.setAttribute(`width`,String(this.__width===`inherit`?ux:this.__width)),e.setAttribute(`height`,String(this.__height===`inherit`?dx:this.__height)),e.setAttribute(`src`,a.C(this.__url)),e.setAttribute(`frameborder`,`0`),e.setAttribute(`allow`,cx),e.setAttribute(`allowfullscreen`,`true`),e.setAttribute(`loading`,`lazy`),e.setAttribute(`referrerpolicy`,`no-referrer`),e.setAttribute(`sandbox`,lx),e.setAttribute(`title`,`Website embed`),{element:e}}static importDOM(){return{iframe:e=>e.hasAttribute(`data-lexical-website`)?{conversion:mx,priority:1}:null}}updateDOM(){return!1}getUrl(){return this.__url}getWidth(){return this.__width}getHeight(){return this.__height}setWidthAndHeight(e,t){let n=this.getWritable();n.__width=e,n.__height=t}getTextContent(e,t){return this.__url}decorate(e,t){let n=t.theme.embedBlock||{};return(0,_.jsx)(px,{className:{base:n.base||``,focus:n.focus||``},format:this.__format,height:this.__height,nodeKey:this.getKey(),url:this.__url,width:this.__width})}};function gx(e,t=`inherit`,n=`inherit`){return new hx(e,t,n)}function _x(e){return e instanceof hx}var vx=t.x(`INSERT_WEBSITE_COMMAND`);function yx(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([hx]))throw Error(`WebsitePlugin: WebsiteNode not registered on editor`);return e.registerCommand(vx,e=>(n.n(gx(e)),!0),0)},[e]),null}var bx=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,xx=560,Sx=315;function Cx(e){if(e===null)return`inherit`;let t=Number.parseInt(e,10);return Number.isNaN(t)?`inherit`:t}function wx({className:e,format:n,height:r,nodeKey:a,videoID:o,width:s}){let[u]=t.oi(),d=l.t(),[f,p,m]=c.t(a),[g,v]=(0,h.useState)(!1),y=(0,h.useRef)(null),b=(0,h.useRef)(null);(0,h.useEffect)(()=>{if(!d){f&&m();return}return u.registerCommand(t.K,e=>{if(g)return!0;let n=e.target;return y.current!==null&&t.Ln(n)&&y.current.contains(n)?(e.shiftKey||m(),p(!f),!0):!1},1)},[m,u,d,g,f,p]);let x=(0,h.useCallback)(()=>{v(!0)},[]),S=(0,h.useCallback)((e,n)=>{setTimeout(()=>{v(!1)},200),u.update(()=>{let r=t.Ht(a);Ox(r)&&r.setWidthAndHeight(e,n)})},[u,a]),C=(f||g)&&d,w=d&&!f;return(0,_.jsx)(sx,{className:e,format:n,nodeKey:a,children:(0,_.jsxs)(`div`,{className:`editor-media youtube-embed${C?` focused`:``}`,ref:y,style:{height:r===`inherit`?Sx:r,width:s===`inherit`?xx:s},children:[(0,_.jsx)(`iframe`,{className:`youtube-embed__frame`,src:`https://www.youtube-nocookie.com/embed/${o}`,allow:bx,allowFullScreen:!0,style:{pointerEvents:g?`none`:void 0},title:`YouTube video`}),w&&(0,_.jsx)(`div`,{className:`youtube-embed__shield`,"data-testid":`youtube-shield`}),C&&(0,_.jsx)(i.t,{buttonRef:b,captionsEnabled:!1,editor:u,mediaRef:y,onResizeEnd:S,onResizeStart:x,setShowCaption:()=>void 0,showCaption:!0})]})})}function Tx(e){let t=e.getAttribute(`data-lexical-youtube`);return t?{node:Dx(t,Cx(e.getAttribute(`width`)),Cx(e.getAttribute(`height`)))}:null}var Ex=class e extends sn{__id;__width;__height;static getType(){return`youtube`}static clone(t){return new e(t.__id,t.__width,t.__height,t.__format,t.__key)}static importJSON(e){let{videoID:t,width:n,height:r}=e;return Dx(t,n,r).updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),height:this.__height,videoID:this.__id,width:this.__width}}constructor(e,t=`inherit`,n=`inherit`,r,i){super(r,i),this.__id=e,this.__width=t,this.__height=n}exportDOM(){let e=document.createElement(`iframe`);return e.setAttribute(`data-lexical-youtube`,this.__id),e.setAttribute(`width`,String(this.__width===`inherit`?xx:this.__width)),e.setAttribute(`height`,String(this.__height===`inherit`?Sx:this.__height)),e.setAttribute(`src`,`https://www.youtube-nocookie.com/embed/${this.__id}`),e.setAttribute(`frameborder`,`0`),e.setAttribute(`allow`,bx),e.setAttribute(`allowfullscreen`,`true`),e.setAttribute(`title`,`YouTube video`),{element:e}}static importDOM(){return{iframe:e=>e.hasAttribute(`data-lexical-youtube`)?{conversion:Tx,priority:1}:null}}updateDOM(){return!1}getId(){return this.__id}getWidth(){return this.__width}getHeight(){return this.__height}setWidthAndHeight(e,t){let n=this.getWritable();n.__width=e,n.__height=t}getTextContent(e,t){return`https://www.youtube.com/watch?v=${this.__id}`}decorate(e,t){let n=t.theme.embedBlock||{};return(0,_.jsx)(wx,{className:{base:n.base||``,focus:n.focus||``},format:this.__format,height:this.__height,nodeKey:this.getKey(),videoID:this.__id,width:this.__width})}};function Dx(e,t=`inherit`,n=`inherit`){return new Ex(e,t,n)}function Ox(e){return e instanceof Ex}var kx=t.x(`INSERT_YOUTUBE_COMMAND`);function Ax(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([Ex]))throw Error(`YouTubePlugin: YouTubeNode not registered on editor`);return e.registerCommand(kx,e=>(n.n(Dx(e)),!0),0)},[e]),null}var jx=[{contentName:`Youtube Video`,exampleUrl:`https://www.youtube.com/watch?v=jNQXAC9IVRw`,icon:(0,_.jsx)(`i`,{className:`bi bi-youtube icon`,style:{color:`red`}}),insertNode:(e,t)=>{e.dispatchCommand(kx,t.id)},keywords:[`youtube`,`video`],parseUrl:async e=>{let t=/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/.exec(e),n=t&&t?.[2].length===11?t[2]:null;return n==null?null:{id:n,url:e}},type:`youtube-video`},{contentName:`Website`,buttonLabel:`Embed Website`,exampleUrl:`https://en.wikipedia.org`,icon:(0,_.jsx)(`i`,{className:`bi bi-globe2 icon`}),insertNode:(e,t)=>{e.dispatchCommand(vx,t.url)},keywords:[`website`,`embed`,`iframe`,`page`,`url`],parseUrl:async e=>{let t=e.trim(),n;try{n=new URL(t)}catch{return null}return n.protocol!==`http:`&&n.protocol!==`https:`||/(?:^|\.)(?:youtube\.com|youtu\.be)$/i.test(n.hostname)?null:{id:t,url:t}},type:`website`}];function Mx({index:e,isSelected:t,onClick:n,onMouseEnter:r,option:i}){let a=`item mx-2 p-2 d-flex flex-row align-items-center flex-shrink-0`;return t&&(a+=` selected`),(0,_.jsx)(`li`,{tabIndex:-1,className:a,ref:i.setRefElement,role:`option`,"aria-selected":t,id:`typeahead-item-`+e,onMouseEnter:r,onClick:n,children:(0,_.jsx)(`span`,{className:`text`,children:i.title})},i.key)}function Nx({options:e,selectedItemIndex:t,onOptionClick:n,onOptionMouseEnter:r}){return(0,_.jsx)(`div`,{className:`typeahead-popover`,children:(0,_.jsx)(`ul`,{className:`list-unstyled m-0 p-0`,children:e.map((e,i)=>(0,_.jsx)(Mx,{index:i,isSelected:t===i,onClick:()=>n(e,i),onMouseEnter:()=>r(i),option:e},e.key))})})}var Px=(e,t)=>{let n;return r=>{window.clearTimeout(n),n=window.setTimeout(()=>{e(r)},t)}};function Fx({embedConfig:e,onClose:n}){let[r,i]=(0,h.useState)(``),[a]=t.oi(),[o,s]=(0,h.useState)(null),c=(0,h.useMemo)(()=>Px(t=>{let n=ex.exec(t);e!=null&&t!=null&&n!=null?Promise.resolve(e.parseUrl(t)).then(e=>{s(e)}):o!=null&&s(null)},200),[e,o]);return(0,_.jsxs)(`div`,{style:{width:`600px`},children:[(0,_.jsx)(`div`,{className:`Input__wrapper mb-2`,children:(0,_.jsx)(`input`,{type:`text`,className:`Input__input form-control`,placeholder:e.exampleUrl,value:r,"data-test-id":`${e.type}-embed-modal-url`,onChange:e=>{let{value:t}=e.target;i(t),c(t)}})}),(0,_.jsx)(ox,{children:(0,_.jsx)(u.t,{disabled:!o,onClick:()=>{o!=null&&(e.insertNode(a,o),n())},"data-test-id":`${e.type}-embed-modal-submit-btn`,children:`Embed`})})]})}function Ix(){let[e,t]=ix();return(0,_.jsxs)(_.Fragment,{children:[e,(0,_.jsx)(rx,{embedConfigs:jx,onOpenEmbedModalForConfig:e=>{t(`Embed ${e.contentName}`,t=>(0,_.jsx)(Fx,{embedConfig:e,onClose:t}))},getMenuOptions:(e,t,n)=>[new nx(`Dismiss`,{onSelect:n}),new nx(`Embed ${e.contentName}`,{onSelect:t})],menuRenderFn:(e,{selectedIndex:t,options:n,selectOptionAndCleanUp:r,setHighlightedIndex:i})=>e.current?v.createPortal((0,_.jsx)(`div`,{className:`typeahead-popover auto-embed-menu`,style:{marginLeft:`${Math.max(parseFloat(e.current.style.width)-200,0)}px`,width:200},children:(0,_.jsx)(Nx,{options:n,selectedItemIndex:t,onOptionClick:(e,t)=>{i(t),r(e)},onOptionMouseEnter:e=>{i(e)}})}),e.current):null})]})}function Lx(e,t,n,r){(0,h.useEffect)(()=>{e.hasNodes([a.Z])||function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77)}),(0,h.useEffect)(()=>a.J(e,{changeHandlers:n?[n]:[],excludeParents:r??[],matchers:t}),[e,t,n,r])}function Rx({matchers:e,onChange:n,excludeParents:r}){let[i]=t.oi();return Lx(i,e,n,r),null}var zx=[a.$(/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)(?<![-.+():%])/,e=>e.startsWith(`http`)?e:`https://${e}`),a.$(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)];function Bx(){return(0,_.jsx)(Rx,{matchers:zx})}var Vx=t.x(`START_BLOCK_TEXT_LINK_COMMAND`),Hx=[{kind:`no-direction`,label:`No direction`},{kind:`direction-to`,label:`Direction to second`},{kind:`direction-from`,label:`Direction from second`},{kind:`weak-no-direction`,label:`Weak no direction`},{kind:`weak-direction-to`,label:`Weak direction to second`},{kind:`weak-direction-from`,label:`Weak direction from second`}];function Ux(e,t){return e.anchor?.key===t.anchor?.key&&e.anchor?.offset===t.anchor?.offset&&e.focus?.key===t.focus?.key&&e.focus?.offset===t.focus?.offset&&e.blockKeys.length===t.blockKeys.length&&e.blockKeys.every((e,n)=>e===t.blockKeys[n])}function Wx(e,t){return e.length===t.length&&e.every((e,n)=>{let r=t[n];return r!==void 0&&e.id===r.id&&e.kind===r.kind&&Ux(e.from,r.from)&&Ux(e.to,r.to)})}function Gx(){return`block-text-link-${Date.now()}-${Math.random().toString(36).slice(2)}`}function Kx(e){let t=[],n=e,r=n.getParent();for(;r!==null;){let e=r.getChildren().findIndex(e=>e.getKey()===n.getKey());if(e===-1)return null;t.unshift(e),n=r,r=n.getParent()}return t.length===0?null:t}function qx(e){return Kx(e.getNode())}function Jx(e){let n=t.Dr();for(let r of e){if(!t.vt(n))return null;let e=n.getChildAtIndex(r);if(e===null)return null;n=e}return n}function Yx(e,n){return t.Jt(e)?Math.max(0,Math.min(n,e.getTextContentSize())):t.vt(e)?Math.max(0,Math.min(n,e.getChildrenSize())):n}function Xx(e){return e?.path===void 0?null:{offset:e.offset,path:e.path}}function Zx(e){let t=Xx(e.anchor),n=Xx(e.focus);return t===null||n===null||e.blockPaths===void 0||e.blockPaths.length===0?null:{anchor:t,blockPaths:e.blockPaths,focus:n}}function Qx(e){return e.flatMap(e=>{let t=Zx(e.from),n=Zx(e.to);return t===null||n===null?[]:[{from:t,id:e.id,kind:e.kind,to:n}]})}function $x(e){let t=Jx(e.path);return t===null?null:{key:t.getKey(),offset:Yx(t,e.offset),path:e.path}}function eS(e){let t=$x(e.anchor),n=$x(e.focus),r=e.blockPaths.flatMap(e=>{let t=Jx(e);return t===null?[]:[t.getKey()]});return t===null||n===null||r.length===0?null:{anchor:t,blockKeys:r,blockPaths:e.blockPaths,focus:n}}function tS(e){return e.flatMap(e=>{let t=eS(e.from),n=eS(e.to);return t===null||n===null?[]:[{from:t,id:e.id,kind:e.kind,to:n}]})}function nS(){let e=t.tt();if(!t.bn(e)||typeof e.isCollapsed!=`function`||e.isCollapsed()||e.anchor===void 0||e.focus===void 0)return null;let n=[],r=[],i=new Set,a=qx(e.anchor),o=qx(e.focus);if(a===null||o===null)return null;for(let a of e.getNodes()){let e=t.vt(a)?a.getTopLevelElementOrThrow():a.getTopLevelElement();if(e===null)continue;let o=e.getKey();if(!i.has(o)){let t=Kx(e);if(t===null)continue;i.add(o),n.push(o),r.push(t)}}return n.length===0?null:{anchor:{key:e.anchor.key,offset:e.anchor.offset,path:a},blockKeys:n,blockPaths:r,focus:{key:e.focus.key,offset:e.focus.offset,path:o}}}function rS(e){let t=iS(e);if(!(t instanceof HTMLElement))return null;let n=t.getBoundingClientRect();if(!(t.hidden||n.width===0||n.height===0||window.getComputedStyle(t).display===`none`))return null;let r=t.closest(`.Collapsible__container`);if(!(r instanceof HTMLElement))return null;let i=r.querySelector(`.Collapsible__title`);return i instanceof HTMLElement?i:r}function iS(e){if(e.classList.contains(`Collapsible__content`))return e;let t=e.closest(`.Collapsible__content`);if(t instanceof HTMLElement)return t;let n=e.classList.contains(`Collapsible__container`)?e:e.closest(`.Collapsible__container`);if(!(n instanceof HTMLElement))return null;let r=n.querySelector(`.Collapsible__content`);return r instanceof HTMLElement?r:null}function aS(e){if(e.length===0)return null;let t=e[0].top,n=e[0].right,r=e[0].bottom,i=e[0].left;for(let a of e.slice(1))t=Math.min(t,a.top),n=Math.max(n,a.right),r=Math.max(r,a.bottom),i=Math.min(i,a.left);return new DOMRect(i,t,n-i,r-t)}function oS(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[],r=t.nextNode();for(;r!==null;){if(r.textContent?.trim()){let e=document.createRange();e.selectNodeContents(r),n.push(...Array.from(e.getClientRects()).map(e=>new DOMRect(e.left,e.top,e.width,e.height))),e.detach()}r=t.nextNode()}return aS(n.filter(e=>e.width>0&&e.height>0))}function sS(e){let t=rS(e);return t===null?null:oS(t)??t.getBoundingClientRect()}function cS(e){return sS(e)??e.getBoundingClientRect()}function lS(e,t){return t.blockKeys.map(t=>e.getElementByKey(t)).filter(e=>e instanceof HTMLElement).map(sS).filter(e=>e!==null).filter(e=>e.width>0&&e.height>0)}function uS(e,t){return t.blockKeys.map(t=>e.getElementByKey(t)).filter(e=>e instanceof HTMLElement).map(cS).filter(e=>e.width>0&&e.height>0)}function dS(e,r){if(r.anchor===void 0||r.focus===void 0)return uS(e,r);let i=e.getEditorState().read(()=>{let i=t.Ht(r.anchor?.key),a=t.Ht(r.focus?.key);if(i===null||a===null)return[];let o=n.A(e,i,r.anchor?.offset??0,a,r.focus?.offset??0);return o===null?[]:n.L(e,o).map(e=>new DOMRect(e.left,e.top,e.width,e.height))}).filter(e=>e.width>0&&e.height>0);return i.length>0?i:lS(e,r)}function fS(e,t,n=1){return e.map(e=>pS(e,t,n))}function pS(e,t,n=1){return new DOMRect((e.left-t.left)/n,(e.top-t.top)/n,e.width/n,e.height/n)}function mS(e){return{x:e.left+e.width/2,y:e.top+e.height/2}}function hS(e,t){return e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom}function gS(e,t){return e.find(e=>[...e.fromRects,...e.toRects].some(e=>hS(t,e)))?.link.id??null}function _S(e,t){let n=t.x2-t.x1,r=t.y2-t.y1,i=n*n+r*r;if(i===0)return Math.hypot(e.x-t.x1,e.y-t.y1);let a=Math.max(0,Math.min(1,((e.x-t.x1)*n+(e.y-t.y1)*r)/i)),o=t.x1+a*n,s=t.y1+a*r;return Math.hypot(e.x-o,e.y-s)}function vS(e,t){return e.find(e=>![...e.fromRects,...e.toRects].some(e=>hS(t,e))&&_S(t,yS(e.fromRect,e.toRect))<=7)?.link.id??null}function yS(e,t){let n=mS(e),r=mS(t);return{x1:n.x,x2:r.x,y1:n.y,y2:r.y}}function bS(e){return e===`weak-no-direction`||e.startsWith(`weak-direction`)}function xS(e){return e===`direction-from`||e===`weak-direction-from`?`url(#block-text-link-arrow)`:void 0}function SS(e){return e===`direction-to`||e===`weak-direction-to`?`url(#block-text-link-arrow)`:void 0}function CS(e,t,n){let i=e.getBoundingClientRect(),a=r.n(e);return{x:(t-i.left)/a,y:(n-i.top)/a}}function wS({activeLink:e,editor:t,onChangeKind:n,onClose:r,onReplaceRange:i,onRemove:a}){let o=(0,h.useRef)(null),s=t.getEditorState().read(()=>nS());(0,h.useEffect)(()=>{o.current?.focus({preventScroll:!0})},[e.link.id]);let c=t=>{s!==null&&i(e.link.id,t,s)};return(0,_.jsxs)(`div`,{className:`block-text-link-controls`,onBlur:e=>{let t=e.relatedTarget;(!(t instanceof Node)||!e.currentTarget.contains(t))&&r()},onKeyDown:e=>{e.key===`Escape`&&(e.stopPropagation(),r())},ref:o,style:{left:e.midpoint.x,top:e.midpoint.y},tabIndex:-1,children:[(0,_.jsx)(`div`,{className:`block-text-link-controls-section`,children:Hx.map(t=>(0,_.jsx)(`button`,{className:t.kind===e.link.kind?`active`:void 0,onClick:()=>n(e.link.id,t.kind),type:`button`,children:t.label},t.kind))}),(0,_.jsxs)(`div`,{className:`block-text-link-controls-section`,children:[(0,_.jsx)(`button`,{disabled:s===null,onClick:()=>c(`from`),type:`button`,children:`Use selection as first`}),(0,_.jsx)(`button`,{disabled:s===null,onClick:()=>c(`to`),type:`button`,children:`Use selection as second`})]}),(0,_.jsx)(`button`,{className:`danger`,onClick:()=>a(e.link.id),type:`button`,children:`Remove link`})]})}function TS({anchorElem:e}){let[n]=t.oi(),i=l.t(),[a,o]=(0,h.useState)([]),[s,c]=(0,h.useState)([]),[u,d]=(0,h.useState)(null),[f,p]=(0,h.useState)(null),[m,g]=(0,h.useState)(null),[y,b]=(0,h.useState)(null),x=(0,h.useRef)(null),S=(0,h.useRef)([]),C=(0,h.useRef)(null),w=(0,h.useRef)([]),T=(0,h.useRef)([]),E=(0,h.useCallback)(t=>{C.current=t,g(t),b(t===null||x.current===null?null:CS(e,x.current.x,x.current.y))},[e]),D=(0,h.useCallback)(()=>{n.dispatchCommand(t.v,T.current.length>0),n.dispatchCommand(t.Ur,w.current.length>0)},[n]),O=(0,h.useCallback)(e=>{S.current=e,tr(Qx(e)),o(e),p(t=>t!==null&&e.some(e=>e.id===t)?t:null),d(t=>t!==null&&e.some(e=>e.id===t)?t:null),E(null),D()},[D,E]);(0,h.useEffect)(()=>{let e=er();if(e.length===0)return;let t=n.getEditorState().read(()=>tS(e));t.length>0&&O(t)},[n,O]);let k=(0,h.useCallback)(e=>{if(!n.isEditable())return;let t=S.current,r=e(t);r===t||Wx(t,r)||(T.current.push(t),w.current=[],O(r))},[n,O]),A=(0,h.useCallback)(()=>{if(!n.isEditable())return!1;let e=T.current.pop();return e===void 0?!1:(w.current.push(S.current),O(e),!0)},[n,O]),j=(0,h.useCallback)(()=>{if(!n.isEditable())return!1;let e=w.current.pop();return e===void 0?!1:(T.current.push(S.current),O(e),!0)},[n,O]);(0,h.useEffect)(()=>{i||(E(null),p(null))},[i,E]);let M=(0,h.useCallback)(()=>{let t=e.getBoundingClientRect(),i=r.n(e),o=a.flatMap(e=>{let r=dS(n,e.from),a=dS(n,e.to),o=aS(r),s=aS(a);if(o===null||s===null)return[];let c=pS(o,t,i),l=pS(s,t,i),u=fS(r,t,i),d=fS(a,t,i),f=mS(c),p=mS(l);return[{fromRect:c,fromRects:u,link:e,midpoint:{x:(f.x+p.x)/2,y:(f.y+p.y)/2},toRect:l,toRects:d}]});c(o)},[e,n,a]);(0,h.useEffect)(()=>{M()},[M]),(0,h.useEffect)(()=>{let t=e.parentElement,n=()=>M();return window.addEventListener(`resize`,n),t!==null&&t.addEventListener(`scroll`,n),()=>{window.removeEventListener(`resize`,n),t!==null&&t.removeEventListener(`scroll`,n)}},[e,M]),(0,h.useEffect)(()=>{let t=t=>{x.current={x:t.clientX,y:t.clientY},C.current!==null&&b(CS(e,t.clientX,t.clientY)),d(gS(s,CS(e,t.clientX,t.clientY)))},n=t=>{let n=vS(s,CS(e,t.clientX,t.clientY));n!==null&&p(n)};return document.addEventListener(`mousemove`,t),document.addEventListener(`click`,n),()=>{document.removeEventListener(`mousemove`,t),document.removeEventListener(`click`,n)}},[e,s]),(0,h.useEffect)(()=>{if(m===null)return;let e=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),E(null))};return document.addEventListener(`keydown`,e,!0),()=>{document.removeEventListener(`keydown`,e,!0)}},[m,E]),(0,h.useEffect)(()=>{if(!i)return;let e=n.getRootElement();if(e===null)return;let t=()=>{let e=C.current;e!==null&&window.setTimeout(()=>{let t=n.getEditorState().read(()=>nS());t===null||Ux(e,t)||k(n=>[...n,{from:e,id:Gx(),kind:`no-direction`,to:t}])},0)};return e.addEventListener(`mouseup`,t),()=>{e.removeEventListener(`mouseup`,t)}},[k,n,i]),(0,h.useEffect)(()=>t.Yn(n.registerCommand(Vx,()=>{if(!n.isEditable())return E(null),!0;let e=nS();return e===null?(E(null),!0):(p(null),E(e),!0)},0),n.registerCommand(t.hn,()=>(T.current=[],w.current=[],O([]),!1),0),n.registerCommand(t.Tt,()=>A(),4),n.registerCommand(t.nn,()=>j(),4),n.registerCommand(t.jn,e=>C.current===null?!1:(e.preventDefault(),e.stopPropagation(),E(null),!0),4),n.registerCommand(t.F,()=>(M(),!1),0),n.registerUpdateListener(()=>{M()})),[n,i,j,E,O,A,M]);let N=(0,h.useMemo)(()=>s.find(e=>e.link.id===f),[s,f]);return(0,v.createPortal)((0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`svg`,{className:`block-text-link-layer`,children:[(0,_.jsx)(`defs`,{children:(0,_.jsx)(`marker`,{id:`block-text-link-arrow`,markerHeight:`8`,markerWidth:`10`,orient:`auto-start-reverse`,refX:`9`,refY:`4`,children:(0,_.jsx)(`path`,{d:`M 0 0 L 10 4 L 0 8 z`})})}),s.map(e=>{let{x1:t,x2:n,y1:r,y2:i}=yS(e.fromRect,e.toRect),a=e.link.id===f,o=a||e.link.id===u;return(0,_.jsxs)(`g`,{className:`block-text-link `+(a?`selected `:``)+(o?`focused`:`dimmed`),children:[e.fromRects.map((e,t)=>(0,_.jsx)(`rect`,{className:`range-outline`,height:e.height,width:e.width,x:e.left,y:e.top},`from-${t}`)),e.toRects.map((e,t)=>(0,_.jsx)(`rect`,{className:`range-outline`,height:e.height,width:e.width,x:e.left,y:e.top},`to-${t}`)),(0,_.jsx)(`line`,{className:bS(e.link.kind)?`weak`:void 0,markerEnd:SS(e.link.kind),markerStart:xS(e.link.kind),x1:t,x2:n,y1:r,y2:i})]},e.link.id)})]}),m===null?null:(0,_.jsxs)(`div`,{className:`block-text-link-pending`,style:y===null?void 0:{left:y.x,top:y.y},children:[(0,_.jsx)(`i`,{className:`bi bi-bezier2`}),(0,_.jsx)(`span`,{children:`Select second range`})]}),N!==void 0&&i?(0,_.jsx)(wS,{activeLink:N,editor:n,onChangeKind:(e,t)=>{k(n=>n.map(n=>n.id===e&&n.kind!==t?{...n,kind:t}:n))},onClose:()=>p(null),onRemove:e=>{k(t=>t.filter(t=>t.id!==e))},onReplaceRange:(e,t,n)=>{k(r=>r.map(r=>r.id===e?{...r,[t]:n}:r))}}):null]}),e)}function ES(e,t,n={}){let{maxWait:r}=n,i=null,a=null,o=null,s=()=>{i!==null&&(clearTimeout(i),i=null),a!==null&&(clearTimeout(a),a=null)},c=()=>{let t=o;o=null,s(),t!==null&&e(...t)},l=(...e)=>{o=e,i!==null&&clearTimeout(i),i=setTimeout(c,t),r!==void 0&&a===null&&(a=setTimeout(c,r))};return l.cancel=()=>{o=null,s()},l}function DS(e,t,n){let r=(0,h.useRef)(null);return r.current=e,(0,h.useMemo)(()=>ES((...e)=>{r.current&&r.current(...e)},t,{maxWait:n}),[t,n])}function OS({editor:e,getCodeDOMNode:n}){let[r,i]=(0,h.useState)(!1),a=DS(()=>{i(!1)},1e3);async function o(){let r=n();if(!r)return;let o=``;e.update(()=>{let e=t.Yt(r);W(e)&&(o=e.getTextContent()),t.En(t.tt())});try{await navigator.clipboard.writeText(o),i(!0),a()}catch(e){console.error(`Failed to copy: `,e)}}return(0,_.jsx)(`button`,{className:`menu-item`,onClick:o,"aria-label":`copy`,children:r?(0,_.jsx)(`i`,{className:`bi bi-check2 format`}):(0,_.jsx)(`i`,{className:`bi bi-copy format`})})}var kS={css:[()=>Promise.resolve().then(()=>e.a(require("./chunks/postcss-CBqGx49S.cjs").default,1))],html:[()=>Promise.resolve().then(()=>e.a(require("./chunks/html-BNLifDHL.cjs").default,1))],js:[()=>Promise.resolve().then(()=>e.a(require("./chunks/babel-MozgJABr.cjs").default,1)),()=>Promise.resolve().then(()=>require("./chunks/estree-D9-Mqvk8.cjs"))],markdown:[()=>Promise.resolve().then(()=>e.a(require("./chunks/markdown-Dku-nJTv.cjs").default,1))],typescript:[()=>Promise.resolve().then(()=>e.a(require("./chunks/typescript-CqC8sjyH.cjs").default,1)),()=>Promise.resolve().then(()=>require("./chunks/estree-D9-Mqvk8.cjs"))]};async function AS(e){let t=kS[e];return await Promise.all(t.map(e=>e()))}async function jS(){let{format:e}=await Promise.resolve().then(()=>require("./chunks/standalone-BZsqY5oq.cjs"));return e}var MS={css:{parser:`css`},html:{parser:`html`},js:{parser:`babel`},markdown:{parser:`markdown`},typescript:{parser:`typescript`}},NS=Object.keys(MS);function PS(e){return NS.includes(e)}function FS(e){let t=MS[e];if(!t)throw Error(`CodeActionMenuPlugin: Prettier does not support this language: ${e}`);return t}function IS({lang:e,editor:n,getCodeDOMNode:r}){let[i,a]=(0,h.useState)(``),[o,s]=(0,h.useState)(!1);async function c(){let i=r();if(!i)return;let o=``;if(n.update(()=>{let e=t.Yt(i);W(e)&&(o=e.getTextContent())}),o!==``)try{let r=await jS(),c=FS(e);c.plugins=(await AS(e)).map(e=>e.default||e);let l=await r(o,c);n.update(()=>{let e=t.Yt(i);W(e)&&(e.select(0).insertText(l),a(``),s(!1))})}catch(e){l(e)}}function l(e){e instanceof Error?(a(e.message),s(!0)):console.error(`Unexpected error: `,e)}function u(){i!==``&&s(!0)}function d(){i!==``&&s(!1)}return(0,_.jsxs)(`div`,{className:`prettier-wrapper`,children:[(0,_.jsx)(`button`,{className:`menu-item`,onClick:c,onMouseEnter:u,onMouseLeave:d,"aria-label":`prettier`,children:i?(0,_.jsx)(`i`,{className:`bi bi-exclamation-circle format`}):(0,_.jsx)(`i`,{className:`bi bi-magic format`})}),o?(0,_.jsx)(`pre`,{className:`code-error-tips`,children:i}):null]})}var LS=8;function RS({anchorElem:e}){let[n]=t.oi(),[i,a]=(0,h.useState)(``),[o,s]=(0,h.useState)(!1),[c,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)({right:`0`,top:`0`}),f=(0,h.useRef)(new Set),p=(0,h.useRef)(null);function m(){return p.current}let g=DS(i=>{let{codeDOMNode:o,isOutside:c}=zS(i);if(c){s(!1);return}if(!o)return;p.current=o;let l=null,u=``;if(n.update(()=>{let e=t.Yt(o);W(e)&&(l=e,u=l.getLanguage()||``)}),l){let{y:t,right:n}=e.getBoundingClientRect(),{y:i,right:c}=o.getBoundingClientRect(),l=r.n(e);a(u),s(!0),d({right:`${(n-c)/l+LS}px`,top:`${(i-t)/l}px`})}},50,1e3);(0,h.useEffect)(()=>{if(c)return document.addEventListener(`mousemove`,g),()=>{s(!1),g.cancel(),document.removeEventListener(`mousemove`,g)}},[c,g]),(0,h.useEffect)(()=>n.registerMutationListener(Fe,e=>{n.getEditorState().read(()=>{for(let[t,n]of e)switch(n){case`created`:f.current.add(t);break;case`destroyed`:f.current.delete(t);break;default:break}}),l(f.current.size>0)},{skipInitialization:!1}),[n]);let v=bt(i),y=yt(i);return(0,_.jsx)(_.Fragment,{children:o?(0,_.jsxs)(`div`,{className:`code-action-menu-container`,style:{...u},children:[(0,_.jsx)(`div`,{className:`code-highlight-language`,children:y}),(0,_.jsx)(OS,{editor:n,getCodeDOMNode:m}),PS(v)?(0,_.jsx)(IS,{editor:n,getCodeDOMNode:m,lang:v}):null]}):null})}function zS(e){let n=e.target;if(t.Sn(n)){let e=n.closest(`code.PlaygroundEditorTheme__code`);return{codeDOMNode:e,isOutside:!(e||n.closest(`div.code-action-menu-container`))}}else return{codeDOMNode:null,isOutside:!0}}function BS({anchorElem:e=document.body}){return(0,v.createPortal)((0,_.jsx)(RS,{anchorElem:e}),e)}function VS(){let[e]=t.oi();return(0,h.useEffect)(()=>St(e),[e]),null}var HS=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function US(e){return WS(e)}function WS(e){return Array.isArray(e)?GS(e):e instanceof RegExp?e:typeof e==`object`?KS(e):e}function GS(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=WS(e[n]);return t}function KS(e){let t={};for(let n in e)t[n]=WS(e[n]);return t}function qS(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function JS(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?JS(e.substring(0,e.length-1)):e.substr(~t+1)}var YS=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,XS=class{static hasCaptures(e){return e===null?!1:(YS.lastIndex=0,YS.test(e))}static replaceCaptures(e,t,n){return e.replace(YS,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function ZS(e,t){return e<t?-1:+(e>t)}function QS(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=ZS(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function $S(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function eC(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var tC=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},nC=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(sC(e),t)}static createFromParsedTheme(e,t){return uC(e,t)}_cachedMatchRoot=new tC(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>iC(e.parent,t.parentScopes));return n?new oC(n.fontStyle,n.foreground,n.background):null}},rC=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function iC(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!aC(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function aC(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var oC=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function sC(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&$S(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&$S(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new cC(l,u,e,o,s,c)}}return n}var cC=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},lC=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(lC||{});function uC(e,t){e.sort((e,t)=>{let n=ZS(e.scope,t.scope);return n!==0||(n=QS(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new dC(t),o=new oC(n,a.getId(r),a.getId(i)),s=new mC(new pC(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new nC(a,o,s)}var dC=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},fC=Object.freeze([]),pC=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||fC,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},mC=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),pC.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(QS(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new pC(e,t,n,r,i))}},hC=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=_C(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function gC(e){return e}function _C(e){return e}function vC(e,t){let n=[],r=bC(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(yC(i)){let e=[];do e.push(i),i=r.next();while(yC(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function yC(e){return!!e&&!!e.match(/[\w\.:]+/)}function bC(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function xC(e){typeof e.dispose==`function`&&e.dispose()}var SC=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},CC=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},wC=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},TC=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new SC(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new wC;for(let n of e)EC(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof SC){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function EC(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof SC?OC({baseGrammar:a,selfGrammar:i},r):DC(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new SC(e))}function DC(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];kC([r],t,n)}}function OC(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&kC(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&kC(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function kC(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?qS({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&kC(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=FC(i);switch(a.kind){case 0:OC({...t,selfGrammar:t.baseGrammar},n);break;case 1:OC(t,n);break;case 2:DC(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?DC(a.ruleName,i,n):OC(i,n)}else a.kind===4?n.add(new CC(a.scopeName,a.ruleName)):n.add(new SC(a.scopeName));break}}}var AC=class{kind=0},jC=class{kind=1},MC=class{constructor(e){this.ruleName=e}kind=2},NC=class{constructor(e){this.scopeName=e}kind=3},PC=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function FC(e){if(e===`$base`)return new AC;if(e===`$self`)return new jC;let t=e.indexOf(`#`);return t===-1?new NC(e):t===0?new MC(e.substring(1)):new PC(e.substring(0,t),e.substring(t+1))}var IC=/\\(\d+)/,LC=/\\(\d+)/g,RC=-1,zC=-2;function BC(e){return e}function VC(e){return e}var HC=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=XS.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=XS.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${JS(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:XS.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:XS.replaceCaptures(this._contentName,e,t)}},UC=class extends HC{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},WC=class extends HC{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new YC(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new XC,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},GC=class extends HC{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new XC,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},KC=class extends HC{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new YC(i,this.id),this.beginCaptures=a,this._end=new YC(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new XC;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},qC=class extends HC{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new YC(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new YC(o,zC),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new XC;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new XC,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},JC=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new UC(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new WC(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=qS({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new GC(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new qC(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new KC(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=FC(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof GC||e instanceof KC||e instanceof qC)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},YC=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=IC.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return LC.lastIndex=0,this.source.replace(LC,(e,t)=>eC(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},XC=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ZC(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new ZC(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ZC=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
862
+ `);let t=a.Gt(a.Ht.NO_STATUS);return jo(e,Yy,t),t},Jy=e=>{let t=e.match(Uy);return!t||!t[1]?null:t[1].split(`|`).map(e=>qy(e))},Yy=[Gy,zy,By,Vy,Hy,Ua,...to,...no,...ro,...io],Xy=`lexical-playground-read-only-mode`,{name:Zy,version:Qy}=y,$y=850,eb=[`beforeinput`,`compositionstart`,`cut`,`drop`,`paste`],tb=8e3,nb=`Plain link ready. Anyone with the URL can open this editor state.`,rb=`Protected link ready. Readers will be asked for the password.`,ib={display:`contents`},ab=`button:not(:disabled), [role="button"]:not([aria-disabled="true"]), a[href], input[type="button"]:not(:disabled), input[type="submit"]:not(:disabled)`,ob=`__fullscreen__`;function sb(e){switch(e.trim().toLowerCase()){case`esc`:return`escape`;case`space`:case`spacebar`:return` `;case`plus`:return`+`;default:return e.trim().toLowerCase()}}function cb(e){return e===` `?`Space`:e.length===1?e.toUpperCase():e}function lb(e){if(e===void 0)return null;let t=e.split(`+`).map(e=>e.trim()).filter(Boolean),n=null,r=!1,i=!1,a=!1,o=!1;return t.forEach(e=>{switch(e.toLowerCase()){case`alt`:case`option`:r=!0;break;case`cmd`:case`command`:case`meta`:a=!0;break;case`control`:case`ctrl`:i=!0;break;case`shift`:o=!0;break;default:n=n===null?sb(e):``}}),n===null||n===``?null:{altKey:r,ariaKeyShortcut:[i?`Control`:null,r?`Alt`:null,o?`Shift`:null,a?`Meta`:null,cb(n)].filter(Boolean).join(`+`),ctrlKey:i,key:n,metaKey:a,shiftKey:o}}function ub(e,t){return e.altKey===t.altKey&&e.ctrlKey===t.ctrlKey&&e.metaKey===t.metaKey&&e.shiftKey===t.shiftKey&&sb(e.key)===t.key}function db(e){return e.matches(ab)?e:e.querySelector(ab)}function fb(e,t){let n=typeof t==`string`&&t.length>0?t:e.description;return e.shortcutKey===void 0?n:n===void 0?e.shortcutKey:`${n} (${e.shortcutKey})`}function pb(e){let t=lb(e.shortcutKey),n=h.Children.toArray(e.children),r=n[0];if(n.length!==1||!(0,h.isValidElement)(r)||typeof r.type!=`string`)return e.children;let i=fb(e,r.props.title),a={};return t!==null&&(a[`aria-keyshortcuts`]=t.ariaKeyShortcut),i!==void 0&&i!==r.props.title&&(a.title=i),Object.keys(a).length===0?e.children:(0,h.cloneElement)(r,a)}function mb(){let e=i.d();return e!==null&&e.getItem(Xy)===`true`}function hb(e){let t=i.d();if(t!==null){if(e){t.setItem(Xy,`true`);return}t.removeItem(Xy)}}function gb(e){let t=e.key.toLowerCase();return(e.ctrlKey||e.metaKey)&&(t===`v`||t===`x`)?!0:e.ctrlKey||e.metaKey||e.altKey?!1:e.key.length===1||e.key===`Backspace`||e.key===`Delete`||e.key===`Enter`||e.key===`Tab`}function _b(e,t){let n=t.target;if(n instanceof Node&&e.contains(n))return!0;let r=document.activeElement;if(r!==null&&e.contains(r))return!0;let i=window.getSelection()?.anchorNode;return i!=null&&e.contains(i)}function vb({forceReadOnly:e=!1,footerActionButtons:n=Qn,isMinimize:r,isOnApp:o,onToggleFullscreen:c,onToggleComments:l,onToggleLookup:u,print:d,setShowComments:f,setShowLookup:p,shouldPreserveNewLinesInMarkdown:m,showComments:g,showLookup:y,showModal:b}){let[x]=t.oi(),[S,C]=(0,h.useState)(()=>e||mb()?!1:x.isEditable()),[w,T]=(0,h.useState)(!0),[E,D]=(0,h.useState)(0),[O,k]=(0,h.useState)(!1),[A,j]=(0,h.useState)(null),M=(0,h.useRef)(null),N=(0,h.useRef)(null),P=(0,h.useRef)(new Map),F=(0,h.useRef)(null),I=(0,h.useRef)(null),{setOption:L,settings:{pageSize:R}}=i.r(),{showStickyNotes:z,toggleStickyNotesVisibility:B}=s.c(),ee=a.at(),{shortToVerseData:te,verseFullTextToListShorts:V}=a._t(),ne=(0,h.useCallback)(()=>{D(e=>e+1),M.current!==null&&window.clearTimeout(M.current),M.current=window.setTimeout(()=>{D(0),M.current=null},$y)},[]),re=[`action-button`,S?`lock`:`unlock is-locked`,!S&&E>0?`is-locked-notice`:``].filter(Boolean).join(` `),ie=(0,h.useCallback)(()=>{if(d!==void 0){d();return}Iy(x,R)},[x,R,d]),H=(0,h.useCallback)(async e=>{try{let t=await vy(x,e);b(`Word document imported`,e=>(0,_.jsx)(yb,{result:t,onClose:e}))}catch(e){let t=e instanceof Error?e.message:`The Word document could not be imported.`;b(`Word import failed`,e=>(0,_.jsx)(bb,{message:t,onClose:e}))}},[x,b]),ae=(0,h.useCallback)(e=>{let t=e.currentTarget,n=t.files?.[0];t.value=``,n&&H(n)},[H]),oe=(0,h.useCallback)(async()=>{let e=No();if(!e){N.current?.click();return}try{let t=await e.openFile({filters:[{extensions:[`docx`],name:`Microsoft Word document`}]});if(!(`data`in t))return;await H(new Blob([Uint8Array.from(t.data).buffer],{type:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`}))}catch(e){let t=e instanceof Error?e.message:`The Word document could not be opened.`;b(`Word import failed`,e=>(0,_.jsx)(bb,{message:t,onClose:e}))}},[H,b]),se=(0,h.useCallback)(async()=>{try{await tu(x,R,{lookupManagers:ee,shortToVerseData:te,verseFullTextToListShorts:V})}catch(e){let t=e instanceof Error?e.message:`The Word document could not be saved.`;b(`Word export failed`,e=>(0,_.jsx)(bb,{message:t,onClose:e}))}},[x,ee,R,te,b,V]);(0,h.useEffect)(()=>{if(e){hb(!0),x.setEditable(!1),C(!1);return}mb()&&(x.setEditable(!1),C(!1))},[x,e]),(0,h.useEffect)(()=>()=>{M.current!==null&&window.clearTimeout(M.current)},[]),(0,h.useEffect)(()=>{S&&(M.current!==null&&(window.clearTimeout(M.current),M.current=null),D(0))},[S]),(0,h.useEffect)(()=>{if(S)return;let e=x.getRootElement(),t=x.registerRootListener(t=>{e=t}),n=t=>{e!==null&&_b(e,t)&&ne()},r=t=>{e!==null&&_b(e,t)&&gb(t)&&ne()};return document.addEventListener(`keydown`,r,!0),eb.forEach(e=>{document.addEventListener(e,n,!0)}),()=>{t(),document.removeEventListener(`keydown`,r,!0),eb.forEach(e=>{document.removeEventListener(e,n,!0)})}},[x,S,ne]),(0,h.useEffect)(()=>x.registerEditableListener(e=>{C(e),hb(!e)}),[x]),(0,h.useEffect)(()=>{!e||!S||(hb(!0),x.setEditable(!1),C(!1))},[x,e,S]),(0,h.useEffect)(()=>x.registerUpdateListener(({dirtyElements:e,prevEditorState:n,tags:r})=>{x.getEditorState().read(()=>{let e=t.Dr().getChildren();if(e.length>1)T(!1);else if(t.kn(e[0])){let t=e[0].getChildren();T(t.length===0)}else T(!1)})}),[x,S]);let ce=(0,h.useCallback)(()=>{x.update(()=>{let e=t.Dr(),n=e.getFirstChild();if(W(n)&&n.getLanguage()===`markdown`)jo(n.getTextContent(),Yy,void 0,m);else{let n=Mo(Yy,void 0,m),r=Ie(`markdown`);r.append(t.D(n)),e.clear().append(r),n.length===0&&r.select()}})},[x,m]),le=(0,h.useCallback)(()=>{let e=JSON.stringify(x.getEditorState()),t=xr(e);b(`Share as link`,n=>t===null?(0,_.jsx)(Tb,{onClose:n}):(0,_.jsx)(Sb,{onClose:n,serializedEditorState:e,shareLink:t}))},[x,b]),ue=(0,h.useCallback)(()=>{let e=F.current;if(e===null)return;let t=e.getBoundingClientRect();j({bottom:Math.max(8,window.innerHeight-t.top+4),right:Math.max(8,window.innerWidth-t.right)})},[]),de=(0,h.useCallback)(async()=>{let e=No();if(!e){sa(x);return}try{let n=await e.openFile({filters:[{extensions:[`lexical`],name:`BibleNote editor file`}]});if(!(`data`in n))return;let r=new TextDecoder().decode(n.data);x.setEditorState(oa(x,r)),x.dispatchCommand(t.dt,void 0),x.focus()}catch(e){let t=e instanceof Error?e.message:`The editor file could not be imported.`;b(`Import failed`,e=>(0,_.jsx)(bb,{message:t,onClose:e}))}},[x,b]),fe=(0,h.useCallback)(async()=>{let e=No(),t=new Date().toISOString().replace(/[:.]/g,`-`);if(!e){ca(x,{fileName:`BibleNote ${t}`,source:`Playground`});return}try{let n=aa(x.getEditorState(),{source:`Playground`});await e.saveFile({data:JSON.stringify(n),defaultFileName:`BibleNote ${t}.lexical`,filters:[{extensions:[`lexical`],name:`BibleNote editor file`}]})}catch(e){let t=e instanceof Error?e.message:`The editor file could not be exported.`;b(`Export failed`,e=>(0,_.jsx)(bb,{message:t,onClose:e}))}},[x,b]),pe=(0,h.useCallback)(()=>{b(`Editor information`,()=>(0,_.jsx)(Db,{}))},[b]),me=(0,h.useCallback)(()=>{k(!1)},[]),U=(0,h.useCallback)((e,t)=>{if(t===null){P.current.delete(e);return}P.current.set(e,t)},[]),he=(0,h.useCallback)(()=>{if(O){k(!1);return}ue(),k(!0)},[O,ue]);return(0,h.useEffect)(()=>{if(!O)return;ue();let e=e=>{let t=e.target;t instanceof Node&&(F.current?.contains(t)||I.current?.contains(t)||k(!1))},t=e=>{e.key===`Escape`&&k(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),window.addEventListener(`resize`,ue),window.addEventListener(`scroll`,ue,!0),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t),window.removeEventListener(`resize`,ue),window.removeEventListener(`scroll`,ue,!0)}},[O,ue]),(0,h.useEffect)(()=>{let e=[...n.before,...n.after].map(e=>({id:e.id,shortcut:lb(e.shortcutKey)})).filter(e=>e.shortcut!==null);if(e.length===0)return;let t=t=>{if(t.defaultPrevented||t.repeat||t.isComposing)return;let n=e.find(e=>ub(t,e.shortcut));if(n===void 0)return;let r=P.current.get(n.id),i=r===void 0?null:db(r);i!==null&&(t.preventDefault(),i.click())};return document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`keydown`,t)}},[n]),(0,_.jsxs)(`div`,{className:`d-flex flex-wrap justify-content-end actions`,style:{overflowX:`auto`,overflowY:`hidden`},children:[n.before.map(e=>(0,_.jsx)(xb,{actionButton:e,setFooterActionButtonElement:U},e.id)),(0,_.jsx)(`button`,{className:`action-button sticky-notes-toggle`,onClick:B,title:z?`Hide Sticky Notes`:`Show Sticky Notes`,"aria-label":z?`Hide sticky notes`:`Show sticky notes`,"aria-pressed":z,children:(0,_.jsx)(`i`,{className:`bi bi-${z?`stickies-fill`:`stickies`}`})}),(0,_.jsx)(`button`,{className:`action-button import-docx`,onClick:()=>void oe(),title:`Import Word Document`,"aria-label":`Import Microsoft Word document`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-file-earmark-arrow-up`})}),(0,_.jsx)(`input`,{ref:N,accept:ay,"aria-label":`Choose Microsoft Word document`,hidden:!0,onChange:ae,type:`file`}),(0,_.jsx)(`button`,{className:`action-button export-docx`,onClick:()=>void se(),title:`Download Word Document`,"aria-label":`Download as Word document`,children:(0,_.jsx)(`i`,{className:`bi bi-file-word`})}),(0,_.jsx)(`button`,{className:`action-button print`,onClick:ie,title:`Print`,"aria-label":`Print document`,children:(0,_.jsx)(`i`,{className:`bi bi-printer`})}),(0,_.jsxs)(`label`,{className:`page-size-selector`,title:`Page size`,children:[(0,_.jsx)(`span`,{className:`visually-hidden`,children:`Page size`}),(0,_.jsx)(`i`,{className:`bi bi-file-earmark`,"aria-hidden":`true`}),(0,_.jsxs)(`select`,{"aria-label":`Page size`,value:R,onChange:e=>{let t=e.target.value;if(t===ob){c?.();return}i.g(t)&&L(`pageSize`,t)},children:[i.m().map(e=>(0,_.jsx)(`option`,{value:e.key,children:e.label},e.key)),(0,_.jsx)(`option`,{value:ob,children:`Full Screen`})]})]}),(0,_.jsx)(`button`,{className:`action-button clear`,disabled:w,onClick:()=>{b(`Clear editor`,e=>(0,_.jsx)(Ob,{editor:x,onClose:e}))},title:`Clear`,"aria-label":`Clear editor contents`,children:(0,_.jsx)(`i`,{className:`bi bi-eraser`})}),(0,_.jsx)(`button`,{className:re,onClick:()=>{if(e){ne(),hb(!0),x.setEditable(!1),C(!1);return}let t=!S;hb(!t),x.setEditable(t),C(t)},title:e?`Read-Only Mode Locked`:`Read-Only Mode`,"aria-label":e&&!S?`Read-only mode is locked`:`${S?`Lock`:`Unlock`} read-only mode`,children:(0,_.jsx)(`i`,{className:`bi bi-${S?`unlock`:`lock`}-fill`},`${S?`editable`:`locked`}-${E}`)}),!o&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{className:`action-button share-link`,onClick:le,title:`Share as Link`,"aria-label":`Share editor state as link`,children:(0,_.jsx)(`i`,{className:`bi bi-link-45deg`})}),(0,_.jsx)(`button`,{className:`action-button`,onClick:ce,title:`Convert From Markdown`,"aria-label":`Convert from markdown`,children:(0,_.jsx)(`i`,{className:`bi bi-markdown-fill`})})]}),g!==void 0&&f!==void 0&&(0,_.jsx)(`button`,{className:`action-button comments-toggle ${g?`active`:``}`,onClick:()=>l?l():f(e=>!e),title:g?`Hide Comments`:`Show Comments`,"aria-label":g?`Hide comments`:`Show comments`,"aria-pressed":g,children:(0,_.jsx)(`i`,{className:`bi ${g?`bi-chat-dots-fill`:`bi-chat-dots`}`})}),y!==void 0&&p!==void 0&&(0,_.jsxs)(`button`,{className:`action-button lookup-toggle ${y?`active`:``}`,onClick:()=>u?u():p(e=>!e),title:y?`Hide Lookup`:`Show Lookup (name or location)`,"aria-label":y?`Hide lookup`:`Show lookup`,"aria-pressed":y,children:[(0,_.jsx)(`i`,{className:`bi bi-person-fill`}),(0,_.jsx)(`i`,{className:`bi bi-geo-alt-fill`})]}),r?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{ref:F,className:`action-button more-actions ${O?`active`:``}`,onClick:he,title:`More actions`,"aria-label":`More document actions`,"aria-expanded":O,"aria-haspopup":`menu`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-three-dots`})}),O&&A!==null?(0,v.createPortal)((0,_.jsxs)(`div`,{ref:I,className:`dropdown actions-overflow-menu`,role:`menu`,"aria-label":`More document actions`,style:{bottom:`${A.bottom}px`,right:`${A.right}px`},children:[(0,_.jsxs)(`button`,{className:`item`,onClick:()=>{de(),me()},role:`menuitem`,type:`button`,children:[(0,_.jsx)(`span`,{className:`icon`,children:(0,_.jsx)(`i`,{className:`bi bi-upload`})}),(0,_.jsx)(`span`,{className:`text`,children:`Import`})]}),(0,_.jsxs)(`button`,{className:`item`,onClick:()=>{fe(),me()},role:`menuitem`,type:`button`,children:[(0,_.jsx)(`span`,{className:`icon`,children:(0,_.jsx)(`i`,{className:`bi bi-download`})}),(0,_.jsx)(`span`,{className:`text`,children:`Export`})]}),(0,_.jsxs)(`button`,{className:`item`,onClick:()=>{pe(),me()},role:`menuitem`,type:`button`,children:[(0,_.jsx)(`span`,{className:`icon`,children:(0,_.jsx)(`i`,{className:`bi bi-info-circle`})}),(0,_.jsx)(`span`,{className:`text`,children:`Editor Information`})]})]}),document.body):null]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{className:`action-button import`,onClick:de,title:`Import`,"aria-label":`Import editor state from JSON`,children:(0,_.jsx)(`i`,{className:`bi bi-upload`})}),(0,_.jsx)(`button`,{className:`action-button export`,onClick:fe,title:`Export`,"aria-label":`Export editor state to JSON`,children:(0,_.jsx)(`i`,{className:`bi bi-download`})}),(0,_.jsx)(`button`,{className:`action-button info`,onClick:pe,title:`Editor Information`,"aria-label":`Show editor information`,children:(0,_.jsx)(`i`,{className:`bi bi-info-circle`})})]}),n.after.map(e=>(0,_.jsx)(xb,{actionButton:e,setFooterActionButtonElement:U},e.id))]})}function yb({onClose:e,result:t}){return(0,_.jsxs)(`div`,{className:`ActionsPlugin__dialog`,children:[(0,_.jsx)(`p`,{children:t.source===`bible-note`?`The document was restored from its BibleNote round-trip data, including editor-specific content.`:`The Word document content was imported. Word-only layout features may be simplified so they remain editable.`}),t.warnings.length>0&&(0,_.jsxs)(`details`,{children:[(0,_.jsxs)(`summary`,{children:[t.warnings.length,` import warning`,t.warnings.length===1?``:`s`]}),(0,_.jsx)(`ul`,{children:t.warnings.map((e,t)=>(0,_.jsx)(`li`,{children:e},`${t}-${e}`))})]}),(0,_.jsx)(u.t,{onClick:e,children:`Done`})]})}function bb({message:e,onClose:t}){return(0,_.jsxs)(`div`,{className:`ActionsPlugin__dialog`,children:[(0,_.jsx)(`p`,{children:e}),(0,_.jsx)(u.t,{onClick:t,children:`Close`})]})}function xb({actionButton:e,setFooterActionButtonElement:t}){return(0,_.jsx)(`span`,{ref:n=>{t(e.id,n)},style:ib,children:pb(e)})}function Sb({onClose:e,serializedEditorState:t,shareLink:n}){let r=(0,h.useRef)(null),[i,a]=(0,h.useState)(`idle`),[o,s]=(0,h.useState)(!1),[c,l]=(0,h.useState)(``),[d,f]=(0,h.useState)(``),[p,m]=(0,h.useState)(n),g=Cb(n,nb),[v,y]=(0,h.useState)(g.message),[b,x]=(0,h.useState)(g.tone),[S,C]=(0,h.useState)(!1),w=wr();(0,h.useEffect)(()=>{a(`idle`)},[p]),(0,h.useEffect)(()=>{if(!o){let e=Cb(n,nb);m(n),y(e.message),x(e.tone),C(!1);return}if(!w){m(``),y(`Password protection is unavailable in this browser.`),x(`muted`),C(!1);return}if(c.length===0||d.length===0){m(``),y(`Enter and confirm a password to generate the protected link.`),x(`muted`),C(!1);return}if(c!==d){m(``),y(`Passwords must match before the link can be created.`),x(`muted`),C(!1);return}let e=!0;return m(``),y(`Encrypting the share link...`),x(`muted`),C(!0),Sr(t,c).then(t=>{if(!e)return;if(t===null){y(`The protected share link could not be created.`),x(`muted`);return}let n=Cb(t,rb);m(t),y(n.message),x(n.tone)}).catch(()=>{e&&(y(`The protected share link could not be created.`),x(`muted`))}).finally(()=>{e&&C(!1)}),()=>{e=!1}},[w,d,o,c,t,n]);let T=(0,h.useCallback)(async()=>{if(p){a(`copying`);try{let e=await Eb(p,r.current);a(e?`success`:`error`)}catch{a(`error`)}}},[p]);return(0,_.jsxs)(`div`,{className:`d-flex flex-column gap-3`,children:[(0,_.jsxs)(`label`,{className:`d-flex align-items-center gap-2 m-0`,children:[(0,_.jsx)(`input`,{checked:o,className:`form-check-input m-0`,onChange:e=>{s(e.currentTarget.checked)},type:`checkbox`}),(0,_.jsx)(`span`,{children:`Password protect link`})]}),o?(0,_.jsxs)(`div`,{className:`d-flex flex-column gap-2`,children:[(0,_.jsxs)(`label`,{className:`d-flex flex-column gap-1 m-0`,children:[(0,_.jsx)(`span`,{children:`Password`}),(0,_.jsx)(`input`,{autoComplete:`new-password`,className:`form-control`,disabled:!w,onChange:e=>{l(e.currentTarget.value)},type:`password`,value:c})]}),(0,_.jsxs)(`label`,{className:`d-flex flex-column gap-1 m-0`,children:[(0,_.jsx)(`span`,{children:`Confirm password`}),(0,_.jsx)(`input`,{autoComplete:`new-password`,className:`form-control`,disabled:!w,onChange:e=>{f(e.currentTarget.value)},type:`password`,value:d})]})]}):null,(0,_.jsx)(`p`,{className:`m-0 ${b===`warning`?`text-warning`:`text-body-secondary`}`,role:`status`,children:v}),(0,_.jsx)(`label`,{className:`visually-hidden`,htmlFor:`share-editor-state-link`,children:`Shared editor link`}),(0,_.jsx)(`textarea`,{ref:r,id:`share-editor-state-link`,className:`form-control`,readOnly:!0,rows:5,value:p,onFocus:e=>e.currentTarget.select()}),(0,_.jsxs)(`div`,{className:`d-flex justify-content-end gap-2`,children:[(0,_.jsx)(u.t,{disabled:i===`copying`||S||!p,onClick:()=>{T()},children:i===`copying`?`Copying...`:i===`success`?`Copied`:i===`error`?`Copy failed`:`Copy link`}),(0,_.jsx)(u.t,{onClick:e,children:`Close`})]})]})}function Cb(e,t){return e.length>tb?{message:wb(e),tone:`warning`}:{message:t,tone:`muted`}}function wb(e){return`Share link is ${e.length.toLocaleString(`en-US`)} / ${tb.toLocaleString(`en-US`)} characters. It may be too long for some apps or browsers, but it can still be copied.`}function Tb({onClose:e}){return(0,_.jsxs)(_.Fragment,{children:[`Unable to create a share link for the current editor state.`,(0,_.jsx)(`div`,{className:`Modal__content pt-4`,children:(0,_.jsx)(u.t,{onClick:e,children:`Close`})})]})}async function Eb(e,t){return navigator.clipboard?.writeText?(await navigator.clipboard.writeText(e),!0):t===null||typeof document.execCommand!=`function`?!1:(t.focus(),t.select(),document.execCommand(`copy`))}function Db(){return(0,_.jsxs)(`dl`,{className:`m-0`,children:[(0,_.jsxs)(`div`,{className:`d-flex align-items-center justify-content-between gap-4`,children:[(0,_.jsx)(`dt`,{className:`fw-normal text-body-secondary`,children:`Editor package`}),(0,_.jsx)(`dd`,{className:`m-0 fw-semibold`,children:Zy})]}),(0,_.jsxs)(`div`,{className:`d-flex align-items-center justify-content-between gap-4 mt-2`,children:[(0,_.jsx)(`dt`,{className:`fw-normal text-body-secondary`,children:`Editor version`}),(0,_.jsx)(`dd`,{className:`m-0 fw-semibold`,children:Qy})]})]})}function Ob({editor:e,onClose:n}){return(0,_.jsxs)(_.Fragment,{children:[`Are you sure you want to clear the editor?`,(0,_.jsxs)(`div`,{className:`Modal__content pt-4`,children:[(0,_.jsx)(u.t,{onClick:()=>{nr(),e.dispatchCommand(t.hn,void 0),e.focus(),n()},children:`Clear`}),` `,(0,_.jsx)(u.t,{onClick:()=>{e.focus(),n()},children:`Cancel`})]})]})}var kb=class e extends t.Wt{__uuid;static clone(t){return new e(t.__text,t.__uuid,t.__key)}static getType(){return`autocomplete`}static importDOM(){return null}static importJSON(e){return Ab(e.text,e.uuid).updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),uuid:this.__uuid}}constructor(e,t,n){super(e,n),this.__uuid=t}updateDOM(e,t,n){return!1}exportDOM(e){return{element:null}}excludeFromCopy(){return!0}createDOM(e){let t=super.createDOM(e);return t.classList.add(e.theme.autocomplete),this.__uuid!==Lb&&(t.style.display=`none`),t}};function Ab(e,t){return new kb(e,t).setMode(`token`)}var jb=new WeakMap;function Mb(e){let t=e.changedTouches[0];return t===void 0?null:[t.clientX,t.clientY]}function Nb(e,t){let n=jb.get(e);if(n===void 0){let t=new Set,r=e=>{n!==void 0&&(n.start=Mb(e))},i=e=>{if(n===void 0)return;let r=n.start;if(r===null)return;let i=Mb(e);for(let n of t)i!==null&&n([i[0]-r[0],i[1]-r[1]],e)};e.addEventListener(`touchstart`,r),e.addEventListener(`touchend`,i),n={handleTouchend:i,handleTouchstart:r,listeners:t,start:null},jb.set(e,n)}return n.listeners.add(t),()=>Pb(e,t)}function Pb(e,t){let n=jb.get(e);if(n===void 0)return;let r=n.listeners;r.delete(t),r.size===0&&(jb.delete(e),e.removeEventListener(`touchstart`,n.handleTouchstart),e.removeEventListener(`touchend`,n.handleTouchend))}function Fb(e,t){return Nb(e,(e,n)=>{let[r,i]=e;r>0&&r>Math.abs(i)&&t(r,n)})}var Ib={tag:t.Jr},Lb=Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5);function Rb(e){if(!t.bn(e)||!e.isCollapsed())return[!1,``];let r=e.getNodes()[0],i=e.anchor;if(!t.Jt(r)||!r.isSimpleText()||!n.D(i))return[!1,``];let a=[],o=r.getTextContent(),s=r.getTextContentSize(),c;for(;s--&&s>=0&&(c=o[s])!==` `;)a.push(c);return a.length===0?[!1,``]:[!0,a.reverse().join(``)]}function zb(){return(0,h.useCallback)(e=>new Hb().query(e),[])}function Bb(e){let t=window.navigator.userAgentData;return`${e} ${(t===void 0?window.innerWidth<=800&&window.innerHeight<=600:t.mobile)?`(SWIPE ⮕)`:`(TAB)`}`}function Vb(){let[e]=t.oi(),n=zb(),{toolbarState:r}=j();return(0,h.useEffect)(()=>{let i=null,a=null,o=null,s=null,c=0;function l(){let e=i===null?null:t.Ht(i);e!==null&&e.isAttached()&&(e.remove(),i=null),s!==null&&(s.dismiss(),s=null),a=null,o=null,c=0}function u(n,l){s!==n||l===null||e.update(()=>{let e=t.tt(),[n,s]=Rb(e);if(!n||s!==a||!t.bn(e))return;let u=e.clone();c=e.getNodes()[0].getFormat();let d=Ab(Bb(l),Lb).setFormat(c).setStyle(`font-size: ${r.fontSize}`);i=d.getKey(),e.insertNodes([d]),t.En(u),o=l},Ib)}function d(e){let t=e.getKey();e.__uuid===Lb&&t!==i&&l()}function f(){e.update(()=>{let[e,r]=Rb(t.tt());if(!e){l();return}r!==a&&(l(),s=n(r),s.promise.then(e=>{s!==null&&u(s,e)}).catch(e=>{e!==`Dismissed`&&console.error(e)}),a=r)},Ib)}function p(){if(o===null||i===null)return!1;let e=t.Ht(i);if(e===null)return!1;let n=t.D(o).setFormat(c).setStyle(`font-size: ${r.fontSize}`);return e.replace(n),n.selectNext(),l(),!0}function m(e){return p()?(e.preventDefault(),!0):!1}function h(n,r){e.update(()=>{p()?r.preventDefault():t.pt(Ib.tag)})}function g(){e.update(()=>{l()},Ib)}let _=e.getRootElement();return t.Yn(e.registerNodeTransform(kb,d),e.registerUpdateListener(f),e.registerCommand(t.zn,m,1),e.registerCommand(t.Dn,m,1),..._===null?[]:[Fb(_,h)],g)},[e,n,r.fontSize]),null}var Hb=class{DATABASE=Ub;LATENCY=200;query=e=>{let t=!1;return{dismiss:()=>{t=!0},promise:new Promise((n,r)=>{setTimeout(()=>{if(t)return r(`Dismissed`);let i=e.length;if(e===``||i<4)return n(null);let a=e.charCodeAt(0),o=a>=65&&a<=90,s=o?String.fromCharCode(a+32)+e.substring(1):e,c=this.DATABASE.find(e=>e.startsWith(s)??null);if(c===void 0)return n(null);let l=(o?String.fromCharCode(c.charCodeAt(0)-32)+c.substring(1):c).substring(i);return n(l===``?null:l)},this.LATENCY)})}}},Ub=`information.available.copyright.university.management.international.development.education.community.technology.following.resources.including.directory.government.department.description.insurance.different.categories.conditions.accessories.september.questions.application.financial.equipment.performance.experience.important.activities.additional.something.professional.committee.washington.california.reference.companies.computers.president.australia.discussion.entertainment.agreement.marketing.association.collection.solutions.electronics.technical.microsoft.conference.environment.statement.downloads.applications.requirements.individual.subscribe.everything.production.commercial.advertising.treatment.newsletter.knowledge.currently.construction.registered.protection.engineering.published.corporate.customers.materials.countries.standards.political.advertise.environmental.availability.employment.commission.administration.institute.sponsored.electronic.condition.effective.organization.selection.corporation.executive.necessary.according.particular.facilities.opportunities.appropriate.statistics.investment.christmas.registration.furniture.wednesday.structure.distribution.industrial.potential.responsible.communications.associated.foundation.documents.communication.independent.operating.developed.telephone.population.navigation.operations.therefore.christian.understand.publications.worldwide.connection.publisher.introduction.properties.accommodation.excellent.opportunity.assessment.especially.interface.operation.restaurants.beautiful.locations.significant.technologies.manufacturer.providing.authority.considered.programme.enterprise.educational.employees.alternative.processing.responsibility.resolution.publication.relations.photography.components.assistance.completed.organizations.otherwise.transportation.disclaimer.membership.recommended.background.character.maintenance.functions.trademarks.phentermine.submitted.television.interested.throughout.established.programming.regarding.instructions.increased.understanding.beginning.associates.instruments.businesses.specified.restaurant.procedures.relationship.traditional.sometimes.themselves.transport.interesting.evaluation.implementation.galleries.references.presented.literature.respective.definition.secretary.networking.australian.magazines.francisco.individuals.guidelines.installation.described.attention.difference.regulations.certificate.directions.documentation.automotive.successful.communities.situation.publishing.emergency.developing.determine.temperature.announcements.historical.ringtones.difficult.scientific.satellite.particularly.functional.monitoring.architecture.recommend.dictionary.accounting.manufacturing.professor.generally.continued.techniques.permission.generation.component.guarantee.processes.interests.paperback.classifieds.supported.competition.providers.characters.thousands.apartments.generated.administrative.practices.reporting.essential.affiliate.immediately.designated.integrated.configuration.comprehensive.universal.presentation.languages.compliance.improvement.pennsylvania.challenge.acceptance.strategies.affiliates.multimedia.certified.computing.interactive.procedure.leadership.religious.breakfast.developer.approximately.recommendations.comparison.automatically.minnesota.adventure.institutions.assistant.advertisement.headlines.yesterday.determined.wholesale.extension.statements.completely.electrical.applicable.manufacturers.classical.dedicated.direction.basketball.wisconsin.personnel.identified.professionals.advantage.newsletters.estimated.anonymous.miscellaneous.integration.interview.framework.installed.massachusetts.associate.frequently.discussions.laboratory.destination.intelligence.specifications.tripadvisor.residential.decisions.industries.partnership.editorial.expression.provisions.principles.suggestions.replacement.strategic.economics.compatible.apartment.netherlands.consulting.recreation.participants.favorites.translation.estimates.protected.philadelphia.officials.contained.legislation.parameters.relationships.tennessee.representative.frequency.introduced.departments.residents.displayed.performed.administrator.addresses.permanent.agriculture.constitutes.portfolio.practical.delivered.collectibles.infrastructure.exclusive.originally.utilities.philosophy.regulation.reduction.nutrition.recording.secondary.wonderful.announced.prevention.mentioned.automatic.healthcare.maintained.increasing.connected.directors.participation.containing.combination.amendment.guaranteed.libraries.distributed.singapore.enterprises.convention.principal.certification.previously.buildings.household.batteries.positions.subscription.contemporary.panasonic.permalink.signature.provision.certainly.newspaper.liability.trademark.trackback.americans.promotion.conversion.reasonable.broadband.influence.importance.webmaster.prescription.specifically.represent.conservation.louisiana.javascript.marketplace.evolution.certificates.objectives.suggested.concerned.structures.encyclopedia.continuing.interracial.competitive.suppliers.preparation.receiving.accordance.discussed.elizabeth.reservations.playstation.instruction.annotation.differences.establish.expressed.paragraph.mathematics.compensation.conducted.percentage.mississippi.requested.connecticut.personals.immediate.agricultural.supporting.collections.participate.specialist.experienced.investigation.institution.searching.proceedings.transmission.characteristics.experiences.extremely.verzeichnis.contracts.concerning.developers.equivalent.chemistry.neighborhood.variables.continues.curriculum.psychology.responses.circumstances.identification.appliances.elementary.unlimited.printable.enforcement.hardcover.celebrity.chocolate.hampshire.bluetooth.controlled.requirement.authorities.representatives.pregnancy.biography.attractions.transactions.authorized.retirement.financing.efficiency.efficient.commitment.specialty.interviews.qualified.discovery.classified.confidence.lifestyle.consistent.clearance.connections.inventory.converter.organisation.objective.indicated.securities.volunteer.democratic.switzerland.parameter.processor.dimensions.contribute.challenges.recognition.submission.encourage.regulatory.inspection.consumers.territory.transaction.manchester.contributions.continuous.resulting.cambridge.initiative.execution.disability.increases.contractor.examination.indicates.committed.extensive.affordable.candidate.databases.outstanding.perspective.messenger.tournament.consideration.discounts.catalogue.publishers.caribbean.reservation.remaining.depending.expansion.purchased.performing.collected.absolutely.featuring.implement.scheduled.calculator.significantly.temporary.sufficient.awareness.vancouver.contribution.measurement.constitution.packaging.consultation.northwest.classroom.democracy.wallpaper.merchandise.resistance.baltimore.candidates.charlotte.biological.transition.preferences.instrument.classification.physician.hollywood.wikipedia.spiritual.photographs.relatively.satisfaction.represents.pittsburgh.preferred.intellectual.comfortable.interaction.listening.effectively.experimental.revolution.consolidation.landscape.dependent.mechanical.consultants.applicant.cooperation.acquisition.implemented.directories.recognized.notification.licensing.textbooks.diversity.cleveland.investments.accessibility.sensitive.templates.completion.universities.technique.contractors.subscriptions.calculate.alexander.broadcast.converted.anniversary.improvements.specification.accessible.accessory.typically.representation.arrangements.conferences.uniprotkb.consumption.birmingham.afternoon.consultant.controller.ownership.committees.legislative.researchers.unsubscribe.molecular.residence.attorneys.operators.sustainable.philippines.statistical.innovation.employers.definitions.elections.stainless.newspapers.hospitals.exception.successfully.indonesia.primarily.capabilities.recommendation.recruitment.organized.improving.expensive.organisations.explained.programmes.expertise.mechanism.jewellery.eventually.agreements.considering.innovative.conclusion.disorders.collaboration.detection.formation.engineers.proposals.moderator.tutorials.settlement.collectables.fantastic.governments.purchasing.appointed.operational.corresponding.descriptions.determination.animation.productions.telecommunications.instructor.approaches.highlights.designers.melbourne.scientists.blackjack.argentina.possibility.commissioner.dangerous.reliability.unfortunately.respectively.volunteers.attachment.appointment.workshops.hurricane.represented.mortgages.responsibilities.carefully.productivity.investors.underground.diagnosis.principle.vacations.calculated.appearance.incorporated.notebooks.algorithm.valentine.involving.investing.christopher.admission.terrorism.parliament.situations.allocated.corrections.structural.municipal.describes.disabilities.substance.prohibited.addressed.simulation.initiatives.concentration.interpretation.bankruptcy.optimization.substances.discovered.restrictions.participating.exhibition.composition.nationwide.definitely.existence.commentary.limousines.developments.immigration.destinations.necessarily.attribute.apparently.surrounding.mountains.popularity.postposted.coordinator.obviously.fundamental.substantial.progressive.championship.sacramento.impossible.depression.testimonials.memorabilia.cartridge.explanation.cincinnati.subsection.electricity.permitted.workplace.confirmed.wallpapers.infection.eligibility.involvement.placement.observations.vbulletin.subsequent.motorcycle.disclosure.establishment.presentations.undergraduate.occupation.donations.associations.citysearch.radiation.seriously.elsewhere.pollution.conservative.guestbook.effectiveness.demonstrate.atmosphere.experiment.purchases.federation.assignment.chemicals.everybody.nashville.counseling.acceptable.satisfied.measurements.milwaukee.medication.warehouse.shareware.violation.configure.stability.southwest.institutional.expectations.independence.metabolism.personally.excellence.somewhere.attributes.recognize.screening.thumbnail.forgotten.intelligent.edinburgh.obligation.regardless.restricted.republican.merchants.attendance.arguments.amsterdam.adventures.announcement.appreciate.regularly.mechanisms.customize.tradition.indicators.emissions.physicians.complaint.experiments.afghanistan.scholarship.governance.supplements.camcorder.implementing.ourselves.conversation.capability.producing.precision.contributed.reproduction.ingredients.franchise.complaints.promotions.rehabilitation.maintaining.environments.reception.correctly.consequences.geography.appearing.integrity.discrimination.processed.implications.functionality.intermediate.emotional.platforms.overnight.geographic.preliminary.districts.introduce.promotional.chevrolet.specialists.generator.suspension.correction.authentication.communicate.supplement.showtimes.promoting.machinery.bandwidth.probability.dimension.schedules.admissions.quarterly.illustrated.continental.alternate.achievement.limitations.automated.passenger.convenient.orientation.childhood.flexibility.jurisdiction.displaying.encouraged.cartridges.declaration.automation.advantages.preparing.recipient.extensions.athletics.southeast.alternatives.determining.personalized.conditioning.partnerships.destruction.increasingly.migration.basically.conventional.applicants.occupational.adjustment.treatments.camcorders.difficulty.collective.coalition.enrollment.producers.collector.interfaces.advertisers.representing.observation.restoration.convenience.returning.opposition.container.defendant.confirmation.supervisor.peripherals.bestsellers.departure.minneapolis.interactions.intervention.attraction.modification.customized.understood.assurance.happening.amendments.metropolitan.compilation.verification.attractive.recordings.jefferson.gardening.obligations.orchestra.polyphonic.outsourcing.adjustable.allocation.discipline.demonstrated.identifying.alphabetical.dispatched.installing.voluntary.photographer.messaging.constructed.additions.requiring.engagement.refinance.calendars.arrangement.conclusions.bibliography.compatibility.furthermore.cooperative.measuring.jacksonville.headquarters.transfers.transformation.attachments.administrators.personality.facilitate.subscriber.priorities.bookstore.parenting.incredible.commonwealth.pharmaceutical.manhattan.workforce.organizational.portuguese.everywhere.discharge.halloween.hazardous.methodology.housewares.reputation.resistant.democrats.recycling.qualifications.slideshow.variation.transferred.photograph.distributor.underlying.wrestling.photoshop.gathering.projection.mathematical.specialized.diagnostic.indianapolis.corporations.criticism.automobile.confidential.statutory.accommodations.northeast.downloaded.paintings.injection.yorkshire.populations.protective.initially.indicator.eliminate.sunglasses.preference.threshold.venezuela.exploration.sequences.astronomy.translate.announces.compression.establishing.constitutional.perfectly.instantly.litigation.submissions.broadcasting.horizontal.terrorist.informational.ecommerce.suffering.prospective.ultimately.artificial.spectacular.coordination.connector.affiliated.activation.naturally.subscribers.mitsubishi.underwear.potentially.constraints.inclusive.dimensional.considerable.selecting.processors.pantyhose.difficulties.complexity.constantly.barcelona.presidential.documentary.territories.palestinian.legislature.hospitality.procurement.theoretical.exercises.surveillance.protocols.highlight.substitute.inclusion.hopefully.brilliant.evaluated.assignments.termination.households.authentic.montgomery.architectural.louisville.macintosh.movements.amenities.virtually.authorization.projector.comparative.psychological.surprised.genealogy.expenditure.liverpool.connectivity.algorithms.similarly.collaborative.excluding.commander.suggestion.spotlight.investigate.connecting.logistics.proportion.significance.symposium.essentials.protecting.transmitted.screenshots.intensive.switching.correspondence.supervision.expenditures.separation.testimony.celebrities.mandatory.boundaries.syndication.celebration.filtering.luxembourg.offensive.deployment.colleagues.separated.directive.governing.retailers.occasionally.attending.recruiting.instructional.traveling.permissions.biotechnology.prescribed.catherine.reproduced.calculation.consolidated.occasions.equations.exceptional.respondents.considerations.queensland.musicians.composite.unavailable.essentially.designing.assessments.brunswick.sensitivity.preservation.streaming.intensity.technological.syndicate.antivirus.addressing.discounted.bangladesh.constitute.concluded.desperate.demonstration.governmental.manufactured.graduation.variations.addiction.springfield.synthesis.undefined.unemployment.enhancement.newcastle.performances.societies.brazilian.identical.petroleum.norwegian.retention.exchanges.soundtrack.wondering.profession.separately.physiology.collecting.participant.scholarships.recreational.dominican.friendship.expanding.provincial.investigations.medications.rochester.advertiser.encryption.downloadable.sophisticated.possession.laboratories.vegetables.thumbnails.stockings.respondent.destroyed.manufacture.wordpress.vulnerability.accountability.celebrate.accredited.appliance.compressed.scheduling.perspectives.mortality.christians.therapeutic.impressive.accordingly.architect.challenging.microwave.accidents.relocation.contributors.violations.temperatures.competitions.discretion.cosmetics.repository.concentrations.christianity.negotiations.realistic.generating.christina.congressional.photographic.modifications.millennium.achieving.fisheries.exceptions.reactions.macromedia.companion.divisions.additionally.fellowship.victorian.copyrights.lithuania.mastercard.chronicles.obtaining.distribute.decorative.enlargement.campaigns.conjunction.instances.indigenous.validation.corruption.incentives.cholesterol.differential.scientist.starsmerchant.arthritis.nevertheless.practitioners.transcript.inflation.compounds.contracting.structured.reasonably.graduates.recommends.controlling.distributors.arlington.particles.extraordinary.indicating.coordinate.exclusively.limitation.widescreen.illustration.construct.inquiries.inspiration.affecting.downloading.aggregate.forecasts.complicated.shopzilla.decorating.expressions.shakespeare.connectors.conflicts.travelers.offerings.incorrect.furnishings.guatemala.perception.renaissance.pathology.ordinance.photographers.infections.configured.festivals.possibilities.contributing.analytical.circulation.assumption.jerusalem.transexuales.invention.technician.executives.enquiries.cognitive.exploring.registrar.supporters.withdrawal.predicted.saskatchewan.cancellation.ministers.veterinary.prostores.relevance.incentive.butterfly.mechanics.numerical.reflection.accompanied.invitation.princeton.spirituality.meanwhile.proprietary.childrens.thumbzilla.porcelain.pichunter.translated.columnists.consensus.delivering.journalism.intention.undertaken.statewide.semiconductor.illustrations.happiness.substantially.identifier.calculations.conducting.accomplished.calculators.impression.correlation.fragrance.neighbors.transparent.charleston.champions.selections.projectors.inappropriate.comparing.vocational.pharmacies.introducing.appreciated.albuquerque.distinguished.projected.assumptions.shareholders.developmental.regulated.anticipated.completing.comparable.confusion.copyrighted.warranties.documented.paperbacks.keyboards.vulnerable.reflected.respiratory.notifications.transexual.mainstream.evaluating.subcommittee.maternity.journalists.foundations.volleyball.liabilities.decreased.tolerance.creativity.describing.lightning.quotations.inspector.bookmarks.behavioral.riverside.bathrooms.abilities.initiated.nonprofit.lancaster.suspended.containers.attitudes.simultaneously.integrate.sociology.screenshot.exhibitions.confident.retrieved.officially.consortium.recipients.delicious.traditions.periodically.hungarian.referring.transform.educators.vegetable.humanities.independently.alignment.henderson.britannica.competitors.visibility.consciousness.encounter.resolutions.accessing.attempted.witnesses.administered.strengthen.frederick.aggressive.advertisements.sublimedirectory.disturbed.determines.sculpture.motivation.pharmacology.passengers.quantities.petersburg.consistently.powerpoint.obituaries.punishment.appreciation.subsequently.providence.restriction.incorporate.backgrounds.treasurer.lightweight.transcription.complications.scripting.remembered.synthetic.testament.specifics.partially.wilderness.generations.tournaments.sponsorship.headphones.proceeding.volkswagen.uncertainty.breakdown.reconstruction.subsidiary.strengths.encouraging.furnished.terrorists.comparisons.beneficial.distributions.viewpicture.threatened.republicans.discusses.responded.abstracts.prediction.pharmaceuticals.thesaurus.individually.battlefield.literally.ecological.appraisal.consisting.submitting.citations.geographical.mozambique.disclaimers.championships.sheffield.finishing.wellington.prospects.bulgarian.aboriginal.remarkable.preventing.productive.boulevard.compliant.penalties.imagination.refurbished.activated.conferencing.armstrong.politicians.trackbacks.accommodate.christine.accepting.precipitation.isolation.sustained.approximate.programmer.greetings.inherited.incomplete.chronicle.legitimate.biographies.investigator.plaintiff.prisoners.mediterranean.nightlife.architects.entrepreneur.freelance.excessive.screensaver.valuation.unexpected.cigarette.characteristic.metallica.consequently.appointments.narrative.academics.quantitative.screensavers.subdivision.distinction.livestock.exemption.sustainability.formatting.nutritional.nicaragua.affiliation.relatives.satisfactory.revolutionary.bracelets.telephony.breathing.thickness.adjustments.graphical.discussing.aerospace.meaningful.maintains.shortcuts.voyeurweb.extending.specifies.accreditation.blackberry.meditation.microphone.macedonia.combining.instrumental.organizing.moderators.kazakhstan.standings.partition.invisible.translations.commodity.kilometers.thanksgiving.guarantees.indication.congratulations.cigarettes.controllers.consultancy.conventions.coordinates.responding.physically.stakeholders.hydrocodone.consecutive.attempting.representations.competing.peninsula.accurately.considers.ministries.vacancies.parliamentary.acknowledge.thoroughly.nottingham.identifies.questionnaire.qualification.modelling.miniature.interstate.consequence.systematic.perceived.madagascar.presenting.troubleshooting.uzbekistan.centuries.magnitude.richardson.fragrances.vocabulary.earthquake.fundraising.geological.assessing.introduces.webmasters.computational.acdbentity.participated.handhelds.answering.impressed.conspiracy.organizer.combinations.preceding.cumulative.amplifier.arbitrary.prominent.lexington.contacted.recorders.occasional.innovations.postcards.reviewing.explicitly.transsexual.citizenship.informative.girlfriend.bloomberg.hierarchy.influenced.abandoned.complement.mauritius.checklist.requesting.lauderdale.scenarios.extraction.elevation.utilization.beverages.calibration.efficiently.entertaining.prerequisite.hypothesis.medicines.regression.enhancements.renewable.intersection.passwords.consistency.collectors.azerbaijan.astrology.occurring.supplemental.travelling.induction.precisely.spreading.provinces.widespread.incidence.incidents.enhancing.interference.palestine.listprice.atmospheric.knowledgestorm.referenced.publicity.proposition.allowance.designation.duplicate.criterion.civilization.vietnamese.tremendous.corrected.encountered.internationally.surrounded.creatures.commented.accomplish.vegetarian.newfoundland.investigated.ambassador.stephanie.contacting.vegetation.findarticles.specially.infectious.continuity.phenomenon.conscious.referrals.differently.integrating.revisions.reasoning.charitable.annotated.convinced.burlington.replacing.researcher.watershed.occupations.acknowledged.equilibrium.characterized.privilege.qualifying.estimation.pediatric.techrepublic.institutes.brochures.traveller.appropriations.suspected.benchmark.beginners.instructors.highlighted.stationery.unauthorized.competent.contributor.demonstrates.gradually.desirable.journalist.afterwards.religions.explosion.signatures.disciplines.daughters.conversations.simplified.motherboard.bibliographic.champagne.deviation.superintendent.housewives.influences.inspections.irrigation.hydraulic.robertson.penetration.conviction.omissions.retrieval.qualities.prototype.importantly.apparatus.explaining.nomination.empirical.dependence.sexuality.polyester.commitments.suggesting.remainder.privileges.televisions.specializing.commodities.motorcycles.concentrate.reproductive.molecules.refrigerator.intervals.sentences.exclusion.workstation.holocaust.receivers.disposition.navigator.investigators.marijuana.cathedral.fairfield.fascinating.landscapes.lafayette.computation.cardiovascular.salvation.predictions.accompanying.selective.arbitration.configuring.editorials.sacrifice.removable.convergence.gibraltar.anthropology.malpractice.reporters.necessity.rendering.hepatitis.nationally.waterproof.specialties.humanitarian.invitations.functioning.economies.alexandria.bacterial.undertake.continuously.achievements.convertible.secretariat.paragraphs.adolescent.nominations.cancelled.introductory.reservoir.occurrence.worcester.demographic.disciplinary.respected.portraits.interpreted.evaluations.elimination.hypothetical.immigrants.complimentary.helicopter.performer.commissions.powerseller.graduated.surprising.unnecessary.dramatically.yugoslavia.characterization.likelihood.fundamentals.contamination.endangered.compromise.expiration.namespace.peripheral.negotiation.opponents.nominated.confidentiality.electoral.changelog.alternatively.greensboro.controversial.recovered.upgrading.frontpage.demanding.defensive.forbidden.programmers.monitored.installations.deutschland.practitioner.motivated.smithsonian.examining.revelation.delegation.dictionaries.greenhouse.transparency.currencies.survivors.positioning.descending.temporarily.frequencies.reflections.municipality.detective.experiencing.fireplace.endorsement.psychiatry.persistent.summaries.looksmart.magnificent.colleague.adaptation.paintball.enclosure.supervisors.westminster.distances.absorption.treasures.transcripts.disappointed.continually.communist.collectible.entrepreneurs.creations.acquisitions.biodiversity.excitement.presently.mysterious.librarian.subsidiaries.stockholm.indonesian.therapist.promising.relaxation.thereafter.commissioners.forwarding.nightmare.reductions.southampton.organisms.telescope.portsmouth.advancement.harassment.generators.generates.replication.inexpensive.receptors.interventions.huntington.internship.aluminium.snowboard.beastality.evanescence.coordinated.shipments.antarctica.chancellor.controversy.legendary.beautifully.antibodies.examinations.immunology.departmental.terminology.gentleman.reproduce.convicted.roommates.threatening.spokesman.activists.frankfurt.encourages.assembled.restructuring.terminals.simulations.sufficiently.conditional.crossword.conceptual.liechtenstein.translator.automobiles.continent.longitude.challenged.telecharger.insertion.instrumentation.constraint.groundwater.strengthening.insulation.infringement.subjective.swaziland.varieties.mediawiki.configurations`.split(`.`),Wb=t.ar?h.useLayoutEffect:h.useEffect,Gb=class{key;ref;icon;title;constructor(e){this.key=e,this.ref={current:null},this.setRefElement=this.setRefElement.bind(this)}setRefElement(e){this.ref={current:e}}},Kb=e=>{let t=e.closest(`#typeahead-menu`);if(!t)return;let n=t.getBoundingClientRect();n.top+n.height>window.innerHeight&&t.scrollIntoView({block:`center`}),n.top<0&&t.scrollIntoView({block:`center`}),e.scrollIntoView({block:`nearest`})};function qb(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top-6&&n.top<=r.bottom+6}var Jb=t.x(`SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND`);function Yb({index:e,isSelected:t,onClick:n,onMouseEnter:r,option:i}){let a=`item`;return t&&(a+=` selected`),(0,_.jsxs)(`li`,{tabIndex:-1,className:a,ref:i.setRefElement,role:`option`,"aria-selected":t,id:`typeahead-item-`+e,onMouseEnter:r,onClick:n,children:[i.icon,(0,_.jsx)(`span`,{className:`text`,children:i.title})]},i.key)}function Xb({close:e,editor:n,anchorElementRef:r,resolution:i,options:a,menuRenderFn:o,onSelectOption:s,shouldSplitNodeWithQuery:c=!1,commandPriority:l=1,preselectFirstItem:u=!0}){let[d,f]=(0,h.useState)(null),p=d===null?null:Math.min(a.length-1,d);(0,h.useEffect)(()=>{u&&f(0)},[i.match&&i.match.matchingString,u]);let m=(0,h.useCallback)(r=>{n.update(()=>{s(r,i.match!=null&&c?function(e){let n=t.tt();if(!t.bn(n)||!n.isCollapsed())return null;let r=n.anchor;if(r.type!==`text`)return null;let i=r.getNode();if(!i.isSimpleText())return null;let a=r.offset,o=i.getTextContent().slice(0,a),s=e.replaceableString.length,c=a-function(e,t,n){let r=n;for(let n=r;n<=t.length;n++)e.slice(-n)===t.substring(0,n)&&(r=n);return r}(o,e.matchingString,s);if(c<0)return null;let l;return c===0?[l]=i.splitText(a):[,l]=i.splitText(c,a),l}(i.match):null,e,i.match?i.match.matchingString:``)})},[n,c,i.match,s,e]),g=(0,h.useCallback)(e=>{let t=n.getRootElement();t!==null&&(t.setAttribute(`aria-activedescendant`,`typeahead-item-`+e),f(e))},[n]),y=(0,h.useCallback)(()=>r.current&&a.length?v.default.createPortal((0,_.jsx)(`div`,{className:`typeahead-popover mentions-menu`,children:(0,_.jsx)(`ul`,{children:a.map((e,t)=>(0,_.jsx)(Yb,{index:t,isSelected:p===t,onClick:()=>{f(t),m(e)},onMouseEnter:()=>{f(t)},option:e},e.key))})}),r.current):null,[r,a,p,m,f]);(0,h.useEffect)(()=>()=>{let e=n.getRootElement();e!==null&&e.removeAttribute(`aria-activedescendant`)},[n]),Wb(()=>{a===null?f(null):p===null&&u&&g(0)},[a,p,g,u]),(0,h.useEffect)(()=>t.Yn(n.registerCommand(Jb,({option:e})=>!(!e.ref||e.ref.current==null)&&(Kb(e.ref.current),!0),l)),[n,g,l]),(0,h.useEffect)(()=>t.Yn(n.registerCommand(t.Qn,e=>{let t=e;if(a!==null&&a.length){let e=p===null||p===a.length-1?0:p+1;g(e);let r=a[e];if(!r)return g(-1),t.preventDefault(),t.stopImmediatePropagation(),!0;r.ref&&r.ref.current&&n.dispatchCommand(Jb,{index:e,option:r}),t.preventDefault(),t.stopImmediatePropagation()}return!0},l),n.registerCommand(t.Cr,e=>{let t=e;if(a!==null&&a.length){let e=p===null||p===0?a.length-1:p-1;g(e);let n=a[e];if(!n)return g(-1),t.preventDefault(),t.stopImmediatePropagation(),!0;n.ref&&n.ref.current&&Kb(n.ref.current),t.preventDefault(),t.stopImmediatePropagation()}return!0},l),n.registerCommand(t.jn,t=>{let n=t;return n.preventDefault(),n.stopImmediatePropagation(),e(),!0},l),n.registerCommand(t.zn,e=>{let t=e;return a!==null&&p!==null&&a[p]!=null&&(t.preventDefault(),t.stopImmediatePropagation(),m(a[p]),!0)},l),n.registerCommand(t.yn,e=>!(a===null||p===null||a[p]==null||e&&e.shiftKey)&&(e!==null&&(e.preventDefault(),e.stopImmediatePropagation()),m(a[p]),!0),l)),[m,e,n,a,p,g,l]);let b=(0,h.useMemo)(()=>({options:a,selectOptionAndCleanUp:m,selectedIndex:p,setHighlightedIndex:f}),[m,p,a]);return o==null?y():o(r,b,i.match?i.match.matchingString:``)}function Zb(e,t){t!=null&&(e.className=t),e.setAttribute(`aria-label`,`Typeahead menu`),e.setAttribute(`role`,`listbox`),e.style.display=`block`,e.style.position=`absolute`}function Qb(e,r,i,a,o=!0){let[s]=t.oi(),c=a??function(e){if(!t.ar)return;let n=e.getRootElement();if(n!==null){let e=n.getRootNode();return t.Gn(e)?e:n.ownerDocument.body}return document.body}(s),l=t.ar?t.E(s.getRootElement()).createElement(`div`):null,u=(0,h.useRef)(l),d=(0,h.useCallback)(()=>{if(u.current===null||c===void 0)return;u.current.style.top=u.current.style.bottom;let t=s.getRootElement(),n=u.current,r=n.firstChild;if(t!==null&&e!==null){let{left:a,top:s,width:l,height:d}=e.getRect(),f=u.current.offsetHeight;if(n.style.top=`${s+f+3+(o?window.pageYOffset:0)}px`,n.style.left=`${a+window.pageXOffset}px`,n.style.height=`${d}px`,n.style.width=`${l}px`,r!==null){r.style.top=`${s}`;let e=r.getBoundingClientRect(),i=e.height,c=e.width,l=t.getBoundingClientRect();a+c>l.right&&(n.style.left=`${l.right-c+window.pageXOffset}px`),(s+i>window.innerHeight||s+i>l.bottom)&&s-l.top>i+d&&(n.style.top=`${s-i-d+(o?window.pageYOffset:0)}px`)}n.isConnected||(Zb(n,i),c.append(n)),n.setAttribute(`id`,`typeahead-menu`),t.setAttribute(`aria-controls`,`typeahead-menu`)}},[s,e,o,i,c]);(0,h.useEffect)(()=>{let t=s.getRootElement();return e!==null&&d(),()=>{t!==null&&t.removeAttribute(`aria-controls`);let e=u.current;e!==null&&e.isConnected&&(e.remove(),e.removeAttribute(`id`))}},[s,d,e]);let f=(0,h.useCallback)(t=>{e!==null&&(t||r(null))},[e,r]);return function(e,r,i,a){let[o]=t.oi();(0,h.useEffect)(()=>{if(r!=null&&e!=null){let e=o.getRootElement(),s=e==null?document.body:n.C(e,!1),c=!1,l=qb(r,s),u=function(){c||=(window.requestAnimationFrame(function(){i(),c=!1}),!0);let e=qb(r,s);e!==l&&(l=e,a?.(e))},d=new ResizeObserver(i),f=t.vr(e??r);return d.observe(r),t.Yn(t.yt(window,`resize`,i),t.yt(document,`scroll`,u,{capture:!0,passive:!0}),...f.map(e=>t.yt(e,`scroll`,u,{capture:!0,passive:!0})),()=>d.unobserve(r))}},[r,o,a,i,e])}(e,u.current,d,f),l!=null&&l===u.current&&(Zb(l,i),c?.append(l)),u}function $b({options:e,nodeKey:n,onClose:r,onOpen:i,onSelectOption:a,menuRenderFn:o,anchorClassName:s,commandPriority:c=1,parent:l}){let[u]=t.oi(),[d,f]=(0,h.useState)(null),p=Qb(d,f,s,l),m=(0,h.useCallback)(()=>{f(null),r!=null&&d!==null&&r()},[r,d]),g=(0,h.useCallback)(e=>{f(e),i!=null&&d===null&&i(e)},[i,d]),v=(0,h.useCallback)(()=>{n?u.update(()=>{let e=t.Ht(n),r=u.getElementByKey(n);e!=null&&r!=null&&d==null&&(0,h.startTransition)(()=>g({getRect:()=>r.getBoundingClientRect()}))}):n==null&&d!=null&&m()},[m,u,n,g,d]);return(0,h.useEffect)(()=>{v()},[v,n]),(0,h.useEffect)(()=>{if(n!=null)return u.registerUpdateListener(({dirtyElements:e})=>{e.get(n)&&v()})},[u,v,n]),p.current===null||d===null||u===null?null:(0,_.jsx)(Xb,{close:m,resolution:d,editor:u,anchorElementRef:p,options:e,menuRenderFn:o,onSelectOption:a,commandPriority:c})}var ex=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,tx=t.x(`INSERT_EMBED_COMMAND`),nx=class extends Gb{title;onSelect;constructor(e,t){super(e),this.title=e,this.onSelect=t.onSelect.bind(this)}};function rx({embedConfigs:e,onOpenEmbedModalForConfig:n,getMenuOptions:r,menuRenderFn:i,menuCommandPriority:o=1}){let[s]=t.oi(),[c,l]=(0,h.useState)(null),[u,d]=(0,h.useState)(null),f=(0,h.useCallback)(()=>{l(null),d(null)},[]),p=(0,h.useCallback)(async n=>{let r=s.read(`latest`,function(){let e=t.Ht(n);if(a.X(e))return e.getURL()});if(r!==void 0)for(let t of e)await Promise.resolve(t.parseUrl(r))!=null&&(d(t),l(n))},[s,e]);(0,h.useEffect)(()=>t.Yn(...[a.Q,a.Z].map(e=>s.registerMutationListener(e,(...e)=>((e,{updateTags:t,dirtyLeaves:n})=>{for(let[r,i]of e)i===`created`&&t.has(`paste`)&&n.size<=3?p(r):r===c&&f()})(...e),{skipInitialization:!0}))),[p,s,c,f]),(0,h.useEffect)(()=>{if(n)return s.registerCommand(tx,t=>{let r=e.find(({type:e})=>e===t);return!!r&&(n(r),!0)},0)},[s,e,n]);let m=(0,h.useCallback)(async function(){if(u!=null&&c!=null){let e=s.read(`latest`,()=>{let e=t.Ht(c);return a.X(e)?e:null});if(a.X(e)){let n=await Promise.resolve(u.parseUrl(e.__url));n!=null&&s.update(()=>{t.tt()||e.selectEnd(),u.insertNode(s,n),e.isAttached()&&e.remove()})}}},[u,s,c]),g=(0,h.useMemo)(()=>u!=null&&c!=null?r(u,m,f):[],[u,m,r,c,f]),v=(0,h.useCallback)((e,t,n)=>{s.update(()=>{e.onSelect(t),n()})},[s]);return c==null?null:(0,_.jsx)($b,{nodeKey:c,onClose:f,onSelectOption:v,options:g,menuRenderFn:i,commandPriority:o})}function ix(){let[e,t]=(0,h.useState)(null),n=(0,h.useCallback)(()=>{t(null)},[]);return[(0,h.useMemo)(()=>{if(e===null)return null;let{title:t,content:r,closeOnClickOutside:i}=e;return(0,_.jsx)(o.f,{onClose:n,title:t,closeOnClickOutside:i,children:r})},[e,n]),(0,h.useCallback)((e,r,i=!1)=>{t({closeOnClickOutside:i,content:r(n),title:e})},[n])]}function ax({children:e}){return(0,_.jsx)(`div`,{className:`DialogButtonsList d-flex flex-column gap-3 mt-3`,children:e})}function ox({"data-test-id":e,children:t}){return(0,_.jsx)(`div`,{className:`DialogActions d-flex justify-content-end mt-3`,"data-test-id":e,children:t})}function sx({children:e,format:r,nodeKey:i,className:a}){let[o]=t.oi(),[s,l,u]=c.t(i),d=(0,h.useRef)(null);return(0,h.useEffect)(()=>t.Yn(o.registerCommand(t.tr,e=>{if(s){let r=t.tt();if(t.Fr(r)){let n=t.Ht(i);cn(n)&&n.setFormat(e)}else if(t.bn(r)){let t=r.getNodes();for(let r of t)cn(r)?r.setFormat(e):n.o(r).setFormat(e)}return!0}return!1},1),o.registerCommand(t.K,e=>t.Zn(e)===d.current&&(e.preventDefault(),e.shiftKey||u(),l(!s),!0),1)),[u,o,s,i,l]),(0,_.jsx)(`div`,{className:[a.base,s?a.focus:null].filter(Boolean).join(` `),ref:d,style:{textAlign:r||void 0},children:e})}var cx=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,lx=`allow-scripts allow-same-origin allow-popups allow-forms`,ux=560,dx=315;function fx(e){if(e===null)return`inherit`;let t=Number.parseInt(e,10);return Number.isNaN(t)?`inherit`:t}function px({className:e,format:n,height:r,nodeKey:o,url:s,width:u}){let[d]=t.oi(),f=l.t(),[p,m,g]=c.t(o),[v,y]=(0,h.useState)(!1),b=(0,h.useRef)(null),x=(0,h.useRef)(null);(0,h.useEffect)(()=>{if(!f){p&&g();return}return d.registerCommand(t.K,e=>{if(v)return!0;let n=e.target;return b.current!==null&&t.Ln(n)&&b.current.contains(n)?(e.shiftKey||g(),m(!p),!0):!1},1)},[g,d,f,v,p,m]);let S=(0,h.useCallback)(()=>{y(!0)},[]),C=(0,h.useCallback)((e,n)=>{setTimeout(()=>{y(!1)},200),d.update(()=>{let r=t.Ht(o);_x(r)&&r.setWidthAndHeight(e,n)})},[d,o]),w=(p||v)&&f,T=f&&!p;return(0,_.jsx)(sx,{className:e,format:n,nodeKey:o,children:(0,_.jsxs)(`div`,{className:`editor-media website-embed${w?` focused`:``}`,ref:b,style:{height:r===`inherit`?dx:r,width:u===`inherit`?ux:u},children:[(0,_.jsx)(`iframe`,{className:`website-embed__frame`,src:a.C(s),allow:cx,allowFullScreen:!0,loading:`lazy`,referrerPolicy:`no-referrer`,sandbox:lx,style:{pointerEvents:v?`none`:void 0},title:`Website embed`}),T&&(0,_.jsx)(`div`,{className:`website-embed__shield`,"data-testid":`website-shield`}),w&&(0,_.jsx)(i.t,{buttonRef:x,captionsEnabled:!1,editor:d,mediaRef:b,onResizeEnd:C,onResizeStart:S,setShowCaption:()=>void 0,showCaption:!0})]})})}function mx(e){let t=e.getAttribute(`data-lexical-website`);return t?{node:gx(t,fx(e.getAttribute(`width`)),fx(e.getAttribute(`height`)))}:null}var hx=class e extends sn{__url;__width;__height;static getType(){return`website`}static clone(t){return new e(t.__url,t.__width,t.__height,t.__format,t.__key)}static importJSON(e){let{url:t,width:n,height:r}=e;return gx(t,n,r).updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),height:this.__height,url:this.__url,width:this.__width}}constructor(e,t=`inherit`,n=`inherit`,r,i){super(r,i),this.__url=e,this.__width=t,this.__height=n}exportDOM(){let e=document.createElement(`iframe`);return e.setAttribute(`data-lexical-website`,this.__url),e.setAttribute(`width`,String(this.__width===`inherit`?ux:this.__width)),e.setAttribute(`height`,String(this.__height===`inherit`?dx:this.__height)),e.setAttribute(`src`,a.C(this.__url)),e.setAttribute(`frameborder`,`0`),e.setAttribute(`allow`,cx),e.setAttribute(`allowfullscreen`,`true`),e.setAttribute(`loading`,`lazy`),e.setAttribute(`referrerpolicy`,`no-referrer`),e.setAttribute(`sandbox`,lx),e.setAttribute(`title`,`Website embed`),{element:e}}static importDOM(){return{iframe:e=>e.hasAttribute(`data-lexical-website`)?{conversion:mx,priority:1}:null}}updateDOM(){return!1}getUrl(){return this.__url}getWidth(){return this.__width}getHeight(){return this.__height}setWidthAndHeight(e,t){let n=this.getWritable();n.__width=e,n.__height=t}getTextContent(e,t){return this.__url}decorate(e,t){let n=t.theme.embedBlock||{};return(0,_.jsx)(px,{className:{base:n.base||``,focus:n.focus||``},format:this.__format,height:this.__height,nodeKey:this.getKey(),url:this.__url,width:this.__width})}};function gx(e,t=`inherit`,n=`inherit`){return new hx(e,t,n)}function _x(e){return e instanceof hx}var vx=t.x(`INSERT_WEBSITE_COMMAND`);function yx(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([hx]))throw Error(`WebsitePlugin: WebsiteNode not registered on editor`);return e.registerCommand(vx,e=>(n.n(gx(e)),!0),0)},[e]),null}var bx=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,xx=560,Sx=315;function Cx(e){if(e===null)return`inherit`;let t=Number.parseInt(e,10);return Number.isNaN(t)?`inherit`:t}function wx({className:e,format:n,height:r,nodeKey:a,videoID:o,width:s}){let[u]=t.oi(),d=l.t(),[f,p,m]=c.t(a),[g,v]=(0,h.useState)(!1),y=(0,h.useRef)(null),b=(0,h.useRef)(null);(0,h.useEffect)(()=>{if(!d){f&&m();return}return u.registerCommand(t.K,e=>{if(g)return!0;let n=e.target;return y.current!==null&&t.Ln(n)&&y.current.contains(n)?(e.shiftKey||m(),p(!f),!0):!1},1)},[m,u,d,g,f,p]);let x=(0,h.useCallback)(()=>{v(!0)},[]),S=(0,h.useCallback)((e,n)=>{setTimeout(()=>{v(!1)},200),u.update(()=>{let r=t.Ht(a);Ox(r)&&r.setWidthAndHeight(e,n)})},[u,a]),C=(f||g)&&d,w=d&&!f;return(0,_.jsx)(sx,{className:e,format:n,nodeKey:a,children:(0,_.jsxs)(`div`,{className:`editor-media youtube-embed${C?` focused`:``}`,ref:y,style:{height:r===`inherit`?Sx:r,width:s===`inherit`?xx:s},children:[(0,_.jsx)(`iframe`,{className:`youtube-embed__frame`,src:`https://www.youtube-nocookie.com/embed/${o}`,allow:bx,allowFullScreen:!0,style:{pointerEvents:g?`none`:void 0},title:`YouTube video`}),w&&(0,_.jsx)(`div`,{className:`youtube-embed__shield`,"data-testid":`youtube-shield`}),C&&(0,_.jsx)(i.t,{buttonRef:b,captionsEnabled:!1,editor:u,mediaRef:y,onResizeEnd:S,onResizeStart:x,setShowCaption:()=>void 0,showCaption:!0})]})})}function Tx(e){let t=e.getAttribute(`data-lexical-youtube`);return t?{node:Dx(t,Cx(e.getAttribute(`width`)),Cx(e.getAttribute(`height`)))}:null}var Ex=class e extends sn{__id;__width;__height;static getType(){return`youtube`}static clone(t){return new e(t.__id,t.__width,t.__height,t.__format,t.__key)}static importJSON(e){let{videoID:t,width:n,height:r}=e;return Dx(t,n,r).updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),height:this.__height,videoID:this.__id,width:this.__width}}constructor(e,t=`inherit`,n=`inherit`,r,i){super(r,i),this.__id=e,this.__width=t,this.__height=n}exportDOM(){let e=document.createElement(`iframe`);return e.setAttribute(`data-lexical-youtube`,this.__id),e.setAttribute(`width`,String(this.__width===`inherit`?xx:this.__width)),e.setAttribute(`height`,String(this.__height===`inherit`?Sx:this.__height)),e.setAttribute(`src`,`https://www.youtube-nocookie.com/embed/${this.__id}`),e.setAttribute(`frameborder`,`0`),e.setAttribute(`allow`,bx),e.setAttribute(`allowfullscreen`,`true`),e.setAttribute(`title`,`YouTube video`),{element:e}}static importDOM(){return{iframe:e=>e.hasAttribute(`data-lexical-youtube`)?{conversion:Tx,priority:1}:null}}updateDOM(){return!1}getId(){return this.__id}getWidth(){return this.__width}getHeight(){return this.__height}setWidthAndHeight(e,t){let n=this.getWritable();n.__width=e,n.__height=t}getTextContent(e,t){return`https://www.youtube.com/watch?v=${this.__id}`}decorate(e,t){let n=t.theme.embedBlock||{};return(0,_.jsx)(wx,{className:{base:n.base||``,focus:n.focus||``},format:this.__format,height:this.__height,nodeKey:this.getKey(),videoID:this.__id,width:this.__width})}};function Dx(e,t=`inherit`,n=`inherit`){return new Ex(e,t,n)}function Ox(e){return e instanceof Ex}var kx=t.x(`INSERT_YOUTUBE_COMMAND`);function Ax(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([Ex]))throw Error(`YouTubePlugin: YouTubeNode not registered on editor`);return e.registerCommand(kx,e=>(n.n(Dx(e)),!0),0)},[e]),null}var jx=[{contentName:`Youtube Video`,exampleUrl:`https://www.youtube.com/watch?v=jNQXAC9IVRw`,icon:(0,_.jsx)(`i`,{className:`bi bi-youtube icon`,style:{color:`red`}}),insertNode:(e,t)=>{e.dispatchCommand(kx,t.id)},keywords:[`youtube`,`video`],parseUrl:async e=>{let t=/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/.exec(e),n=t&&t?.[2].length===11?t[2]:null;return n==null?null:{id:n,url:e}},type:`youtube-video`},{contentName:`Website`,buttonLabel:`Embed Website`,exampleUrl:`https://en.wikipedia.org`,icon:(0,_.jsx)(`i`,{className:`bi bi-globe2 icon`}),insertNode:(e,t)=>{e.dispatchCommand(vx,t.url)},keywords:[`website`,`embed`,`iframe`,`page`,`url`],parseUrl:async e=>{let t=e.trim(),n;try{n=new URL(t)}catch{return null}return n.protocol!==`http:`&&n.protocol!==`https:`||/(?:^|\.)(?:youtube\.com|youtu\.be)$/i.test(n.hostname)?null:{id:t,url:t}},type:`website`}];function Mx({index:e,isSelected:t,onClick:n,onMouseEnter:r,option:i}){let a=`item mx-2 p-2 d-flex flex-row align-items-center flex-shrink-0`;return t&&(a+=` selected`),(0,_.jsx)(`li`,{tabIndex:-1,className:a,ref:i.setRefElement,role:`option`,"aria-selected":t,id:`typeahead-item-`+e,onMouseEnter:r,onClick:n,children:(0,_.jsx)(`span`,{className:`text`,children:i.title})},i.key)}function Nx({options:e,selectedItemIndex:t,onOptionClick:n,onOptionMouseEnter:r}){return(0,_.jsx)(`div`,{className:`typeahead-popover`,children:(0,_.jsx)(`ul`,{className:`list-unstyled m-0 p-0`,children:e.map((e,i)=>(0,_.jsx)(Mx,{index:i,isSelected:t===i,onClick:()=>n(e,i),onMouseEnter:()=>r(i),option:e},e.key))})})}var Px=(e,t)=>{let n;return r=>{window.clearTimeout(n),n=window.setTimeout(()=>{e(r)},t)}};function Fx({embedConfig:e,onClose:n}){let[r,i]=(0,h.useState)(``),[a]=t.oi(),[o,s]=(0,h.useState)(null),c=(0,h.useMemo)(()=>Px(t=>{let n=ex.exec(t);e!=null&&t!=null&&n!=null?Promise.resolve(e.parseUrl(t)).then(e=>{s(e)}):o!=null&&s(null)},200),[e,o]);return(0,_.jsxs)(`div`,{style:{width:`600px`},children:[(0,_.jsx)(`div`,{className:`Input__wrapper mb-2`,children:(0,_.jsx)(`input`,{type:`text`,className:`Input__input form-control`,placeholder:e.exampleUrl,value:r,"data-test-id":`${e.type}-embed-modal-url`,onChange:e=>{let{value:t}=e.target;i(t),c(t)}})}),(0,_.jsx)(ox,{children:(0,_.jsx)(u.t,{disabled:!o,onClick:()=>{o!=null&&(e.insertNode(a,o),n())},"data-test-id":`${e.type}-embed-modal-submit-btn`,children:`Embed`})})]})}function Ix(){let[e,t]=ix();return(0,_.jsxs)(_.Fragment,{children:[e,(0,_.jsx)(rx,{embedConfigs:jx,onOpenEmbedModalForConfig:e=>{t(`Embed ${e.contentName}`,t=>(0,_.jsx)(Fx,{embedConfig:e,onClose:t}))},getMenuOptions:(e,t,n)=>[new nx(`Dismiss`,{onSelect:n}),new nx(`Embed ${e.contentName}`,{onSelect:t})],menuRenderFn:(e,{selectedIndex:t,options:n,selectOptionAndCleanUp:r,setHighlightedIndex:i})=>e.current?v.createPortal((0,_.jsx)(`div`,{className:`typeahead-popover auto-embed-menu`,style:{marginLeft:`${Math.max(parseFloat(e.current.style.width)-200,0)}px`,width:200},children:(0,_.jsx)(Nx,{options:n,selectedItemIndex:t,onOptionClick:(e,t)=>{i(t),r(e)},onOptionMouseEnter:e=>{i(e)}})}),e.current):null})]})}function Lx(e,t,n,r){(0,h.useEffect)(()=>{e.hasNodes([a.Z])||function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77)}),(0,h.useEffect)(()=>a.J(e,{changeHandlers:n?[n]:[],excludeParents:r??[],matchers:t}),[e,t,n,r])}function Rx({matchers:e,onChange:n,excludeParents:r}){let[i]=t.oi();return Lx(i,e,n,r),null}var zx=[a.$(/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)(?<![-.+():%])/,e=>e.startsWith(`http`)?e:`https://${e}`),a.$(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)];function Bx(){return(0,_.jsx)(Rx,{matchers:zx})}var Vx=t.x(`START_BLOCK_TEXT_LINK_COMMAND`),Hx=[{kind:`no-direction`,label:`No direction`},{kind:`direction-to`,label:`Direction to second`},{kind:`direction-from`,label:`Direction from second`},{kind:`weak-no-direction`,label:`Weak no direction`},{kind:`weak-direction-to`,label:`Weak direction to second`},{kind:`weak-direction-from`,label:`Weak direction from second`}];function Ux(e,t){return e.anchor?.key===t.anchor?.key&&e.anchor?.offset===t.anchor?.offset&&e.focus?.key===t.focus?.key&&e.focus?.offset===t.focus?.offset&&e.blockKeys.length===t.blockKeys.length&&e.blockKeys.every((e,n)=>e===t.blockKeys[n])}function Wx(e,t){return e.length===t.length&&e.every((e,n)=>{let r=t[n];return r!==void 0&&e.id===r.id&&e.kind===r.kind&&Ux(e.from,r.from)&&Ux(e.to,r.to)})}function Gx(){return`block-text-link-${Date.now()}-${Math.random().toString(36).slice(2)}`}function Kx(e){let t=[],n=e,r=n.getParent();for(;r!==null;){let e=r.getChildren().findIndex(e=>e.getKey()===n.getKey());if(e===-1)return null;t.unshift(e),n=r,r=n.getParent()}return t.length===0?null:t}function qx(e){return Kx(e.getNode())}function Jx(e){let n=t.Dr();for(let r of e){if(!t.vt(n))return null;let e=n.getChildAtIndex(r);if(e===null)return null;n=e}return n}function Yx(e,n){return t.Jt(e)?Math.max(0,Math.min(n,e.getTextContentSize())):t.vt(e)?Math.max(0,Math.min(n,e.getChildrenSize())):n}function Xx(e){return e?.path===void 0?null:{offset:e.offset,path:e.path}}function Zx(e){let t=Xx(e.anchor),n=Xx(e.focus);return t===null||n===null||e.blockPaths===void 0||e.blockPaths.length===0?null:{anchor:t,blockPaths:e.blockPaths,focus:n}}function Qx(e){return e.flatMap(e=>{let t=Zx(e.from),n=Zx(e.to);return t===null||n===null?[]:[{from:t,id:e.id,kind:e.kind,to:n}]})}function $x(e){let t=Jx(e.path);return t===null?null:{key:t.getKey(),offset:Yx(t,e.offset),path:e.path}}function eS(e){let t=$x(e.anchor),n=$x(e.focus),r=e.blockPaths.flatMap(e=>{let t=Jx(e);return t===null?[]:[t.getKey()]});return t===null||n===null||r.length===0?null:{anchor:t,blockKeys:r,blockPaths:e.blockPaths,focus:n}}function tS(e){return e.flatMap(e=>{let t=eS(e.from),n=eS(e.to);return t===null||n===null?[]:[{from:t,id:e.id,kind:e.kind,to:n}]})}function nS(){let e=t.tt();if(!t.bn(e)||typeof e.isCollapsed!=`function`||e.isCollapsed()||e.anchor===void 0||e.focus===void 0)return null;let n=[],r=[],i=new Set,a=qx(e.anchor),o=qx(e.focus);if(a===null||o===null)return null;for(let a of e.getNodes()){let e=t.vt(a)?a.getTopLevelElementOrThrow():a.getTopLevelElement();if(e===null)continue;let o=e.getKey();if(!i.has(o)){let t=Kx(e);if(t===null)continue;i.add(o),n.push(o),r.push(t)}}return n.length===0?null:{anchor:{key:e.anchor.key,offset:e.anchor.offset,path:a},blockKeys:n,blockPaths:r,focus:{key:e.focus.key,offset:e.focus.offset,path:o}}}function rS(e){let t=iS(e);if(!(t instanceof HTMLElement))return null;let n=t.getBoundingClientRect();if(!(t.hidden||n.width===0||n.height===0||window.getComputedStyle(t).display===`none`))return null;let r=t.closest(`.Collapsible__container`);if(!(r instanceof HTMLElement))return null;let i=r.querySelector(`.Collapsible__title`);return i instanceof HTMLElement?i:r}function iS(e){if(e.classList.contains(`Collapsible__content`))return e;let t=e.closest(`.Collapsible__content`);if(t instanceof HTMLElement)return t;let n=e.classList.contains(`Collapsible__container`)?e:e.closest(`.Collapsible__container`);if(!(n instanceof HTMLElement))return null;let r=n.querySelector(`.Collapsible__content`);return r instanceof HTMLElement?r:null}function aS(e){if(e.length===0)return null;let t=e[0].top,n=e[0].right,r=e[0].bottom,i=e[0].left;for(let a of e.slice(1))t=Math.min(t,a.top),n=Math.max(n,a.right),r=Math.max(r,a.bottom),i=Math.min(i,a.left);return new DOMRect(i,t,n-i,r-t)}function oS(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[],r=t.nextNode();for(;r!==null;){if(r.textContent?.trim()){let e=document.createRange();e.selectNodeContents(r),n.push(...Array.from(e.getClientRects()).map(e=>new DOMRect(e.left,e.top,e.width,e.height))),e.detach()}r=t.nextNode()}return aS(n.filter(e=>e.width>0&&e.height>0))}function sS(e){let t=rS(e);return t===null?null:oS(t)??t.getBoundingClientRect()}function cS(e){return sS(e)??e.getBoundingClientRect()}function lS(e,t){return t.blockKeys.map(t=>e.getElementByKey(t)).filter(e=>e instanceof HTMLElement).map(sS).filter(e=>e!==null).filter(e=>e.width>0&&e.height>0)}function uS(e,t){return t.blockKeys.map(t=>e.getElementByKey(t)).filter(e=>e instanceof HTMLElement).map(cS).filter(e=>e.width>0&&e.height>0)}function dS(e,r){if(r.anchor===void 0||r.focus===void 0)return uS(e,r);let i=e.getEditorState().read(()=>{let i=t.Ht(r.anchor?.key),a=t.Ht(r.focus?.key);if(i===null||a===null)return[];let o=n.k(e,i,r.anchor?.offset??0,a,r.focus?.offset??0);return o===null?[]:n.I(e,o).map(e=>new DOMRect(e.left,e.top,e.width,e.height))}).filter(e=>e.width>0&&e.height>0);return i.length>0?i:lS(e,r)}function fS(e,t,n=1){return e.map(e=>pS(e,t,n))}function pS(e,t,n=1){return new DOMRect((e.left-t.left)/n,(e.top-t.top)/n,e.width/n,e.height/n)}function mS(e){return{x:e.left+e.width/2,y:e.top+e.height/2}}function hS(e,t){return e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom}function gS(e,t){return e.find(e=>[...e.fromRects,...e.toRects].some(e=>hS(t,e)))?.link.id??null}function _S(e,t){let n=t.x2-t.x1,r=t.y2-t.y1,i=n*n+r*r;if(i===0)return Math.hypot(e.x-t.x1,e.y-t.y1);let a=Math.max(0,Math.min(1,((e.x-t.x1)*n+(e.y-t.y1)*r)/i)),o=t.x1+a*n,s=t.y1+a*r;return Math.hypot(e.x-o,e.y-s)}function vS(e,t){return e.find(e=>![...e.fromRects,...e.toRects].some(e=>hS(t,e))&&_S(t,yS(e.fromRect,e.toRect))<=7)?.link.id??null}function yS(e,t){let n=mS(e),r=mS(t);return{x1:n.x,x2:r.x,y1:n.y,y2:r.y}}function bS(e){return e===`weak-no-direction`||e.startsWith(`weak-direction`)}function xS(e){return e===`direction-from`||e===`weak-direction-from`?`url(#block-text-link-arrow)`:void 0}function SS(e){return e===`direction-to`||e===`weak-direction-to`?`url(#block-text-link-arrow)`:void 0}function CS(e,t,n){let i=e.getBoundingClientRect(),a=r.n(e);return{x:(t-i.left)/a,y:(n-i.top)/a}}function wS({activeLink:e,editor:t,onChangeKind:n,onClose:r,onReplaceRange:i,onRemove:a}){let o=(0,h.useRef)(null),s=t.getEditorState().read(()=>nS());(0,h.useEffect)(()=>{o.current?.focus({preventScroll:!0})},[e.link.id]);let c=t=>{s!==null&&i(e.link.id,t,s)};return(0,_.jsxs)(`div`,{className:`block-text-link-controls`,onBlur:e=>{let t=e.relatedTarget;(!(t instanceof Node)||!e.currentTarget.contains(t))&&r()},onKeyDown:e=>{e.key===`Escape`&&(e.stopPropagation(),r())},ref:o,style:{left:e.midpoint.x,top:e.midpoint.y},tabIndex:-1,children:[(0,_.jsx)(`div`,{className:`block-text-link-controls-section`,children:Hx.map(t=>(0,_.jsx)(`button`,{className:t.kind===e.link.kind?`active`:void 0,onClick:()=>n(e.link.id,t.kind),type:`button`,children:t.label},t.kind))}),(0,_.jsxs)(`div`,{className:`block-text-link-controls-section`,children:[(0,_.jsx)(`button`,{disabled:s===null,onClick:()=>c(`from`),type:`button`,children:`Use selection as first`}),(0,_.jsx)(`button`,{disabled:s===null,onClick:()=>c(`to`),type:`button`,children:`Use selection as second`})]}),(0,_.jsx)(`button`,{className:`danger`,onClick:()=>a(e.link.id),type:`button`,children:`Remove link`})]})}function TS({anchorElem:e}){let[n]=t.oi(),i=l.t(),[a,o]=(0,h.useState)([]),[s,c]=(0,h.useState)([]),[u,d]=(0,h.useState)(null),[f,p]=(0,h.useState)(null),[m,g]=(0,h.useState)(null),[y,b]=(0,h.useState)(null),x=(0,h.useRef)(null),S=(0,h.useRef)([]),C=(0,h.useRef)(null),w=(0,h.useRef)([]),T=(0,h.useRef)([]),E=(0,h.useCallback)(t=>{C.current=t,g(t),b(t===null||x.current===null?null:CS(e,x.current.x,x.current.y))},[e]),D=(0,h.useCallback)(()=>{n.dispatchCommand(t.v,T.current.length>0),n.dispatchCommand(t.Ur,w.current.length>0)},[n]),O=(0,h.useCallback)(e=>{S.current=e,tr(Qx(e)),o(e),p(t=>t!==null&&e.some(e=>e.id===t)?t:null),d(t=>t!==null&&e.some(e=>e.id===t)?t:null),E(null),D()},[D,E]);(0,h.useEffect)(()=>{let e=er();if(e.length===0)return;let t=n.getEditorState().read(()=>tS(e));t.length>0&&O(t)},[n,O]);let k=(0,h.useCallback)(e=>{if(!n.isEditable())return;let t=S.current,r=e(t);r===t||Wx(t,r)||(T.current.push(t),w.current=[],O(r))},[n,O]),A=(0,h.useCallback)(()=>{if(!n.isEditable())return!1;let e=T.current.pop();return e===void 0?!1:(w.current.push(S.current),O(e),!0)},[n,O]),j=(0,h.useCallback)(()=>{if(!n.isEditable())return!1;let e=w.current.pop();return e===void 0?!1:(T.current.push(S.current),O(e),!0)},[n,O]);(0,h.useEffect)(()=>{i||(E(null),p(null))},[i,E]);let M=(0,h.useCallback)(()=>{let t=e.getBoundingClientRect(),i=r.n(e),o=a.flatMap(e=>{let r=dS(n,e.from),a=dS(n,e.to),o=aS(r),s=aS(a);if(o===null||s===null)return[];let c=pS(o,t,i),l=pS(s,t,i),u=fS(r,t,i),d=fS(a,t,i),f=mS(c),p=mS(l);return[{fromRect:c,fromRects:u,link:e,midpoint:{x:(f.x+p.x)/2,y:(f.y+p.y)/2},toRect:l,toRects:d}]});c(o)},[e,n,a]);(0,h.useEffect)(()=>{M()},[M]),(0,h.useEffect)(()=>{let t=e.parentElement,n=()=>M();return window.addEventListener(`resize`,n),t!==null&&t.addEventListener(`scroll`,n),()=>{window.removeEventListener(`resize`,n),t!==null&&t.removeEventListener(`scroll`,n)}},[e,M]),(0,h.useEffect)(()=>{let t=t=>{x.current={x:t.clientX,y:t.clientY},C.current!==null&&b(CS(e,t.clientX,t.clientY)),d(gS(s,CS(e,t.clientX,t.clientY)))},n=t=>{let n=vS(s,CS(e,t.clientX,t.clientY));n!==null&&p(n)};return document.addEventListener(`mousemove`,t),document.addEventListener(`click`,n),()=>{document.removeEventListener(`mousemove`,t),document.removeEventListener(`click`,n)}},[e,s]),(0,h.useEffect)(()=>{if(m===null)return;let e=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),E(null))};return document.addEventListener(`keydown`,e,!0),()=>{document.removeEventListener(`keydown`,e,!0)}},[m,E]),(0,h.useEffect)(()=>{if(!i)return;let e=n.getRootElement();if(e===null)return;let t=()=>{let e=C.current;e!==null&&window.setTimeout(()=>{let t=n.getEditorState().read(()=>nS());t===null||Ux(e,t)||k(n=>[...n,{from:e,id:Gx(),kind:`no-direction`,to:t}])},0)};return e.addEventListener(`mouseup`,t),()=>{e.removeEventListener(`mouseup`,t)}},[k,n,i]),(0,h.useEffect)(()=>t.Yn(n.registerCommand(Vx,()=>{if(!n.isEditable())return E(null),!0;let e=nS();return e===null?(E(null),!0):(p(null),E(e),!0)},0),n.registerCommand(t.hn,()=>(T.current=[],w.current=[],O([]),!1),0),n.registerCommand(t.Tt,()=>A(),4),n.registerCommand(t.nn,()=>j(),4),n.registerCommand(t.jn,e=>C.current===null?!1:(e.preventDefault(),e.stopPropagation(),E(null),!0),4),n.registerCommand(t.F,()=>(M(),!1),0),n.registerUpdateListener(()=>{M()})),[n,i,j,E,O,A,M]);let N=(0,h.useMemo)(()=>s.find(e=>e.link.id===f),[s,f]);return(0,v.createPortal)((0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`svg`,{className:`block-text-link-layer`,children:[(0,_.jsx)(`defs`,{children:(0,_.jsx)(`marker`,{id:`block-text-link-arrow`,markerHeight:`8`,markerWidth:`10`,orient:`auto-start-reverse`,refX:`9`,refY:`4`,children:(0,_.jsx)(`path`,{d:`M 0 0 L 10 4 L 0 8 z`})})}),s.map(e=>{let{x1:t,x2:n,y1:r,y2:i}=yS(e.fromRect,e.toRect),a=e.link.id===f,o=a||e.link.id===u;return(0,_.jsxs)(`g`,{className:`block-text-link `+(a?`selected `:``)+(o?`focused`:`dimmed`),children:[e.fromRects.map((e,t)=>(0,_.jsx)(`rect`,{className:`range-outline`,height:e.height,width:e.width,x:e.left,y:e.top},`from-${t}`)),e.toRects.map((e,t)=>(0,_.jsx)(`rect`,{className:`range-outline`,height:e.height,width:e.width,x:e.left,y:e.top},`to-${t}`)),(0,_.jsx)(`line`,{className:bS(e.link.kind)?`weak`:void 0,markerEnd:SS(e.link.kind),markerStart:xS(e.link.kind),x1:t,x2:n,y1:r,y2:i})]},e.link.id)})]}),m===null?null:(0,_.jsxs)(`div`,{className:`block-text-link-pending`,style:y===null?void 0:{left:y.x,top:y.y},children:[(0,_.jsx)(`i`,{className:`bi bi-bezier2`}),(0,_.jsx)(`span`,{children:`Select second range`})]}),N!==void 0&&i?(0,_.jsx)(wS,{activeLink:N,editor:n,onChangeKind:(e,t)=>{k(n=>n.map(n=>n.id===e&&n.kind!==t?{...n,kind:t}:n))},onClose:()=>p(null),onRemove:e=>{k(t=>t.filter(t=>t.id!==e))},onReplaceRange:(e,t,n)=>{k(r=>r.map(r=>r.id===e?{...r,[t]:n}:r))}}):null]}),e)}function ES(e,t,n={}){let{maxWait:r}=n,i=null,a=null,o=null,s=()=>{i!==null&&(clearTimeout(i),i=null),a!==null&&(clearTimeout(a),a=null)},c=()=>{let t=o;o=null,s(),t!==null&&e(...t)},l=(...e)=>{o=e,i!==null&&clearTimeout(i),i=setTimeout(c,t),r!==void 0&&a===null&&(a=setTimeout(c,r))};return l.cancel=()=>{o=null,s()},l}function DS(e,t,n){let r=(0,h.useRef)(null);return r.current=e,(0,h.useMemo)(()=>ES((...e)=>{r.current&&r.current(...e)},t,{maxWait:n}),[t,n])}function OS({editor:e,getCodeDOMNode:n}){let[r,i]=(0,h.useState)(!1),a=DS(()=>{i(!1)},1e3);async function o(){let r=n();if(!r)return;let o=``;e.update(()=>{let e=t.Yt(r);W(e)&&(o=e.getTextContent()),t.En(t.tt())});try{await navigator.clipboard.writeText(o),i(!0),a()}catch(e){console.error(`Failed to copy: `,e)}}return(0,_.jsx)(`button`,{className:`menu-item`,onClick:o,"aria-label":`copy`,children:r?(0,_.jsx)(`i`,{className:`bi bi-check2 format`}):(0,_.jsx)(`i`,{className:`bi bi-copy format`})})}var kS={css:[()=>Promise.resolve().then(()=>e.a(require("./chunks/postcss-CBqGx49S.cjs").default,1))],html:[()=>Promise.resolve().then(()=>e.a(require("./chunks/html-BNLifDHL.cjs").default,1))],js:[()=>Promise.resolve().then(()=>e.a(require("./chunks/babel-MozgJABr.cjs").default,1)),()=>Promise.resolve().then(()=>require("./chunks/estree-D9-Mqvk8.cjs"))],markdown:[()=>Promise.resolve().then(()=>e.a(require("./chunks/markdown-Dku-nJTv.cjs").default,1))],typescript:[()=>Promise.resolve().then(()=>e.a(require("./chunks/typescript-CqC8sjyH.cjs").default,1)),()=>Promise.resolve().then(()=>require("./chunks/estree-D9-Mqvk8.cjs"))]};async function AS(e){let t=kS[e];return await Promise.all(t.map(e=>e()))}async function jS(){let{format:e}=await Promise.resolve().then(()=>require("./chunks/standalone-BZsqY5oq.cjs"));return e}var MS={css:{parser:`css`},html:{parser:`html`},js:{parser:`babel`},markdown:{parser:`markdown`},typescript:{parser:`typescript`}},NS=Object.keys(MS);function PS(e){return NS.includes(e)}function FS(e){let t=MS[e];if(!t)throw Error(`CodeActionMenuPlugin: Prettier does not support this language: ${e}`);return t}function IS({lang:e,editor:n,getCodeDOMNode:r}){let[i,a]=(0,h.useState)(``),[o,s]=(0,h.useState)(!1);async function c(){let i=r();if(!i)return;let o=``;if(n.update(()=>{let e=t.Yt(i);W(e)&&(o=e.getTextContent())}),o!==``)try{let r=await jS(),c=FS(e);c.plugins=(await AS(e)).map(e=>e.default||e);let l=await r(o,c);n.update(()=>{let e=t.Yt(i);W(e)&&(e.select(0).insertText(l),a(``),s(!1))})}catch(e){l(e)}}function l(e){e instanceof Error?(a(e.message),s(!0)):console.error(`Unexpected error: `,e)}function u(){i!==``&&s(!0)}function d(){i!==``&&s(!1)}return(0,_.jsxs)(`div`,{className:`prettier-wrapper`,children:[(0,_.jsx)(`button`,{className:`menu-item`,onClick:c,onMouseEnter:u,onMouseLeave:d,"aria-label":`prettier`,children:i?(0,_.jsx)(`i`,{className:`bi bi-exclamation-circle format`}):(0,_.jsx)(`i`,{className:`bi bi-magic format`})}),o?(0,_.jsx)(`pre`,{className:`code-error-tips`,children:i}):null]})}var LS=8;function RS({anchorElem:e}){let[n]=t.oi(),[i,a]=(0,h.useState)(``),[o,s]=(0,h.useState)(!1),[c,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)({right:`0`,top:`0`}),f=(0,h.useRef)(new Set),p=(0,h.useRef)(null);function m(){return p.current}let g=DS(i=>{let{codeDOMNode:o,isOutside:c}=zS(i);if(c){s(!1);return}if(!o)return;p.current=o;let l=null,u=``;if(n.update(()=>{let e=t.Yt(o);W(e)&&(l=e,u=l.getLanguage()||``)}),l){let{y:t,right:n}=e.getBoundingClientRect(),{y:i,right:c}=o.getBoundingClientRect(),l=r.n(e);a(u),s(!0),d({right:`${(n-c)/l+LS}px`,top:`${(i-t)/l}px`})}},50,1e3);(0,h.useEffect)(()=>{if(c)return document.addEventListener(`mousemove`,g),()=>{s(!1),g.cancel(),document.removeEventListener(`mousemove`,g)}},[c,g]),(0,h.useEffect)(()=>n.registerMutationListener(Fe,e=>{n.getEditorState().read(()=>{for(let[t,n]of e)switch(n){case`created`:f.current.add(t);break;case`destroyed`:f.current.delete(t);break;default:break}}),l(f.current.size>0)},{skipInitialization:!1}),[n]);let v=bt(i),y=yt(i);return(0,_.jsx)(_.Fragment,{children:o?(0,_.jsxs)(`div`,{className:`code-action-menu-container`,style:{...u},children:[(0,_.jsx)(`div`,{className:`code-highlight-language`,children:y}),(0,_.jsx)(OS,{editor:n,getCodeDOMNode:m}),PS(v)?(0,_.jsx)(IS,{editor:n,getCodeDOMNode:m,lang:v}):null]}):null})}function zS(e){let n=e.target;if(t.Sn(n)){let e=n.closest(`code.PlaygroundEditorTheme__code`);return{codeDOMNode:e,isOutside:!(e||n.closest(`div.code-action-menu-container`))}}else return{codeDOMNode:null,isOutside:!0}}function BS({anchorElem:e=document.body}){return(0,v.createPortal)((0,_.jsx)(RS,{anchorElem:e}),e)}function VS(){let[e]=t.oi();return(0,h.useEffect)(()=>St(e),[e]),null}var HS=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function US(e){return WS(e)}function WS(e){return Array.isArray(e)?GS(e):e instanceof RegExp?e:typeof e==`object`?KS(e):e}function GS(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=WS(e[n]);return t}function KS(e){let t={};for(let n in e)t[n]=WS(e[n]);return t}function qS(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function JS(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?JS(e.substring(0,e.length-1)):e.substr(~t+1)}var YS=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,XS=class{static hasCaptures(e){return e===null?!1:(YS.lastIndex=0,YS.test(e))}static replaceCaptures(e,t,n){return e.replace(YS,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function ZS(e,t){return e<t?-1:+(e>t)}function QS(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=ZS(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function $S(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function eC(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var tC=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},nC=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(sC(e),t)}static createFromParsedTheme(e,t){return uC(e,t)}_cachedMatchRoot=new tC(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>iC(e.parent,t.parentScopes));return n?new oC(n.fontStyle,n.foreground,n.background):null}},rC=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function iC(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!aC(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function aC(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var oC=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function sC(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&$S(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&$S(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new cC(l,u,e,o,s,c)}}return n}var cC=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},lC=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(lC||{});function uC(e,t){e.sort((e,t)=>{let n=ZS(e.scope,t.scope);return n!==0||(n=QS(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new dC(t),o=new oC(n,a.getId(r),a.getId(i)),s=new mC(new pC(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new nC(a,o,s)}var dC=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},fC=Object.freeze([]),pC=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||fC,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},mC=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),pC.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(QS(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new pC(e,t,n,r,i))}},hC=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=_C(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function gC(e){return e}function _C(e){return e}function vC(e,t){let n=[],r=bC(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(yC(i)){let e=[];do e.push(i),i=r.next();while(yC(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function yC(e){return!!e&&!!e.match(/[\w\.:]+/)}function bC(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function xC(e){typeof e.dispose==`function`&&e.dispose()}var SC=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},CC=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},wC=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},TC=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new SC(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new wC;for(let n of e)EC(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof SC){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function EC(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof SC?OC({baseGrammar:a,selfGrammar:i},r):DC(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new SC(e))}function DC(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];kC([r],t,n)}}function OC(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&kC(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&kC(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function kC(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?qS({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&kC(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=FC(i);switch(a.kind){case 0:OC({...t,selfGrammar:t.baseGrammar},n);break;case 1:OC(t,n);break;case 2:DC(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?DC(a.ruleName,i,n):OC(i,n)}else a.kind===4?n.add(new CC(a.scopeName,a.ruleName)):n.add(new SC(a.scopeName));break}}}var AC=class{kind=0},jC=class{kind=1},MC=class{constructor(e){this.ruleName=e}kind=2},NC=class{constructor(e){this.scopeName=e}kind=3},PC=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function FC(e){if(e===`$base`)return new AC;if(e===`$self`)return new jC;let t=e.indexOf(`#`);return t===-1?new NC(e):t===0?new MC(e.substring(1)):new PC(e.substring(0,t),e.substring(t+1))}var IC=/\\(\d+)/,LC=/\\(\d+)/g,RC=-1,zC=-2;function BC(e){return e}function VC(e){return e}var HC=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=XS.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=XS.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${JS(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:XS.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:XS.replaceCaptures(this._contentName,e,t)}},UC=class extends HC{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},WC=class extends HC{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new YC(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new XC,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},GC=class extends HC{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new XC,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},KC=class extends HC{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new YC(i,this.id),this.beginCaptures=a,this._end=new YC(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new XC;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},qC=class extends HC{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new YC(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new YC(o,zC),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new XC;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new XC,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},JC=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new UC(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new WC(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=qS({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new GC(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new qC(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new KC(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=FC(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof GC||e instanceof KC||e instanceof qC)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},YC=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=IC.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return LC.lastIndex=0,this.source.replace(LC,(e,t)=>eC(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},XC=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ZC(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new ZC(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ZC=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
863
863
  `)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},QC=class{constructor(e,t){this.languageId=e,this.tokenType=t}},$C=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new QC(e,8),this._embeddedLanguagesMatcher=new ew(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new QC(0,0);_getBasicScopeAttributes=new tC(e=>new QC(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},ew=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>eC(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&process.env.VSCODE_TEXTMATE_DEBUG;var tw=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function nw(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=rw(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new tw(i,!0);f()}return new tw(i,!1);function f(){let o=iw(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===RC){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),lw(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof KC){let r=o;lw(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof qC){let r=o;lw(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(lw(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function rw(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof qC&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=cw(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==zC){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),lw(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function iw(e,t,n,r,i,a){let o=aw(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=ow(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function aw(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=sw(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function ow(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=sw(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function sw(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function cw(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function lw(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));nw(e,p,n&&d.start===0,d.start,f,i,!1,0),xC(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new uw(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var uw=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function dw(e,t,n,r,i,a,o,s){return new hw(e,t,n,r,i,a,o,s)}function fw(e,t,n,r,i){let a=vC(t,pw),o=JC.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function pw(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(mw(t[r],e))return n=r+1,!0;return!1})}function mw(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var hw=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new $C(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=gw(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=vC(e,pw);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)fw(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&fw(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(BC(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[VC(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=gw(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=JC.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===vw.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=hC.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?_w.createRootAndLookUpScopeName(a,r,this):_w.createRoot(`unknown`,r),t=new vw(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
864
864
  `;let a=this.createOnigString(e),o=a.content.length,s=new bw(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=nw(this,a,i,0,t,s,!0,r);return xC(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function gw(e,t){return e=US(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var _w=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=rC.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new rC(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new rC(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),hC.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},vw=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t!==null&&e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?_w.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:VC(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=_w.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,BC(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,_w.fromExtension(r,n.contentNameScopesList))}},yw=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):vC(e,pw).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>vC(e,pw).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},bw=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=hC.set(n,0,gC(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=hC.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},xw=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,dw(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Sw=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new xw(nC.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(nC.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new yw(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new TC(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},Cw=vw.NULL;function ww(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function Tw(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Ew(e){return Array.isArray(e)?e:[e]}async function Dw(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function Ow(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function kw(e){return e===`ansi`||Ow(e)}function Aw(e){return e===`none`}function jw(e){return Aw(e)}var Mw=/(\r?\n)/g;function Nw(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(Mw),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var Pw={light:`#333333`,dark:`#bbbbbb`},Fw={light:`#fffffe`,dark:`#1e1e1e`},Iw=`__shiki_resolved`;function Lw(e){if(e?.[Iw])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?Pw.light:Pw.dark,n||=t.type===`light`?Fw.light:Fw.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,Iw,{enumerable:!1,writable:!1,value:!0}),t}async function Rw(e){return[...new Set((await Promise.all(e.filter(e=>!kw(e)).map(async e=>await Dw(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function zw(e){return(await Promise.all(e.map(async e=>jw(e)?null:Lw(await Dw(e))))).filter(e=>!!e)}function Bw(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new HS(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var Vw=class extends Sw{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Lw(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=nC.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Bw(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new HS(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},Hw=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},Uw=0;function Ww(e){Uw+=1,e.warnings!==!1&&Uw>=10&&Uw%10==0&&console.warn(`[Shiki] ${Uw} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new HS("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Lw),i=new Vw(new Hw(e.engine,n),r,n,e.langAlias),a;function o(t){return Bw(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new HS(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new HS(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await Rw(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await zw(e))}function g(){if(t)throw new HS(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--Uw)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}var Gw=new WeakMap;function Kw(e,t){Gw.set(e,t)}function qw(e){return Gw.get(e)}var Jw=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(Ew(n).map(e=>[e,Cw])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Yw(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Yw(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function Xw(e,t){if(!(e instanceof Jw))throw new HS(`Invalid grammar state`);return e.getInternalStack(t)}var Zw=/,/,Qw=/ /;function $w(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(Ow(e.resolveLangAlias(n.lang||`text`))||Aw(r))return Nw(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new HS(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new HS(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return tT(t,o,i,a,n)}function eT(...e){if(e.length===2)return qw(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(Ow(i)||Aw(a))throw new HS(`Plain language does not have grammar state`);if(i===`ansi`)throw new HS(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new Jw(nT(n,c,o,s,r).stateStack,c.name,o.name)}function tT(e,t,n,r,i){let a=nT(e,t,n,r,i),o=new Jw(a.stateStack,t.name,n.name);return Kw(a.tokens,o),a.tokens}function nT(e,t,n,r,i){let a=ww(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500,includeExplanation:c=!1}=i,l=Nw(e),u=i.grammarState?Xw(i.grammarState,n.name)??Cw:i.grammarContextCode==null?Cw:nT(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,d=[],f=[];for(let e=0,i=l.length;e<i;e++){let[i,p]=l[e];if(i===``){d=[],f.push([]);continue}if(o>0&&i.length>=o){d=[],f.push([{content:i,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;c&&c!==`tokenType`&&(m=t.tokenizeLine(i,u,s),h=m.tokens,g=0);let _=t.tokenizeLine2(i,u,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:i.length;if(t===o)continue;let s=_.tokens[2*e+1],l=Tw(r[hC.getForeground(s)],a),u=hC.getFontStyle(s),f={content:i.substring(t,o),offset:p+t,color:l,fontStyle:u};if(c===`tokenType`)f.type=hC.getTokenType(s);else if(c){let e=[];if(c!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(Zw).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(Qw))})}f.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=i.substring(t.startIndex,t.endIndex);r+=n.length,f.explanation.push({content:n,scopes:c===`scopeName`?rT(t.scopes):iT(e,t.scopes)}),g+=1}}d.push(f)}f.push(d),d=[],u=_.ruleStack}return{tokens:f,stateStack:u}}function rT(e){return e.map(e=>({scopeName:e}))}function iT(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:sT(e,i,t.slice(0,r))}}return n}function aT(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function oT(e,t,n){if(!aT(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)aT(e[r],n[i])&&--r,--i;return r===-1}function sT(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(oT(e,t,n)){r.push(a);break}return r}function cT(e,t,n,r=$w){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:qw(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=lT(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new Jw(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&Kw(s,c),s}function lT(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var uT=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],dT=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};dT.prototype.normal={},dT.prototype.property={},dT.prototype.space=void 0;function fT(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new dT(n,r,t)}function pT(e){return e.toLowerCase()}var mT=class{constructor(e,t){this.attribute=t,this.property=e}};mT.prototype.attribute=``,mT.prototype.booleanish=!1,mT.prototype.boolean=!1,mT.prototype.commaOrSpaceSeparated=!1,mT.prototype.commaSeparated=!1,mT.prototype.defined=!1,mT.prototype.mustUseProperty=!1,mT.prototype.number=!1,mT.prototype.overloadedBoolean=!1,mT.prototype.property=``,mT.prototype.spaceSeparated=!1,mT.prototype.space=void 0;var hT=e.r({boolean:()=>J,booleanish:()=>_T,commaOrSpaceSeparated:()=>xT,commaSeparated:()=>bT,number:()=>Y,overloadedBoolean:()=>vT,spaceSeparated:()=>yT}),gT=0,J=ST(),_T=ST(),vT=ST(),Y=ST(),yT=ST(),bT=ST(),xT=ST();function ST(){return 2**++gT}var CT=Object.keys(hT),wT=class extends mT{constructor(e,t,n,r){let i=-1;if(super(e,t),TT(this,`space`,r),typeof n==`number`)for(;++i<CT.length;){let e=CT[i];TT(this,CT[i],(n&hT[e])===hT[e])}}};wT.prototype.defined=!0;function TT(e,t,n){n&&(e[t]=n)}function ET(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new wT(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[pT(r)]=r,n[pT(a.attribute)]=r}return new dT(t,n,e.space)}var DT=ET({properties:{ariaActiveDescendant:null,ariaAtomic:_T,ariaAutoComplete:null,ariaBusy:_T,ariaChecked:_T,ariaColCount:Y,ariaColIndex:Y,ariaColSpan:Y,ariaControls:yT,ariaCurrent:null,ariaDescribedBy:yT,ariaDetails:null,ariaDisabled:_T,ariaDropEffect:yT,ariaErrorMessage:null,ariaExpanded:_T,ariaFlowTo:yT,ariaGrabbed:_T,ariaHasPopup:null,ariaHidden:_T,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yT,ariaLevel:Y,ariaLive:null,ariaModal:_T,ariaMultiLine:_T,ariaMultiSelectable:_T,ariaOrientation:null,ariaOwns:yT,ariaPlaceholder:null,ariaPosInSet:Y,ariaPressed:_T,ariaReadOnly:_T,ariaRelevant:null,ariaRequired:_T,ariaRoleDescription:yT,ariaRowCount:Y,ariaRowIndex:Y,ariaRowSpan:Y,ariaSelected:_T,ariaSetSize:Y,ariaSort:null,ariaValueMax:Y,ariaValueMin:Y,ariaValueNow:Y,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function OT(e,t){return t in e?e[t]:t}function kT(e,t){return OT(e,t.toLowerCase())}var AT=ET({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:bT,acceptCharset:yT,accessKey:yT,action:null,allow:null,allowFullScreen:J,allowPaymentRequest:J,allowUserMedia:J,alpha:J,alt:null,as:null,async:J,autoCapitalize:null,autoComplete:yT,autoFocus:J,autoPlay:J,blocking:yT,capture:null,charSet:null,checked:J,cite:null,className:yT,closedBy:null,colorSpace:null,cols:Y,colSpan:Y,command:null,commandFor:null,content:null,contentEditable:_T,controls:J,controlsList:yT,coords:Y|bT,crossOrigin:null,data:null,dateTime:null,decoding:null,default:J,defer:J,dir:null,dirName:null,disabled:J,download:vT,draggable:_T,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:J,formTarget:null,headers:yT,height:Y,hidden:vT,high:Y,href:null,hrefLang:null,htmlFor:yT,httpEquiv:yT,id:null,imageSizes:null,imageSrcSet:null,inert:J,inputMode:null,integrity:null,is:null,isMap:J,itemId:null,itemProp:yT,itemRef:yT,itemScope:J,itemType:yT,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:J,low:Y,manifest:null,max:null,maxLength:Y,media:null,method:null,min:null,minLength:Y,multiple:J,muted:J,name:null,nonce:null,noModule:J,noValidate:J,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:J,optimum:Y,pattern:null,ping:yT,placeholder:null,playsInline:J,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:J,referrerPolicy:null,rel:yT,required:J,reversed:J,rows:Y,rowSpan:Y,sandbox:yT,scope:null,scoped:J,seamless:J,selected:J,shadowRootClonable:J,shadowRootCustomElementRegistry:J,shadowRootDelegatesFocus:J,shadowRootMode:null,shadowRootSerializable:J,shape:null,size:Y,sizes:null,slot:null,span:Y,spellCheck:_T,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Y,step:null,style:null,tabIndex:Y,target:null,title:null,translate:null,type:null,typeMustMatch:J,useMap:null,value:_T,width:Y,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yT,axis:null,background:null,bgColor:null,border:Y,borderColor:null,bottomMargin:Y,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:J,declare:J,event:null,face:null,frame:null,frameBorder:null,hSpace:Y,leftMargin:Y,link:null,longDesc:null,lowSrc:null,marginHeight:Y,marginWidth:Y,noResize:J,noHref:J,noShade:J,noWrap:J,object:null,profile:null,prompt:null,rev:null,rightMargin:Y,rules:null,scheme:null,scrolling:_T,standby:null,summary:null,text:null,topMargin:Y,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Y,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:J,disablePictureInPicture:J,disableRemotePlayback:J,exportParts:bT,part:yT,prefix:null,property:null,results:Y,security:null,unselectable:null},space:`html`,transform:kT}),jT=ET({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:xT,accentHeight:Y,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Y,amplitude:Y,arabicForm:null,ascent:Y,attributeName:null,attributeType:null,azimuth:Y,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Y,by:null,calcMode:null,capHeight:Y,className:yT,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Y,diffuseConstant:Y,direction:null,display:null,dur:null,divisor:Y,dominantBaseline:null,download:J,dx:null,dy:null,edgeMode:null,editable:null,elevation:Y,enableBackground:null,end:null,event:null,exponent:Y,externalResourcesRequired:null,fill:null,fillOpacity:Y,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:bT,g2:bT,glyphName:bT,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Y,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Y,horizOriginX:Y,horizOriginY:Y,id:null,ideographic:Y,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Y,k:Y,k1:Y,k2:Y,k3:Y,k4:Y,kernelMatrix:xT,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Y,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Y,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Y,overlineThickness:Y,paintOrder:null,panose1:null,path:null,pathLength:Y,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yT,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Y,pointsAtY:Y,pointsAtZ:Y,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xT,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xT,rev:xT,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xT,requiredFeatures:xT,requiredFonts:xT,requiredFormats:xT,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Y,specularExponent:Y,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Y,strikethroughThickness:Y,string:null,stroke:null,strokeDashArray:xT,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Y,strokeOpacity:Y,strokeWidth:null,style:null,surfaceScale:Y,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xT,tabIndex:Y,tableValues:null,target:null,targetX:Y,targetY:Y,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xT,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Y,underlineThickness:Y,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Y,values:null,vAlphabetic:Y,vMathematical:Y,vectorEffect:null,vHanging:Y,vIdeographic:Y,version:null,vertAdvY:Y,vertOriginX:Y,vertOriginY:Y,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Y,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:OT}),MT=ET({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),NT=ET({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:kT}),PT=ET({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),FT=/[A-Z]/g,IT=/-[a-z]/g,LT=/^data[-\w.:]+$/i;function RT(e,t){let n=pT(t),r=t,i=mT;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&LT.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(IT,BT);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!IT.test(e)){let n=e.replace(FT,zT);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=wT}return new i(r,t)}function zT(e){return`-`+e.toLowerCase()}function BT(e){return e.charAt(1).toUpperCase()}var VT=fT([DT,AT,MT,NT,PT],`html`),HT=fT([DT,jT,MT,NT,PT],`svg`),UT={}.hasOwnProperty;function WT(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&UT.call(t,e)){let n=String(t[e]);i=UT.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var GT=/["&'<>`]/g,KT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qT=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,JT=/[|\\{}()[\]^$+*?.]/g,YT=new WeakMap;function XT(e,t){if(e=e.replace(t.subset?ZT(t.subset):GT,r),t.subset||t.escapeOnly)return e;return e.replace(KT,n).replace(qT,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function ZT(e){let t=YT.get(e);return t||(t=QT(e),YT.set(e,t)),t}function QT(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(JT,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var $T=/[\dA-Fa-f]/;function eE(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!$T.test(String.fromCharCode(t))?r:r+`;`}var tE=/\d/;function nE(e,t,n){let r=`&#`+String(e);return n&&t&&!tE.test(String.fromCharCode(t))?r:r+`;`}var rE=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),iE={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},aE=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],oE={}.hasOwnProperty,sE={},cE;for(cE in iE)oE.call(iE,cE)&&(sE[iE[cE]]=cE);var lE=/[^\dA-Za-z]/;function uE(e,t,n,r){let i=String.fromCharCode(e);if(oE.call(sE,i)){let e=sE[i],a=`&`+e;return n&&rE.includes(e)&&!aE.includes(e)&&(!r||t&&t!==61&&lE.test(String.fromCharCode(t)))?a:a+`;`}return``}function dE(e,t,n){let r=eE(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=uE(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=nE(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function fE(e,t){return XT(e,Object.assign({format:dE},t))}var pE=/^>|^->|<!--|-->|--!>|<!-$/g,mE=[`>`],hE=[`<`,`>`];function gE(e,t,n,r){return r.settings.bogusComments?`<?`+fE(e.value,Object.assign({},r.settings.characterReferences,{subset:mE}))+`>`:`<!--`+e.value.replace(pE,i)+`-->`;function i(e){return fE(e,Object.assign({},r.settings.characterReferences,{subset:hE}))}}function _E(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function vE(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function yE(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function bE(e){return e.join(` `).trim()}var xE=/[ \t\n\f\r]/g;function SE(e){return typeof e==`object`?e.type===`text`&&CE(e.value):CE(e)}function CE(e){return e.replace(xE,``)===``}var wE=DE(1),TE=DE(-1),EE=[];function DE(e){return t;function t(t,n,r){let i=t?t.children:EE,a=(n||0)+e,o=i[a];if(!r)for(;o&&SE(o);)a+=e,o=i[a];return o}}var OE={}.hasOwnProperty;function kE(e){return t;function t(t,n,r){return OE.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var AE=kE({body:NE,caption:jE,colgroup:jE,dd:LE,dt:IE,head:jE,html:ME,li:FE,optgroup:zE,option:BE,p:PE,rp:RE,rt:RE,tbody:HE,td:GE,tfoot:UE,th:GE,thead:VE,tr:WE});function jE(e,t,n){let r=wE(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&SE(r.value.charAt(0)))}function ME(e,t,n){let r=wE(n,t);return!r||r.type!==`comment`}function NE(e,t,n){let r=wE(n,t);return!r||r.type!==`comment`}function PE(e,t,n){let r=wE(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function FE(e,t,n){let r=wE(n,t);return!r||r.type===`element`&&r.tagName===`li`}function IE(e,t,n){let r=wE(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function LE(e,t,n){let r=wE(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function RE(e,t,n){let r=wE(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function zE(e,t,n){let r=wE(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function BE(e,t,n){let r=wE(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function VE(e,t,n){let r=wE(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function HE(e,t,n){let r=wE(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function UE(e,t,n){return!wE(n,t)}function WE(e,t,n){let r=wE(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function GE(e,t,n){let r=wE(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var KE=kE({body:YE,colgroup:XE,head:JE,html:qE,tbody:ZE});function qE(e){let t=wE(e,-1);return!t||t.type!==`comment`}function JE(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function YE(e){let t=wE(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&SE(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function XE(e,t,n){let r=TE(n,t),i=wE(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&AE(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function ZE(e,t,n){let r=TE(n,t),i=wE(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&AE(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var QE={name:[[`
865
865
  \f\r &/=>`.split(``),`
@@ -1011,14 +1011,13 @@ XID_Start XIDS`.split(/\s/).map(e=>[Mk(e),e])),TA=new Map([[`s`,uA(383)],[uA(383
1011
1011
  ]`:`(?>\r
1012
1012
  ?|[
1013
1013
  \v\f…\u2028\u2029])`),t));else if(c===`posix`)if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${uA(e.codePointAt(0)-1)}${uA(e.codePointAt(2)+1)}-\u{10FFFF}`),n(nj($A(`[${e}]`),t))}else n(nj(ej($A(OA.get(u)),l),t));else if(c===`property`)wA.has(Mk(u))||(e.key=`sc`);else if(c===`space`)n(tj(wk(`space`,{negate:l}),t));else if(c===`word`)n(nj(ej($A(SA),l),t));else throw Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`)if(!c.enable&&!c.disable)r();else{let e=_k({flags:c});e.body[0].body=o(),i(nj(e,t),{traverse:!0})}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&JO(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(X`Uses "\K" in a way that's unsupported`);let o=vk({behind:!0});o.body[0].body=a(),i(nj(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(nj(vk({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=_k();t.body[0].body.push(e.body),e.body=nj(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=qA(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(X`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!QA(n)&&(n=UA(n,t),e.ref=n)}},FA={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=tj(VA(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&mA(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=mA(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=pA(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&!(n.type===`CapturingGroup`&&(n.name===a||n.number===a)););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?VA(0):BA(o,r.groupOriginByCopy,null),l=c;if(!s){let e=WA(HA(o,e=>e.type===`Group`&&!!e.flags)),t=e?pA(r.globalFlags,e):r.globalFlags;RA(t,r.currentFlags)||(l=_k({flags:GA(t)}),l.body[0].body.push(c))}n(nj(l,t),{traverse:!s})}},IA={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>zA(t,e));i.length?i.length>1?n(nj(_k({atomic:!0,body:i.reverse().map(e=>sk({body:[lk(e.number)]}))}),t)):e.ref=i[0].number:n(nj(vk({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=uk();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function LA(e){Fk(e,{"*"({node:e,parent:t}){e.parent=t}})}function RA(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function zA(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=KA(n.parent);for(let r of t){if(r===n)break;if(r===e||JA(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function BA(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=BA(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function VA(e){let t=Ck(e);return t.isRecursive=!0,t}function HA(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function UA(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function WA(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function GA({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function KA(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function qA(e){let t=e.find(e=>e.kind===`search_start`||ZA(e,{negate:!1})||!YA(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=qA(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function JA(e,t){let n=KA(e)??[];for(let e of n)if(e===t||JA(e,t))return!0;return!1}function YA({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function XA(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function ZA(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&JO(e.body[0],{type:`Assertion`,kind:`search_start`})}function QA(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function $A(e,t){let n=ZO(e,{...t,unicodePropertyMap:wA}).body;return n.length>1||n[0].body.length>1?_k({body:n}):n[0].body[0]}function ej(e,t){return e.negate=t,e}function tj(e,t){return e.parent=t,e}function nj(e,t){return LA(e),e.parent=t,e}function rj(e,t){let n=yA(t),r=hA(n.target,`ES2024`),i=hA(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];Fk(e,ij,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,gA(aj[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&mA(f._captureTransfers,e.transferTo,[]).push(t)}),f}var ij={"*":{enter({node:e},t){if(_j(e)){let n=t.getCurrentModI();t.pushModI(e.flags?pA({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){_j(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){dj(uA(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),fj(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&MA.has(e.value)&&t.setHasCasedChar()}},aj={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?X`\B`:X`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=uA(e),r=pj(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&dj(n)){let e=CA(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);dA.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(yj)&&(o=[dk(45),...o.filter(e=>!yj(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||dA.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=_k(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=sk({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(dA.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=pj(n,i),o=pj(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&mj(fj(e)).forEach(e=>{s.add(Array.isArray(e)?`${pj(e[0],i)}-${pj(e[1],i)}`:pj(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:X`[^\n]`;if(e===`digit`)return t?X`\D`:X`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&MA.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?X`\P`:X`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?X`\W`:X`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=pA(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${hj(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+gj(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:X`\g<${t}&R=${r}>`}},oj=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),sj=new Set([`-`,`\\`,`]`,`^`,`[`]),cj=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),lj=new Map([[9,X`\t`],[10,X`\n`],[11,X`\v`],[12,X`\f`],[13,X`\r`],[8232,X`\u2028`],[8233,X`\u2029`],[65279,X`\uFEFF`]]),uj=/^\p{Cased}$/u;function dj(e){return uj.test(e)}function fj(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=uA(e);if(!dj(t))continue;let o=CA(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function pj(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(lj.has(e))return lj.get(e);if(e<32||e>126&&e<160||e>262143||t&&vj(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?cj:sj:oj,a=uA(e);return(i.has(a)?`\\`:``)+a}function mj(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function hj(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function gj({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function _j({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function vj(e){return e>47&&e<58}function yj({type:e,value:t}){return e===`Character`&&t===45}var bj=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=Sj(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(xj(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=Cj(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function xj(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function Sj(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)mA(n,t,{}).transferTo=e;return n}function Cj(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function wj(e,t){let n=Tj(e,t);return n.options?new bj(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Tj(e,t){let n=yA(t),r=NA(ZO(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:wA}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=rj(r,n),a=iA(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=Jk(Zk(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}function Ej(e,t){return wj(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Dj(e={}){let t={target:`auto`,cache:new Map,...e};return t.regexConstructor||=e=>Ej(e,{target:t.target}),{createScanner(e){return new rO(e,t)},createString(e){return{content:e}}}}var Oj=[{id:`abap`,name:`ABAP`,import:(()=>Promise.resolve().then(()=>require("./chunks/abap-CQem6H7A.cjs")))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>Promise.resolve().then(()=>require("./chunks/actionscript-3-CANFACWl.cjs")))},{id:`ada`,name:`Ada`,import:(()=>Promise.resolve().then(()=>require("./chunks/ada-c6uiL-cl.cjs")))},{id:`angular-html`,name:`Angular HTML`,import:(()=>Promise.resolve().then(()=>require("./chunks/angular-html-CRXZrNdH.cjs")).then(e=>e.n))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>Promise.resolve().then(()=>require("./chunks/angular-ts-CblWb72j.cjs")))},{id:`apache`,name:`Apache Conf`,import:(()=>Promise.resolve().then(()=>require("./chunks/apache-D6P7VF7-.cjs")))},{id:`apex`,name:`Apex`,import:(()=>Promise.resolve().then(()=>require("./chunks/apex-CzR99JA_.cjs")))},{id:`apl`,name:`APL`,import:(()=>Promise.resolve().then(()=>require("./chunks/apl-66g1H0Jc.cjs")))},{id:`applescript`,name:`AppleScript`,import:(()=>Promise.resolve().then(()=>require("./chunks/applescript-DqI0GtZ_.cjs")))},{id:`ara`,name:`Ara`,import:(()=>Promise.resolve().then(()=>require("./chunks/ara-BIx67vMk.cjs")))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>Promise.resolve().then(()=>require("./chunks/asciidoc-__2gZGI6.cjs")))},{id:`asm`,name:`Assembly`,import:(()=>Promise.resolve().then(()=>require("./chunks/asm-BqnCvhtk.cjs")))},{id:`astro`,name:`Astro`,import:(()=>Promise.resolve().then(()=>require("./chunks/astro-l7YhnfHw.cjs")))},{id:`awk`,name:`AWK`,import:(()=>Promise.resolve().then(()=>require("./chunks/awk-di4XsKlH.cjs")))},{id:`ballerina`,name:`Ballerina`,import:(()=>Promise.resolve().then(()=>require("./chunks/ballerina-C-s-8N5S.cjs")))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>Promise.resolve().then(()=>require("./chunks/bat-jKoSc-zA.cjs")))},{id:`beancount`,name:`Beancount`,import:(()=>Promise.resolve().then(()=>require("./chunks/beancount-C4u47zOw.cjs")))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>Promise.resolve().then(()=>require("./chunks/berry-DIS6OSPX.cjs")))},{id:`bibtex`,name:`BibTeX`,import:(()=>Promise.resolve().then(()=>require("./chunks/bibtex-B6tVBGwf.cjs")))},{id:`bicep`,name:`Bicep`,import:(()=>Promise.resolve().then(()=>require("./chunks/bicep-Bui-f59L.cjs")))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>Promise.resolve().then(()=>require("./chunks/bird2-DaBYgHCo.cjs")))},{id:`blade`,name:`Blade`,import:(()=>Promise.resolve().then(()=>require("./chunks/blade-BHqxkl-r.cjs")))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>Promise.resolve().then(()=>require("./chunks/bsl-BAqsgHa2.cjs")))},{id:`c`,name:`C`,import:(()=>Promise.resolve().then(()=>require("./chunks/c-D4eFGuRh.cjs")).then(e=>e.n))},{id:`c3`,name:`C3`,import:(()=>Promise.resolve().then(()=>require("./chunks/c3-IYw8s8SZ.cjs")))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>Promise.resolve().then(()=>require("./chunks/cadence-CuKtnZnh.cjs")))},{id:`cairo`,name:`Cairo`,import:(()=>Promise.resolve().then(()=>require("./chunks/cairo-BgFgVbB4.cjs")))},{id:`clarity`,name:`Clarity`,import:(()=>Promise.resolve().then(()=>require("./chunks/clarity-clZBm5mJ.cjs")))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>Promise.resolve().then(()=>require("./chunks/clojure-Bar20fBl.cjs")))},{id:`cmake`,name:`CMake`,import:(()=>Promise.resolve().then(()=>require("./chunks/cmake-WDkF0hRL.cjs")))},{id:`cobol`,name:`COBOL`,import:(()=>Promise.resolve().then(()=>require("./chunks/cobol-LQYtPcXw.cjs")))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>Promise.resolve().then(()=>require("./chunks/codeowners-Dom924Xv.cjs")))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>Promise.resolve().then(()=>require("./chunks/codeql-4lNyPBOY.cjs")))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>Promise.resolve().then(()=>require("./chunks/coffee-DIzg2P5N.cjs")))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>Promise.resolve().then(()=>require("./chunks/common-lisp-CQNzC2Cy.cjs")))},{id:`coq`,name:`Coq`,import:(()=>Promise.resolve().then(()=>require("./chunks/coq-Q0EORC7L.cjs")))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>Promise.resolve().then(()=>require("./chunks/cpp-DQegvip4.cjs")).then(e=>e.n))},{id:`crystal`,name:`Crystal`,import:(()=>Promise.resolve().then(()=>require("./chunks/crystal-fCtgbRsx.cjs")))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>Promise.resolve().then(()=>require("./chunks/csharp-DrPMyN3X.cjs")))},{id:`css`,name:`CSS`,import:(()=>Promise.resolve().then(()=>require("./chunks/css-CqvAcVPD.cjs")).then(e=>e.n))},{id:`csv`,name:`CSV`,import:(()=>Promise.resolve().then(()=>require("./chunks/csv-CYm8NYkM.cjs")))},{id:`cue`,name:`CUE`,import:(()=>Promise.resolve().then(()=>require("./chunks/cue-UCLljJQp.cjs")))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>Promise.resolve().then(()=>require("./chunks/cypher-iNkgMd7E.cjs")))},{id:`d`,name:`D`,import:(()=>Promise.resolve().then(()=>require("./chunks/d-CeXbat2k.cjs")))},{id:`dart`,name:`Dart`,import:(()=>Promise.resolve().then(()=>require("./chunks/dart-Bg08vjPM.cjs")))},{id:`dax`,name:`DAX`,import:(()=>Promise.resolve().then(()=>require("./chunks/dax-0MOKcz9D.cjs")))},{id:`desktop`,name:`Desktop`,import:(()=>Promise.resolve().then(()=>require("./chunks/desktop-C_dCwIZ7.cjs")))},{id:`diff`,name:`Diff`,import:(()=>Promise.resolve().then(()=>require("./chunks/diff-BgYuaU3L.cjs")))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>Promise.resolve().then(()=>require("./chunks/docker-fOZwazJz.cjs")))},{id:`dotenv`,name:`dotEnv`,import:(()=>Promise.resolve().then(()=>require("./chunks/dotenv-DsORb38I.cjs")))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>Promise.resolve().then(()=>require("./chunks/dream-maker-C3kD3Wo5.cjs")))},{id:`edge`,name:`Edge`,import:(()=>Promise.resolve().then(()=>require("./chunks/edge-HGY_5tl9.cjs")))},{id:`elixir`,name:`Elixir`,import:(()=>Promise.resolve().then(()=>require("./chunks/elixir-DwJGlxxw.cjs")))},{id:`elm`,name:`Elm`,import:(()=>Promise.resolve().then(()=>require("./chunks/elm-D3m6GARi.cjs")))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>Promise.resolve().then(()=>require("./chunks/emacs-lisp-DxE_XyhE.cjs")))},{id:`erb`,name:`ERB`,import:(()=>Promise.resolve().then(()=>require("./chunks/erb-Bs9wSZo-.cjs")))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>Promise.resolve().then(()=>require("./chunks/erlang-BARY4ZVx.cjs")))},{id:`fennel`,name:`Fennel`,import:(()=>Promise.resolve().then(()=>require("./chunks/fennel-WLfh5FO4.cjs")))},{id:`fish`,name:`Fish`,import:(()=>Promise.resolve().then(()=>require("./chunks/fish-BTFX_dkg.cjs")))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>Promise.resolve().then(()=>require("./chunks/fluent-BWD8VNHD.cjs")))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>Promise.resolve().then(()=>require("./chunks/fortran-fixed-form-CmDIBLuK.cjs")))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>Promise.resolve().then(()=>require("./chunks/fortran-free-form-D2MWuv88.cjs")))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>Promise.resolve().then(()=>require("./chunks/fsharp-DoKDCYKA.cjs")))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>Promise.resolve().then(()=>require("./chunks/gdresource-DmMV_Mz_.cjs")))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>Promise.resolve().then(()=>require("./chunks/gdscript-BS9DBB1y.cjs")))},{id:`gdshader`,name:`GDShader`,import:(()=>Promise.resolve().then(()=>require("./chunks/gdshader-1yXz_iYu.cjs")))},{id:`genie`,name:`Genie`,import:(()=>Promise.resolve().then(()=>require("./chunks/genie-Bp6s9C1t.cjs")))},{id:`gherkin`,name:`Gherkin`,import:(()=>Promise.resolve().then(()=>require("./chunks/gherkin-CKXxaXjp.cjs")))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>Promise.resolve().then(()=>require("./chunks/git-commit-CnIAZ2U1.cjs")))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>Promise.resolve().then(()=>require("./chunks/git-rebase-crXqGKB8.cjs")))},{id:`gleam`,name:`Gleam`,import:(()=>Promise.resolve().then(()=>require("./chunks/gleam-SK02m7Q0.cjs")))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>Promise.resolve().then(()=>require("./chunks/glimmer-js-w2PZgifv.cjs")))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>Promise.resolve().then(()=>require("./chunks/glimmer-ts-BCyx74ND.cjs")))},{id:`glsl`,name:`GLSL`,import:(()=>Promise.resolve().then(()=>require("./chunks/glsl-DnojC3AP.cjs")).then(e=>e.n))},{id:`gn`,name:`GN`,import:(()=>Promise.resolve().then(()=>require("./chunks/gn-D4gLnAXH.cjs")))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>Promise.resolve().then(()=>require("./chunks/gnuplot-BW2QQFN2.cjs")))},{id:`go`,name:`Go`,import:(()=>Promise.resolve().then(()=>require("./chunks/go-DHwKnTsk.cjs")))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>Promise.resolve().then(()=>require("./chunks/graphql-BeGIkUCE.cjs")).then(e=>e.n))},{id:`groovy`,name:`Groovy`,import:(()=>Promise.resolve().then(()=>require("./chunks/groovy-bZdgYIUa.cjs")))},{id:`hack`,name:`Hack`,import:(()=>Promise.resolve().then(()=>require("./chunks/hack-CY-n0cfb.cjs")))},{id:`haml`,name:`Ruby Haml`,import:(()=>Promise.resolve().then(()=>require("./chunks/haml-CIhcTN4x.cjs")).then(e=>e.n))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>Promise.resolve().then(()=>require("./chunks/handlebars-D-qw1pYl.cjs")))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>Promise.resolve().then(()=>require("./chunks/haskell-B2mK75ZQ.cjs")))},{id:`haxe`,name:`Haxe`,import:(()=>Promise.resolve().then(()=>require("./chunks/haxe-Z1EtjduQ.cjs")))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>Promise.resolve().then(()=>require("./chunks/hcl-DREJy1fc.cjs")))},{id:`hjson`,name:`Hjson`,import:(()=>Promise.resolve().then(()=>require("./chunks/hjson-3XrrL5cG.cjs")))},{id:`hlsl`,name:`HLSL`,import:(()=>Promise.resolve().then(()=>require("./chunks/hlsl-YdJJsel7.cjs")))},{id:`html`,name:`HTML`,import:(()=>Promise.resolve().then(()=>require("./chunks/html-BfUUv7E3.cjs")).then(e=>e.n))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>Promise.resolve().then(()=>require("./chunks/html-derivative-BPpuDG1P.cjs")))},{id:`http`,name:`HTTP`,import:(()=>Promise.resolve().then(()=>require("./chunks/http-BazLkagA.cjs")))},{id:`hurl`,name:`Hurl`,import:(()=>Promise.resolve().then(()=>require("./chunks/hurl-6wSRLgpJ.cjs")))},{id:`hxml`,name:`HXML`,import:(()=>Promise.resolve().then(()=>require("./chunks/hxml-BgAdIsLO.cjs")))},{id:`hy`,name:`Hy`,import:(()=>Promise.resolve().then(()=>require("./chunks/hy-CGMiuZnW.cjs")))},{id:`imba`,name:`Imba`,import:(()=>Promise.resolve().then(()=>require("./chunks/imba-Cw15YyCr.cjs")))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>Promise.resolve().then(()=>require("./chunks/ini-BOudrGbl.cjs")))},{id:`java`,name:`Java`,import:(()=>Promise.resolve().then(()=>require("./chunks/java-vTO5H3o5.cjs")).then(e=>e.n))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>Promise.resolve().then(()=>require("./chunks/javascript-Qsx5GPnB.cjs")).then(e=>e.n))},{id:`jinja`,name:`Jinja`,import:(()=>Promise.resolve().then(()=>require("./chunks/jinja-BOmRbj_c.cjs")))},{id:`jison`,name:`Jison`,import:(()=>Promise.resolve().then(()=>require("./chunks/jison-DkWBL9F-.cjs")))},{id:`json`,name:`JSON`,import:(()=>Promise.resolve().then(()=>require("./chunks/json-3vy4GS-z.cjs")).then(e=>e.n))},{id:`json5`,name:`JSON5`,import:(()=>Promise.resolve().then(()=>require("./chunks/json5-DCeZg1M3.cjs")))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>Promise.resolve().then(()=>require("./chunks/jsonc-B1GujX-i.cjs")))},{id:`jsonl`,name:`JSON Lines`,import:(()=>Promise.resolve().then(()=>require("./chunks/jsonl-Ow21dOFK.cjs")))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>Promise.resolve().then(()=>require("./chunks/jsonnet-B0GgeupQ.cjs")))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>Promise.resolve().then(()=>require("./chunks/jssm-UV7Y6C6T.cjs")))},{id:`jsx`,name:`JSX`,import:(()=>Promise.resolve().then(()=>require("./chunks/jsx-B5QNZ4Pl.cjs")).then(e=>e.n))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>Promise.resolve().then(()=>require("./chunks/julia-DbXoQ0jo.cjs")))},{id:`just`,name:`Just`,import:(()=>Promise.resolve().then(()=>require("./chunks/just-B4Y4I49k.cjs")))},{id:`kdl`,name:`KDL`,import:(()=>Promise.resolve().then(()=>require("./chunks/kdl-DTRksj2Q.cjs")))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>Promise.resolve().then(()=>require("./chunks/kotlin-DBE7LYyW.cjs")))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>Promise.resolve().then(()=>require("./chunks/kusto-Br2QbRXP.cjs")))},{id:`latex`,name:`LaTeX`,import:(()=>Promise.resolve().then(()=>require("./chunks/latex-DQtojiwP.cjs")))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>Promise.resolve().then(()=>require("./chunks/lean-mHZPwDES.cjs")))},{id:`less`,name:`Less`,import:(()=>Promise.resolve().then(()=>require("./chunks/less-CwM-qXgs.cjs")))},{id:`liquid`,name:`Liquid`,import:(()=>Promise.resolve().then(()=>require("./chunks/liquid-Cf8pUuL9.cjs")))},{id:`llvm`,name:`LLVM IR`,import:(()=>Promise.resolve().then(()=>require("./chunks/llvm-B74bhxrf.cjs")))},{id:`log`,name:`Log file`,import:(()=>Promise.resolve().then(()=>require("./chunks/log-CIIZr75X.cjs")))},{id:`logo`,name:`Logo`,import:(()=>Promise.resolve().then(()=>require("./chunks/logo-DE0bAV4Q.cjs")))},{id:`lua`,name:`Lua`,import:(()=>Promise.resolve().then(()=>require("./chunks/lua-BoqQzX9a.cjs")).then(e=>e.n))},{id:`luau`,name:`Luau`,import:(()=>Promise.resolve().then(()=>require("./chunks/luau-EucNTVCh.cjs")))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>Promise.resolve().then(()=>require("./chunks/make-D7JWkLbE.cjs")))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>Promise.resolve().then(()=>require("./chunks/markdown-C3opF_bC.cjs")))},{id:`marko`,name:`Marko`,import:(()=>Promise.resolve().then(()=>require("./chunks/marko-DrAOPp_t.cjs")))},{id:`matlab`,name:`MATLAB`,import:(()=>Promise.resolve().then(()=>require("./chunks/matlab-CiWAKJlx.cjs")))},{id:`mdc`,name:`MDC`,import:(()=>Promise.resolve().then(()=>require("./chunks/mdc-BFcydbam.cjs")))},{id:`mdx`,name:`MDX`,import:(()=>Promise.resolve().then(()=>require("./chunks/mdx-D6s_3e3v.cjs")))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>Promise.resolve().then(()=>require("./chunks/mermaid-CWPEuR1I.cjs")))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>Promise.resolve().then(()=>require("./chunks/mipsasm-lIRuwnNU.cjs")))},{id:`mojo`,name:`Mojo`,import:(()=>Promise.resolve().then(()=>require("./chunks/mojo-CneNJeJN.cjs")))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>Promise.resolve().then(()=>require("./chunks/moonbit-CfyuLVne.cjs")))},{id:`move`,name:`Move`,import:(()=>Promise.resolve().then(()=>require("./chunks/move-BXtaXTje.cjs")))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>Promise.resolve().then(()=>require("./chunks/narrat-Bm1S8i0-.cjs")))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>Promise.resolve().then(()=>require("./chunks/nextflow-BbHLAqqO.cjs")))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>Promise.resolve().then(()=>require("./chunks/nextflow-groovy-DZ_NSn_H.cjs")))},{id:`nginx`,name:`Nginx`,import:(()=>Promise.resolve().then(()=>require("./chunks/nginx-Dw18PK-U.cjs")))},{id:`nim`,name:`Nim`,import:(()=>Promise.resolve().then(()=>require("./chunks/nim--LgV3bxl.cjs")))},{id:`nix`,name:`Nix`,import:(()=>Promise.resolve().then(()=>require("./chunks/nix-Ch_5_5-w.cjs")))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>Promise.resolve().then(()=>require("./chunks/nushell-Ctbxzv1r.cjs")))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>Promise.resolve().then(()=>require("./chunks/objective-c-Chdvv8cn.cjs")))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>Promise.resolve().then(()=>require("./chunks/objective-cpp-DYLH6jh3.cjs")))},{id:`ocaml`,name:`OCaml`,import:(()=>Promise.resolve().then(()=>require("./chunks/ocaml-8HA_psTs.cjs")))},{id:`odin`,name:`Odin`,import:(()=>Promise.resolve().then(()=>require("./chunks/odin-XIZFFLK6.cjs")))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>Promise.resolve().then(()=>require("./chunks/openscad-C5eQN24k.cjs")))},{id:`pascal`,name:`Pascal`,import:(()=>Promise.resolve().then(()=>require("./chunks/pascal-CCRUxM9U.cjs")))},{id:`perl`,name:`Perl`,import:(()=>Promise.resolve().then(()=>require("./chunks/perl-Bt6NQ9iN.cjs")))},{id:`php`,name:`PHP`,import:(()=>Promise.resolve().then(()=>require("./chunks/php-CRwDDW_3.cjs")))},{id:`pkl`,name:`Pkl`,import:(()=>Promise.resolve().then(()=>require("./chunks/pkl-BSaBK4F7.cjs")))},{id:`plsql`,name:`PL/SQL`,import:(()=>Promise.resolve().then(()=>require("./chunks/plsql-DOGs8KqI.cjs")))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>Promise.resolve().then(()=>require("./chunks/po-B3Li15vx.cjs")))},{id:`polar`,name:`Polar`,import:(()=>Promise.resolve().then(()=>require("./chunks/polar-BelYhKCp.cjs")))},{id:`postcss`,name:`PostCSS`,import:(()=>Promise.resolve().then(()=>require("./chunks/postcss-vhg3bLN2.cjs")))},{id:`powerquery`,name:`PowerQuery`,import:(()=>Promise.resolve().then(()=>require("./chunks/powerquery-DJGPVVkh.cjs")))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>Promise.resolve().then(()=>require("./chunks/powershell-BuwGVyL8.cjs")))},{id:`prisma`,name:`Prisma`,import:(()=>Promise.resolve().then(()=>require("./chunks/prisma-CAxP5zy7.cjs")))},{id:`prolog`,name:`Prolog`,import:(()=>Promise.resolve().then(()=>require("./chunks/prolog-DYkaocpe.cjs")))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>Promise.resolve().then(()=>require("./chunks/proto-NuChDaOF.cjs")))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>Promise.resolve().then(()=>require("./chunks/pug-BG2B5Zrn.cjs")))},{id:`puppet`,name:`Puppet`,import:(()=>Promise.resolve().then(()=>require("./chunks/puppet-BJ9cjcfn.cjs")))},{id:`purescript`,name:`PureScript`,import:(()=>Promise.resolve().then(()=>require("./chunks/purescript-BtuYHjKv.cjs")))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>Promise.resolve().then(()=>require("./chunks/python-C-pGUDEN.cjs")))},{id:`qml`,name:`QML`,import:(()=>Promise.resolve().then(()=>require("./chunks/qml-ccGB5mTI.cjs")))},{id:`qmldir`,name:`QML Directory`,import:(()=>Promise.resolve().then(()=>require("./chunks/qmldir-Wt1YkY3Z.cjs")))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>Promise.resolve().then(()=>require("./chunks/qss-YGvNo9NX.cjs")))},{id:`r`,name:`R`,import:(()=>Promise.resolve().then(()=>require("./chunks/r-CeMVwSuk.cjs")).then(e=>e.n))},{id:`racket`,name:`Racket`,import:(()=>Promise.resolve().then(()=>require("./chunks/racket-DufcT8v8.cjs")))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>Promise.resolve().then(()=>require("./chunks/raku-DOM9ARRc.cjs")))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>Promise.resolve().then(()=>require("./chunks/razor-PVj3PwrR.cjs")))},{id:`reg`,name:`Windows Registry Script`,import:(()=>Promise.resolve().then(()=>require("./chunks/reg-9DaSy0kD.cjs")))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>Promise.resolve().then(()=>require("./chunks/regexp-CdAc7ORo.cjs")).then(e=>e.n))},{id:`rel`,name:`Rel`,import:(()=>Promise.resolve().then(()=>require("./chunks/rel-BMUd3wk9.cjs")))},{id:`riscv`,name:`RISC-V`,import:(()=>Promise.resolve().then(()=>require("./chunks/riscv-D6MndMkb.cjs")))},{id:`ron`,name:`RON`,import:(()=>Promise.resolve().then(()=>require("./chunks/ron-CQJKw-E7.cjs")))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>Promise.resolve().then(()=>require("./chunks/rosmsg-BLznubri.cjs")))},{id:`rst`,name:`reStructuredText`,import:(()=>Promise.resolve().then(()=>require("./chunks/rst-CmrwNKk5.cjs")))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>Promise.resolve().then(()=>require("./chunks/ruby-DdrppVZ_.cjs")))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>Promise.resolve().then(()=>require("./chunks/rust-CV1NdArF.cjs")))},{id:`sas`,name:`SAS`,import:(()=>Promise.resolve().then(()=>require("./chunks/sas-BQ7PgJCo.cjs")))},{id:`sass`,name:`Sass`,import:(()=>Promise.resolve().then(()=>require("./chunks/sass-DnbfRreA.cjs")))},{id:`scala`,name:`Scala`,import:(()=>Promise.resolve().then(()=>require("./chunks/scala-GbwTyHU9.cjs")))},{id:`scheme`,name:`Scheme`,import:(()=>Promise.resolve().then(()=>require("./chunks/scheme-BVHQLAk8.cjs")))},{id:`scss`,name:`SCSS`,import:(()=>Promise.resolve().then(()=>require("./chunks/scss-CM5CXOGs.cjs")).then(e=>e.n))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>Promise.resolve().then(()=>require("./chunks/sdbl-CVy6SNag.cjs")))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>Promise.resolve().then(()=>require("./chunks/shaderlab-Bug3L84r.cjs")))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>Promise.resolve().then(()=>require("./chunks/shellscript-BS85mq6s.cjs")).then(e=>e.n))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>Promise.resolve().then(()=>require("./chunks/shellsession--f6SgIdQ.cjs")))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>Promise.resolve().then(()=>require("./chunks/smalltalk-BjM5Xcmc.cjs")))},{id:`solidity`,name:`Solidity`,import:(()=>Promise.resolve().then(()=>require("./chunks/solidity-BfB-7_qU.cjs")))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>Promise.resolve().then(()=>require("./chunks/soy-B7s6MHYW.cjs")))},{id:`sparql`,name:`SPARQL`,import:(()=>Promise.resolve().then(()=>require("./chunks/sparql-BSKkAVDM.cjs")))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>Promise.resolve().then(()=>require("./chunks/splunk-C_kJ_IJ0.cjs")))},{id:`sql`,name:`SQL`,import:(()=>Promise.resolve().then(()=>require("./chunks/sql-43yuvAXB.cjs")).then(e=>e.n))},{id:`ssh-config`,name:`SSH Config`,import:(()=>Promise.resolve().then(()=>require("./chunks/ssh-config-CaEfhmOt.cjs")))},{id:`stata`,name:`Stata`,import:(()=>Promise.resolve().then(()=>require("./chunks/stata-CqeYus2E.cjs")))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>Promise.resolve().then(()=>require("./chunks/stylus-BQs2ucnq.cjs")))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>Promise.resolve().then(()=>require("./chunks/surrealql-Cz1IrX2X.cjs")))},{id:`svelte`,name:`Svelte`,import:(()=>Promise.resolve().then(()=>require("./chunks/svelte-8upkiX7E.cjs")))},{id:`swift`,name:`Swift`,import:(()=>Promise.resolve().then(()=>require("./chunks/swift-BXXmOqsl.cjs")))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>Promise.resolve().then(()=>require("./chunks/system-verilog-Bp0MA-m4.cjs")))},{id:`systemd`,name:`Systemd Units`,import:(()=>Promise.resolve().then(()=>require("./chunks/systemd-osM5AMkg.cjs")))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>Promise.resolve().then(()=>require("./chunks/talonscript-C7vz6yS2.cjs")))},{id:`tasl`,name:`Tasl`,import:(()=>Promise.resolve().then(()=>require("./chunks/tasl-DQqmxOuV.cjs")))},{id:`tcl`,name:`Tcl`,import:(()=>Promise.resolve().then(()=>require("./chunks/tcl-DT5opSxT.cjs")))},{id:`templ`,name:`Templ`,import:(()=>Promise.resolve().then(()=>require("./chunks/templ-Bfpq9-9t.cjs")))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>Promise.resolve().then(()=>require("./chunks/terraform-DBJwgGKg.cjs")))},{id:`tex`,name:`TeX`,import:(()=>Promise.resolve().then(()=>require("./chunks/tex-BX9fIWkt.cjs")))},{id:`toml`,name:`TOML`,import:(()=>Promise.resolve().then(()=>require("./chunks/toml-DVVe91nR.cjs")))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>Promise.resolve().then(()=>require("./chunks/ts-tags-D9dayd02.cjs")))},{id:`tsv`,name:`TSV`,import:(()=>Promise.resolve().then(()=>require("./chunks/tsv-C08nkTBN.cjs")))},{id:`tsx`,name:`TSX`,import:(()=>Promise.resolve().then(()=>require("./chunks/tsx-4nrV1c5K.cjs")).then(e=>e.n))},{id:`turtle`,name:`Turtle`,import:(()=>Promise.resolve().then(()=>require("./chunks/turtle-B3yv3Dvk.cjs")))},{id:`twig`,name:`Twig`,import:(()=>Promise.resolve().then(()=>require("./chunks/twig-Cr-lIUgp.cjs")))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>Promise.resolve().then(()=>require("./chunks/typescript-CtChSYPz.cjs")).then(e=>e.n))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>Promise.resolve().then(()=>require("./chunks/typespec-B85ILBBK.cjs")))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>Promise.resolve().then(()=>require("./chunks/typst-D25z7bCk.cjs")))},{id:`v`,name:`V`,import:(()=>Promise.resolve().then(()=>require("./chunks/v-C4kykzHX.cjs")))},{id:`vala`,name:`Vala`,import:(()=>Promise.resolve().then(()=>require("./chunks/vala-C2cnjtWa.cjs")))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>Promise.resolve().then(()=>require("./chunks/vb-BQXGBKM5.cjs")))},{id:`verilog`,name:`Verilog`,import:(()=>Promise.resolve().then(()=>require("./chunks/verilog-BdkyQkiX.cjs")))},{id:`vhdl`,name:`VHDL`,import:(()=>Promise.resolve().then(()=>require("./chunks/vhdl-DxKT5tNq.cjs")))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>Promise.resolve().then(()=>require("./chunks/viml-Bvwngnvo.cjs")))},{id:`vue`,name:`Vue`,import:(()=>Promise.resolve().then(()=>require("./chunks/vue-BfgvuY6f.cjs")))},{id:`vue-html`,name:`Vue HTML`,import:(()=>Promise.resolve().then(()=>require("./chunks/vue-html-Dn3MsAF-.cjs")))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>Promise.resolve().then(()=>require("./chunks/vue-vine-DXOyT9zJ.cjs")))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>Promise.resolve().then(()=>require("./chunks/vyper-CvDyU-bu.cjs")))},{id:`wasm`,name:`WebAssembly`,import:(()=>Promise.resolve().then(()=>require("./chunks/wasm-D8ksbdw2.cjs")))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>Promise.resolve().then(()=>require("./chunks/wenyan-BgEx2SSH.cjs")))},{id:`wgsl`,name:`WGSL`,import:(()=>Promise.resolve().then(()=>require("./chunks/wgsl-khpdapjV.cjs")))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>Promise.resolve().then(()=>require("./chunks/wikitext-CRxlVTbz.cjs")))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>Promise.resolve().then(()=>require("./chunks/wit-DZrREm9a.cjs")))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>Promise.resolve().then(()=>require("./chunks/wolfram-aWDeoTwg.cjs")))},{id:`xml`,name:`XML`,import:(()=>Promise.resolve().then(()=>require("./chunks/xml-BqYvp7cF.cjs")).then(e=>e.n))},{id:`xsl`,name:`XSL`,import:(()=>Promise.resolve().then(()=>require("./chunks/xsl-CsFXo8aI.cjs")))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>Promise.resolve().then(()=>require("./chunks/yaml-DGaMjDoM.cjs")).then(e=>e.n))},{id:`zenscript`,name:`ZenScript`,import:(()=>Promise.resolve().then(()=>require("./chunks/zenscript-Bv2U5SkC.cjs")))},{id:`zig`,name:`Zig`,import:(()=>Promise.resolve().then(()=>require("./chunks/zig-CyzhI2kp.cjs")))}],kj=Object.fromEntries(Oj.map(e=>[e.id,e.import])),Aj=Object.fromEntries(Oj.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[]));({...kj,...Aj});var jj=[{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/andromeeda-Dcjd_RLY.cjs")))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/aurora-x-CIhzYjwX.cjs")))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/ayu-dark-BssynDgY.cjs")))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/ayu-light-DrPI0hXN.cjs")))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/ayu-mirage-Ca5ARBVf.cjs")))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/catppuccin-frappe-DCdccjlu.cjs")))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/catppuccin-latte-B2S0J8dl.cjs")))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/catppuccin-macchiato-L-8DtJqf.cjs")))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/catppuccin-mocha-WpjokSrY.cjs")))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/dark-plus-PwYneD3g.cjs")))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/dracula-BC_cUb8r.cjs")))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/dracula-soft-C79pOTiK.cjs")))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/everforest-dark-CaZKxpV-.cjs")))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/everforest-light-Df86k8xh.cjs")))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/github-dark-BS7s0oJZ.cjs")))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/github-dark-default-B_Jyrjur.cjs")))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/github-dark-dimmed-vkFftpSd.cjs")))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/github-dark-high-contrast-B4nBPabm.cjs")))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/github-light-D1sXXtUf.cjs")))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/github-light-default-y1hm0coq.cjs")))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/github-light-high-contrast-D74CzIPM.cjs")))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/gruvbox-dark-hard-DU9tnKSd.cjs")))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/gruvbox-dark-medium-BENsgREj.cjs")))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/gruvbox-dark-soft-B68l3huJ.cjs")))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/gruvbox-light-hard-BiPmIsuR.cjs")))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/gruvbox-light-medium-DVwtxgWo.cjs")))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/gruvbox-light-soft-CcE6tJAd.cjs")))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/horizon-CrWxqD35.cjs")))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/horizon-bright-CTLLslGn.cjs")))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/houston-D-21s2Nv.cjs")))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/kanagawa-dragon-CviDFNrt.cjs")))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/kanagawa-lotus-vKBwPjRt.cjs")))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/kanagawa-wave-DWD8Ugxu.cjs")))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/laserwave-BYz85QyQ.cjs")))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/light-plus-jWjIctsJ.cjs")))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/material-theme-CXh3G_m8.cjs")))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/material-theme-darker-D0fJBbwJ.cjs")))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/material-theme-lighter-Cp96CQFf.cjs")))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/material-theme-ocean-DE1okJKW.cjs")))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/material-theme-palenight-lBKZSEMJ.cjs")))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/min-dark-DwJqZWsd.cjs")))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/min-light-mq8dc2JI.cjs")))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/monokai-BgGbXKUY.cjs")))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/night-owl-CD8VmoM8.cjs")))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/night-owl-light-C7mz2jSG.cjs")))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/nord-Cl2sH3oC.cjs")))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/one-dark-pro-Co8l-Pd_.cjs")))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/one-light-C7q0u2uj.cjs")))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/plastic-BYBqk_55.cjs")))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/poimandres-Cv_ZbL1L.cjs")))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/red-C38TRPne.cjs")))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/rose-pine-BZ0LmhWW.cjs")))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/rose-pine-dawn-Dad_wSwK.cjs")))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/rose-pine-moon-Cy4mvn79.cjs")))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/slack-dark-CssgHB_J.cjs")))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/slack-ochin-DS86f-Kl.cjs")))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/snazzy-light-o-yPpLf6.cjs")))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/solarized-dark-BC-kJuqg.cjs")))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/solarized-light-lRDMm-dH.cjs")))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/synthwave-84-DlvaPrwu.cjs")))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/tokyo-night-dRF60s88.cjs")))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/vesper-DYLcfYfl.cjs")))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/vitesse-black-CBrPM9Wl.cjs")))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>Promise.resolve().then(()=>require("./chunks/vitesse-dark-CvI0jSIr.cjs")))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>Promise.resolve().then(()=>require("./chunks/vitesse-light-0slH9g4r.cjs")))}];Object.fromEntries(jj.map(e=>[e.id,e.import]));var Mj=tO({engine:Dj(),langs:[],themes:[]});function Nj(e){let t=/^diff-([\w-]+)/i.exec(e);return t?t[1]:null}function Pj(e){let t=Nj(e)||e;return!!kw(t)||Mj.getLoadedLanguages().includes(t)}function Fj(e,n,r){let i=Nj(e)||e;if(!Pj(i)){let a=Oj.find(e=>e.id===i||e.aliases&&e.aliases.includes(i));if(a)return Mj.loadLanguage(a.import()).then(()=>{n&&r&&n.update(()=>{let n=t.Ht(r);W(n)&&n.getLanguage()===e&&(n.setIsSyntaxHighlightSupported(!0),n.markDirty())})})}}function Ij(e){let t=e;return!!jw(t)||Mj.getLoadedThemes().includes(t)}function Lj(e,n,r){if(!Ij(e)){let i=jj.find(t=>t.id===e);if(i)return Mj.loadTheme(i.import()).then(()=>{n&&r&&n.update(()=>{let e=t.Ht(r);W(e)&&e.markDirty()})})}}function Rj(){return Oj.map(e=>[e.id,e.name])}function zj(){return jj.map(e=>[e.id,e.displayName])}function Bj(e){let t=e,n=Oj.find(e=>e.id===t||e.aliases&&e.aliases.includes(t));return n?n.id:e}function Vj(e,n){let r=/^diff-([\w-]+)/i.exec(n),i=e.getTextContent(),{tokens:a,bg:o,fg:s}=Mj.codeToTokens(i,{lang:r?r[1]:n,theme:e.getTheme()||`poimandres`}),c=``;return o&&(c+=`background-color: ${o};`),s&&(c+=`color: ${s};`),e.getStyle()!==c&&e.setStyle(c),function(e,n){let r=[];return e.forEach((e,i)=>{i&&r.push(t.Bt()),e.forEach((e,i)=>{let a=e.content;if(n&&i===0&&a.length>0){let e=[`+`,`-`,`>`,`<`,` `],t=[`inserted`,`deleted`,`inserted`,`deleted`,`unchanged`],n=e.indexOf(a[0]);n!==-1&&(r.push(Ke(e[n],t[n])),a=a.slice(1))}let o=CD(e.htmlStyle||SD(e));t.Kn(a,{linebreak:()=>r.push(t.Bt()),tab:()=>r.push(t.kr()),text:e=>{let t=Ke(e);t.setStyle(o),r.push(t)}})})}),r}(a,!!r)}var Hj={$tokenize(e,t){let n=t||this.defaultLanguage;return n===null?Oe(e.getTextContent()):Vj(e,n)},defaultLanguage:Ae,defaultTheme:`one-light`};function Uj(e,n,r,i){let a=i.getParent();W(a)?Gj(e,n,r,a):qe(i)&&i.replace(t.D(i.__text))}function Wj(e,n){let r=n.getElementByKey(e.getKey());if(r===null)return;let i=e.getChildren(),a=i.length;if(a===r.__cachedChildrenLength)return;r.__cachedChildrenLength=a;let o=`1`,s=1;for(let e=0;e<a;e++)t._r(i[e])&&(o+=`
1014
- `+ ++s);r.setAttribute(`data-gutter`,o)}function Gj(e,n,r,i){let a=i.getKey(),{nodesCurrentlyHighlighting:o}=r,s=i.getLanguage();s||n.defaultLanguage===null||(s=n.defaultLanguage,i.setLanguage(s));let c=i.getTheme();c||(c=n.defaultTheme,i.setTheme(c));let l=!1;Ij(c)||(Lj(c,e,a),s&&(l=!0)),s?Pj(s)?i.getIsSyntaxHighlightSupported()||i.setIsSyntaxHighlightSupported(!0):(!Fj(s,e,a)&&i.getIsSyntaxHighlightSupported()&&i.setIsSyntaxHighlightSupported(!1),l=!0):i.getIsSyntaxHighlightSupported()&&i.setIsSyntaxHighlightSupported(!1),l||o.has(a)||(o.add(a),r.didTransform||(r.didTransform=!0,t.it(()=>{r.didTransform=!1,o.clear()})),function(e,n){let r=t.Ht(e);if(!W(r)||!r.isAttached())return;let i=t.tt();if(!t.bn(i))return void n();let a=i.anchor,o=a.offset,s=a.type===`element`&&t._r(r.getChildAtIndex(a.offset-1)),c=0;if(s||(c=o+a.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),n()){if(s)return void a.getNode().select(o,o);r.getChildren().some(e=>{let n=t.Jt(e);if(n||t._r(e)){let t=e.getTextContentSize();if(n&&t>=c)return e.select(c,c),!0;c-=t}return!1})}}(a,()=>{let e=t.Ht(a);if(!W(e)||!e.isAttached())return!1;let r=e.getLanguage()||n.defaultLanguage,o=n.$tokenize(e,r??void 0),{from:s,to:c,nodesForReplacement:l}=function(e,t){let n=0;for(;n<e.length&&Kj(e[n],t[n]);)n++;let r=e.length,i=t.length,a=Math.min(r,i)-n,o=0;for(;o<a;)if(o++,!Kj(e[r-o],t[i-o])){o--;break}let s=n,c=r-o;return{from:s,nodesForReplacement:t.slice(n,i-o),to:c}}(e.getChildren(),o);return!(s===c&&!l.length)&&(i.splice(s,c-s,l),!0)}))}function Kj(e,n){return qe(e)&&qe(n)&&e.__text===n.__text&&e.__highlightType===n.__highlightType&&e.__style===n.__style||t.On(e)&&t.On(n)||t._r(e)&&t._r(n)}function qj(e,n){let r=[];!0!==e._headless&&r.push(e.registerMutationListener(Fe,n=>{e.read(`latest`,()=>{for(let[r,i]of n)if(i!==`destroyed`){let n=t.Ht(r);n!==null&&Wj(n,e)}})},{skipInitialization:!1}));let i={didTransform:!1,nodesCurrentlyHighlighting:new Set};return r.push(e.registerNodeTransform(Fe,Gj.bind(null,e,n,i)),e.registerNodeTransform(t.Wt,Uj.bind(null,e,n,i)),e.registerNodeTransform(We,Uj.bind(null,e,n,i))),t.Yn(...r)}function Jj(e,n=Hj){if(!e.hasNodes([Fe,We]))throw Error(`CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor`);return t.Yn(qj(e,n),$e(e))}var Yj=`one-light`,Xj=`dark-plus`;function Zj(e){return e?Xj:Yj}function Qj(){let[e]=t.oi(),{settings:{isDarkMode:n}}=i.r(),r=Zj(n),a=(0,h.useMemo)(()=>({...Hj,defaultTheme:r}),[r]);return(0,h.useEffect)(()=>Jj(e,a),[e,a]),(0,h.useEffect)(()=>{let i=Zj(!n);e.update(()=>{for(let e of t.c(Fe)){let t=e.getTheme();(t===void 0||t===i)&&e.setTheme(r)}})},[r,e,n]),null}function $j(e){e.hidden=`until-found`}function eM(e,t){e.onbeforematch=t}function tM(e){return{node:rM(e.open===void 0||e.open)}}var nM=class e extends t.m{__open;constructor(e,t){super(t),this.__open=e}static getType(){return`collapsible-container`}static clone(t){return new e(t.__open,t.__key)}isShadowRoot(){return!0}collapseAtStart(e){let n=[];for(let e of this.getChildren())t.vt(e)&&n.push(...e.getChildren());t.cr(t.f(this,`previous`)).splice(1,n);let[r]=n;return r&&r.selectStart().deleteCharacter(!0),!0}createDOM(e,n){let r;if(t.jr)r=document.createElement(`div`),this.__open&&r.setAttribute(`open`,``);else{let e=document.createElement(`details`);e.open=this.__open,e.addEventListener(`toggle`,()=>{n.getEditorState().read(()=>this.getOpen())!==e.open&&n.update(()=>this.toggleOpen())}),r=e}return r.classList.add(`Collapsible__container`),r}updateDOM(e,n){let r=this.__open;if(e.__open!==r)if(t.jr){let e=n.children[1];if(!t.Sn(e))throw Error(`Expected contentDom to be an HTMLElement`);r?(n.setAttribute(`open`,``),e.hidden=!1):(n.removeAttribute(`open`),$j(e))}else n.open=this.__open;return!1}static importDOM(){return{details:e=>({conversion:tM,priority:1})}}static importJSON(e){return rM(e.open).updateFromJSON(e)}exportDOM(){let e=document.createElement(`details`);return e.classList.add(`Collapsible__container`),e.setAttribute(`open`,this.__open.toString()),{element:e}}exportJSON(){return{...super.exportJSON(),open:this.__open}}setOpen(e){let t=this.getWritable();t.__open=e}getOpen(){return this.getLatest().__open}toggleOpen(){this.setOpen(!this.getOpen())}};function rM(e){return new nM(e)}function iM(e){return e instanceof nM}function aM(e){return{node:sM()}}var oM=class e extends t.m{static getType(){return`collapsible-content`}static clone(t){return new e(t.__key)}createDOM(e,n){let r=document.createElement(`div`);return r.classList.add(`Collapsible__content`),t.jr&&(n.getEditorState().read(()=>{let e=this.getParentOrThrow();if(!iM(e))throw Error(`Expected parent node to be a CollapsibleContainerNode`);e.__open||$j(r)}),eM(r,()=>{n.update(()=>{let e=this.getParentOrThrow().getLatest();if(!iM(e))throw Error(`Expected parent node to be a CollapsibleContainerNode`);e.__open||e.toggleOpen()})})),r}updateDOM(e,t){return!1}static importDOM(){return{div:e=>e.hasAttribute(`data-lexical-collapsible-content`)?{conversion:aM,priority:2}:null}}exportDOM(){let e=document.createElement(`div`);return e.classList.add(`Collapsible__content`),e.setAttribute(`data-lexical-collapsible-content`,`true`),{element:e}}static importJSON(e){return sM().updateFromJSON(e)}isShadowRoot(){return!0}};function sM(){return new oM}function cM(e){return e instanceof oM}function lM(e){return(e instanceof Element?e:e instanceof Node?e.parentElement:null)?.closest(`.PlaygroundEditorTheme__paragraph span`)!==null}function uM(e){return{node:fM()}}var dM=class extends t.m{$config(){return this.config(`collapsible-title`,{$transform(e){e.isEmpty()&&e.remove()},extends:t.m,importDOM:t.Pr({summary:()=>({conversion:uM,priority:1})})})}createDOM(e,n){let r=document.createElement(`summary`);return r.classList.add(`Collapsible__title`),r.addEventListener(`click`,e=>{lM(e.target)&&e.preventDefault()}),t.jr&&r.addEventListener(`click`,e=>{e.defaultPrevented||n.update(()=>{let e=this.getLatest().getParentOrThrow();if(!iM(e))throw Error(`Expected parent node to be a CollapsibleContainerNode`);e.toggleOpen()})}),r}updateDOM(e,t){return!1}insertNewAfter(e,n=!0){let r=this.getParentOrThrow();if(!iM(r))throw Error(`CollapsibleTitleNode expects to be child of CollapsibleContainerNode`);if(r.getOpen()){let e=this.getNextSibling();if(!cM(e))throw Error(`CollapsibleTitleNode expects to have CollapsibleContentNode sibling`);let n=e.getFirstChild();if(t.vt(n))return n;{let n=t.Ar();return e.append(n),n}}else{let e=t.Ar();return r.insertAfter(e,n),e}}};function fM(){return new dM}function pM(e){return e instanceof dM}var mM=t.x(`INSERT_COLLAPSIBLE_COMMAND`),hM=[],gM=()=>`en`;function _M(e){if(e.type!==`paste`||!(`clipboardData`in e))return null;let t=e.clipboardData?.getData(`text/plain`);return t?o.s(t):null}function vM(e,t,n){let r=t(o.c(e));if(r===`en`)return``;let i=o.u(n,r);return i===null?``:`font-family: ${i};`}function yM(e,n){let r=t.D(e);return n!==``&&r.setStyle(n),r}function bM(e,n){return t.Ar().append(yM(e,n))}function xM(e,t){let n=fM(),r=sM();return rM(!0).append(n.append(bM(e.header,t)),r.append(...o.o(e).map(e=>bM(e,t))))}function SM(e){return e.title||e.header}function CM(e,t){let n=a.O(e.header,SM(e),null,`bible-verse`,e.body);return t!==``&&n.setStyle(t),n}function wM(e,n){let r=t.tt();if(r===null||!t.bn(r)||!r.isCollapsed())return!1;let i=r.anchor.getNode(),a=r.anchor.offset-1;return!t.Jt(i)||a<0||i.getTextContent().charAt(a)!==`^`?!1:(i.spliceText(a,1,``,!0),t.W([CM(e,n),t.D(` `)]),!0)}function TM({detectTextLanguage:e=gM,extraFontFamilies:r=hM}){let[i]=t.oi(),a=(0,h.useMemo)(()=>o.d(r),[r]);return(0,h.useEffect)(()=>{if(!i.hasNodes([nM,dM,oM]))throw Error(`CollapsiblePlugin: CollapsibleContainerNode, CollapsibleTitleNode, or CollapsibleContentNode not registered on editor`);let r=()=>{let e=t.tt();if(t.bn(e)&&e.isCollapsed()&&e.anchor.offset===0){let n=t.B(e.anchor.getNode(),iM);if(iM(n)){let r=n.getParent();r!==null&&r.getFirstChild()===n&&e.anchor.key===n.getFirstDescendant()?.getKey()&&n.insertBefore(t.Ar())}}return!1},s=()=>{let e=t.tt();if(t.bn(e)&&e.isCollapsed()){let n=t.B(e.anchor.getNode(),iM);if(iM(n)){let r=n.getParent();if(r!==null&&r.getLastChild()===n){let r=n.getFirstDescendant(),i=n.getLastDescendant();(i!==null&&e.anchor.key===i.getKey()&&e.anchor.offset===i.getTextContentSize()||r!==null&&e.anchor.key===r.getKey()&&e.anchor.offset===r.getTextContentSize())&&n.insertAfter(t.Ar())}}}return!1};return t.Yn(i.registerNodeTransform(oM,e=>{if(!iM(e.getParent())){let t=e.getChildren();for(let n of t)e.insertBefore(n);e.remove()}}),i.registerNodeTransform(dM,e=>{if(!iM(e.getParent())){e.replace(t.Ar().append(...e.getChildren()));return}}),i.registerNodeTransform(nM,e=>{let t=e.getChildren();if(t.length!==2||!pM(t[0])||!cM(t[1])){for(let n of t)e.insertBefore(n);e.remove()}}),i.registerCommand(t.Qn,s,1),i.registerCommand(t.Dn,s,1),i.registerCommand(t.Cr,r,1),i.registerCommand(t.ur,r,1),i.registerCommand(t.A,()=>{let e=t.tt();if(t.bn(e)){let n=t.B(e.anchor.getNode(),e=>pM(e));if(pM(n)){let e=n.getParent();if(e&&iM(e))return e.getOpen()||e.toggleOpen(),n.getNextSibling()?.selectEnd(),!0}}return!1},1),i.registerCommand(t.Wn,n=>{let r=_M(n);if(r===null)return!1;n.preventDefault(),t.pt(t.nr);let s=vM(r,e,a);if(wM(r,s))return!0;let c=bM(r.header,s),l=o.o(r).map(e=>bM(e,s)),u=c.getKey(),d=l.map(e=>e.getKey());return t.W([c,...l]),setTimeout(()=>{i.update(()=>{let e=t.Ht(u),n=d.map(e=>t.Ht(e));if(e===null||n.some(e=>e===null))return;let i=t.Ar(),a=xM(r,s);e.insertBefore(a),a.insertAfter(i),e.remove();for(let e of n)e?.remove();i.selectEnd()},{tag:t.nr})}),!0},1),i.registerCommand(mM,()=>(i.update(()=>{let e=fM(),r=t.Ar();n.n(rM(!0).append(e.append(r),sM().append(t.Ar()))),r.select()}),!0),1))},[e,i,a]),null}var EM=t.ar?h.useLayoutEffect:h.useEffect,DM={tag:t.Jr};function OM({initialConfig:e,children:n}){let r=(0,h.useMemo)(()=>{let{theme:n,namespace:r,nodes:i,onError:a,onWarn:o,editorState:s,html:c}=e,l=t.ci(null,n),u=t.mr({editable:e.editable,html:c,namespace:r,nodes:i,onError:e=>a(e,u),...o?{onWarn:e=>o(e,u)}:{},theme:n});return function(e,n){if(n!==null){if(n===void 0)e.update(()=>{let n=t.Dr();if(n.isEmpty()){let r=t.Ar();n.append(r);let i=e.getRootElement(),a=t.ar&&i!==null?t.Hn(i):null;(t.tt()!==null||a!==null&&a===i)&&r.select()}},DM);else if(n!==null)switch(typeof n){case`string`:{let t=e.parseEditorState(n);e.setEditorState(t,DM);break}case`object`:e.setEditorState(n,DM);break;case`function`:e.update(()=>{t.Dr().isEmpty()&&n(e)},DM)}}}(u,s),[u,l]},[]);return EM(()=>{let t=e.editable,[n]=r;n.setEditable(t===void 0||t)},[]),(0,_.jsx)(t.si.Provider,{value:r,children:n})}function kM({editorRef:e}){let[n]=t.oi();return h.useEffect(()=>{typeof e==`function`?e(n):typeof e==`object`&&e&&(e.current=n)},[n]),null}var AM=t.ar?h.useLayoutEffect:h.useEffect;function jM({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:n=!1,onChange:r}){let[i]=t.oi();return AM(()=>{if(r)return i.registerUpdateListener(({editorState:t,dirtyElements:a,dirtyLeaves:o,prevEditorState:s,tags:c})=>{n&&a.size===0&&o.size===0||e&&c.has(`history-merge`)||s.isEmpty()||r(t,i,c)})},[i,e,n,r]),null}var MM={...s.i,paragraph:`CommentEditorTheme__paragraph`},NM=t.x(`INSERT_INLINE_COMMAND`),PM=`Commented`,FM=100,IM=`…`;function LM(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function RM(e){let t=new Set;for(let n=0;n<e.length;n++){let r=e[n];r.type===`thread`&&t.add(r.id)}return t}function zM(e,t,n){let r=e.get(t);if(r===void 0)return!1;let i=r.delete(n);return r.size===0&&e.delete(t),i}function BM(e,t){let n=[],r=[],i=new Set;if(e===null)return{invalidIDs:n,validIDs:r};for(let a=0;a<e.length;a++){let o=e[a];i.has(o)||(i.add(o),t.has(o)?r.push(o):n.push(o))}return{invalidIDs:n,validIDs:r}}function VM(e,t){return e?.fontFamily===t?.fontFamily&&e?.fontStyle===t?.fontStyle&&e?.fontWeight===t?.fontWeight}function HM(e,t,n){if(t.length===0)return;let r=e[e.length-1];if(r!==void 0&&VM(r.style,n)){r.text+=t;return}e.push(n===void 0?{text:t}:{style:n,text:t})}function UM(e){return e.map(e=>e.text).join(``)}function WM(e,t){let n=[],r=t;for(let t=0;t<e.length&&r>0;t++){let i=e[t],a=i.text.slice(0,r);HM(n,a,i.style),r-=a.length}return n.length===0?void 0:n}function GM(e,t){let n=UM(e);if(n===t)return Array.from(e);if(t.endsWith(IM)){let r=t.slice(0,-1);if(n.startsWith(r)){let t=WM(e,r.length),n=t?.[t.length-1];if(n!==void 0)return n.text+=IM,t}}return n.startsWith(t)?WM(e,t.length):void 0}function KM(e){if(e.trim().length===0)return;let t=document.createElement(`span`);t.style.cssText=e;let n=t.style.fontFamily.trim();return n.length===0?void 0:n}function qM(e,t){let n=e.getElementByKey(t.getKey()),r=e.getRootElement();if(n===null||r===null)return;let i=window.getComputedStyle(n).fontFamily.trim(),a=window.getComputedStyle(r).fontFamily.trim();if(!(i.length===0||i===a))return i}function JM(e,t){let n={};t.hasFormat(`bold`)&&(n.fontWeight=`700`),t.hasFormat(`italic`)&&(n.fontStyle=`italic`);let r=KM(t.getStyle())??qM(e,t);return r!==void 0&&(n.fontFamily=r),Object.keys(n).length===0?void 0:n}function YM(e,t){let n=t.getTextContent(),r=t.getKey(),i=e.isBackward()?e.focus:e.anchor,a=e.isBackward()?e.anchor:e.focus,o=0,s=n.length;i.key===r&&(o=i.offset),a.key===r&&(s=a.offset);let c=Math.max(0,Math.min(o,n.length)),l=Math.max(0,Math.min(s,n.length));return n.slice(Math.min(c,l),Math.max(c,l))}function XM(e,n,r){let i=[],a=!1,o=n.getNodes();for(let r=0;r<o.length;r++){let s=o[r];if(!t.Jt(s))continue;let c=YM(n,s),l=JM(e,s);l!==void 0&&(a=!0),HM(i,c,l)}if(a)return UM(i)===r?i:void 0}function ZM(e){let t=WM(e,FM-1),n=t?.[t.length-1];if(n!==void 0)return n.text+=IM,t}function QM(e,n){if(!t.bn(n))return{quote:``};let r=n.getTextContent(),i=XM(e,n,r);if(r.length<=FM)return i===void 0?{quote:r}:{quote:r,quoteSegments:i};let a=r.slice(0,FM-1)+IM,o=i===void 0?void 0:ZM(i);return o===void 0?{quote:a}:{quote:a,quoteSegments:o}}function $M({onEscape:e}){let[n]=t.oi();return(0,h.useEffect)(()=>n.registerCommand(t.jn,t=>e(t),2),[n,e]),null}function eN({onSubmit:e}){let[n]=t.oi();return(0,h.useEffect)(()=>n.registerCommand(t.yn,t=>t===null||!t.ctrlKey&&!t.metaKey?!1:(t.preventDefault(),e(),!0),2),[n,e]),null}function tN({className:e,autoFocus:t,onEscape:n,onChange:i,onSubmit:a,editorRef:o,placeholder:c=`Type a comment...`}){return(0,_.jsx)(OM,{initialConfig:{namespace:`Commenting`,nodes:[],onError:e=>{throw e},theme:MM},children:(0,_.jsxs)(`div`,{className:`CommentPlugin_CommentInputBox_EditorContainer`,children:[(0,_.jsx)(s.a,{contentEditable:(0,_.jsx)(r.t,{placeholder:c,className:e}),ErrorBoundary:r.N}),(0,_.jsx)(jM,{onChange:i}),(0,_.jsx)(r.o,{}),t!==!1&&(0,_.jsx)(ni,{}),(0,_.jsx)($M,{onEscape:n}),a!==void 0&&(0,_.jsx)(eN,{onSubmit:a}),(0,_.jsx)(hi,{}),o!==void 0&&(0,_.jsx)(kM,{editorRef:o})]})})}function nN(e,t){return(0,h.useCallback)((n,i)=>{n.read(()=>{e(r.L()),t(!r.F(i.isComposing(),!0))})},[t,e])}function rN({editor:e,cancelAddComment:r,submitAddComment:i}){let[a,o]=(0,h.useState)(``),[s,c]=(0,h.useState)(!1),l=(0,h.useRef)(null),d=(0,h.useMemo)(()=>({container:document.createElement(`div`),elements:[]}),[]),f=(0,h.useRef)(null),p=PM,m=(0,h.useCallback)(()=>{e.getEditorState().read(()=>{let r=t.tt();if(t.bn(r)){f.current=r.clone();let t=r.anchor,i=r.focus,a=n.A(e,t.getNode(),t.offset,i.getNode(),i.offset),o=l.current;if(a!==null&&o!==null){let{left:t,bottom:r,width:i}=a.getBoundingClientRect(),s=n.L(e,a),c=s.length===1?t+i/2-125:t-125;c<10&&(c=10),o.style.left=`${c}px`,o.style.top=`${r+20+(window.pageYOffset||document.documentElement.scrollTop)}px`;let l=s.length,{container:u}=d,f=d.elements,p=f.length;for(let e=0;e<l;e++){let t=s[e],n=f[e];n===void 0&&(n=document.createElement(`span`),f[e]=n,u.appendChild(n));let r=`position:absolute;top:${t.top+(window.pageYOffset||document.documentElement.scrollTop)}px;left:${t.left}px;height:${t.height}px;width:${t.width}px;background-color:rgba(255, 212, 0, 0.3);pointer-events:none;z-index:5;`;n.style.cssText=r}for(let e=p-1;e>=l;e--){let t=f[e];u.removeChild(t),f.pop()}}}})},[e,d]);(0,h.useLayoutEffect)(()=>{m();let e=d.container,t=document.body;if(t!==null)return t.appendChild(e),()=>{t.removeChild(e)}},[d.container,m]),(0,h.useEffect)(()=>(window.addEventListener(`resize`,m),()=>{window.removeEventListener(`resize`,m)}),[m]);let g=e=>(e.preventDefault(),r(),!0),v=()=>{if(s){let{quote:t,quoteSegments:n}=e.getEditorState().read(()=>{let t=f.current;return QM(e,t)});i(Ni(t,[Mi(a,p)],void 0,n),!0,void 0,f.current),f.current=null}};return(0,_.jsxs)(`div`,{className:`CommentPlugin_CommentInputBox`,ref:l,children:[(0,_.jsx)(tN,{className:`CommentPlugin_CommentInputBox_Editor`,onEscape:g,onChange:nN(o,c),onSubmit:v}),(0,_.jsxs)(`div`,{className:`CommentPlugin_CommentInputBox_Buttons`,children:[(0,_.jsx)(u.t,{onClick:r,className:`CommentPlugin_CommentInputBox_Button`,children:`Cancel`}),(0,_.jsx)(u.t,{onClick:v,disabled:!s,className:`CommentPlugin_CommentInputBox_Button primary`,children:`Comment`})]})]})}function iN({submitAddComment:e,thread:n,placeholder:r}){let[i,a]=(0,h.useState)(``),[o,s]=(0,h.useState)(!1),c=(0,h.useRef)(null),l=PM,d=nN(a,s),f=()=>{if(o){e(Mi(i,l),!1,n);let r=c.current;r!==null&&r.dispatchCommand(t.hn,void 0)}};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tN,{className:`CommentPlugin_CommentsPanel_Editor`,autoFocus:!1,onEscape:()=>!0,onChange:d,onSubmit:f,editorRef:c,placeholder:r}),(0,_.jsx)(u.t,{className:`CommentPlugin_CommentsPanel_SendButton`,onClick:f,disabled:!o,children:(0,_.jsx)(`i`,{className:`bi bi-pin send`})})]})}function aN({commentOrThread:e,deleteCommentOrThread:t,onClose:n,thread:r=void 0}){return(0,_.jsxs)(_.Fragment,{children:[`Are you sure you want to delete this `,e.type,`?`,(0,_.jsxs)(`div`,{className:`Modal__content pt-4`,children:[(0,_.jsx)(u.t,{onClick:()=>{t(e,r),n()},children:`Delete`}),` `,(0,_.jsx)(u.t,{onClick:()=>{n()},children:`Cancel`})]})]})}function oN(e,n,r){if(t.Jt(n)){HM(r,n.getTextContent(),JM(e,n));return}if(!t.vt(n))return;let i=n.getChildren();for(let t=0;t<i.length;t++)oN(e,i[t],r)}function sN(e,t){return Array.from(t).sort((t,n)=>{let r=e.getElementByKey(t),i=e.getElementByKey(n);if(r===null||i===null)return 0;let a=r.compareDocumentPosition(i);return(a&Node.DOCUMENT_POSITION_FOLLOWING)===0?(a&Node.DOCUMENT_POSITION_PRECEDING)===0?0:1:-1})}function cN(e,n,r){let i=n.get(r.id);if(i===void 0||i.size===0)return;let o=sN(e,i);return e.getEditorState().read(()=>{let n=[];for(let r=0;r<o.length;r++){let i=t.Ht(o[r]);a._(i)&&oN(e,i,n)}return n.length===0?void 0:GM(n,r.quote)})}function lN(e){if(e.style!==void 0)return{fontFamily:e.style.fontFamily,fontStyle:e.style.fontStyle,fontWeight:e.style.fontWeight}}function uN({editor:e,markNodeMap:t,thread:n}){let r=n.quoteSegments??cN(e,t,n);return(0,_.jsx)(`span`,{className:`CommentPlugin_CommentsPanel_List_Thread_QuoteText`,children:r===void 0?n.quote:r.map((e,t)=>(0,_.jsx)(`span`,{style:lN(e),children:e.text},t))})}function dN({comment:e,dateTimeFormatter:t,deleteComment:n,thread:r}){let i=new Date(e.timeStamp),a=t.format(i),[o,s]=ix();return(0,_.jsxs)(`li`,{className:`CommentPlugin_CommentsPanel_List_Comment`,children:[(0,_.jsxs)(`div`,{className:`CommentPlugin_CommentsPanel_List_Details`,children:[(0,_.jsx)(`span`,{className:`CommentPlugin_CommentsPanel_List_Comment_Author`,children:e.author}),(0,_.jsxs)(`time`,{className:`CommentPlugin_CommentsPanel_List_Comment_Time`,dateTime:i.toISOString(),children:[`· `,a]})]}),(0,_.jsx)(`p`,{className:e.deleted?`CommentPlugin_CommentsPanel_DeletedComment`:``,children:e.content}),!e.deleted&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u.t,{onClick:()=>{s(`Delete Comment`,t=>(0,_.jsx)(aN,{commentOrThread:e,deleteCommentOrThread:n,thread:r,onClose:t}))},className:`CommentPlugin_CommentsPanel_List_DeleteButton`,children:(0,_.jsx)(`i`,{className:`bi bi-trash3 delete`})}),o]})]})}function fN({activeIDs:e,comments:n,deleteCommentOrThread:r,listRef:i,submitAddComment:o,markNodeMap:s}){let[c]=t.oi(),[l,d]=ix(),f=(0,h.useMemo)(()=>new Intl.DateTimeFormat(`en`,{dateStyle:`medium`,timeStyle:`short`}),[]);return(0,_.jsx)(`ul`,{className:`CommentPlugin_CommentsPanel_List`,ref:i,children:n.map(n=>{let i=n.id;return n.type===`thread`?(0,_.jsxs)(`li`,{onClick:()=>{let n=s.get(i);if(n!==void 0&&(e===null||e.indexOf(i)===-1)){let e=document.activeElement;c.update(()=>{let e=Array.from(n)[0],r=t.Ht(e);a._(r)&&r.selectStart()},{onUpdate(){e!==null&&e.focus()}})}},className:`CommentPlugin_CommentsPanel_List_Thread ${s.has(i)?`interactive`:``} ${e.indexOf(i)===-1?``:`active`}`,children:[(0,_.jsxs)(`div`,{className:`CommentPlugin_CommentsPanel_List_Thread_QuoteBox`,children:[(0,_.jsxs)(`blockquote`,{className:`CommentPlugin_CommentsPanel_List_Thread_Quote`,children:[`> `,(0,_.jsx)(uN,{editor:c,markNodeMap:s,thread:n})]}),(0,_.jsx)(u.t,{onClick:()=>{d(`Delete Thread`,e=>(0,_.jsx)(aN,{commentOrThread:n,deleteCommentOrThread:r,onClose:e}))},className:`CommentPlugin_CommentsPanel_List_DeleteButton`,children:(0,_.jsx)(`i`,{className:`bi bi-trash3 delete`})}),l]}),(0,_.jsx)(`ul`,{className:`CommentPlugin_CommentsPanel_List_Thread_Comments`,children:n.comments.map(e=>(0,_.jsx)(dN,{comment:e,dateTimeFormatter:f,deleteComment:r,thread:n},e.id))}),(0,_.jsx)(`div`,{className:`CommentPlugin_CommentsPanel_List_Thread_Editor`,children:(0,_.jsx)(iN,{submitAddComment:o,thread:n,placeholder:`Reply to comment...`})})]},i):(0,_.jsx)(dN,{comment:n,dateTimeFormatter:f,deleteComment:r},i)})})}function pN({activeIDs:e,deleteCommentOrThread:t,comments:n,submitAddComment:r,markNodeMap:i,onClose:a,panelZIndex:o}){let s=(0,h.useRef)(null),c=n.length===0;return(0,_.jsxs)(`div`,{className:`CommentPlugin_CommentsPanel`,style:o===void 0?void 0:{zIndex:o},children:[(0,_.jsxs)(`h2`,{className:`CommentPlugin_CommentsPanel_Heading`,children:[(0,_.jsx)(`span`,{children:`Comments`}),a!==void 0&&(0,_.jsx)(`button`,{className:`CommentPlugin_CommentsPanel_Close`,type:`button`,title:`Close comments`,"aria-label":`Close comments`,onClick:a,children:(0,_.jsx)(`i`,{className:`bi bi-x-lg`,"aria-hidden":`true`})})]}),c?(0,_.jsx)(`div`,{className:`CommentPlugin_CommentsPanel_Empty`,children:`No Comments`}):(0,_.jsx)(fN,{activeIDs:e,comments:n,deleteCommentOrThread:t,listRef:s,submitAddComment:r,markNodeMap:i})]})}function mN({setShowComments:e,showComments:r,panelZIndex:i}){let[o]=t.oi(),s=r!==void 0&&e!==void 0,c=(0,h.useMemo)(()=>Ui(),[]),l=(0,h.useMemo)(()=>!s&&Gi(),[s]),d=(0,h.useMemo)(()=>new zi(c),[c]),f=Bi(d),p=(0,h.useMemo)(()=>new Map,[]),[,m]=(0,h.useState)(),[g,y]=(0,h.useState)([]),[b,x]=(0,h.useState)(!1),[S,C]=(0,h.useState)(l),w=s?r:S,T=s?e:C,[E,D]=h.useReducer(e=>e+1,0),O=(0,h.useMemo)(()=>RM(f),[f]),k=(0,h.useMemo)(()=>BM(g,O).validIDs,[g,O]),A=(0,h.useRef)(O);(0,h.useEffect)(()=>{A.current=O},[O]),(0,h.useEffect)(()=>{Wi(f)},[f]),(0,h.useEffect)(()=>{Ki(w)},[w]);let j=(0,h.useCallback)(()=>{o.update(()=>{let e=t.tt();e!==null&&(e.dirty=!0)}),x(!1)},[o]),M=(0,h.useCallback)(e=>{let n=Array.from(new Set(e));n.length!==0&&o.update(()=>{for(let e=0;e<n.length;e++){let r=n[e],i=Array.from(p.get(r)??[]);if(i.length===0){p.delete(r);continue}for(let e=0;e<i.length;e++){let n=i[e],o=t.Ht(n);if(!a._(o)){zM(p,r,n);continue}if(o.getIDs().indexOf(r)===-1){zM(p,r,n);continue}o.deleteID(r),o.getIDs().length===0&&a.x(o)}}})},[o,p]),N=(0,h.useCallback)((e,t)=>{if(e.type===`comment`){let n=d.deleteCommentOrThread(e,t);if(!n)return;let{markedComment:r,index:i}=n;d.addComment(r,t,i)}else{d.deleteCommentOrThread(e);let n=t===void 0?e.id:t.id;y(e=>{let t=e.filter(e=>e!==n);return t.length===e.length?e:t}),p.has(n)&&setTimeout(()=>{M([n])})}},[d,p,M]),P=(0,h.useCallback)((e,n,r,i)=>{d.addComment(e,r),n&&(o.update(()=>{if(t.bn(i)){let t=i.isBackward(),n=e.id;a.y(i,t,n)}}),x(!1))},[d,o]);return(0,h.useEffect)(()=>{let e=[];for(let t=0;t<k.length;t++){let n=k[t],r=p.get(n);if(r!==void 0)for(let t of r){let n=o.getElementByKey(t);n!==null&&(n.classList.add(`selected`),e.push(n),T(!0))}}return()=>{for(let t=0;t<e.length;t++)e[t].classList.remove(`selected`)}},[k,o,p,E,T]),(0,h.useEffect)(()=>{let e=new Map;return t.Yn(n.c(o,a.v,e=>a.b(e.getIDs()),(e,t)=>{e.getIDs().forEach(e=>{t.addID(e)})}),o.registerMutationListener(a.v,n=>{let r=!1;o.getEditorState().read(()=>{for(let[i,o]of n){let n=t.Ht(i),s=e.get(i)||[],c=a._(n)?n.getIDs():[];o===`destroyed`?e.delete(i):e.set(i,c);for(let e=0;e<s.length;e++){let t=s[e];c.indexOf(t)===-1&&(r=zM(p,t,i)||r)}if(o!==`destroyed`)for(let e=0;e<c.length;e++){let t=c[e],n=p.get(t);n===void 0&&(n=new Set,p.set(t,n),r=!0),n.has(i)||(n.add(i),r=!0)}}}),r&&D()},{skipInitialization:!1}),o.registerUpdateListener(({editorState:e})=>{let n=[];e.read(()=>{let e=t.tt(),r=!1,i=!1;if(t.bn(e)){let o=e.anchor.getNode();if(t.Jt(o)){let t=a.S(o,e.anchor.offset);if(t!==null){let{invalidIDs:e,validIDs:i}=BM(t,A.current);e.length>0&&n.push(...e),i.length>0&&(y(i),r=!0)}e.isCollapsed()||(m(o.getKey()),i=!0)}}r||y(e=>e.length===0?e:[]),i||m(null),t.bn(e)&&x(!1)}),n.length>0&&M(n)}),o.registerCommand(NM,()=>{let e=t.M(o._window);return e!==null&&e.removeAllRanges(),x(!0),!0},0))},[o,p,M]),(0,h.useEffect)(()=>{let e=Array.from(p.keys()).filter(e=>!O.has(e));e.length>0&&M(e),LM(g,k)||y(k)},[g,k,p,E,M,O]),(0,_.jsxs)(_.Fragment,{children:[b&&(0,v.createPortal)((0,_.jsx)(rN,{editor:o,cancelAddComment:j,submitAddComment:P}),document.body),!s&&(0,v.createPortal)((0,_.jsx)(u.t,{className:`CommentPlugin_ShowCommentsButton ${w?`active`:``}`,onClick:()=>T(!w),title:w?`Hide Comments`:`Show Comments`,children:(0,_.jsx)(`i`,{className:`bi bi-chat-dots comments`})}),document.body),w&&(0,v.createPortal)((0,_.jsx)(pN,{comments:f,submitAddComment:P,deleteCommentOrThread:N,activeIDs:k,markNodeMap:p,onClose:()=>T(!1),panelZIndex:i}),document.body)]})}var hN=t.x(`INSERT_DATETIME_COMMAND`);function gN(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([f.f]))throw Error(`DateTimePlugin: DateTimeNode not registered on editor`);return t.Yn(e.registerCommand(hN,e=>{let{dateTime:r}=e,i=f.u(r);return t.W([i]),t.J(i.getParentOrThrow())&&n.u(i,t.Ar).selectEnd(),!0},0))},[e]),null}function _N({onConfirm:e,initialEquation:n=``}){let[r]=t.oi(),[i,a]=(0,h.useState)(n),[o,s]=(0,h.useState)(!0),c=(0,h.useCallback)(()=>{e(i,o)},[e,i,o]);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{className:`KatexEquationAlterer_defaultRow`,children:[`Inline`,(0,_.jsx)(`input`,{type:`checkbox`,checked:o,onChange:(0,h.useCallback)(()=>{s(!o)},[s,o])})]}),(0,_.jsx)(`div`,{className:`KatexEquationAlterer_defaultRow`,children:`Equation `}),(0,_.jsx)(`div`,{className:`KatexEquationAlterer_centerRow`,children:o?(0,_.jsx)(`input`,{onChange:e=>{a(e.target.value)},value:i,className:`KatexEquationAlterer_textArea`}):(0,_.jsx)(`textarea`,{onChange:e=>{a(e.target.value)},value:i,className:`KatexEquationAlterer_textArea`})}),(0,_.jsx)(`div`,{className:`KatexEquationAlterer_defaultRow`,children:`Visualization `}),(0,_.jsx)(`div`,{className:`KatexEquationAlterer_centerRow`,children:(0,_.jsx)(d.n,{onError:e=>r._onError(e),fallback:null,children:(0,_.jsx)(d.t,{equation:i,inline:!1,onDoubleClick:()=>null})})}),(0,_.jsx)(`div`,{className:`KatexEquationAlterer_dialogActions`,children:(0,_.jsx)(u.t,{onClick:c,children:`Confirm`})})]})}var vN=t.x(`INSERT_EQUATION_COMMAND`);function yN({activeEditor:e,onClose:t}){return(0,_.jsx)(_N,{onConfirm:(0,h.useCallback)((n,r)=>{e.dispatchCommand(vN,{equation:n,inline:r}),t()},[e,t])})}function bN(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([d.a]))throw Error(`EquationsPlugins: EquationsNode not registered on editor`);return e.registerCommand(vN,e=>{let{equation:r,inline:i}=e,a=d.r(r,i);return t.W([a]),t.J(a.getParentOrThrow())&&n.u(a,t.Ar).selectEnd(),!0},0)},[e]),null}var xN=t.x(`INSERT_EXCALIDRAW_COMMAND`);function SN({clearLibrariesFileList:e,detectTextLanguage:r,extraFontFamilies:i=[],loadLibrariesFileList:a,libraryItems:s=[],saveLibrariesFile:c}){let[l]=t.oi(),[u,d]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{if(!l.hasNodes([o.a]))throw Error(`ExcalidrawPlugin: ExcalidrawNode not registered on editor`);return l.registerCommand(xN,()=>(d(!0),!0),0)},[l]),u?(0,_.jsx)(o.t,{clearLibrariesFileList:e,detectTextLanguage:r,initialElements:[],initialAppState:{},initialFiles:{},extraFontFamilies:i,loadLibrariesFileList:a,libraryItems:s,saveLibrariesFile:c,isShown:u,onDelete:()=>{d(!1)},onClose:()=>{d(!1)},onSave:(e,r,i)=>{l.update(()=>{let a=o.r();a.setData(JSON.stringify({appState:r,elements:e,files:i})),t.W([a]),t.J(a.getParentOrThrow())&&n.u(a,t.Ar).selectEnd()}),d(!1)},closeOnClickOutside:!1}):null}function CN({accept:e,label:t,onChange:n,"data-test-id":r}){let i=(0,h.useId)();return(0,_.jsxs)(`div`,{className:`Input__wrapper mb-2`,children:[(0,_.jsx)(`label`,{className:`Input__label mb-0`,htmlFor:i,children:t}),(0,_.jsx)(`input`,{id:i,type:`file`,accept:e,className:`Input__input form-control`,onChange:e=>n(e.target.files),"data-test-id":r})]})}var wN=t.x(`INSERT_MEDIA_COMMAND`),TN=`image/*,video/*,audio/*,application/pdf,.pdf`,EN=[`.mp4`,`.webm`,`.ogv`,`.mov`,`.m4v`],DN=[`.aac`,`.flac`,`.m4a`,`.mp3`,`.oga`,`.ogg`,`.opus`,`.wav`,`.weba`];function ON(e){let t=e.toLowerCase().split(/[?#]/)[0];return t.startsWith(`data:application/pdf`)||t.endsWith(`.pdf`)?`pdf`:t.startsWith(`data:video/`)||EN.some(e=>t.endsWith(e))?`video`:t.startsWith(`data:audio/`)||DN.some(e=>t.endsWith(e))?`audio`:`image`}function kN(e){return e.type===`application/pdf`||e.name.toLowerCase().endsWith(`.pdf`)?`pdf`:e.type.startsWith(`video/`)||EN.some(t=>e.name.toLowerCase().endsWith(t))?`video`:e.type.startsWith(`audio/`)||DN.some(t=>e.name.toLowerCase().endsWith(t))?`audio`:`image`}function AN(e){return typeof URL.createObjectURL==`function`?URL.createObjectURL(e):void 0}function jN(e,t,n,r){return n===`image`?{altText:e,src:t}:r?{altText:e,mediaType:n,previewSrc:r,src:t}:{altText:e,mediaType:n,src:t}}function MN({onClick:e}){let[t,n]=(0,h.useState)(``),[r,i]=(0,h.useState)(``);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Dn,{label:`Media URL/Path`,placeholder:`i.e. https://example.com/media.mp3`,onChange:n,value:t,"data-test-id":`media-modal-url-input`}),(0,_.jsx)(Dn,{label:`Alt Text / Title`,placeholder:`Descriptive label`,onChange:i,value:r,"data-test-id":`media-modal-alt-text-input`}),(0,_.jsx)(ox,{children:(0,_.jsx)(u.t,{"data-test-id":`media-modal-confirm-btn`,disabled:t===``,onClick:()=>e(jN(r,t,ON(t))),children:`Confirm`})})]})}function NN({onClick:e,resolveFilePath:t}){let[n,r]=(0,h.useState)(``),[i,o]=(0,h.useState)(``),[s,c]=(0,h.useState)(`image`),[l,d]=(0,h.useState)(),[f,p]=(0,h.useState)(null),m=n===``,g=e=>{let n=e?.[0];if(!n){r(``),d(void 0),p(null);return}let i=kN(n);c(i),o(e=>e||n.name);let s=()=>{if(i!==`image`){r(a.l(n)),d(AN(n)),p(n);return}d(void 0),p(null);let e=new FileReader;e.onload=function(){return typeof e.result==`string`&&r(e.result),``},e.readAsDataURL(n)};if(t===void 0){s();return}(async()=>{let e=await a.d(t,n,`file-input`);if(e!==null){r(e),d(i===`image`?void 0:AN(n)),p(i===`image`?null:n);return}s()})()},v=async()=>{s!==`image`&&f!==null&&await a.p(n,f),e(jN(i,n,s,l))};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(CN,{label:`Media File`,onChange:g,accept:TN,"data-test-id":`media-modal-file-upload`}),s===`image`?null:(0,_.jsx)(Dn,{label:`File Path`,placeholder:`Path to the selected media file`,onChange:r,value:n,"data-test-id":`media-modal-source-input`}),(0,_.jsx)(Dn,{label:`Alt Text / Title`,placeholder:`Descriptive label`,onChange:o,value:i,"data-test-id":`media-modal-alt-text-input`}),(0,_.jsx)(ox,{children:(0,_.jsx)(u.t,{"data-test-id":`media-modal-file-upload-btn`,disabled:m,onClick:()=>void v(),children:`Confirm`})})]})}function PN({activeEditor:e,onClose:t,resolveFilePath:n}){let[r,i]=(0,h.useState)(null),a=n=>{e.dispatchCommand(wN,n),t()};return(0,_.jsxs)(_.Fragment,{children:[!r&&(0,_.jsxs)(ax,{children:[(0,_.jsx)(u.t,{"data-test-id":`media-modal-option-url`,onClick:()=>i(`url`),children:`URL`}),(0,_.jsx)(u.t,{"data-test-id":`media-modal-option-file`,onClick:()=>i(`file`),children:`File`})]}),r===`url`&&(0,_.jsx)(MN,{onClick:a}),r===`file`&&(0,_.jsx)(NN,{onClick:a,resolveFilePath:n})]})}function FN({captionsEnabled:e}){let[r]=t.oi();return(0,h.useEffect)(()=>{if(!r.hasNodes([a.D]))throw Error(`MediaPlugin: MediaNode not registered on editor`);return t.Yn(r.registerCommand(wN,e=>{let r=a.w(e);return t.W([r]),t.J(r.getParentOrThrow())&&n.u(r,t.Ar).selectEnd(),!0},0),r.registerCommand(t.qr,e=>RN(e),3),r.registerCommand(t.l,e=>zN(e),1),r.registerCommand(t.Qr,e=>BN(e,r),3))},[e,r]),null}var IN=`data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`,LN=document.createElement(`img`);LN.src=IN;function RN(e){let t=VN();if(!t)return!1;let n=e.dataTransfer;return n?(n.setData(`text/plain`,`_`),n.setDragImage(LN,0,0),n.setData(`application/x-lexical-drag`,JSON.stringify({data:{altText:t.__altText,caption:t.__caption,height:t.__height,key:t.getKey(),maxWidth:t.__maxWidth,mediaType:t.__mediaType,previewSrc:t.__previewSrc,showCaption:t.__showCaption,src:t.__src,width:t.__width},type:`media`})),!0):!1}function zN(e){return VN()&&(UN(e)||e.preventDefault()),!1}function BN(e,n){let r=VN();if(!r)return!1;let i=HN(e);if(!i)return!1;let o=t.B(r,e=>!a.et(e)&&a.X(e));if(e.preventDefault(),UN(e)){let s=WN(e);r.remove();let c=t.h();s!=null&&c.applyDOMRange(s),t.En(c),n.dispatchCommand(wN,i),o&&n.dispatchCommand(a.nt,o.getURL())}return!0}function VN(){let e=t.tt();if(!t.Fr(e))return null;let n=e.getNodes()[0];return a.E(n)?n:null}function HN(e){let t=e.dataTransfer?.getData(`application/x-lexical-drag`);if(!t)return null;let{type:n,data:r}=JSON.parse(t);return n===`media`?r:null}function UN(e){let n=e.target;return!!(t.Sn(n)&&!n.closest(`code, span.editor-media`)&&t.Sn(n.parentElement)&&n.parentElement.closest(`div.ContentEditable__root`))}function WN(e){let n,r=t.U(e.target);if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(e.clientX,e.clientY);else if(e.rangeParent&&r!==null)r.collapse(e.rangeParent,e.rangeOffset||0),n=r.getRangeAt(0);else throw Error(`Cannot get the selection when dragging`);return n}var GN=h.createContext(null),KN=4,qN=8,JN=40;function YN(e,t){let r=n.d(t,!0),{top:i,left:a}=e.getBoundingClientRect(),o=window.innerHeight/r,s=window.innerWidth/r,c=i/r+e.offsetHeight+KN,l=Math.min(c,Math.max(qN,o-JN-qN)),u=Math.max(qN,Math.min(a/r,s-t.offsetWidth-20)),d=Math.max(JN,o-l-qN);t.style.top=`${l}px`,t.style.left=`${u}px`,t.style.maxHeight=`${d}px`}function Z({children:e,className:t,disabled:n,onClick:r,title:i}){let a=(0,h.useRef)(null),o=h.useContext(GN);if(o===null)throw Error(`DropDownItem must be used within a DropDown`);let{registerItem:s}=o;return(0,h.useEffect)(()=>{a&&a.current&&s(a)},[a,s]),(0,_.jsx)(`button`,{"aria-disabled":n,className:t,disabled:n,onClick:e=>{if(n){e.preventDefault();return}r(e)},ref:a,title:i,type:`button`,children:e})}function XN({children:e,dropDownRef:t,onClose:n,autofocus:r}){let[i,a]=(0,h.useState)(),[o,s]=(0,h.useState)(),c=(0,h.useCallback)(e=>{a(t=>t?[...t,e]:[e])},[a]),l=e=>{let t=e.key;t===`Escape`&&n(),i&&([`Escape`,`ArrowUp`,`ArrowDown`,`Tab`].includes(t)&&e.preventDefault(),t===`Escape`||t===`Tab`?n():t===`ArrowUp`?s(e=>{if(!e)return i[0];let t=i.indexOf(e)-1;return i[t===-1?i.length-1:t]}):t===`ArrowDown`&&s(e=>e?i[i.indexOf(e)+1]:i[0]))},u=(0,h.useMemo)(()=>({registerItem:c}),[c]);return(0,h.useEffect)(()=>{i&&!o&&s(i[0]),o&&o.current&&o.current.focus()},[i,o]),(0,h.useEffect)(()=>{r&&t.current&&N(t.current)},[r,t]),(0,_.jsx)(GN.Provider,{value:u,children:(0,_.jsx)(`div`,{className:`dropdown`,ref:t,onKeyDown:l,children:e})})}function ZN({disabled:e=!1,buttonLabel:n,buttonAriaLabel:r,buttonClassName:i,buttonIconClassName:a,buttonIconStyle:o,children:s,stopCloseOnClickSelf:c,hideChevron:l}){let u=(0,h.useRef)(null),d=(0,h.useRef)(null),[f,p]=(0,h.useState)(!1),[m,g]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{let e=d.current,t=u.current;f&&e!==null&&t!==null&&YN(e,t)},[u,d,f]),(0,h.useEffect)(()=>{let e=d.current;if(e!==null&&f){let n=n=>{let r=n.target;if(!t.Ln(r))return;let i=u.current&&u.current.contains(r);c&&i||e.contains(r)||(p(!1),i&&P(n)&&e.focus())};return document.addEventListener(`click`,n),()=>{document.removeEventListener(`click`,n)}}},[u,d,f,c]),(0,h.useEffect)(()=>{let e=()=>{if(f){let e=d.current,t=u.current;e!==null&&t!==null&&YN(e,t)}};return document.addEventListener(`scroll`,e),window.addEventListener(`resize`,e),()=>{document.removeEventListener(`scroll`,e),window.removeEventListener(`resize`,e)}},[d,u,f]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`button`,{type:`button`,disabled:e,"aria-label":r||n,className:i,onClick:e=>{p(!f),g(P(e))},ref:d,children:[a&&(0,_.jsx)(`span`,{className:a,style:o}),n&&(0,_.jsx)(`span`,{className:`text dropdown-button-text`,children:n}),!l&&(0,_.jsx)(`i`,{className:`bi bi-chevron-down chevron-down`})]}),f&&(0,v.createPortal)((0,_.jsx)(XN,{dropDownRef:u,onClose:()=>{p(!1),d&&d.current&&d.current.focus()},autofocus:m,children:s}),document.body)]})}function QN(e){let t=window.getComputedStyle(e).getPropertyValue(`grid-template-columns`);return t?{node:eP(t)}:null}var $N=class e extends t.m{__templateColumns;constructor(e,t){super(t),this.__templateColumns=e}static getType(){return`layout-container`}static clone(t){return new e(t.__templateColumns,t.__key)}createDOM(e){let n=document.createElement(`div`);return n.style.gridTemplateColumns=this.__templateColumns,typeof e.theme.layoutContainer==`string`&&t.Vr(n,e.theme.layoutContainer),n}exportDOM(){let e=document.createElement(`div`);return e.style.gridTemplateColumns=this.__templateColumns,e.setAttribute(`data-lexical-layout-container`,`true`),{element:e}}updateDOM(e,t){return e.__templateColumns!==this.__templateColumns&&(t.style.gridTemplateColumns=this.__templateColumns),!1}static importDOM(){return{div:e=>e.hasAttribute(`data-lexical-layout-container`)?{conversion:QN,priority:2}:null}}static importJSON(e){return eP().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTemplateColumns(e.templateColumns)}isShadowRoot(){return!0}canBeEmpty(){return!1}exportJSON(){return{...super.exportJSON(),templateColumns:this.__templateColumns}}getTemplateColumns(){return this.getLatest().__templateColumns}setTemplateColumns(e){let t=this.getWritable();return t.__templateColumns=e,t}};function eP(e=``){return new $N(e)}function tP(e){return e instanceof $N}function nP(){return{node:aP()}}function rP(e){if(!oP(e)||e.getChildrenSize()!==1)return!1;let n=e.getFirstChild();return t.kn(n)&&n.isEmpty()}var iP=class e extends t.m{static getType(){return`layout-item`}static clone(t){return new e(t.__key)}createDOM(e){let n=document.createElement(`div`);return n.setAttribute(`data-lexical-layout-item`,`true`),typeof e.theme.layoutItem==`string`&&t.Vr(n,e.theme.layoutItem),n}updateDOM(){return!1}collapseAtStart(){let e=this.getParentOrThrow();return this.is(e.getFirstChild())&&e.getChildren().every(rP)?(e.remove(),!0):!1}static importDOM(){return{div:e=>e.hasAttribute(`data-lexical-layout-item`)?{conversion:nP,priority:2}:null}}static importJSON(e){return aP().updateFromJSON(e)}isShadowRoot(){return!0}};function aP(){return new iP}function oP(e){return e instanceof iP}var sP=t.x(),cP=t.x();function lP(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([$N,iP]))throw Error(`LayoutPlugin: LayoutContainerNode, or LayoutItemNode not registered on editor`);let r=e=>{let n=t.tt();if(t.bn(n)&&n.isCollapsed()&&n.anchor.offset===0){let r=t.B(n.anchor.getNode(),tP);if(tP(r)){let i=r.getParent(),a=i&&(e?i.getFirstChild():i?.getLastChild()),o=e?r.getFirstDescendant()?.getKey():r.getLastDescendant()?.getKey();i!==null&&a===r&&n.anchor.key===o&&(e?r.insertBefore(t.Ar()):r.insertAfter(t.Ar()))}}return!1},i=e=>{e.isEmpty()&&e.append(t.Ar())},a=e=>{if(!tP(e.getParent())){let t=e.getChildren();for(let n of t)e.insertBefore(n);return e.remove(),!0}return!1};return t.Yn(e.registerCommand(t.Qn,()=>r(!1),1),e.registerCommand(t.Dn,()=>r(!1),1),e.registerCommand(t.Cr,()=>r(!0),1),e.registerCommand(t.ur,()=>r(!0),1),e.registerCommand(sP,r=>(e.update(()=>{let e=eP(r),i=uP(r);for(let n=0;n<i;n++)e.append(aP().append(t.Ar()));n.n(e),e.selectStart()}),!0),0),e.registerCommand(cP,({template:n,nodeKey:r})=>(e.update(()=>{let e=t.Ht(r);if(!tP(e))return;let i=uP(n),a=uP(e.getTemplateColumns());if(i>a)for(let n=a;n<i;n++)e.append(aP().append(t.Ar()));else if(i<a)for(let t=a-1;t>=i;t--){let n=e.getChildAtIndex(t);oP(n)&&n.remove()}e.setTemplateColumns(n)}),!0),0),e.registerNodeTransform(iP,e=>{a(e)||i(e)}),e.registerNodeTransform($N,e=>{let t=e.getChildren();if(!t.every(oP)){for(let n of t)e.insertBefore(n);e.remove()}}))},[e]),null}function uP(e){return e.trim().split(/\s+/).length}var dP=[{label:`2 columns (equal width)`,value:`1fr 1fr`},{label:`2 columns (25% - 75%)`,value:`1fr 3fr`},{label:`3 columns (equal width)`,value:`1fr 1fr 1fr`},{label:`3 columns (25% - 50% - 25%)`,value:`1fr 2fr 1fr`},{label:`4 columns (equal width)`,value:`1fr 1fr 1fr 1fr`}];function fP({activeEditor:e,onClose:t}){let[n,r]=(0,h.useState)(dP[0].value),i=dP.find(e=>e.value===n)?.label;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(ZN,{buttonClassName:`toolbar-item dialog-dropdown`,buttonLabel:i,children:dP.map(({label:e,value:t})=>(0,_.jsx)(Z,{className:`item`,onClick:()=>r(t),children:(0,_.jsx)(`span`,{className:`text`,children:e})},t))}),(0,_.jsx)(u.t,{onClick:()=>{e.dispatchCommand(sP,n),t()},children:`Insert`})]})}function pP({nodeKey:e}){let[n]=t.oi(),[r,i,a]=c.t(e);return(0,h.useEffect)(()=>t.Yn(n.registerCommand(t.K,t=>{let o=n.getElementByKey(e);return t.target===o?(t.shiftKey||a(),i(!r),!0):!1},1)),[a,n,r,e,i]),(0,h.useEffect)(()=>{let t=n.getElementByKey(e);t!==null&&(t.className=r?`selected`:``)},[n,r,e]),null}var mP=class e extends t.I{static getType(){return`page-break`}static clone(t){return new e(t.__key)}static importJSON(e){return gP().updateFromJSON(e)}static importDOM(){return{figure:e=>e.getAttribute(`type`)===this.getType()?{conversion:hP,priority:3}:null}}createDOM(){let e=document.createElement(`figure`);return e.style.pageBreakAfter=`always`,e.setAttribute(`type`,this.getType()),e}getTextContent(){return`
1015
- `}isInline(){return!1}updateDOM(){return!1}decorate(){return(0,_.jsx)(pP,{nodeKey:this.__key})}};function hP(){return{node:gP()}}function gP(){return new mP}var _P=t.x();function vP(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([mP]))throw Error(`PageBreakPlugin: PageBreakNode is not registered on editor`);return t.Yn(e.registerCommand(_P,()=>{let e=t.tt();return t.bn(e)?(e.focus.getNode()!==null&&n.n(gP()),!0):!1},0))},[e]),null}var yP=t.x(`INSERT_POLL_COMMAND`);function bP({activeEditor:e,onClose:t}){let[n,r]=(0,h.useState)(``);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Dn,{label:`Question`,onChange:r,value:n}),(0,_.jsx)(ox,{children:(0,_.jsx)(u.t,{disabled:n.trim()===``,onClick:()=>{e.dispatchCommand(yP,n),t()},children:`Confirm`})})]})}function xP(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([m.r]))throw Error(`PollPlugin: PollNode not registered on editor`);return e.registerCommand(yP,e=>{let r=m.t(e,[m.i(),m.i()]);return t.W([r]),t.J(r.getParentOrThrow())&&n.u(r,t.Ar).selectEnd(),!0},0)},[e]),null}var SP=(0,h.createContext)({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function CP({children:e}){let[t,n]=(0,h.useState)({cellEditorConfig:null,cellEditorPlugins:null});return(0,_.jsx)(SP.Provider,{value:(0,h.useMemo)(()=>({cellEditorConfig:t.cellEditorConfig,cellEditorPlugins:t.cellEditorPlugins,set:(e,t)=>{n({cellEditorConfig:e,cellEditorPlugins:t})}}),[t.cellEditorConfig,t.cellEditorPlugins]),children:e})}function wP({activeEditor:e,onClose:t}){let[n,r]=(0,h.useState)(`5`),[i,o]=(0,h.useState)(`5`),[s,c]=(0,h.useState)(!0);return(0,h.useEffect)(()=>{let e=Number(n),t=Number(i);c(!(e&&e>0&&e<=500&&t&&t>0&&t<=50))},[n,i]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Dn,{placeholder:`# of rows (1-500)`,label:`Rows`,onChange:r,value:n,"data-test-id":`table-modal-rows`,type:`number`}),(0,_.jsx)(Dn,{placeholder:`# of columns (1-50)`,label:`Columns`,onChange:o,value:i,"data-test-id":`table-modal-columns`,type:`number`}),(0,_.jsx)(ox,{"data-test-id":`table-model-confirm-insert`,children:(0,_.jsx)(u.t,{disabled:s,onClick:()=>{e.dispatchCommand(a.Nt,{columns:i,rows:n}),t()},children:`Confirm`})})]})}var TP={center:`bi bi-text-center icon`,justify:`bi bi-justify icon`,left:`bi bi-text-left icon`,right:`bi bi-text-right icon`},EP=class extends a.h{tooltip;keywords;keyboardShortcut;onSelect;constructor(e,t){super(e),this.title=e,this.tooltip=t.tooltip,this.keywords=t.keywords||[],this.icon=t.icon,this.keyboardShortcut=t.keyboardShortcut,this.onSelect=t.onSelect.bind(this)}};function DP({index:e,isSelected:t,onClick:n,onMouseEnter:r,option:i}){let a=`item mx-2 p-2 d-flex flex-row align-items-center flex-shrink-0`;return t&&(a+=` selected`),(0,_.jsxs)(`li`,{tabIndex:-1,className:a,ref:i.setRefElement,role:`option`,"aria-selected":t,id:`typeahead-item-`+e,title:i.tooltip,onMouseEnter:r,onClick:n,children:[i.icon,(0,_.jsx)(`span`,{className:`text`,children:i.title})]},i.key)}function OP(e,t){let n=[];if(t==null)return n;let r=t.match(/^([1-9]\d?)(?:x([1-9]\d?)?)?$/);if(r!==null){let t=r[1],i=r[2]?[r[2]]:[1,2,3,4,5,6,7,8,9,10].map(String);n.push(...i.map(n=>new EP(`${t}x${n} Table`,{icon:(0,_.jsx)(`i`,{className:`bi bi-table icon`}),keywords:[`table`],onSelect:()=>e.dispatchCommand(a.Nt,{columns:n,rows:t})})))}return n}function kP(e,i,o){return[new EP(`Paragraph`,{icon:(0,_.jsx)(`i`,{className:`bi bi-text-paragraph icon`}),keywords:[`normal`,`paragraph`,`p`,`text`],onSelect:()=>e.update(()=>{let e=t.tt();t.bn(e)&&n.F(e,()=>t.Ar())})}),...[1,2,3].map(r=>new EP(`Heading ${r}`,{icon:(0,_.jsx)(`i`,{className:`bi bi-type-h${r} icon`}),keywords:[`heading`,`header`,`h${r}`],onSelect:()=>e.update(()=>{let e=t.tt();t.bn(e)&&n.F(e,()=>a.rn(`h${r}`))})})),new EP(`Table`,{icon:(0,_.jsx)(`i`,{className:`bi bi-table icon`}),keywords:[`table`,`grid`,`spreadsheet`,`rows`,`columns`],onSelect:()=>i(`Insert Table`,t=>(0,_.jsx)(wP,{activeEditor:e,onClose:t}))}),new EP(`Numbered List`,{icon:(0,_.jsx)(`i`,{className:`bi bi-list-ol icon`}),keywords:[`numbered list`,`ordered list`,`ol`],onSelect:()=>e.dispatchCommand(nn,void 0)}),new EP(`Bulleted List`,{icon:(0,_.jsx)(`i`,{className:`bi bi-list-ul icon`}),keywords:[`bulleted list`,`unordered list`,`ul`],onSelect:()=>e.dispatchCommand(tn,void 0)}),new EP(`Check List`,{icon:(0,_.jsx)(`i`,{className:`bi bi-check2-square icon`}),keywords:[`check list`,`todo list`],onSelect:()=>e.dispatchCommand(Jt,void 0)}),new EP(`Quote`,{icon:(0,_.jsx)(`i`,{className:`bi bi-chat-square-quote icon`}),keywords:[`block quote`],onSelect:()=>e.update(()=>{let e=t.tt();t.bn(e)&&n.F(e,()=>a.en())})}),new EP(`Code`,{icon:(0,_.jsx)(`i`,{className:`bi bi-code-slash icon`}),keywords:[`javascript`,`python`,`js`,`codeblock`],onSelect:()=>e.update(()=>{let e=t.tt();if(t.bn(e))if(e.isCollapsed())n.F(e,()=>Ie());else{let t=e.getTextContent(),n=Ie();e.insertNodes([n]),e.insertRawText(t)}})}),new EP(`Divider`,{icon:(0,_.jsx)(`i`,{className:`bi bi-dash-lg icon`}),keywords:[`horizontal rule`,`divider`,`hr`],onSelect:()=>e.dispatchCommand(r.U,void 0)}),new EP(`Page Break`,{icon:(0,_.jsx)(`i`,{className:`bi bi-scissors icon`}),keywords:[`page break`,`divider`],onSelect:()=>e.dispatchCommand(_P,void 0)}),new EP(`Excalidraw`,{icon:(0,_.jsx)(`i`,{className:`bi bi-diagram-2 icon`}),keywords:[`excalidraw`,`diagram`,`drawing`],onSelect:()=>e.dispatchCommand(xN,void 0)}),new EP(`Poll`,{icon:(0,_.jsx)(`i`,{className:`bi bi-card-checklist icon`}),keywords:[`poll`,`vote`],onSelect:()=>i(`Insert Poll`,t=>(0,_.jsx)(bP,{activeEditor:e,onClose:t}))}),...jx.map(t=>new EP(`Embed ${t.contentName}`,{icon:t.icon,keywords:[...t.keywords,`embed`],onSelect:()=>e.dispatchCommand(tx,t.type)})),new EP(`Date`,{icon:(0,_.jsx)(`i`,{className:`bi bi-calendar icon`}),keywords:[`date`,`calendar`,`time`],onSelect:()=>{let t=new Date;t.setHours(0,0,0,0),e.dispatchCommand(hN,{dateTime:t})}}),new EP(`Today`,{icon:(0,_.jsx)(`i`,{className:`bi bi-calendar icon`}),keywords:[`date`,`calendar`,`time`,`today`],onSelect:()=>{let t=new Date;t.setHours(0,0,0,0),e.dispatchCommand(hN,{dateTime:t})}}),new EP(`Tomorrow`,{icon:(0,_.jsx)(`i`,{className:`bi bi-calendar icon`}),keywords:[`date`,`calendar`,`time`,`tomorrow`],onSelect:()=>{let t=new Date;t.setDate(t.getDate()+1),t.setHours(0,0,0,0),e.dispatchCommand(hN,{dateTime:t})}}),new EP(`Yesterday`,{icon:(0,_.jsx)(`i`,{className:`bi bi-calendar icon`}),keywords:[`date`,`calendar`,`time`,`yesterday`],onSelect:()=>{let t=new Date;t.setDate(t.getDate()-1),t.setHours(0,0,0,0),e.dispatchCommand(hN,{dateTime:t})}}),new EP(`Equation`,{icon:(0,_.jsx)(`i`,{className:`bi bi-plus-slash-minus icon`}),keywords:[`equation`,`latex`,`math`],onSelect:()=>i(`Insert Equation`,t=>(0,_.jsx)(yN,{activeEditor:e,onClose:t}))}),new EP(`Media`,{icon:(0,_.jsx)(`i`,{className:`bi bi-file-earmark-easel icon`}),keywords:[`image`,`photo`,`picture`,`file`,`video`,`pdf`,`audio`],tooltip:`Insert image, video, pdf or audio`,onSelect:()=>i(`Insert Media`,t=>(0,_.jsx)(PN,{activeEditor:e,onClose:t,resolveFilePath:o}))}),new EP(`Collapsible`,{icon:(0,_.jsx)(`i`,{className:`bi bi-caret-right-fill icon`}),keywords:[`collapse`,`collapsible`,`toggle`],onSelect:()=>e.dispatchCommand(mM,void 0)}),new EP(`Columns Layout`,{icon:(0,_.jsx)(`i`,{className:`bi bi-columns-gap icon`}),keywords:[`columns`,`layout`,`grid`],onSelect:()=>i(`Insert Columns Layout`,t=>(0,_.jsx)(fP,{activeEditor:e,onClose:t}))}),...[`left`,`center`,`right`,`justify`].map(n=>new EP(`Align ${n}`,{icon:(0,_.jsx)(`i`,{className:TP[n]}),keywords:[`align`,`justify`,n],onSelect:()=>e.dispatchCommand(t.tr,n)}))]}function AP({resolveFilePath:e}){let[n]=t.oi(),[r,i]=ix(),[o,s]=(0,h.useState)(null),c=a.g(`/`,{allowWhitespace:!0,minLength:0}),l=(0,h.useMemo)(()=>{let t=kP(n,i,e);if(!o)return t;let r=new RegExp(o,`i`);return[...OP(n,o),...t.filter(e=>r.test(e.title)||e.keywords.some(e=>r.test(e)))]},[n,o,e,i]);return(0,_.jsxs)(_.Fragment,{children:[r,(0,_.jsx)(a.m,{onQueryChange:s,onSelectOption:(0,h.useCallback)((e,t,r,i)=>{n.update(()=>{t?.remove(),e.onSelect(i),r()})},[n]),triggerFn:c,options:l,menuRenderFn:(e,{selectedIndex:t,selectOptionAndCleanUp:n,setHighlightedIndex:r})=>e.current&&l.length?v.createPortal((0,_.jsx)(`div`,{className:`typeahead-popover component-picker-menu`,children:(0,_.jsx)(`ul`,{className:`list-unstyled m-0 p-0`,children:l.map((e,i)=>(0,_.jsx)(DP,{index:i,isSelected:t===i,onClick:()=>{r(i),n(e)},onMouseEnter:()=>{r(i)},option:e},e.key))})}),e.current):null})]})}var jP=class{key;ref;constructor(e){this.key=e,this.ref={current:null},this.setRefElement=this.setRefElement.bind(this)}setRefElement(e){this.ref={current:e}}},MP=class extends jP{type;title;icon;disabled;$onSelect;$showOn;constructor(e,t){super(e),this.type=`item`,this.title=e,this.disabled=t.disabled??!1,this.icon=t.icon??null,this.$onSelect=t.$onSelect,t.$showOn&&(this.$showOn=t.$showOn)}},NP=class extends jP{type;$showOn;constructor(e){super(`_separator`),this.type=`separator`,e&&e.$showOn&&(this.$showOn=e.$showOn)}},PP=(0,h.forwardRef)(({className:e,disabled:t,...n},r)=>(0,_.jsx)(`hr`,{className:e})),FP=(0,h.forwardRef)(({className:e,label:t,disabled:n,icon:r,...i},a)=>(0,_.jsxs)(`button`,{...i,className:e,ref:a,role:`menuitem`,disabled:n,children:[r,t]})),IP=(0,h.forwardRef)(({items:e,className:n,itemClassName:r,separatorClassName:i},a)=>{let[o]=t.oi(),[s,c]=(0,h.useState)(null),[l,u]=(0,h.useState)(!1),d=(0,h.useRef)([]),m=(0,h.useRef)([]),{refs:g,floatingStyles:v,context:y}=f.a({middleware:[p.a({alignmentAxis:4,mainAxis:5}),p.n({fallbackPlacements:[`left-start`]}),p.o({padding:10})],onOpenChange:u,open:l,placement:`right-start`,strategy:`fixed`,whileElementsMounted:p.l}),{getFloatingProps:b,getItemProps:x}=f.o([f.c(y,{role:`menu`}),f.i(y),f.s(y,{activeIndex:s,listRef:d,onNavigate:c}),f.l(y,{activeIndex:s,enabled:l,listRef:m,onMatch:c})]),[S,C]=(0,h.useState)([]);return(0,h.useEffect)(()=>{function n(n){n.preventDefault(),g.setPositionReference({getBoundingClientRect:()=>({bottom:n.clientY,height:0,left:n.clientX,right:n.clientX,top:n.clientY,width:0,x:n.clientX,y:n.clientY})});let a=[];e&&o.read(()=>{let r=t.Yt(n.target)??t.Dr();r&&(a=e.filter(e=>!e.$showOn||e.$showOn(r)))});let s=a.map((e,t)=>e.type===`separator`?{className:i,key:e.key+`-`+t,type:e.type}:{className:r,disabled:e.disabled,icon:e.icon,key:e.key,label:e.title,onClick:()=>o.update(()=>e.$onSelect()),title:e.title,type:e.type});m.current=s.map(e=>e.key),C(s),u(!0)}return o.registerRootListener(e=>{if(e!==null)return t.yt(e,`contextmenu`,n)})},[e,r,i,g,o]),(0,_.jsx)(f.r,{children:l&&(0,_.jsx)(f.n,{lockScroll:!0,children:(0,_.jsx)(f.t,{context:y,initialFocus:g.floating,children:(0,_.jsx)(`div`,{className:n,ref:g.setFloating,style:v,...b(),children:S.map((e,t)=>e.type===`item`?(0,h.createElement)(FP,{...x({...e,onClick(){e.onClick(),u(!1)},onMouseUp(){e.onClick(),u(!1)},ref(e){d.current[t]=e},tabIndex:s===t?0:-1}),key:e.key}):e.type===`separator`?(0,h.createElement)(PP,{...x({...e,ref(e){d.current[t]=e},tabIndex:s===t?0:-1}),key:e.key}):void 0)})})})})});function LP(){let[e]=t.oi();return(0,_.jsx)(IP,{className:`PlaygroundEditorTheme__contextMenu`,itemClassName:`PlaygroundEditorTheme__contextMenuItem`,separatorClassName:`PlaygroundEditorTheme__contextMenuSeparator`,items:(0,h.useMemo)(()=>[new MP(`Remove Link`,{$onSelect:()=>{e.dispatchCommand(a.nt,null)},$showOn:e=>a.X(e.getParent()),disabled:!1,icon:(0,_.jsx)(`i`,{className:`PlaygroundEditorTheme__contextMenuItemIcon bi bi-link-45deg`})}),new NP({$showOn:e=>a.X(e.getParent())}),new MP(`Cut`,{$onSelect:()=>{e.dispatchCommand(t.Nt,null)},disabled:!1,icon:(0,_.jsx)(`i`,{className:`PlaygroundEditorTheme__contextMenuItemIcon bi bi-scissors`})}),new MP(`Copy`,{$onSelect:()=>{e.dispatchCommand(t.Rr,null)},disabled:!1,icon:(0,_.jsx)(`i`,{className:`PlaygroundEditorTheme__contextMenuItemIcon bi bi-copy`})}),new MP(`Paste`,{$onSelect:()=>{navigator.clipboard.read().then(async function(...n){let r=new DataTransfer,i=(await navigator.clipboard.read())[0];if((await navigator.permissions.query({name:`clipboard-read`})).state===`denied`){alert(`Not allowed to paste from clipboard.`);return}for(let e of i.types){let t=await(await i.getType(e)).text();r.setData(e,t)}let a=new ClipboardEvent(`paste`,{clipboardData:r});e.dispatchCommand(t.Wn,a)})},disabled:!1,icon:(0,_.jsx)(`i`,{className:`PlaygroundEditorTheme__contextMenuItemIcon bi bi-clipboard2-check`})}),new MP(`Paste as Plain Text`,{$onSelect:()=>{navigator.clipboard.read().then(async function(...n){if((await navigator.permissions.query({name:`clipboard-read`})).state===`denied`){alert(`Not allowed to paste from clipboard.`);return}let r=new DataTransfer,i=await navigator.clipboard.readText();r.setData(`text/plain`,i);let a=new ClipboardEvent(`paste`,{clipboardData:r});e.dispatchCommand(t.Wn,a)})},disabled:!1,icon:(0,_.jsx)(`i`,{className:`PlaygroundEditorTheme__contextMenuItemIcon bi bi-file-text`})}),new NP,new MP(`Delete Node`,{$onSelect:()=>{let e=t.tt();t.bn(e)?e.anchor.getNode().getParents().at(-2)?.remove():t.Fr(e)&&e.getNodes().forEach(e=>{t.$(e)&&e.remove()})},disabled:!1,icon:(0,_.jsx)(`i`,{className:`PlaygroundEditorTheme__contextMenuItemIcon bi bi-trash3`})})],[e])})}var RP=[`image/`,`image/heic`,`image/heif`,`image/gif`,`image/webp`],zP=[`.mp4`,`.webm`,`.ogv`,`.mov`,`.m4v`],BP=[`.aac`,`.flac`,`.m4a`,`.mp3`,`.oga`,`.ogg`,`.opus`,`.wav`,`.weba`],VP=`.editor-shell`,HP=`.lexical`;function UP(e){let t=e.name.toLowerCase();return e.type===`application/pdf`||t.endsWith(`.pdf`)?`pdf`:e.type.startsWith(`video/`)||zP.some(e=>t.endsWith(e))?`video`:e.type.startsWith(`audio/`)||BP.some(e=>t.endsWith(e))?`audio`:n.h(e,RP)?`image`:null}function WP(e){return typeof URL.createObjectURL==`function`?URL.createObjectURL(e):void 0}function GP(e){return e.name.toLowerCase().endsWith(HP)}function KP(e){let t=e.getRootElement();return t?.closest(VP)??t}function qP(e,t){let n=KP(e),r=t.target;return n!==null&&r instanceof Node&&n.contains(r)}function JP(e,t){let n=e.getRootElement(),r=t.target;return n!==null&&r instanceof Node&&n.contains(r)}function YP(e){return e!==null&&Array.from(e.types).includes(`Files`)}function XP(e){return e===null?[]:Array.from(e.files)}async function ZP(e,n){let r=await n.text();e.setEditorState(oa(e,r),{tag:t.nr})}function QP({resolveFilePath:e}){let[r]=t.oi();return(0,h.useEffect)(()=>{let e=e=>{!qP(r,e)||!YP(e.dataTransfer)||(e.preventDefault(),e.dataTransfer!==null&&(e.dataTransfer.dropEffect=`copy`))},t=e=>{if(!qP(r,e)||JP(r,e))return;let t=XP(e.dataTransfer);if(t.length===0)return;e.preventDefault(),e.stopPropagation();let n=t.find(GP);if(n===void 0){r.dispatchCommand(a.in,t);return}ZP(r,n)};return document.addEventListener(`dragenter`,e,!0),document.addEventListener(`dragover`,e,!0),document.addEventListener(`drop`,t,!0),()=>{document.removeEventListener(`dragenter`,e,!0),document.removeEventListener(`dragover`,e,!0),document.removeEventListener(`drop`,t,!0)}},[r]),(0,h.useEffect)(()=>r.registerCommand(a.in,t=>((async()=>{let i=t.find(GP);if(i!==void 0){await ZP(r,i);return}let o=new Map;for(let n of t){let t=await a.d(e,n,`drop`);t!==null&&o.set(n,t)}let s=t.filter(e=>UP(e)===`image`&&!o.has(e)),c=new Map;if(s.length>0){let e=await n._(s,RP);for(let{file:t,result:r}of e)n.h(t,RP)&&c.set(t,r)}for(let e of t){let t=UP(e),n=o.get(e)??c.get(e);t===`image`&&n!==void 0&&r.dispatchCommand(wN,{altText:e.name,src:n})}for(let e of t){let t=UP(e);if(t===`video`||t===`pdf`||t===`audio`){let n=o.get(e)??a.l(e),i=WP(e);await a.p(n,e),r.dispatchCommand(wN,{altText:e.name,mediaType:t,...i?{previewSrc:i}:null,src:n})}}})(),!0),1),[r,e]),null}var $P=class{_x;_y;constructor(e,t){this._x=e,this._y=t}get x(){return this._x}get y(){return this._y}equals({x:e,y:t}){return this.x===e&&this.y===t}calcDeltaXTo({x:e}){return this.x-e}calcDeltaYTo({y:e}){return this.y-e}calcHorizontalDistanceTo(e){return Math.abs(this.calcDeltaXTo(e))}calcVerticalDistance(e){return Math.abs(this.calcDeltaYTo(e))}calcDistanceTo(e){return Math.sqrt(this.calcDeltaXTo(e)**2+this.calcDeltaYTo(e)**2)}},eF=class e{_left;_top;_right;_bottom;constructor(e,t,n,r){let[i,a]=t<=r?[t,r]:[r,t],[o,s]=e<=n?[e,n]:[n,e];this._top=i,this._right=s,this._left=o,this._bottom=a}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}equals({top:e,left:t,bottom:n,right:r}){return e===this._top&&n===this._bottom&&t===this._left&&r===this._right}contains(e){if(e instanceof $P){let{x:t,y:n}=e,r=n<this._top,i=n>this._bottom,a=t<this._left,o=t>this._right;return{reason:{isOnBottomSide:i,isOnLeftSide:a,isOnRightSide:o,isOnTopSide:r},result:!(r||i||a||o)}}{let{top:t,left:n,bottom:r,right:i}=e;return t>=this._top&&t<=this._bottom&&r>=this._top&&r<=this._bottom&&n>=this._left&&n<=this._right&&i>=this._left&&i<=this._right}}intersectsWith(e){let{left:t,top:n,width:r,height:i}=e,{left:a,top:o,width:s,height:c}=this;return(t+r>=a+s?t+r:a+s)-(t<=a?t:a)<=r+s&&(n+i>=o+c?n+i:o+c)-(n<=o?n:o)<=i+c}generateNewRect({left:t=this.left,top:n=this.top,right:r=this.right,bottom:i=this.bottom}){return new e(t,n,r,i)}static fromLTRB(t,n,r,i){return new e(t,n,r,i)}static fromLWTH(t,n,r,i){return new e(t,r,t+n,r+i)}static fromPoints(t,n){let{y:r,x:i}=t,{y:a,x:o}=n;return e.fromLTRB(i,r,o,a)}static fromDOM(t){let{top:n,width:r,left:i,height:a}=t.getBoundingClientRect();return e.fromLWTH(i,r,n,a)}},tF=`application/x-lexical-drag-block`,nF=1/0;function rF(e){let t=e.ownerDocument.defaultView,n=(e,n)=>e&&t?parseFloat(t.getComputedStyle(e)[n]):0,{marginTop:r=`0`,marginBottom:i=`0`}=t?t.getComputedStyle(e):{},a=n(e.previousElementSibling,`marginBottom`),o=n(e.nextElementSibling,`marginTop`);return{marginBottom:Math.max(parseFloat(i),o),marginTop:Math.max(parseFloat(r),a)}}function iF(e,r,i,a=!1){let o=e.getBoundingClientRect(),s=function(e){return e.read(`latest`,()=>t.Dr().getChildrenKeys())}(r),c=null;return r.read(`latest`,()=>{if(a){let[e,t]=[r.getElementByKey(s[0]),r.getElementByKey(s[s.length-1])],[a,o]=[e?.getBoundingClientRect(),t?.getBoundingClientRect()];if(a&&o){let r=n.d(e),s=n.d(t);if(i.y/r<a.top?c=e:i.y/s>o.bottom&&(c=t),c)return}}let e=(t=s.length)===0?1/0:nF>=0&&nF<t?nF:Math.floor(t/2);var t;let l=0;for(;e>=0&&e<s.length;){let t=s[e],a=r.getElementByKey(t);if(a===null)break;let u=n.d(a),d=new $P(i.x/u,i.y/u),f=eF.fromDOM(a),{marginTop:p,marginBottom:m}=rF(a),{result:h,reason:{isOnTopSide:g,isOnBottomSide:_}}=f.generateNewRect({bottom:f.bottom+m,left:o.left,right:o.right,top:f.top-p}).contains(d);if(h){c=a,nF=e;break}l===0&&(l=g?-1:_?1:1/0),e+=l}}),c}function aF(e,r,i,a,o,s,c,l,u){let d=t.ut(r),f=(0,h.useRef)(!1),[p,m]=(0,h.useState)(null),g=(0,h.useCallback)(e=>{m(e),u&&u(e)},[u]);return(0,h.useEffect)(()=>{if(d!=null)return t.vn(d,{mouseleave:function(){g(null)},mousemove:function(n){let i=t.Zn(n);if(!t.Sn(i))return void g(null);if(l(i))return;let a=iF(r,e,n);g(a)}})},[d,r,e,l,g]),(0,h.useEffect)(()=>{let t=n.d(e.getRootElement(),!0);i.current&&function(e,t,n,r){if(!e)return void(t.style.display=`none`);let i=e.getBoundingClientRect(),a=e.ownerDocument.defaultView,o=a?a.getComputedStyle(e):null,s=t.getBoundingClientRect(),c=n.getBoundingClientRect(),l=o?parseInt(o.lineHeight,10):NaN;isNaN(l)&&(l=i.bottom-i.top);let u=(i.top+(l-(s.height||l))/2-c.top+n.scrollTop)/r;t.style.display=`flex`,t.style.opacity=`1`,t.style.transform=`translate(4px, ${u}px)`}(p,i.current,r,t)},[e,r,p,i]),(0,h.useEffect)(()=>{function i(i){if(!f.current)return!1;let[o]=n.i(i);if(o)return!1;let s=i.pageY,c=t.Zn(i);if(!t.Sn(c))return!1;let l=iF(r,e,i,!0),u=a.current;return l!==null&&u!==null&&(function(e,t,n,r){let{top:i,height:a}=t.getBoundingClientRect(),{top:o,width:s}=r.getBoundingClientRect(),{marginTop:c,marginBottom:l}=rF(t),u=i;n>=i?u+=a+l/2:u-=c/2;let d=u-o-2+r.scrollTop;e.style.transform=`translate(24px, ${d}px)`,e.style.width=s-48+`px`,e.style.opacity=`.4`}(u,l,s/n.d(c),r),i.preventDefault(),!0)}return t.Yn(e.registerCommand(t.l,e=>i(e),1),e.registerCommand(t.Qr,i=>function(i){if(!f.current)return!1;let[a]=n.i(i);if(a)return!1;let{dataTransfer:o,pageY:s}=i,c=t.Zn(i),l=t.Ht(o==null?``:o.getData(tF));if(!l||!t.Sn(c))return!1;let u=iF(r,e,i,!0);if(!u)return!1;let d=t.Yt(u);if(!d)return!1;if(d===l)return t.Vn&&e.focus(),!0;let p=u.getBoundingClientRect().top;return s/n.d(c)>=p?d.insertAfter(l):d.insertBefore(l),g(null),t.Vn&&t.it(()=>{e.focus()}),!0}(i),3))},[r,e,a,g]),(0,h.useEffect)(()=>{if(t.Vn&&o)return t.Yn(e.registerRootListener(n=>{if(n)return t.yt(n,`blur`,function(r){let i=r.relatedTarget;t.Sn(i)&&l(i)&&(n&&(n.focus({preventScroll:!0}),e.update(()=>{let e=t.tt();e===null||e.dirty||(e.dirty=!0)})),r.stopImmediatePropagation())},!0)}),e.registerCommand(t.at,()=>{let n=e.getRootElement(),r=t.Sr(t.E(n));return!!(n&&t.Sn(r)&&l(r))&&(n.focus({preventScroll:!0}),e.update(()=>{let e=t.tt();e===null||e.dirty||(e.dirty=!0)}),!0)},3))},[e,o,l]),(0,v.createPortal)((0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`div`,{draggable:!0,onDragStart:function(n){let r=n.dataTransfer;if(!r||!p)return;(function(e,t){let{transform:n}=t.style;t.style.transform=`translateZ(0)`,e.setDragImage(t,0,0),setTimeout(()=>{t.style.transform=n})})(r,p);let i=``;if(e.update(()=>{let e=t.Yt(p);e&&(i=e.getKey())}),f.current=!0,r.setData(tF,i),t.Vn){let n=e.getRootElement();n!==null&&t.Hn(n)!==n&&(n.focus({preventScroll:!0}),e.update(()=>{let e=t.tt();e===null||e.dirty||(e.dirty=!0)}))}},onDragEnd:function(){var n;f.current=!1,(n=a.current)&&(n.style.opacity=`0`,n.style.transform=`translate(-10000px, -10000px)`),t.Vn&&e.focus()},children:o&&s}),c]}),r)}function oF({anchorElem:e=document.body,menuRef:n,targetLineRef:r,menuComponent:i,targetLineComponent:a,isOnMenu:o,onElementChanged:s}){let[c]=t.oi();return aF(c,e,n,r,c._editable,i,a,o,s)}var sF=`draggable-block-menu`;function cF(e){return!!e.closest(`.${sF}`)}function lF({anchorElem:e=document.body}){let[n]=t.oi(),[r,i]=ix(),a=(0,h.useRef)(null),o=(0,h.useRef)(null),s=(0,h.useRef)(null),c=(0,h.useRef)(null),[l,u]=(0,h.useState)(null),[d,f]=(0,h.useState)(null),[p,m]=(0,h.useState)(!1),[g,y]=(0,h.useState)(``),[b,x]=(0,h.useState)(0),[S,C]=(0,h.useState)(null),w=(0,h.useMemo)(()=>{let e=kP(n,i);if(!g)return e;let t=new RegExp(g,`i`);return[...OP(n,g),...e.filter(e=>t.test(e.title)||e.keywords.some(e=>t.test(e)))]},[n,g,i]);(0,h.useEffect)(()=>{p&&s.current&&s.current.focus()},[p]),(0,h.useEffect)(()=>{!p||!w.length||x(e=>Math.min(e,Math.max(w.length-1,0)))},[p,w.length]),(0,h.useEffect)(()=>{if(!p)return;let e=e=>{let t=e.target;o.current&&o.current.contains(t)||a.current&&a.current.contains(t)||(m(!1),f(null))};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[p]);let T=(0,h.useCallback)(e=>{if(!d){m(!1);return}m(!1);let r=null;n.update(()=>{let e=t.Ht(d.targetNodeKey);if(!e)return;let n=t.Ar(),i=t.D(``);n.append(i),d.insertBefore?e.insertBefore(n):e.insertAfter(n),r=n.getKey(),i.select()});let i=r;i!==null&&(e.onSelect(g),n.update(()=>{let e=t.Ht(i);if(t.kn(e)){let n=e.getFirstChild();t.Jt(n)&&n.getTextContent().length===0&&e.getChildrenSize()===1&&e.remove()}}))},[n,d,g]);(0,h.useEffect)(()=>{if(!p)return;let e=e=>{if(!(!p||!w.length))if(e.key===`ArrowDown`)e.preventDefault(),x(e=>e+1>=w.length?0:e+1);else if(e.key===`ArrowUp`)e.preventDefault(),x(e=>e-1<0?w.length-1:e-1);else if(e.key===`Enter`){e.preventDefault();let t=w[b];t&&T(t)}else e.key===`Escape`&&(e.preventDefault(),m(!1),f(null))};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[b,p,w,T]);function E(e){if(!l||!n)return;let r=null;if(n.read(()=>{let e=t.Yt(l);e&&(r=e.getKey())}),!r)return;let i=e.altKey||e.ctrlKey,o=a.current?.getBoundingClientRect();C(o?{left:o.left+o.width+window.scrollX+8,top:o.top+window.scrollY}:null),f({insertBefore:i,targetNodeKey:r}),y(``),x(0),m(!0)}return(0,_.jsxs)(_.Fragment,{children:[r,p&&S?v.createPortal((0,_.jsxs)(`div`,{className:`typeahead-popover component-picker-menu draggable-block-component-picker`,ref:o,style:{left:S.left,position:`absolute`,top:S.top,zIndex:10},children:[(0,_.jsx)(`input`,{className:`component-picker-search`,placeholder:`Filter blocks...`,value:g,ref:s,onChange:e=>y(e.target.value)}),(0,_.jsx)(`ul`,{children:w.map((e,t)=>(0,_.jsx)(DP,{index:t,isSelected:b===t,onClick:()=>{x(t),T(e)},onMouseEnter:()=>x(t),option:e},e.key))})]}),document.body):null,(0,_.jsx)(oF,{anchorElem:e,menuRef:a,targetLineRef:c,menuComponent:(0,_.jsxs)(`div`,{ref:a,className:`draggable-block-menu`,children:[(0,_.jsx)(`button`,{title:`Click to add below`,className:`draggable-block-menu-button icon-plus`,onClick:E,children:(0,_.jsx)(`i`,{className:`bi bi-plus`})}),(0,_.jsx)(`div`,{className:`draggable-block-menu-handle`,"aria-hidden":`true`,children:(0,_.jsx)(`i`,{className:`bi bi-grip-vertical`})})]}),targetLineComponent:(0,_.jsx)(`div`,{ref:c,className:`draggable-block-target-line`}),isOnMenu:cF,onElementChanged:u})]})}function uF(){return(0,_.jsx)(jM,{onChange:e=>{Pr(JSON.stringify(e))}})}var dF=class extends a.h{emoji;keywords;constructor(e,t,n){super(e),this.title=e,this.emoji=t,this.keywords=n.keywords||[]}};function fF({index:e,isSelected:t,onClick:n,onMouseEnter:r,option:i}){let a=`item mx-2 p-2 d-flex flex-row align-items-center flex-shrink-0`;return t&&(a+=` selected`),(0,_.jsx)(`li`,{tabIndex:-1,className:a,ref:i.setRefElement,role:`option`,"aria-selected":t,id:`typeahead-item-`+e,onMouseEnter:r,onClick:n,children:(0,_.jsxs)(`span`,{className:`text`,children:[i.emoji,` `,i.title]})},i.key)}var pF=10;function mF(){let[e]=t.oi(),[n,r]=(0,h.useState)(null),[i,o]=(0,h.useState)([]);(0,h.useEffect)(()=>{Promise.resolve().then(()=>Ly).then(e=>o(e.default))},[]);let s=(0,h.useMemo)(()=>i==null?[]:i.map(({emoji:e,aliases:t,tags:n})=>new dF(t[0],e,{keywords:[...t,...n]})),[i]),c=a.g(`:`,{minLength:0,punctuation:`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\[\\]\\\\/!%'"~=<>:;`}),l=(0,h.useMemo)(()=>s.filter(e=>n==null?s:new RegExp(n,`gi`).exec(e.title)||e.keywords!=null?e.keywords.some(e=>new RegExp(n,`gi`).exec(e)):!1).slice(0,pF),[s,n]);return(0,_.jsx)(a.m,{onQueryChange:r,onSelectOption:(0,h.useCallback)((n,r,i)=>{e.update(()=>{let e=t.tt();!t.bn(e)||n==null||(r&&r.remove(),e.insertNodes([t.D(n.emoji)]),i())})},[e]),triggerFn:c,options:l,menuRenderFn:(e,{selectedIndex:t,selectOptionAndCleanUp:n,setHighlightedIndex:r})=>e.current==null||l.length===0?null:e.current&&l.length?v.createPortal((0,_.jsx)(`div`,{className:`typeahead-popover emoji-menu`,children:(0,_.jsx)(`ul`,{className:`list-unstyled m-0 p-0`,children:l.map((e,i)=>(0,_.jsx)(fF,{index:i,isSelected:t===i,onClick:()=>{r(i),n(e)},onMouseEnter:()=>{r(i)},option:e},e.key))})}),e.current):null})}var hF=/[\p{L}\p{N}_]/u;function gF(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n],i=r.toLowerCase();t+=i.length===1?i:r}return t}function _F(e,t,n){let r=t>0?e[t-1]:``,i=n<e.length?e[n]:``;return!hF.test(r)&&!hF.test(i)}function vF(e,t,n){if(t===``)return[];let r=n.caseSensitive?e:gF(e),i=n.caseSensitive?t:gF(t),a=[],o=0;for(;;){let e=r.indexOf(i,o);if(e===-1)return a;let t=e+i.length;(!n.wholeWord||_F(r,e,t))&&a.push({end:t,start:e}),o=t}}function yF(e,t){let n=[],r=0;for(let i of t){for(;r<e.length&&e[r].start+e[r].length<=i.start;)r++;let t=[];for(let n=r;n<e.length;n++){let r=e[n];if(r.start>=i.end)break;let a=Math.max(i.start-r.start,0),o=Math.min(i.end-r.start,r.length);o>a&&t.push({endOffset:o,key:r.key,startOffset:a})}n.push(t)}return n}function bF(e,t){let n=e.findIndex(e=>e.start>=t);return n===-1?0:n}function xF(){let e=[],r=``,i=!1;for(let{node:a}of n.b())if(t.Jt(a)){let t=a.getTextContent();if(t===``)continue;i&&r!==``&&(r+=`
1014
+ `+ ++s);r.setAttribute(`data-gutter`,o)}function Gj(e,n,r,i){let a=i.getKey(),{nodesCurrentlyHighlighting:o}=r,s=i.getLanguage();s||n.defaultLanguage===null||(s=n.defaultLanguage,i.setLanguage(s));let c=i.getTheme();c||(c=n.defaultTheme,i.setTheme(c));let l=!1;Ij(c)||(Lj(c,e,a),s&&(l=!0)),s?Pj(s)?i.getIsSyntaxHighlightSupported()||i.setIsSyntaxHighlightSupported(!0):(!Fj(s,e,a)&&i.getIsSyntaxHighlightSupported()&&i.setIsSyntaxHighlightSupported(!1),l=!0):i.getIsSyntaxHighlightSupported()&&i.setIsSyntaxHighlightSupported(!1),l||o.has(a)||(o.add(a),r.didTransform||(r.didTransform=!0,t.it(()=>{r.didTransform=!1,o.clear()})),function(e,n){let r=t.Ht(e);if(!W(r)||!r.isAttached())return;let i=t.tt();if(!t.bn(i))return void n();let a=i.anchor,o=a.offset,s=a.type===`element`&&t._r(r.getChildAtIndex(a.offset-1)),c=0;if(s||(c=o+a.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),n()){if(s)return void a.getNode().select(o,o);r.getChildren().some(e=>{let n=t.Jt(e);if(n||t._r(e)){let t=e.getTextContentSize();if(n&&t>=c)return e.select(c,c),!0;c-=t}return!1})}}(a,()=>{let e=t.Ht(a);if(!W(e)||!e.isAttached())return!1;let r=e.getLanguage()||n.defaultLanguage,o=n.$tokenize(e,r??void 0),{from:s,to:c,nodesForReplacement:l}=function(e,t){let n=0;for(;n<e.length&&Kj(e[n],t[n]);)n++;let r=e.length,i=t.length,a=Math.min(r,i)-n,o=0;for(;o<a;)if(o++,!Kj(e[r-o],t[i-o])){o--;break}let s=n,c=r-o;return{from:s,nodesForReplacement:t.slice(n,i-o),to:c}}(e.getChildren(),o);return!(s===c&&!l.length)&&(i.splice(s,c-s,l),!0)}))}function Kj(e,n){return qe(e)&&qe(n)&&e.__text===n.__text&&e.__highlightType===n.__highlightType&&e.__style===n.__style||t.On(e)&&t.On(n)||t._r(e)&&t._r(n)}function qj(e,n){let r=[];!0!==e._headless&&r.push(e.registerMutationListener(Fe,n=>{e.read(`latest`,()=>{for(let[r,i]of n)if(i!==`destroyed`){let n=t.Ht(r);n!==null&&Wj(n,e)}})},{skipInitialization:!1}));let i={didTransform:!1,nodesCurrentlyHighlighting:new Set};return r.push(e.registerNodeTransform(Fe,Gj.bind(null,e,n,i)),e.registerNodeTransform(t.Wt,Uj.bind(null,e,n,i)),e.registerNodeTransform(We,Uj.bind(null,e,n,i))),t.Yn(...r)}function Jj(e,n=Hj){if(!e.hasNodes([Fe,We]))throw Error(`CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor`);return t.Yn(qj(e,n),$e(e))}var Yj=`one-light`,Xj=`dark-plus`;function Zj(e){return e?Xj:Yj}function Qj(){let[e]=t.oi(),{settings:{isDarkMode:n}}=i.r(),r=Zj(n),a=(0,h.useMemo)(()=>({...Hj,defaultTheme:r}),[r]);return(0,h.useEffect)(()=>Jj(e,a),[e,a]),(0,h.useEffect)(()=>{let i=Zj(!n);e.update(()=>{for(let e of t.c(Fe)){let t=e.getTheme();(t===void 0||t===i)&&e.setTheme(r)}})},[r,e,n]),null}function $j(e){e.hidden=`until-found`}function eM(e,t){e.onbeforematch=t}function tM(e){return{node:rM(e.open===void 0||e.open)}}var nM=class e extends t.m{__open;constructor(e,t){super(t),this.__open=e}static getType(){return`collapsible-container`}static clone(t){return new e(t.__open,t.__key)}isShadowRoot(){return!0}collapseAtStart(e){let n=[];for(let e of this.getChildren())t.vt(e)&&n.push(...e.getChildren());t.cr(t.f(this,`previous`)).splice(1,n);let[r]=n;return r&&r.selectStart().deleteCharacter(!0),!0}createDOM(e,n){let r;if(t.jr)r=document.createElement(`div`),this.__open&&r.setAttribute(`open`,``);else{let e=document.createElement(`details`);e.open=this.__open,e.addEventListener(`toggle`,()=>{n.getEditorState().read(()=>this.getOpen())!==e.open&&n.update(()=>this.toggleOpen())}),r=e}return r.classList.add(`Collapsible__container`),r}updateDOM(e,n){let r=this.__open;if(e.__open!==r)if(t.jr){let e=n.children[1];if(!t.Sn(e))throw Error(`Expected contentDom to be an HTMLElement`);r?(n.setAttribute(`open`,``),e.hidden=!1):(n.removeAttribute(`open`),$j(e))}else n.open=this.__open;return!1}static importDOM(){return{details:e=>({conversion:tM,priority:1})}}static importJSON(e){return rM(e.open).updateFromJSON(e)}exportDOM(){let e=document.createElement(`details`);return e.classList.add(`Collapsible__container`),e.setAttribute(`open`,this.__open.toString()),{element:e}}exportJSON(){return{...super.exportJSON(),open:this.__open}}setOpen(e){let t=this.getWritable();t.__open=e}getOpen(){return this.getLatest().__open}toggleOpen(){this.setOpen(!this.getOpen())}};function rM(e){return new nM(e)}function iM(e){return e instanceof nM}function aM(e){return{node:sM()}}var oM=class e extends t.m{static getType(){return`collapsible-content`}static clone(t){return new e(t.__key)}createDOM(e,n){let r=document.createElement(`div`);return r.classList.add(`Collapsible__content`),t.jr&&(n.getEditorState().read(()=>{let e=this.getParentOrThrow();if(!iM(e))throw Error(`Expected parent node to be a CollapsibleContainerNode`);e.__open||$j(r)}),eM(r,()=>{n.update(()=>{let e=this.getParentOrThrow().getLatest();if(!iM(e))throw Error(`Expected parent node to be a CollapsibleContainerNode`);e.__open||e.toggleOpen()})})),r}updateDOM(e,t){return!1}static importDOM(){return{div:e=>e.hasAttribute(`data-lexical-collapsible-content`)?{conversion:aM,priority:2}:null}}exportDOM(){let e=document.createElement(`div`);return e.classList.add(`Collapsible__content`),e.setAttribute(`data-lexical-collapsible-content`,`true`),{element:e}}static importJSON(e){return sM().updateFromJSON(e)}isShadowRoot(){return!0}};function sM(){return new oM}function cM(e){return e instanceof oM}function lM(e){return(e instanceof Element?e:e instanceof Node?e.parentElement:null)?.closest(`.PlaygroundEditorTheme__paragraph span`)!==null}function uM(e){return{node:fM()}}var dM=class extends t.m{$config(){return this.config(`collapsible-title`,{$transform(e){e.isEmpty()&&e.remove()},extends:t.m,importDOM:t.Pr({summary:()=>({conversion:uM,priority:1})})})}createDOM(e,n){let r=document.createElement(`summary`);return r.classList.add(`Collapsible__title`),r.addEventListener(`click`,e=>{lM(e.target)&&e.preventDefault()}),t.jr&&r.addEventListener(`click`,e=>{e.defaultPrevented||n.update(()=>{let e=this.getLatest().getParentOrThrow();if(!iM(e))throw Error(`Expected parent node to be a CollapsibleContainerNode`);e.toggleOpen()})}),r}updateDOM(e,t){return!1}insertNewAfter(e,n=!0){let r=this.getParentOrThrow();if(!iM(r))throw Error(`CollapsibleTitleNode expects to be child of CollapsibleContainerNode`);if(r.getOpen()){let e=this.getNextSibling();if(!cM(e))throw Error(`CollapsibleTitleNode expects to have CollapsibleContentNode sibling`);let n=e.getFirstChild();if(t.vt(n))return n;{let n=t.Ar();return e.append(n),n}}else{let e=t.Ar();return r.insertAfter(e,n),e}}};function fM(){return new dM}function pM(e){return e instanceof dM}var mM=t.x(`INSERT_COLLAPSIBLE_COMMAND`),hM=[],gM=()=>`en`;function _M(e){if(e.type!==`paste`||!(`clipboardData`in e))return null;let t=e.clipboardData?.getData(`text/plain`);return t?o.s(t):null}function vM(e,t,n){let r=t(o.c(e));if(r===`en`)return``;let i=o.u(n,r);return i===null?``:`font-family: ${i};`}function yM(e,n){let r=t.D(e);return n!==``&&r.setStyle(n),r}function bM(e,n){return t.Ar().append(yM(e,n))}function xM(e,t){let n=fM(),r=sM();return rM(!0).append(n.append(bM(e.header,t)),r.append(...o.o(e).map(e=>bM(e,t))))}function SM(e){return e.title||e.header}function CM(e,t){let n=a.O(e.header,SM(e),null,`bible-verse`,e.body);return t!==``&&n.setStyle(t),n}function wM(e,n){let r=t.tt();if(r===null||!t.bn(r)||!r.isCollapsed())return!1;let i=r.anchor.getNode(),a=r.anchor.offset-1;return!t.Jt(i)||a<0||i.getTextContent().charAt(a)!==`^`?!1:(i.spliceText(a,1,``,!0),t.W([CM(e,n),t.D(` `)]),!0)}function TM({detectTextLanguage:e=gM,extraFontFamilies:r=hM}){let[i]=t.oi(),a=(0,h.useMemo)(()=>o.d(r),[r]);return(0,h.useEffect)(()=>{if(!i.hasNodes([nM,dM,oM]))throw Error(`CollapsiblePlugin: CollapsibleContainerNode, CollapsibleTitleNode, or CollapsibleContentNode not registered on editor`);let r=()=>{let e=t.tt();if(t.bn(e)&&e.isCollapsed()&&e.anchor.offset===0){let n=t.B(e.anchor.getNode(),iM);if(iM(n)){let r=n.getParent();r!==null&&r.getFirstChild()===n&&e.anchor.key===n.getFirstDescendant()?.getKey()&&n.insertBefore(t.Ar())}}return!1},s=()=>{let e=t.tt();if(t.bn(e)&&e.isCollapsed()){let n=t.B(e.anchor.getNode(),iM);if(iM(n)){let r=n.getParent();if(r!==null&&r.getLastChild()===n){let r=n.getFirstDescendant(),i=n.getLastDescendant();(i!==null&&e.anchor.key===i.getKey()&&e.anchor.offset===i.getTextContentSize()||r!==null&&e.anchor.key===r.getKey()&&e.anchor.offset===r.getTextContentSize())&&n.insertAfter(t.Ar())}}}return!1};return t.Yn(i.registerNodeTransform(oM,e=>{if(!iM(e.getParent())){let t=e.getChildren();for(let n of t)e.insertBefore(n);e.remove()}}),i.registerNodeTransform(dM,e=>{if(!iM(e.getParent())){e.replace(t.Ar().append(...e.getChildren()));return}}),i.registerNodeTransform(nM,e=>{let t=e.getChildren();if(t.length!==2||!pM(t[0])||!cM(t[1])){for(let n of t)e.insertBefore(n);e.remove()}}),i.registerCommand(t.Qn,s,1),i.registerCommand(t.Dn,s,1),i.registerCommand(t.Cr,r,1),i.registerCommand(t.ur,r,1),i.registerCommand(t.A,()=>{let e=t.tt();if(t.bn(e)){let n=t.B(e.anchor.getNode(),e=>pM(e));if(pM(n)){let e=n.getParent();if(e&&iM(e))return e.getOpen()||e.toggleOpen(),n.getNextSibling()?.selectEnd(),!0}}return!1},1),i.registerCommand(t.Wn,n=>{let r=_M(n);if(r===null)return!1;n.preventDefault(),t.pt(t.nr);let s=vM(r,e,a);if(wM(r,s))return!0;let c=bM(r.header,s),l=o.o(r).map(e=>bM(e,s)),u=c.getKey(),d=l.map(e=>e.getKey());return t.W([c,...l]),setTimeout(()=>{i.update(()=>{let e=t.Ht(u),n=d.map(e=>t.Ht(e));if(e===null||n.some(e=>e===null))return;let i=t.Ar(),a=xM(r,s);e.insertBefore(a),a.insertAfter(i),e.remove();for(let e of n)e?.remove();i.selectEnd()},{tag:t.nr})}),!0},1),i.registerCommand(mM,()=>(i.update(()=>{let e=fM(),r=t.Ar();n.n(rM(!0).append(e.append(r),sM().append(t.Ar()))),r.select()}),!0),1))},[e,i,a]),null}var EM=t.ar?h.useLayoutEffect:h.useEffect,DM={tag:t.Jr};function OM({initialConfig:e,children:n}){let r=(0,h.useMemo)(()=>{let{theme:n,namespace:r,nodes:i,onError:a,onWarn:o,editorState:s,html:c}=e,l=t.ci(null,n),u=t.mr({editable:e.editable,html:c,namespace:r,nodes:i,onError:e=>a(e,u),...o?{onWarn:e=>o(e,u)}:{},theme:n});return function(e,n){if(n!==null){if(n===void 0)e.update(()=>{let n=t.Dr();if(n.isEmpty()){let r=t.Ar();n.append(r);let i=e.getRootElement(),a=t.ar&&i!==null?t.Hn(i):null;(t.tt()!==null||a!==null&&a===i)&&r.select()}},DM);else if(n!==null)switch(typeof n){case`string`:{let t=e.parseEditorState(n);e.setEditorState(t,DM);break}case`object`:e.setEditorState(n,DM);break;case`function`:e.update(()=>{t.Dr().isEmpty()&&n(e)},DM)}}}(u,s),[u,l]},[]);return EM(()=>{let t=e.editable,[n]=r;n.setEditable(t===void 0||t)},[]),(0,_.jsx)(t.si.Provider,{value:r,children:n})}function kM({editorRef:e}){let[n]=t.oi();return h.useEffect(()=>{typeof e==`function`?e(n):typeof e==`object`&&e&&(e.current=n)},[n]),null}var AM=t.ar?h.useLayoutEffect:h.useEffect;function jM({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:n=!1,onChange:r}){let[i]=t.oi();return AM(()=>{if(r)return i.registerUpdateListener(({editorState:t,dirtyElements:a,dirtyLeaves:o,prevEditorState:s,tags:c})=>{n&&a.size===0&&o.size===0||e&&c.has(`history-merge`)||s.isEmpty()||r(t,i,c)})},[i,e,n,r]),null}var MM={...s.i,paragraph:`CommentEditorTheme__paragraph`},NM=t.x(`INSERT_INLINE_COMMAND`),PM=`Commented`,FM=100,IM=`…`;function LM(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function RM(e){let t=new Set;for(let n=0;n<e.length;n++){let r=e[n];r.type===`thread`&&t.add(r.id)}return t}function zM(e,t,n){let r=e.get(t);if(r===void 0)return!1;let i=r.delete(n);return r.size===0&&e.delete(t),i}function BM(e,t){let n=[],r=[],i=new Set;if(e===null)return{invalidIDs:n,validIDs:r};for(let a=0;a<e.length;a++){let o=e[a];i.has(o)||(i.add(o),t.has(o)?r.push(o):n.push(o))}return{invalidIDs:n,validIDs:r}}function VM(e,t){return e?.fontFamily===t?.fontFamily&&e?.fontStyle===t?.fontStyle&&e?.fontWeight===t?.fontWeight}function HM(e,t,n){if(t.length===0)return;let r=e[e.length-1];if(r!==void 0&&VM(r.style,n)){r.text+=t;return}e.push(n===void 0?{text:t}:{style:n,text:t})}function UM(e){return e.map(e=>e.text).join(``)}function WM(e,t){let n=[],r=t;for(let t=0;t<e.length&&r>0;t++){let i=e[t],a=i.text.slice(0,r);HM(n,a,i.style),r-=a.length}return n.length===0?void 0:n}function GM(e,t){let n=UM(e);if(n===t)return Array.from(e);if(t.endsWith(IM)){let r=t.slice(0,-1);if(n.startsWith(r)){let t=WM(e,r.length),n=t?.[t.length-1];if(n!==void 0)return n.text+=IM,t}}return n.startsWith(t)?WM(e,t.length):void 0}function KM(e){if(e.trim().length===0)return;let t=document.createElement(`span`);t.style.cssText=e;let n=t.style.fontFamily.trim();return n.length===0?void 0:n}function qM(e,t){let n=e.getElementByKey(t.getKey()),r=e.getRootElement();if(n===null||r===null)return;let i=window.getComputedStyle(n).fontFamily.trim(),a=window.getComputedStyle(r).fontFamily.trim();if(!(i.length===0||i===a))return i}function JM(e,t){let n={};t.hasFormat(`bold`)&&(n.fontWeight=`700`),t.hasFormat(`italic`)&&(n.fontStyle=`italic`);let r=KM(t.getStyle())??qM(e,t);return r!==void 0&&(n.fontFamily=r),Object.keys(n).length===0?void 0:n}function YM(e,t){let n=t.getTextContent(),r=t.getKey(),i=e.isBackward()?e.focus:e.anchor,a=e.isBackward()?e.anchor:e.focus,o=0,s=n.length;i.key===r&&(o=i.offset),a.key===r&&(s=a.offset);let c=Math.max(0,Math.min(o,n.length)),l=Math.max(0,Math.min(s,n.length));return n.slice(Math.min(c,l),Math.max(c,l))}function XM(e,n,r){let i=[],a=!1,o=n.getNodes();for(let r=0;r<o.length;r++){let s=o[r];if(!t.Jt(s))continue;let c=YM(n,s),l=JM(e,s);l!==void 0&&(a=!0),HM(i,c,l)}if(a)return UM(i)===r?i:void 0}function ZM(e){let t=WM(e,FM-1),n=t?.[t.length-1];if(n!==void 0)return n.text+=IM,t}function QM(e,n){if(!t.bn(n))return{quote:``};let r=n.getTextContent(),i=XM(e,n,r);if(r.length<=FM)return i===void 0?{quote:r}:{quote:r,quoteSegments:i};let a=r.slice(0,FM-1)+IM,o=i===void 0?void 0:ZM(i);return o===void 0?{quote:a}:{quote:a,quoteSegments:o}}function $M({onEscape:e}){let[n]=t.oi();return(0,h.useEffect)(()=>n.registerCommand(t.jn,t=>e(t),2),[n,e]),null}function eN({onSubmit:e}){let[n]=t.oi();return(0,h.useEffect)(()=>n.registerCommand(t.yn,t=>t===null||!t.ctrlKey&&!t.metaKey?!1:(t.preventDefault(),e(),!0),2),[n,e]),null}function tN({className:e,autoFocus:t,onEscape:n,onChange:i,onSubmit:a,editorRef:o,placeholder:c=`Type a comment...`}){return(0,_.jsx)(OM,{initialConfig:{namespace:`Commenting`,nodes:[],onError:e=>{throw e},theme:MM},children:(0,_.jsxs)(`div`,{className:`CommentPlugin_CommentInputBox_EditorContainer`,children:[(0,_.jsx)(s.a,{contentEditable:(0,_.jsx)(r.t,{placeholder:c,className:e}),ErrorBoundary:r.N}),(0,_.jsx)(jM,{onChange:i}),(0,_.jsx)(r.o,{}),t!==!1&&(0,_.jsx)(ni,{}),(0,_.jsx)($M,{onEscape:n}),a!==void 0&&(0,_.jsx)(eN,{onSubmit:a}),(0,_.jsx)(hi,{}),o!==void 0&&(0,_.jsx)(kM,{editorRef:o})]})})}function nN(e,t){return(0,h.useCallback)((n,i)=>{n.read(()=>{e(r.L()),t(!r.F(i.isComposing(),!0))})},[t,e])}function rN({editor:e,cancelAddComment:r,submitAddComment:i}){let[a,o]=(0,h.useState)(``),[s,c]=(0,h.useState)(!1),l=(0,h.useRef)(null),d=(0,h.useMemo)(()=>({container:document.createElement(`div`),elements:[]}),[]),f=(0,h.useRef)(null),p=PM,m=(0,h.useCallback)(()=>{e.getEditorState().read(()=>{let r=t.tt();if(t.bn(r)){f.current=r.clone();let t=r.anchor,i=r.focus,a=n.k(e,t.getNode(),t.offset,i.getNode(),i.offset),o=l.current;if(a!==null&&o!==null){let{left:t,bottom:r,width:i}=a.getBoundingClientRect(),s=n.I(e,a),c=s.length===1?t+i/2-125:t-125;c<10&&(c=10),o.style.left=`${c}px`,o.style.top=`${r+20+(window.pageYOffset||document.documentElement.scrollTop)}px`;let l=s.length,{container:u}=d,f=d.elements,p=f.length;for(let e=0;e<l;e++){let t=s[e],n=f[e];n===void 0&&(n=document.createElement(`span`),f[e]=n,u.appendChild(n));let r=`position:absolute;top:${t.top+(window.pageYOffset||document.documentElement.scrollTop)}px;left:${t.left}px;height:${t.height}px;width:${t.width}px;background-color:rgba(255, 212, 0, 0.3);pointer-events:none;z-index:5;`;n.style.cssText=r}for(let e=p-1;e>=l;e--){let t=f[e];u.removeChild(t),f.pop()}}}})},[e,d]);(0,h.useLayoutEffect)(()=>{m();let e=d.container,t=document.body;if(t!==null)return t.appendChild(e),()=>{t.removeChild(e)}},[d.container,m]),(0,h.useEffect)(()=>(window.addEventListener(`resize`,m),()=>{window.removeEventListener(`resize`,m)}),[m]);let g=e=>(e.preventDefault(),r(),!0),v=()=>{if(s){let{quote:t,quoteSegments:n}=e.getEditorState().read(()=>{let t=f.current;return QM(e,t)});i(Ni(t,[Mi(a,p)],void 0,n),!0,void 0,f.current),f.current=null}};return(0,_.jsxs)(`div`,{className:`CommentPlugin_CommentInputBox`,ref:l,children:[(0,_.jsx)(tN,{className:`CommentPlugin_CommentInputBox_Editor`,onEscape:g,onChange:nN(o,c),onSubmit:v}),(0,_.jsxs)(`div`,{className:`CommentPlugin_CommentInputBox_Buttons`,children:[(0,_.jsx)(u.t,{onClick:r,className:`CommentPlugin_CommentInputBox_Button`,children:`Cancel`}),(0,_.jsx)(u.t,{onClick:v,disabled:!s,className:`CommentPlugin_CommentInputBox_Button primary`,children:`Comment`})]})]})}function iN({submitAddComment:e,thread:n,placeholder:r}){let[i,a]=(0,h.useState)(``),[o,s]=(0,h.useState)(!1),c=(0,h.useRef)(null),l=PM,d=nN(a,s),f=()=>{if(o){e(Mi(i,l),!1,n);let r=c.current;r!==null&&r.dispatchCommand(t.hn,void 0)}};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tN,{className:`CommentPlugin_CommentsPanel_Editor`,autoFocus:!1,onEscape:()=>!0,onChange:d,onSubmit:f,editorRef:c,placeholder:r}),(0,_.jsx)(u.t,{className:`CommentPlugin_CommentsPanel_SendButton`,onClick:f,disabled:!o,children:(0,_.jsx)(`i`,{className:`bi bi-pin send`})})]})}function aN({commentOrThread:e,deleteCommentOrThread:t,onClose:n,thread:r=void 0}){return(0,_.jsxs)(_.Fragment,{children:[`Are you sure you want to delete this `,e.type,`?`,(0,_.jsxs)(`div`,{className:`Modal__content pt-4`,children:[(0,_.jsx)(u.t,{onClick:()=>{t(e,r),n()},children:`Delete`}),` `,(0,_.jsx)(u.t,{onClick:()=>{n()},children:`Cancel`})]})]})}function oN(e,n,r){if(t.Jt(n)){HM(r,n.getTextContent(),JM(e,n));return}if(!t.vt(n))return;let i=n.getChildren();for(let t=0;t<i.length;t++)oN(e,i[t],r)}function sN(e,t){return Array.from(t).sort((t,n)=>{let r=e.getElementByKey(t),i=e.getElementByKey(n);if(r===null||i===null)return 0;let a=r.compareDocumentPosition(i);return(a&Node.DOCUMENT_POSITION_FOLLOWING)===0?(a&Node.DOCUMENT_POSITION_PRECEDING)===0?0:1:-1})}function cN(e,n,r){let i=n.get(r.id);if(i===void 0||i.size===0)return;let o=sN(e,i);return e.getEditorState().read(()=>{let n=[];for(let r=0;r<o.length;r++){let i=t.Ht(o[r]);a._(i)&&oN(e,i,n)}return n.length===0?void 0:GM(n,r.quote)})}function lN(e){if(e.style!==void 0)return{fontFamily:e.style.fontFamily,fontStyle:e.style.fontStyle,fontWeight:e.style.fontWeight}}function uN({editor:e,markNodeMap:t,thread:n}){let r=n.quoteSegments??cN(e,t,n);return(0,_.jsx)(`span`,{className:`CommentPlugin_CommentsPanel_List_Thread_QuoteText`,children:r===void 0?n.quote:r.map((e,t)=>(0,_.jsx)(`span`,{style:lN(e),children:e.text},t))})}function dN({comment:e,dateTimeFormatter:t,deleteComment:n,thread:r}){let i=new Date(e.timeStamp),a=t.format(i),[o,s]=ix();return(0,_.jsxs)(`li`,{className:`CommentPlugin_CommentsPanel_List_Comment`,children:[(0,_.jsxs)(`div`,{className:`CommentPlugin_CommentsPanel_List_Details`,children:[(0,_.jsx)(`span`,{className:`CommentPlugin_CommentsPanel_List_Comment_Author`,children:e.author}),(0,_.jsxs)(`time`,{className:`CommentPlugin_CommentsPanel_List_Comment_Time`,dateTime:i.toISOString(),children:[`· `,a]})]}),(0,_.jsx)(`p`,{className:e.deleted?`CommentPlugin_CommentsPanel_DeletedComment`:``,children:e.content}),!e.deleted&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u.t,{onClick:()=>{s(`Delete Comment`,t=>(0,_.jsx)(aN,{commentOrThread:e,deleteCommentOrThread:n,thread:r,onClose:t}))},className:`CommentPlugin_CommentsPanel_List_DeleteButton`,children:(0,_.jsx)(`i`,{className:`bi bi-trash3 delete`})}),o]})]})}function fN({activeIDs:e,comments:n,deleteCommentOrThread:r,listRef:i,submitAddComment:o,markNodeMap:s}){let[c]=t.oi(),[l,d]=ix(),f=(0,h.useMemo)(()=>new Intl.DateTimeFormat(`en`,{dateStyle:`medium`,timeStyle:`short`}),[]);return(0,_.jsx)(`ul`,{className:`CommentPlugin_CommentsPanel_List`,ref:i,children:n.map(n=>{let i=n.id;return n.type===`thread`?(0,_.jsxs)(`li`,{onClick:()=>{let n=s.get(i);if(n!==void 0&&(e===null||e.indexOf(i)===-1)){let e=document.activeElement;c.update(()=>{let e=Array.from(n)[0],r=t.Ht(e);a._(r)&&r.selectStart()},{onUpdate(){e!==null&&e.focus()}})}},className:`CommentPlugin_CommentsPanel_List_Thread ${s.has(i)?`interactive`:``} ${e.indexOf(i)===-1?``:`active`}`,children:[(0,_.jsxs)(`div`,{className:`CommentPlugin_CommentsPanel_List_Thread_QuoteBox`,children:[(0,_.jsxs)(`blockquote`,{className:`CommentPlugin_CommentsPanel_List_Thread_Quote`,children:[`> `,(0,_.jsx)(uN,{editor:c,markNodeMap:s,thread:n})]}),(0,_.jsx)(u.t,{onClick:()=>{d(`Delete Thread`,e=>(0,_.jsx)(aN,{commentOrThread:n,deleteCommentOrThread:r,onClose:e}))},className:`CommentPlugin_CommentsPanel_List_DeleteButton`,children:(0,_.jsx)(`i`,{className:`bi bi-trash3 delete`})}),l]}),(0,_.jsx)(`ul`,{className:`CommentPlugin_CommentsPanel_List_Thread_Comments`,children:n.comments.map(e=>(0,_.jsx)(dN,{comment:e,dateTimeFormatter:f,deleteComment:r,thread:n},e.id))}),(0,_.jsx)(`div`,{className:`CommentPlugin_CommentsPanel_List_Thread_Editor`,children:(0,_.jsx)(iN,{submitAddComment:o,thread:n,placeholder:`Reply to comment...`})})]},i):(0,_.jsx)(dN,{comment:n,dateTimeFormatter:f,deleteComment:r},i)})})}function pN({activeIDs:e,deleteCommentOrThread:t,comments:n,submitAddComment:r,markNodeMap:i,onClose:a,panelZIndex:o}){let s=(0,h.useRef)(null),c=n.length===0;return(0,_.jsxs)(`div`,{className:`CommentPlugin_CommentsPanel`,style:o===void 0?void 0:{zIndex:o},children:[(0,_.jsxs)(`h2`,{className:`CommentPlugin_CommentsPanel_Heading`,children:[(0,_.jsx)(`span`,{children:`Comments`}),a!==void 0&&(0,_.jsx)(`button`,{className:`CommentPlugin_CommentsPanel_Close`,type:`button`,title:`Close comments`,"aria-label":`Close comments`,onClick:a,children:(0,_.jsx)(`i`,{className:`bi bi-x-lg`,"aria-hidden":`true`})})]}),c?(0,_.jsx)(`div`,{className:`CommentPlugin_CommentsPanel_Empty`,children:`No Comments`}):(0,_.jsx)(fN,{activeIDs:e,comments:n,deleteCommentOrThread:t,listRef:s,submitAddComment:r,markNodeMap:i})]})}function mN({setShowComments:e,showComments:r,panelZIndex:i}){let[o]=t.oi(),s=r!==void 0&&e!==void 0,c=(0,h.useMemo)(()=>Ui(),[]),l=(0,h.useMemo)(()=>!s&&Gi(),[s]),d=(0,h.useMemo)(()=>new zi(c),[c]),f=Bi(d),p=(0,h.useMemo)(()=>new Map,[]),[,m]=(0,h.useState)(),[g,y]=(0,h.useState)([]),[b,x]=(0,h.useState)(!1),[S,C]=(0,h.useState)(l),w=s?r:S,T=s?e:C,[E,D]=h.useReducer(e=>e+1,0),O=(0,h.useMemo)(()=>RM(f),[f]),k=(0,h.useMemo)(()=>BM(g,O).validIDs,[g,O]),A=(0,h.useRef)(O);(0,h.useEffect)(()=>{A.current=O},[O]),(0,h.useEffect)(()=>{Wi(f)},[f]),(0,h.useEffect)(()=>{Ki(w)},[w]);let j=(0,h.useCallback)(()=>{o.update(()=>{let e=t.tt();e!==null&&(e.dirty=!0)}),x(!1)},[o]),M=(0,h.useCallback)(e=>{let n=Array.from(new Set(e));n.length!==0&&o.update(()=>{for(let e=0;e<n.length;e++){let r=n[e],i=Array.from(p.get(r)??[]);if(i.length===0){p.delete(r);continue}for(let e=0;e<i.length;e++){let n=i[e],o=t.Ht(n);if(!a._(o)){zM(p,r,n);continue}if(o.getIDs().indexOf(r)===-1){zM(p,r,n);continue}o.deleteID(r),o.getIDs().length===0&&a.x(o)}}})},[o,p]),N=(0,h.useCallback)((e,t)=>{if(e.type===`comment`){let n=d.deleteCommentOrThread(e,t);if(!n)return;let{markedComment:r,index:i}=n;d.addComment(r,t,i)}else{d.deleteCommentOrThread(e);let n=t===void 0?e.id:t.id;y(e=>{let t=e.filter(e=>e!==n);return t.length===e.length?e:t}),p.has(n)&&setTimeout(()=>{M([n])})}},[d,p,M]),P=(0,h.useCallback)((e,n,r,i)=>{d.addComment(e,r),n&&(o.update(()=>{if(t.bn(i)){let t=i.isBackward(),n=e.id;a.y(i,t,n)}}),x(!1))},[d,o]);return(0,h.useEffect)(()=>{let e=[];for(let t=0;t<k.length;t++){let n=k[t],r=p.get(n);if(r!==void 0)for(let t of r){let n=o.getElementByKey(t);n!==null&&(n.classList.add(`selected`),e.push(n),T(!0))}}return()=>{for(let t=0;t<e.length;t++)e[t].classList.remove(`selected`)}},[k,o,p,E,T]),(0,h.useEffect)(()=>{let e=new Map;return t.Yn(n.c(o,a.v,e=>a.b(e.getIDs()),(e,t)=>{e.getIDs().forEach(e=>{t.addID(e)})}),o.registerMutationListener(a.v,n=>{let r=!1;o.getEditorState().read(()=>{for(let[i,o]of n){let n=t.Ht(i),s=e.get(i)||[],c=a._(n)?n.getIDs():[];o===`destroyed`?e.delete(i):e.set(i,c);for(let e=0;e<s.length;e++){let t=s[e];c.indexOf(t)===-1&&(r=zM(p,t,i)||r)}if(o!==`destroyed`)for(let e=0;e<c.length;e++){let t=c[e],n=p.get(t);n===void 0&&(n=new Set,p.set(t,n),r=!0),n.has(i)||(n.add(i),r=!0)}}}),r&&D()},{skipInitialization:!1}),o.registerUpdateListener(({editorState:e})=>{let n=[];e.read(()=>{let e=t.tt(),r=!1,i=!1;if(t.bn(e)){let o=e.anchor.getNode();if(t.Jt(o)){let t=a.S(o,e.anchor.offset);if(t!==null){let{invalidIDs:e,validIDs:i}=BM(t,A.current);e.length>0&&n.push(...e),i.length>0&&(y(i),r=!0)}e.isCollapsed()||(m(o.getKey()),i=!0)}}r||y(e=>e.length===0?e:[]),i||m(null),t.bn(e)&&x(!1)}),n.length>0&&M(n)}),o.registerCommand(NM,()=>{let e=t.M(o._window);return e!==null&&e.removeAllRanges(),x(!0),!0},0))},[o,p,M]),(0,h.useEffect)(()=>{let e=Array.from(p.keys()).filter(e=>!O.has(e));e.length>0&&M(e),LM(g,k)||y(k)},[g,k,p,E,M,O]),(0,_.jsxs)(_.Fragment,{children:[b&&(0,v.createPortal)((0,_.jsx)(rN,{editor:o,cancelAddComment:j,submitAddComment:P}),document.body),!s&&(0,v.createPortal)((0,_.jsx)(u.t,{className:`CommentPlugin_ShowCommentsButton ${w?`active`:``}`,onClick:()=>T(!w),title:w?`Hide Comments`:`Show Comments`,children:(0,_.jsx)(`i`,{className:`bi bi-chat-dots comments`})}),document.body),w&&(0,v.createPortal)((0,_.jsx)(pN,{comments:f,submitAddComment:P,deleteCommentOrThread:N,activeIDs:k,markNodeMap:p,onClose:()=>T(!1),panelZIndex:i}),document.body)]})}var hN=t.x(`INSERT_DATETIME_COMMAND`);function gN(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([f.f]))throw Error(`DateTimePlugin: DateTimeNode not registered on editor`);return t.Yn(e.registerCommand(hN,e=>{let{dateTime:r}=e,i=f.u(r);return t.W([i]),t.J(i.getParentOrThrow())&&n.u(i,t.Ar).selectEnd(),!0},0))},[e]),null}function _N({onConfirm:e,initialEquation:n=``}){let[r]=t.oi(),[i,a]=(0,h.useState)(n),[o,s]=(0,h.useState)(!0),c=(0,h.useCallback)(()=>{e(i,o)},[e,i,o]);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{className:`KatexEquationAlterer_defaultRow`,children:[`Inline`,(0,_.jsx)(`input`,{type:`checkbox`,checked:o,onChange:(0,h.useCallback)(()=>{s(!o)},[s,o])})]}),(0,_.jsx)(`div`,{className:`KatexEquationAlterer_defaultRow`,children:`Equation `}),(0,_.jsx)(`div`,{className:`KatexEquationAlterer_centerRow`,children:o?(0,_.jsx)(`input`,{onChange:e=>{a(e.target.value)},value:i,className:`KatexEquationAlterer_textArea`}):(0,_.jsx)(`textarea`,{onChange:e=>{a(e.target.value)},value:i,className:`KatexEquationAlterer_textArea`})}),(0,_.jsx)(`div`,{className:`KatexEquationAlterer_defaultRow`,children:`Visualization `}),(0,_.jsx)(`div`,{className:`KatexEquationAlterer_centerRow`,children:(0,_.jsx)(d.n,{onError:e=>r._onError(e),fallback:null,children:(0,_.jsx)(d.t,{equation:i,inline:!1,onDoubleClick:()=>null})})}),(0,_.jsx)(`div`,{className:`KatexEquationAlterer_dialogActions`,children:(0,_.jsx)(u.t,{onClick:c,children:`Confirm`})})]})}var vN=t.x(`INSERT_EQUATION_COMMAND`);function yN({activeEditor:e,onClose:t}){return(0,_.jsx)(_N,{onConfirm:(0,h.useCallback)((n,r)=>{e.dispatchCommand(vN,{equation:n,inline:r}),t()},[e,t])})}function bN(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([d.a]))throw Error(`EquationsPlugins: EquationsNode not registered on editor`);return e.registerCommand(vN,e=>{let{equation:r,inline:i}=e,a=d.r(r,i);return t.W([a]),t.J(a.getParentOrThrow())&&n.u(a,t.Ar).selectEnd(),!0},0)},[e]),null}var xN=t.x(`INSERT_EXCALIDRAW_COMMAND`);function SN({clearLibrariesFileList:e,detectTextLanguage:r,extraFontFamilies:i=[],loadLibrariesFileList:a,libraryItems:s=[],saveLibrariesFile:c}){let[l]=t.oi(),[u,d]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{if(!l.hasNodes([o.a]))throw Error(`ExcalidrawPlugin: ExcalidrawNode not registered on editor`);return l.registerCommand(xN,()=>(d(!0),!0),0)},[l]),u?(0,_.jsx)(o.t,{clearLibrariesFileList:e,detectTextLanguage:r,initialElements:[],initialAppState:{},initialFiles:{},extraFontFamilies:i,loadLibrariesFileList:a,libraryItems:s,saveLibrariesFile:c,isShown:u,onDelete:()=>{d(!1)},onClose:()=>{d(!1)},onSave:(e,r,i)=>{l.update(()=>{let a=o.r();a.setData(JSON.stringify({appState:r,elements:e,files:i})),t.W([a]),t.J(a.getParentOrThrow())&&n.u(a,t.Ar).selectEnd()}),d(!1)},closeOnClickOutside:!1}):null}function CN({accept:e,label:t,onChange:n,"data-test-id":r}){let i=(0,h.useId)();return(0,_.jsxs)(`div`,{className:`Input__wrapper mb-2`,children:[(0,_.jsx)(`label`,{className:`Input__label mb-0`,htmlFor:i,children:t}),(0,_.jsx)(`input`,{id:i,type:`file`,accept:e,className:`Input__input form-control`,onChange:e=>n(e.target.files),"data-test-id":r})]})}var wN=t.x(`INSERT_MEDIA_COMMAND`),TN=`image/*,video/*,audio/*,application/pdf,.pdf`,EN=[`.mp4`,`.webm`,`.ogv`,`.mov`,`.m4v`],DN=[`.aac`,`.flac`,`.m4a`,`.mp3`,`.oga`,`.ogg`,`.opus`,`.wav`,`.weba`];function ON(e){let t=e.toLowerCase().split(/[?#]/)[0];return t.startsWith(`data:application/pdf`)||t.endsWith(`.pdf`)?`pdf`:t.startsWith(`data:video/`)||EN.some(e=>t.endsWith(e))?`video`:t.startsWith(`data:audio/`)||DN.some(e=>t.endsWith(e))?`audio`:`image`}function kN(e){return e.type===`application/pdf`||e.name.toLowerCase().endsWith(`.pdf`)?`pdf`:e.type.startsWith(`video/`)||EN.some(t=>e.name.toLowerCase().endsWith(t))?`video`:e.type.startsWith(`audio/`)||DN.some(t=>e.name.toLowerCase().endsWith(t))?`audio`:`image`}function AN(e){return typeof URL.createObjectURL==`function`?URL.createObjectURL(e):void 0}function jN(e,t,n,r){return n===`image`?{altText:e,src:t}:r?{altText:e,mediaType:n,previewSrc:r,src:t}:{altText:e,mediaType:n,src:t}}function MN({onClick:e}){let[t,n]=(0,h.useState)(``),[r,i]=(0,h.useState)(``);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Dn,{label:`Media URL/Path`,placeholder:`i.e. https://example.com/media.mp3`,onChange:n,value:t,"data-test-id":`media-modal-url-input`}),(0,_.jsx)(Dn,{label:`Alt Text / Title`,placeholder:`Descriptive label`,onChange:i,value:r,"data-test-id":`media-modal-alt-text-input`}),(0,_.jsx)(ox,{children:(0,_.jsx)(u.t,{"data-test-id":`media-modal-confirm-btn`,disabled:t===``,onClick:()=>e(jN(r,t,ON(t))),children:`Confirm`})})]})}function NN({onClick:e,resolveFilePath:t}){let[n,r]=(0,h.useState)(``),[i,o]=(0,h.useState)(``),[s,c]=(0,h.useState)(`image`),[l,d]=(0,h.useState)(),[f,p]=(0,h.useState)(null),m=n===``,g=e=>{let n=e?.[0];if(!n){r(``),d(void 0),p(null);return}let i=kN(n);c(i),o(e=>e||n.name);let s=()=>{if(i!==`image`){r(a.l(n)),d(AN(n)),p(n);return}d(void 0),p(null);let e=new FileReader;e.onload=function(){return typeof e.result==`string`&&r(e.result),``},e.readAsDataURL(n)};if(t===void 0){s();return}(async()=>{let e=await a.d(t,n,`file-input`);if(e!==null){r(e),d(i===`image`?void 0:AN(n)),p(i===`image`?null:n);return}s()})()},v=async()=>{s!==`image`&&f!==null&&await a.p(n,f),e(jN(i,n,s,l))};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(CN,{label:`Media File`,onChange:g,accept:TN,"data-test-id":`media-modal-file-upload`}),s===`image`?null:(0,_.jsx)(Dn,{label:`File Path`,placeholder:`Path to the selected media file`,onChange:r,value:n,"data-test-id":`media-modal-source-input`}),(0,_.jsx)(Dn,{label:`Alt Text / Title`,placeholder:`Descriptive label`,onChange:o,value:i,"data-test-id":`media-modal-alt-text-input`}),(0,_.jsx)(ox,{children:(0,_.jsx)(u.t,{"data-test-id":`media-modal-file-upload-btn`,disabled:m,onClick:()=>void v(),children:`Confirm`})})]})}function PN({activeEditor:e,onClose:t,resolveFilePath:n}){let[r,i]=(0,h.useState)(null),a=n=>{e.dispatchCommand(wN,n),t()};return(0,_.jsxs)(_.Fragment,{children:[!r&&(0,_.jsxs)(ax,{children:[(0,_.jsx)(u.t,{"data-test-id":`media-modal-option-url`,onClick:()=>i(`url`),children:`URL`}),(0,_.jsx)(u.t,{"data-test-id":`media-modal-option-file`,onClick:()=>i(`file`),children:`File`})]}),r===`url`&&(0,_.jsx)(MN,{onClick:a}),r===`file`&&(0,_.jsx)(NN,{onClick:a,resolveFilePath:n})]})}function FN({captionsEnabled:e}){let[r]=t.oi();return(0,h.useEffect)(()=>{if(!r.hasNodes([a.D]))throw Error(`MediaPlugin: MediaNode not registered on editor`);return t.Yn(r.registerCommand(wN,e=>{let r=a.w(e);return t.W([r]),t.J(r.getParentOrThrow())&&n.u(r,t.Ar).selectEnd(),!0},0),r.registerCommand(t.qr,e=>RN(e),3),r.registerCommand(t.l,e=>zN(e),1),r.registerCommand(t.Qr,e=>BN(e,r),3))},[e,r]),null}var IN=`data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`,LN=document.createElement(`img`);LN.src=IN;function RN(e){let t=VN();if(!t)return!1;let n=e.dataTransfer;return n?(n.setData(`text/plain`,`_`),n.setDragImage(LN,0,0),n.setData(`application/x-lexical-drag`,JSON.stringify({data:{altText:t.__altText,caption:t.__caption,height:t.__height,key:t.getKey(),maxWidth:t.__maxWidth,mediaType:t.__mediaType,previewSrc:t.__previewSrc,showCaption:t.__showCaption,src:t.__src,width:t.__width},type:`media`})),!0):!1}function zN(e){return VN()&&(UN(e)||e.preventDefault()),!1}function BN(e,n){let r=VN();if(!r)return!1;let i=HN(e);if(!i)return!1;let o=t.B(r,e=>!a.et(e)&&a.X(e));if(e.preventDefault(),UN(e)){let s=WN(e);r.remove();let c=t.h();s!=null&&c.applyDOMRange(s),t.En(c),n.dispatchCommand(wN,i),o&&n.dispatchCommand(a.nt,o.getURL())}return!0}function VN(){let e=t.tt();if(!t.Fr(e))return null;let n=e.getNodes()[0];return a.E(n)?n:null}function HN(e){let t=e.dataTransfer?.getData(`application/x-lexical-drag`);if(!t)return null;let{type:n,data:r}=JSON.parse(t);return n===`media`?r:null}function UN(e){let n=e.target;return!!(t.Sn(n)&&!n.closest(`code, span.editor-media`)&&t.Sn(n.parentElement)&&n.parentElement.closest(`div.ContentEditable__root`))}function WN(e){let n,r=t.U(e.target);if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(e.clientX,e.clientY);else if(e.rangeParent&&r!==null)r.collapse(e.rangeParent,e.rangeOffset||0),n=r.getRangeAt(0);else throw Error(`Cannot get the selection when dragging`);return n}var GN=h.createContext(null),KN=4,qN=8,JN=40;function YN(e,t){let r=n.d(t,!0),{top:i,left:a}=e.getBoundingClientRect(),o=window.innerHeight/r,s=window.innerWidth/r,c=i/r+e.offsetHeight+KN,l=Math.min(c,Math.max(qN,o-JN-qN)),u=Math.max(qN,Math.min(a/r,s-t.offsetWidth-20)),d=Math.max(JN,o-l-qN);t.style.top=`${l}px`,t.style.left=`${u}px`,t.style.maxHeight=`${d}px`}function Z({ariaCurrent:e,children:t,className:n,disabled:r,isInitialFocus:i=!1,onClick:a,title:o}){let s=(0,h.useRef)(null),c=h.useContext(GN);if(c===null)throw Error(`DropDownItem must be used within a DropDown`);let{registerItem:l}=c;return(0,h.useEffect)(()=>{s&&s.current&&l(s,i)},[s,l,i]),(0,_.jsx)(`button`,{"aria-current":e,"aria-disabled":r,className:n,disabled:r,onClick:e=>{if(r){e.preventDefault();return}a(e)},ref:s,title:o,type:`button`,children:t})}function XN({children:e,className:t,dropDownRef:n,onClose:r,autofocus:i}){let[a,o]=(0,h.useState)(),[s,c]=(0,h.useState)(),l=(0,h.useRef)(null),u=(0,h.useCallback)((e,t=!1)=>{t&&(l.current=e),o(t=>t?[...t,e]:[e])},[o]),d=e=>{let t=e.key;t===`Escape`&&r(),a&&([`Escape`,`ArrowUp`,`ArrowDown`,`Tab`].includes(t)&&e.preventDefault(),t===`Escape`||t===`Tab`?r():t===`ArrowUp`?c(e=>{if(!e)return a[0];let t=a.indexOf(e)-1;return a[t===-1?a.length-1:t]}):t===`ArrowDown`&&c(e=>e?a[a.indexOf(e)+1]:a[0]))},f=(0,h.useMemo)(()=>({registerItem:u}),[u]);return(0,h.useEffect)(()=>{a&&!s&&c(l.current??a[0]),s&&s.current&&s.current.focus()},[a,s]),(0,h.useEffect)(()=>{i&&n.current&&N(n.current)},[i,n]),(0,_.jsx)(GN.Provider,{value:f,children:(0,_.jsx)(`div`,{className:t?`dropdown ${t}`:`dropdown`,ref:n,onKeyDown:d,children:e})})}function ZN({disabled:e=!1,buttonLabel:n,buttonAriaLabel:r,buttonClassName:i,buttonIconClassName:a,buttonIconStyle:o,buttonTitle:s,children:c,dropDownClassName:l,stopCloseOnClickSelf:u,hideChevron:d}){let f=(0,h.useRef)(null),p=(0,h.useRef)(null),[m,g]=(0,h.useState)(!1),[y,b]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{let e=p.current,t=f.current;m&&e!==null&&t!==null&&YN(e,t)},[f,p,m]),(0,h.useEffect)(()=>{let e=p.current;if(e!==null&&m){let n=n=>{let r=n.target;if(!t.Ln(r))return;let i=f.current&&f.current.contains(r);u&&i||e.contains(r)||(g(!1),i&&P(n)&&e.focus())};return document.addEventListener(`click`,n),()=>{document.removeEventListener(`click`,n)}}},[f,p,m,u]),(0,h.useEffect)(()=>{let e=()=>{if(m){let e=p.current,t=f.current;e!==null&&t!==null&&YN(e,t)}};return document.addEventListener(`scroll`,e),window.addEventListener(`resize`,e),()=>{document.removeEventListener(`scroll`,e),window.removeEventListener(`resize`,e)}},[p,f,m]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`button`,{type:`button`,disabled:e,"aria-label":r||n,className:i,onClick:e=>{g(!m),b(P(e))},ref:p,title:s,children:[a&&(0,_.jsx)(`span`,{className:a,style:o}),n&&(0,_.jsx)(`span`,{className:`text dropdown-button-text`,children:n}),!d&&(0,_.jsx)(`i`,{className:`bi bi-chevron-down chevron-down`})]}),m&&(0,v.createPortal)((0,_.jsx)(XN,{className:l,dropDownRef:f,onClose:()=>{g(!1),p&&p.current&&p.current.focus()},autofocus:y,children:c}),document.body)]})}function QN(e){let t=window.getComputedStyle(e).getPropertyValue(`grid-template-columns`);return t?{node:eP(t)}:null}var $N=class e extends t.m{__templateColumns;constructor(e,t){super(t),this.__templateColumns=e}static getType(){return`layout-container`}static clone(t){return new e(t.__templateColumns,t.__key)}createDOM(e){let n=document.createElement(`div`);return n.style.gridTemplateColumns=this.__templateColumns,typeof e.theme.layoutContainer==`string`&&t.Vr(n,e.theme.layoutContainer),n}exportDOM(){let e=document.createElement(`div`);return e.style.gridTemplateColumns=this.__templateColumns,e.setAttribute(`data-lexical-layout-container`,`true`),{element:e}}updateDOM(e,t){return e.__templateColumns!==this.__templateColumns&&(t.style.gridTemplateColumns=this.__templateColumns),!1}static importDOM(){return{div:e=>e.hasAttribute(`data-lexical-layout-container`)?{conversion:QN,priority:2}:null}}static importJSON(e){return eP().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTemplateColumns(e.templateColumns)}isShadowRoot(){return!0}canBeEmpty(){return!1}exportJSON(){return{...super.exportJSON(),templateColumns:this.__templateColumns}}getTemplateColumns(){return this.getLatest().__templateColumns}setTemplateColumns(e){let t=this.getWritable();return t.__templateColumns=e,t}};function eP(e=``){return new $N(e)}function tP(e){return e instanceof $N}function nP(){return{node:aP()}}function rP(e){if(!oP(e)||e.getChildrenSize()!==1)return!1;let n=e.getFirstChild();return t.kn(n)&&n.isEmpty()}var iP=class e extends t.m{static getType(){return`layout-item`}static clone(t){return new e(t.__key)}createDOM(e){let n=document.createElement(`div`);return n.setAttribute(`data-lexical-layout-item`,`true`),typeof e.theme.layoutItem==`string`&&t.Vr(n,e.theme.layoutItem),n}updateDOM(){return!1}collapseAtStart(){let e=this.getParentOrThrow();return this.is(e.getFirstChild())&&e.getChildren().every(rP)?(e.remove(),!0):!1}static importDOM(){return{div:e=>e.hasAttribute(`data-lexical-layout-item`)?{conversion:nP,priority:2}:null}}static importJSON(e){return aP().updateFromJSON(e)}isShadowRoot(){return!0}};function aP(){return new iP}function oP(e){return e instanceof iP}var sP=t.x(),cP=t.x();function lP(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([$N,iP]))throw Error(`LayoutPlugin: LayoutContainerNode, or LayoutItemNode not registered on editor`);let r=e=>{let n=t.tt();if(t.bn(n)&&n.isCollapsed()&&n.anchor.offset===0){let r=t.B(n.anchor.getNode(),tP);if(tP(r)){let i=r.getParent(),a=i&&(e?i.getFirstChild():i?.getLastChild()),o=e?r.getFirstDescendant()?.getKey():r.getLastDescendant()?.getKey();i!==null&&a===r&&n.anchor.key===o&&(e?r.insertBefore(t.Ar()):r.insertAfter(t.Ar()))}}return!1},i=e=>{e.isEmpty()&&e.append(t.Ar())},a=e=>{if(!tP(e.getParent())){let t=e.getChildren();for(let n of t)e.insertBefore(n);return e.remove(),!0}return!1};return t.Yn(e.registerCommand(t.Qn,()=>r(!1),1),e.registerCommand(t.Dn,()=>r(!1),1),e.registerCommand(t.Cr,()=>r(!0),1),e.registerCommand(t.ur,()=>r(!0),1),e.registerCommand(sP,r=>(e.update(()=>{let e=eP(r),i=uP(r);for(let n=0;n<i;n++)e.append(aP().append(t.Ar()));n.n(e),e.selectStart()}),!0),0),e.registerCommand(cP,({template:n,nodeKey:r})=>(e.update(()=>{let e=t.Ht(r);if(!tP(e))return;let i=uP(n),a=uP(e.getTemplateColumns());if(i>a)for(let n=a;n<i;n++)e.append(aP().append(t.Ar()));else if(i<a)for(let t=a-1;t>=i;t--){let n=e.getChildAtIndex(t);oP(n)&&n.remove()}e.setTemplateColumns(n)}),!0),0),e.registerNodeTransform(iP,e=>{a(e)||i(e)}),e.registerNodeTransform($N,e=>{let t=e.getChildren();if(!t.every(oP)){for(let n of t)e.insertBefore(n);e.remove()}}))},[e]),null}function uP(e){return e.trim().split(/\s+/).length}var dP=[{label:`2 columns (equal width)`,value:`1fr 1fr`},{label:`2 columns (25% - 75%)`,value:`1fr 3fr`},{label:`3 columns (equal width)`,value:`1fr 1fr 1fr`},{label:`3 columns (25% - 50% - 25%)`,value:`1fr 2fr 1fr`},{label:`4 columns (equal width)`,value:`1fr 1fr 1fr 1fr`}];function fP({activeEditor:e,onClose:t}){let[n,r]=(0,h.useState)(dP[0].value),i=dP.find(e=>e.value===n)?.label;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(ZN,{buttonClassName:`toolbar-item dialog-dropdown`,buttonLabel:i,children:dP.map(({label:e,value:t})=>(0,_.jsx)(Z,{className:`item`,onClick:()=>r(t),children:(0,_.jsx)(`span`,{className:`text`,children:e})},t))}),(0,_.jsx)(u.t,{onClick:()=>{e.dispatchCommand(sP,n),t()},children:`Insert`})]})}function pP({nodeKey:e}){let[n]=t.oi(),[r,i,a]=c.t(e);return(0,h.useEffect)(()=>t.Yn(n.registerCommand(t.K,t=>{let o=n.getElementByKey(e);return t.target===o?(t.shiftKey||a(),i(!r),!0):!1},1)),[a,n,r,e,i]),(0,h.useEffect)(()=>{let t=n.getElementByKey(e);t!==null&&(t.className=r?`selected`:``)},[n,r,e]),null}var mP=class e extends t.I{static getType(){return`page-break`}static clone(t){return new e(t.__key)}static importJSON(e){return gP().updateFromJSON(e)}static importDOM(){return{figure:e=>e.getAttribute(`type`)===this.getType()?{conversion:hP,priority:3}:null}}createDOM(){let e=document.createElement(`figure`);return e.style.pageBreakAfter=`always`,e.setAttribute(`type`,this.getType()),e}getTextContent(){return`
1015
+ `}isInline(){return!1}updateDOM(){return!1}decorate(){return(0,_.jsx)(pP,{nodeKey:this.__key})}};function hP(){return{node:gP()}}function gP(){return new mP}var _P=t.x();function vP(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([mP]))throw Error(`PageBreakPlugin: PageBreakNode is not registered on editor`);return t.Yn(e.registerCommand(_P,()=>{let e=t.tt();return t.bn(e)?(e.focus.getNode()!==null&&n.n(gP()),!0):!1},0))},[e]),null}var yP=t.x(`INSERT_POLL_COMMAND`);function bP({activeEditor:e,onClose:t}){let[n,r]=(0,h.useState)(``);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Dn,{label:`Question`,onChange:r,value:n}),(0,_.jsx)(ox,{children:(0,_.jsx)(u.t,{disabled:n.trim()===``,onClick:()=>{e.dispatchCommand(yP,n),t()},children:`Confirm`})})]})}function xP(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([m.r]))throw Error(`PollPlugin: PollNode not registered on editor`);return e.registerCommand(yP,e=>{let r=m.t(e,[m.i(),m.i()]);return t.W([r]),t.J(r.getParentOrThrow())&&n.u(r,t.Ar).selectEnd(),!0},0)},[e]),null}var SP=(0,h.createContext)({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function CP({children:e}){let[t,n]=(0,h.useState)({cellEditorConfig:null,cellEditorPlugins:null});return(0,_.jsx)(SP.Provider,{value:(0,h.useMemo)(()=>({cellEditorConfig:t.cellEditorConfig,cellEditorPlugins:t.cellEditorPlugins,set:(e,t)=>{n({cellEditorConfig:e,cellEditorPlugins:t})}}),[t.cellEditorConfig,t.cellEditorPlugins]),children:e})}function wP({activeEditor:e,onClose:t}){let[n,r]=(0,h.useState)(`5`),[i,o]=(0,h.useState)(`5`),[s,c]=(0,h.useState)(!0);return(0,h.useEffect)(()=>{let e=Number(n),t=Number(i);c(!(e&&e>0&&e<=500&&t&&t>0&&t<=50))},[n,i]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Dn,{placeholder:`# of rows (1-500)`,label:`Rows`,onChange:r,value:n,"data-test-id":`table-modal-rows`,type:`number`}),(0,_.jsx)(Dn,{placeholder:`# of columns (1-50)`,label:`Columns`,onChange:o,value:i,"data-test-id":`table-modal-columns`,type:`number`}),(0,_.jsx)(ox,{"data-test-id":`table-model-confirm-insert`,children:(0,_.jsx)(u.t,{disabled:s,onClick:()=>{e.dispatchCommand(a.Nt,{columns:i,rows:n}),t()},children:`Confirm`})})]})}var TP={center:`bi bi-text-center icon`,justify:`bi bi-justify icon`,left:`bi bi-text-left icon`,right:`bi bi-text-right icon`},EP=class extends a.h{tooltip;keywords;keyboardShortcut;onSelect;constructor(e,t){super(e),this.title=e,this.tooltip=t.tooltip,this.keywords=t.keywords||[],this.icon=t.icon,this.keyboardShortcut=t.keyboardShortcut,this.onSelect=t.onSelect.bind(this)}};function DP({index:e,isSelected:t,onClick:n,onMouseEnter:r,option:i}){let a=`item mx-2 p-2 d-flex flex-row align-items-center flex-shrink-0`;return t&&(a+=` selected`),(0,_.jsxs)(`li`,{tabIndex:-1,className:a,ref:i.setRefElement,role:`option`,"aria-selected":t,id:`typeahead-item-`+e,title:i.tooltip,onMouseEnter:r,onClick:n,children:[i.icon,(0,_.jsx)(`span`,{className:`text`,children:i.title})]},i.key)}function OP(e,t){let n=[];if(t==null)return n;let r=t.match(/^([1-9]\d?)(?:x([1-9]\d?)?)?$/);if(r!==null){let t=r[1],i=r[2]?[r[2]]:[1,2,3,4,5,6,7,8,9,10].map(String);n.push(...i.map(n=>new EP(`${t}x${n} Table`,{icon:(0,_.jsx)(`i`,{className:`bi bi-table icon`}),keywords:[`table`],onSelect:()=>e.dispatchCommand(a.Nt,{columns:n,rows:t})})))}return n}function kP(e,i,o){return[new EP(`Paragraph`,{icon:(0,_.jsx)(`i`,{className:`bi bi-text-paragraph icon`}),keywords:[`normal`,`paragraph`,`p`,`text`],onSelect:()=>e.update(()=>{let e=t.tt();t.bn(e)&&n.P(e,()=>t.Ar())})}),...[1,2,3].map(r=>new EP(`Heading ${r}`,{icon:(0,_.jsx)(`i`,{className:`bi bi-type-h${r} icon`}),keywords:[`heading`,`header`,`h${r}`],onSelect:()=>e.update(()=>{let e=t.tt();t.bn(e)&&n.P(e,()=>a.rn(`h${r}`))})})),new EP(`Table`,{icon:(0,_.jsx)(`i`,{className:`bi bi-table icon`}),keywords:[`table`,`grid`,`spreadsheet`,`rows`,`columns`],onSelect:()=>i(`Insert Table`,t=>(0,_.jsx)(wP,{activeEditor:e,onClose:t}))}),new EP(`Numbered List`,{icon:(0,_.jsx)(`i`,{className:`bi bi-list-ol icon`}),keywords:[`numbered list`,`ordered list`,`ol`],onSelect:()=>e.dispatchCommand(nn,void 0)}),new EP(`Bulleted List`,{icon:(0,_.jsx)(`i`,{className:`bi bi-list-ul icon`}),keywords:[`bulleted list`,`unordered list`,`ul`],onSelect:()=>e.dispatchCommand(tn,void 0)}),new EP(`Check List`,{icon:(0,_.jsx)(`i`,{className:`bi bi-check2-square icon`}),keywords:[`check list`,`todo list`],onSelect:()=>e.dispatchCommand(Jt,void 0)}),new EP(`Quote`,{icon:(0,_.jsx)(`i`,{className:`bi bi-chat-square-quote icon`}),keywords:[`block quote`],onSelect:()=>e.update(()=>{let e=t.tt();t.bn(e)&&n.P(e,()=>a.en())})}),new EP(`Code`,{icon:(0,_.jsx)(`i`,{className:`bi bi-code-slash icon`}),keywords:[`javascript`,`python`,`js`,`codeblock`],onSelect:()=>e.update(()=>{let e=t.tt();if(t.bn(e))if(e.isCollapsed())n.P(e,()=>Ie());else{let t=e.getTextContent(),n=Ie();e.insertNodes([n]),e.insertRawText(t)}})}),new EP(`Divider`,{icon:(0,_.jsx)(`i`,{className:`bi bi-dash-lg icon`}),keywords:[`horizontal rule`,`divider`,`hr`],onSelect:()=>e.dispatchCommand(r.U,void 0)}),new EP(`Page Break`,{icon:(0,_.jsx)(`i`,{className:`bi bi-scissors icon`}),keywords:[`page break`,`divider`],onSelect:()=>e.dispatchCommand(_P,void 0)}),new EP(`Excalidraw`,{icon:(0,_.jsx)(`i`,{className:`bi bi-diagram-2 icon`}),keywords:[`excalidraw`,`diagram`,`drawing`],onSelect:()=>e.dispatchCommand(xN,void 0)}),new EP(`Poll`,{icon:(0,_.jsx)(`i`,{className:`bi bi-card-checklist icon`}),keywords:[`poll`,`vote`],onSelect:()=>i(`Insert Poll`,t=>(0,_.jsx)(bP,{activeEditor:e,onClose:t}))}),...jx.map(t=>new EP(`Embed ${t.contentName}`,{icon:t.icon,keywords:[...t.keywords,`embed`],onSelect:()=>e.dispatchCommand(tx,t.type)})),new EP(`Date`,{icon:(0,_.jsx)(`i`,{className:`bi bi-calendar icon`}),keywords:[`date`,`calendar`,`time`],onSelect:()=>{let t=new Date;t.setHours(0,0,0,0),e.dispatchCommand(hN,{dateTime:t})}}),new EP(`Today`,{icon:(0,_.jsx)(`i`,{className:`bi bi-calendar icon`}),keywords:[`date`,`calendar`,`time`,`today`],onSelect:()=>{let t=new Date;t.setHours(0,0,0,0),e.dispatchCommand(hN,{dateTime:t})}}),new EP(`Tomorrow`,{icon:(0,_.jsx)(`i`,{className:`bi bi-calendar icon`}),keywords:[`date`,`calendar`,`time`,`tomorrow`],onSelect:()=>{let t=new Date;t.setDate(t.getDate()+1),t.setHours(0,0,0,0),e.dispatchCommand(hN,{dateTime:t})}}),new EP(`Yesterday`,{icon:(0,_.jsx)(`i`,{className:`bi bi-calendar icon`}),keywords:[`date`,`calendar`,`time`,`yesterday`],onSelect:()=>{let t=new Date;t.setDate(t.getDate()-1),t.setHours(0,0,0,0),e.dispatchCommand(hN,{dateTime:t})}}),new EP(`Equation`,{icon:(0,_.jsx)(`i`,{className:`bi bi-plus-slash-minus icon`}),keywords:[`equation`,`latex`,`math`],onSelect:()=>i(`Insert Equation`,t=>(0,_.jsx)(yN,{activeEditor:e,onClose:t}))}),new EP(`Media`,{icon:(0,_.jsx)(`i`,{className:`bi bi-file-earmark-easel icon`}),keywords:[`image`,`photo`,`picture`,`file`,`video`,`pdf`,`audio`],tooltip:`Insert image, video, pdf or audio`,onSelect:()=>i(`Insert Media`,t=>(0,_.jsx)(PN,{activeEditor:e,onClose:t,resolveFilePath:o}))}),new EP(`Collapsible`,{icon:(0,_.jsx)(`i`,{className:`bi bi-caret-right-fill icon`}),keywords:[`collapse`,`collapsible`,`toggle`],onSelect:()=>e.dispatchCommand(mM,void 0)}),new EP(`Columns Layout`,{icon:(0,_.jsx)(`i`,{className:`bi bi-columns-gap icon`}),keywords:[`columns`,`layout`,`grid`],onSelect:()=>i(`Insert Columns Layout`,t=>(0,_.jsx)(fP,{activeEditor:e,onClose:t}))}),...[`left`,`center`,`right`,`justify`].map(n=>new EP(`Align ${n}`,{icon:(0,_.jsx)(`i`,{className:TP[n]}),keywords:[`align`,`justify`,n],onSelect:()=>e.dispatchCommand(t.tr,n)}))]}function AP({resolveFilePath:e}){let[n]=t.oi(),[r,i]=ix(),[o,s]=(0,h.useState)(null),c=a.g(`/`,{allowWhitespace:!0,minLength:0}),l=(0,h.useMemo)(()=>{let t=kP(n,i,e);if(!o)return t;let r=new RegExp(o,`i`);return[...OP(n,o),...t.filter(e=>r.test(e.title)||e.keywords.some(e=>r.test(e)))]},[n,o,e,i]);return(0,_.jsxs)(_.Fragment,{children:[r,(0,_.jsx)(a.m,{onQueryChange:s,onSelectOption:(0,h.useCallback)((e,t,r,i)=>{n.update(()=>{t?.remove(),e.onSelect(i),r()})},[n]),triggerFn:c,options:l,menuRenderFn:(e,{selectedIndex:t,selectOptionAndCleanUp:n,setHighlightedIndex:r})=>e.current&&l.length?v.createPortal((0,_.jsx)(`div`,{className:`typeahead-popover component-picker-menu`,children:(0,_.jsx)(`ul`,{className:`list-unstyled m-0 p-0`,children:l.map((e,i)=>(0,_.jsx)(DP,{index:i,isSelected:t===i,onClick:()=>{r(i),n(e)},onMouseEnter:()=>{r(i)},option:e},e.key))})}),e.current):null})]})}var jP=class{key;ref;constructor(e){this.key=e,this.ref={current:null},this.setRefElement=this.setRefElement.bind(this)}setRefElement(e){this.ref={current:e}}},MP=class extends jP{type;title;icon;disabled;$onSelect;$showOn;constructor(e,t){super(e),this.type=`item`,this.title=e,this.disabled=t.disabled??!1,this.icon=t.icon??null,this.$onSelect=t.$onSelect,t.$showOn&&(this.$showOn=t.$showOn)}},NP=class extends jP{type;$showOn;constructor(e){super(`_separator`),this.type=`separator`,e&&e.$showOn&&(this.$showOn=e.$showOn)}},PP=(0,h.forwardRef)(({className:e,disabled:t,...n},r)=>(0,_.jsx)(`hr`,{className:e})),FP=(0,h.forwardRef)(({className:e,label:t,disabled:n,icon:r,...i},a)=>(0,_.jsxs)(`button`,{...i,className:e,ref:a,role:`menuitem`,disabled:n,children:[r,t]})),IP=(0,h.forwardRef)(({items:e,className:n,itemClassName:r,separatorClassName:i},a)=>{let[o]=t.oi(),[s,c]=(0,h.useState)(null),[l,u]=(0,h.useState)(!1),d=(0,h.useRef)([]),m=(0,h.useRef)([]),{refs:g,floatingStyles:v,context:y}=f.a({middleware:[p.a({alignmentAxis:4,mainAxis:5}),p.n({fallbackPlacements:[`left-start`]}),p.o({padding:10})],onOpenChange:u,open:l,placement:`right-start`,strategy:`fixed`,whileElementsMounted:p.l}),{getFloatingProps:b,getItemProps:x}=f.o([f.c(y,{role:`menu`}),f.i(y),f.s(y,{activeIndex:s,listRef:d,onNavigate:c}),f.l(y,{activeIndex:s,enabled:l,listRef:m,onMatch:c})]),[S,C]=(0,h.useState)([]);return(0,h.useEffect)(()=>{function n(n){n.preventDefault(),g.setPositionReference({getBoundingClientRect:()=>({bottom:n.clientY,height:0,left:n.clientX,right:n.clientX,top:n.clientY,width:0,x:n.clientX,y:n.clientY})});let a=[];e&&o.read(()=>{let r=t.Yt(n.target)??t.Dr();r&&(a=e.filter(e=>!e.$showOn||e.$showOn(r)))});let s=a.map((e,t)=>e.type===`separator`?{className:i,key:e.key+`-`+t,type:e.type}:{className:r,disabled:e.disabled,icon:e.icon,key:e.key,label:e.title,onClick:()=>o.update(()=>e.$onSelect()),title:e.title,type:e.type});m.current=s.map(e=>e.key),C(s),u(!0)}return o.registerRootListener(e=>{if(e!==null)return t.yt(e,`contextmenu`,n)})},[e,r,i,g,o]),(0,_.jsx)(f.r,{children:l&&(0,_.jsx)(f.n,{lockScroll:!0,children:(0,_.jsx)(f.t,{context:y,initialFocus:g.floating,children:(0,_.jsx)(`div`,{className:n,ref:g.setFloating,style:v,...b(),children:S.map((e,t)=>e.type===`item`?(0,h.createElement)(FP,{...x({...e,onClick(){e.onClick(),u(!1)},onMouseUp(){e.onClick(),u(!1)},ref(e){d.current[t]=e},tabIndex:s===t?0:-1}),key:e.key}):e.type===`separator`?(0,h.createElement)(PP,{...x({...e,ref(e){d.current[t]=e},tabIndex:s===t?0:-1}),key:e.key}):void 0)})})})})});function LP(){let[e]=t.oi();return(0,_.jsx)(IP,{className:`PlaygroundEditorTheme__contextMenu`,itemClassName:`PlaygroundEditorTheme__contextMenuItem`,separatorClassName:`PlaygroundEditorTheme__contextMenuSeparator`,items:(0,h.useMemo)(()=>[new MP(`Remove Link`,{$onSelect:()=>{e.dispatchCommand(a.nt,null)},$showOn:e=>a.X(e.getParent()),disabled:!1,icon:(0,_.jsx)(`i`,{className:`PlaygroundEditorTheme__contextMenuItemIcon bi bi-link-45deg`})}),new NP({$showOn:e=>a.X(e.getParent())}),new MP(`Cut`,{$onSelect:()=>{e.dispatchCommand(t.Nt,null)},disabled:!1,icon:(0,_.jsx)(`i`,{className:`PlaygroundEditorTheme__contextMenuItemIcon bi bi-scissors`})}),new MP(`Copy`,{$onSelect:()=>{e.dispatchCommand(t.Rr,null)},disabled:!1,icon:(0,_.jsx)(`i`,{className:`PlaygroundEditorTheme__contextMenuItemIcon bi bi-copy`})}),new MP(`Paste`,{$onSelect:()=>{navigator.clipboard.read().then(async function(...n){let r=new DataTransfer,i=(await navigator.clipboard.read())[0];if((await navigator.permissions.query({name:`clipboard-read`})).state===`denied`){alert(`Not allowed to paste from clipboard.`);return}for(let e of i.types){let t=await(await i.getType(e)).text();r.setData(e,t)}let a=new ClipboardEvent(`paste`,{clipboardData:r});e.dispatchCommand(t.Wn,a)})},disabled:!1,icon:(0,_.jsx)(`i`,{className:`PlaygroundEditorTheme__contextMenuItemIcon bi bi-clipboard2-check`})}),new MP(`Paste as Plain Text`,{$onSelect:()=>{navigator.clipboard.read().then(async function(...n){if((await navigator.permissions.query({name:`clipboard-read`})).state===`denied`){alert(`Not allowed to paste from clipboard.`);return}let r=new DataTransfer,i=await navigator.clipboard.readText();r.setData(`text/plain`,i);let a=new ClipboardEvent(`paste`,{clipboardData:r});e.dispatchCommand(t.Wn,a)})},disabled:!1,icon:(0,_.jsx)(`i`,{className:`PlaygroundEditorTheme__contextMenuItemIcon bi bi-file-text`})}),new NP,new MP(`Delete Node`,{$onSelect:()=>{let e=t.tt();t.bn(e)?e.anchor.getNode().getParents().at(-2)?.remove():t.Fr(e)&&e.getNodes().forEach(e=>{t.$(e)&&e.remove()})},disabled:!1,icon:(0,_.jsx)(`i`,{className:`PlaygroundEditorTheme__contextMenuItemIcon bi bi-trash3`})})],[e])})}var RP=[`image/`,`image/heic`,`image/heif`,`image/gif`,`image/webp`],zP=[`.mp4`,`.webm`,`.ogv`,`.mov`,`.m4v`],BP=[`.aac`,`.flac`,`.m4a`,`.mp3`,`.oga`,`.ogg`,`.opus`,`.wav`,`.weba`],VP=`.editor-shell`,HP=`.lexical`;function UP(e){let t=e.name.toLowerCase();return e.type===`application/pdf`||t.endsWith(`.pdf`)?`pdf`:e.type.startsWith(`video/`)||zP.some(e=>t.endsWith(e))?`video`:e.type.startsWith(`audio/`)||BP.some(e=>t.endsWith(e))?`audio`:n.h(e,RP)?`image`:null}function WP(e){return typeof URL.createObjectURL==`function`?URL.createObjectURL(e):void 0}function GP(e){return e.name.toLowerCase().endsWith(HP)}function KP(e){let t=e.getRootElement();return t?.closest(VP)??t}function qP(e,t){let n=KP(e),r=t.target;return n!==null&&r instanceof Node&&n.contains(r)}function JP(e,t){let n=e.getRootElement(),r=t.target;return n!==null&&r instanceof Node&&n.contains(r)}function YP(e){return e!==null&&Array.from(e.types).includes(`Files`)}function XP(e){return e===null?[]:Array.from(e.files)}async function ZP(e,n){let r=await n.text();e.setEditorState(oa(e,r),{tag:t.nr})}function QP({resolveFilePath:e}){let[r]=t.oi();return(0,h.useEffect)(()=>{let e=e=>{!qP(r,e)||!YP(e.dataTransfer)||(e.preventDefault(),e.dataTransfer!==null&&(e.dataTransfer.dropEffect=`copy`))},t=e=>{if(!qP(r,e)||JP(r,e))return;let t=XP(e.dataTransfer);if(t.length===0)return;e.preventDefault(),e.stopPropagation();let n=t.find(GP);if(n===void 0){r.dispatchCommand(a.in,t);return}ZP(r,n)};return document.addEventListener(`dragenter`,e,!0),document.addEventListener(`dragover`,e,!0),document.addEventListener(`drop`,t,!0),()=>{document.removeEventListener(`dragenter`,e,!0),document.removeEventListener(`dragover`,e,!0),document.removeEventListener(`drop`,t,!0)}},[r]),(0,h.useEffect)(()=>r.registerCommand(a.in,t=>((async()=>{let i=t.find(GP);if(i!==void 0){await ZP(r,i);return}let o=new Map;for(let n of t){let t=await a.d(e,n,`drop`);t!==null&&o.set(n,t)}let s=t.filter(e=>UP(e)===`image`&&!o.has(e)),c=new Map;if(s.length>0){let e=await n._(s,RP);for(let{file:t,result:r}of e)n.h(t,RP)&&c.set(t,r)}for(let e of t){let t=UP(e),n=o.get(e)??c.get(e);t===`image`&&n!==void 0&&r.dispatchCommand(wN,{altText:e.name,src:n})}for(let e of t){let t=UP(e);if(t===`video`||t===`pdf`||t===`audio`){let n=o.get(e)??a.l(e),i=WP(e);await a.p(n,e),r.dispatchCommand(wN,{altText:e.name,mediaType:t,...i?{previewSrc:i}:null,src:n})}}})(),!0),1),[r,e]),null}var $P=class{_x;_y;constructor(e,t){this._x=e,this._y=t}get x(){return this._x}get y(){return this._y}equals({x:e,y:t}){return this.x===e&&this.y===t}calcDeltaXTo({x:e}){return this.x-e}calcDeltaYTo({y:e}){return this.y-e}calcHorizontalDistanceTo(e){return Math.abs(this.calcDeltaXTo(e))}calcVerticalDistance(e){return Math.abs(this.calcDeltaYTo(e))}calcDistanceTo(e){return Math.sqrt(this.calcDeltaXTo(e)**2+this.calcDeltaYTo(e)**2)}},eF=class e{_left;_top;_right;_bottom;constructor(e,t,n,r){let[i,a]=t<=r?[t,r]:[r,t],[o,s]=e<=n?[e,n]:[n,e];this._top=i,this._right=s,this._left=o,this._bottom=a}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}equals({top:e,left:t,bottom:n,right:r}){return e===this._top&&n===this._bottom&&t===this._left&&r===this._right}contains(e){if(e instanceof $P){let{x:t,y:n}=e,r=n<this._top,i=n>this._bottom,a=t<this._left,o=t>this._right;return{reason:{isOnBottomSide:i,isOnLeftSide:a,isOnRightSide:o,isOnTopSide:r},result:!(r||i||a||o)}}{let{top:t,left:n,bottom:r,right:i}=e;return t>=this._top&&t<=this._bottom&&r>=this._top&&r<=this._bottom&&n>=this._left&&n<=this._right&&i>=this._left&&i<=this._right}}intersectsWith(e){let{left:t,top:n,width:r,height:i}=e,{left:a,top:o,width:s,height:c}=this;return(t+r>=a+s?t+r:a+s)-(t<=a?t:a)<=r+s&&(n+i>=o+c?n+i:o+c)-(n<=o?n:o)<=i+c}generateNewRect({left:t=this.left,top:n=this.top,right:r=this.right,bottom:i=this.bottom}){return new e(t,n,r,i)}static fromLTRB(t,n,r,i){return new e(t,n,r,i)}static fromLWTH(t,n,r,i){return new e(t,r,t+n,r+i)}static fromPoints(t,n){let{y:r,x:i}=t,{y:a,x:o}=n;return e.fromLTRB(i,r,o,a)}static fromDOM(t){let{top:n,width:r,left:i,height:a}=t.getBoundingClientRect();return e.fromLWTH(i,r,n,a)}},tF=`application/x-lexical-drag-block`,nF=1/0;function rF(e){let t=e.ownerDocument.defaultView,n=(e,n)=>e&&t?parseFloat(t.getComputedStyle(e)[n]):0,{marginTop:r=`0`,marginBottom:i=`0`}=t?t.getComputedStyle(e):{},a=n(e.previousElementSibling,`marginBottom`),o=n(e.nextElementSibling,`marginTop`);return{marginBottom:Math.max(parseFloat(i),o),marginTop:Math.max(parseFloat(r),a)}}function iF(e,r,i,a=!1){let o=e.getBoundingClientRect(),s=function(e){return e.read(`latest`,()=>t.Dr().getChildrenKeys())}(r),c=null;return r.read(`latest`,()=>{if(a){let[e,t]=[r.getElementByKey(s[0]),r.getElementByKey(s[s.length-1])],[a,o]=[e?.getBoundingClientRect(),t?.getBoundingClientRect()];if(a&&o){let r=n.d(e),s=n.d(t);if(i.y/r<a.top?c=e:i.y/s>o.bottom&&(c=t),c)return}}let e=(t=s.length)===0?1/0:nF>=0&&nF<t?nF:Math.floor(t/2);var t;let l=0;for(;e>=0&&e<s.length;){let t=s[e],a=r.getElementByKey(t);if(a===null)break;let u=n.d(a),d=new $P(i.x/u,i.y/u),f=eF.fromDOM(a),{marginTop:p,marginBottom:m}=rF(a),{result:h,reason:{isOnTopSide:g,isOnBottomSide:_}}=f.generateNewRect({bottom:f.bottom+m,left:o.left,right:o.right,top:f.top-p}).contains(d);if(h){c=a,nF=e;break}l===0&&(l=g?-1:_?1:1/0),e+=l}}),c}function aF(e,r,i,a,o,s,c,l,u){let d=t.ut(r),f=(0,h.useRef)(!1),[p,m]=(0,h.useState)(null),g=(0,h.useCallback)(e=>{m(e),u&&u(e)},[u]);return(0,h.useEffect)(()=>{if(d!=null)return t.vn(d,{mouseleave:function(){g(null)},mousemove:function(n){let i=t.Zn(n);if(!t.Sn(i))return void g(null);if(l(i))return;let a=iF(r,e,n);g(a)}})},[d,r,e,l,g]),(0,h.useEffect)(()=>{let t=n.d(e.getRootElement(),!0);i.current&&function(e,t,n,r){if(!e)return void(t.style.display=`none`);let i=e.getBoundingClientRect(),a=e.ownerDocument.defaultView,o=a?a.getComputedStyle(e):null,s=t.getBoundingClientRect(),c=n.getBoundingClientRect(),l=o?parseInt(o.lineHeight,10):NaN;isNaN(l)&&(l=i.bottom-i.top);let u=(i.top+(l-(s.height||l))/2-c.top+n.scrollTop)/r;t.style.display=`flex`,t.style.opacity=`1`,t.style.transform=`translate(4px, ${u}px)`}(p,i.current,r,t)},[e,r,p,i]),(0,h.useEffect)(()=>{function i(i){if(!f.current)return!1;let[o]=n.i(i);if(o)return!1;let s=i.pageY,c=t.Zn(i);if(!t.Sn(c))return!1;let l=iF(r,e,i,!0),u=a.current;return l!==null&&u!==null&&(function(e,t,n,r){let{top:i,height:a}=t.getBoundingClientRect(),{top:o,width:s}=r.getBoundingClientRect(),{marginTop:c,marginBottom:l}=rF(t),u=i;n>=i?u+=a+l/2:u-=c/2;let d=u-o-2+r.scrollTop;e.style.transform=`translate(24px, ${d}px)`,e.style.width=s-48+`px`,e.style.opacity=`.4`}(u,l,s/n.d(c),r),i.preventDefault(),!0)}return t.Yn(e.registerCommand(t.l,e=>i(e),1),e.registerCommand(t.Qr,i=>function(i){if(!f.current)return!1;let[a]=n.i(i);if(a)return!1;let{dataTransfer:o,pageY:s}=i,c=t.Zn(i),l=t.Ht(o==null?``:o.getData(tF));if(!l||!t.Sn(c))return!1;let u=iF(r,e,i,!0);if(!u)return!1;let d=t.Yt(u);if(!d)return!1;if(d===l)return t.Vn&&e.focus(),!0;let p=u.getBoundingClientRect().top;return s/n.d(c)>=p?d.insertAfter(l):d.insertBefore(l),g(null),t.Vn&&t.it(()=>{e.focus()}),!0}(i),3))},[r,e,a,g]),(0,h.useEffect)(()=>{if(t.Vn&&o)return t.Yn(e.registerRootListener(n=>{if(n)return t.yt(n,`blur`,function(r){let i=r.relatedTarget;t.Sn(i)&&l(i)&&(n&&(n.focus({preventScroll:!0}),e.update(()=>{let e=t.tt();e===null||e.dirty||(e.dirty=!0)})),r.stopImmediatePropagation())},!0)}),e.registerCommand(t.at,()=>{let n=e.getRootElement(),r=t.Sr(t.E(n));return!!(n&&t.Sn(r)&&l(r))&&(n.focus({preventScroll:!0}),e.update(()=>{let e=t.tt();e===null||e.dirty||(e.dirty=!0)}),!0)},3))},[e,o,l]),(0,v.createPortal)((0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`div`,{draggable:!0,onDragStart:function(n){let r=n.dataTransfer;if(!r||!p)return;(function(e,t){let{transform:n}=t.style;t.style.transform=`translateZ(0)`,e.setDragImage(t,0,0),setTimeout(()=>{t.style.transform=n})})(r,p);let i=``;if(e.update(()=>{let e=t.Yt(p);e&&(i=e.getKey())}),f.current=!0,r.setData(tF,i),t.Vn){let n=e.getRootElement();n!==null&&t.Hn(n)!==n&&(n.focus({preventScroll:!0}),e.update(()=>{let e=t.tt();e===null||e.dirty||(e.dirty=!0)}))}},onDragEnd:function(){var n;f.current=!1,(n=a.current)&&(n.style.opacity=`0`,n.style.transform=`translate(-10000px, -10000px)`),t.Vn&&e.focus()},children:o&&s}),c]}),r)}function oF({anchorElem:e=document.body,menuRef:n,targetLineRef:r,menuComponent:i,targetLineComponent:a,isOnMenu:o,onElementChanged:s}){let[c]=t.oi();return aF(c,e,n,r,c._editable,i,a,o,s)}var sF=`draggable-block-menu`;function cF(e){return!!e.closest(`.${sF}`)}function lF({anchorElem:e=document.body}){let[n]=t.oi(),[r,i]=ix(),a=(0,h.useRef)(null),o=(0,h.useRef)(null),s=(0,h.useRef)(null),c=(0,h.useRef)(null),[l,u]=(0,h.useState)(null),[d,f]=(0,h.useState)(null),[p,m]=(0,h.useState)(!1),[g,y]=(0,h.useState)(``),[b,x]=(0,h.useState)(0),[S,C]=(0,h.useState)(null),w=(0,h.useMemo)(()=>{let e=kP(n,i);if(!g)return e;let t=new RegExp(g,`i`);return[...OP(n,g),...e.filter(e=>t.test(e.title)||e.keywords.some(e=>t.test(e)))]},[n,g,i]);(0,h.useEffect)(()=>{p&&s.current&&s.current.focus()},[p]),(0,h.useEffect)(()=>{!p||!w.length||x(e=>Math.min(e,Math.max(w.length-1,0)))},[p,w.length]),(0,h.useEffect)(()=>{if(!p)return;let e=e=>{let t=e.target;o.current&&o.current.contains(t)||a.current&&a.current.contains(t)||(m(!1),f(null))};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[p]);let T=(0,h.useCallback)(e=>{if(!d){m(!1);return}m(!1);let r=null;n.update(()=>{let e=t.Ht(d.targetNodeKey);if(!e)return;let n=t.Ar(),i=t.D(``);n.append(i),d.insertBefore?e.insertBefore(n):e.insertAfter(n),r=n.getKey(),i.select()});let i=r;i!==null&&(e.onSelect(g),n.update(()=>{let e=t.Ht(i);if(t.kn(e)){let n=e.getFirstChild();t.Jt(n)&&n.getTextContent().length===0&&e.getChildrenSize()===1&&e.remove()}}))},[n,d,g]);(0,h.useEffect)(()=>{if(!p)return;let e=e=>{if(!(!p||!w.length))if(e.key===`ArrowDown`)e.preventDefault(),x(e=>e+1>=w.length?0:e+1);else if(e.key===`ArrowUp`)e.preventDefault(),x(e=>e-1<0?w.length-1:e-1);else if(e.key===`Enter`){e.preventDefault();let t=w[b];t&&T(t)}else e.key===`Escape`&&(e.preventDefault(),m(!1),f(null))};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[b,p,w,T]);function E(e){if(!l||!n)return;let r=null;if(n.read(()=>{let e=t.Yt(l);e&&(r=e.getKey())}),!r)return;let i=e.altKey||e.ctrlKey,o=a.current?.getBoundingClientRect();C(o?{left:o.left+o.width+window.scrollX+8,top:o.top+window.scrollY}:null),f({insertBefore:i,targetNodeKey:r}),y(``),x(0),m(!0)}return(0,_.jsxs)(_.Fragment,{children:[r,p&&S?v.createPortal((0,_.jsxs)(`div`,{className:`typeahead-popover component-picker-menu draggable-block-component-picker`,ref:o,style:{left:S.left,position:`absolute`,top:S.top,zIndex:10},children:[(0,_.jsx)(`input`,{className:`component-picker-search`,placeholder:`Filter blocks...`,value:g,ref:s,onChange:e=>y(e.target.value)}),(0,_.jsx)(`ul`,{children:w.map((e,t)=>(0,_.jsx)(DP,{index:t,isSelected:b===t,onClick:()=>{x(t),T(e)},onMouseEnter:()=>x(t),option:e},e.key))})]}),document.body):null,(0,_.jsx)(oF,{anchorElem:e,menuRef:a,targetLineRef:c,menuComponent:(0,_.jsxs)(`div`,{ref:a,className:`draggable-block-menu`,children:[(0,_.jsx)(`button`,{title:`Click to add below`,className:`draggable-block-menu-button icon-plus`,onClick:E,children:(0,_.jsx)(`i`,{className:`bi bi-plus`})}),(0,_.jsx)(`div`,{className:`draggable-block-menu-handle`,"aria-hidden":`true`,children:(0,_.jsx)(`i`,{className:`bi bi-grip-vertical`})})]}),targetLineComponent:(0,_.jsx)(`div`,{ref:c,className:`draggable-block-target-line`}),isOnMenu:cF,onElementChanged:u})]})}function uF(){return(0,_.jsx)(jM,{onChange:e=>{Pr(JSON.stringify(e))}})}var dF=class extends a.h{emoji;keywords;constructor(e,t,n){super(e),this.title=e,this.emoji=t,this.keywords=n.keywords||[]}};function fF({index:e,isSelected:t,onClick:n,onMouseEnter:r,option:i}){let a=`item mx-2 p-2 d-flex flex-row align-items-center flex-shrink-0`;return t&&(a+=` selected`),(0,_.jsx)(`li`,{tabIndex:-1,className:a,ref:i.setRefElement,role:`option`,"aria-selected":t,id:`typeahead-item-`+e,onMouseEnter:r,onClick:n,children:(0,_.jsxs)(`span`,{className:`text`,children:[i.emoji,` `,i.title]})},i.key)}var pF=10;function mF(){let[e]=t.oi(),[n,r]=(0,h.useState)(null),[i,o]=(0,h.useState)([]);(0,h.useEffect)(()=>{Promise.resolve().then(()=>Ly).then(e=>o(e.default))},[]);let s=(0,h.useMemo)(()=>i==null?[]:i.map(({emoji:e,aliases:t,tags:n})=>new dF(t[0],e,{keywords:[...t,...n]})),[i]),c=a.g(`:`,{minLength:0,punctuation:`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\[\\]\\\\/!%'"~=<>:;`}),l=(0,h.useMemo)(()=>s.filter(e=>n==null?s:new RegExp(n,`gi`).exec(e.title)||e.keywords!=null?e.keywords.some(e=>new RegExp(n,`gi`).exec(e)):!1).slice(0,pF),[s,n]);return(0,_.jsx)(a.m,{onQueryChange:r,onSelectOption:(0,h.useCallback)((n,r,i)=>{e.update(()=>{let e=t.tt();!t.bn(e)||n==null||(r&&r.remove(),e.insertNodes([t.D(n.emoji)]),i())})},[e]),triggerFn:c,options:l,menuRenderFn:(e,{selectedIndex:t,selectOptionAndCleanUp:n,setHighlightedIndex:r})=>e.current==null||l.length===0?null:e.current&&l.length?v.createPortal((0,_.jsx)(`div`,{className:`typeahead-popover emoji-menu`,children:(0,_.jsx)(`ul`,{className:`list-unstyled m-0 p-0`,children:l.map((e,i)=>(0,_.jsx)(fF,{index:i,isSelected:t===i,onClick:()=>{r(i),n(e)},onMouseEnter:()=>{r(i)},option:e},e.key))})}),e.current):null})}var hF=/[\p{L}\p{N}_]/u;function gF(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n],i=r.toLowerCase();t+=i.length===1?i:r}return t}function _F(e,t,n){let r=t>0?e[t-1]:``,i=n<e.length?e[n]:``;return!hF.test(r)&&!hF.test(i)}function vF(e,t,n){if(t===``)return[];let r=n.caseSensitive?e:gF(e),i=n.caseSensitive?t:gF(t),a=[],o=0;for(;;){let e=r.indexOf(i,o);if(e===-1)return a;let t=e+i.length;(!n.wholeWord||_F(r,e,t))&&a.push({end:t,start:e}),o=t}}function yF(e,t){let n=[],r=0;for(let i of t){for(;r<e.length&&e[r].start+e[r].length<=i.start;)r++;let t=[];for(let n=r;n<e.length;n++){let r=e[n];if(r.start>=i.end)break;let a=Math.max(i.start-r.start,0),o=Math.min(i.end-r.start,r.length);o>a&&t.push({endOffset:o,key:r.key,startOffset:a})}n.push(t)}return n}function bF(e,t){let n=e.findIndex(e=>e.start>=t);return n===-1?0:n}function xF(){let e=[],r=``,i=!1;for(let{node:a}of n.b())if(t.Jt(a)){let t=a.getTextContent();if(t===``)continue;i&&r!==``&&(r+=`
1016
1016
  `),i=!1,e.push({key:a.getKey(),length:t.length,start:r.length}),r+=t}else(t._r(a)||t.$(a)||t.vt(a)&&!a.isInline())&&(i=!0);return{segments:e,text:r}}function SF(e){let n=t.tt();if(!t.bn(n)||n.anchor.type!==`text`)return null;let{key:r,offset:i}=n.anchor,a=e.find(e=>e.key===r);return a===void 0?null:a.start+i}function CF(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];for(let e=t.nextNode();e!==null;e=t.nextNode())n.push(e);return n}function wF(e,t){let n=e.getElementByKey(t.key);if(n===null)return null;let r=0,i=null;for(let e of CF(n)){let n=r+e.data.length;if(i===null&&t.startOffset<n&&(i=document.createRange(),i.setStart(e,t.startOffset-r)),i!==null&&t.endOffset<=n)return i.setEnd(e,t.endOffset-r),i;r=n}return null}function TF(e,t){let n=[];for(let r of t){let t=wF(e,r);t!==null&&n.push(t)}return n}function EF(e){if(e.length===0)return;let n=e[0],r=e[e.length-1];if(!t.Jt(t.Ht(n.key))||!t.Jt(t.Ht(r.key)))return;let i=t.h();i.anchor.set(n.key,n.startOffset,`text`),i.focus.set(r.key,r.endOffset,`text`),t.En(i)}var DF=t.x(`TOGGLE_FIND_COMMAND`),OF=t.x(`SET_FIND_QUERY_COMMAND`),kF=`bible-note-find-match`,AF=`bible-note-find-active-match`,jF=120,MF=12;function NF(){return typeof CSS>`u`||typeof Highlight>`u`?null:CSS.highlights??null}function PF(e,t){let n=NF();if(n!==null){if(t.length===0){n.delete(e);return}n.set(e,new Highlight(...t))}}function FF(){PF(kF,[]),PF(AF,[])}function IF(e){let t=e?.startContainer.parentElement??null;t===null||typeof t.scrollIntoView!=`function`||t.scrollIntoView({block:`center`,inline:`nearest`})}function LF(){let[e]=t.oi(),[n,r]=(0,h.useState)(!1),[i,a]=(0,h.useState)(``),[o,s]=(0,h.useState)(!1),[c,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(0),[f,p]=(0,h.useState)(0),[m,g]=(0,h.useState)(null),y=(0,h.useRef)(null),b=(0,h.useRef)(null),x=(0,h.useRef)([]),S=(0,h.useRef)(!1),C=(0,h.useRef)(n),w=(0,h.useRef)(f);C.current=n,w.current=f;let T=(0,h.useCallback)((e,t,n)=>{let r=t<e.length?e[t].ranges:[],i=[];e.forEach((e,n)=>{n!==t&&i.push(...e.ranges)}),PF(kF,i),PF(AF,r),n&&IF(r[0])},[]),E=(0,h.useCallback)(({scroll:t,startFromCaret:n})=>{if(i===``){x.current=[],FF(),d(0),p(0);return}let{caretOffset:r,offsets:a,sliced:s}=e.getEditorState().read(()=>{let{segments:e,text:t}=xF(),r=vF(t,i,{caseSensitive:o,wholeWord:c});return{caretOffset:n?SF(e):null,offsets:r,sliced:yF(e,r)}}),l=s.map(t=>({ranges:TF(e,t),slices:t})),u=0;l.length>0&&(u=n?r===null?0:bF(a,r):Math.min(w.current,l.length-1)),x.current=l,d(l.length),p(u),T(l,u,t)},[o,e,i,T,c]),D=(0,h.useCallback)(e=>{let t=x.current;if(t.length===0)return;let n=(w.current+e+t.length)%t.length;p(n),T(t,n,!0)},[T]),O=(0,h.useCallback)(()=>{let n=e.getEditorState().read(()=>{let e=t.tt();return t.bn(e)&&!e.isCollapsed()?e.getTextContent():``});if(n!==``&&!n.includes(`
1017
- `)&&n.length<=jF&&a(n),C.current){y.current?.focus(),y.current?.select();return}S.current=!0,r(!0)},[e]),k=(0,h.useCallback)(()=>{let t=x.current[w.current];r(!1),t!==void 0&&e.update(()=>{EF(t.slices)}),e.focus()},[e]),A=(0,h.useCallback)(e=>{if(e===null){C.current&&k();return}a(e),C.current||(S.current=!0,r(!0))},[k]);if((0,h.useEffect)(()=>{n&&E({scroll:!0,startFromCaret:!0})},[n,E]),(0,h.useEffect)(()=>{if(n)return e.registerUpdateListener(({dirtyElements:e,dirtyLeaves:t})=>{e.size===0&&t.size===0||E({scroll:!1,startFromCaret:!1})})},[e,n,E]),(0,h.useEffect)(()=>{n||(x.current=[],FF())},[n]),(0,h.useEffect)(()=>FF,[]),(0,h.useEffect)(()=>{if(!n){g(null);return}let t=e.getRootElement(),r=t?.closest(`.editor-shell`),i=t?.closest(`.editor-container`);if(!(r instanceof HTMLElement)||!(i instanceof HTMLElement)){g(null);return}let a=()=>{let e=i.getBoundingClientRect().top-r.getBoundingClientRect().top;g(t=>t!==null&&t.element===r&&t.top===e?t:{element:r,top:e})};a(),window.addEventListener(`resize`,a);let o=typeof ResizeObserver>`u`?null:new ResizeObserver(a);return o?.observe(r),()=>{window.removeEventListener(`resize`,a),o?.disconnect()}},[e,n]),(0,h.useEffect)(()=>{!n||m===null||!S.current||(S.current=!1,y.current?.focus(),y.current?.select())},[m,n]),(0,h.useEffect)(()=>{let t=b.current,r=e.getRootElement()?.closest(`.editor-container`);if(!n||m===null||t===null||!(r instanceof HTMLElement))return;let i=()=>{r.style.setProperty(`--find-bar-reserve`,`${t.offsetHeight+MF*2}px`),r.classList.add(`find-bar-open`)};i();let a=typeof ResizeObserver>`u`?null:new ResizeObserver(i);return a?.observe(t),()=>{a?.disconnect(),r.classList.remove(`find-bar-open`),r.style.removeProperty(`--find-bar-reserve`)}},[m,e,n]),(0,h.useEffect)(()=>{let e=e=>{if(_e(e)){e.preventDefault(),O();return}C.current&&(ye(e)?(e.preventDefault(),D(-1)):ve(e)&&(e.preventDefault(),D(1)))};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[D,O]),(0,h.useEffect)(()=>e.registerCommand(DF,()=>(O(),!0),2),[e,O]),(0,h.useEffect)(()=>e.registerCommand(OF,e=>(A(e),!0),2),[e,A]),!n||m===null)return null;let j=i!==``,M=u>0;return(0,v.createPortal)((0,_.jsxs)(`div`,{className:`FindPlugin_Bar`,ref:b,role:`search`,style:{top:m.top},"aria-label":`Find in note`,children:[(0,_.jsx)(`i`,{className:`bi bi-search FindPlugin_Icon`,"aria-hidden":`true`}),(0,_.jsx)(`input`,{"aria-label":`Find in note`,className:`FindPlugin_Input`,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),D(e.shiftKey?-1:1)):e.key===`Escape`&&(e.preventDefault(),k())},placeholder:`Find in note`,ref:y,spellCheck:!1,type:`text`,value:i}),(0,_.jsx)(`span`,{"aria-live":`polite`,className:`FindPlugin_Count${j&&!M?` FindPlugin_Count__empty`:``}`,children:j?`${M?f+1:0}/${u}`:``}),(0,_.jsx)(`button`,{"aria-label":`Match case`,"aria-pressed":o,className:`FindPlugin_Toggle${o?` active`:``}`,onClick:()=>s(e=>!e),title:`Match case`,type:`button`,children:`Aa`}),(0,_.jsx)(`button`,{"aria-label":`Match whole word`,"aria-pressed":c,className:`FindPlugin_Toggle${c?` active`:``}`,onClick:()=>l(e=>!e),title:`Match whole word`,type:`button`,children:`ab`}),(0,_.jsx)(`button`,{"aria-label":`Previous match`,className:`FindPlugin_Button`,disabled:!M,onClick:()=>D(-1),title:`Previous match (Shift+Enter)`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-chevron-up`,"aria-hidden":`true`})}),(0,_.jsx)(`button`,{"aria-label":`Next match`,className:`FindPlugin_Button`,disabled:!M,onClick:()=>D(1),title:`Next match (Enter)`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-chevron-down`,"aria-hidden":`true`})}),(0,_.jsx)(`button`,{"aria-label":`Close find bar`,className:`FindPlugin_Button`,onClick:k,title:`Close (Esc)`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-x-lg`,"aria-hidden":`true`})})]}),m.element)}function RF(e){let t=e.anchor,r=e.focus,i=e.anchor.getNode(),a=e.focus.getNode();return i===a?i:e.isBackward()?n.O(r)?i:a:n.O(t)?i:a}var zF=10,BF=5;function VF(e,t,n,i=zF,a=BF){let o=n.parentElement;if(e===null||!o){t.style.opacity=`0`,t.style.transform=`translate(-10000px, -10000px)`;return}let s=t.getBoundingClientRect(),c=n.getBoundingClientRect(),l=o.getBoundingClientRect(),u=e.top-i,d=e.left-a;u<l.top&&(u+=s.height+e.height+i*2),d+s.width>l.right&&(d=l.right-s.width-a),u-=c.top,d-=c.left;let f=r.n(n);t.style.opacity=`1`,t.style.transform=`translate(${d/f}px, ${u/f}px)`}function HF(e){e.preventDefault()}function UF({editor:e,isLink:n,setIsLink:r,anchorElem:i,isLinkEditMode:o,setIsLinkEditMode:s}){let c=(0,h.useRef)(null),l=(0,h.useRef)(null),[u,d]=(0,h.useState)(``),[f,p]=(0,h.useState)(`https://`),[m,g]=(0,h.useState)(null),v=(0,h.useCallback)(()=>{let n=t.tt();if(t.bn(n)){let e=RF(n),r=t.B(e,a.X);r?d(r.getURL()):a.X(e)?d(e.getURL()):d(``),o&&p(u)}else if(t.Fr(n)){let e=n.getNodes();if(e.length>0){let t=e[0],n=t.getParent();a.X(n)?d(n.getURL()):a.X(t)?d(t.getURL()):d(``),o&&p(u)}}let r=c.current,l=t.M(e._window),f=document.activeElement;if(r===null)return;let m=e.getRootElement();if(n!==null&&m!==null&&e.isEditable()){let a;if(t.Fr(n)){let t=n.getNodes();if(t.length>0){let n=e.getElementByKey(t[0].getKey());n&&(a=n.getBoundingClientRect())}}else l!==null&&m.contains(l.anchorNode)&&(a=l.focusNode?.parentElement?.getBoundingClientRect());a&&(a.y+=40,VF(a,r,i)),g(n)}else(!f||f.className!==`link-input`)&&(m!==null&&VF(null,r,i),g(null),s(!1),d(``));return!0},[i,e,s,o,u]);(0,h.useEffect)(()=>{let t=i.parentElement,n=()=>{e.getEditorState().read(()=>{v()})};return window.addEventListener(`resize`,n),t&&t.addEventListener(`scroll`,n),()=>{window.removeEventListener(`resize`,n),t&&t.removeEventListener(`scroll`,n)}},[i.parentElement,e,v]),(0,h.useEffect)(()=>t.Yn(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{v()})}),e.registerCommand(t.F,()=>(v(),!0),1),e.registerCommand(t.jn,()=>n?(r(!1),!0):!1,3)),[e,v,r,n]),(0,h.useEffect)(()=>{e.getEditorState().read(()=>{v()})},[e,v]),(0,h.useEffect)(()=>{o&&l.current&&l.current.focus()},[o,n]),(0,h.useEffect)(()=>{let e=c.current;if(e===null)return;let t=t=>{!e.contains(t.relatedTarget)&&n&&(r(!1),s(!1))};return e.addEventListener(`focusout`,t),()=>{e.removeEventListener(`focusout`,t)}},[c,r,s,n]);let y=e=>{e.key===`Enter`?b(e):e.key===`Escape`&&(e.preventDefault(),s(!1))},b=n=>{n.preventDefault(),m!==null&&(u!==``&&e.update(()=>{e.dispatchCommand(a.nt,a.C(f));let n=t.tt();if(t.bn(n)){let e=RF(n).getParent();if(a.et(e)){let t=a.Y(e.getURL(),{rel:e.__rel,target:e.__target,title:e.__title});e.replace(t,!0)}}}),p(`https://`),s(!1))};return(0,_.jsx)(`div`,{ref:c,className:`link-editor`,children:n?o?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`input`,{ref:l,className:`link-input`,value:f,onChange:e=>{p(e.target.value)},onKeyDown:e=>{y(e)}}),(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`div`,{className:`link-cancel button`,role:`button`,tabIndex:0,onMouseDown:HF,onClick:()=>{s(!1)},children:(0,_.jsx)(`i`,{className:`bi bi-x-lg`})}),(0,_.jsx)(`div`,{className:`link-confirm button`,role:`button`,tabIndex:0,onMouseDown:HF,onClick:b,children:(0,_.jsx)(`i`,{className:`bi bi-check2`})})]})]}):(0,_.jsxs)(`div`,{className:`link-view`,children:[(0,_.jsx)(`a`,{href:a.C(u),target:`_blank`,rel:`noopener noreferrer`,children:u}),(0,_.jsx)(`div`,{className:`link-edit button`,role:`button`,tabIndex:0,onMouseDown:HF,onClick:e=>{e.preventDefault(),p(u),s(!0)},children:(0,_.jsx)(`i`,{className:`bi bi-pencil-fill`})}),(0,_.jsx)(`div`,{className:`link-trash button`,role:`button`,tabIndex:0,onMouseDown:HF,onClick:()=>{e.dispatchCommand(a.nt,null)},children:(0,_.jsx)(`i`,{className:`bi bi-trash3`})})]}):null})}function WF(e,n,r,i){let[o,s]=(0,h.useState)(e),[c,l]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{function n(){let e=t.tt();if(t.bn(e)){let n=RF(e),r=t.B(n,a.X),i=t.B(n,a.et);if(!(r||i)){l(!1);return}e.getNodes().filter(e=>!t._r(e)).find(e=>{let n=t.B(e,a.X),o=t.B(e,a.et);return r&&!r.is(n)||n&&!n.is(r)||i&&!i.is(o)||o&&(!o.is(i)||o.getIsUnlinked())})?l(!1):l(!0)}else if(t.Fr(e)){let t=e.getNodes();if(t.length===0){l(!1);return}let n=t[0];a.X(n.getParent())||a.X(n)?l(!0):l(!1)}}return t.Yn(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{n()})}),e.registerCommand(t.F,(e,t)=>(n(),s(t),!1),4),e.registerCommand(t.K,e=>{let n=t.tt();if(t.bn(n)){let r=t.B(RF(n),a.X);if(a.X(r)&&(e.metaKey||e.ctrlKey))return window.open(r.getURL(),`_blank`),!0}return!1},1))},[e]),(0,v.createPortal)((0,_.jsx)(UF,{editor:o,isLink:c,anchorElem:n,setIsLink:l,isLinkEditMode:r,setIsLinkEditMode:i}),n)}function GF({anchorElem:e=document.body,isLinkEditMode:n,setIsLinkEditMode:r}){let[i]=t.oi();return WF(i,e,n,r)}function KF({disabled:e=!1,stopCloseOnClickSelf:t=!0,color:n,onChange:r,onClear:i,...a}){return(0,_.jsx)(ZN,{...a,disabled:e,stopCloseOnClickSelf:t,children:(0,_.jsx)(Nn,{color:n,onChange:r,onClear:i})})}function qF(e,t){let n=e.getRangeAt(0),r;if(e.anchorNode===t){let e=t;for(;e.firstElementChild!=null;)e=e.firstElementChild;r=e.getBoundingClientRect()}else r=n.getBoundingClientRect();return r}var JF=10,YF=5;function XF(e,t,n,i=!1,a=JF,o=YF){let s=n.parentElement;if(e===null||!s){t.style.opacity=`0`,t.style.transform=`translate(-10000px, -10000px)`;return}let c=t.getBoundingClientRect(),l=n.getBoundingClientRect(),u=s.getBoundingClientRect(),d=e.top-c.height-a,f=e.left-o,p=window.getSelection();if(p&&p.rangeCount>0){let t=p.getRangeAt(0).startContainer;if(t.nodeType===Node.ELEMENT_NODE||t.parentElement){let n=t.nodeType===Node.ELEMENT_NODE?t:t.parentElement,r=window.getComputedStyle(n).textAlign;(r===`right`||r===`end`)&&(f=e.right-c.width+o)}}d<u.top&&(d+=c.height+e.height+a*(i?9:2)),f+c.width>u.right&&(f=u.right-c.width-o),f<u.left&&(f=u.left+o),d-=l.top,f-=l.left;let m=r.n(n);t.style.opacity=`1`,t.style.transform=`translate(${f/m}px, ${d/m}px)`}function ZF(e){let t={clipboardData:QF(e),preventDefault(){},target:null,type:`paste`};return typeof ClipboardEvent==`function`&&Object.setPrototypeOf(t,ClipboardEvent.prototype),t}function QF(e){if(typeof DataTransfer==`function`){let t=new DataTransfer;return t.setData(`text/plain`,e),t}return{files:[],getData:t=>t===`text/plain`?e:``,types:[`text/plain`]}}function $F(e){return{key:e.key,offset:e.offset,type:e.type}}function eI(e){let n=e.getRootElement(),r=t.M(e._window);return n===null||r===null||r.rangeCount===0||!n.contains(r.anchorNode)?null:r.getRangeAt(0).cloneRange()}function tI(e){return e.read(()=>{let n=t.tt();if(!t.bn(n)||n.isCollapsed())return null;let i=n.getTextContent();if(i===``)return null;let a=n.isBackward(),[o,s]=a?[n.focus,n.anchor]:[n.anchor,n.focus];return{domRange:eI(e),end:$F(s),html:r._(e,n),isBackward:a,start:$F(o),text:i}})}function nI(e){let n=t.Ht(e.key);return e.type===`text`?t.Jt(n)&&e.offset<=n.getTextContentSize():t.vt(n)&&e.offset<=n.getChildrenSize()}function rI(e){if(!nI(e.start)||!nI(e.end))return null;let[n,r]=e.isBackward?[e.end,e.start]:[e.start,e.end],i=t.h();return i.anchor.set(n.key,n.offset,n.type),i.focus.set(r.key,r.offset,r.type),i}function iI(e,n,r){if(!e.isEditable())return!1;let i={isReplaceable:!1};return e.update(()=>{let e=rI(n);e===null||e.getTextContent()!==n.text||(t.En(e),i.isReplaceable=!0,r.length===0&&e.removeText())},{discrete:!0}),i.isReplaceable?(r.length>0&&e.dispatchCommand(t.Wn,ZF(r)),!0):!1}function aI(e,t,n){let r=tI(e);return r===null?null:{id:t,mouseEvent:n,replaceText:t=>iI(e,r,t),selection:r}}function oI({actionButton:e,editor:t,isEditable:n}){return e.isHiddenWhenReadOnly===!0&&!n?null:(0,_.jsx)(`button`,{type:`button`,onClick:n=>{let r=aI(t,e.id,n);r!==null&&e.onClick(r)},className:`popup-item spaced floating-action-button`,"data-floating-action-button-id":e.id,title:e.description,"aria-label":e.description,children:e.children})}function sI({actionButtons:e,editor:r,anchorElem:i,isLink:a,isBold:o,isItalic:s,isUnderline:c,isHighlight:u,fontColor:d,fontColorIcon:f,bgColor:p,bgColorIcon:m,isStrikethrough:g}){let v=(0,h.useRef)(null),y=l.t(),b=()=>{r.dispatchCommand(NM,void 0)},x=()=>{r.isEditable()&&r.dispatchCommand(Vx,void 0)},S=(0,h.useCallback)((e,i,a=!1)=>{r.update(()=>{a&&t.pt(t.gn);let r=t.tt();r!==null&&n.M(r,e)},i?{tag:t.$r}:{})},[r]),C=(0,h.useCallback)((e,t,n)=>{S({color:e},t,n)},[S]),w=(0,h.useCallback)((e,t)=>{S({color:null},e,t)},[S]),T=(0,h.useCallback)((e,t,n)=>{S({"background-color":e},t,n)},[S]),E=(0,h.useCallback)((e,t)=>{S({"background-color":null},e,t)},[S]);function D(e){if(v?.current&&(e.buttons===1||e.buttons===3)&&v.current.style.pointerEvents!==`none`){let t=e.clientX,n=e.clientY,r=document.elementFromPoint(t,n);v.current.contains(r)||(v.current.style.pointerEvents=`none`)}}function O(e){v?.current&&v.current.style.pointerEvents!==`auto`&&(v.current.style.pointerEvents=`auto`)}(0,h.useEffect)(()=>{if(v?.current)return document.addEventListener(`mousemove`,D),document.addEventListener(`mouseup`,O),()=>{document.removeEventListener(`mousemove`,D),document.removeEventListener(`mouseup`,O)}},[v]);let k=(0,h.useCallback)(()=>{let e=t.tt(),n=v.current,o=t.M(r._window);if(n===null)return;let s=r.getRootElement();e!==null&&o!==null&&!o.isCollapsed&&s!==null&&s.contains(o.anchorNode)&&XF(qF(o,s),n,i,a)},[r,i,a]);return(0,h.useEffect)(()=>{let e=i.parentElement,t=()=>{r.getEditorState().read(()=>{k()})};return window.addEventListener(`resize`,t),e&&e.addEventListener(`scroll`,t),()=>{window.removeEventListener(`resize`,t),e&&e.removeEventListener(`scroll`,t)}},[r,k,i]),(0,h.useEffect)(()=>(r.getEditorState().read(()=>{k()}),t.Yn(r.registerUpdateListener(({editorState:e})=>{e.read(()=>{k()})}),r.registerCommand(t.F,()=>(k(),!1),1))),[r,k]),(0,_.jsxs)(`div`,{ref:v,className:`floating-text-format-popup`,children:[e.before.map(e=>(0,_.jsx)(oI,{actionButton:e,editor:r,isEditable:y},e.id)),y&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{type:`button`,onClick:()=>{r.dispatchCommand(t.w,`bold`)},className:`popup-item spaced `+(o?`active`:``),title:`Bold`,"aria-label":`Format text as bold`,children:(0,_.jsx)(`i`,{className:`bi bi-type-bold format`})}),(0,_.jsx)(`button`,{type:`button`,onClick:()=>{r.dispatchCommand(t.w,`italic`)},className:`popup-item spaced `+(s?`active`:``),title:`Italic`,"aria-label":`Format text as italics`,children:(0,_.jsx)(`i`,{className:`bi bi-type-italic format`})}),(0,_.jsx)(`button`,{type:`button`,onClick:()=>{r.dispatchCommand(t.w,`underline`)},className:`popup-item spaced `+(c?`active`:``),title:`Underline`,"aria-label":`Format text to underlined`,children:(0,_.jsx)(`i`,{className:`bi bi-type-underline format`})}),(0,_.jsx)(`button`,{type:`button`,onClick:()=>{r.dispatchCommand(t.w,`strikethrough`)},className:`popup-item spaced `+(g?`active`:``),title:`Strikethrough`,"aria-label":`Format text with a strikethrough`,children:(0,_.jsx)(`i`,{className:`bi bi-type-strikethrough format`})}),(0,_.jsx)(`button`,{type:`button`,onClick:()=>{r.dispatchCommand(t.w,`highlight`)},className:`popup-item spaced `+(u?`active`:``),title:`Highlight`,"aria-label":`Format text with a highlight`,children:(0,_.jsx)(`i`,{className:`bi bi-highlighter format`})}),(0,_.jsx)(KF,{buttonClassName:`popup-item spaced color-picker`,buttonAriaLabel:`Formatting text color`,buttonIconClassName:`bi bi-palette format`,buttonIconStyle:f?{color:f}:void 0,color:d,hideChevron:!0,onChange:C,onClear:w,title:`text color`}),(0,_.jsx)(KF,{buttonClassName:`popup-item spaced color-picker`,buttonAriaLabel:`Formatting background color`,buttonIconClassName:`bi bi-paint-bucket format`,buttonIconStyle:m?{color:m}:void 0,color:p,hideChevron:!0,onChange:T,onClear:E,title:`bg color`}),(0,_.jsx)(`button`,{type:`button`,onClick:x,className:`popup-item spaced`,title:`Link block text`,"aria-label":`Link block text`,children:(0,_.jsx)(`i`,{className:`bi bi-bezier2 format`})})]}),(0,_.jsx)(`button`,{type:`button`,onClick:b,className:`popup-item spaced insert-comment`,title:`Insert comment`,"aria-label":`Insert comment`,children:(0,_.jsx)(`i`,{className:`bi bi-chat-left-text format`})}),e.after.map(e=>(0,_.jsx)(oI,{actionButton:e,editor:r,isEditable:y},e.id))]})}function cI(e,r,i){let[o,s]=(0,h.useState)(!1),[c,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(!1),[f,p]=(0,h.useState)(!1),[m,g]=(0,h.useState)(!1),[y,b]=(0,h.useState)(!1),[x,S]=(0,h.useState)(`#000`),[C,w]=(0,h.useState)(``),[T,E]=(0,h.useState)(`#fff`),[D,O]=(0,h.useState)(``),[k,A]=(0,h.useState)(!1),j=(0,h.useCallback)(()=>{e.getEditorState().read(()=>{if(e.isComposing())return;let r=t.tt(),i=t.M(e._window),o=e.getRootElement();if(i!==null&&(!t.bn(r)||o===null||!o.contains(i.anchorNode))){s(!1);return}if(!t.bn(r))return;let c=RF(r);d(r.hasFormat(`bold`)),p(r.hasFormat(`italic`)),g(r.hasFormat(`underline`)),b(r.hasFormat(`highlight`)),S(n.j(r,`color`,`#000`)),w(n.j(r,`color`,``)),E(n.j(r,`background-color`,`#fff`)),O(n.j(r,`background-color`,``)),A(r.hasFormat(`strikethrough`)),a.X(c.getParent())||a.X(c)?l(!0):l(!1),!qe(r.anchor.getNode())&&r.getTextContent()!==``?s(t.Jt(c)||t.kn(c)):s(!1);let u=r.getTextContent().replace(/\n/g,``);if(!r.isCollapsed()&&u===``){s(!1);return}})},[e]);return(0,h.useEffect)(()=>(document.addEventListener(`selectionchange`,j),()=>{document.removeEventListener(`selectionchange`,j)}),[j]),(0,h.useEffect)(()=>t.Yn(e.registerUpdateListener(()=>{j()}),e.registerRootListener(()=>{e.getRootElement()===null&&s(!1)})),[e,j]),o?(0,v.createPortal)((0,_.jsx)(sI,{actionButtons:i,editor:e,anchorElem:r,isLink:c,isBold:u,isItalic:f,isHighlight:y,fontColor:x,fontColorIcon:C,bgColor:T,bgColorIcon:D,isStrikethrough:k,isUnderline:m}),r):null}function lI({actionButtons:e=Zn,anchorElem:n=document.body}){let[r]=t.oi();return cI(r,n,e)}var uI=[`.PlaygroundEditorTheme__paragraph`,`.PlaygroundEditorTheme__h1`,`.PlaygroundEditorTheme__h2`,`.PlaygroundEditorTheme__h3`,`.PlaygroundEditorTheme__h4`,`.PlaygroundEditorTheme__h5`,`.PlaygroundEditorTheme__h6`,`.PlaygroundEditorTheme__quote`,`.PlaygroundEditorTheme__listItem`,`.PlaygroundEditorTheme__code`,`[role="paragraph"]`].join(`,`),dI=[`.ContentEditable__placeholder`,`.InvisibleCharactersPlugin__overlay`,`script`,`style`].join(`,`),fI=`[contenteditable="false"]`,pI={"line-break":`↵`,paragraph:`¶`,space:`·`,tab:`→`,"zero-width-space":`|`},mI=4;function hI(e){for(let t of Array.from(e.getClientRects()))if(t.width>0||t.height>0)return t;let t=e.getBoundingClientRect();return t.width>0||t.height>0?t:null}function gI(e){return e===` `||e===`\xA0`?`space`:e===` `?`tab`:e===`
1018
- `?`line-break`:e===`​`?`zero-width-space`:null}function _I(e,t,n,r){let i=e===`paragraph`?t.left-n.left+mI:t.left-n.left+t.width/2;return{id:r,label:pI[e],type:e,x:i,y:t.top-n.top+t.height/2}}function vI(e,t,n,r){let i=r===`after-text`?e.right-t.left+mI:e.left-t.left+mI;return{id:n,label:pI.paragraph,type:`paragraph`,x:i,y:e.top-t.top+e.height/2}}function yI(e,t,n){let r=e.ownerDocument,i=e.nodeValue??``;for(let a=0;a<i.length;a++){let o=gI(i[a]);if(o===null)continue;let s=r.createRange();s.setStart(e,a),s.setEnd(e,a+1);let c=hI(s);s.detach(),c!==null&&n.push(_I(o,c,t,`text-${n.length}`))}}function bI(e){return e.getBoundingClientRect()}function xI(e,t){if(e.closest(dI)!==null)return!0;let n=e.closest(fI);return n!==null&&n!==t}function SI(e,t){let n=e.parentElement;return n===null||e.textContent===``||xI(n,t)}function CI(e,t){let n=e.ownerDocument.defaultView;if(n===null)return null;let r=null,i=e.ownerDocument.createTreeWalker(e,n.NodeFilter.SHOW_TEXT,{acceptNode(e){return SI(e,t)?n.NodeFilter.FILTER_REJECT:n.NodeFilter.FILTER_ACCEPT}});for(;i.nextNode();)r=i.currentNode;return r}function wI(e,t){let n=CI(e,t);if(n===null)return null;let r=n.nodeValue??``;if(r.length===0)return null;let i=e.ownerDocument.createRange();i.setStart(n,r.length-1),i.setEnd(n,r.length);let a=hI(i);return i.detach(),a}function TI(e,t,n){let r=Array.from(e.querySelectorAll(uI));for(let i of r){if(xI(i,e))continue;let r=wI(i,e),a=r??bI(i);a.width===0&&a.height===0||n.push(vI(a,t,`paragraph-${n.length}`,r===null?`block-start`:`after-text`))}}function EI(e,t,n){let r=e.ownerDocument,i=Array.from(e.querySelectorAll(`br`));for(let a of i){if(xI(a,e))continue;let i=r.createRange();i.selectNode(a);let o=hI(i)??a.getBoundingClientRect();i.detach(),!(o.width===0&&o.height===0)&&n.push(_I(`line-break`,o,t,`line-break-${n.length}`))}}function DI(e,t){let n=e.ownerDocument.defaultView;if(n===null)return[];let r=[],i=t.getBoundingClientRect(),a=e.ownerDocument.createTreeWalker(e,n.NodeFilter.SHOW_TEXT,{acceptNode(t){return SI(t,e)?n.NodeFilter.FILTER_REJECT:n.NodeFilter.FILTER_ACCEPT}});for(;a.nextNode();)yI(a.currentNode,i,r);return EI(e,i,r),TI(e,i,r),r}function OI(e,t){let n=!1;if(typeof e.requestAnimationFrame==`function`){let r=e.requestAnimationFrame(()=>{n||t()});return()=>{n=!0,e.cancelAnimationFrame(r)}}let r=e.setTimeout(()=>{n||t()},16);return()=>{n=!0,e.clearTimeout(r)}}function kI(e){return e.closest(`.editor-scroller`)??e.parentElement}function AI({anchorElem:e,enabled:n}){let[r]=t.oi(),[i,a]=(0,h.useState)([]),[o,s]=(0,h.useState)(null),c=(0,h.useRef)(null),l=(0,h.useCallback)(()=>{c.current?.(),c.current=null},[]),u=(0,h.useCallback)(()=>{let t=r.getRootElement();if(!n||t===null){a([]),s(null);return}let i=e??t.parentElement??t;s(i),a(DI(t,i))},[e,r,n]),d=(0,h.useCallback)(()=>{let e=r.getRootElement()?.ownerDocument.defaultView;if(e==null){u();return}l(),c.current=OI(e,u)},[l,r,u]);return(0,h.useEffect)(()=>{if(!n){l(),a([]),s(null);return}d();let e=r.registerUpdateListener(d),t=r.getRootElement(),i=t?.ownerDocument.defaultView,o=t?kI(t):null,c=t&&i&&`ResizeObserver`in i?new i.ResizeObserver(d):null;return i?.addEventListener(`resize`,d),o?.addEventListener(`scroll`,d,{passive:!0}),c?.observe(t),()=>{l(),e(),i?.removeEventListener(`resize`,d),o?.removeEventListener(`scroll`,d),c?.disconnect()}},[l,r,n,d]),!n||o===null||i.length===0?null:(0,v.createPortal)((0,_.jsx)(`div`,{className:`InvisibleCharactersPlugin__overlay`,"aria-hidden":`true`,children:i.map(e=>{let t={left:`${e.x}px`,top:`${e.y}px`};return(0,_.jsx)(`span`,{className:`InvisibleCharactersPlugin__marker InvisibleCharactersPlugin__marker--${e.type}`,"data-invisible-character":e.type,style:t,children:e.label},e.id)})}),o)}var jI=20,MI=`bi bi-geo-alt-fill icon`,NI=`all`,PI=`__na__`,FI=`----`,II={concept:`Concepts`,deity:`Deities`,group:`Groups`,life:`Life`,month:`Months`,person:`People`,place:`Places`,supernatural:`Supernatural`,unknown:`Unknown`};function LI(e,t){return{page:e.page,totalPages:e.totalPages,totalRecords:e.totalRecords,records:e.records.map(e=>({id:e.id,name:e.name,kjvName:a.ut(e),title:a.U(e.title),iconClass:t(e.type)}))}}function RI({record:e,onOpen:t}){return(0,_.jsx)(`li`,{className:`LookupPlugin_Panel_List_Item`,children:(0,_.jsxs)(`button`,{className:`LookupPlugin_Panel_List_Item_Button`,type:`button`,title:e.title||(e.kjvName===null?e.name:`${e.name} (${e.kjvName})`),onClick:n=>{t(e,n.currentTarget)},children:[(0,_.jsx)(`i`,{className:e.iconClass,"aria-hidden":`true`}),(0,_.jsxs)(`span`,{className:`LookupPlugin_Panel_List_Item_Text`,children:[(0,_.jsxs)(`span`,{className:`LookupPlugin_Panel_List_Item_Name`,children:[e.name,e.kjvName===null?null:(0,_.jsxs)(`span`,{className:`LookupPlugin_Panel_List_Item_KjvName`,children:[` `,`(`,e.kjvName,`)`]})]}),e.title?(0,_.jsx)(`span`,{className:`LookupPlugin_Panel_List_Item_Title`,children:e.title}):null]})]})})}function zI({active:e,query:t,search:n,onOpen:r,style:i,typeFilter:a}){let[o,s]=(0,h.useState)(1),[c,l]=(0,h.useState)(`1`),u=(0,h.useRef)(!1),d=a??NI,f=(0,h.useMemo)(()=>n(t,o),[n,t,o]),{totalPages:p,totalRecords:m}=f,g=f.page;(0,h.useEffect)(()=>{s(1)},[t,d]),(0,h.useEffect)(()=>{o!==g&&s(g)},[o,g]),(0,h.useEffect)(()=>{l(String(g))},[g]);let v=()=>{let e=Number.parseInt(c,10);if(Number.isNaN(e)){l(String(g));return}s(Math.min(p,Math.max(1,e)))};return e?(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_TabPanel`,children:[m===0?(0,_.jsx)(`div`,{className:`LookupPlugin_Panel_Empty`,children:`No matches`}):(0,_.jsx)(`ul`,{className:`LookupPlugin_Panel_List`,style:i,children:f.records.map(e=>(0,_.jsx)(RI,{record:e,onOpen:r},e.id))}),m>0?(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_Pagination`,children:[(0,_.jsx)(`button`,{className:`LookupPlugin_Panel_Pagination_Button`,type:`button`,disabled:g<=1,onClick:()=>s(e=>Math.max(1,e-1)),children:(0,_.jsx)(`i`,{className:`bi bi-chevron-left`,"aria-hidden":`true`})}),(0,_.jsxs)(`span`,{className:`LookupPlugin_Panel_Pagination_Status`,children:[(0,_.jsx)(`input`,{className:`LookupPlugin_Panel_Pagination_Input`,type:`text`,inputMode:`numeric`,"aria-label":`Jump to page`,title:`Type a page number and press Enter`,value:c,style:{width:`${String(p).length+1.5}ch`},onChange:e=>l(e.target.value.replace(/[^0-9]/g,``)),onFocus:e=>e.target.select(),onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),u.current=!0,v(),e.currentTarget.blur()):e.key===`Escape`&&(u.current=!0,l(String(g)),e.currentTarget.blur())},onBlur:()=>{if(u.current){u.current=!1;return}v()}}),` / `,p,` · `,m]}),(0,_.jsx)(`button`,{className:`LookupPlugin_Panel_Pagination_Button`,type:`button`,disabled:g>=p,onClick:()=>s(e=>Math.min(p,e+1)),children:(0,_.jsx)(`i`,{className:`bi bi-chevron-right`,"aria-hidden":`true`})})]}):null]}):null}function BI({showLookup:e,setShowLookup:t,zIndex:n}){let r=a.ot(),i=a.it(),[o,s]=(0,h.useState)(`name`),[c,l]=(0,h.useState)(``),[u,d]=(0,h.useState)(NI),[f,p]=(0,h.useState)(``),m=o===`name`,g=m?c:f,y=m?l:p,b=m?`Search names…`:`Search locations…`,x=m?r.style:i.style,S=(0,h.useMemo)(()=>{let e=r.nameTypes;return[{value:NI,label:`All types`,count:r.getRecordCount()},...e.map(({type:e,count:t})=>({value:e,label:II[e],count:t}))]},[r]),C=(0,h.useCallback)((e,t)=>LI(r.searchNamesPagination({query:e,page:t,pageSize:jI,type:u===NI?void 0:u}),a.a),[r,u]),w=(0,h.useCallback)((e,t)=>LI(i.searchLocationsPagination({query:e,page:t,pageSize:jI}),()=>MI),[i]),T=(e,t)=>{let n={anchorElement:t,id:e.id,name:e.name};o===`name`?a.W(n):a.G(n)};return e?(0,v.createPortal)((0,_.jsxs)(`div`,{className:`LookupPlugin_Panel`,style:n===void 0?void 0:{zIndex:n},children:[(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_Header`,children:[(0,_.jsx)(`h2`,{className:`LookupPlugin_Panel_Heading`,children:`Lookup (name or location)`}),(0,_.jsx)(`button`,{className:`LookupPlugin_Panel_Close`,type:`button`,title:`Close lookup`,"aria-label":`Close lookup`,onClick:()=>t(!1),children:(0,_.jsx)(`i`,{className:`bi bi-x-lg`,"aria-hidden":`true`})})]}),(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_Search`,children:[(0,_.jsx)(`i`,{className:`bi bi-search`,"aria-hidden":`true`}),(0,_.jsx)(`input`,{className:`LookupPlugin_Panel_Search_Input`,type:`text`,style:x,value:g,placeholder:b,onChange:e=>y(e.target.value)}),g===``?null:(0,_.jsx)(`button`,{className:`LookupPlugin_Panel_Search_Clear`,type:`button`,title:`Clear search`,"aria-label":`Clear search`,onClick:()=>y(``),children:(0,_.jsx)(`i`,{className:`bi bi-x-lg`,"aria-hidden":`true`})})]}),(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_Controls`,children:[(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_Tabs`,role:`tablist`,children:[(0,_.jsxs)(`button`,{className:`LookupPlugin_Panel_Tab ${m?`active`:``}`,type:`button`,role:`tab`,"aria-selected":m,onClick:()=>s(`name`),children:[(0,_.jsx)(`i`,{className:`bi bi-person-fill`,"aria-hidden":`true`}),` Names`]}),(0,_.jsxs)(`button`,{className:`LookupPlugin_Panel_Tab ${m?``:`active`}`,type:`button`,role:`tab`,"aria-selected":!m,onClick:()=>s(`location`),children:[(0,_.jsx)(`i`,{className:`bi bi-geo-alt-fill`,"aria-hidden":`true`}),` Locations`]})]}),(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_Filter`,children:[(0,_.jsx)(`i`,{className:`bi bi-funnel-fill`,"aria-hidden":`true`}),(0,_.jsx)(`select`,{className:`LookupPlugin_Panel_Filter_Select`,"aria-label":`Filter by name type`,title:m?`Filter by name type`:`Type filter applies to names only`,value:m?u:PI,disabled:!m,onChange:e=>d(e.target.value),children:m?S.map(e=>(0,_.jsx)(`option`,{value:e.value,children:e.label},e.value)):(0,_.jsx)(`option`,{value:PI,children:FI})}),(0,_.jsx)(`i`,{className:`bi bi-chevron-down LookupPlugin_Panel_Filter_Caret`,"aria-hidden":`true`})]})]}),(0,_.jsx)(zI,{active:m,query:c,search:C,onOpen:T,style:r.style,typeFilter:u}),(0,_.jsx)(zI,{active:!m,query:f,search:w,onOpen:T,style:i.style})]}),document.body):null}var VI=[{dependencies:[r.W],export:e=>r.G(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,i)=>{let a=r.J();i||e.getNextSibling()!=null?e.replace(a):e.insertBefore(a),a.selectNext()},triggerOnEnter:!0,type:`element`},...ao];function HI({transformers:e=VI}){let[n]=t.oi();return(0,h.useEffect)(()=>Ao(n,e),[n,e]),null}function UI(){return(0,_.jsx)(HI,{transformers:Yy})}function WI({maxLength:e}){let[r]=t.oi();return(0,h.useEffect)(()=>{let i=null;return r.registerNodeTransform(t.q,a=>{let o=t.tt();if(!t.bn(o)||!o.isCollapsed())return;let s=r.getEditorState(),c=s.read(()=>a.getTextContentSize()),l=a.getTextContentSize();if(c!==l){let t=l-e,a=o.anchor;t>0&&(c===e&&i!==s?(i=s,n.r(r,s)):n.E(r,a,t))}})},[r,e]),null}var GI=2e3,KI=150,qI=`bi bi-journal-medical icon`,JI=/\(([0-9០-៩]+)\):\s*/gu,YI=24;function XI(e,t){let n=new Set,r=[];for(let i of t)for(let t of e(i))n.has(t.id)||(n.add(t.id),r.push({id:t.id,name:t.name}));return r}function ZI(e){if(!(e instanceof Element))return null;let t=e.closest(`[data-lexical-mention]`);return t instanceof HTMLElement?t:null}function QI(e){if(!(e instanceof Element))return null;let t=e.closest(`[data-mention-bible-verse-hover-card]`);return t instanceof HTMLElement?t:null}function $I(e){if(e.getAttribute(`data-lexical-mention-kind`)!==`bible-verse`)return null;let t=(e.textContent??``).replace(/^:\s*/,``).trim(),n=e.getAttribute(`data-lexical-mention-name`)?.trim()??t,r=e.getAttribute(`data-lexical-mention-data`)?.trim()??``;return n===``&&r===``?null:{body:r,fontFamily:getComputedStyle(e).fontFamily||null,id:e.getAttribute(`data-lexical-mention-id`),name:n||`Bible verse`}}function eL(e,t){let n=e===null||e===``?void 0:{fontFamily:e};if(!(n===void 0&&t===void 0))return{...n,...t}}function tL(e){return a.B(e,140)}function nL(e){let t=oL(e.name);return`bible-verse:${t===null?``:t.keyLabel.trim()}:${e.id??`${e.name}\n${e.body}`}`}function rL(e){let t=[],n=0,r;for(JI.lastIndex=0;(r=JI.exec(e))!==null;)r.index>n&&t.push(e.slice(n,r.index)),t.push((0,_.jsx)(`span`,{className:`bible-verse-number`,children:r[1]},`verse-${r.index}`)),n=JI.lastIndex;return n<e.length&&t.push(e.slice(n)),(0,_.jsx)(_.Fragment,{children:t.length>0?t:e})}function iL(e){return e.body===``?e.name:`${e.name}\n${e.body}`}function aL(e,t){let n=t.fullText.trim(),r=n.indexOf(`
1017
+ `)&&n.length<=jF&&a(n),C.current){y.current?.focus(),y.current?.select();return}S.current=!0,r(!0)},[e]),k=(0,h.useCallback)(()=>{let t=x.current[w.current];r(!1),t!==void 0&&e.update(()=>{EF(t.slices)}),e.focus()},[e]),A=(0,h.useCallback)(e=>{if(e===null){C.current&&k();return}a(e),C.current||(S.current=!0,r(!0))},[k]);if((0,h.useEffect)(()=>{n&&E({scroll:!0,startFromCaret:!0})},[n,E]),(0,h.useEffect)(()=>{if(n)return e.registerUpdateListener(({dirtyElements:e,dirtyLeaves:t})=>{e.size===0&&t.size===0||E({scroll:!1,startFromCaret:!1})})},[e,n,E]),(0,h.useEffect)(()=>{n||(x.current=[],FF())},[n]),(0,h.useEffect)(()=>FF,[]),(0,h.useEffect)(()=>{if(!n){g(null);return}let t=e.getRootElement(),r=t?.closest(`.editor-shell`),i=t?.closest(`.editor-container`);if(!(r instanceof HTMLElement)||!(i instanceof HTMLElement)){g(null);return}let a=()=>{let e=i.getBoundingClientRect().top-r.getBoundingClientRect().top;g(t=>t!==null&&t.element===r&&t.top===e?t:{element:r,top:e})};a(),window.addEventListener(`resize`,a);let o=typeof ResizeObserver>`u`?null:new ResizeObserver(a);return o?.observe(r),()=>{window.removeEventListener(`resize`,a),o?.disconnect()}},[e,n]),(0,h.useEffect)(()=>{!n||m===null||!S.current||(S.current=!1,y.current?.focus(),y.current?.select())},[m,n]),(0,h.useEffect)(()=>{let t=b.current,r=e.getRootElement()?.closest(`.editor-container`);if(!n||m===null||t===null||!(r instanceof HTMLElement))return;let i=()=>{r.style.setProperty(`--find-bar-reserve`,`${t.offsetHeight+MF*2}px`),r.classList.add(`find-bar-open`)};i();let a=typeof ResizeObserver>`u`?null:new ResizeObserver(i);return a?.observe(t),()=>{a?.disconnect(),r.classList.remove(`find-bar-open`),r.style.removeProperty(`--find-bar-reserve`)}},[m,e,n]),(0,h.useEffect)(()=>{let e=e=>{if(_e(e)){e.preventDefault(),O();return}C.current&&(ye(e)?(e.preventDefault(),D(-1)):ve(e)&&(e.preventDefault(),D(1)))};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[D,O]),(0,h.useEffect)(()=>e.registerCommand(DF,()=>(O(),!0),2),[e,O]),(0,h.useEffect)(()=>e.registerCommand(OF,e=>(A(e),!0),2),[e,A]),!n||m===null)return null;let j=i!==``,M=u>0;return(0,v.createPortal)((0,_.jsxs)(`div`,{className:`FindPlugin_Bar`,ref:b,role:`search`,style:{top:m.top},"aria-label":`Find in note`,children:[(0,_.jsx)(`i`,{className:`bi bi-search FindPlugin_Icon`,"aria-hidden":`true`}),(0,_.jsx)(`input`,{"aria-label":`Find in note`,className:`FindPlugin_Input`,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),D(e.shiftKey?-1:1)):e.key===`Escape`&&(e.preventDefault(),k())},placeholder:`Find in note`,ref:y,spellCheck:!1,type:`text`,value:i}),(0,_.jsx)(`span`,{"aria-live":`polite`,className:`FindPlugin_Count${j&&!M?` FindPlugin_Count__empty`:``}`,children:j?`${M?f+1:0}/${u}`:``}),(0,_.jsx)(`button`,{"aria-label":`Match case`,"aria-pressed":o,className:`FindPlugin_Toggle${o?` active`:``}`,onClick:()=>s(e=>!e),title:`Match case`,type:`button`,children:`Aa`}),(0,_.jsx)(`button`,{"aria-label":`Match whole word`,"aria-pressed":c,className:`FindPlugin_Toggle${c?` active`:``}`,onClick:()=>l(e=>!e),title:`Match whole word`,type:`button`,children:`ab`}),(0,_.jsx)(`button`,{"aria-label":`Previous match`,className:`FindPlugin_Button`,disabled:!M,onClick:()=>D(-1),title:`Previous match (Shift+Enter)`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-chevron-up`,"aria-hidden":`true`})}),(0,_.jsx)(`button`,{"aria-label":`Next match`,className:`FindPlugin_Button`,disabled:!M,onClick:()=>D(1),title:`Next match (Enter)`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-chevron-down`,"aria-hidden":`true`})}),(0,_.jsx)(`button`,{"aria-label":`Close find bar`,className:`FindPlugin_Button`,onClick:k,title:`Close (Esc)`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-x-lg`,"aria-hidden":`true`})})]}),m.element)}function RF(e){let t=e.anchor,r=e.focus,i=e.anchor.getNode(),a=e.focus.getNode();return i===a?i:e.isBackward()?n.D(r)?i:a:n.D(t)?i:a}var zF=10,BF=5;function VF(e,t,n,i=zF,a=BF){let o=n.parentElement;if(e===null||!o){t.style.opacity=`0`,t.style.transform=`translate(-10000px, -10000px)`;return}let s=t.getBoundingClientRect(),c=n.getBoundingClientRect(),l=o.getBoundingClientRect(),u=e.top-i,d=e.left-a;u<l.top&&(u+=s.height+e.height+i*2),d+s.width>l.right&&(d=l.right-s.width-a),u-=c.top,d-=c.left;let f=r.n(n);t.style.opacity=`1`,t.style.transform=`translate(${d/f}px, ${u/f}px)`}function HF(e){e.preventDefault()}function UF({editor:e,isLink:n,setIsLink:r,anchorElem:i,isLinkEditMode:o,setIsLinkEditMode:s}){let c=(0,h.useRef)(null),l=(0,h.useRef)(null),[u,d]=(0,h.useState)(``),[f,p]=(0,h.useState)(`https://`),[m,g]=(0,h.useState)(null),v=(0,h.useCallback)(()=>{let n=t.tt();if(t.bn(n)){let e=RF(n),r=t.B(e,a.X);r?d(r.getURL()):a.X(e)?d(e.getURL()):d(``),o&&p(u)}else if(t.Fr(n)){let e=n.getNodes();if(e.length>0){let t=e[0],n=t.getParent();a.X(n)?d(n.getURL()):a.X(t)?d(t.getURL()):d(``),o&&p(u)}}let r=c.current,l=t.M(e._window),f=document.activeElement;if(r===null)return;let m=e.getRootElement();if(n!==null&&m!==null&&e.isEditable()){let a;if(t.Fr(n)){let t=n.getNodes();if(t.length>0){let n=e.getElementByKey(t[0].getKey());n&&(a=n.getBoundingClientRect())}}else l!==null&&m.contains(l.anchorNode)&&(a=l.focusNode?.parentElement?.getBoundingClientRect());a&&(a.y+=40,VF(a,r,i)),g(n)}else(!f||f.className!==`link-input`)&&(m!==null&&VF(null,r,i),g(null),s(!1),d(``));return!0},[i,e,s,o,u]);(0,h.useEffect)(()=>{let t=i.parentElement,n=()=>{e.getEditorState().read(()=>{v()})};return window.addEventListener(`resize`,n),t&&t.addEventListener(`scroll`,n),()=>{window.removeEventListener(`resize`,n),t&&t.removeEventListener(`scroll`,n)}},[i.parentElement,e,v]),(0,h.useEffect)(()=>t.Yn(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{v()})}),e.registerCommand(t.F,()=>(v(),!0),1),e.registerCommand(t.jn,()=>n?(r(!1),!0):!1,3)),[e,v,r,n]),(0,h.useEffect)(()=>{e.getEditorState().read(()=>{v()})},[e,v]),(0,h.useEffect)(()=>{o&&l.current&&l.current.focus()},[o,n]),(0,h.useEffect)(()=>{let e=c.current;if(e===null)return;let t=t=>{!e.contains(t.relatedTarget)&&n&&(r(!1),s(!1))};return e.addEventListener(`focusout`,t),()=>{e.removeEventListener(`focusout`,t)}},[c,r,s,n]);let y=e=>{e.key===`Enter`?b(e):e.key===`Escape`&&(e.preventDefault(),s(!1))},b=n=>{n.preventDefault(),m!==null&&(u!==``&&e.update(()=>{e.dispatchCommand(a.nt,a.C(f));let n=t.tt();if(t.bn(n)){let e=RF(n).getParent();if(a.et(e)){let t=a.Y(e.getURL(),{rel:e.__rel,target:e.__target,title:e.__title});e.replace(t,!0)}}}),p(`https://`),s(!1))};return(0,_.jsx)(`div`,{ref:c,className:`link-editor`,children:n?o?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`input`,{ref:l,className:`link-input`,value:f,onChange:e=>{p(e.target.value)},onKeyDown:e=>{y(e)}}),(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`div`,{className:`link-cancel button`,role:`button`,tabIndex:0,onMouseDown:HF,onClick:()=>{s(!1)},children:(0,_.jsx)(`i`,{className:`bi bi-x-lg`})}),(0,_.jsx)(`div`,{className:`link-confirm button`,role:`button`,tabIndex:0,onMouseDown:HF,onClick:b,children:(0,_.jsx)(`i`,{className:`bi bi-check2`})})]})]}):(0,_.jsxs)(`div`,{className:`link-view`,children:[(0,_.jsx)(`a`,{href:a.C(u),target:`_blank`,rel:`noopener noreferrer`,children:u}),(0,_.jsx)(`div`,{className:`link-edit button`,role:`button`,tabIndex:0,onMouseDown:HF,onClick:e=>{e.preventDefault(),p(u),s(!0)},children:(0,_.jsx)(`i`,{className:`bi bi-pencil-fill`})}),(0,_.jsx)(`div`,{className:`link-trash button`,role:`button`,tabIndex:0,onMouseDown:HF,onClick:()=>{e.dispatchCommand(a.nt,null)},children:(0,_.jsx)(`i`,{className:`bi bi-trash3`})})]}):null})}function WF(e,n,r,i){let[o,s]=(0,h.useState)(e),[c,l]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{function n(){let e=t.tt();if(t.bn(e)){let n=RF(e),r=t.B(n,a.X),i=t.B(n,a.et);if(!(r||i)){l(!1);return}e.getNodes().filter(e=>!t._r(e)).find(e=>{let n=t.B(e,a.X),o=t.B(e,a.et);return r&&!r.is(n)||n&&!n.is(r)||i&&!i.is(o)||o&&(!o.is(i)||o.getIsUnlinked())})?l(!1):l(!0)}else if(t.Fr(e)){let t=e.getNodes();if(t.length===0){l(!1);return}let n=t[0];a.X(n.getParent())||a.X(n)?l(!0):l(!1)}}return t.Yn(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{n()})}),e.registerCommand(t.F,(e,t)=>(n(),s(t),!1),4),e.registerCommand(t.K,e=>{let n=t.tt();if(t.bn(n)){let r=t.B(RF(n),a.X);if(a.X(r)&&(e.metaKey||e.ctrlKey))return window.open(r.getURL(),`_blank`),!0}return!1},1))},[e]),(0,v.createPortal)((0,_.jsx)(UF,{editor:o,isLink:c,anchorElem:n,setIsLink:l,isLinkEditMode:r,setIsLinkEditMode:i}),n)}function GF({anchorElem:e=document.body,isLinkEditMode:n,setIsLinkEditMode:r}){let[i]=t.oi();return WF(i,e,n,r)}function KF({disabled:e=!1,stopCloseOnClickSelf:t=!0,color:n,onChange:r,onClear:i,...a}){return(0,_.jsx)(ZN,{...a,disabled:e,stopCloseOnClickSelf:t,children:(0,_.jsx)(Nn,{color:n,onChange:r,onClear:i})})}function qF(e,t){let n=e.getRangeAt(0),r;if(e.anchorNode===t){let e=t;for(;e.firstElementChild!=null;)e=e.firstElementChild;r=e.getBoundingClientRect()}else r=n.getBoundingClientRect();return r}var JF=10,YF=5;function XF(e,t,n,i=!1,a=JF,o=YF){let s=n.parentElement;if(e===null||!s){t.style.opacity=`0`,t.style.transform=`translate(-10000px, -10000px)`;return}let c=t.getBoundingClientRect(),l=n.getBoundingClientRect(),u=s.getBoundingClientRect(),d=e.top-c.height-a,f=e.left-o,p=window.getSelection();if(p&&p.rangeCount>0){let t=p.getRangeAt(0).startContainer;if(t.nodeType===Node.ELEMENT_NODE||t.parentElement){let n=t.nodeType===Node.ELEMENT_NODE?t:t.parentElement,r=window.getComputedStyle(n).textAlign;(r===`right`||r===`end`)&&(f=e.right-c.width+o)}}d<u.top&&(d+=c.height+e.height+a*(i?9:2)),f+c.width>u.right&&(f=u.right-c.width-o),f<u.left&&(f=u.left+o),d-=l.top,f-=l.left;let m=r.n(n);t.style.opacity=`1`,t.style.transform=`translate(${f/m}px, ${d/m}px)`}function ZF(e){let t={clipboardData:QF(e),preventDefault(){},target:null,type:`paste`};return typeof ClipboardEvent==`function`&&Object.setPrototypeOf(t,ClipboardEvent.prototype),t}function QF(e){if(typeof DataTransfer==`function`){let t=new DataTransfer;return t.setData(`text/plain`,e),t}return{files:[],getData:t=>t===`text/plain`?e:``,types:[`text/plain`]}}function $F(e){return{key:e.key,offset:e.offset,type:e.type}}function eI(e){let n=e.getRootElement(),r=t.M(e._window);return n===null||r===null||r.rangeCount===0||!n.contains(r.anchorNode)?null:r.getRangeAt(0).cloneRange()}function tI(e){return e.read(()=>{let n=t.tt();if(!t.bn(n)||n.isCollapsed())return null;let i=n.getTextContent();if(i===``)return null;let a=n.isBackward(),[o,s]=a?[n.focus,n.anchor]:[n.anchor,n.focus];return{domRange:eI(e),end:$F(s),html:r._(e,n),isBackward:a,start:$F(o),text:i}})}function nI(e){let n=t.Ht(e.key);return e.type===`text`?t.Jt(n)&&e.offset<=n.getTextContentSize():t.vt(n)&&e.offset<=n.getChildrenSize()}function rI(e){if(!nI(e.start)||!nI(e.end))return null;let[n,r]=e.isBackward?[e.end,e.start]:[e.start,e.end],i=t.h();return i.anchor.set(n.key,n.offset,n.type),i.focus.set(r.key,r.offset,r.type),i}function iI(e,n,r){if(!e.isEditable())return!1;let i={isReplaceable:!1};return e.update(()=>{let e=rI(n);e===null||e.getTextContent()!==n.text||(t.En(e),i.isReplaceable=!0,r.length===0&&e.removeText())},{discrete:!0}),i.isReplaceable?(r.length>0&&e.dispatchCommand(t.Wn,ZF(r)),!0):!1}function aI(e,t,n){let r=tI(e);return r===null?null:{id:t,mouseEvent:n,replaceText:t=>iI(e,r,t),selection:r}}function oI({actionButton:e,editor:t,isEditable:n}){return e.isHiddenWhenReadOnly===!0&&!n?null:(0,_.jsx)(`button`,{type:`button`,onClick:n=>{let r=aI(t,e.id,n);r!==null&&e.onClick(r)},className:`popup-item spaced floating-action-button`,"data-floating-action-button-id":e.id,title:e.description,"aria-label":e.description,children:e.children})}function sI({actionButtons:e,editor:r,anchorElem:i,isLink:a,isBold:o,isItalic:s,isUnderline:c,isHighlight:u,fontColor:d,fontColorIcon:f,bgColor:p,bgColorIcon:m,isStrikethrough:g}){let v=(0,h.useRef)(null),y=l.t(),b=()=>{r.dispatchCommand(NM,void 0)},x=()=>{r.isEditable()&&r.dispatchCommand(Vx,void 0)},S=(0,h.useCallback)((e,i,a=!1)=>{r.update(()=>{a&&t.pt(t.gn);let r=t.tt();r!==null&&n.j(r,e)},i?{tag:t.$r}:{})},[r]),C=(0,h.useCallback)((e,t,n)=>{S({color:e},t,n)},[S]),w=(0,h.useCallback)((e,t)=>{S({color:null},e,t)},[S]),T=(0,h.useCallback)((e,t,n)=>{S({"background-color":e},t,n)},[S]),E=(0,h.useCallback)((e,t)=>{S({"background-color":null},e,t)},[S]);function D(e){if(v?.current&&(e.buttons===1||e.buttons===3)&&v.current.style.pointerEvents!==`none`){let t=e.clientX,n=e.clientY,r=document.elementFromPoint(t,n);v.current.contains(r)||(v.current.style.pointerEvents=`none`)}}function O(e){v?.current&&v.current.style.pointerEvents!==`auto`&&(v.current.style.pointerEvents=`auto`)}(0,h.useEffect)(()=>{if(v?.current)return document.addEventListener(`mousemove`,D),document.addEventListener(`mouseup`,O),()=>{document.removeEventListener(`mousemove`,D),document.removeEventListener(`mouseup`,O)}},[v]);let k=(0,h.useCallback)(()=>{let e=t.tt(),n=v.current,o=t.M(r._window);if(n===null)return;let s=r.getRootElement();e!==null&&o!==null&&!o.isCollapsed&&s!==null&&s.contains(o.anchorNode)&&XF(qF(o,s),n,i,a)},[r,i,a]);return(0,h.useEffect)(()=>{let e=i.parentElement,t=()=>{r.getEditorState().read(()=>{k()})};return window.addEventListener(`resize`,t),e&&e.addEventListener(`scroll`,t),()=>{window.removeEventListener(`resize`,t),e&&e.removeEventListener(`scroll`,t)}},[r,k,i]),(0,h.useEffect)(()=>(r.getEditorState().read(()=>{k()}),t.Yn(r.registerUpdateListener(({editorState:e})=>{e.read(()=>{k()})}),r.registerCommand(t.F,()=>(k(),!1),1))),[r,k]),(0,_.jsxs)(`div`,{ref:v,className:`floating-text-format-popup`,children:[e.before.map(e=>(0,_.jsx)(oI,{actionButton:e,editor:r,isEditable:y},e.id)),y&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{type:`button`,onClick:()=>{r.dispatchCommand(t.w,`bold`)},className:`popup-item spaced `+(o?`active`:``),title:`Bold`,"aria-label":`Format text as bold`,children:(0,_.jsx)(`i`,{className:`bi bi-type-bold format`})}),(0,_.jsx)(`button`,{type:`button`,onClick:()=>{r.dispatchCommand(t.w,`italic`)},className:`popup-item spaced `+(s?`active`:``),title:`Italic`,"aria-label":`Format text as italics`,children:(0,_.jsx)(`i`,{className:`bi bi-type-italic format`})}),(0,_.jsx)(`button`,{type:`button`,onClick:()=>{r.dispatchCommand(t.w,`underline`)},className:`popup-item spaced `+(c?`active`:``),title:`Underline`,"aria-label":`Format text to underlined`,children:(0,_.jsx)(`i`,{className:`bi bi-type-underline format`})}),(0,_.jsx)(`button`,{type:`button`,onClick:()=>{r.dispatchCommand(t.w,`strikethrough`)},className:`popup-item spaced `+(g?`active`:``),title:`Strikethrough`,"aria-label":`Format text with a strikethrough`,children:(0,_.jsx)(`i`,{className:`bi bi-type-strikethrough format`})}),(0,_.jsx)(`button`,{type:`button`,onClick:()=>{r.dispatchCommand(t.w,`highlight`)},className:`popup-item spaced `+(u?`active`:``),title:`Highlight`,"aria-label":`Format text with a highlight`,children:(0,_.jsx)(`i`,{className:`bi bi-highlighter format`})}),(0,_.jsx)(KF,{buttonClassName:`popup-item spaced color-picker`,buttonAriaLabel:`Formatting text color`,buttonIconClassName:`bi bi-palette format`,buttonIconStyle:f?{color:f}:void 0,color:d,hideChevron:!0,onChange:C,onClear:w,title:`text color`}),(0,_.jsx)(KF,{buttonClassName:`popup-item spaced color-picker`,buttonAriaLabel:`Formatting background color`,buttonIconClassName:`bi bi-paint-bucket format`,buttonIconStyle:m?{color:m}:void 0,color:p,hideChevron:!0,onChange:T,onClear:E,title:`bg color`}),(0,_.jsx)(`button`,{type:`button`,onClick:x,className:`popup-item spaced`,title:`Link block text`,"aria-label":`Link block text`,children:(0,_.jsx)(`i`,{className:`bi bi-bezier2 format`})})]}),(0,_.jsx)(`button`,{type:`button`,onClick:b,className:`popup-item spaced insert-comment`,title:`Insert comment`,"aria-label":`Insert comment`,children:(0,_.jsx)(`i`,{className:`bi bi-chat-left-text format`})}),e.after.map(e=>(0,_.jsx)(oI,{actionButton:e,editor:r,isEditable:y},e.id))]})}function cI(e,r,i){let[o,s]=(0,h.useState)(!1),[c,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(!1),[f,p]=(0,h.useState)(!1),[m,g]=(0,h.useState)(!1),[y,b]=(0,h.useState)(!1),[x,S]=(0,h.useState)(`#000`),[C,w]=(0,h.useState)(``),[T,E]=(0,h.useState)(`#fff`),[D,O]=(0,h.useState)(``),[k,A]=(0,h.useState)(!1),j=(0,h.useCallback)(()=>{e.getEditorState().read(()=>{if(e.isComposing())return;let r=t.tt(),i=t.M(e._window),o=e.getRootElement();if(i!==null&&(!t.bn(r)||o===null||!o.contains(i.anchorNode))){s(!1);return}if(!t.bn(r))return;let c=RF(r);d(r.hasFormat(`bold`)),p(r.hasFormat(`italic`)),g(r.hasFormat(`underline`)),b(r.hasFormat(`highlight`)),S(n.A(r,`color`,`#000`)),w(n.A(r,`color`,``)),E(n.A(r,`background-color`,`#fff`)),O(n.A(r,`background-color`,``)),A(r.hasFormat(`strikethrough`)),a.X(c.getParent())||a.X(c)?l(!0):l(!1),!qe(r.anchor.getNode())&&r.getTextContent()!==``?s(t.Jt(c)||t.kn(c)):s(!1);let u=r.getTextContent().replace(/\n/g,``);if(!r.isCollapsed()&&u===``){s(!1);return}})},[e]);return(0,h.useEffect)(()=>(document.addEventListener(`selectionchange`,j),()=>{document.removeEventListener(`selectionchange`,j)}),[j]),(0,h.useEffect)(()=>t.Yn(e.registerUpdateListener(()=>{j()}),e.registerRootListener(()=>{e.getRootElement()===null&&s(!1)})),[e,j]),o?(0,v.createPortal)((0,_.jsx)(sI,{actionButtons:i,editor:e,anchorElem:r,isLink:c,isBold:u,isItalic:f,isHighlight:y,fontColor:x,fontColorIcon:C,bgColor:T,bgColorIcon:D,isStrikethrough:k,isUnderline:m}),r):null}function lI({actionButtons:e=Zn,anchorElem:n=document.body}){let[r]=t.oi();return cI(r,n,e)}var uI=[`.PlaygroundEditorTheme__paragraph`,`.PlaygroundEditorTheme__h1`,`.PlaygroundEditorTheme__h2`,`.PlaygroundEditorTheme__h3`,`.PlaygroundEditorTheme__h4`,`.PlaygroundEditorTheme__h5`,`.PlaygroundEditorTheme__h6`,`.PlaygroundEditorTheme__quote`,`.PlaygroundEditorTheme__listItem`,`.PlaygroundEditorTheme__code`,`[role="paragraph"]`].join(`,`),dI=[`.ContentEditable__placeholder`,`.InvisibleCharactersPlugin__overlay`,`script`,`style`].join(`,`),fI=`[contenteditable="false"]`,pI={"line-break":`↵`,paragraph:`¶`,space:`·`,tab:`→`,"zero-width-space":`|`},mI=4;function hI(e){for(let t of Array.from(e.getClientRects()))if(t.width>0||t.height>0)return t;let t=e.getBoundingClientRect();return t.width>0||t.height>0?t:null}function gI(e){return e===` `||e===`\xA0`?`space`:e===` `?`tab`:e===`
1018
+ `?`line-break`:e===`​`?`zero-width-space`:null}function _I(e,t,n,r){let i=e===`paragraph`?t.left-n.left+mI:t.left-n.left+t.width/2;return{id:r,label:pI[e],type:e,x:i,y:t.top-n.top+t.height/2}}function vI(e,t,n,r){let i=r===`after-text`?e.right-t.left+mI:e.left-t.left+mI;return{id:n,label:pI.paragraph,type:`paragraph`,x:i,y:e.top-t.top+e.height/2}}function yI(e,t,n){let r=e.ownerDocument,i=e.nodeValue??``;for(let a=0;a<i.length;a++){let o=gI(i[a]);if(o===null)continue;let s=r.createRange();s.setStart(e,a),s.setEnd(e,a+1);let c=hI(s);s.detach(),c!==null&&n.push(_I(o,c,t,`text-${n.length}`))}}function bI(e){return e.getBoundingClientRect()}function xI(e,t){if(e.closest(dI)!==null)return!0;let n=e.closest(fI);return n!==null&&n!==t}function SI(e,t){let n=e.parentElement;return n===null||e.textContent===``||xI(n,t)}function CI(e,t){let n=e.ownerDocument.defaultView;if(n===null)return null;let r=null,i=e.ownerDocument.createTreeWalker(e,n.NodeFilter.SHOW_TEXT,{acceptNode(e){return SI(e,t)?n.NodeFilter.FILTER_REJECT:n.NodeFilter.FILTER_ACCEPT}});for(;i.nextNode();)r=i.currentNode;return r}function wI(e,t){let n=CI(e,t);if(n===null)return null;let r=n.nodeValue??``;if(r.length===0)return null;let i=e.ownerDocument.createRange();i.setStart(n,r.length-1),i.setEnd(n,r.length);let a=hI(i);return i.detach(),a}function TI(e,t,n){let r=Array.from(e.querySelectorAll(uI));for(let i of r){if(xI(i,e))continue;let r=wI(i,e),a=r??bI(i);a.width===0&&a.height===0||n.push(vI(a,t,`paragraph-${n.length}`,r===null?`block-start`:`after-text`))}}function EI(e,t,n){let r=e.ownerDocument,i=Array.from(e.querySelectorAll(`br`));for(let a of i){if(xI(a,e))continue;let i=r.createRange();i.selectNode(a);let o=hI(i)??a.getBoundingClientRect();i.detach(),!(o.width===0&&o.height===0)&&n.push(_I(`line-break`,o,t,`line-break-${n.length}`))}}function DI(e,t){let n=e.ownerDocument.defaultView;if(n===null)return[];let r=[],i=t.getBoundingClientRect(),a=e.ownerDocument.createTreeWalker(e,n.NodeFilter.SHOW_TEXT,{acceptNode(t){return SI(t,e)?n.NodeFilter.FILTER_REJECT:n.NodeFilter.FILTER_ACCEPT}});for(;a.nextNode();)yI(a.currentNode,i,r);return EI(e,i,r),TI(e,i,r),r}function OI(e,t){let n=!1;if(typeof e.requestAnimationFrame==`function`){let r=e.requestAnimationFrame(()=>{n||t()});return()=>{n=!0,e.cancelAnimationFrame(r)}}let r=e.setTimeout(()=>{n||t()},16);return()=>{n=!0,e.clearTimeout(r)}}function kI(e){return e.closest(`.editor-scroller`)??e.parentElement}function AI({anchorElem:e,enabled:n}){let[r]=t.oi(),[i,a]=(0,h.useState)([]),[o,s]=(0,h.useState)(null),c=(0,h.useRef)(null),l=(0,h.useCallback)(()=>{c.current?.(),c.current=null},[]),u=(0,h.useCallback)(()=>{let t=r.getRootElement();if(!n||t===null){a([]),s(null);return}let i=e??t.parentElement??t;s(i),a(DI(t,i))},[e,r,n]),d=(0,h.useCallback)(()=>{let e=r.getRootElement()?.ownerDocument.defaultView;if(e==null){u();return}l(),c.current=OI(e,u)},[l,r,u]);return(0,h.useEffect)(()=>{if(!n){l(),a([]),s(null);return}d();let e=r.registerUpdateListener(d),t=r.getRootElement(),i=t?.ownerDocument.defaultView,o=t?kI(t):null,c=t&&i&&`ResizeObserver`in i?new i.ResizeObserver(d):null;return i?.addEventListener(`resize`,d),o?.addEventListener(`scroll`,d,{passive:!0}),c?.observe(t),()=>{l(),e(),i?.removeEventListener(`resize`,d),o?.removeEventListener(`scroll`,d),c?.disconnect()}},[l,r,n,d]),!n||o===null||i.length===0?null:(0,v.createPortal)((0,_.jsx)(`div`,{className:`InvisibleCharactersPlugin__overlay`,"aria-hidden":`true`,children:i.map(e=>{let t={left:`${e.x}px`,top:`${e.y}px`};return(0,_.jsx)(`span`,{className:`InvisibleCharactersPlugin__marker InvisibleCharactersPlugin__marker--${e.type}`,"data-invisible-character":e.type,style:t,children:e.label},e.id)})}),o)}var jI=20,MI=`bi bi-geo-alt-fill icon`,NI=`all`,PI=`__na__`,FI=`----`,II={concept:`Concepts`,deity:`Deities`,group:`Groups`,life:`Life`,month:`Months`,person:`People`,place:`Places`,supernatural:`Supernatural`,unknown:`Unknown`};function LI(e,t){return{page:e.page,totalPages:e.totalPages,totalRecords:e.totalRecords,records:e.records.map(e=>({id:e.id,name:e.name,kjvName:a.ut(e),title:a.U(e.title),iconClass:t(e.type)}))}}function RI({record:e,onOpen:t}){return(0,_.jsx)(`li`,{className:`LookupPlugin_Panel_List_Item`,children:(0,_.jsxs)(`button`,{className:`LookupPlugin_Panel_List_Item_Button`,type:`button`,title:e.title||(e.kjvName===null?e.name:`${e.name} (${e.kjvName})`),onClick:n=>{t(e,n.currentTarget)},children:[(0,_.jsx)(`i`,{className:e.iconClass,"aria-hidden":`true`}),(0,_.jsxs)(`span`,{className:`LookupPlugin_Panel_List_Item_Text`,children:[(0,_.jsxs)(`span`,{className:`LookupPlugin_Panel_List_Item_Name`,children:[e.name,e.kjvName===null?null:(0,_.jsxs)(`span`,{className:`LookupPlugin_Panel_List_Item_KjvName`,children:[` `,`(`,e.kjvName,`)`]})]}),e.title?(0,_.jsx)(`span`,{className:`LookupPlugin_Panel_List_Item_Title`,children:e.title}):null]})]})})}function zI({active:e,query:t,search:n,onOpen:r,style:i,typeFilter:a}){let[o,s]=(0,h.useState)(1),[c,l]=(0,h.useState)(`1`),u=(0,h.useRef)(!1),d=a??NI,f=(0,h.useMemo)(()=>n(t,o),[n,t,o]),{totalPages:p,totalRecords:m}=f,g=f.page;(0,h.useEffect)(()=>{s(1)},[t,d]),(0,h.useEffect)(()=>{o!==g&&s(g)},[o,g]),(0,h.useEffect)(()=>{l(String(g))},[g]);let v=()=>{let e=Number.parseInt(c,10);if(Number.isNaN(e)){l(String(g));return}s(Math.min(p,Math.max(1,e)))};return e?(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_TabPanel`,children:[m===0?(0,_.jsx)(`div`,{className:`LookupPlugin_Panel_Empty`,children:`No matches`}):(0,_.jsx)(`ul`,{className:`LookupPlugin_Panel_List`,style:i,children:f.records.map(e=>(0,_.jsx)(RI,{record:e,onOpen:r},e.id))}),m>0?(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_Pagination`,children:[(0,_.jsx)(`button`,{className:`LookupPlugin_Panel_Pagination_Button`,type:`button`,disabled:g<=1,onClick:()=>s(e=>Math.max(1,e-1)),children:(0,_.jsx)(`i`,{className:`bi bi-chevron-left`,"aria-hidden":`true`})}),(0,_.jsxs)(`span`,{className:`LookupPlugin_Panel_Pagination_Status`,children:[(0,_.jsx)(`input`,{className:`LookupPlugin_Panel_Pagination_Input`,type:`text`,inputMode:`numeric`,"aria-label":`Jump to page`,title:`Type a page number and press Enter`,value:c,style:{width:`${String(p).length+1.5}ch`},onChange:e=>l(e.target.value.replace(/[^0-9]/g,``)),onFocus:e=>e.target.select(),onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),u.current=!0,v(),e.currentTarget.blur()):e.key===`Escape`&&(u.current=!0,l(String(g)),e.currentTarget.blur())},onBlur:()=>{if(u.current){u.current=!1;return}v()}}),` / `,p,` · `,m]}),(0,_.jsx)(`button`,{className:`LookupPlugin_Panel_Pagination_Button`,type:`button`,disabled:g>=p,onClick:()=>s(e=>Math.min(p,e+1)),children:(0,_.jsx)(`i`,{className:`bi bi-chevron-right`,"aria-hidden":`true`})})]}):null]}):null}function BI({showLookup:e,setShowLookup:t,zIndex:n}){let r=a.ot(),i=a.it(),[o,s]=(0,h.useState)(`name`),[c,l]=(0,h.useState)(``),[u,d]=(0,h.useState)(NI),[f,p]=(0,h.useState)(``),m=o===`name`,g=m?c:f,y=m?l:p,b=m?`Search names…`:`Search locations…`,x=m?r.style:i.style,S=(0,h.useMemo)(()=>{let e=r.nameTypes;return[{value:NI,label:`All types`,count:r.getRecordCount()},...e.map(({type:e,count:t})=>({value:e,label:II[e],count:t}))]},[r]),C=(0,h.useCallback)((e,t)=>LI(r.searchNamesPagination({query:e,page:t,pageSize:jI,type:u===NI?void 0:u}),a.a),[r,u]),w=(0,h.useCallback)((e,t)=>LI(i.searchLocationsPagination({query:e,page:t,pageSize:jI}),()=>MI),[i]),T=(e,t)=>{let n={anchorElement:t,id:e.id,name:e.name};o===`name`?a.W(n):a.G(n)};return e?(0,v.createPortal)((0,_.jsxs)(`div`,{className:`LookupPlugin_Panel`,style:n===void 0?void 0:{zIndex:n},children:[(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_Header`,children:[(0,_.jsx)(`h2`,{className:`LookupPlugin_Panel_Heading`,children:`Lookup (name or location)`}),(0,_.jsx)(`button`,{className:`LookupPlugin_Panel_Close`,type:`button`,title:`Close lookup`,"aria-label":`Close lookup`,onClick:()=>t(!1),children:(0,_.jsx)(`i`,{className:`bi bi-x-lg`,"aria-hidden":`true`})})]}),(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_Search`,children:[(0,_.jsx)(`i`,{className:`bi bi-search`,"aria-hidden":`true`}),(0,_.jsx)(`input`,{className:`LookupPlugin_Panel_Search_Input`,type:`text`,style:x,value:g,placeholder:b,onChange:e=>y(e.target.value)}),g===``?null:(0,_.jsx)(`button`,{className:`LookupPlugin_Panel_Search_Clear`,type:`button`,title:`Clear search`,"aria-label":`Clear search`,onClick:()=>y(``),children:(0,_.jsx)(`i`,{className:`bi bi-x-lg`,"aria-hidden":`true`})})]}),(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_Controls`,children:[(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_Tabs`,role:`tablist`,children:[(0,_.jsxs)(`button`,{className:`LookupPlugin_Panel_Tab ${m?`active`:``}`,type:`button`,role:`tab`,"aria-selected":m,onClick:()=>s(`name`),children:[(0,_.jsx)(`i`,{className:`bi bi-person-fill`,"aria-hidden":`true`}),` Names`]}),(0,_.jsxs)(`button`,{className:`LookupPlugin_Panel_Tab ${m?``:`active`}`,type:`button`,role:`tab`,"aria-selected":!m,onClick:()=>s(`location`),children:[(0,_.jsx)(`i`,{className:`bi bi-geo-alt-fill`,"aria-hidden":`true`}),` Locations`]})]}),(0,_.jsxs)(`div`,{className:`LookupPlugin_Panel_Filter`,children:[(0,_.jsx)(`i`,{className:`bi bi-funnel-fill`,"aria-hidden":`true`}),(0,_.jsx)(`select`,{className:`LookupPlugin_Panel_Filter_Select`,"aria-label":`Filter by name type`,title:m?`Filter by name type`:`Type filter applies to names only`,value:m?u:PI,disabled:!m,onChange:e=>d(e.target.value),children:m?S.map(e=>(0,_.jsx)(`option`,{value:e.value,children:e.label},e.value)):(0,_.jsx)(`option`,{value:PI,children:FI})}),(0,_.jsx)(`i`,{className:`bi bi-chevron-down LookupPlugin_Panel_Filter_Caret`,"aria-hidden":`true`})]})]}),(0,_.jsx)(zI,{active:m,query:c,search:C,onOpen:T,style:r.style,typeFilter:u}),(0,_.jsx)(zI,{active:!m,query:f,search:w,onOpen:T,style:i.style})]}),document.body):null}var VI=[{dependencies:[r.W],export:e=>r.G(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,i)=>{let a=r.J();i||e.getNextSibling()!=null?e.replace(a):e.insertBefore(a),a.selectNext()},triggerOnEnter:!0,type:`element`},...ao];function HI({transformers:e=VI}){let[n]=t.oi();return(0,h.useEffect)(()=>Ao(n,e),[n,e]),null}function UI(){return(0,_.jsx)(HI,{transformers:Yy})}function WI({maxLength:e}){let[r]=t.oi();return(0,h.useEffect)(()=>{let i=null;return r.registerNodeTransform(t.q,a=>{let o=t.tt();if(!t.bn(o)||!o.isCollapsed())return;let s=r.getEditorState(),c=s.read(()=>a.getTextContentSize()),l=a.getTextContentSize();if(c!==l){let t=l-e,a=o.anchor;t>0&&(c===e&&i!==s?(i=s,n.r(r,s)):n.T(r,a,t))}})},[r,e]),null}var GI=2e3,KI=150,qI=`bi bi-journal-medical icon`,JI=/\(([0-9០-៩]+)\):\s*/gu,YI=24;function XI(e,t){let n=new Set,r=[];for(let i of t)for(let t of e(i))n.has(t.id)||(n.add(t.id),r.push({id:t.id,name:t.name}));return r}function ZI(e){if(!(e instanceof Element))return null;let t=e.closest(`[data-lexical-mention]`);return t instanceof HTMLElement?t:null}function QI(e){if(!(e instanceof Element))return null;let t=e.closest(`[data-mention-bible-verse-hover-card]`);return t instanceof HTMLElement?t:null}function $I(e){if(e.getAttribute(`data-lexical-mention-kind`)!==`bible-verse`)return null;let t=(e.textContent??``).replace(/^:\s*/,``).trim(),n=e.getAttribute(`data-lexical-mention-name`)?.trim()??t,r=e.getAttribute(`data-lexical-mention-data`)?.trim()??``;return n===``&&r===``?null:{body:r,fontFamily:getComputedStyle(e).fontFamily||null,id:e.getAttribute(`data-lexical-mention-id`),name:n||`Bible verse`}}function eL(e,t){let n=e===null||e===``?void 0:{fontFamily:e};if(!(n===void 0&&t===void 0))return{...n,...t}}function tL(e){return a.B(e,140)}function nL(e){let t=oL(e.name);return`bible-verse:${t===null?``:t.keyLabel.trim()}:${e.id??`${e.name}\n${e.body}`}`}function rL(e){let t=[],n=0,r;for(JI.lastIndex=0;(r=JI.exec(e))!==null;)r.index>n&&t.push(e.slice(n,r.index)),t.push((0,_.jsx)(`span`,{className:`bible-verse-number`,children:r[1]},`verse-${r.index}`)),n=JI.lastIndex;return n<e.length&&t.push(e.slice(n)),(0,_.jsx)(_.Fragment,{children:t.length>0?t:e})}function iL(e){return e.body===``?e.name:`${e.name}\n${e.body}`}function aL(e,t){let n=t.fullText.trim(),r=n.indexOf(`
1019
1019
  `),i=r===-1?n:n.slice(0,r).trim();return{body:r===-1?``:n.slice(r+1).trim(),fontFamily:null,id:e,name:i||t.title||e,style:t.style}}function oL(e){let t=/^\(([^)]+)\)(.*)$/su.exec(e.trimStart());return t===null?null:{keyLabel:t[1],rest:t[2]}}function sL({relatedPersons:e,style:t}){return e.length===0?null:(0,_.jsxs)(`div`,{className:`mention-bible-verse-related-people`,children:[(0,_.jsx)(`div`,{className:`mention-bible-verse-related-people__label`,children:`Names`}),(0,_.jsx)(`ul`,{className:`mention-person-details__list`,style:t,children:e.map(e=>(0,_.jsx)(`li`,{children:(0,_.jsx)(`button`,{className:`mention-person-details__person-button`,type:`button`,onClick:t=>{t.preventDefault(),t.stopPropagation(),a.W({anchorElement:t.currentTarget,id:e.id,name:e.name})},children:e.name})},e.id))})]})}function cL({relatedLocations:e,style:t}){return e.length===0?null:(0,_.jsxs)(`div`,{className:`mention-bible-verse-related-people`,children:[(0,_.jsx)(`div`,{className:`mention-bible-verse-related-people__label`,children:`Locations`}),(0,_.jsx)(`ul`,{className:`mention-person-details__list`,style:t,children:e.map(e=>(0,_.jsx)(`li`,{children:(0,_.jsx)(`button`,{className:`mention-person-details__location-button`,type:`button`,onClick:t=>{t.preventDefault(),t.stopPropagation(),a.G({anchorElement:t.currentTarget,id:e.id,name:e.name})},children:e.name})},e.id))})]})}function lL({panel:e}){let{verseFullTextToListShorts:t}=a._t(),{locationsLookupManager:n,namesLookupManager:r}=a.at(),[i,o]=(0,h.useState)(null),s=(0,h.useRef)(!1),c=e.body!==``,l=t!==void 0,u=(0,h.useCallback)(()=>{if(s.current||t===void 0)return;s.current=!0;let i=iL(e);Promise.resolve(t(i)).then(e=>{let t=e??[];o({relatedPersons:XI(e=>r.searchByShortVerse(e),t),relatedLocations:XI(e=>n.searchByShortVerse(e),t)})})},[n,r,e,t]);return!c&&!l?null:(0,_.jsxs)(_.Fragment,{children:[c?rL(e.body):null,l?(0,_.jsxs)(`details`,{className:`mention-person-details`,children:[(0,_.jsxs)(`summary`,{className:`mention-person-details__summary`,onClick:()=>{u()},children:[(0,_.jsx)(`i`,{className:`bi bi-chevron-right mention-person-details__summary-icon`,"aria-hidden":`true`}),(0,_.jsx)(`span`,{children:`More Information`})]}),(0,_.jsx)(`div`,{className:`mention-person-details__body`,children:i===null?null:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(sL,{relatedPersons:i.relatedPersons,style:r.style}),(0,_.jsx)(cL,{relatedLocations:i.relatedLocations,style:n.style})]})})]}):null]})}function uL({panel:e,onOpenChangedVersePanel:t}){let{changeBibleKey:n}=a._t(),r=n===void 0?null:oL(e.name),i=(0,h.useCallback)(r=>{if(n===void 0)return;let i=iL(e);Promise.resolve(n(r,i)).then(n=>{n!==null&&t(aL(e.id??e.name,n))})},[n,t,e]);return n===void 0||r===null?(0,_.jsx)(`span`,{children:e.name}):(0,_.jsxs)(`span`,{children:[`(`,(0,_.jsx)(`button`,{className:`mention-advanced-panel__bible-key`,title:`Change Bible version`,type:`button`,onClick:e=>{e.preventDefault(),e.stopPropagation(),i(e)},children:r.keyLabel}),`)`,r.rest]})}function dL(e){let t=[e.name],n=[`<p><strong>${a.R(e.name)}</strong></p>`];return e.body!==``&&(t.push(e.body),n.push(`<p>${a.R(e.body)}</p>`)),{plainText:t.join(`
1020
1020
 
1021
- `),html:n.join(``)}}function fL(){let e=(0,h.useRef)(null),t=(0,h.useRef)(null),[n,r]=(0,h.useState)(null),[i,o]=(0,h.useState)(null),[s,c]=(0,h.useState)(null),[l,u]=(0,h.useState)([]),{shortToVerseData:d}=a._t(),f=(0,h.useCallback)(()=>{e.current!==null&&(window.clearTimeout(e.current),e.current=null)},[]),p=(0,h.useCallback)(()=>{t.current!==null&&(window.clearTimeout(t.current),t.current=null)},[]),m=(0,h.useCallback)(()=>{f(),p(),o(null),r(null)},[p,f]),g=(0,h.useCallback)(()=>{f(),p(),t.current=window.setTimeout(()=>{o(null),r(null),t.current=null},KI)},[p,f]),y=(0,h.useCallback)((e,t)=>{let n=nL(e),r=a.V(),i=a.z(t);u(a=>{let o=a.find(e=>e.panelKey===n),s={...e,anchorElement:t,panelKey:n,position:o?.position??i,zIndex:r};return o===void 0?[...a,s]:a.map(e=>e.panelKey===n?s:e)}),m()},[m]),b=(0,h.useCallback)(e=>{u(t=>t.filter(t=>t.panelKey!==e))},[]),x=(0,h.useCallback)(e=>{let t=a.V();u(n=>n.map(n=>n.panelKey===e?{...n,zIndex:t}:n))},[]),S=(0,h.useCallback)((e,t)=>{u(n=>{let r=!1,i=n.map(n=>n.panelKey!==e||n.position.left===t.left&&n.position.top===t.top?n:(r=!0,{...n,position:t}));return r?i:n})},[]),C=(0,h.useCallback)((e,t)=>{let n=nL(t),r=a.V();u(i=>{if(i.find(e=>e.panelKey===n)!==void 0)return i.map(e=>e.panelKey===n?{...e,body:t.body,name:t.name,style:t.style,zIndex:r}:e);let o=a.I({left:e.position.left+YI,top:e.position.top+YI},null,e.anchorElement);return[...i,{...t,anchorElement:e.anchorElement,panelKey:n,position:o,zIndex:r}]})},[]);(0,h.useEffect)(()=>{let e=e=>{let t=e.detail;if(typeof t!=`object`||!t||!(t.anchorElement instanceof HTMLElement)||typeof t.shortVerse!=`string`)return;let n=t.shortVerse.trim(),r=t.anchorElement;n===``||d===void 0||Promise.resolve(d(n)).then(e=>{e!==null&&y(aL(n,e),r)})};return window.addEventListener(a.K,e),()=>{window.removeEventListener(a.K,e)}},[y,d]),(0,h.useEffect)(()=>{let e=e=>{if(e.button!==0)return;let t=ZI(e.target);if(t===null||!a.H(e,t))return;let n=$I(t);n!==null&&(y(n,t),e.preventDefault(),e.stopPropagation())};return document.addEventListener(`pointerdown`,e,!0),()=>{document.removeEventListener(`pointerdown`,e,!0)}},[y]),(0,h.useEffect)(()=>{let t=t=>{if(QI(t.target)!==null){p();return}let n=ZI(t.target),a=ZI(t.relatedTarget);if(n===null)return;if(n===i){p();return}if(n===a)return;let s=$I(n);s!==null&&(m(),e.current=window.setTimeout(()=>{o(n),r(s),e.current=null},GI))},n=e=>{let t=ZI(e.target),n=QI(e.target),r=ZI(e.relatedTarget),i=QI(e.relatedTarget);if(!(t===null&&n===null)){if(r!==null||i!==null){p();return}g()}};return document.addEventListener(`mouseover`,t),document.addEventListener(`mouseout`,n),()=>{f(),p(),document.removeEventListener(`mouseover`,t),document.removeEventListener(`mouseout`,n)}},[p,f,m,i,g]),(0,h.useEffect)(()=>{if(i===null){c(null);return}let e=()=>{if(!i.isConnected){m(),c(null);return}c(tL(i))};return e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[m,i]);let w=n===null?void 0:eL(n.fontFamily);return(0,_.jsxs)(_.Fragment,{children:[n!==null&&s!==null?v.createPortal((0,_.jsxs)(`div`,{className:`mention-hover-card`,"data-mention-bible-verse-hover-card":`true`,role:`tooltip`,style:s,tabIndex:0,onClick:()=>{i!==null&&y(n,i)},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&i!==null&&(y(n,i),e.preventDefault())},children:[(0,_.jsxs)(`div`,{className:`mention-hover-card__name d-inline-flex align-items-center gap-2`,style:w,children:[(0,_.jsx)(`i`,{className:qI,"aria-hidden":`true`}),(0,_.jsx)(`span`,{children:n.name})]}),n.body?(0,_.jsx)(`div`,{className:`mention-hover-card__title`,style:w,children:rL(n.body)}):null]}),document.body):null,l.map(e=>(0,_.jsx)(a.i,{anchorElement:e.anchorElement,iconClassName:qI,name:e.name,nameContent:(0,_.jsx)(uL,{panel:e,onOpenChangedVersePanel:t=>C(e,t)}),panelKind:`Bible verse`,position:e.position,textStyle:eL(e.fontFamily,e.style),title:(0,_.jsx)(lL,{panel:e}),zIndex:e.zIndex,onBringToFront:()=>{x(e.panelKey)},onClose:()=>{b(e.panelKey)},onCopy:()=>{let{plainText:t,html:n}=dL(e);return a.L(t,n)},onPositionChange:t=>{S(e.panelKey,t)}},e.panelKey))]})}var pL=1,mL=96;function hL(e){let t=e.trim();return t.endsWith(`px`)?Number.parseFloat(t):t.endsWith(`in`)?Number.parseFloat(t)*mL:null}function gL(e){return hL(getComputedStyle(e).getPropertyValue(`--playground-paper-height`).trim())}function _L(e){let t=e.getBoundingClientRect(),n=getComputedStyle(e),r=Number.parseFloat(n.paddingTop)||0,i=Number.parseFloat(n.paddingBottom)||0,a=r;for(let n of Array.from(e.children))a=Math.max(a,n.getBoundingClientRect().bottom-t.top);return a+i}function vL(e){let t=gL(e);if(t===null||t<=0)return;let n=Math.max(pL,Math.ceil(_L(e)/t));e.style.setProperty(`--playground-paper-page-count`,String(n)),e.style.setProperty(`--playground-paper-total-height`,`${n*t}px`)}function yL(e){e!==null&&(e.style.removeProperty(`--playground-paper-page-count`),e.style.removeProperty(`--playground-paper-total-height`))}function bL(){let[e]=t.oi(),{settings:{pageSize:n}}=i.r();return(0,h.useEffect)(()=>{let t=e.getRootElement(),r=null,i=null,a=()=>{r!==null&&(window.cancelAnimationFrame(r),r=null)},o=()=>{a(),r=window.requestAnimationFrame(()=>{if(r=null,n===`web`){yL(t);return}t!==null&&vL(t)})},s=e=>{i?.disconnect(),t=e,t!==null&&n!==`web`&&typeof ResizeObserver<`u`?(i=new ResizeObserver(o),i.observe(t)):i=null,o()};s(t);let c=e.registerRootListener(s),l=e.registerUpdateListener(o);return window.addEventListener(`resize`,o),()=>{a(),i?.disconnect(),c(),l(),window.removeEventListener(`resize`,o),yL(t)}},[e,n]),null}var xL=96,SL=1;function CL(e){let t=e.parentElement;for(;t!==null;){if(t.classList.contains(`editor-container`))return t;t=t.parentElement}return null}function wL(e){let t=getComputedStyle(e).getPropertyValue(`--playground-editor-content-zoom`).trim(),n=Number.parseFloat(t);return Number.isFinite(n)&&n>0?n:1}function TL(){let[e]=t.oi(),{settings:{pageSize:n}}=i.r();return(0,h.useEffect)(()=>{let t=i.h(n);if(t===null)return;let r=e.getRootElement(),a=e=>{if(e.key!==`PageDown`&&e.key!==`PageUp`||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.defaultPrevented||r===null)return;let n=CL(r);if(n===null)return;let i=wL(r),a=t.heightIn*xL*i;if(a<=0)return;let o=r.getBoundingClientRect(),s=n.getBoundingClientRect(),c=n.scrollTop,l=o.top-s.top+c,u=c-l,d=e.key===`PageDown`?Math.floor((u+SL)/a)+1:Math.ceil((u-SL)/a)-1,f=Math.max(0,n.scrollHeight-n.clientHeight),p=Math.max(0,Math.min(l+d*a,f));e.preventDefault(),n.scrollTo({behavior:`smooth`,top:p})},o=e.registerRootListener((e,t)=>{t?.removeEventListener(`keydown`,a),e?.addEventListener(`keydown`,a),r=e});return()=>{o(),r?.removeEventListener(`keydown`,a)}},[e,n]),null}function EL({editor:e,setIsLinkEditMode:n}){let{toolbarState:r}=j();return(0,h.useEffect)(()=>e.registerCommand(t.Or,i=>{if(t.Cn(i,{}))return!1;if(L(i))pn(e);else if(R(i)){let{code:t}=i,n=`h${t[t.length-1]}`;mn(e,r.blockType,n)}else if(B(i))hn(e,r.blockType);else if(z(i))_n(e,r.blockType);else if(ee(i))gn(e,r.blockType);else if(te(i))yn(e,r.blockType);else if(V(i))vn(e,r.blockType);else if(U(i))e.dispatchCommand(t.w,`strikethrough`);else if(ne(i))e.dispatchCommand(t.w,`lowercase`);else if(re(i))e.dispatchCommand(t.w,`uppercase`);else if(H(i))e.dispatchCommand(t.w,`capitalize`);else if(ie(i))e.dispatchCommand(t.on,void 0);else if(ae(i))e.dispatchCommand(t.pr,void 0);else if(oe(i))e.dispatchCommand(t.tr,`center`);else if(se(i))e.dispatchCommand(t.tr,`left`);else if(ce(i))e.dispatchCommand(t.tr,`right`);else if(le(i))e.dispatchCommand(t.tr,`justify`);else if(ue(i))e.dispatchCommand(t.w,`subscript`);else if(de(i))e.dispatchCommand(t.w,`superscript`);else if(fe(i))e.dispatchCommand(t.w,`code`);else if(pe(i))fn(e,ln.increment,r.fontSizeInputValue);else if(me(i))fn(e,ln.decrement,r.fontSizeInputValue);else if(he(i))bn(e);else if(ge(i)){let t=r.isLink?null:a.C(`https://`);n(!r.isLink),e.dispatchCommand(a.nt,t)}else if(be(i))e.dispatchCommand(NM,void 0);else return!1;return i.preventDefault(),!0},2),[e,r.isLink,r.blockType,r.fontSizeInputValue,n]),null}var DL=class e extends t.Wt{static getType(){return`specialText`}static clone(t){return new e(t.__text,t.__key)}createDOM(e){let n=document.createElement(`span`);return t.Vr(n,e.theme.specialText),n.textContent=this.getTextContent(),n}updateDOM(e,n,r){return e.__text.startsWith(`[`)&&e.__text.endsWith(`]`)&&(n.textContent=this.__text.substring(1,this.__text.length-1)),t.Vr(n,r.theme.specialText),!1}static importJSON(e){return OL().updateFromJSON(e)}isTextEntity(){return!0}canInsertTextAfter(){return!1}};function OL(e=``){return t.o(new DL(e))}var kL=/\[([^\[\]]+)\]/;function AL(e){let t=e.getTextContent(),n=kL.exec(t);if(n){let t=n[1],r=n.index,i;r===0?[i]=e.splitText(r+n[0].length):[,i]=e.splitText(r,r+n[0].length);let a=OL(t);return i.replace(a),a}return null}function jL(e){let t=e;for(;t!==null;){if(!t.isSimpleText())return;t=AL(t)}}function ML(e){(0,h.useEffect)(()=>{if(!e.hasNodes([DL]))throw Error(`SpecialTextPlugin: SpecialTextNode not registered on editor`);return e.registerNodeTransform(t.Wt,jL)},[e])}function NL(){let[e]=t.oi();return ML(e),null}function PL(){return t.c(s.r).filter(e=>e.isAttached())}function FL(e){return s.n(e)?!0:t.vt(e)&&e.getChildrenSize()>0&&e.getChildren().every(FL)}function IL(e){let t=e.getTopLevelElement()??e;return Math.max(0,t.getIndexWithinParent())}function LL(){let e=t.Dr(),n=e.getChildren();if(n.some(e=>!FL(e)))return;let r=t.Ar(),i=n.findIndex(FL);e.splice(i===-1?0:i,0,[r]),r.select()}function RL(){let e=t.tt();if(!t.bn(e)||e.isCollapsed())return!1;let n=t.Dr(),r=PL();if(r.length===0)return!1;let i=r.map(e=>({index:IL(e),key:e.getKey(),serializedNode:e.exportJSON()}));e.removeText();for(let{index:e,key:r,serializedNode:a}of i){let i=t.Ht(r);s.n(i)&&i.isAttached()||n.splice(Math.min(e,n.getChildrenSize()),0,[s.r.importJSON(a)])}return LL(),!0}function zL(){let e=t.Dr(),n=e.getChildren(),r=n.findIndex(FL);return r===-1||n.slice(r).some(e=>!FL(e))?!1:(r===0||e.select(0,r),!0)}function BL(e){let t=RL();return t&&e.preventDefault(),t}function VL(e){return t.Yn(e.registerCommand(t.qn,()=>zL(),4),e.registerCommand(t.Nr,e=>BL(e),4),e.registerCommand(t.wn,e=>BL(e),4),e.registerCommand(t.It,()=>RL(),4),e.registerCommand(t.zt,()=>RL(),4))}function HL(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([s.r]))throw Error(`StickyPlugin: StickyNode not registered on editor`);return VL(e)},[e]),null}var UL=100,WL=0,GL=!1;function KL(){window.addEventListener(`keydown`,e=>{e.key===`Tab`&&(WL=e.timeStamp)},!0)}function qL(){let[e]=t.oi();return(0,h.useEffect)(()=>(GL||=(KL(),!0),e.registerCommand(t.mt,e=>{let n=t.tt();return t.bn(n)&&WL+UL>e.timeStamp&&t.En(n.clone()),!1},1)),[e]),null}function JL(e){let t=e.getShape();return{columns:t.toX-t.fromX+1,rows:t.toY-t.fromY+1}}function YL(){let e=t.tt();if(t.bn(e)&&!e.isCollapsed()||a.Kt(e)&&!e.anchor.is(e.focus)||!t.bn(e)&&!a.Kt(e))return!1;let[n]=a.kt(e.anchor);return n.__colSpan>1||n.__rowSpan>1}function XL(e){let n=e.getLastDescendant();t.Jt(n)?n.select():t.vt(n)?n.selectEnd():n!==null&&n.selectNext()}function ZL(e){return e.getEditorState().read(()=>{let e=t.tt();if(t.bn(e)||a.Kt(e)){let[t]=a.kt(e.anchor);if(a.Rt(t))return t.getBackgroundColor()}return null})}function QL({onClose:e,tableCellNode:n,setIsMenuOpen:r,contextRef:i,cellMerge:o,showColorPickerModal:s}){let[c]=t.oi(),l=(0,h.useRef)(null),[u,d]=(0,h.useState)(n),[f,p]=(0,h.useState)({columns:1,rows:1}),[m,g]=(0,h.useState)(!1),[y,b]=(0,h.useState)(!1),[x,S]=(0,h.useState)(()=>ZL(c)||``);(0,h.useEffect)(()=>c.registerMutationListener(a.Wt,e=>{e.get(u.getKey())===`updated`&&(c.getEditorState().read(()=>{d(u.getLatest())}),S(ZL(c)||``))},{skipInitialization:!0}),[c,u]),(0,h.useEffect)(()=>{c.getEditorState().read(()=>{let e=t.tt();if(a.Kt(e)){let t=JL(e);p(JL(e)),g(t.columns>1||t.rows>1)}b(YL())})},[c]),(0,h.useEffect)(()=>{let e=i.current,t=l.current,n=c.getRootElement();if(e!=null&&t!=null&&n!=null){let r=n.getBoundingClientRect(),i=e.getBoundingClientRect();t.style.opacity=`1`;let a=t.getBoundingClientRect(),o=i.right+5;if(o+a.width>window.innerWidth||o+a.width>r.right){let e=i.left-a.width-5;o=(e<0?5:e)+window.pageXOffset}t.style.left=`${o+window.pageXOffset}px`;let s=i.top;if(s+a.height>window.innerHeight){let e=i.bottom-a.height;s=e<0?5:e}t.style.top=`${s}px`}},[i,l,c]),(0,h.useEffect)(()=>{function e(e){l.current!=null&&i.current!=null&&t.Ln(e.target)&&!l.current.contains(e.target)&&!i.current.contains(e.target)&&r(!1)}return window.addEventListener(`click`,e),()=>window.removeEventListener(`click`,e)},[r,i]);let C=(0,h.useCallback)(()=>{c.update(()=>{if(u.isAttached()){let e=a.bt(u),t=a.It(e,c.getElementByKey(e.getKey()));if(t===null)throw Error(`TableActionMenu: Expected to find tableElement in DOM`);let n=a.Xt(t);n!==null&&n.$clearHighlight(),e.markDirty(),d(u.getLatest())}t.En(null)})},[c,u]),w=()=>{c.update(()=>{let n=t.tt();if(!a.Kt(n))return;let r=a.wt(n.getNodes().filter(a.Rt));r&&(XL(r),e())})},T=()=>{c.update(()=>{a.Et()})},E=(0,h.useCallback)(t=>{c.update(()=>{for(let e=0;e<f.rows;e++)a.Zt(t);e()})},[c,e,f.rows]),D=(0,h.useCallback)(t=>{c.update(()=>{for(let e=0;e<f.columns;e++)a.St(t);e()})},[c,e,f.columns]),O=(0,h.useCallback)(()=>{c.update(()=>{a.zt(),e()})},[c,e]),k=(0,h.useCallback)(()=>{c.update(()=>{a.bt(u).remove(),C(),e()})},[c,u,C,e]),A=(0,h.useCallback)(()=>{c.update(()=>{a.xt(),e()})},[c,e]),j=(0,h.useCallback)(()=>{c.update(()=>{let t=a.bt(u),n=a.jt(u),[r]=a.Tt(t,null,null),i=new Set,o=u.getHeaderStyles()^a.Ht.ROW;for(let e=0;e<r[n].length;e++){let t=r[n][e];t?.cell&&(i.has(t.cell)||(i.add(t.cell),t.cell.setHeaderStyles(o,a.Ht.ROW)))}C(),e()})},[c,u,C,e]),M=(0,h.useCallback)(()=>{c.update(()=>{let t=a.bt(u),n=a.Ot(u),[r]=a.Tt(t,null,null),i=new Set,o=u.getHeaderStyles()^a.Ht.COLUMN;for(let e=0;e<r.length;e++){let t=r[e][n];t?.cell&&(i.has(t.cell)||(i.add(t.cell),t.cell.setHeaderStyles(o,a.Ht.COLUMN)))}C(),e()})},[c,u,C,e]),N=(0,h.useCallback)(()=>{c.update(()=>{if(u.isAttached()){let e=a.bt(u);e&&e.setRowStriping(!e.getRowStriping())}C(),e()})},[c,u,C,e]),P=(0,h.useCallback)(()=>{c.update(()=>{if(u.isAttached()){let e=a.bt(u);e&&e.setFrozenRows(+(e.getFrozenRows()===0))}C(),e()})},[c,u,C,e]),F=(0,h.useCallback)(()=>{c.update(()=>{if(u.isAttached()){let e=a.bt(u);e&&e.setFrozenColumns(+(e.getFrozenColumns()===0))}C(),e()})},[c,u,C,e]),I=(0,h.useCallback)(e=>{c.update(()=>{let n=t.tt();if(t.bn(n)||a.Kt(n)){let[t]=a.kt(n.anchor);if(a.Rt(t)&&t.setBackgroundColor(e),a.Kt(n)){let t=n.getNodes();for(let n=0;n<t.length;n++){let r=t[n];a.Rt(r)&&r.setBackgroundColor(e)}}}})},[c]),L=e=>{c.update(()=>{let n=t.tt();if(t.bn(n)||a.Kt(n)){let[t]=a.kt(n.anchor);if(a.Rt(t)&&t.setVerticalAlign(e),a.Kt(n)){let t=n.getNodes();for(let n=0;n<t.length;n++){let r=t[n];a.Rt(r)&&r.setVerticalAlign(e)}}}})},R=null;return o&&(m?R=(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>w(),"data-test-id":`table-merge-cells`,children:(0,_.jsx)(`span`,{className:`text`,children:`Merge cells`})}):y&&(R=(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>T(),"data-test-id":`table-unmerge-cells`,children:(0,_.jsx)(`span`,{className:`text`,children:`Unmerge cells`})}))),(0,v.createPortal)((0,_.jsxs)(`div`,{className:`dropdown`,ref:l,onClick:e=>{e.stopPropagation()},children:[R,(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>s(`Cell background color`,()=>(0,_.jsx)(Nn,{color:x,onChange:I})),"data-test-id":`table-background-color`,children:(0,_.jsx)(`span`,{className:`text`,children:`Background color`})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>N(),"data-test-id":`table-row-striping`,children:(0,_.jsx)(`span`,{className:`text`,children:`Toggle Row Striping`})}),(0,_.jsxs)(ZN,{buttonLabel:`Vertical Align`,buttonClassName:`item`,buttonAriaLabel:`Formatting options for vertical alignment`,children:[(0,_.jsx)(Z,{onClick:()=>{L(`top`)},className:`item wide`,children:(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:`bi bi-align-top icon`}),(0,_.jsx)(`span`,{className:`text`,children:`Top Align`})]})}),(0,_.jsx)(Z,{onClick:()=>{L(`middle`)},className:`item wide`,children:(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:`bi bi-align-middle icon`}),(0,_.jsx)(`span`,{className:`text`,children:`Middle Align`})]})}),(0,_.jsx)(Z,{onClick:()=>{L(`bottom`)},className:`item wide`,children:(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:`bi bi-align-bottom icon`}),(0,_.jsx)(`span`,{className:`text`,children:`Bottom Align`})]})})]}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>P(),"data-test-id":`table-freeze-first-row`,children:(0,_.jsx)(`span`,{className:`text`,children:`Toggle First Row Freeze`})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>F(),"data-test-id":`table-freeze-first-column`,children:(0,_.jsx)(`span`,{className:`text`,children:`Toggle First Column Freeze`})}),(0,_.jsx)(`hr`,{}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>E(!1),"data-test-id":`table-insert-row-above`,children:(0,_.jsxs)(`span`,{className:`text`,children:[`Insert`,` `,f.rows===1?`row`:`${f.rows} rows`,` `,`above`]})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>E(!0),"data-test-id":`table-insert-row-below`,children:(0,_.jsxs)(`span`,{className:`text`,children:[`Insert`,` `,f.rows===1?`row`:`${f.rows} rows`,` `,`below`]})}),(0,_.jsx)(`hr`,{}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>D(!1),"data-test-id":`table-insert-column-before`,children:(0,_.jsxs)(`span`,{className:`text`,children:[`Insert`,` `,f.columns===1?`column`:`${f.columns} columns`,` `,`left`]})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>D(!0),"data-test-id":`table-insert-column-after`,children:(0,_.jsxs)(`span`,{className:`text`,children:[`Insert`,` `,f.columns===1?`column`:`${f.columns} columns`,` `,`right`]})}),(0,_.jsx)(`hr`,{}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>A(),"data-test-id":`table-delete-columns`,children:(0,_.jsx)(`span`,{className:`text`,children:`Delete column`})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>O(),"data-test-id":`table-delete-rows`,children:(0,_.jsx)(`span`,{className:`text`,children:`Delete row`})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>k(),"data-test-id":`table-delete`,children:(0,_.jsx)(`span`,{className:`text`,children:`Delete table`})}),(0,_.jsx)(`hr`,{}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>j(),"data-test-id":`table-row-header`,children:(0,_.jsxs)(`span`,{className:`text`,children:[(u.__headerState&a.Ht.ROW)===a.Ht.ROW?`Remove`:`Add`,` `,`row header`]})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>M(),"data-test-id":`table-column-header`,children:(0,_.jsxs)(`span`,{className:`text`,children:[(u.__headerState&a.Ht.COLUMN)===a.Ht.COLUMN?`Remove`:`Add`,` `,`column header`]})})]}),document.body)}function $L({anchorElem:e,cellMerge:n}){let[r]=t.oi(),i=(0,h.useRef)(null),o=(0,h.useRef)(null),[s,c]=(0,h.useState)(!1),[l,u]=(0,h.useState)(null),[d,f]=ix(),p=(0,h.useCallback)(e=>{let t=e.closest(`.PlaygroundEditorTheme__tableScrollableWrapper`);if(t){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect().right-5,i=r-28;if(r>n.right||i<n.left)return!0}return!1},[]),m=(0,h.useCallback)(()=>{let n=i.current,o=t.tt(),s=t.M(r._window),c=document.activeElement;function l(){n&&(n.classList.remove(`table-cell-action-button-container--active`),n.classList.add(`table-cell-action-button-container--inactive`)),u(null)}if(o==null||n==null)return l();let d=r.getRootElement(),f=null,m=null;if(t.bn(o)&&d!==null&&s!==null&&d.contains(s.anchorNode)){let e=a.Bt(o.anchor.getNode());if(e==null||(m=r.getElementByKey(e.getKey()),m==null||!e.isAttached())||p(m))return l();let t=a.bt(e),n=a.It(t,r.getElementByKey(t.getKey()));if(n===null)throw Error(`TableActionMenu: Expected to find tableElement in DOM`);f=a.Xt(n),u(e)}else if(a.Kt(o)){let e=a.Bt(o.anchor.getNode());if(!a.Rt(e))throw Error(`TableSelection anchorNode must be a TableCellNode`);let t=a.bt(e),n=a.It(t,r.getElementByKey(t.getKey()));if(n===null)throw Error(`TableActionMenu: Expected to find tableElement in DOM`);if(f=a.Xt(n),m=r.getElementByKey(e.getKey()),m===null||p(m))return l()}else if(!c)return l();if(f===null||m===null)return l();let h=!f||!f.isSelecting;if(n.classList.toggle(`table-cell-action-button-container--active`,h),n.classList.toggle(`table-cell-action-button-container--inactive`,!h),h){let t=m.getBoundingClientRect(),r=e.getBoundingClientRect(),i=t.top-r.top,a=t.right-r.left;n.style.transform=`translate(${a}px, ${i}px)`}},[r,e,p]);(0,h.useEffect)(()=>{let e,n=()=>{e=void 0,r.getEditorState().read(m)},i=()=>(e===void 0&&(e=setTimeout(n,0)),!1);return t.Yn(r.registerUpdateListener(i),r.registerCommand(t.F,i,4),r.registerRootListener((e,t)=>{t&&t.removeEventListener(`pointerup`,i),e&&(e.addEventListener(`pointerup`,i),i())}),()=>clearTimeout(e))});let g=(0,h.useRef)(l);return(0,h.useEffect)(()=>{g.current!==l&&c(!1),g.current=l},[g,l]),(0,_.jsx)(`div`,{className:`table-cell-action-button-container`,ref:i,children:l!=null&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{type:`button`,className:`table-cell-action-button chevron-down`,onClick:e=>{e.stopPropagation(),c(!s)},ref:o,children:(0,_.jsx)(`i`,{className:`bi bi-chevron-down chevron-down`})}),d,s&&(0,_.jsx)(QL,{contextRef:o,setIsMenuOpen:c,onClose:()=>c(!1),tableCellNode:l,cellMerge:n,showColorPickerModal:f})]})})}function eR({anchorElem:e=document.body,cellMerge:t=!1}){return(0,v.createPortal)(l.t()?(0,_.jsx)($L,{anchorElem:e,cellMerge:t}):null,e)}var tR=33,nR=92,rR=`#76b6ff`;function iR({editor:e}){let r=(0,h.useRef)(null),i=(0,h.useRef)(null),o=(0,h.useRef)(null),[s,c]=(0,h.useState)(!1),l=(0,h.useRef)(null),[u,d]=(0,h.useState)(null),[f,p]=(0,h.useState)(null),[m,g]=(0,h.useState)(null),[v,y]=(0,h.useState)(null),b=(0,h.useCallback)(()=>{p(null),r.current=null,g(null),y(null),l.current=null,o.current=null},[]);(0,h.useEffect)(()=>{let n=new Set;return t.Yn(e.registerMutationListener(a.At,e=>{for(let[t,r]of e)r===`destroyed`?n.delete(t):n.add(t);c(n.size>0)}),e.registerNodeTransform(a.At,e=>{if(e.getColWidths())return e;let t=e.getColumnCount(),n=nR;return e.setColWidths(Array(t).fill(n)),e}))},[e]),(0,h.useEffect)(()=>{if(!s)return;let n=n=>{let s=n.target;if(t.Sn(s)){if(m){n.preventDefault(),n.stopPropagation(),d({x:n.clientX,y:n.clientY});return}if(!(i.current&&i.current.contains(s))&&r.current!==s){r.current=s;let n=a.Yt(s);n&&f!==n?e.getEditorState().read(()=>{let i=t.Yt(n.elem);if(!i)throw Error(`TableCellResizer: Table cell node not found.`);let c=a.bt(i),l=a.It(c,e.getElementByKey(c.getKey()));if(!l)throw Error(`TableCellResizer: Table element not found.`);r.current=s,o.current=l.getBoundingClientRect(),p(n)},{editor:e}):n??b()}}},c=e=>{e.pointerType===`touch`&&n(e)},l=i.current;l?.addEventListener(`pointermove`,n,{capture:!0});let u=e.registerRootListener((e,t)=>{t?.removeEventListener(`pointermove`,n),t?.removeEventListener(`pointerdown`,c),e?.addEventListener(`pointermove`,n),e?.addEventListener(`pointerdown`,c)});return()=>{u(),l?.removeEventListener(`pointermove`,n)}},[f,m,e,b,s]);let x=e=>e===`bottom`,S=(0,h.useCallback)(n=>{if(!f)throw Error(`TableCellResizer: Expected active cell.`);e.update(()=>{let r=t.Yt(f.elem);if(!a.Rt(r))throw Error(`TableCellResizer: Table cell node not found.`);let i=a.bt(r),o=a.jt(r),s=i.getChildren(),c=r.getColSpan()===i.getColumnCount()?o:o+r.getRowSpan()-1;if(c>=s.length||c<0)throw Error(`Expected table cell to be inside of table row.`);let l=s[c];if(!a.Ft(l))throw Error(`Expected table row`);let u=l.getHeight();if(u===void 0){let t=l.getChildren();u=Math.min(...t.map(t=>C(t,e)??1/0))}let d=Math.max(u+n,tR);l.setHeight(d)},{tag:t.Jn})},[f,e]),C=(e,t)=>t.getElementByKey(e.getKey())?.clientHeight,w=(e,t)=>{for(let n=0;n<t.length;n++)for(let r=0;r<t[n].length;r++)if(t[n][r].cell===e)return r},T=(0,h.useCallback)(n=>{if(!f)throw Error(`TableCellResizer: Expected active cell.`);e.update(()=>{let e=t.Yt(f.elem);if(!a.Rt(e))throw Error(`TableCellResizer: Table cell node not found.`);let r=a.bt(e),[i]=a.Tt(r,null,null),o=w(e,i);if(o===void 0)throw Error(`TableCellResizer: Table column not found.`);let s=r.getColWidths();if(!s)return;let c=s[o];if(c===void 0)return;let l=[...s];l[o]=Math.max(c+n,nR),r.setColWidths(l)},{tag:t.Jn})},[f,e]),E=(0,h.useCallback)(e=>{let t=r=>{if(r.preventDefault(),r.stopPropagation(),!f)throw Error(`TableCellResizer: Expected active cell.`);if(l.current){let{x:i,y:a}=l.current;if(f===null)return;let o=n.d(r.target);if(x(e)){let e=(r.clientY-a)/o;S(e)}else{let e=(r.clientX-i)/o;T(e)}b(),document.removeEventListener(`pointerup`,t)}};return t},[f,b,T,S]),D=(0,h.useCallback)(e=>t=>{if(t.preventDefault(),t.stopPropagation(),!f)throw Error(`TableCellResizer: Expected active cell.`);l.current={x:t.clientX,y:t.clientY},d(l.current),g(e),document.addEventListener(`pointerup`,E(e))},[f,E]),O=(0,h.useCallback)(()=>{if(f){let{height:e,width:t,top:r,left:i}=f.elem.getBoundingClientRect(),a=n.d(f.elem),s={bottom:{backgroundColor:`transparent`,backgroundImage:`none`,cursor:`row-resize`,height:`16px`,left:`${window.scrollX+i}px`,top:`${window.scrollY+r+e-16/2}px`,width:`${t}px`},right:{backgroundColor:`transparent`,backgroundImage:`none`,cursor:`col-resize`,height:`${e}px`,left:`${window.scrollX+i+t-16/2}px`,top:`${window.scrollY+r}px`,width:`16px`}},c=o.current;return m&&u&&c?(x(m)?(s[m].left=`${window.scrollX+c.left}px`,s[m].top=`${window.scrollY+u.y/a}px`,s[m].height=`3px`,s[m].width=`${c.width}px`):(s[m].top=`${window.scrollY+c.top}px`,s[m].left=`${window.scrollX+u.x/a}px`,s[m].width=`3px`,s[m].height=`${c.height}px`),s[m].backgroundColor=`#adf`,s[m].backgroundImage=`none`,s[m].mixBlendMode=`unset`):!m&&v===`right`&&(s.right.backgroundImage=`linear-gradient(90deg, transparent 7px, ${rR} 7px, ${rR} 9px, transparent 9px)`,s.right.mixBlendMode=`unset`,c&&(s.right.top=`${window.scrollY+c.top}px`,s.right.height=`${c.height}px`)),s}return{bottom:null,left:null,right:null,top:null}},[f,m,v,u]),k=(0,h.useCallback)(e=>()=>{m||y(e)},[m]),A=(0,h.useCallback)(()=>{m||y(null)},[m]),j=O();return(0,_.jsx)(`div`,{ref:i,children:f!=null&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`div`,{className:`TableCellResizer__resizer TableCellResizer__ui`,style:j.right||void 0,onPointerEnter:k(`right`),onPointerLeave:A,onPointerDown:D(`right`)}),(0,_.jsx)(`div`,{className:`TableCellResizer__resizer TableCellResizer__ui`,style:j.bottom||void 0,onPointerDown:D(`bottom`)})]})})}function aR(){let[e]=t.oi(),n=l.t();return(0,h.useMemo)(()=>n?(0,v.createPortal)((0,_.jsx)(iR,{editor:e}),document.body):null,[e,n])}function oR(e,t){let n=e()?.[t];if(typeof n!=`string`)throw Error(`getThemeClass: required theme property ${t} not defined`);return n.split(/\s+/g).map(e=>`.${e}`).join()}function sR(e){let t=e.getChildren(),n=null;for(let e of t){if(!a.Ft(e)||(n===null&&(n=e.getChildrenSize()),e.getChildrenSize()!==n))return!1;let t=e.getChildren();for(let e of t)if(!a.Rt(e)||e.getRowSpan()!==1||e.getColSpan()!==1)return!1}return(n||0)>0}function cR(e,n){if(!t.Sn(e.target))return{isOutside:!0,tableElement:null};let r=`td${oR(n,`tableCell`)}, th${oR(n,`tableCell`)}`,i=e.target.closest(r)?.closest(`table`)??null;return{isOutside:i==null,tableElement:i}}function lR(e,t){let n=e.rows[0];if(!n)return null;let r=null,i=1/0;for(let e of Array.from(n.cells)){let n=e.getBoundingClientRect(),a=n.left+n.width/2,o=Math.abs(a-t);o<i&&(i=o,r={cell:e,centerX:a,top:n.top})}return r}function uR({anchorElem:e}){let[n,{getTheme:r}]=t.oi(),i=l.t(),[o,s]=(0,h.useState)(!1),[c,u]=(0,h.useState)(!1),d=(0,h.useRef)({getBoundingClientRect:()=>new DOMRect}),m=(0,h.useRef)({getBoundingClientRect:()=>new DOMRect}),g=(0,h.useRef)(null),v=(0,h.useRef)(null),y=(0,h.useRef)(null),b=(0,h.useRef)(null),x=(0,h.useRef)(null),{refs:S,floatingStyles:C,update:w}=f.a({middleware:[p.a({mainAxis:-9}),p.o({padding:8})],placement:`top`,strategy:`fixed`,whileElementsMounted:p.l}),{refs:T,floatingStyles:E,update:D}=f.a({middleware:[p.a({mainAxis:-9}),p.o({padding:8})],placement:`left`,strategy:`fixed`,whileElementsMounted:p.l});if((0,h.useEffect)(()=>{if(!i)return;let n=n=>{if(g.current&&n.target instanceof Node&&g.current.contains(n.target)||v.current&&n.target instanceof Node&&v.current.contains(n.target))return;let{tableElement:i,isOutside:a}=cR(n,r);if(a||i==null||e&&!e.contains(i)){s(!1),u(!1);return}let o=`td${oR(r,`tableCell`)}, th${oR(r,`tableCell`)}`,c=t.Sn(n.target)?n.target.closest(o):null;if(!c){s(!1),u(!1),b.current=null,y.current=null;return}let l=c.parentElement instanceof HTMLTableRowElement?c.parentElement.rowIndex:-1,f=c.cellIndex??-1,p=lR(i,n.clientX);!p||l!==0?(s(!1),b.current=null):(b.current=p.cell,d.current.getBoundingClientRect=()=>new DOMRect(p.centerX,p.top,0,0),S.setPositionReference(d.current),s(!0),w?.());let h=i.getBoundingClientRect();if(f!==0)u(!1),y.current=null;else{let{top:e,height:t}=c.getBoundingClientRect(),n=e+t/2;y.current=c,m.current.getBoundingClientRect=()=>new DOMRect(h.left,n,0,0),T.setPositionReference(m.current),u(!0),D?.()}};return document.addEventListener(`mousemove`,n),()=>{document.removeEventListener(`mousemove`,n),s(!1),u(!1)}},[e,r,i,T,S,w,D]),(0,h.useEffect)(()=>(x.current=e=>{let t=e.relatedTarget;t&&g.current&&g.current.contains(t)||t&&v.current&&v.current.contains(t)||(s(!1),u(!1))},n.registerRootListener((e,t)=>{t&&x.current&&t.removeEventListener(`mouseleave`,x.current),e&&x.current&&e.addEventListener(`mouseleave`,x.current)})),[n]),!i)return null;let O=()=>{let e=b.current;e&&n.update(()=>{let n=t.Yt(e);a.Rt(n)&&(n.selectEnd(),a.St())})},k=()=>{let e=y.current;e&&n.update(()=>{let n=t.Yt(e);a.Rt(n)&&(n.selectEnd(),a.Zt())})},A=e=>{let r=b.current;r&&n.update(()=>{let n=t.Yt(r);if(!a.Rt(n))return;let i=n.getParent();if(!i||!a.Ft(i))return;let o=i.getParent();if(!a.Ut(o)||!sR(o))return;let s=n.getIndexWithinParent(),c=o.getChildren().filter(a.Ft),[l]=a.Tt(o,n,n),u=(l[0]?.[s]?.cell)?.hasHeader()??!1,d=u?c.slice(1):c;d.length<=1||(d.sort((t,n)=>{let r=c.indexOf(t),i=c.indexOf(n),a=l[r]??[],o=l[i]??[],u=a[s],d=o[s],f=u?.cell.getTextContent()??``,p=d?.cell.getTextContent()??``,m=f.localeCompare(p,void 0,{numeric:!0});return e===`asc`?-m:m}),(u?t.f(c[0],`next`):t.Z(o,`next`))?.splice(0,d))})};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{ref:e=>{g.current=e,S.setFloating(e)},style:{...C,opacity:+!!o},className:`floating-top-actions`,children:[(0,_.jsxs)(ZN,{buttonAriaLabel:`Sort column`,buttonClassName:`floating-filter-indicator`,buttonIconClassName:`bi bi-filter-left`,hideChevron:!0,children:[(0,_.jsx)(Z,{className:`item`,onClick:()=>A(`desc`),children:`Sort Ascending`}),(0,_.jsx)(Z,{className:`item`,onClick:()=>A(`asc`),children:`Sort Descending`})]}),(0,_.jsx)(`button`,{className:`floating-add-indicator`,"aria-label":`Add column`,type:`button`,onClick:O,children:(0,_.jsx)(`i`,{className:`bi bi-plus`})})]}),(0,_.jsx)(`button`,{ref:e=>{v.current=e,T.setFloating(e)},style:{...E,opacity:+!!c},className:`floating-add-indicator`,"aria-label":`Add row`,type:`button`,onClick:k,children:(0,_.jsx)(`i`,{className:`bi bi-plus`})})]})}function dR({anchorElem:e=document.body}){return l.t()?(0,v.createPortal)((0,_.jsx)(uR,{anchorElem:e}),e):null}function fR(e){return[e.getKey(),e.getTextContent(),e.getTag()]}function pR(e,t,n){if(t===null)return n;let r=fR(t),i=[];if(e===null){if(n.length>0&&n[0][0]===t.__key)return n;i=[r,...n]}else for(let a=0;a<n.length;a++){let o=n[a][0];if(i.push(n[a]),o===e.getKey()&&o!==t.getKey()){if(a+1<n.length&&n[a+1][0]===t.__key)return n;i.push(r)}}return i}function mR(e,t){let n=[];for(let r of t)r[0]!==e&&n.push(r);return n}function hR(e,t){let n=[];for(let r of t)r[0]===e.getKey()?n.push(fR(e)):n.push(r);return n}function gR(e,t,n){let r=[],i=fR(t);e||r.push(i);for(let a of n)a[0]!==t.getKey()&&(r.push(a),e&&a[0]===e.getKey()&&r.push(i));return r}function _R(e){let t=n.w(e);for(;t!==null&&!a.Qt(t);)t=n.w(t);return t}function vR({children:e}){let[n,r]=(0,h.useState)([]),[i]=t.oi();return(0,h.useEffect)(()=>{let e=[];i.read(`latest`,()=>{let n=r=>{for(let i of r.getChildren())a.Qt(i)?e.push([i.getKey(),i.getTextContent(),i.getTag()]):t.vt(i)&&n(i)};n(t.Dr()),r(e)});let n=i.registerUpdateListener(({editorState:n,dirtyElements:i})=>{n.read(()=>{let n=i=>{for(let o of i.getChildren())a.Qt(o)?(e=gR(_R(o),o,e),r(e)):t.vt(o)&&n(o)};t.Dr().getChildren().forEach(e=>{t.vt(e)&&i.get(e.__key)&&n(e)})})}),o=i.registerMutationListener(a.tn,n=>{i.read(`latest`,()=>{for(let[r,i]of n)if(i===`created`){let n=t.Ht(r);a.Qt(n)&&(e=pR(_R(n),n,e))}else if(i===`destroyed`)e=mR(r,e);else if(i===`updated`){let n=t.Ht(r);a.Qt(n)&&(e=gR(_R(n),n,e))}r(e)})},{skipInitialization:!0}),s=i.registerMutationListener(t.Wt,n=>{i.read(`latest`,()=>{for(let[i,o]of n)if(o===`updated`){let n=t.Ht(i);if(n!==null){let t=n.getParentOrThrow();a.Qt(t)&&(e=hR(t,e),r(e))}}})},{skipInitialization:!0});return()=>{o(),s(),n()}},[i]),e(n,i)}var yR=624;function bR(e){if(e===`h2`)return`heading2`;if(e===`h3`)return`heading3`}function xR(e){let t=e?.getClientRects()[0].y;return t>=yR&&t<=633}function SR(e){return e?.getClientRects()[0].y<yR}function CR(e){return e?.getClientRects()[0].y>=633}function wR({tableOfContents:e}){let[n,r]=(0,h.useState)(``),i=(0,h.useRef)(0),[a]=t.oi();function o(e,t){a.getEditorState().read(()=>{let n=a.getElementByKey(e);n!==null&&(n.scrollIntoView({behavior:`smooth`,block:`center`}),r(e),i.current=t)})}return(0,h.useEffect)(()=>{function t(){if(e.length!==0&&i.current<e.length-1){let t=a.getElementByKey(e[i.current][0]);if(t!==null){if(CR(t)){for(;t!==null&&CR(t)&&i.current>0;){let n=a.getElementByKey(e[i.current-1][0]);n!==null&&(SR(n)||CR(n))&&i.current--,t=n}let n=e[i.current][0];r(n)}else if(SR(t)){for(;t!==null&&SR(t)&&i.current<e.length-1;){let n=a.getElementByKey(e[i.current+1][0]);n!==null&&(xR(n)||SR(n))&&i.current++,t=n}let n=e[i.current][0];r(n)}}}else i.current=0}let n;function o(e,t){clearTimeout(n),n=setTimeout(e,t)}function s(){o(t,10)}return document.addEventListener(`scroll`,s),()=>document.removeEventListener(`scroll`,s)},[e,a]),(0,_.jsx)(`div`,{className:`table-of-contents`,children:(0,_.jsx)(`ul`,{className:`headings`,children:e.map(([e,t,r],i)=>i===0?(0,_.jsxs)(`div`,{className:`normal-heading-wrapper`,children:[(0,_.jsx)(`div`,{className:`first-heading`,onClick:()=>o(e,i),role:`button`,tabIndex:0,children:(``+t).length>20?t.substring(0,20)+`...`:t}),(0,_.jsx)(`br`,{})]},e):(0,_.jsx)(`div`,{className:`normal-heading-wrapper ${n===e?`selected-heading-wrapper`:``}`,children:(0,_.jsx)(`div`,{onClick:()=>o(e,i),role:`button`,className:bR(r),tabIndex:0,children:(0,_.jsx)(`li`,{className:`normal-heading ${n===e?`selected-heading`:``}
1022
- `,children:(``+t).length>27?t.substring(0,27)+`...`:t})})},e))})})}function TR(){return(0,_.jsx)(vR,{children:e=>(0,_.jsx)(wR,{tableOfContents:e})})}var ER=`PlaygroundEditorTheme__tableScrollableWrapper`,DR=`PlaygroundEditorTheme__tableScrollRight`,OR=`PlaygroundEditorTheme__tableScrollLeft`,kR=`PlaygroundEditorTheme__tableScrollMiddle`;function AR(e){let t=e.scrollWidth>e.clientWidth,n=e.scrollLeft+e.clientWidth>=e.scrollWidth-1,r=e.scrollLeft<=1;e.classList.remove(DR),e.classList.remove(OR),e.classList.remove(kR),t&&(!r&&!n?e.classList.add(kR):r&&!n?e.classList.add(DR):!r&&n&&e.classList.add(OR))}function jR(){let[e]=t.oi();return(0,h.useEffect)(()=>{let t=e.getRootElement();if(!t)return;let n=()=>{t.querySelectorAll(`.${ER}`).forEach(AR)};n();let r=new MutationObserver(()=>{n()});r.observe(t,{childList:!0,subtree:!0});let i=new ResizeObserver(()=>{n()}),a=new Map,o=e=>{if(a.has(e))return;let t=()=>{AR(e)};e.addEventListener(`scroll`,t,{passive:!0}),a.set(e,t)};t.querySelectorAll(`.${ER}`).forEach(e=>{i.observe(e),o(e)});let s=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e instanceof HTMLElement&&(e.classList.contains(ER)&&(i.observe(e),o(e),AR(e)),e.querySelectorAll(`.${ER}`).forEach(e=>{i.observe(e),o(e),AR(e)}))})})});return s.observe(t,{childList:!0,subtree:!0}),()=>{r.disconnect(),i.disconnect(),s.disconnect(),a.forEach((e,t)=>{t.removeEventListener(`scroll`,e)}),a.clear()}},[e]),null}var MR=`Khmer BibleNote Study: Genesis 1`,NR=`(KJV) Genesis 1:1-3`,PR=`(1): In the beginning God created the heaven and the earth. (2): And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters. (3): And God said, Let there be light: and there was light.`,FR=`fff825ad-31e8-4843-a7dc-cd82e9878d73`,IR=`00000000-0000-4000-8000-000000000117`,LR=`default-genesis-light-thread`,RR=`default-genesis-light-comment`,zR=new Date(2026,4,9,9).getTime(),BR=`default-genesis-block-text-link`,VR=`Block link source: God speaks light into the first day.`,HR=`Block link target: Application notes trace that light into prayer.`,UR=`afVN-7vY0KA`;function WR(e,n){let r=t.D(e);return n.forEach(e=>{r.toggleFormat(e)}),r}function GR(...e){return t.Ar().append(...e)}function KR(e,n){return a.rn(e).append(t.D(n))}function qR(...e){return Ht().append(...e)}function JR(e,...t){return Ht(e).append(...t)}function YR(e,n=a.Ht.NO_STATUS){return a.Gt(n).append(GR(t.D(e)))}function XR(){return a.O(NR,NR,`kjv-genesis-1-1-3`,`bible-verse`,PR)}function ZR(e){return a.b([LR]).append(t.D(e))}function QR(){Wi([{comments:[{author:`BibleNote`,content:`Connect this phrase to Genesis 1:3, creation light, and the Khmer application note.`,deleted:!1,id:RR,timeStamp:zR,type:`comment`}],id:LR,quote:`Let there be light`,quoteSegments:[{text:`Let there be light`}],type:`thread`}]),tr([{from:{anchor:{offset:0,path:[9,0]},blockPaths:[[9]],focus:{offset:55,path:[9,0]}},id:BR,kind:`direction-to`,to:{anchor:{offset:0,path:[10,0]},blockPaths:[[10]],focus:{offset:66,path:[10,0]}}}])}function $R(){let e=a.en().append(XR(),t.Bt(),t.D(PR)),n=rM(!0).append(fM().append(GR(XR())),sM().append(GR(t.D(PR)))),r=qt(`bullet`).append(qR(WR(`Created`,[`bold`]),t.D(` names God as the first actor and sets the whole note under worship.`)),qR(WR(`Without form, and void`,[`italic`]),t.D(` marks the need for order before beauty appears.`)),qR(WR(`Let there be light`,[`underline`]),t.D(` becomes the first quoted command to trace through the study.`))),i=qt(`number`).append(qR(t.D(`Read the passage aloud in KJV and Khmer.`)),qR(t.D(`Tag people, places, and Bible references while outlining.`)),qR(t.D(`Turn observations into application and prayer.`))),o=qt(`check`).append(JR(!0,t.D(`KJV quotation added`)),JR(!1,t.D(`Khmer translation note added`)),JR(!1,t.D(`Map, image, or drawing attached`)),JR(!1,t.D(`Final outline ready for sharing`))),c=a.Vt().append(a.Pt().append(YR(`Layer`,a.Ht.COLUMN),YR(`Current note`,a.Ht.COLUMN),YR(`Next action`,a.Ht.COLUMN)),a.Pt().append(YR(`Scripture`),YR(`Genesis 1:1-3, KJV`),YR(`Compare Khmer wording`)),a.Pt().append(YR(`Person`),YR(`Moses`),YR(`Add author note`)),a.Pt().append(YR(`Place`),YR(`Jerusalem`),YR(`Trace worship echoes`))),l=Ie(`markdown`).append(t.D([`# Genesis 1 Study`,`^Genesis 1:1-3`,`@Moses #Jerusalem`,`- creation, light, word, worship`].join(`
1023
- `))),u=eP(`1fr 1fr`).append(aP().append(KR(`h3`,`Observation`),GR(t.D(`God creates before anything else is named, and the first command brings light.`))),aP().append(KR(`h3`,`Application`),GR(t.D(`Begin the study by naming what is dark, empty, and waiting for the word of God.`)))),p=rM(!0).append(fM().append(GR(t.D(`Sermon seed`))),sM().append(GR(t.D(`Creation begins with God, moves by the Spirit, and answers to the spoken word.`))));return[KR(`h1`,MR),e,n,KR(`h2`,`Observation Notes`),GR(WR(`Theme: `,[`bold`]),t.D(`God `),WR(`creates`,[`bold`]),t.D(`, orders, and speaks light into darkness. Keep `),WR(`uncertain wording`,[`highlight`]),t.D(` visible, mark `),WR(`discarded angles`,[`strikethrough`]),t.D(`, and preserve short tags like `),WR(`creation-light`,[`code`]),t.D(`.`)),GR(t.D(`Cross-reference `),a.O(`Moses`,`@Moses`,FR,`mention`),t.D(`, `),a.O(`Jerusalem`,`Jerusalem`,IR,`location`),t.D(`, and `),XR(),t.D(` before adding the Khmer translation note.`)),GR(t.D(`Prepared on `),f.u(new Date(2026,4,9)),t.D(` with this structure marker: `),d.r(`\\text{day}_1 = \\text{light} + \\text{separation}`,!0),t.D(`.`)),GR(t.D(`Source note: compare the `),a.Y(`https://www.kingjamesbibleonline.org/Genesis-Chapter-1/`).append(t.D(`KJV text for Genesis 1`)),t.D(` while drafting local Khmer notes.`)),GR(t.D(`Comment anchor: `),ZR(`Let there be light`),t.D(` is the phrase to revisit while applying the passage.`)),GR(t.D(VR)),GR(t.D(HR)),r,KR(`h2`,`Study Flow`),i,o,KR(`h2`,`Study Tracker`),c,KR(`h2`,`Reference Scratchpad`),l,KR(`h2`,`Media Notes`),GR(t.D(`Video reference: `),a.Y(`https://youtu.be/afVN-7vY0KA`).append(t.D(`https://youtu.be/afVN-7vY0KA`))),Dx(UR),s.t(48,144),u,p,bi(),GR(t.D(`Prayer: Lord, speak light into every empty place and make this note faithful, clear, and useful.`))]}function ez(){t.Dr().append(...$R()),QR()}function tz(){t.Dr().getFirstChild()===null&&ez()}function nz(e,n){e.update(()=>{t.Dr().clear(),n?.emptyEditor||ez()}),e.dispatchCommand(t.dt,void 0)}var rz={AElig:`Æ`,AMP:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:`⁡`,Aring:`Å`,Ascr:`𝒜`,Assign:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,Barv:`⫧`,Barwed:`⌆`,Bcy:`Б`,Because:`∵`,Bernoullis:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,Bscr:`ℬ`,Bumpeq:`≎`,CHcy:`Ч`,COPY:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,Cayleys:`ℭ`,Ccaron:`Č`,Ccedil:`Ç`,Ccirc:`Ĉ`,Cconint:`∰`,Cdot:`Ċ`,Cedilla:`¸`,CenterDot:`·`,Cfr:`ℭ`,Chi:`Χ`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,Colon:`∷`,Colone:`⩴`,Congruent:`≡`,Conint:`∯`,ContourIntegral:`∮`,Copf:`ℂ`,Coproduct:`∐`,CounterClockwiseContourIntegral:`∳`,Cross:`⨯`,Cscr:`𝒞`,Cup:`⋓`,CupCap:`≍`,DD:`ⅅ`,DDotrahd:`⤑`,DJcy:`Ђ`,DScy:`Ѕ`,DZcy:`Џ`,Dagger:`‡`,Darr:`↡`,Dashv:`⫤`,Dcaron:`Ď`,Dcy:`Д`,Del:`∇`,Delta:`Δ`,Dfr:`𝔇`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,Diamond:`⋄`,DifferentialD:`ⅆ`,Dopf:`𝔻`,Dot:`¨`,DotDot:`⃜`,DotEqual:`≐`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,Downarrow:`⇓`,Dscr:`𝒟`,Dstrok:`Đ`,ENG:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,Equilibrium:`⇌`,Escr:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,ExponentialE:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,Fopf:`𝔽`,ForAll:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,GT:`>`,Gamma:`Γ`,Gammad:`Ϝ`,Gbreve:`Ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,Gcy:`Г`,Gdot:`Ġ`,Gfr:`𝔊`,Gg:`⋙`,Gopf:`𝔾`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,Gt:`≫`,HARDcy:`Ъ`,Hacek:`ˇ`,Hat:`^`,Hcirc:`Ĥ`,Hfr:`ℌ`,HilbertSpace:`ℋ`,Hopf:`ℍ`,HorizontalLine:`─`,Hscr:`ℋ`,Hstrok:`Ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,IEcy:`Е`,IJlig:`IJ`,IOcy:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Igrave:`Ì`,Im:`ℑ`,Imacr:`Ī`,ImaginaryI:`ⅈ`,Implies:`⇒`,Int:`∬`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,LT:`<`,Lacute:`Ĺ`,Lambda:`Λ`,Lang:`⟪`,Laplacetrf:`ℒ`,Larr:`↞`,Lcaron:`Ľ`,Lcedil:`Ļ`,Lcy:`Л`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessLess:`⪡`,LessSlantEqual:`⩽`,LessTilde:`≲`,Lfr:`𝔏`,Ll:`⋘`,Lleftarrow:`⇚`,Lmidot:`Ŀ`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lopf:`𝕃`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,Lscr:`ℒ`,Lsh:`↰`,Lstrok:`Ł`,Lt:`≪`,Map:`⤅`,Mcy:`М`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,MinusPlus:`∓`,Mopf:`𝕄`,Mscr:`ℳ`,Mu:`Μ`,NJcy:`Њ`,Nacute:`Ń`,Ncaron:`Ň`,Ncedil:`Ņ`,Ncy:`Н`,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
1024
- `,Nfr:`𝔑`,NoBreak:`⁠`,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,Not:`⫬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,Nscr:`𝒩`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacute:`Ó`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslash:`Ø`,Otilde:`Õ`,Otimes:`⨷`,Ouml:`Ö`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Poincareplane:`ℌ`,Popf:`ℙ`,Pr:`⪻`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Prime:`″`,Product:`∏`,Proportion:`∷`,Proportional:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUOT:`"`,Qfr:`𝔔`,Qopf:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,REG:`®`,Racute:`Ŕ`,Rang:`⟫`,Rarr:`↠`,Rarrtl:`⤖`,Rcaron:`Ř`,Rcedil:`Ŗ`,Rcy:`Р`,Re:`ℜ`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,Rfr:`ℜ`,Rho:`Ρ`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,Rightarrow:`⇒`,Ropf:`ℝ`,RoundImplies:`⥰`,Rrightarrow:`⇛`,Rscr:`ℛ`,Rsh:`↱`,RuleDelayed:`⧴`,SHCHcy:`Щ`,SHcy:`Ш`,SOFTcy:`Ь`,Sacute:`Ś`,Sc:`⪼`,Scaron:`Š`,Scedil:`Ş`,Scirc:`Ŝ`,Scy:`С`,Sfr:`𝔖`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,ShortRightArrow:`→`,ShortUpArrow:`↑`,Sigma:`Σ`,SmallCircle:`∘`,Sopf:`𝕊`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Sscr:`𝒮`,Star:`⋆`,Sub:`⋐`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Sup:`⋑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,THORN:`Þ`,TRADE:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,Theta:`Θ`,ThickSpace:`  `,ThinSpace:` `,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,Topf:`𝕋`,TripleDot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,Ugrave:`Ù`,Umacr:`Ū`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,Uopf:`𝕌`,UpArrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,UpEquilibrium:`⥮`,UpTee:`⊥`,UpTeeArrow:`↥`,Uparrow:`⇑`,Updownarrow:`⇕`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,Upsilon:`Υ`,Uring:`Ů`,Uscr:`𝒰`,Utilde:`Ũ`,Uuml:`Ü`,VDash:`⊫`,Vbar:`⫫`,Vcy:`В`,Vdash:`⊩`,Vdashl:`⫦`,Vee:`⋁`,Verbar:`‖`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,Vopf:`𝕍`,Vscr:`𝒱`,Vvdash:`⊪`,Wcirc:`Ŵ`,Wedge:`⋀`,Wfr:`𝔚`,Wopf:`𝕎`,Wscr:`𝒲`,Xfr:`𝔛`,Xi:`Ξ`,Xopf:`𝕏`,Xscr:`𝒳`,YAcy:`Я`,YIcy:`Ї`,YUcy:`Ю`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,ZeroWidthSpace:`​`,Zeta:`Ζ`,Zfr:`ℨ`,Zopf:`ℤ`,Zscr:`𝒵`,aacute:`á`,abreve:`ă`,ac:`∾`,acE:`∾̳`,acd:`∿`,acirc:`â`,acute:`´`,acy:`а`,aelig:`æ`,af:`⁡`,afr:`𝔞`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,amp:`&`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,aogon:`ą`,aopf:`𝕒`,ap:`≈`,apE:`⩰`,apacir:`⩯`,ape:`≊`,apid:`≋`,apos:`'`,approx:`≈`,approxeq:`≊`,aring:`å`,ascr:`𝒶`,ast:`*`,asymp:`≈`,asympeq:`≍`,atilde:`ã`,auml:`ä`,awconint:`∳`,awint:`⨑`,bNot:`⫭`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,barvee:`⊽`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,beta:`β`,beth:`ℶ`,between:`≬`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bnot:`⌐`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxDL:`╗`,boxDR:`╔`,boxDl:`╖`,boxDr:`╓`,boxH:`═`,boxHD:`╦`,boxHU:`╩`,boxHd:`╤`,boxHu:`╧`,boxUL:`╝`,boxUR:`╚`,boxUl:`╜`,boxUr:`╙`,boxV:`║`,boxVH:`╬`,boxVL:`╣`,boxVR:`╠`,boxVh:`╫`,boxVl:`╢`,boxVr:`╟`,boxbox:`⧉`,boxdL:`╕`,boxdR:`╒`,boxdl:`┐`,boxdr:`┌`,boxh:`─`,boxhD:`╥`,boxhU:`╨`,boxhd:`┬`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxuL:`╛`,boxuR:`╘`,boxul:`┘`,boxur:`└`,boxv:`│`,boxvH:`╪`,boxvL:`╡`,boxvR:`╞`,boxvh:`┼`,boxvl:`┤`,boxvr:`├`,bprime:`‵`,breve:`˘`,brvbar:`¦`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,bumpeq:`≏`,cacute:`ć`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,ccaps:`⩍`,ccaron:`č`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cedil:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,cfr:`𝔠`,chcy:`ч`,check:`✓`,checkmark:`✓`,chi:`χ`,cir:`○`,cirE:`⧃`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,clubs:`♣`,clubsuit:`♣`,colon:`:`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,conint:`∮`,copf:`𝕔`,coprod:`∐`,copy:`©`,copysr:`℗`,crarr:`↵`,cross:`✗`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cup:`∪`,cupbrcap:`⩈`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dArr:`⇓`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,darr:`↓`,dash:`‐`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,dcaron:`ď`,dcy:`д`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,ddotseq:`⩷`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,dharl:`⇃`,dharr:`⇂`,diam:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,dopf:`𝕕`,dot:`˙`,doteq:`≐`,doteqdot:`≑`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,downarrow:`↓`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,dscr:`𝒹`,dscy:`ѕ`,dsol:`⧶`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,dzcy:`џ`,dzigrarr:`⟿`,eDDot:`⩷`,eDot:`≑`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`≖`,ecirc:`ê`,ecolon:`≕`,ecy:`э`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,efr:`𝔢`,eg:`⪚`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,emacr:`ē`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,emsp13:` `,emsp14:` `,emsp:` `,eng:`ŋ`,ensp:` `,eogon:`ę`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,equals:`=`,equest:`≟`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erDot:`≓`,erarr:`⥱`,escr:`ℯ`,esdot:`≐`,esim:`≂`,eta:`η`,eth:`ð`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,ffr:`𝔣`,filig:`fi`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,fopf:`𝕗`,forall:`∀`,fork:`⋔`,forkv:`⫙`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:`𝒻`,gE:`≧`,gEl:`⪌`,gacute:`ǵ`,gamma:`γ`,gammad:`ϝ`,gap:`⪆`,gbreve:`ğ`,gcirc:`ĝ`,gcy:`г`,gdot:`ġ`,ge:`≥`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,gfr:`𝔤`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,gjcy:`ѓ`,gl:`≷`,glE:`⪒`,gla:`⪥`,glj:`⪤`,gnE:`≩`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,gopf:`𝕘`,grave:"`",gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,hArr:`⇔`,hairsp:` `,half:`½`,hamilt:`ℋ`,hardcy:`ъ`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,hbar:`ℏ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:`𝔥`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:`𝕙`,horbar:`―`,hscr:`𝒽`,hslash:`ℏ`,hstrok:`ħ`,hybull:`⁃`,hyphen:`‐`,iacute:`í`,ic:`⁣`,icirc:`î`,icy:`и`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,ijlig:`ij`,imacr:`ī`,image:`ℑ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,int:`∫`,intcal:`⊺`,integers:`ℤ`,intercal:`⊺`,intlarhk:`⨗`,intprod:`⨼`,iocy:`ё`,iogon:`į`,iopf:`𝕚`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:`𝒾`,isin:`∈`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,itilde:`ĩ`,iukcy:`і`,iuml:`ï`,jcirc:`ĵ`,jcy:`й`,jfr:`𝔧`,jmath:`ȷ`,jopf:`𝕛`,jscr:`𝒿`,jsercy:`ј`,jukcy:`є`,kappa:`κ`,kappav:`ϰ`,kcedil:`ķ`,kcy:`к`,kfr:`𝔨`,kgreen:`ĸ`,khcy:`х`,kjcy:`ќ`,kopf:`𝕜`,kscr:`𝓀`,lAarr:`⇚`,lArr:`⇐`,lAtail:`⤛`,lBarr:`⤎`,lE:`≦`,lEg:`⪋`,lHar:`⥢`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,lambda:`λ`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,laquo:`«`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,lcaron:`ľ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,leftarrow:`←`,leftarrowtail:`↢`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,leftthreetimes:`⋋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,lessgtr:`≶`,lesssim:`≲`,lfisht:`⥼`,lfloor:`⌊`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,ljcy:`љ`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,llhard:`⥫`,lltri:`◺`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnE:`≨`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,longleftrightarrow:`⟷`,longmapsto:`⟼`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,lstrok:`ł`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,measuredangle:`∡`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,mopf:`𝕞`,mp:`∓`,mscr:`𝓂`,mstpos:`∾`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nGg:`⋙̸`,nGt:`≫⃒`,nGtv:`≫̸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nLl:`⋘̸`,nLt:`≪⃒`,nLtv:`≪̸`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,nabla:`∇`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,ncaron:`ň`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,ncy:`н`,ndash:`–`,ne:`≠`,neArr:`⇗`,nearhk:`⤤`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,nexist:`∄`,nexists:`∄`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,ngsim:`≵`,ngt:`≯`,ngtr:`≯`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,njcy:`њ`,nlArr:`⇍`,nlE:`≦̸`,nlarr:`↚`,nldr:`‥`,nle:`≰`,nleftarrow:`↚`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nlsim:`≴`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nmid:`∤`,nopf:`𝕟`,not:`¬`,notin:`∉`,notinE:`⋹̸`,notindot:`⋵̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvDash:`⊭`,nvHarr:`⤄`,nvap:`≍⃒`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwArr:`⇖`,nwarhk:`⤣`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,oS:`Ⓢ`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,ocirc:`ô`,ocy:`о`,odash:`⊝`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,omacr:`ō`,omega:`ω`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,oopf:`𝕠`,opar:`⦷`,operp:`⦹`,oplus:`⊕`,or:`∨`,orarr:`↻`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oscr:`ℴ`,oslash:`ø`,osol:`⊘`,otilde:`õ`,otimes:`⊗`,otimesas:`⨶`,ouml:`ö`,ovbar:`⌽`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,pfr:`𝔭`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,pointint:`⨕`,popf:`𝕡`,pound:`£`,pr:`≺`,prE:`⪳`,prap:`⪷`,prcue:`≼`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,prime:`′`,primes:`ℙ`,prnE:`⪵`,prnap:`⪹`,prnsim:`⋨`,prod:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,pscr:`𝓅`,psi:`ψ`,puncsp:` `,qfr:`𝔮`,qint:`⨌`,qopf:`𝕢`,qprime:`⁗`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,rAarr:`⇛`,rArr:`⇒`,rAtail:`⤜`,rBarr:`⤏`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,rcaron:`ř`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,reg:`®`,rfisht:`⥽`,rfloor:`⌋`,rfr:`𝔯`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,rho:`ρ`,rhov:`ϱ`,rightarrow:`→`,rightarrowtail:`↣`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,rightthreetimes:`⋌`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:`‏`,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,rsaquo:`›`,rscr:`𝓇`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,ruluhar:`⥨`,rx:`℞`,sacute:`ś`,sbquo:`‚`,sc:`≻`,scE:`⪴`,scap:`⪸`,scaron:`š`,sccue:`≽`,sce:`⪰`,scedil:`ş`,scirc:`ŝ`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,seArr:`⇘`,searhk:`⤥`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shortmid:`∣`,shortparallel:`∥`,shy:`­`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,square:`□`,squarf:`▪`,squf:`▪`,srarr:`→`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,subE:`⫅`,subdot:`⪽`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,sum:`∑`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,supE:`⫆`,supdot:`⪾`,supdsub:`⫘`,supe:`⊇`,supedot:`⫄`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swArr:`⇙`,swarhk:`⤦`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,target:`⌖`,tau:`τ`,tbrk:`⎴`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,tfr:`𝔱`,there4:`∴`,therefore:`∴`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,thinsp:` `,thkap:`≈`,thksim:`∼`,thorn:`þ`,tilde:`˜`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,tscr:`𝓉`,tscy:`ц`,tshcy:`ћ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,uArr:`⇑`,uHar:`⥣`,uacute:`ú`,uarr:`↑`,ubrcy:`ў`,ubreve:`ŭ`,ucirc:`û`,ucy:`у`,udarr:`⇅`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,ufr:`𝔲`,ugrave:`ù`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,uml:`¨`,uogon:`ų`,uopf:`𝕦`,uparrow:`↑`,updownarrow:`↕`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,upsi:`υ`,upsih:`ϒ`,upsilon:`υ`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,uuml:`ü`,uwangle:`⦧`,vArr:`⇕`,vBar:`⫨`,vBarv:`⫩`,vDash:`⊨`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vcy:`в`,vdash:`⊢`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,vert:`|`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,vzigzag:`⦚`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,wfr:`𝔴`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeetrf:`ℨ`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:`‍`,zwnj:`‌`},iz={amp:{category:`XML`,description:`ampersand`},AMP:{category:`XML`,description:`ampersand`},lt:{category:`XML`,description:`less-than sign`},LT:{category:`XML`,description:`less-than sign`},gt:{category:`XML`,description:`greater-than sign`},GT:{category:`XML`,description:`greater-than sign`},quot:{category:`XML`,description:`quotation mark`},QUOT:{category:`XML`,description:`quotation mark`},apos:{category:`XML`,description:`apostrophe`},nbsp:{category:`Spacing`,description:`non-breaking space`},NonBreakingSpace:{category:`Spacing`,description:`non-breaking space`},copy:{category:`Legal`,description:`copyright sign`},COPY:{category:`Legal`,description:`copyright sign`},reg:{category:`Legal`,description:`registered sign`},REG:{category:`Legal`,description:`registered sign`},trade:{category:`Legal`,description:`trademark sign`},TRADE:{category:`Legal`,description:`trademark sign`},pi:{category:`Greek`,description:`Greek small letter pi`},rarr:{category:`Arrows`,description:`rightwards arrow`},rightarrow:{category:`Arrows`,description:`rightwards arrow`},RightArrow:{category:`Arrows`,description:`rightwards arrow`}};function az(e){return e.replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/([A-Z]+)([A-Z][a-z])/g,`$1 $2`).replace(/_/g,` `).toLowerCase()}var oz=Object.entries(rz).reduce((e,[t,n])=>{let r=iz[t],i=r?.description??az(t),a=`${n}\u0000${i}`,o=e.get(a);return o===void 0?(e.set(a,{category:r?.category??`HTML`,character:n,description:i,entities:[`&${t};`]}),e):(o.entities.push(`&${t};`),e)},new Map),sz=Array.from(oz.values()).map(e=>({...e,entities:e.entities})),cz=96,lz=12,uz=`lexical-playground-insert-character-picker`,dz=Ry.map(e=>({category:e.category,description:e.description,id:`emoji:${e.description}:${e.emoji}`,keywords:[e.description,e.category,...e.aliases,...e.tags].join(` `).toLowerCase(),label:e.emoji,meta:e.aliases.map(e=>`:${e}:`).join(` `),value:e.emoji})),fz=sz.map(e=>({category:e.category,description:e.description,id:`html:${e.description}:${e.character}:${e.entities.join(`|`)}`,keywords:[e.description,e.category,e.character,...e.entities].join(` `).toLowerCase(),label:e.character,meta:e.entities.join(` `),value:e.character})),pz=new Map([...dz,...fz].map(e=>[e.id,e]));function mz(e,t,n){let r=t.trim().toLowerCase();if(r.length===0){let t=new Set(e.map(e=>e.id)),r=n.map(e=>pz.get(e)).filter(e=>e!==void 0&&t.has(e.id)),i=new Set(r.map(e=>e.id));return[...r,...e.filter(e=>!i.has(e.id))].slice(0,cz)}return e.filter(e=>e.keywords.includes(r)).slice(0,cz)}function hz(){let e=_z();if(e===null)return{activeTab:`emoji`,recentOptionIds:[]};try{let t=e.getItem(uz);if(t===null)return{activeTab:`emoji`,recentOptionIds:[]};let n=JSON.parse(t);return{activeTab:n.activeTab===`html`||n.activeTab===`emoji`?n.activeTab:`emoji`,recentOptionIds:Array.isArray(n.recentOptionIds)?n.recentOptionIds.filter(e=>typeof e==`string`&&pz.has(e)):[]}}catch{return e.removeItem(uz),{activeTab:`emoji`,recentOptionIds:[]}}}function gz(e){let t=_z();t!==null&&t.setItem(uz,JSON.stringify(e))}function _z(){return i.d()}function vz({activeEditor:e,onClose:n}){let[r,i]=(0,h.useState)(hz),[a,o]=(0,h.useState)(``),{activeTab:s,recentOptionIds:c}=r,l=s===`emoji`?dz:fz,u=(0,h.useMemo)(()=>mz(l,a,c),[l,a,c]),d=e=>{let t={...r,activeTab:e};i(t),gz(t)},f=r=>{e.update(()=>{let e=t.tt();t.bn(e)&&e.insertText(r.value)}),gz({activeTab:s,recentOptionIds:[r.id,...c.filter(e=>e!==r.id)].slice(0,lz)}),n()};return(0,_.jsxs)(`div`,{className:`InsertCharacterDialog`,children:[(0,_.jsxs)(`div`,{className:`InsertCharacterDialog__controls`,children:[(0,_.jsx)(`input`,{"aria-label":`Search emoji and HTML characters`,className:`InsertCharacterDialog__search form-control`,onChange:e=>o(e.target.value),placeholder:s===`emoji`?`Search emoji by name, alias, or tag`:`Search by character, entity, or name`,type:`search`,value:a}),(0,_.jsxs)(`div`,{className:`InsertCharacterDialog__tabs`,role:`group`,children:[(0,_.jsx)(`button`,{"aria-pressed":s===`emoji`,className:`InsertCharacterDialog__tab`,onClick:()=>d(`emoji`),type:`button`,children:`Emoji`}),(0,_.jsx)(`button`,{"aria-pressed":s===`html`,className:`InsertCharacterDialog__tab`,onClick:()=>d(`html`),type:`button`,children:`HTML`})]})]}),(0,_.jsx)(`div`,{className:`InsertCharacterDialog__results`,children:u.length===0?(0,_.jsx)(`div`,{className:`InsertCharacterDialog__empty`,children:`No matches`}):u.map(e=>(0,_.jsxs)(`button`,{"aria-label":`Insert ${e.description}`,className:`InsertCharacterDialog__item`,onClick:()=>f(e),title:`${e.description} ${e.meta}`,type:`button`,children:[(0,_.jsx)(`span`,{className:`InsertCharacterDialog__symbol`,children:e.label}),(0,_.jsxs)(`span`,{className:`InsertCharacterDialog__meta`,children:[(0,_.jsx)(`span`,{className:`InsertCharacterDialog__name`,children:e.description}),(0,_.jsx)(`span`,{className:`InsertCharacterDialog__entities`,children:e.meta||e.category})]})]},e.id))})]})}var yz=vt().filter(e=>[`c`,`clike`,`cpp`,`css`,`html`,`java`,`js`,`javascript`,`markdown`,`objc`,`objective-c`,`plain`,`powershell`,`py`,`python`,`rust`,`sql`,`swift`,`typescript`,`xml`].includes(e[0])),bz=Rj().filter(e=>[`c`,`clike`,`cpp`,`css`,`html`,`java`,`js`,`javascript`,`markdown`,`objc`,`objective-c`,`plain`,`powershell`,`py`,`python`,`rust`,`sql`,`typescript`,`xml`].includes(e[0])),xz=zj().filter(e=>[`catppuccin-latte`,`everforest-light`,`github-light`,`gruvbox-light-medium`,`kanagawa-lotus`,`dark-plus`,`light-plus`,`material-theme-lighter`,`min-light`,`one-light`,`rose-pine-dawn`,`slack-ochin`,`snazzy-light`,`solarized-light`,`vitesse-light`].includes(e[0])),Sz=[],Cz=[[`10px`,`10px`],[`11px`,`11px`],[`12px`,`12px`],[`13px`,`13px`],[`14px`,`14px`],[`15px`,`15px`],[`16px`,`16px`],[`17px`,`17px`],[`18px`,`18px`],[`19px`,`19px`],[`20px`,`20px`]],wz={bullet:`bi bi-list-ul icon`,check:`bi bi-check2-square icon`,code:`bi bi-code-slash icon`,h1:`bi bi-type-h1 icon`,h2:`bi bi-type-h2 icon`,h3:`bi bi-type-h3 icon`,h4:`bi bi-type-h4 icon`,h5:`bi bi-type-h5 icon`,h6:`bi bi-type-h6 icon`,number:`bi bi-list-ol icon`,paragraph:`bi bi-text-paragraph icon`,quote:`bi bi-chat-square-quote icon`},Tz={bold:`bi bi-type-bold format`,code:`bi bi-code-slash format`,invisibleCharacters:`invisible-characters-toolbar-icon`,italic:`bi bi-type-italic format`,link:`bi bi-link-45deg format`,redo:`bi bi-arrow-clockwise format`,underline:`bi bi-type-underline format`,undo:`bi bi-arrow-counterclockwise format`},Ez={bgColor:`bi bi-paint-bucket icon`,calendar:`bi bi-calendar icon`,clear:`bi bi-eraser icon`,collapsible:`bi bi-caret-right-fill icon`,columns:`bi bi-columns-gap icon`,diagram:`bi bi-diagram-2 icon`,equation:`bi bi-plus-slash-minus icon`,defaultExample:`bi bi-file-earmark-richtext icon`,fontColor:`bi bi-palette icon`,fontFamily:`bi bi-type icon block-type`,highlight:`bi bi-highlighter icon`,htmlCharacter:`bi bi-code-square icon`,horizontalRule:`bi bi-dash-lg icon`,image:`bi bi-file-earmark-easel icon`,insert:`bi bi-plus icon`,bibleVerse:`bi bi-journal-medical icon`,linkBlock:`bi bi-bezier2 icon`,mentionName:`bi bi-at icon`,pinLocation:`bi bi-pin-map icon`,lowerTransform:`bi bi-alphabet icon`,pageBreak:`bi bi-scissors icon`,poll:`bi bi-card-checklist icon`,sticky:`bi bi-sticky icon`,subscript:`bi bi-subscript icon`,superscript:`bi bi-superscript icon`,table:`bi bi-table icon`,upperTransform:`bi bi-alphabet-uppercase icon`,titleTransform:`bi bi-type icon`};function Dz(e,t){return e?t?`bi bi-text-indent-left icon`:`bi bi-text-indent-right icon`:t?`bi bi-text-indent-right icon`:`bi bi-text-indent-left icon`}var Oz={center:{iconClassName:`bi bi-text-center icon`,iconRTLClassName:`bi bi-text-center icon`,name:`Center Align`},end:{iconClassName:`bi bi-text-right icon`,iconRTLClassName:`bi bi-text-left icon`,name:`End Align`},justify:{iconClassName:`bi bi-justify icon`,iconRTLClassName:`bi bi-justify icon`,name:`Justify Align`},left:{iconClassName:`bi bi-text-left icon`,iconRTLClassName:`bi bi-text-left icon`,name:`Left Align`},right:{iconClassName:`bi bi-text-right icon`,iconRTLClassName:`bi bi-text-right icon`,name:`Right Align`},start:{iconClassName:`bi bi-text-left icon`,iconRTLClassName:`bi bi-text-right icon`,name:`Start Align`}};function kz(e){return e?`active dropdown-item-active`:``}function Az({editor:e,blockType:t,disabled:n=!1}){return(0,_.jsxs)(ZN,{disabled:n,buttonClassName:`toolbar-item block-controls`,buttonIconClassName:wz[t],buttonLabel:D[t],buttonAriaLabel:`Formatting options for text style`,children:[(0,_.jsxs)(Z,{className:`item wide `+kz(t===`paragraph`),onClick:()=>pn(e),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.paragraph}),(0,_.jsx)(`span`,{className:`text`,children:`Normal`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.NORMAL})]}),(0,_.jsxs)(Z,{className:`item wide `+kz(t===`h1`),onClick:()=>mn(e,t,`h1`),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.h1}),(0,_.jsx)(`span`,{className:`text`,children:`Heading 1`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.HEADING1})]}),(0,_.jsxs)(Z,{className:`item wide `+kz(t===`h2`),onClick:()=>mn(e,t,`h2`),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.h2}),(0,_.jsx)(`span`,{className:`text`,children:`Heading 2`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.HEADING2})]}),(0,_.jsxs)(Z,{className:`item wide `+kz(t===`h3`),onClick:()=>mn(e,t,`h3`),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.h3}),(0,_.jsx)(`span`,{className:`text`,children:`Heading 3`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.HEADING3})]}),(0,_.jsxs)(Z,{className:`item wide `+kz(t===`number`),onClick:()=>_n(e,t),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.number}),(0,_.jsx)(`span`,{className:`text`,children:`Numbered List`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.NUMBERED_LIST})]}),(0,_.jsxs)(Z,{className:`item wide `+kz(t===`bullet`),onClick:()=>hn(e,t),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.bullet}),(0,_.jsx)(`span`,{className:`text`,children:`Bullet List`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.BULLET_LIST})]}),(0,_.jsxs)(Z,{className:`item wide `+kz(t===`check`),onClick:()=>gn(e,t),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.check}),(0,_.jsx)(`span`,{className:`text`,children:`Check List`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.CHECK_LIST})]}),(0,_.jsxs)(Z,{className:`item wide `+kz(t===`quote`),onClick:()=>vn(e,t),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.quote}),(0,_.jsx)(`span`,{className:`text`,children:`Quote`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.QUOTE})]}),(0,_.jsxs)(Z,{className:`item wide `+kz(t===`code`),onClick:()=>yn(e,t),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.code}),(0,_.jsx)(`span`,{className:`text`,children:`Code Block`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.CODE_BLOCK})]})]})}function jz(){return(0,_.jsx)(`div`,{className:`divider`})}function Mz({editor:e,fontFamilyOptions:r=o.l,value:i,style:a,disabled:s=!1}){let c=a===`font-family`?r:Cz,l=(0,h.useCallback)(r=>{e.update(()=>{t.pt(t.ft);let e=t.tt();e!==null&&n.M(e,{[a]:r})})},[e,a]),u=a===`font-family`?`Formatting options for font family`:`Formatting options for font size`;return(0,_.jsx)(ZN,{disabled:s,buttonClassName:`toolbar-item `+a,buttonLabel:i,buttonIconClassName:a===`font-family`?Ez.fontFamily:``,buttonAriaLabel:u,children:c.map(e=>{let t=e[0],n=e[1];return(0,_.jsx)(Z,{className:`item ${kz(i===t)} ${a===`font-size`?`fontsize-item`:``}`,onClick:()=>l(t),children:(0,_.jsx)(`span`,{className:`text`,children:n})},t)})})}function Nz({editor:e,value:n,isRTL:r,disabled:i=!1}){let a=Oz[n||`left`];return(0,_.jsxs)(ZN,{disabled:i,buttonLabel:a.name,buttonIconClassName:r?a.iconRTLClassName:a.iconClassName,buttonClassName:`toolbar-item spaced alignment`,buttonAriaLabel:`Formatting options for text alignment`,children:[(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.tr,`left`)},className:`item wide`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Oz.left.iconClassName}),(0,_.jsx)(`span`,{className:`text`,children:`Left Align`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.LEFT_ALIGN})]}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.tr,`center`)},className:`item wide`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Oz.center.iconClassName}),(0,_.jsx)(`span`,{className:`text`,children:`Center Align`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.CENTER_ALIGN})]}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.tr,`right`)},className:`item wide`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Oz.right.iconClassName}),(0,_.jsx)(`span`,{className:`text`,children:`Right Align`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.RIGHT_ALIGN})]}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.tr,`justify`)},className:`item wide`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Oz.justify.iconClassName}),(0,_.jsx)(`span`,{className:`text`,children:`Justify Align`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.JUSTIFY_ALIGN})]}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.tr,`start`)},className:`item wide`,children:[(0,_.jsx)(`i`,{className:r?Oz.start.iconRTLClassName:Oz.start.iconClassName}),(0,_.jsx)(`span`,{className:`text`,children:`Start Align`})]}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.tr,`end`)},className:`item wide`,children:[(0,_.jsx)(`i`,{className:r?Oz.end.iconRTLClassName:Oz.end.iconClassName}),(0,_.jsx)(`span`,{className:`text`,children:`End Align`})]}),(0,_.jsx)(jz,{}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.pr,void 0)},className:`item wide`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Dz(r,!1)}),(0,_.jsx)(`span`,{className:`text`,children:`Outdent`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.OUTDENT})]}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.on,void 0)},className:`item wide`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Dz(r,!0)}),(0,_.jsx)(`span`,{className:`text`,children:`Indent`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.INDENT})]})]})}function Pz(e){let n=e.getKey()===`root`?e:t.B(e,e=>{let n=e.getParent();return n!==null&&t.J(n)});return n===null&&(n=e.getTopLevelElementOrThrow()),n}function Fz({editor:e,extraFontFamilies:c=Sz,activeEditor:l,resolveFilePath:u,setActiveEditor:d,setIsLinkEditMode:f}){let[p,m]=(0,h.useState)(null),[g,v]=(0,h.useState)(!1),[y,b]=ix(),[x,S]=(0,h.useState)(()=>e.isEditable()),{toolbarState:C,updateToolbarState:w}=j(),T=(0,h.useMemo)(()=>o.d(c),[c]),E=(e,n=void 0,r=!1)=>{l.update(()=>{r&&t.pt(t.gn),l.dispatchCommand(e,n)})},O=(e,n=!1)=>E(t.w,e,n),k=(0,h.useCallback)(e=>{l.update(()=>{let n=t.tt();t.bn(n)&&n.insertText(e)})},[l]),A=(0,h.useCallback)(()=>{l.update(()=>{let e=$R(),n=t.tt();if(t.bn(n)||t.Fr(n)){t.W(e);return}t.Dr().append(...e)})},[l]),M=(0,h.useCallback)(e=>{let t=a.Qt(e)?e.getTag():e.getType();t in D&&w(`blockType`,t)},[w]),{setOption:N,settings:{isCodeHighlighted:I,isCodeShiki:L,showInvisibleCharacters:R}}=i.r(),z=(0,h.useCallback)(e=>{if(W(e)){let t=e.getLanguage();w(`codeLanguage`,t?I&&(L?Bj(t):xt(t))||t:``);let n=e.getTheme();w(`codeTheme`,n||``);return}},[w,I,L]),B=(0,h.useCallback)(()=>{let r=t.tt(),i=t.bn(r)&&typeof r.isCollapsed==`function`&&!r.isCollapsed()&&r.getTextContent().replace(/\n/g,``)!==``;if(v(i),t.bn(r)){if(l!==e&&n.y(l)){let e=l.getRootElement();w(`isImageCaption`,!!e?.parentElement?.classList.contains(`media-caption-container`))}else w(`isImageCaption`,!1);let i=r.anchor.getNode(),o=Pz(i),s=o.getKey(),c=l.getElementByKey(s);w(`isRTL`,n.P(r));let u=RF(r),d=u.getParent(),f=a.X(d)||a.X(u);if(w(`isLink`,f),a.Ut(t.B(u,a.Ut))?w(`rootType`,`table`):w(`rootType`,`root`),c!==null)if(m(s),K(o)){let e=n.m(i,Ut),t=e?e.getListType():o.getListType();w(`blockType`,t)}else M(o),z(o);w(`fontColor`,n.j(r,`color`,`#000`)),w(`fontColorIcon`,n.j(r,`color`,``)),w(`bgColor`,n.j(r,`background-color`,`#fff`)),w(`bgColorIcon`,n.j(r,`background-color`,``)),w(`fontFamily`,n.j(r,`font-family`,`Arial`));let p;a.X(d)&&(p=t.B(u,e=>t.vt(e)&&!e.isInline())),w(`elementFormat`,t.vt(p)?p.getFormatType():t.vt(u)?u.getFormatType():d?.getFormatType()||`left`)}if((t.bn(r)||a.Kt(r))&&(w(`isBold`,r.hasFormat(`bold`)),w(`isItalic`,r.hasFormat(`italic`)),w(`isUnderline`,r.hasFormat(`underline`)),w(`isStrikethrough`,r.hasFormat(`strikethrough`)),w(`isSubscript`,r.hasFormat(`subscript`)),w(`isSuperscript`,r.hasFormat(`superscript`)),w(`isHighlight`,r.hasFormat(`highlight`)),w(`isCode`,r.hasFormat(`code`)),w(`fontSize`,n.j(r,`font-size`,`15px`)),w(`isLowercase`,r.hasFormat(`lowercase`)),w(`isUppercase`,r.hasFormat(`uppercase`)),w(`isCapitalize`,r.hasFormat(`capitalize`))),t.Fr(r)){let e=r.getNodes();for(let r of e){let e=n.m(r,Ut);if(e){let t=e.getListType();w(`blockType`,t)}else{let e=Pz(r);M(e),z(e),t.vt(e)&&w(`elementFormat`,e.getFormatType())}}}},[l,e,w,M,z]);(0,h.useEffect)(()=>e.registerCommand(t.F,(e,t)=>(d(t),B(),!1),4),[e,B,d]),(0,h.useEffect)(()=>{l.getEditorState().read(()=>{B()},{editor:l})},[l,B]),(0,h.useEffect)(()=>t.Yn(e.registerEditableListener(e=>{S(e)}),l.registerUpdateListener(({editorState:e})=>{e.read(()=>{B()},{editor:l})}),l.registerCommand(t.v,e=>(w(`canUndo`,e),!1),4),l.registerCommand(t.Ur,e=>(w(`canRedo`,e),!1),4)),[B,l,e,w]);let ee=(0,h.useCallback)((e,r,i=!1)=>{l.update(()=>{i&&t.pt(t.gn);let r=t.tt();r!==null&&n.M(r,e)},r?{tag:t.$r}:{})},[l]),te=(0,h.useCallback)((e,t,n)=>{ee({color:e},t,n)},[ee]),V=(0,h.useCallback)((e,t)=>{ee({color:null},e,t)},[ee]),ne=(0,h.useCallback)((e,t,n)=>{ee({"background-color":e},t,n)},[ee]),re=(0,h.useCallback)((e,t)=>{ee({"background-color":null},e,t)},[ee]),H=(0,h.useCallback)(()=>{C.isLink?(f(!1),l.dispatchCommand(a.nt,null)):(f(!0),l.dispatchCommand(a.nt,a.C(`https://`)))},[l,f,C.isLink]),U=(0,h.useCallback)(e=>{l.update(()=>{if(t.pt(t.ft),p!==null){let n=t.Ht(p);W(n)&&n.setLanguage(e)}})},[l,p]),ie=(0,h.useCallback)(e=>{l.update(()=>{if(p!==null){let n=t.Ht(p);W(n)&&n.setTheme(e)}})},[l,p]),ae=!C.isImageCaption,oe=!C.isImageCaption;return(0,_.jsxs)(`div`,{className:`toolbar`,children:[(0,_.jsx)(`button`,{disabled:!C.canUndo||!x,onClick:e=>E(t.Tt,void 0,P(e)),title:t.yr?`Undo (⌘Z)`:`Undo (Ctrl+Z)`,type:`button`,className:`toolbar-item spaced`,"aria-label":`Undo`,children:(0,_.jsx)(`i`,{className:Tz.undo})}),(0,_.jsx)(`button`,{disabled:!C.canRedo||!x,onClick:e=>E(t.nn,void 0,P(e)),title:t.yr?`Redo (⇧⌘Z)`:`Redo (Ctrl+Y)`,type:`button`,className:`toolbar-item`,"aria-label":`Redo`,children:(0,_.jsx)(`i`,{className:Tz.redo})}),(0,_.jsx)(jz,{}),C.blockType in D&&l===e&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Az,{disabled:!x,blockType:C.blockType,rootType:C.rootType,editor:l}),(0,_.jsx)(jz,{})]}),C.blockType===`code`&&I?(0,_.jsxs)(_.Fragment,{children:[!L&&(0,_.jsx)(ZN,{disabled:!x,buttonClassName:`toolbar-item code-language`,buttonLabel:(yz.find(e=>e[0]===xt(C.codeLanguage))||[``,``])[1],buttonAriaLabel:`Select language`,children:yz.map(([e,t])=>(0,_.jsx)(Z,{className:`item ${kz(e===C.codeLanguage)}`,onClick:()=>U(e),children:(0,_.jsx)(`span`,{className:`text`,children:t})},e))}),L&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(ZN,{disabled:!x,buttonClassName:`toolbar-item code-language`,buttonLabel:(bz.find(e=>e[0]===Bj(C.codeLanguage))||[``,``])[1],buttonAriaLabel:`Select language`,children:bz.map(([e,t])=>(0,_.jsx)(Z,{className:`item ${kz(e===C.codeLanguage)}`,onClick:()=>U(e),children:(0,_.jsx)(`span`,{className:`text`,children:t})},e))}),(0,_.jsx)(ZN,{disabled:!x,buttonClassName:`toolbar-item code-language`,buttonLabel:(xz.find(e=>e[0]===C.codeTheme)||[``,``])[1],buttonAriaLabel:`Select theme`,children:xz.map(([e,t])=>(0,_.jsx)(Z,{className:`item ${kz(e===C.codeTheme)}`,onClick:()=>ie(e),children:(0,_.jsx)(`span`,{className:`text`,children:t})},e))})]})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Mz,{disabled:!x,fontFamilyOptions:T,style:`font-family`,value:C.fontFamily,editor:l}),(0,_.jsx)(jz,{}),(0,_.jsx)(En,{selectionFontSize:wn(C.fontSize).slice(0,-2),editor:l,disabled:!x}),(0,_.jsx)(jz,{}),(0,_.jsx)(`button`,{disabled:!x,onClick:e=>O(`bold`,P(e)),className:`toolbar-item spaced `+(C.isBold?`active`:``),title:`Bold (${F.BOLD})`,type:`button`,"aria-label":`Format text as bold. Shortcut: ${F.BOLD}`,children:(0,_.jsx)(`i`,{className:Tz.bold})}),(0,_.jsx)(`button`,{disabled:!x,onClick:e=>O(`italic`,P(e)),className:`toolbar-item spaced `+(C.isItalic?`active`:``),title:`Italic (${F.ITALIC})`,type:`button`,"aria-label":`Format text as italics. Shortcut: ${F.ITALIC}`,children:(0,_.jsx)(`i`,{className:Tz.italic})}),(0,_.jsx)(`button`,{disabled:!x,onClick:e=>O(`underline`,P(e)),className:`toolbar-item spaced `+(C.isUnderline?`active`:``),title:`Underline (${F.UNDERLINE})`,type:`button`,"aria-label":`Format text to underlined. Shortcut: ${F.UNDERLINE}`,children:(0,_.jsx)(`i`,{className:Tz.underline})}),oe&&(0,_.jsx)(`button`,{disabled:!x,onClick:e=>O(`code`,P(e)),className:`toolbar-item spaced `+(C.isCode?`active`:``),title:`Insert code block (${F.INSERT_CODE_BLOCK})`,type:`button`,"aria-label":`Insert code block`,children:(0,_.jsx)(`i`,{className:Tz.code})}),(0,_.jsx)(`button`,{disabled:!x,onClick:H,className:`toolbar-item spaced `+(C.isLink?`active`:``),"aria-label":`Insert link`,title:`Insert link (${F.INSERT_LINK})`,type:`button`,children:(0,_.jsx)(`i`,{className:Tz.link})}),(0,_.jsx)(KF,{disabled:!x,buttonClassName:`toolbar-item color-picker`,buttonAriaLabel:`Formatting text color`,buttonIconClassName:Ez.fontColor,buttonIconStyle:C.fontColorIcon?{color:C.fontColorIcon}:void 0,color:C.fontColor,onChange:te,onClear:V,title:`text color`}),(0,_.jsx)(KF,{disabled:!x,buttonClassName:`toolbar-item color-picker`,buttonAriaLabel:`Formatting background color`,buttonIconClassName:Ez.bgColor,buttonIconStyle:C.bgColorIcon?{color:C.bgColorIcon}:void 0,color:C.bgColor,onChange:ne,onClear:re,title:`bg color`}),(0,_.jsxs)(ZN,{disabled:!x,buttonClassName:`toolbar-item spaced`,buttonLabel:``,buttonAriaLabel:`Formatting options for additional text styles`,buttonIconClassName:`bi bi-three-dots icon`,children:[(0,_.jsxs)(Z,{onClick:e=>O(`lowercase`,P(e)),className:`item wide `+kz(C.isLowercase),title:`Lowercase`,"aria-label":`Format text to lowercase`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Ez.lowerTransform}),(0,_.jsx)(`span`,{className:`text`,children:`Lowercase`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.LOWERCASE})]}),(0,_.jsxs)(Z,{onClick:e=>O(`uppercase`,P(e)),className:`item wide `+kz(C.isUppercase),title:`Uppercase`,"aria-label":`Format text to uppercase`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Ez.upperTransform}),(0,_.jsx)(`span`,{className:`text`,children:`Uppercase`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.UPPERCASE})]}),(0,_.jsxs)(Z,{onClick:e=>O(`capitalize`,P(e)),className:`item wide `+kz(C.isCapitalize),title:`Capitalize`,"aria-label":`Format text to capitalize`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Ez.titleTransform}),(0,_.jsx)(`span`,{className:`text`,children:`Capitalize`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.CAPITALIZE})]}),(0,_.jsxs)(Z,{onClick:e=>O(`strikethrough`,P(e)),className:`item wide `+kz(C.isStrikethrough),title:`Strikethrough`,"aria-label":`Format text with a strikethrough`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:`bi bi-type-strikethrough icon`}),(0,_.jsx)(`span`,{className:`text`,children:`Strikethrough`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.STRIKETHROUGH})]}),(0,_.jsxs)(Z,{onClick:e=>O(`subscript`,P(e)),className:`item wide `+kz(C.isSubscript),title:`Subscript`,"aria-label":`Format text with a subscript`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Ez.subscript}),(0,_.jsx)(`span`,{className:`text`,children:`Subscript`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.SUBSCRIPT})]}),(0,_.jsxs)(Z,{onClick:e=>O(`superscript`,P(e)),className:`item wide `+kz(C.isSuperscript),title:`Superscript`,"aria-label":`Format text with a superscript`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Ez.superscript}),(0,_.jsx)(`span`,{className:`text`,children:`Superscript`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.SUPERSCRIPT})]}),(0,_.jsx)(Z,{onClick:e=>O(`highlight`,P(e)),className:`item wide `+kz(C.isHighlight),title:`Highlight`,"aria-label":`Format text with a highlight`,children:(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Ez.highlight}),(0,_.jsx)(`span`,{className:`text`,children:`Highlight`})]})}),(0,_.jsxs)(Z,{onClick:e=>bn(l,P(e)),className:`item wide`,title:`Clear text formatting`,"aria-label":`Clear all text formatting`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Ez.clear}),(0,_.jsx)(`span`,{className:`text`,children:`Clear Formatting`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.CLEAR_FORMATTING})]}),(0,_.jsx)(Z,{onClick:e=>E(Vx,void 0,P(e)),className:`item wide`,disabled:!x||!g,title:`Link block text`,"aria-label":`Link block text`,children:(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Ez.linkBlock}),(0,_.jsx)(`span`,{className:`text`,children:`Link block text`})]})})]}),ae&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(jz,{}),(0,_.jsxs)(ZN,{disabled:!x,buttonClassName:`toolbar-item spaced`,buttonLabel:`Insert`,buttonAriaLabel:`Insert specialized editor node`,buttonIconClassName:Ez.insert,children:[(0,_.jsxs)(Z,{onClick:()=>E(r.U),className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.horizontalRule}),(0,_.jsx)(`span`,{className:`text`,children:`Horizontal Rule`})]}),(0,_.jsxs)(Z,{onClick:A,className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.defaultExample}),(0,_.jsx)(`span`,{className:`text`,children:`Default Example`})]}),(0,_.jsxs)(Z,{onClick:()=>E(_P),className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.pageBreak}),(0,_.jsx)(`span`,{className:`text`,children:`Page Break`})]}),(0,_.jsxs)(Z,{onClick:()=>{b(`Insert Media`,e=>(0,_.jsx)(PN,{activeEditor:l,onClose:e,resolveFilePath:u}))},className:`item`,title:`Insert image, video, pdf or audio`,children:[(0,_.jsx)(`i`,{className:Ez.image}),(0,_.jsx)(`span`,{className:`text`,children:`Media`})]}),(0,_.jsxs)(Z,{onClick:()=>E(xN),className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.diagram}),(0,_.jsx)(`span`,{className:`text`,children:`Excalidraw`})]}),(0,_.jsxs)(Z,{onClick:()=>k(`@`),className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.mentionName}),(0,_.jsx)(`span`,{className:`text`,children:`Mention Name`})]}),(0,_.jsxs)(Z,{onClick:()=>k(`#`),className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.pinLocation}),(0,_.jsx)(`span`,{className:`text`,children:`Pin Location`})]}),(0,_.jsxs)(Z,{onClick:()=>k(`^`),className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.bibleVerse}),(0,_.jsx)(`span`,{className:`text`,children:`Bible Verse`})]}),(0,_.jsxs)(Z,{onClick:()=>{b(`Insert Emoji or HTML Character`,e=>(0,_.jsx)(vz,{activeEditor:l,onClose:e}))},className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.htmlCharacter}),(0,_.jsx)(`span`,{className:`text`,children:`Emoji & HTML Character`})]}),(0,_.jsxs)(Z,{onClick:()=>{b(`Insert Table`,e=>(0,_.jsx)(wP,{activeEditor:l,onClose:e}))},className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.table}),(0,_.jsx)(`span`,{className:`text`,children:`Table`})]}),(0,_.jsxs)(Z,{onClick:()=>{b(`Insert Poll`,e=>(0,_.jsx)(bP,{activeEditor:l,onClose:e}))},className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.poll}),(0,_.jsx)(`span`,{className:`text`,children:`Poll`})]}),(0,_.jsxs)(Z,{onClick:()=>{b(`Insert Columns Layout`,e=>(0,_.jsx)(fP,{activeEditor:l,onClose:e}))},className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.columns}),(0,_.jsx)(`span`,{className:`text`,children:`Columns Layout`})]}),(0,_.jsxs)(Z,{onClick:()=>{b(`Insert Equation`,e=>(0,_.jsx)(yN,{activeEditor:l,onClose:e}))},className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.equation}),(0,_.jsx)(`span`,{className:`text`,children:`Equation`})]}),(0,_.jsxs)(Z,{onClick:()=>{e.update(()=>{t.pt(`skip-selection-focus`);let e=t.Dr(),n=s.t(0,0);e.append(n)})},className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.sticky}),(0,_.jsx)(`span`,{className:`text`,children:`Sticky Note`})]}),(0,_.jsxs)(Z,{onClick:()=>E(mM),className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.collapsible}),(0,_.jsx)(`span`,{className:`text`,children:`Collapsible container`})]}),(0,_.jsxs)(Z,{onClick:()=>{let e=new Date;e.setHours(0,0,0,0),E(hN,{dateTime:e})},className:`item`,children:[(0,_.jsx)(`i`,{className:Ez.calendar}),(0,_.jsx)(`span`,{className:`text`,children:`Date`})]}),jx.map(e=>(0,_.jsxs)(Z,{onClick:()=>E(tx,e.type),className:`item`,children:[e.icon,(0,_.jsx)(`span`,{className:`text`,children:e.buttonLabel??e.contentName})]},e.type))]})]})]}),(0,_.jsx)(jz,{}),(0,_.jsx)(`button`,{onClick:()=>N(`showInvisibleCharacters`,!R),className:`toolbar-item spaced `+(R?`active`:``),title:`Show invisible characters`,type:`button`,"aria-label":`Show invisible characters`,children:(0,_.jsx)(`span`,{className:Tz.invisibleCharacters,"aria-hidden":`true`,children:`¶`})}),(0,_.jsx)(jz,{}),(0,_.jsx)(Nz,{disabled:!x,value:C.elementFormat,editor:l,isRTL:C.isRTL}),y]})}var Iz=100,Lz=50,Rz=500,zz=1,Bz=3,Vz=8,Hz=96,Uz=[`.excalidraw`,`.excalidraw-button`,`.ExcalidrawModal__overlay`,`.ExcalidrawModal__modal`,`.ExcalidrawModal__row`].join(`,`);function Wz(e){return Number.isFinite(e)?Math.min(Rz,Math.max(Lz,e)):Iz}function Gz(e){return e instanceof Element?e:e instanceof Node?e.parentElement:null}function Kz(e){return Gz(e)?.closest(Uz)!==null}function qz(e){if(e.length!==2)return null;let t=e[0],n=e[1],r=Math.hypot(n.clientX-t.clientX,n.clientY-t.clientY);return r<Vz?null:{clientX:(t.clientX+n.clientX)/2,clientY:(t.clientY+n.clientY)/2,distance:r}}function Jz({detectTextLanguage:e,excalidrawClearLibrariesFileList:n,excalidrawLibraryItems:c=[],excalidrawLoadLibrariesFileList:u,excalidrawSaveLibrariesFile:d,extraFontFamilies:f=[],floatingActionButtons:p=Zn,forceReadOnly:m=!1,footerActionButtons:g=Qn,isMinimize:v,isOnApp:y,print:b,resolveFilePath:x}){let[S,C]=ix(),{historyState:w}=r.a(),{settings:{isCodeHighlighted:T,isCodeShiki:E,isAutocomplete:D,isMaxLength:O,isCharLimit:k,hasLinkAttributes:A,hasNestedTables:j,isCharLimitUtf8:M,isRichText:N,showTreeView:P,showTableOfContents:F,shouldUseLexicalContextMenu:I,shouldPreserveNewLinesInMarkdown:L,tableCellMerge:R,tableCellBackgroundColor:z,tableHorizontalScroll:B,shouldAllowHighlightingWithBrackets:ee,showInvisibleCharacters:te,selectionAlwaysOnDisplay:V,listStrictIndent:ne,pageSize:re}}=i.r(),H=l.t(),U=N?`Enter some rich text...`:`Enter some plain text...`,[ie,ae]=(0,h.useState)(null),[oe,se]=(0,h.useState)(!0),[ce]=t.oi(),[le,ue]=(0,h.useState)(ce),[de,fe]=(0,h.useState)(!1),[pe,me]=(0,h.useState)(()=>Gi()),[he,ge]=(0,h.useState)(!1),[_e,ve]=(0,h.useState)(`comments`),[ye,be]=(0,h.useState)(!1),[xe,Se]=(0,h.useState)(!1),[Ce,we]=(0,h.useState)(!1),[Te,Ee]=(0,h.useState)(()=>Wz(ra()??Iz)),De=(0,h.useRef)(null),Oe=(0,h.useRef)(null),ke=(0,h.useRef)(Te);ke.current=Te;let Ae=(0,h.useRef)(null),je=(0,h.useRef)(null),Me={"--playground-editor-content-zoom":String(Te/100),overflow:`hidden`,touchAction:`pan-x pan-y`},Ne=e=>{Ee(Wz(e))};(0,h.useEffect)(()=>{ia(Te)},[Te]),(0,h.useLayoutEffect)(()=>{let e=Ae.current;if(Ae.current=null,e===null||e.previousZoomPercent===Te)return;let t=Oe.current;if(t===null)return;let n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top,a=Te/e.previousZoomPercent;t.scrollLeft=(t.scrollLeft+r)*a-r,t.scrollTop=(t.scrollTop+i)*a-i},[Te]);let Pe=i.h(re),Fe=e=>{let t=Oe.current;if(t===null||Pe===null)return;let n=getComputedStyle(t);if(e===`width`){let e=Pe.widthIn*Hz;if(e<=0)return;let r=t.clientWidth-(Number.parseFloat(n.paddingLeft)||0)-(Number.parseFloat(n.paddingRight)||0);Ne(Math.round(r/e*100));return}let r=Pe.heightIn*Hz;if(r<=0)return;let i=t.clientHeight-(Number.parseFloat(n.paddingTop)||0)-(Number.parseFloat(n.paddingBottom)||0);Ne(Math.round(i/r*100))},Ie=e=>{e!==null&&ae(e)};(0,h.useEffect)(()=>{let e=`(hover: hover) and (pointer: fine)`,n=()=>{let n=!t.ar||window.matchMedia(e).matches;n!==oe&&se(n)};n();let r=t.ar?window.matchMedia(e):null;return r?.addEventListener(`change`,n),window.addEventListener(`resize`,n),()=>{r?.removeEventListener(`change`,n),window.removeEventListener(`resize`,n)}},[oe]);let W=(0,h.useRef)(pe);(0,h.useEffect)(()=>{pe&&!W.current&&ve(`comments`),W.current=pe},[pe]);let Le=(0,h.useRef)(he);(0,h.useEffect)(()=>{he&&!Le.current&&ve(`lookup`),Le.current=he},[he]);let Re=(0,h.useCallback)(()=>{pe?_e===`comments`?me(!1):ve(`comments`):me(!0)},[pe,_e]),ze=(0,h.useCallback)(()=>{he?_e===`lookup`?ge(!1):ve(`lookup`):ge(!0)},[he,_e]),Be=_e===`comments`?26:25,Ve=_e===`lookup`?26:25;(0,h.useEffect)(()=>{let e=()=>{document.fullscreenElement!==De.current&&be(!1)};return document.addEventListener(`fullscreenchange`,e),()=>{document.removeEventListener(`fullscreenchange`,e)}},[]);let He=(0,h.useCallback)(()=>{let e=De.current;if(e!==null){if(document.fullscreenElement===e){be(!1),document.exitFullscreen?.().catch(()=>{});return}be(!0),e.requestFullscreen!==void 0&&e.requestFullscreen().catch(()=>{})}},[]);return(0,h.useEffect)(()=>{let e=De.current;if(e===null)return;let t=e=>{if(!e.ctrlKey||e.deltaY===0||Kz(e.target))return;e.preventDefault();let t=ke.current,n=Wz(t+(e.deltaY<0?Bz:-3));n!==t&&(Ae.current={clientX:e.clientX,clientY:e.clientY,previousZoomPercent:t},Ee(n))},n=e=>{if(Kz(e.target)){je.current=null;return}let t=qz(e.touches);if(t===null){je.current=null;return}je.current={initialDistance:t.distance,initialZoomPercent:ke.current}},r=e=>{let t=je.current;if(t===null||Kz(e.target))return;let n=qz(e.touches);if(n===null){je.current=null;return}e.preventDefault();let r=ke.current,i=Wz(Math.round(t.initialZoomPercent*(n.distance/t.initialDistance)));i!==r&&(Ae.current={clientX:n.clientX,clientY:n.clientY,previousZoomPercent:r},Ee(i))},i=()=>{je.current=null};return e.addEventListener(`wheel`,t,{passive:!1}),e.addEventListener(`touchstart`,n),e.addEventListener(`touchmove`,r,{passive:!1}),e.addEventListener(`touchend`,i),e.addEventListener(`touchcancel`,i),()=>{e.removeEventListener(`wheel`,t),e.removeEventListener(`touchstart`,n),e.removeEventListener(`touchmove`,r),e.removeEventListener(`touchend`,i),e.removeEventListener(`touchcancel`,i)}},[]),(0,h.useEffect)(()=>{let e=e=>{e.key===`F5`&&(e.preventDefault(),be(e=>!e))};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[]),(0,h.useEffect)(()=>{ye||(Se(!1),we(!1))},[ye]),(0,_.jsx)(o.p,{clearLibrariesFileList:n,detectTextLanguage:e,extraFontFamilies:f,loadLibrariesFileList:u,libraryItems:c,saveLibrariesFile:d,children:(0,_.jsxs)(`div`,{className:`w-100 h-100 card editor-shell${ye?` full-view`:``}`,ref:De,style:Me,children:[ye&&(0,_.jsx)(`div`,{className:`full-view-hover-zone full-view-hover-zone-top`,onMouseEnter:()=>Se(!0)}),(0,_.jsxs)(`div`,{className:`w-100 card-header p-0${ye&&xe?` full-view-visible`:``}`,onMouseEnter:ye?()=>Se(!0):void 0,onMouseLeave:ye?()=>Se(!1):void 0,children:[N&&(0,_.jsx)(Fz,{editor:ce,extraFontFamilies:f,activeEditor:le,resolveFilePath:x,setActiveEditor:ue,setIsLinkEditMode:fe}),N&&(0,_.jsx)(EL,{editor:le,setIsLinkEditMode:fe})]}),(0,_.jsx)(`div`,{className:`w-100 card-body editor-container p-0 ${P?`tree-view`:``} ${N?``:`plain-text`}`,ref:Oe,children:(0,_.jsxs)(`div`,{className:`editor-zoom-surface`,children:[O&&(0,_.jsx)(WI,{maxLength:30}),(0,_.jsx)(QP,{resolveFilePath:x}),(0,_.jsx)(ni,{}),(0,_.jsx)(uF,{}),V&&(0,_.jsx)(Ci,{}),(0,_.jsx)(hi,{}),(0,_.jsx)(LF,{}),(0,_.jsx)(AP,{resolveFilePath:x}),(0,_.jsx)(mF,{}),(0,_.jsx)(Ix,{}),(0,_.jsx)(a.n,{}),(0,_.jsx)(a.r,{}),(0,_.jsx)(fL,{}),(0,_.jsx)(a.c,{}),(0,_.jsx)(a.s,{}),(0,_.jsx)(Bx,{}),(0,_.jsx)(gN,{}),(0,_.jsx)(mN,{setShowComments:me,showComments:pe,panelZIndex:Be}),(0,_.jsx)(BI,{showLookup:he,setShowLookup:ge,zIndex:Ve}),N?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(r.o,{externalHistoryState:w}),(0,_.jsx)(a.q,{contentEditable:(0,_.jsx)(`div`,{className:`editor-scroller${pe?` comment-panel-open`:``}`,children:(0,_.jsx)(`div`,{className:`editor`,ref:Ie,children:(0,_.jsx)(r.t,{placeholder:U,"data-test-id":`playground-editor`})})}),ErrorBoundary:r.N}),(0,_.jsx)(HL,{}),(0,_.jsx)(UI,{}),T&&(E?(0,_.jsx)(Qj,{}):(0,_.jsx)(VS,{})),(0,_.jsx)(Si,{hasStrictIndent:ne}),(0,_.jsx)(pi,{}),(0,_.jsx)(Ti,{hasCellMerge:R,hasCellBackgroundColor:z,hasHorizontalScroll:B,hasNestedTables:j}),(0,_.jsx)(aR,{}),(0,_.jsx)(jR,{}),(0,_.jsx)(FN,{}),(0,_.jsx)(a.o,{hasLinkAttributes:A}),(0,_.jsx)(xP,{}),(0,_.jsx)(Ax,{}),(0,_.jsx)(yx,{}),(0,_.jsx)(gi,{disabled:H}),(0,_.jsx)(xi,{}),(0,_.jsx)(bN,{}),(0,_.jsx)(SN,{clearLibrariesFileList:n,detectTextLanguage:e,extraFontFamilies:f,loadLibrariesFileList:u,libraryItems:c,saveLibrariesFile:d}),(0,_.jsx)(qL,{}),(0,_.jsx)(wi,{maxIndent:7}),(0,_.jsx)(TM,{detectTextLanguage:e,extraFontFamilies:f}),(0,_.jsx)(vP,{}),(0,_.jsx)(lP,{}),ie&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(GF,{anchorElem:ie,isLinkEditMode:de,setIsLinkEditMode:fe}),(0,_.jsx)(TS,{anchorElem:ie}),(0,_.jsx)(eR,{anchorElem:ie,cellMerge:!0}),(0,_.jsx)(lI,{actionButtons:p,anchorElem:ie})]}),ie&&oe&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(lF,{anchorElem:ie}),(0,_.jsx)(BS,{anchorElem:ie}),(0,_.jsx)(dR,{anchorElem:ie})]})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(s.a,{contentEditable:(0,_.jsx)(r.t,{placeholder:U,"data-test-id":`playground-editor`}),ErrorBoundary:r.N}),(0,_.jsx)(r.o,{externalHistoryState:w})]}),(0,_.jsx)(AI,{anchorElem:ie,enabled:te}),(k||M)&&(0,_.jsx)(fi,{charset:k?`UTF-16`:`UTF-8`,maxLength:5}),D&&(0,_.jsx)(Vb,{}),(0,_.jsx)(bL,{}),(0,_.jsx)(TL,{}),(0,_.jsx)(`div`,{children:F&&(0,_.jsx)(TR,{})}),I&&(0,_.jsx)(LP,{}),ee&&(0,_.jsx)(NL,{})]})}),(0,_.jsx)(`div`,{className:`w-100 card-footer p-0 px-1${ye&&Ce?` full-view-visible`:``}`,onMouseEnter:ye?()=>we(!0):void 0,onMouseLeave:ye?()=>we(!1):void 0,children:(0,_.jsxs)(`div`,{className:`editor-footer`,children:[(0,_.jsx)(Yz,{onZoomPercentChange:Ne,zoomPercent:Te}),(0,_.jsx)(Xz,{isDefaultZoom:Te===Iz,isFullView:ye,onFitHeight:()=>Fe(`height`),onFitWidth:()=>Fe(`width`),onOpenFind:()=>ce.dispatchCommand(DF,void 0),onResetZoom:()=>Ne(Iz),onToggleFullView:()=>be(e=>!e),showFitButtons:Pe!==null}),(0,_.jsx)(vb,{forceReadOnly:m,footerActionButtons:g,isMinimize:v,isOnApp:y,onToggleFullscreen:He,print:b,setShowComments:me,setShowLookup:ge,onToggleComments:Re,onToggleLookup:ze,shouldPreserveNewLinesInMarkdown:L,showComments:pe,showLookup:he,showModal:C})]})}),ye&&(0,_.jsx)(`div`,{className:`full-view-hover-zone full-view-hover-zone-bottom`,onMouseEnter:()=>we(!0)}),P&&(0,_.jsx)(a.t,{}),S]})})}function Yz({onZoomPercentChange:e,zoomPercent:t}){return(0,_.jsxs)(`div`,{className:`editor-zoom-controls`,"aria-label":`Editor zoom controls`,children:[(0,_.jsx)(`button`,{"aria-label":`Zoom out`,className:`action-button editor-zoom-button`,disabled:t<=Lz,onClick:()=>{e(t-zz)},title:`Zoom out`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-dash`,"aria-hidden":`true`})}),(0,_.jsx)(`input`,{"aria-label":`Editor zoom`,className:`editor-zoom-range`,max:Rz,min:Lz,onChange:t=>{e(t.target.valueAsNumber)},step:zz,title:`Editor zoom`,type:`range`,value:t}),(0,_.jsx)(`button`,{"aria-label":`Zoom in`,className:`action-button editor-zoom-button`,disabled:t>=Rz,onClick:()=>{e(t+zz)},title:`Zoom in`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-plus`,"aria-hidden":`true`})}),(0,_.jsxs)(`span`,{className:`editor-zoom-percent`,"aria-live":`polite`,children:[t,`%`]})]})}function Xz({isDefaultZoom:e,isFullView:t,onFitHeight:n,onFitWidth:r,onOpenFind:i,onResetZoom:a,onToggleFullView:o,showFitButtons:s}){return(0,_.jsxs)(`div`,{className:`editor-view-options-menu`,children:[(0,_.jsx)(`button`,{"aria-haspopup":`true`,"aria-label":`View options`,className:`action-button editor-view-options-button`,title:`View options`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-three-dots-vertical`,"aria-hidden":`true`})}),(0,_.jsxs)(`div`,{className:`editor-view-options-popover`,role:`menu`,children:[(0,_.jsx)(`button`,{"aria-label":`Find in note`,className:`action-button editor-find-button`,onClick:i,title:`Find in note (${F.FIND})`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-search`,"aria-hidden":`true`})}),(0,_.jsx)(`button`,{"aria-label":`Reset zoom`,className:`action-button editor-zoom-button`,disabled:e,onClick:a,title:`Reset zoom`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-arrow-counterclockwise`,"aria-hidden":`true`})}),(0,_.jsx)(`button`,{"aria-label":`Toggle full view`,"aria-pressed":t,className:`action-button editor-full-view-button`,onClick:o,title:`Toggle full view (F5)`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-square`,"aria-hidden":`true`})}),s&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{"aria-label":`Fit page width`,className:`action-button editor-fit-button`,onClick:r,title:`Fit page width`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-arrows`,"aria-hidden":`true`})}),(0,_.jsx)(`button`,{"aria-label":`Fit page height`,className:`action-button editor-fit-button`,onClick:n,title:`Fit page height`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-arrows-vertical`,"aria-hidden":`true`})})]})]})]})}var Zz=[a.tn,Ut,Rt,a.$t,Fe,a.At,a.Wt,a.Jt,We,a.Z,a.Q,ri,m.r,s.r,a.D,a.k,a.j,o.a,d.a,kb,a.A,vi,Ex,hx,a.v,nM,oM,dM,mP,$N,iP,DL,f.f],Qz=()=>{let e=document.getElementById(`report-container`);return e===null&&(e=document.createElement(`div`),e.id=`report-container`,e.style.position=`fixed`,e.style.top=`50%`,e.style.left=`50%`,e.style.fontSize=`32px`,e.style.transform=`translate(-50%, -50px)`,e.style.padding=`20px`,e.style.background=`rgba(240, 240, 240, 0.4)`,e.style.borderRadius=`20px`,document.body&&document.body.appendChild(e)),e};function $z(){let e=(0,h.useRef)(null),t=(0,h.useCallback)(()=>{e.current!==null&&(clearTimeout(e.current),e.current=null),document.body&&document.body.removeChild(Qz())},[]);return(0,h.useEffect)(()=>t,[t]),(0,h.useCallback)(n=>{let r=Qz();return e.current!==null&&clearTimeout(e.current),r.innerHTML=n,e.current=setTimeout(t,1e3),e.current},[t])}var eB=new Set([`insertText`,`insertCompositionText`,`insertFromComposition`,`insertLineBreak`,`insertParagraph`,`deleteCompositionText`,`deleteContentBackward`,`deleteByComposition`,`deleteContent`,`deleteContentForward`,`deleteWordBackward`,`deleteWordForward`,`deleteHardLineBackward`,`deleteSoftLineBackward`,`deleteHardLineForward`,`deleteSoftLineForward`]);function tB(){let e=$z();return(0,h.useEffect)(()=>{let t=0,n,r,i=[],a=!1,o=function(){r!=null&&(a?a=!1:i.push(performance.now()-t),clearTimeout(r),r=null)},s=function(){n!=null&&(clearTimeout(n),n=null),r=setTimeout(o,0),n=setTimeout(()=>{let t=i.reduce((e,t)=>e+t,0),n=`Typing Perf: `+Math.round(t/i.length*100)/100+`ms`;e(n),i=[]},2e3),t=performance.now()},c=function(e){if(!eB.has(e.inputType)||a){a=!1;return}s()},l=function(e){let t=e.key;(t===`Backspace`||t===`Enter`)&&s()},u=function(){a=!0},d=function(){a=!0};return window.addEventListener(`keydown`,l,!0),window.addEventListener(`selectionchange`,o,!0),window.addEventListener(`beforeinput`,c,!0),window.addEventListener(`paste`,u,!0),window.addEventListener(`cut`,d,!0),()=>{window.removeEventListener(`keydown`,l,!0),window.removeEventListener(`selectionchange`,o,!0),window.removeEventListener(`beforeinput`,c,!0),window.removeEventListener(`paste`,u,!0),window.removeEventListener(`cut`,d,!0)}},[e]),null}console.warn(`If you are profiling the playground app, please ensure you turn off the debug view. You can disable it by pressing on the settings control in the bottom-left of your screen and toggling the debug view setting.`);function nB(e){let t=Er();return t===null?e?void 0:tz:t}function rB({detectTextLanguage:e,editorController:n,editorExtraFontFamilies:c=[],excalidrawClearLibrariesFileList:l,excalidrawLibraryItems:u=[],excalidrawLoadLibrariesFileList:d,excalidrawSaveLibrariesFile:f,floatingActionButtonController:p,footerActionButtonController:m,isMinimize:g=!1,isOnApp:y,print:b,resolveFilePath:C,revealFile:w,settings:T,settingsContainerElement:D,settingsController:O,stickyNoteExtraFontFamilies:k=[],shortToVerseData:j,verseFullTextToListShorts:M,changeBibleKey:N}){let{settings:{isDarkMode:P,emptyEditor:F,measureTypingPerf:I,pageSize:L}}=i.r(),[R,z]=(0,h.useState)(()=>Cr()?{status:`loading`,value:null}:{status:`idle`,value:null}),[B,ee]=(0,h.useState)(Qn),[te,V]=(0,h.useState)(Zn),[ne,re]=(0,h.useState)(!1);(0,h.useEffect)(()=>{n===void 0&&re(!1)},[n]),(0,h.useEffect)(()=>{if(!Cr())return;let e=!0;return z({status:`loading`,value:null}),Tr().then(t=>{e&&z({status:`loaded`,value:t??(F?void 0:tz)})}),()=>{e=!1}},[F]);let H=(0,h.useMemo)(()=>nB(F),[F]),U=R.status===`loaded`?R.value:H,ie=(0,h.useMemo)(()=>t.hr({$initialEditorState:U,html:Gn(),name:`@lexical/playground`,namespace:`Playground`,nodes:Zz,theme:s.i}),[U]),ae=T!==void 0&&D!==void 0?(0,v.createPortal)(T,D):T;return(0,h.useEffect)(()=>(x(P?`dark`:`light`),()=>{S()}),[P]),(0,h.useEffect)(()=>{let{body:e}=document,t=i.h(L);if(t===null){delete e.dataset.playgroundPageSize,e.style.removeProperty(`--playground-paper-width`),e.style.removeProperty(`--playground-paper-height`);return}return e.dataset.playgroundPageSize=`paper`,e.style.setProperty(`--playground-paper-width`,`${t.widthIn}in`),e.style.setProperty(`--playground-paper-height`,`${t.heightIn}in`),()=>{delete e.dataset.playgroundPageSize,e.style.removeProperty(`--playground-paper-width`),e.style.removeProperty(`--playground-paper-height`)}},[L]),R.status===`loading`?(0,_.jsx)(`div`,{className:`d-flex h-100 w-100 align-items-center justify-content-center text-body-secondary`,children:`Opening password-protected shared link...`}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(iB,{currentColorScheme:P?`dark`:`light`,settingsController:O}),(0,_.jsx)(aB,{footerActionButtonController:m,setFooterActionButtons:ee}),(0,_.jsx)(oB,{floatingActionButtonController:p,setFloatingActionButtons:V}),(0,_.jsx)(o.p,{clearLibrariesFileList:l,detectTextLanguage:e,extraFontFamilies:c,loadLibrariesFileList:d,libraryItems:u,saveLibrariesFile:f,children:(0,_.jsx)(s.o,{extraFontFamilies:k,children:(0,_.jsx)(a.vt,{revealFile:w,children:(0,_.jsx)(a.gt,{shortToVerseData:j,verseFullTextToListShorts:M,changeBibleKey:N,children:(0,_.jsxs)(E,{extension:ie,contentEditable:null,children:[n===void 0?null:(0,_.jsx)(sB,{editorController:n,setForceReadOnly:re}),(0,_.jsx)(r.i,{children:(0,_.jsx)(CP,{children:(0,_.jsxs)(A,{children:[(0,_.jsx)(Jz,{detectTextLanguage:e,excalidrawClearLibrariesFileList:l,excalidrawLibraryItems:u,excalidrawLoadLibrariesFileList:d,excalidrawSaveLibrariesFile:f,extraFontFamilies:c,floatingActionButtons:te,forceReadOnly:ne,footerActionButtons:B,isMinimize:g,isOnApp:y,print:b,resolveFilePath:C}),ae,null,null,null,I?(0,_.jsx)(tB,{}):null]})})})]})})})})})]})}function iB({currentColorScheme:e,settingsController:t}){let{setOption:n}=i.r();return(0,h.useEffect)(()=>{if(t!==void 0)return t.connectSettingsController({setColorScheme:e=>{n(`isDarkMode`,e===`dark`)}},e)},[e,n,t]),(0,h.useEffect)(()=>{t?.syncColorSchemeFromSettings(e)},[e,t]),null}function aB({footerActionButtonController:e,setFooterActionButtons:t}){return(0,h.useEffect)(()=>{if(e===void 0){t(Qn);return}return e.connectFooterActionButtonController({setFooterActionButtons:t})},[e,t]),null}function oB({floatingActionButtonController:e,setFloatingActionButtons:t}){return(0,h.useEffect)(()=>{if(e===void 0){t(Zn);return}return e.connectFloatingActionButtonController({setFloatingActionButtons:t})},[e,t]),null}function sB({editorController:e,setForceReadOnly:n}){let[r]=t.oi(),i=(0,h.useRef)(!1);return(0,h.useEffect)(()=>{let a=r.registerEditableListener(e=>{i.current&&e&&queueMicrotask(()=>{i.current&&r.isEditable()&&r.setEditable(!1)})}),o=e.connectEditorController({addText:e=>{i.current||!r.isEditable()||(r.update(()=>{t.tt()===null&&t.Dr().selectEnd()}),r.dispatchCommand(t.Wn,ZF(e)))},getContent:()=>JSON.stringify(r.getEditorState().toJSON())??``,getIsFocusing:()=>{let e=r.getRootElement();if(e===null)return!1;let t=e.ownerDocument.getSelection(),n=t?.anchorNode??null,i=t?.focusNode??null;return e.ownerDocument.hasFocus()&&e.ownerDocument.activeElement===e&&t!==null&&t.isCollapsed&&n!==null&&i!==null&&e.contains(n)&&e.contains(i)},getIsReadOnly:()=>i.current||!r.isEditable(),searchText:e=>{r.dispatchCommand(OF,e)},setContent:e=>{if(e.length===0){r.update(()=>{t.Dr().clear()});return}r.setEditorState(r.parseEditorState(e))},setReadOnly:e=>{i.current=e,n(e),r.setEditable(!e)}});return()=>{o(),a()}},[r,e,n]),null}function cB({detectTextLanguage:e,namesLookupManager:t,locationsLookupManager:n,editorController:r,editorExtraFontFamilies:o=[],excalidrawClearLibrariesFileList:s,excalidrawLibraryItems:c=[],excalidrawLoadLibrariesFileList:l,excalidrawSaveLibrariesFile:u,floatingActionButtonController:d,footerActionButtonController:f,print:p,resolveFilePath:m,revealFile:h,settings:g,settingsContainerElement:v,settingsController:y,stickyNoteExtraFontFamilies:b=[],storageManager:x,isMinimize:S,isOnApp:C,shortToVerseData:w,verseFullTextToListShorts:T,changeBibleKey:E}){return(0,_.jsx)(a.rt,{locationsLookupManager:n,namesLookupManager:t,children:(0,_.jsx)(lB,{storageManager:x,children:(0,_.jsx)(i.n,{children:(0,_.jsx)(Xn,{children:(0,_.jsx)(rB,{detectTextLanguage:e,editorController:r,editorExtraFontFamilies:o,excalidrawClearLibrariesFileList:s,excalidrawLibraryItems:c,excalidrawLoadLibrariesFileList:l,excalidrawSaveLibrariesFile:u,floatingActionButtonController:d,footerActionButtonController:f,isMinimize:S,print:p,resolveFilePath:m,revealFile:h,settings:g,settingsContainerElement:v,settingsController:y,stickyNoteExtraFontFamilies:b,isOnApp:C,shortToVerseData:w,verseFullTextToListShorts:T,changeBibleKey:E})})})})})}function lB({children:e,storageManager:t}){let[n,r]=(0,h.useState)(()=>(i.l(t),t===void 0));return(0,h.useEffect)(()=>{let e=!0;if(i.l(t),t===void 0){r(!0);return}return r(!1),i.f(i.c).then(()=>{e&&r(!0)}),()=>{e=!1}},[t]),n?(0,_.jsx)(_.Fragment,{children:e}):(0,_.jsx)(`div`,{className:`d-flex h-100 w-100 align-items-center justify-content-center text-body-secondary`,children:`Loading saved Bible note...`})}var uB=17775936e5,dB=(e,t,n,r,i,a,o={})=>({angle:0,backgroundColor:`transparent`,boundElements:null,fillStyle:`solid`,frameId:null,groupIds:[],height:i,id:e,index:null,isDeleted:!1,link:null,locked:!1,opacity:100,roughness:1,roundness:{type:3},seed:a,strokeColor:`#1e1e1e`,strokeStyle:`solid`,strokeWidth:2,updated:uB,version:1,versionNonce:a+1e5,width:r,x:t,y:n,...o}),fB=(e,t,n,r,i,a,o={})=>({...dB(e,t,n,r,i,a,o),type:`rectangle`}),Q=(e,t,n,r,i,a,o={})=>({...dB(e,t,n,r,i,a,o),type:`ellipse`}),pB=(e,t,n,r,i,a,o={})=>({...dB(e,t,n,r,i,a,o),type:`diamond`}),$=(e,t,n,r,i,a={})=>{let o=r.map(([e])=>e),s=r.map(([,e])=>e);return{...dB(e,t,n,Math.max(...o)-Math.min(...o),Math.max(...s)-Math.min(...s),i,a),endArrowhead:null,endBinding:null,lastCommittedPoint:null,points:r,startArrowhead:null,startBinding:null,type:`line`}},mB=(e,t,n)=>({created:uB,elements:n,id:e,name:t,status:`published`}),hB=[mB(`christianity-cross`,`Cross`,[fB(`christianity-cross-vertical`,72,0,28,180,101,{backgroundColor:`#c7d2fe`,strokeColor:`#4338ca`}),fB(`christianity-cross-horizontal`,20,56,132,28,102,{backgroundColor:`#c7d2fe`,strokeColor:`#4338ca`})]),mB(`christianity-church`,`Church`,[fB(`christianity-church-body`,20,86,164,96,201,{backgroundColor:`#e0f2fe`,strokeColor:`#0f766e`}),pB(`christianity-church-roof`,35,34,134,100,202,{backgroundColor:`#bae6fd`,strokeColor:`#0369a1`}),fB(`christianity-church-steeple`,86,12,32,86,203,{backgroundColor:`#f8fafc`,strokeColor:`#0369a1`}),$(`christianity-church-cross-v`,102,0,[[0,0],[0,38]],204,{strokeColor:`#0369a1`,strokeWidth:3}),$(`christianity-church-cross-h`,91,13,[[0,0],[22,0]],205,{strokeColor:`#0369a1`,strokeWidth:3}),fB(`christianity-church-door`,86,124,34,58,206,{backgroundColor:`#fef3c7`,strokeColor:`#92400e`})]),mB(`christianity-ichthys`,`Ichthys Fish`,[Q(`christianity-ichthys-body`,0,34,186,86,301,{backgroundColor:`transparent`,strokeColor:`#0f766e`,strokeWidth:4}),$(`christianity-ichthys-tail-a`,134,42,[[0,0],[64,58]],302,{strokeColor:`#0f766e`,strokeWidth:4}),$(`christianity-ichthys-tail-b`,134,100,[[0,0],[64,-58]],303,{strokeColor:`#0f766e`,strokeWidth:4}),Q(`christianity-ichthys-eye`,36,70,10,10,304,{backgroundColor:`#0f766e`,strokeColor:`#0f766e`})]),mB(`christianity-open-bible`,`Open Bible`,[fB(`christianity-bible-left-page`,0,22,98,132,401,{backgroundColor:`#fff7ed`,strokeColor:`#7c2d12`}),fB(`christianity-bible-right-page`,98,22,98,132,402,{backgroundColor:`#fff7ed`,strokeColor:`#7c2d12`}),$(`christianity-bible-spine`,98,18,[[0,0],[0,142]],403,{strokeColor:`#7c2d12`,strokeWidth:3}),$(`christianity-bible-left-line-1`,24,58,[[0,0],[48,0]],404,{strokeColor:`#9a3412`}),$(`christianity-bible-left-line-2`,24,82,[[0,0],[52,0]],405,{strokeColor:`#9a3412`}),$(`christianity-bible-right-line-1`,122,58,[[0,0],[48,0]],406,{strokeColor:`#9a3412`}),$(`christianity-bible-right-line-2`,122,82,[[0,0],[52,0]],407,{strokeColor:`#9a3412`}),$(`christianity-bible-bookmark`,150,22,[[0,0],[0,78]],408,{strokeColor:`#dc2626`,strokeWidth:4})]),mB(`christianity-candle`,`Candle`,[Q(`christianity-candle-flame`,58,0,42,68,501,{backgroundColor:`#fed7aa`,strokeColor:`#ea580c`}),$(`christianity-candle-wick`,79,54,[[0,0],[0,30]],502,{strokeColor:`#44403c`,strokeWidth:3}),fB(`christianity-candle-body`,48,74,62,112,503,{backgroundColor:`#f8fafc`,strokeColor:`#475569`}),Q(`christianity-candle-base`,30,164,98,30,504,{backgroundColor:`#e2e8f0`,strokeColor:`#475569`})]),mB(`christianity-chalice`,`Chalice`,[Q(`christianity-chalice-cup`,18,0,132,86,601,{backgroundColor:`#fde68a`,strokeColor:`#a16207`}),fB(`christianity-chalice-stem`,76,76,20,72,602,{backgroundColor:`#facc15`,strokeColor:`#a16207`}),Q(`christianity-chalice-base`,42,132,88,34,603,{backgroundColor:`#fde68a`,strokeColor:`#a16207`}),$(`christianity-chalice-rim`,28,31,[[0,0],[112,0]],604,{strokeColor:`#a16207`,strokeWidth:3})]),mB(`christianity-empty-tomb`,`Empty Tomb`,[Q(`christianity-tomb-hill`,0,38,176,116,701,{backgroundColor:`#e5e7eb`,strokeColor:`#374151`}),Q(`christianity-tomb-door`,52,74,72,80,702,{backgroundColor:`#111827`,strokeColor:`#111827`}),Q(`christianity-tomb-stone`,118,94,58,58,703,{backgroundColor:`#d1d5db`,strokeColor:`#374151`}),$(`christianity-tomb-ground`,0,152,[[0,0],[190,0]],704,{strokeColor:`#374151`,strokeWidth:3})]),mB(`christianity-radiant-cross`,`Radiant Cross`,[fB(`christianity-radiant-cross-vertical`,78,22,28,142,801,{backgroundColor:`#fde68a`,strokeColor:`#a16207`}),fB(`christianity-radiant-cross-horizontal`,38,70,108,26,802,{backgroundColor:`#fde68a`,strokeColor:`#a16207`}),$(`christianity-radiant-cross-ray-top`,92,0,[[0,0],[0,16]],803,{strokeColor:`#a16207`,strokeWidth:4}),$(`christianity-radiant-cross-ray-left-top`,42,18,[[0,0],[22,22]],804,{strokeColor:`#a16207`,strokeWidth:4}),$(`christianity-radiant-cross-ray-right-top`,142,18,[[0,0],[-22,22]],805,{strokeColor:`#a16207`,strokeWidth:4}),$(`christianity-radiant-cross-ray-left`,8,82,[[0,0],[22,0]],806,{strokeColor:`#a16207`,strokeWidth:4}),$(`christianity-radiant-cross-ray-right`,154,82,[[0,0],[22,0]],807,{strokeColor:`#a16207`,strokeWidth:4}),$(`christianity-radiant-cross-ray-left-bottom`,44,150,[[0,0],[-20,22]],808,{strokeColor:`#a16207`,strokeWidth:4}),$(`christianity-radiant-cross-ray-right-bottom`,140,150,[[0,0],[20,22]],809,{strokeColor:`#a16207`,strokeWidth:4})]),mB(`christianity-crown-of-thorns`,`Crown of Thorns`,[Q(`christianity-crown-ring`,18,22,150,114,901,{backgroundColor:`transparent`,strokeColor:`#78350f`,strokeWidth:4}),$(`christianity-crown-vine-top`,26,76,[[0,0],[24,-30],[54,-42],[88,-34],[118,-8],[142,-16]],902,{strokeColor:`#92400e`,strokeWidth:3}),$(`christianity-crown-vine-bottom`,30,90,[[0,0],[28,26],[72,30],[112,14],[136,-8]],903,{strokeColor:`#92400e`,strokeWidth:3}),$(`christianity-crown-thorn-top`,80,22,[[0,0],[10,-22],[22,0]],904,{strokeColor:`#78350f`,strokeWidth:3}),$(`christianity-crown-thorn-left`,24,62,[[0,0],[-20,-10],[2,-22]],905,{strokeColor:`#78350f`,strokeWidth:3}),$(`christianity-crown-thorn-right`,152,64,[[0,0],[24,-12],[8,-28]],906,{strokeColor:`#78350f`,strokeWidth:3}),$(`christianity-crown-thorn-bottom-left`,54,120,[[0,0],[-12,24],[14,10]],907,{strokeColor:`#78350f`,strokeWidth:3}),$(`christianity-crown-thorn-bottom-right`,122,118,[[0,0],[20,22],[26,-2]],908,{strokeColor:`#78350f`,strokeWidth:3})]),mB(`christianity-dove`,`Dove`,[Q(`christianity-dove-wing`,26,22,96,74,1001,{backgroundColor:`#e0f2fe`,strokeColor:`#0369a1`,strokeWidth:3}),Q(`christianity-dove-body`,64,66,82,52,1002,{backgroundColor:`#f8fafc`,strokeColor:`#0369a1`,strokeWidth:3}),Q(`christianity-dove-head`,126,44,38,38,1003,{backgroundColor:`#f8fafc`,strokeColor:`#0369a1`,strokeWidth:3}),$(`christianity-dove-beak`,160,60,[[0,0],[22,8],[0,16]],1004,{strokeColor:`#b45309`,strokeWidth:3}),Q(`christianity-dove-eye`,146,58,6,6,1005,{backgroundColor:`#0369a1`,strokeColor:`#0369a1`}),$(`christianity-dove-tail-top`,64,90,[[0,0],[-36,-22]],1006,{strokeColor:`#0369a1`,strokeWidth:3}),$(`christianity-dove-tail-bottom`,66,104,[[0,0],[-42,18]],1007,{strokeColor:`#0369a1`,strokeWidth:3}),$(`christianity-dove-wing-feathers`,48,58,[[0,0],[26,18],[52,6],[74,24]],1008,{strokeColor:`#0369a1`,strokeWidth:3}),$(`christianity-dove-olive-branch`,172,56,[[0,0],[32,-14]],1009,{strokeColor:`#15803d`,strokeWidth:3}),$(`christianity-dove-olive-leaf-a`,184,50,[[0,0],[-10,-10]],1010,{strokeColor:`#15803d`,strokeWidth:3}),$(`christianity-dove-olive-leaf-b`,192,46,[[0,0],[10,-10]],1011,{strokeColor:`#15803d`,strokeWidth:3})]),mB(`christianity-heart-cross`,`Heart Cross`,[Q(`christianity-heart-left-lobe`,26,18,72,72,1101,{backgroundColor:`#fecdd3`,strokeColor:`#be123c`,strokeWidth:3}),Q(`christianity-heart-right-lobe`,82,18,72,72,1102,{backgroundColor:`#fecdd3`,strokeColor:`#be123c`,strokeWidth:3}),pB(`christianity-heart-point`,42,56,96,96,1103,{backgroundColor:`#fecdd3`,strokeColor:`#be123c`,strokeWidth:3}),fB(`christianity-heart-cross-vertical`,82,52,18,64,1104,{backgroundColor:`#f8fafc`,strokeColor:`#be123c`}),fB(`christianity-heart-cross-horizontal`,62,74,58,18,1105,{backgroundColor:`#f8fafc`,strokeColor:`#be123c`})]),mB(`christianity-jesus-face`,`Jesus Face`,[Q(`christianity-jesus-halo`,18,0,144,144,1201,{backgroundColor:`transparent`,strokeColor:`#facc15`,strokeWidth:4}),Q(`christianity-jesus-face-shape`,42,24,96,120,1202,{backgroundColor:`#ffedd5`,strokeColor:`#7c2d12`,strokeWidth:3}),$(`christianity-jesus-hair-left`,56,34,[[0,0],[-20,36],[-12,84],[8,110]],1203,{strokeColor:`#7c2d12`,strokeWidth:4}),$(`christianity-jesus-hair-right`,124,34,[[0,0],[20,36],[12,84],[-8,110]],1204,{strokeColor:`#7c2d12`,strokeWidth:4}),$(`christianity-jesus-eye-left`,66,76,[[0,0],[18,0]],1205,{strokeColor:`#7c2d12`,strokeWidth:3}),$(`christianity-jesus-eye-right`,98,76,[[0,0],[18,0]],1206,{strokeColor:`#7c2d12`,strokeWidth:3}),$(`christianity-jesus-nose`,90,80,[[0,0],[-8,28],[8,28]],1207,{strokeColor:`#92400e`,strokeWidth:3}),Q(`christianity-jesus-beard`,62,96,56,52,1208,{backgroundColor:`#fef3c7`,strokeColor:`#7c2d12`,strokeWidth:3}),$(`christianity-jesus-mouth`,76,114,[[0,0],[28,0]],1209,{strokeColor:`#7c2d12`,strokeWidth:3})]),mB(`christianity-communion`,`Communion Cup and Bread`,[Q(`christianity-communion-cup`,18,0,108,78,1301,{backgroundColor:`#fde68a`,strokeColor:`#92400e`,strokeWidth:3}),$(`christianity-communion-wine`,28,30,[[0,0],[88,0]],1302,{strokeColor:`#7f1d1d`,strokeWidth:4}),fB(`christianity-communion-stem`,62,72,20,58,1303,{backgroundColor:`#facc15`,strokeColor:`#92400e`}),Q(`christianity-communion-base`,32,118,80,30,1304,{backgroundColor:`#fde68a`,strokeColor:`#92400e`}),Q(`christianity-communion-bread`,112,96,72,52,1305,{backgroundColor:`#fed7aa`,strokeColor:`#9a3412`,strokeWidth:3}),$(`christianity-communion-bread-score-a`,126,112,[[0,0],[38,22]],1306,{strokeColor:`#9a3412`}),$(`christianity-communion-bread-score-b`,164,112,[[0,0],[-34,24]],1307,{strokeColor:`#9a3412`})]),mB(`christianity-angel`,`Angel`,[Q(`christianity-angel-halo`,68,0,50,16,1401,{backgroundColor:`transparent`,strokeColor:`#ca8a04`,strokeWidth:3}),Q(`christianity-angel-head`,70,24,46,46,1402,{backgroundColor:`#ffedd5`,strokeColor:`#92400e`,strokeWidth:3}),Q(`christianity-angel-left-wing`,8,58,76,72,1403,{backgroundColor:`#e0f2fe`,strokeColor:`#0369a1`,strokeWidth:3}),Q(`christianity-angel-right-wing`,102,58,76,72,1404,{backgroundColor:`#e0f2fe`,strokeColor:`#0369a1`,strokeWidth:3}),pB(`christianity-angel-robe`,60,68,66,108,1405,{backgroundColor:`#f8fafc`,strokeColor:`#475569`,strokeWidth:3}),$(`christianity-angel-left-arm`,70,92,[[0,0],[-34,30]],1406,{strokeColor:`#475569`,strokeWidth:3}),$(`christianity-angel-right-arm`,116,92,[[0,0],[34,30]],1407,{strokeColor:`#475569`,strokeWidth:3}),$(`christianity-angel-wing-feathers-left`,28,88,[[0,0],[28,18],[42,44]],1408,{strokeColor:`#0369a1`,strokeWidth:3}),$(`christianity-angel-wing-feathers-right`,158,88,[[0,0],[-28,18],[-42,44]],1409,{strokeColor:`#0369a1`,strokeWidth:3})]),mB(`christianity-rainbow`,`Rainbow`,[$(`christianity-rainbow-red`,18,132,[[0,0],[14,-42],[42,-78],[82,-98],[124,-78],[152,-42],[166,0]],1501,{strokeColor:`#dc2626`,strokeWidth:6}),$(`christianity-rainbow-gold`,30,132,[[0,0],[12,-34],[36,-62],[70,-78],[104,-62],[128,-34],[140,0]],1502,{strokeColor:`#facc15`,strokeWidth:6}),$(`christianity-rainbow-green`,42,132,[[0,0],[10,-26],[30,-46],[58,-58],[86,-46],[106,-26],[116,0]],1503,{strokeColor:`#16a34a`,strokeWidth:6}),$(`christianity-rainbow-blue`,54,132,[[0,0],[8,-18],[24,-30],[46,-38],[68,-30],[84,-18],[92,0]],1504,{strokeColor:`#2563eb`,strokeWidth:6}),Q(`christianity-rainbow-left-cloud-a`,0,116,44,28,1505,{backgroundColor:`#f8fafc`,strokeColor:`#64748b`}),Q(`christianity-rainbow-left-cloud-b`,28,104,42,40,1506,{backgroundColor:`#f8fafc`,strokeColor:`#64748b`}),Q(`christianity-rainbow-right-cloud-a`,134,116,44,28,1507,{backgroundColor:`#f8fafc`,strokeColor:`#64748b`}),Q(`christianity-rainbow-right-cloud-b`,166,104,42,40,1508,{backgroundColor:`#f8fafc`,strokeColor:`#64748b`})]),mB(`christianity-lamb`,`Lamb`,[Q(`christianity-lamb-body`,34,56,116,70,1601,{backgroundColor:`#f8fafc`,strokeColor:`#475569`,strokeWidth:3}),Q(`christianity-lamb-fleece-a`,46,38,34,34,1602,{backgroundColor:`#ffffff`,strokeColor:`#475569`}),Q(`christianity-lamb-fleece-b`,74,34,38,38,1603,{backgroundColor:`#ffffff`,strokeColor:`#475569`}),Q(`christianity-lamb-fleece-c`,106,42,34,34,1604,{backgroundColor:`#ffffff`,strokeColor:`#475569`}),Q(`christianity-lamb-head`,132,64,50,44,1605,{backgroundColor:`#fff7ed`,strokeColor:`#92400e`,strokeWidth:3}),Q(`christianity-lamb-ear`,162,54,28,20,1606,{backgroundColor:`#fed7aa`,strokeColor:`#92400e`}),Q(`christianity-lamb-eye`,162,78,6,6,1607,{backgroundColor:`#111827`,strokeColor:`#111827`}),$(`christianity-lamb-leg-front`,126,120,[[0,0],[0,36]],1608,{strokeColor:`#475569`,strokeWidth:4}),$(`christianity-lamb-leg-back`,58,120,[[0,0],[0,36]],1609,{strokeColor:`#475569`,strokeWidth:4}),$(`christianity-lamb-tail`,34,82,[[0,0],[-22,-12]],1610,{strokeColor:`#475569`,strokeWidth:4})])];(Object.assign(i.a,i.o({onParseError:e=>{console.warn(`Unable to parse query parameter "${e}"`)}})),i.a.disableBeforeInput&&delete window.InputEvent.prototype.getTargetRanges,i.a).disableBeforeInput;function gB({loadData:e,saveData:t,storageManager:n}){return{async deleteSetting(e){if(e===`lexical-playground-editor-state`){await t(``);return}await n.deleteSetting(e)},async getSetting(t){if(t===`lexical-playground-editor-state`){let t=await e();return typeof t==`string`&&t.length>0?t:null}return n.getSetting(t)},async setSetting(e,r){if(e===`lexical-playground-editor-state`){let e=_B(r);e!==null&&await t(e);return}await n.setSetting(e,r)}}}function _B(e){if(e==null)return null;if(typeof e==`string`)return e;try{return JSON.stringify(e)??null}catch{return null}}function vB({props:e,containerElement:t,editorControllerOwner:n,floatingActionButtonControllerOwner:r,footerActionButtonControllerOwner:i,settingsControllerOwner:a,storageManager:o},{settings:s,settingsContainerElement:c}={}){let l=(0,g.createRoot)(t),u=e.resolveFilePath,d=e.revealFile,f=e.print,p=e.isOnApp??!1,m=e.isMinimize??!1;return l.render((0,_.jsx)(h.StrictMode,{children:(0,_.jsx)(cB,{detectTextLanguage:e.getLangCode,namesLookupManager:e.namesLookupManager,locationsLookupManager:e.locationsLookupManager,editorController:n,editorExtraFontFamilies:e.editorExtraFontFamilies,excalidrawLibraryItems:[...hB,...e.excalidrawLibraryItems??[]],excalidrawClearLibrariesFileList:e.excalidrawClearLibrariesFileList,excalidrawLoadLibrariesFileList:e.excalidrawLoadLibrariesFileList,excalidrawSaveLibrariesFile:e.excalidrawSaveLibrariesFile,floatingActionButtonController:r,footerActionButtonController:i,isMinimize:m,isOnApp:p,print:f,resolveFilePath:u,revealFile:d,settings:s,settingsContainerElement:c,settingsController:a,stickyNoteExtraFontFamilies:e.stickyNoteExtraFontFamilies,storageManager:o,shortToVerseData:e.shortToVerseData,verseFullTextToListShorts:e.verseFullTextToListShorts,changeBibleKey:e.changeBibleKey})})),l}var{version:yB}=y,bB=class{static VERSION=yB;props;colorScheme=`light`;editorController=null;pendingEditorActions=[];pendingColorScheme=null;readOnlyOverride=null;footerActionButtonController=null;footerActionButtons=new b;floatingActionButtonController=null;floatingActionButtons=new b;root=null;settingsController=null;editorControllerOwner={connectEditorController:e=>this.connectEditorController(e)};footerActionButtonControllerOwner={connectFooterActionButtonController:e=>this.connectFooterActionButtonController(e)};floatingActionButtonControllerOwner={connectFloatingActionButtonController:e=>this.connectFloatingActionButtonController(e)};storageManager;settingsControllerOwner={connectSettingsController:(e,t)=>this.connectSettingsController(e,t),syncColorSchemeFromSettings:e=>this.syncColorSchemeFromSettings(e)};constructor(e){this.props=e,this.storageManager=gB(e)}get content(){return this.editorController?.getContent()??``}set content(e){this.runOrQueueEditorAction(t=>{t.setContent(e)})}get isReadOnly(){return this.readOnlyOverride??this.editorController?.getIsReadOnly()??!1}set isReadOnly(e){this.readOnlyOverride=e,this.editorController?.setReadOnly(e)}getIsFocusing(){return this.editorController?.getIsFocusing()??!1}setColorScheme(e){this.pendingColorScheme=e,this.colorScheme=e,x(e),this.settingsController?.setColorScheme(e)}addText(e){e.length===0||this.isReadOnly||this.runOrQueueEditorAction(t=>{this.isReadOnly||t.addText(e)})}appendFooterActionButton(e){this.footerActionButtons.set(e,`after`),this.syncFooterActionButtons()}prependFooterActionButton(e){this.footerActionButtons.set(e,`before`),this.syncFooterActionButtons()}getFooterActionButton(e){return this.footerActionButtons.get(e)}removeFooterActionButton(e){let t=this.footerActionButtons.remove(e);return t&&this.syncFooterActionButtons(),t}appendFloatingActionButton(e){this.floatingActionButtons.set(e,`after`),this.syncFloatingActionButtons()}prependFloatingActionButton(e){this.floatingActionButtons.set(e,`before`),this.syncFloatingActionButtons()}getFloatingActionButton(e){return this.floatingActionButtons.get(e)}removeFloatingActionButton(e){let t=this.floatingActionButtons.remove(e);return t&&this.syncFloatingActionButtons(),t}syncFooterActionButtons(){this.footerActionButtonController?.setFooterActionButtons(this.footerActionButtons.snapshot())}syncFloatingActionButtons(){this.floatingActionButtonController?.setFloatingActionButtons(this.floatingActionButtons.snapshot())}runOrQueueEditorAction(e){let t=this.editorController;if(t===null){this.pendingEditorActions.push(e);return}e(t)}connectEditorController(e){this.editorController=e;for(let t of this.pendingEditorActions.splice(0))t(e);return this.readOnlyOverride!==null&&e.setReadOnly(this.readOnlyOverride),()=>{this.editorController===e&&(this.editorController=null)}}connectSettingsController(e,t){return this.settingsController=e,this.pendingColorScheme!==null&&this.pendingColorScheme!==t?e.setColorScheme(this.pendingColorScheme):(this.pendingColorScheme=null,this.colorScheme=t),()=>{this.settingsController===e&&(this.settingsController=null)}}connectFooterActionButtonController(e){return this.footerActionButtonController=e,e.setFooterActionButtons(this.footerActionButtons.snapshot()),()=>{this.footerActionButtonController===e&&(this.footerActionButtonController=null)}}connectFloatingActionButtonController(e){return this.floatingActionButtonController=e,e.setFloatingActionButtons(this.floatingActionButtons.snapshot()),()=>{this.floatingActionButtonController===e&&(this.floatingActionButtonController=null)}}syncColorSchemeFromSettings(e){this.pendingColorScheme!==null&&this.pendingColorScheme!==e||(this.pendingColorScheme=null,this.colorScheme=e,x(e))}searchText(e){this.runOrQueueEditorAction(t=>{t.searchText(e)})}render(e,t={}){this.unmount(),this.root=vB({props:this.props,containerElement:e,editorControllerOwner:this.editorControllerOwner,floatingActionButtonControllerOwner:this.floatingActionButtonControllerOwner,footerActionButtonControllerOwner:this.footerActionButtonControllerOwner,settingsControllerOwner:this.settingsControllerOwner,storageManager:this.storageManager},t)}unmount(){this.root?.unmount(),this.root=null,this.editorController=null,this.floatingActionButtonController=null,this.footerActionButtonController=null,this.settingsController=null}static getAllShortVersesFromText(e){return ic(e)}};function xB({checked:e,onClick:t,text:n,id:r}){let i=(0,h.useId)();return(0,_.jsxs)(`div`,{className:`switch d-block my-1 px-2 py-1 rounded-3`,id:r,children:[(0,_.jsx)(`label`,{className:`mb-0 me-1`,htmlFor:i,children:n}),(0,_.jsx)(`button`,{role:`switch`,"aria-checked":e,id:i,onClick:t,children:(0,_.jsx)(`span`,{})})]})}function SB({onColorSchemeChange:e}={}){let n=window.location,[r]=t.oi(),{resetOptions:a,setOption:o,settings:s}=i.r(),{measureTypingPerf:c,isDarkMode:l,isRichText:u,hasNestedTables:d,isMaxLength:f,hasLinkAttributes:p,isCharLimit:m,isCharLimitUtf8:g,isAutocomplete:v,showTreeView:y,showNestedEditorTreeView:b,showTableOfContents:x,shouldUseLexicalContextMenu:S,shouldPreserveNewLinesInMarkdown:C,shouldAllowHighlightingWithBrackets:w,showInvisibleCharacters:T,selectionAlwaysOnDisplay:E,isCodeHighlighted:D,isCodeShiki:O}=s;(0,h.useEffect)(()=>{i.a.disableBeforeInput&&t.xr&&console.error(`Legacy events are enabled (disableBeforeInput) but CAN_USE_BEFORE_INPUT is true`)},[]);let[k,A]=(0,h.useState)(!1),[j,M]=(0,h.useMemo)(()=>{let e=window.parent,t=n.search;return[e&&e.location.pathname===`/split/`,t]},[n]),N=i.s(s);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{id:`options-button`,"data-test-id":`options-button`,className:`editor-dev-button ${k?`active`:``}`,onClick:()=>A(!k),children:(0,_.jsx)(`i`,{className:`bi bi-gear`})}),k?(0,_.jsxs)(`div`,{className:`switches p-1`,children:[!1,(0,_.jsx)(xB,{onClick:()=>o(`measureTypingPerf`,!c),checked:c,text:`Measure Perf`}),(0,_.jsx)(xB,{onClick:()=>o(`showTreeView`,!y),checked:y,text:`Debug View`}),(0,_.jsx)(xB,{onClick:()=>{let t=l?`light`:`dark`;if(e){e(t);return}o(`isDarkMode`,t===`dark`)},checked:l,text:`Dark Mode`}),(0,_.jsx)(xB,{onClick:()=>{o(`showInvisibleCharacters`,!T)},checked:T,text:`Show invisible characters`}),(0,_.jsx)(xB,{onClick:()=>o(`showNestedEditorTreeView`,!b),checked:b,text:`Nested Editors Debug View`}),(0,_.jsx)(xB,{onClick:()=>{o(`isRichText`,!u)},checked:u,text:`Rich Text`}),(0,_.jsx)(xB,{onClick:()=>{o(`hasNestedTables`,!d)},checked:d,text:`Nested Tables`}),(0,_.jsx)(xB,{onClick:()=>o(`isCharLimit`,!m),checked:m,text:`Char Limit`}),(0,_.jsx)(xB,{onClick:()=>o(`isCharLimitUtf8`,!g),checked:g,text:`Char Limit (UTF-8)`}),(0,_.jsx)(xB,{onClick:()=>o(`hasLinkAttributes`,!p),checked:p,text:`Link Attributes`}),(0,_.jsx)(xB,{onClick:()=>o(`isMaxLength`,!f),checked:f,text:`Max Length`}),(0,_.jsx)(xB,{onClick:()=>o(`isAutocomplete`,!v),checked:v,text:`Autocomplete`}),(0,_.jsx)(xB,{onClick:()=>{o(`showTableOfContents`,!x)},checked:x,text:`Table Of Contents`}),(0,_.jsx)(xB,{onClick:()=>{o(`shouldUseLexicalContextMenu`,!S)},checked:S,text:`Use Lexical Context Menu`}),(0,_.jsx)(xB,{onClick:()=>{o(`shouldPreserveNewLinesInMarkdown`,!C)},checked:C,text:`Preserve newlines in Markdown`}),(0,_.jsx)(xB,{onClick:()=>{o(`shouldAllowHighlightingWithBrackets`,!w)},checked:w,text:`Use Brackets for Highlighting`}),(0,_.jsx)(xB,{onClick:()=>{o(`selectionAlwaysOnDisplay`,!E)},checked:E,text:`Retain selection`}),(0,_.jsx)(xB,{onClick:()=>{o(`isCodeHighlighted`,!D)},checked:D,text:`Enable Code Highlighting`}),(0,_.jsx)(xB,{onClick:()=>{o(`isCodeShiki`,!O)},checked:O,text:`Use Shiki for Code Highlighting`}),(0,_.jsx)(`button`,{type:`button`,className:`settings-reset`,disabled:!N,onClick:()=>{qi(),Fr(),a(),nz(r,{emptyEditor:i.i.emptyEditor})},children:`Reset to Defaults`})]}):null]})}function CB({setColorScheme:e}){return(0,_.jsx)(SB,{onColorSchemeChange:t=>{e(t)}})}var wB=bB;exports.BIBLE_NOTE_STORAGE_MANAGER_KEYS=i.c,exports.BibleNote=bB,exports.BibleNoteSettings=CB,exports.EDITOR_STATE_LOCAL_STORAGE_KEY=lr,exports.LocationsLookupManager=a.st,exports.NamesLookupManager=a.ct,exports.applyBibleNoteColorScheme=x,exports.clearBibleNoteColorScheme=S,exports.createBrowserStorageManager=i.u,exports.default=wB,exports.getLookupRecordValues=a.lt,exports.getMentionKjvName=a.ut,exports.normalizeMentionNameType=a.dt,exports.parseMentionLocationMatch=a.ft,exports.parseMentionLocationMatches=a.pt,exports.parseMentionNameMatch=a.mt,exports.parseMentionNameMatches=a.ht;
1021
+ `),html:n.join(``)}}function fL(){let e=(0,h.useRef)(null),t=(0,h.useRef)(null),[n,r]=(0,h.useState)(null),[i,o]=(0,h.useState)(null),[s,c]=(0,h.useState)(null),[l,u]=(0,h.useState)([]),{shortToVerseData:d}=a._t(),f=(0,h.useCallback)(()=>{e.current!==null&&(window.clearTimeout(e.current),e.current=null)},[]),p=(0,h.useCallback)(()=>{t.current!==null&&(window.clearTimeout(t.current),t.current=null)},[]),m=(0,h.useCallback)(()=>{f(),p(),o(null),r(null)},[p,f]),g=(0,h.useCallback)(()=>{f(),p(),t.current=window.setTimeout(()=>{o(null),r(null),t.current=null},KI)},[p,f]),y=(0,h.useCallback)((e,t)=>{let n=nL(e),r=a.V(),i=a.z(t);u(a=>{let o=a.find(e=>e.panelKey===n),s={...e,anchorElement:t,panelKey:n,position:o?.position??i,zIndex:r};return o===void 0?[...a,s]:a.map(e=>e.panelKey===n?s:e)}),m()},[m]),b=(0,h.useCallback)(e=>{u(t=>t.filter(t=>t.panelKey!==e))},[]),x=(0,h.useCallback)(e=>{let t=a.V();u(n=>n.map(n=>n.panelKey===e?{...n,zIndex:t}:n))},[]),S=(0,h.useCallback)((e,t)=>{u(n=>{let r=!1,i=n.map(n=>n.panelKey!==e||n.position.left===t.left&&n.position.top===t.top?n:(r=!0,{...n,position:t}));return r?i:n})},[]),C=(0,h.useCallback)((e,t)=>{let n=nL(t),r=a.V();u(i=>{if(i.find(e=>e.panelKey===n)!==void 0)return i.map(e=>e.panelKey===n?{...e,body:t.body,name:t.name,style:t.style,zIndex:r}:e);let o=a.I({left:e.position.left+YI,top:e.position.top+YI},null,e.anchorElement);return[...i,{...t,anchorElement:e.anchorElement,panelKey:n,position:o,zIndex:r}]})},[]);(0,h.useEffect)(()=>{let e=e=>{let t=e.detail;if(typeof t!=`object`||!t||!(t.anchorElement instanceof HTMLElement)||typeof t.shortVerse!=`string`)return;let n=t.shortVerse.trim(),r=t.anchorElement;n===``||d===void 0||Promise.resolve(d(n)).then(e=>{e!==null&&y(aL(n,e),r)})};return window.addEventListener(a.K,e),()=>{window.removeEventListener(a.K,e)}},[y,d]),(0,h.useEffect)(()=>{let e=e=>{if(e.button!==0)return;let t=ZI(e.target);if(t===null||!a.H(e,t))return;let n=$I(t);n!==null&&(y(n,t),e.preventDefault(),e.stopPropagation())};return document.addEventListener(`pointerdown`,e,!0),()=>{document.removeEventListener(`pointerdown`,e,!0)}},[y]),(0,h.useEffect)(()=>{let t=t=>{if(QI(t.target)!==null){p();return}let n=ZI(t.target),a=ZI(t.relatedTarget);if(n===null)return;if(n===i){p();return}if(n===a)return;let s=$I(n);s!==null&&(m(),e.current=window.setTimeout(()=>{o(n),r(s),e.current=null},GI))},n=e=>{let t=ZI(e.target),n=QI(e.target),r=ZI(e.relatedTarget),i=QI(e.relatedTarget);if(!(t===null&&n===null)){if(r!==null||i!==null){p();return}g()}};return document.addEventListener(`mouseover`,t),document.addEventListener(`mouseout`,n),()=>{f(),p(),document.removeEventListener(`mouseover`,t),document.removeEventListener(`mouseout`,n)}},[p,f,m,i,g]),(0,h.useEffect)(()=>{if(i===null){c(null);return}let e=()=>{if(!i.isConnected){m(),c(null);return}c(tL(i))};return e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[m,i]);let w=n===null?void 0:eL(n.fontFamily);return(0,_.jsxs)(_.Fragment,{children:[n!==null&&s!==null?v.createPortal((0,_.jsxs)(`div`,{className:`mention-hover-card`,"data-mention-bible-verse-hover-card":`true`,role:`tooltip`,style:s,tabIndex:0,onClick:()=>{i!==null&&y(n,i)},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&i!==null&&(y(n,i),e.preventDefault())},children:[(0,_.jsxs)(`div`,{className:`mention-hover-card__name d-inline-flex align-items-center gap-2`,style:w,children:[(0,_.jsx)(`i`,{className:qI,"aria-hidden":`true`}),(0,_.jsx)(`span`,{children:n.name})]}),n.body?(0,_.jsx)(`div`,{className:`mention-hover-card__title`,style:w,children:rL(n.body)}):null]}),document.body):null,l.map(e=>(0,_.jsx)(a.i,{anchorElement:e.anchorElement,iconClassName:qI,name:e.name,nameContent:(0,_.jsx)(uL,{panel:e,onOpenChangedVersePanel:t=>C(e,t)}),panelKind:`Bible verse`,position:e.position,textStyle:eL(e.fontFamily,e.style),title:(0,_.jsx)(lL,{panel:e}),zIndex:e.zIndex,onBringToFront:()=>{x(e.panelKey)},onClose:()=>{b(e.panelKey)},onCopy:()=>{let{plainText:t,html:n}=dL(e);return a.L(t,n)},onPositionChange:t=>{S(e.panelKey,t)}},e.panelKey))]})}var pL=1,mL=96;function hL(e){let t=e.trim();return t.endsWith(`px`)?Number.parseFloat(t):t.endsWith(`in`)?Number.parseFloat(t)*mL:null}function gL(e){return hL(getComputedStyle(e).getPropertyValue(`--playground-paper-height`).trim())}function _L(e){let t=e.getBoundingClientRect(),n=getComputedStyle(e),r=Number.parseFloat(n.paddingTop)||0,i=Number.parseFloat(n.paddingBottom)||0,a=r;for(let n of Array.from(e.children))a=Math.max(a,n.getBoundingClientRect().bottom-t.top);return a+i}function vL(e){let t=gL(e);if(t===null||t<=0)return;let n=Math.max(pL,Math.ceil(_L(e)/t));e.style.setProperty(`--playground-paper-page-count`,String(n)),e.style.setProperty(`--playground-paper-total-height`,`${n*t}px`)}function yL(e){e!==null&&(e.style.removeProperty(`--playground-paper-page-count`),e.style.removeProperty(`--playground-paper-total-height`))}function bL(){let[e]=t.oi(),{settings:{pageSize:n}}=i.r();return(0,h.useEffect)(()=>{let t=e.getRootElement(),r=null,i=null,a=()=>{r!==null&&(window.cancelAnimationFrame(r),r=null)},o=()=>{a(),r=window.requestAnimationFrame(()=>{if(r=null,n===`web`){yL(t);return}t!==null&&vL(t)})},s=e=>{i?.disconnect(),t=e,t!==null&&n!==`web`&&typeof ResizeObserver<`u`?(i=new ResizeObserver(o),i.observe(t)):i=null,o()};s(t);let c=e.registerRootListener(s),l=e.registerUpdateListener(o);return window.addEventListener(`resize`,o),()=>{a(),i?.disconnect(),c(),l(),window.removeEventListener(`resize`,o),yL(t)}},[e,n]),null}var xL=96,SL=1;function CL(e){let t=e.parentElement;for(;t!==null;){if(t.classList.contains(`editor-container`))return t;t=t.parentElement}return null}function wL(e){let t=getComputedStyle(e).getPropertyValue(`--playground-editor-content-zoom`).trim(),n=Number.parseFloat(t);return Number.isFinite(n)&&n>0?n:1}function TL(){let[e]=t.oi(),{settings:{pageSize:n}}=i.r();return(0,h.useEffect)(()=>{let t=i.h(n);if(t===null)return;let r=e.getRootElement(),a=e=>{if(e.key!==`PageDown`&&e.key!==`PageUp`||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.defaultPrevented||r===null)return;let n=CL(r);if(n===null)return;let i=wL(r),a=t.heightIn*xL*i;if(a<=0)return;let o=r.getBoundingClientRect(),s=n.getBoundingClientRect(),c=n.scrollTop,l=o.top-s.top+c,u=c-l,d=e.key===`PageDown`?Math.floor((u+SL)/a)+1:Math.ceil((u-SL)/a)-1,f=Math.max(0,n.scrollHeight-n.clientHeight),p=Math.max(0,Math.min(l+d*a,f));e.preventDefault(),n.scrollTo({behavior:`smooth`,top:p})},o=e.registerRootListener((e,t)=>{t?.removeEventListener(`keydown`,a),e?.addEventListener(`keydown`,a),r=e});return()=>{o(),r?.removeEventListener(`keydown`,a)}},[e,n]),null}function EL(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function DL({scrollContainerRef:e}){let[t,n]=(0,h.useState)(!1),[r,i]=(0,h.useState)(0),[a,o]=(0,h.useState)(0);return(0,h.useEffect)(()=>{let t=e.current;if(t===null)return;let r=0,a=()=>{r=0,n(t.scrollTop>240);let e=getComputedStyle(t),a=parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth),s=parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth);i(Math.max(0,t.offsetWidth-t.clientWidth-(a||0))),o(Math.max(0,t.offsetHeight-t.clientHeight-(s||0)))},s=()=>{r===0&&(r=window.requestAnimationFrame(a))};return a(),t.addEventListener(`scroll`,s,{passive:!0}),()=>{t.removeEventListener(`scroll`,s),r!==0&&window.cancelAnimationFrame(r)}},[e]),(0,_.jsx)(`div`,{className:`editor-scroll-top-anchor`,style:{"--editor-scroll-top-scrollbar-height":`${a}px`,"--editor-scroll-top-scrollbar-width":`${r}px`},children:(0,_.jsx)(`button`,{"aria-hidden":!t,"aria-label":`Scroll to top`,className:`editor-scroll-top-button${t?` visible`:``}`,"data-test-id":`scroll-to-top-button`,onClick:()=>{e.current?.scrollTo({behavior:EL()?`auto`:`smooth`,top:0})},onMouseDown:e=>e.preventDefault(),tabIndex:t?0:-1,title:`Scroll to top`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-arrow-up`})})})}function OL({editor:e,setIsLinkEditMode:n}){let{toolbarState:r}=j();return(0,h.useEffect)(()=>e.registerCommand(t.Or,i=>{if(t.Cn(i,{}))return!1;if(L(i))pn(e);else if(R(i)){let{code:t}=i,n=`h${t[t.length-1]}`;mn(e,r.blockType,n)}else if(B(i))hn(e,r.blockType);else if(z(i))_n(e,r.blockType);else if(ee(i))gn(e,r.blockType);else if(te(i))yn(e,r.blockType);else if(V(i))vn(e,r.blockType);else if(H(i))e.dispatchCommand(t.w,`strikethrough`);else if(ne(i))e.dispatchCommand(t.w,`lowercase`);else if(re(i))e.dispatchCommand(t.w,`uppercase`);else if(ie(i))e.dispatchCommand(t.w,`capitalize`);else if(ae(i))e.dispatchCommand(t.on,void 0);else if(oe(i))e.dispatchCommand(t.pr,void 0);else if(se(i))e.dispatchCommand(t.tr,`center`);else if(ce(i))e.dispatchCommand(t.tr,`left`);else if(le(i))e.dispatchCommand(t.tr,`right`);else if(ue(i))e.dispatchCommand(t.tr,`justify`);else if(de(i))e.dispatchCommand(t.w,`subscript`);else if(fe(i))e.dispatchCommand(t.w,`superscript`);else if(pe(i))e.dispatchCommand(t.w,`code`);else if(me(i))fn(e,ln.increment,r.fontSizeInputValue);else if(U(i))fn(e,ln.decrement,r.fontSizeInputValue);else if(he(i))bn(e);else if(ge(i)){let t=r.isLink?null:a.C(`https://`);n(!r.isLink),e.dispatchCommand(a.nt,t)}else if(be(i))e.dispatchCommand(NM,void 0);else return!1;return i.preventDefault(),!0},2),[e,r.isLink,r.blockType,r.fontSizeInputValue,n]),null}var kL=class e extends t.Wt{static getType(){return`specialText`}static clone(t){return new e(t.__text,t.__key)}createDOM(e){let n=document.createElement(`span`);return t.Vr(n,e.theme.specialText),n.textContent=this.getTextContent(),n}updateDOM(e,n,r){return e.__text.startsWith(`[`)&&e.__text.endsWith(`]`)&&(n.textContent=this.__text.substring(1,this.__text.length-1)),t.Vr(n,r.theme.specialText),!1}static importJSON(e){return AL().updateFromJSON(e)}isTextEntity(){return!0}canInsertTextAfter(){return!1}};function AL(e=``){return t.o(new kL(e))}var jL=/\[([^\[\]]+)\]/;function ML(e){let t=e.getTextContent(),n=jL.exec(t);if(n){let t=n[1],r=n.index,i;r===0?[i]=e.splitText(r+n[0].length):[,i]=e.splitText(r,r+n[0].length);let a=AL(t);return i.replace(a),a}return null}function NL(e){let t=e;for(;t!==null;){if(!t.isSimpleText())return;t=ML(t)}}function PL(e){(0,h.useEffect)(()=>{if(!e.hasNodes([kL]))throw Error(`SpecialTextPlugin: SpecialTextNode not registered on editor`);return e.registerNodeTransform(t.Wt,NL)},[e])}function FL(){let[e]=t.oi();return PL(e),null}function IL(){return t.c(s.r).filter(e=>e.isAttached())}function LL(e){return s.n(e)?!0:t.vt(e)&&e.getChildrenSize()>0&&e.getChildren().every(LL)}function RL(e){let t=e.getTopLevelElement()??e;return Math.max(0,t.getIndexWithinParent())}function zL(){let e=t.Dr(),n=e.getChildren();if(n.some(e=>!LL(e)))return;let r=t.Ar(),i=n.findIndex(LL);e.splice(i===-1?0:i,0,[r]),r.select()}function BL(){let e=t.tt();if(!t.bn(e)||e.isCollapsed())return!1;let n=t.Dr(),r=IL();if(r.length===0)return!1;let i=r.map(e=>({index:RL(e),key:e.getKey(),serializedNode:e.exportJSON()}));e.removeText();for(let{index:e,key:r,serializedNode:a}of i){let i=t.Ht(r);s.n(i)&&i.isAttached()||n.splice(Math.min(e,n.getChildrenSize()),0,[s.r.importJSON(a)])}return zL(),!0}function VL(){let e=t.Dr(),n=e.getChildren(),r=n.findIndex(LL);return r===-1||n.slice(r).some(e=>!LL(e))?!1:(r===0||e.select(0,r),!0)}function HL(e){let t=BL();return t&&e.preventDefault(),t}function UL(e){return t.Yn(e.registerCommand(t.qn,()=>VL(),4),e.registerCommand(t.Nr,e=>HL(e),4),e.registerCommand(t.wn,e=>HL(e),4),e.registerCommand(t.It,()=>BL(),4),e.registerCommand(t.zt,()=>BL(),4))}function WL(){let[e]=t.oi();return(0,h.useEffect)(()=>{if(!e.hasNodes([s.r]))throw Error(`StickyPlugin: StickyNode not registered on editor`);return UL(e)},[e]),null}var GL=100,KL=0,qL=!1;function JL(){window.addEventListener(`keydown`,e=>{e.key===`Tab`&&(KL=e.timeStamp)},!0)}function YL(){let[e]=t.oi();return(0,h.useEffect)(()=>(qL||=(JL(),!0),e.registerCommand(t.mt,e=>{let n=t.tt();return t.bn(n)&&KL+GL>e.timeStamp&&t.En(n.clone()),!1},1)),[e]),null}function XL(e){let t=e.getShape();return{columns:t.toX-t.fromX+1,rows:t.toY-t.fromY+1}}function ZL(){let e=t.tt();if(t.bn(e)&&!e.isCollapsed()||a.Kt(e)&&!e.anchor.is(e.focus)||!t.bn(e)&&!a.Kt(e))return!1;let[n]=a.kt(e.anchor);return n.__colSpan>1||n.__rowSpan>1}function QL(e){let n=e.getLastDescendant();t.Jt(n)?n.select():t.vt(n)?n.selectEnd():n!==null&&n.selectNext()}function $L(e){return e.getEditorState().read(()=>{let e=t.tt();if(t.bn(e)||a.Kt(e)){let[t]=a.kt(e.anchor);if(a.Rt(t))return t.getBackgroundColor()}return null})}function eR({onClose:e,tableCellNode:n,setIsMenuOpen:r,contextRef:i,cellMerge:o,showColorPickerModal:s}){let[c]=t.oi(),l=(0,h.useRef)(null),[u,d]=(0,h.useState)(n),[f,p]=(0,h.useState)({columns:1,rows:1}),[m,g]=(0,h.useState)(!1),[y,b]=(0,h.useState)(!1),[x,S]=(0,h.useState)(()=>$L(c)||``);(0,h.useEffect)(()=>c.registerMutationListener(a.Wt,e=>{e.get(u.getKey())===`updated`&&(c.getEditorState().read(()=>{d(u.getLatest())}),S($L(c)||``))},{skipInitialization:!0}),[c,u]),(0,h.useEffect)(()=>{c.getEditorState().read(()=>{let e=t.tt();if(a.Kt(e)){let t=XL(e);p(XL(e)),g(t.columns>1||t.rows>1)}b(ZL())})},[c]),(0,h.useEffect)(()=>{let e=i.current,t=l.current,n=c.getRootElement();if(e!=null&&t!=null&&n!=null){let r=n.getBoundingClientRect(),i=e.getBoundingClientRect();t.style.opacity=`1`;let a=t.getBoundingClientRect(),o=i.right+5;if(o+a.width>window.innerWidth||o+a.width>r.right){let e=i.left-a.width-5;o=(e<0?5:e)+window.pageXOffset}t.style.left=`${o+window.pageXOffset}px`;let s=i.top;if(s+a.height>window.innerHeight){let e=i.bottom-a.height;s=e<0?5:e}t.style.top=`${s}px`}},[i,l,c]),(0,h.useEffect)(()=>{function e(e){l.current!=null&&i.current!=null&&t.Ln(e.target)&&!l.current.contains(e.target)&&!i.current.contains(e.target)&&r(!1)}return window.addEventListener(`click`,e),()=>window.removeEventListener(`click`,e)},[r,i]);let C=(0,h.useCallback)(()=>{c.update(()=>{if(u.isAttached()){let e=a.bt(u),t=a.It(e,c.getElementByKey(e.getKey()));if(t===null)throw Error(`TableActionMenu: Expected to find tableElement in DOM`);let n=a.Xt(t);n!==null&&n.$clearHighlight(),e.markDirty(),d(u.getLatest())}t.En(null)})},[c,u]),w=()=>{c.update(()=>{let n=t.tt();if(!a.Kt(n))return;let r=a.wt(n.getNodes().filter(a.Rt));r&&(QL(r),e())})},T=()=>{c.update(()=>{a.Et()})},E=(0,h.useCallback)(t=>{c.update(()=>{for(let e=0;e<f.rows;e++)a.Zt(t);e()})},[c,e,f.rows]),D=(0,h.useCallback)(t=>{c.update(()=>{for(let e=0;e<f.columns;e++)a.St(t);e()})},[c,e,f.columns]),O=(0,h.useCallback)(()=>{c.update(()=>{a.zt(),e()})},[c,e]),k=(0,h.useCallback)(()=>{c.update(()=>{a.bt(u).remove(),C(),e()})},[c,u,C,e]),A=(0,h.useCallback)(()=>{c.update(()=>{a.xt(),e()})},[c,e]),j=(0,h.useCallback)(()=>{c.update(()=>{let t=a.bt(u),n=a.jt(u),[r]=a.Tt(t,null,null),i=new Set,o=u.getHeaderStyles()^a.Ht.ROW;for(let e=0;e<r[n].length;e++){let t=r[n][e];t?.cell&&(i.has(t.cell)||(i.add(t.cell),t.cell.setHeaderStyles(o,a.Ht.ROW)))}C(),e()})},[c,u,C,e]),M=(0,h.useCallback)(()=>{c.update(()=>{let t=a.bt(u),n=a.Ot(u),[r]=a.Tt(t,null,null),i=new Set,o=u.getHeaderStyles()^a.Ht.COLUMN;for(let e=0;e<r.length;e++){let t=r[e][n];t?.cell&&(i.has(t.cell)||(i.add(t.cell),t.cell.setHeaderStyles(o,a.Ht.COLUMN)))}C(),e()})},[c,u,C,e]),N=(0,h.useCallback)(()=>{c.update(()=>{if(u.isAttached()){let e=a.bt(u);e&&e.setRowStriping(!e.getRowStriping())}C(),e()})},[c,u,C,e]),P=(0,h.useCallback)(()=>{c.update(()=>{if(u.isAttached()){let e=a.bt(u);e&&e.setFrozenRows(+(e.getFrozenRows()===0))}C(),e()})},[c,u,C,e]),F=(0,h.useCallback)(()=>{c.update(()=>{if(u.isAttached()){let e=a.bt(u);e&&e.setFrozenColumns(+(e.getFrozenColumns()===0))}C(),e()})},[c,u,C,e]),I=(0,h.useCallback)(e=>{c.update(()=>{let n=t.tt();if(t.bn(n)||a.Kt(n)){let[t]=a.kt(n.anchor);if(a.Rt(t)&&t.setBackgroundColor(e),a.Kt(n)){let t=n.getNodes();for(let n=0;n<t.length;n++){let r=t[n];a.Rt(r)&&r.setBackgroundColor(e)}}}})},[c]),L=e=>{c.update(()=>{let n=t.tt();if(t.bn(n)||a.Kt(n)){let[t]=a.kt(n.anchor);if(a.Rt(t)&&t.setVerticalAlign(e),a.Kt(n)){let t=n.getNodes();for(let n=0;n<t.length;n++){let r=t[n];a.Rt(r)&&r.setVerticalAlign(e)}}}})},R=null;return o&&(m?R=(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>w(),"data-test-id":`table-merge-cells`,children:(0,_.jsx)(`span`,{className:`text`,children:`Merge cells`})}):y&&(R=(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>T(),"data-test-id":`table-unmerge-cells`,children:(0,_.jsx)(`span`,{className:`text`,children:`Unmerge cells`})}))),(0,v.createPortal)((0,_.jsxs)(`div`,{className:`dropdown`,ref:l,onClick:e=>{e.stopPropagation()},children:[R,(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>s(`Cell background color`,()=>(0,_.jsx)(Nn,{color:x,onChange:I})),"data-test-id":`table-background-color`,children:(0,_.jsx)(`span`,{className:`text`,children:`Background color`})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>N(),"data-test-id":`table-row-striping`,children:(0,_.jsx)(`span`,{className:`text`,children:`Toggle Row Striping`})}),(0,_.jsxs)(ZN,{buttonLabel:`Vertical Align`,buttonClassName:`item`,buttonAriaLabel:`Formatting options for vertical alignment`,children:[(0,_.jsx)(Z,{onClick:()=>{L(`top`)},className:`item wide`,children:(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:`bi bi-align-top icon`}),(0,_.jsx)(`span`,{className:`text`,children:`Top Align`})]})}),(0,_.jsx)(Z,{onClick:()=>{L(`middle`)},className:`item wide`,children:(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:`bi bi-align-middle icon`}),(0,_.jsx)(`span`,{className:`text`,children:`Middle Align`})]})}),(0,_.jsx)(Z,{onClick:()=>{L(`bottom`)},className:`item wide`,children:(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:`bi bi-align-bottom icon`}),(0,_.jsx)(`span`,{className:`text`,children:`Bottom Align`})]})})]}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>P(),"data-test-id":`table-freeze-first-row`,children:(0,_.jsx)(`span`,{className:`text`,children:`Toggle First Row Freeze`})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>F(),"data-test-id":`table-freeze-first-column`,children:(0,_.jsx)(`span`,{className:`text`,children:`Toggle First Column Freeze`})}),(0,_.jsx)(`hr`,{}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>E(!1),"data-test-id":`table-insert-row-above`,children:(0,_.jsxs)(`span`,{className:`text`,children:[`Insert`,` `,f.rows===1?`row`:`${f.rows} rows`,` `,`above`]})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>E(!0),"data-test-id":`table-insert-row-below`,children:(0,_.jsxs)(`span`,{className:`text`,children:[`Insert`,` `,f.rows===1?`row`:`${f.rows} rows`,` `,`below`]})}),(0,_.jsx)(`hr`,{}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>D(!1),"data-test-id":`table-insert-column-before`,children:(0,_.jsxs)(`span`,{className:`text`,children:[`Insert`,` `,f.columns===1?`column`:`${f.columns} columns`,` `,`left`]})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>D(!0),"data-test-id":`table-insert-column-after`,children:(0,_.jsxs)(`span`,{className:`text`,children:[`Insert`,` `,f.columns===1?`column`:`${f.columns} columns`,` `,`right`]})}),(0,_.jsx)(`hr`,{}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>A(),"data-test-id":`table-delete-columns`,children:(0,_.jsx)(`span`,{className:`text`,children:`Delete column`})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>O(),"data-test-id":`table-delete-rows`,children:(0,_.jsx)(`span`,{className:`text`,children:`Delete row`})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>k(),"data-test-id":`table-delete`,children:(0,_.jsx)(`span`,{className:`text`,children:`Delete table`})}),(0,_.jsx)(`hr`,{}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>j(),"data-test-id":`table-row-header`,children:(0,_.jsxs)(`span`,{className:`text`,children:[(u.__headerState&a.Ht.ROW)===a.Ht.ROW?`Remove`:`Add`,` `,`row header`]})}),(0,_.jsx)(`button`,{type:`button`,className:`item`,onClick:()=>M(),"data-test-id":`table-column-header`,children:(0,_.jsxs)(`span`,{className:`text`,children:[(u.__headerState&a.Ht.COLUMN)===a.Ht.COLUMN?`Remove`:`Add`,` `,`column header`]})})]}),document.body)}function tR({anchorElem:e,cellMerge:n}){let[r]=t.oi(),i=(0,h.useRef)(null),o=(0,h.useRef)(null),[s,c]=(0,h.useState)(!1),[l,u]=(0,h.useState)(null),[d,f]=ix(),p=(0,h.useCallback)(e=>{let t=e.closest(`.PlaygroundEditorTheme__tableScrollableWrapper`);if(t){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect().right-5,i=r-28;if(r>n.right||i<n.left)return!0}return!1},[]),m=(0,h.useCallback)(()=>{let n=i.current,o=t.tt(),s=t.M(r._window),c=document.activeElement;function l(){n&&(n.classList.remove(`table-cell-action-button-container--active`),n.classList.add(`table-cell-action-button-container--inactive`)),u(null)}if(o==null||n==null)return l();let d=r.getRootElement(),f=null,m=null;if(t.bn(o)&&d!==null&&s!==null&&d.contains(s.anchorNode)){let e=a.Bt(o.anchor.getNode());if(e==null||(m=r.getElementByKey(e.getKey()),m==null||!e.isAttached())||p(m))return l();let t=a.bt(e),n=a.It(t,r.getElementByKey(t.getKey()));if(n===null)throw Error(`TableActionMenu: Expected to find tableElement in DOM`);f=a.Xt(n),u(e)}else if(a.Kt(o)){let e=a.Bt(o.anchor.getNode());if(!a.Rt(e))throw Error(`TableSelection anchorNode must be a TableCellNode`);let t=a.bt(e),n=a.It(t,r.getElementByKey(t.getKey()));if(n===null)throw Error(`TableActionMenu: Expected to find tableElement in DOM`);if(f=a.Xt(n),m=r.getElementByKey(e.getKey()),m===null||p(m))return l()}else if(!c)return l();if(f===null||m===null)return l();let h=!f||!f.isSelecting;if(n.classList.toggle(`table-cell-action-button-container--active`,h),n.classList.toggle(`table-cell-action-button-container--inactive`,!h),h){let t=m.getBoundingClientRect(),r=e.getBoundingClientRect(),i=t.top-r.top,a=t.right-r.left;n.style.transform=`translate(${a}px, ${i}px)`}},[r,e,p]);(0,h.useEffect)(()=>{let e,n=()=>{e=void 0,r.getEditorState().read(m)},i=()=>(e===void 0&&(e=setTimeout(n,0)),!1);return t.Yn(r.registerUpdateListener(i),r.registerCommand(t.F,i,4),r.registerRootListener((e,t)=>{t&&t.removeEventListener(`pointerup`,i),e&&(e.addEventListener(`pointerup`,i),i())}),()=>clearTimeout(e))});let g=(0,h.useRef)(l);return(0,h.useEffect)(()=>{g.current!==l&&c(!1),g.current=l},[g,l]),(0,_.jsx)(`div`,{className:`table-cell-action-button-container`,ref:i,children:l!=null&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{type:`button`,className:`table-cell-action-button chevron-down`,onClick:e=>{e.stopPropagation(),c(!s)},ref:o,children:(0,_.jsx)(`i`,{className:`bi bi-chevron-down chevron-down`})}),d,s&&(0,_.jsx)(eR,{contextRef:o,setIsMenuOpen:c,onClose:()=>c(!1),tableCellNode:l,cellMerge:n,showColorPickerModal:f})]})})}function nR({anchorElem:e=document.body,cellMerge:t=!1}){return(0,v.createPortal)(l.t()?(0,_.jsx)(tR,{anchorElem:e,cellMerge:t}):null,e)}var rR=33,iR=92,aR=`#76b6ff`;function oR({editor:e}){let r=(0,h.useRef)(null),i=(0,h.useRef)(null),o=(0,h.useRef)(null),[s,c]=(0,h.useState)(!1),l=(0,h.useRef)(null),[u,d]=(0,h.useState)(null),[f,p]=(0,h.useState)(null),[m,g]=(0,h.useState)(null),[v,y]=(0,h.useState)(null),b=(0,h.useCallback)(()=>{p(null),r.current=null,g(null),y(null),l.current=null,o.current=null},[]);(0,h.useEffect)(()=>{let n=new Set;return t.Yn(e.registerMutationListener(a.At,e=>{for(let[t,r]of e)r===`destroyed`?n.delete(t):n.add(t);c(n.size>0)}),e.registerNodeTransform(a.At,e=>{if(e.getColWidths())return e;let t=e.getColumnCount(),n=iR;return e.setColWidths(Array(t).fill(n)),e}))},[e]),(0,h.useEffect)(()=>{if(!s)return;let n=n=>{let s=n.target;if(t.Sn(s)){if(m){n.preventDefault(),n.stopPropagation(),d({x:n.clientX,y:n.clientY});return}if(!(i.current&&i.current.contains(s))&&r.current!==s){r.current=s;let n=a.Yt(s);n&&f!==n?e.getEditorState().read(()=>{let i=t.Yt(n.elem);if(!i)throw Error(`TableCellResizer: Table cell node not found.`);let c=a.bt(i),l=a.It(c,e.getElementByKey(c.getKey()));if(!l)throw Error(`TableCellResizer: Table element not found.`);r.current=s,o.current=l.getBoundingClientRect(),p(n)},{editor:e}):n??b()}}},c=e=>{e.pointerType===`touch`&&n(e)},l=i.current;l?.addEventListener(`pointermove`,n,{capture:!0});let u=e.registerRootListener((e,t)=>{t?.removeEventListener(`pointermove`,n),t?.removeEventListener(`pointerdown`,c),e?.addEventListener(`pointermove`,n),e?.addEventListener(`pointerdown`,c)});return()=>{u(),l?.removeEventListener(`pointermove`,n)}},[f,m,e,b,s]);let x=e=>e===`bottom`,S=(0,h.useCallback)(n=>{if(!f)throw Error(`TableCellResizer: Expected active cell.`);e.update(()=>{let r=t.Yt(f.elem);if(!a.Rt(r))throw Error(`TableCellResizer: Table cell node not found.`);let i=a.bt(r),o=a.jt(r),s=i.getChildren(),c=r.getColSpan()===i.getColumnCount()?o:o+r.getRowSpan()-1;if(c>=s.length||c<0)throw Error(`Expected table cell to be inside of table row.`);let l=s[c];if(!a.Ft(l))throw Error(`Expected table row`);let u=l.getHeight();if(u===void 0){let t=l.getChildren();u=Math.min(...t.map(t=>C(t,e)??1/0))}let d=Math.max(u+n,rR);l.setHeight(d)},{tag:t.Jn})},[f,e]),C=(e,t)=>t.getElementByKey(e.getKey())?.clientHeight,w=(e,t)=>{for(let n=0;n<t.length;n++)for(let r=0;r<t[n].length;r++)if(t[n][r].cell===e)return r},T=(0,h.useCallback)(n=>{if(!f)throw Error(`TableCellResizer: Expected active cell.`);e.update(()=>{let e=t.Yt(f.elem);if(!a.Rt(e))throw Error(`TableCellResizer: Table cell node not found.`);let r=a.bt(e),[i]=a.Tt(r,null,null),o=w(e,i);if(o===void 0)throw Error(`TableCellResizer: Table column not found.`);let s=r.getColWidths();if(!s)return;let c=s[o];if(c===void 0)return;let l=[...s];l[o]=Math.max(c+n,iR),r.setColWidths(l)},{tag:t.Jn})},[f,e]),E=(0,h.useCallback)(e=>{let t=r=>{if(r.preventDefault(),r.stopPropagation(),!f)throw Error(`TableCellResizer: Expected active cell.`);if(l.current){let{x:i,y:a}=l.current;if(f===null)return;let o=n.d(r.target);if(x(e)){let e=(r.clientY-a)/o;S(e)}else{let e=(r.clientX-i)/o;T(e)}b(),document.removeEventListener(`pointerup`,t)}};return t},[f,b,T,S]),D=(0,h.useCallback)(e=>t=>{if(t.preventDefault(),t.stopPropagation(),!f)throw Error(`TableCellResizer: Expected active cell.`);l.current={x:t.clientX,y:t.clientY},d(l.current),g(e),document.addEventListener(`pointerup`,E(e))},[f,E]),O=(0,h.useCallback)(()=>{if(f){let{height:e,width:t,top:r,left:i}=f.elem.getBoundingClientRect(),a=n.d(f.elem),s={bottom:{backgroundColor:`transparent`,backgroundImage:`none`,cursor:`row-resize`,height:`16px`,left:`${window.scrollX+i}px`,top:`${window.scrollY+r+e-16/2}px`,width:`${t}px`},right:{backgroundColor:`transparent`,backgroundImage:`none`,cursor:`col-resize`,height:`${e}px`,left:`${window.scrollX+i+t-16/2}px`,top:`${window.scrollY+r}px`,width:`16px`}},c=o.current;return m&&u&&c?(x(m)?(s[m].left=`${window.scrollX+c.left}px`,s[m].top=`${window.scrollY+u.y/a}px`,s[m].height=`3px`,s[m].width=`${c.width}px`):(s[m].top=`${window.scrollY+c.top}px`,s[m].left=`${window.scrollX+u.x/a}px`,s[m].width=`3px`,s[m].height=`${c.height}px`),s[m].backgroundColor=`#adf`,s[m].backgroundImage=`none`,s[m].mixBlendMode=`unset`):!m&&v===`right`&&(s.right.backgroundImage=`linear-gradient(90deg, transparent 7px, ${aR} 7px, ${aR} 9px, transparent 9px)`,s.right.mixBlendMode=`unset`,c&&(s.right.top=`${window.scrollY+c.top}px`,s.right.height=`${c.height}px`)),s}return{bottom:null,left:null,right:null,top:null}},[f,m,v,u]),k=(0,h.useCallback)(e=>()=>{m||y(e)},[m]),A=(0,h.useCallback)(()=>{m||y(null)},[m]),j=O();return(0,_.jsx)(`div`,{ref:i,children:f!=null&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`div`,{className:`TableCellResizer__resizer TableCellResizer__ui`,style:j.right||void 0,onPointerEnter:k(`right`),onPointerLeave:A,onPointerDown:D(`right`)}),(0,_.jsx)(`div`,{className:`TableCellResizer__resizer TableCellResizer__ui`,style:j.bottom||void 0,onPointerDown:D(`bottom`)})]})})}function sR(){let[e]=t.oi(),n=l.t();return(0,h.useMemo)(()=>n?(0,v.createPortal)((0,_.jsx)(oR,{editor:e}),document.body):null,[e,n])}function cR(e,t){let n=e()?.[t];if(typeof n!=`string`)throw Error(`getThemeClass: required theme property ${t} not defined`);return n.split(/\s+/g).map(e=>`.${e}`).join()}function lR(e){let t=e.getChildren(),n=null;for(let e of t){if(!a.Ft(e)||(n===null&&(n=e.getChildrenSize()),e.getChildrenSize()!==n))return!1;let t=e.getChildren();for(let e of t)if(!a.Rt(e)||e.getRowSpan()!==1||e.getColSpan()!==1)return!1}return(n||0)>0}function uR(e,n){if(!t.Sn(e.target))return{isOutside:!0,tableElement:null};let r=`td${cR(n,`tableCell`)}, th${cR(n,`tableCell`)}`,i=e.target.closest(r)?.closest(`table`)??null;return{isOutside:i==null,tableElement:i}}function dR(e,t){let n=e.rows[0];if(!n)return null;let r=null,i=1/0;for(let e of Array.from(n.cells)){let n=e.getBoundingClientRect(),a=n.left+n.width/2,o=Math.abs(a-t);o<i&&(i=o,r={cell:e,centerX:a,top:n.top})}return r}function fR({anchorElem:e}){let[n,{getTheme:r}]=t.oi(),i=l.t(),[o,s]=(0,h.useState)(!1),[c,u]=(0,h.useState)(!1),d=(0,h.useRef)({getBoundingClientRect:()=>new DOMRect}),m=(0,h.useRef)({getBoundingClientRect:()=>new DOMRect}),g=(0,h.useRef)(null),v=(0,h.useRef)(null),y=(0,h.useRef)(null),b=(0,h.useRef)(null),x=(0,h.useRef)(null),{refs:S,floatingStyles:C,update:w}=f.a({middleware:[p.a({mainAxis:-9}),p.o({padding:8})],placement:`top`,strategy:`fixed`,whileElementsMounted:p.l}),{refs:T,floatingStyles:E,update:D}=f.a({middleware:[p.a({mainAxis:-9}),p.o({padding:8})],placement:`left`,strategy:`fixed`,whileElementsMounted:p.l});if((0,h.useEffect)(()=>{if(!i)return;let n=n=>{if(g.current&&n.target instanceof Node&&g.current.contains(n.target)||v.current&&n.target instanceof Node&&v.current.contains(n.target))return;let{tableElement:i,isOutside:a}=uR(n,r);if(a||i==null||e&&!e.contains(i)){s(!1),u(!1);return}let o=`td${cR(r,`tableCell`)}, th${cR(r,`tableCell`)}`,c=t.Sn(n.target)?n.target.closest(o):null;if(!c){s(!1),u(!1),b.current=null,y.current=null;return}let l=c.parentElement instanceof HTMLTableRowElement?c.parentElement.rowIndex:-1,f=c.cellIndex??-1,p=dR(i,n.clientX);!p||l!==0?(s(!1),b.current=null):(b.current=p.cell,d.current.getBoundingClientRect=()=>new DOMRect(p.centerX,p.top,0,0),S.setPositionReference(d.current),s(!0),w?.());let h=i.getBoundingClientRect();if(f!==0)u(!1),y.current=null;else{let{top:e,height:t}=c.getBoundingClientRect(),n=e+t/2;y.current=c,m.current.getBoundingClientRect=()=>new DOMRect(h.left,n,0,0),T.setPositionReference(m.current),u(!0),D?.()}};return document.addEventListener(`mousemove`,n),()=>{document.removeEventListener(`mousemove`,n),s(!1),u(!1)}},[e,r,i,T,S,w,D]),(0,h.useEffect)(()=>(x.current=e=>{let t=e.relatedTarget;t&&g.current&&g.current.contains(t)||t&&v.current&&v.current.contains(t)||(s(!1),u(!1))},n.registerRootListener((e,t)=>{t&&x.current&&t.removeEventListener(`mouseleave`,x.current),e&&x.current&&e.addEventListener(`mouseleave`,x.current)})),[n]),!i)return null;let O=()=>{let e=b.current;e&&n.update(()=>{let n=t.Yt(e);a.Rt(n)&&(n.selectEnd(),a.St())})},k=()=>{let e=y.current;e&&n.update(()=>{let n=t.Yt(e);a.Rt(n)&&(n.selectEnd(),a.Zt())})},A=e=>{let r=b.current;r&&n.update(()=>{let n=t.Yt(r);if(!a.Rt(n))return;let i=n.getParent();if(!i||!a.Ft(i))return;let o=i.getParent();if(!a.Ut(o)||!lR(o))return;let s=n.getIndexWithinParent(),c=o.getChildren().filter(a.Ft),[l]=a.Tt(o,n,n),u=(l[0]?.[s]?.cell)?.hasHeader()??!1,d=u?c.slice(1):c;d.length<=1||(d.sort((t,n)=>{let r=c.indexOf(t),i=c.indexOf(n),a=l[r]??[],o=l[i]??[],u=a[s],d=o[s],f=u?.cell.getTextContent()??``,p=d?.cell.getTextContent()??``,m=f.localeCompare(p,void 0,{numeric:!0});return e===`asc`?-m:m}),(u?t.f(c[0],`next`):t.Z(o,`next`))?.splice(0,d))})};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{ref:e=>{g.current=e,S.setFloating(e)},style:{...C,opacity:+!!o},className:`floating-top-actions`,children:[(0,_.jsxs)(ZN,{buttonAriaLabel:`Sort column`,buttonClassName:`floating-filter-indicator`,buttonIconClassName:`bi bi-filter-left`,hideChevron:!0,children:[(0,_.jsx)(Z,{className:`item`,onClick:()=>A(`desc`),children:`Sort Ascending`}),(0,_.jsx)(Z,{className:`item`,onClick:()=>A(`asc`),children:`Sort Descending`})]}),(0,_.jsx)(`button`,{className:`floating-add-indicator`,"aria-label":`Add column`,type:`button`,onClick:O,children:(0,_.jsx)(`i`,{className:`bi bi-plus`})})]}),(0,_.jsx)(`button`,{ref:e=>{v.current=e,T.setFloating(e)},style:{...E,opacity:+!!c},className:`floating-add-indicator`,"aria-label":`Add row`,type:`button`,onClick:k,children:(0,_.jsx)(`i`,{className:`bi bi-plus`})})]})}function pR({anchorElem:e=document.body}){return l.t()?(0,v.createPortal)((0,_.jsx)(fR,{anchorElem:e}),e):null}var mR=`PlaygroundEditorTheme__tableScrollableWrapper`,hR=`PlaygroundEditorTheme__tableScrollRight`,gR=`PlaygroundEditorTheme__tableScrollLeft`,_R=`PlaygroundEditorTheme__tableScrollMiddle`;function vR(e){let t=e.scrollWidth>e.clientWidth,n=e.scrollLeft+e.clientWidth>=e.scrollWidth-1,r=e.scrollLeft<=1;e.classList.remove(hR),e.classList.remove(gR),e.classList.remove(_R),t&&(!r&&!n?e.classList.add(_R):r&&!n?e.classList.add(hR):!r&&n&&e.classList.add(gR))}function yR(){let[e]=t.oi();return(0,h.useEffect)(()=>{let t=e.getRootElement();if(!t)return;let n=()=>{t.querySelectorAll(`.${mR}`).forEach(vR)};n();let r=new MutationObserver(()=>{n()});r.observe(t,{childList:!0,subtree:!0});let i=new ResizeObserver(()=>{n()}),a=new Map,o=e=>{if(a.has(e))return;let t=()=>{vR(e)};e.addEventListener(`scroll`,t,{passive:!0}),a.set(e,t)};t.querySelectorAll(`.${mR}`).forEach(e=>{i.observe(e),o(e)});let s=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e instanceof HTMLElement&&(e.classList.contains(mR)&&(i.observe(e),o(e),vR(e)),e.querySelectorAll(`.${mR}`).forEach(e=>{i.observe(e),o(e),vR(e)}))})})});return s.observe(t,{childList:!0,subtree:!0}),()=>{r.disconnect(),i.disconnect(),s.disconnect(),a.forEach((e,t)=>{t.removeEventListener(`scroll`,e)}),a.clear()}},[e]),null}var bR=`Khmer BibleNote Study: Genesis 1`,xR=`(KJV) Genesis 1:1-3`,SR=`(1): In the beginning God created the heaven and the earth. (2): And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters. (3): And God said, Let there be light: and there was light.`,CR=`fff825ad-31e8-4843-a7dc-cd82e9878d73`,wR=`00000000-0000-4000-8000-000000000117`,TR=`default-genesis-light-thread`,ER=`default-genesis-light-comment`,DR=new Date(2026,4,9,9).getTime(),OR=`default-genesis-block-text-link`,kR=`Block link source: God speaks light into the first day.`,AR=`Block link target: Application notes trace that light into prayer.`,jR=`afVN-7vY0KA`;function MR(e,n){let r=t.D(e);return n.forEach(e=>{r.toggleFormat(e)}),r}function NR(...e){return t.Ar().append(...e)}function PR(e,n){return a.rn(e).append(t.D(n))}function FR(...e){return Ht().append(...e)}function IR(e,...t){return Ht(e).append(...t)}function LR(e,n=a.Ht.NO_STATUS){return a.Gt(n).append(NR(t.D(e)))}function RR(){return a.O(xR,xR,`kjv-genesis-1-1-3`,`bible-verse`,SR)}function zR(e){return a.b([TR]).append(t.D(e))}function BR(){Wi([{comments:[{author:`BibleNote`,content:`Connect this phrase to Genesis 1:3, creation light, and the Khmer application note.`,deleted:!1,id:ER,timeStamp:DR,type:`comment`}],id:TR,quote:`Let there be light`,quoteSegments:[{text:`Let there be light`}],type:`thread`}]),tr([{from:{anchor:{offset:0,path:[9,0]},blockPaths:[[9]],focus:{offset:55,path:[9,0]}},id:OR,kind:`direction-to`,to:{anchor:{offset:0,path:[10,0]},blockPaths:[[10]],focus:{offset:66,path:[10,0]}}}])}function VR(){let e=a.en().append(RR(),t.Bt(),t.D(SR)),n=rM(!0).append(fM().append(NR(RR())),sM().append(NR(t.D(SR)))),r=qt(`bullet`).append(FR(MR(`Created`,[`bold`]),t.D(` names God as the first actor and sets the whole note under worship.`)),FR(MR(`Without form, and void`,[`italic`]),t.D(` marks the need for order before beauty appears.`)),FR(MR(`Let there be light`,[`underline`]),t.D(` becomes the first quoted command to trace through the study.`))),i=qt(`number`).append(FR(t.D(`Read the passage aloud in KJV and Khmer.`)),FR(t.D(`Tag people, places, and Bible references while outlining.`)),FR(t.D(`Turn observations into application and prayer.`))),o=qt(`check`).append(IR(!0,t.D(`KJV quotation added`)),IR(!1,t.D(`Khmer translation note added`)),IR(!1,t.D(`Map, image, or drawing attached`)),IR(!1,t.D(`Final outline ready for sharing`))),c=a.Vt().append(a.Pt().append(LR(`Layer`,a.Ht.COLUMN),LR(`Current note`,a.Ht.COLUMN),LR(`Next action`,a.Ht.COLUMN)),a.Pt().append(LR(`Scripture`),LR(`Genesis 1:1-3, KJV`),LR(`Compare Khmer wording`)),a.Pt().append(LR(`Person`),LR(`Moses`),LR(`Add author note`)),a.Pt().append(LR(`Place`),LR(`Jerusalem`),LR(`Trace worship echoes`))),l=Ie(`markdown`).append(t.D([`# Genesis 1 Study`,`^Genesis 1:1-3`,`@Moses #Jerusalem`,`- creation, light, word, worship`].join(`
1022
+ `))),u=eP(`1fr 1fr`).append(aP().append(PR(`h3`,`Observation`),NR(t.D(`God creates before anything else is named, and the first command brings light.`))),aP().append(PR(`h3`,`Application`),NR(t.D(`Begin the study by naming what is dark, empty, and waiting for the word of God.`)))),p=rM(!0).append(fM().append(NR(t.D(`Sermon seed`))),sM().append(NR(t.D(`Creation begins with God, moves by the Spirit, and answers to the spoken word.`))));return[PR(`h1`,bR),e,n,PR(`h2`,`Observation Notes`),NR(MR(`Theme: `,[`bold`]),t.D(`God `),MR(`creates`,[`bold`]),t.D(`, orders, and speaks light into darkness. Keep `),MR(`uncertain wording`,[`highlight`]),t.D(` visible, mark `),MR(`discarded angles`,[`strikethrough`]),t.D(`, and preserve short tags like `),MR(`creation-light`,[`code`]),t.D(`.`)),NR(t.D(`Cross-reference `),a.O(`Moses`,`@Moses`,CR,`mention`),t.D(`, `),a.O(`Jerusalem`,`Jerusalem`,wR,`location`),t.D(`, and `),RR(),t.D(` before adding the Khmer translation note.`)),NR(t.D(`Prepared on `),f.u(new Date(2026,4,9)),t.D(` with this structure marker: `),d.r(`\\text{day}_1 = \\text{light} + \\text{separation}`,!0),t.D(`.`)),NR(t.D(`Source note: compare the `),a.Y(`https://www.kingjamesbibleonline.org/Genesis-Chapter-1/`).append(t.D(`KJV text for Genesis 1`)),t.D(` while drafting local Khmer notes.`)),NR(t.D(`Comment anchor: `),zR(`Let there be light`),t.D(` is the phrase to revisit while applying the passage.`)),NR(t.D(kR)),NR(t.D(AR)),r,PR(`h2`,`Study Flow`),i,o,PR(`h2`,`Study Tracker`),c,PR(`h2`,`Reference Scratchpad`),l,PR(`h2`,`Media Notes`),NR(t.D(`Video reference: `),a.Y(`https://youtu.be/afVN-7vY0KA`).append(t.D(`https://youtu.be/afVN-7vY0KA`))),Dx(jR),s.t(48,144),u,p,bi(),NR(t.D(`Prayer: Lord, speak light into every empty place and make this note faithful, clear, and useful.`))]}function HR(){t.Dr().append(...VR()),BR()}function UR(){t.Dr().getFirstChild()===null&&HR()}function WR(e,n){e.update(()=>{t.Dr().clear(),n?.emptyEditor||HR()}),e.dispatchCommand(t.dt,void 0)}var GR=4,KR=5;function qR(){let e=[],n=r=>{for(let i of r.getChildren())a.Qt(i)?e.push({key:i.getKey(),level:Number(i.getTag().slice(1)),text:i.getTextContent().trim()}):t.vt(i)&&n(i)};return n(t.Dr()),e}function JR(e){return e.getClientRects().length>0}function YR(e){let t=e;for(;t!==null&&!JR(t);)t=t.parentElement;return t}function XR(e){let t=parseFloat(e.style.getPropertyValue(`--find-bar-reserve`));return(Number.isFinite(t)?t:0)+16}function ZR(e,t,n){if(n===null)return null;let r=n.getBoundingClientRect().top+XR(n)+GR,i=null;for(let n of t){let t=e.getElementByKey(n.key);t===null||!JR(t)||t.getBoundingClientRect().top<=r&&(i=n.key)}return i}function QR(e,n,r){let i=e.getElementByKey(r);if(i===null)return;let o=YR(i);if(o!==null){let e=EL()?`auto`:`smooth`;if(n!==null){let t=n.scrollTop+o.getBoundingClientRect().top-n.getBoundingClientRect().top-XR(n);n.scrollTo({behavior:e,top:Math.max(0,t)})}else o.scrollIntoView({behavior:e,block:`start`})}o!==i||!e.isEditable()||window.requestAnimationFrame(()=>{e.getRootElement()?.focus({preventScroll:!0}),e.update(()=>{t.pt(t.Jn);let e=t.Ht(r);a.Qt(e)&&e.selectStart()})})}function $R({editor:e,scrollContainerRef:t}){let[n]=(0,h.useState)(()=>e.read(qR)),[r]=(0,h.useState)(()=>ZR(e,n,t?.current??null));if(n.length===0)return(0,_.jsxs)(`div`,{className:`table-of-contents-empty`,children:[(0,_.jsx)(`strong`,{children:`No headings in this note yet`}),(0,_.jsx)(`span`,{children:`Turn a line into Heading 1, 2 or 3 to list it here.`})]});let i=Math.min(...n.map(e=>e.level));return(0,_.jsx)(_.Fragment,{children:n.map(n=>{let a=Math.min(n.level-i,KR),o=n.key===r;return(0,_.jsx)(Z,{ariaCurrent:o?`location`:void 0,className:`item table-of-contents-item toc-depth-${a}${o?` toc-current`:``}`,isInitialFocus:o,onClick:()=>QR(e,t?.current??null,n.key),title:n.text||void 0,children:(0,_.jsx)(`span`,{className:`text table-of-contents-text${n.text?``:` empty`}`,children:n.text||`Empty heading`})},n.key)})})}function ez({editor:e,scrollContainerRef:t}){return(0,_.jsx)(ZN,{buttonAriaLabel:`Table of contents`,buttonClassName:`toolbar-item spaced table-of-contents-button`,buttonIconClassName:`bi bi-list-nested icon`,buttonTitle:`Table of contents`,dropDownClassName:`table-of-contents-menu`,hideChevron:!0,children:(0,_.jsx)($R,{editor:e,scrollContainerRef:t})})}var tz={AElig:`Æ`,AMP:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:`⁡`,Aring:`Å`,Ascr:`𝒜`,Assign:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,Barv:`⫧`,Barwed:`⌆`,Bcy:`Б`,Because:`∵`,Bernoullis:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,Bscr:`ℬ`,Bumpeq:`≎`,CHcy:`Ч`,COPY:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,Cayleys:`ℭ`,Ccaron:`Č`,Ccedil:`Ç`,Ccirc:`Ĉ`,Cconint:`∰`,Cdot:`Ċ`,Cedilla:`¸`,CenterDot:`·`,Cfr:`ℭ`,Chi:`Χ`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,Colon:`∷`,Colone:`⩴`,Congruent:`≡`,Conint:`∯`,ContourIntegral:`∮`,Copf:`ℂ`,Coproduct:`∐`,CounterClockwiseContourIntegral:`∳`,Cross:`⨯`,Cscr:`𝒞`,Cup:`⋓`,CupCap:`≍`,DD:`ⅅ`,DDotrahd:`⤑`,DJcy:`Ђ`,DScy:`Ѕ`,DZcy:`Џ`,Dagger:`‡`,Darr:`↡`,Dashv:`⫤`,Dcaron:`Ď`,Dcy:`Д`,Del:`∇`,Delta:`Δ`,Dfr:`𝔇`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,Diamond:`⋄`,DifferentialD:`ⅆ`,Dopf:`𝔻`,Dot:`¨`,DotDot:`⃜`,DotEqual:`≐`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,Downarrow:`⇓`,Dscr:`𝒟`,Dstrok:`Đ`,ENG:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,Equilibrium:`⇌`,Escr:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,ExponentialE:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,Fopf:`𝔽`,ForAll:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,GT:`>`,Gamma:`Γ`,Gammad:`Ϝ`,Gbreve:`Ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,Gcy:`Г`,Gdot:`Ġ`,Gfr:`𝔊`,Gg:`⋙`,Gopf:`𝔾`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,Gt:`≫`,HARDcy:`Ъ`,Hacek:`ˇ`,Hat:`^`,Hcirc:`Ĥ`,Hfr:`ℌ`,HilbertSpace:`ℋ`,Hopf:`ℍ`,HorizontalLine:`─`,Hscr:`ℋ`,Hstrok:`Ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,IEcy:`Е`,IJlig:`IJ`,IOcy:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Igrave:`Ì`,Im:`ℑ`,Imacr:`Ī`,ImaginaryI:`ⅈ`,Implies:`⇒`,Int:`∬`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,LT:`<`,Lacute:`Ĺ`,Lambda:`Λ`,Lang:`⟪`,Laplacetrf:`ℒ`,Larr:`↞`,Lcaron:`Ľ`,Lcedil:`Ļ`,Lcy:`Л`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessLess:`⪡`,LessSlantEqual:`⩽`,LessTilde:`≲`,Lfr:`𝔏`,Ll:`⋘`,Lleftarrow:`⇚`,Lmidot:`Ŀ`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lopf:`𝕃`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,Lscr:`ℒ`,Lsh:`↰`,Lstrok:`Ł`,Lt:`≪`,Map:`⤅`,Mcy:`М`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,MinusPlus:`∓`,Mopf:`𝕄`,Mscr:`ℳ`,Mu:`Μ`,NJcy:`Њ`,Nacute:`Ń`,Ncaron:`Ň`,Ncedil:`Ņ`,Ncy:`Н`,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
1023
+ `,Nfr:`𝔑`,NoBreak:`⁠`,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,Not:`⫬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,Nscr:`𝒩`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacute:`Ó`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslash:`Ø`,Otilde:`Õ`,Otimes:`⨷`,Ouml:`Ö`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Poincareplane:`ℌ`,Popf:`ℙ`,Pr:`⪻`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Prime:`″`,Product:`∏`,Proportion:`∷`,Proportional:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUOT:`"`,Qfr:`𝔔`,Qopf:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,REG:`®`,Racute:`Ŕ`,Rang:`⟫`,Rarr:`↠`,Rarrtl:`⤖`,Rcaron:`Ř`,Rcedil:`Ŗ`,Rcy:`Р`,Re:`ℜ`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,Rfr:`ℜ`,Rho:`Ρ`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,Rightarrow:`⇒`,Ropf:`ℝ`,RoundImplies:`⥰`,Rrightarrow:`⇛`,Rscr:`ℛ`,Rsh:`↱`,RuleDelayed:`⧴`,SHCHcy:`Щ`,SHcy:`Ш`,SOFTcy:`Ь`,Sacute:`Ś`,Sc:`⪼`,Scaron:`Š`,Scedil:`Ş`,Scirc:`Ŝ`,Scy:`С`,Sfr:`𝔖`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,ShortRightArrow:`→`,ShortUpArrow:`↑`,Sigma:`Σ`,SmallCircle:`∘`,Sopf:`𝕊`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Sscr:`𝒮`,Star:`⋆`,Sub:`⋐`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Sup:`⋑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,THORN:`Þ`,TRADE:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,Theta:`Θ`,ThickSpace:`  `,ThinSpace:` `,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,Topf:`𝕋`,TripleDot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,Ugrave:`Ù`,Umacr:`Ū`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,Uopf:`𝕌`,UpArrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,UpEquilibrium:`⥮`,UpTee:`⊥`,UpTeeArrow:`↥`,Uparrow:`⇑`,Updownarrow:`⇕`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,Upsilon:`Υ`,Uring:`Ů`,Uscr:`𝒰`,Utilde:`Ũ`,Uuml:`Ü`,VDash:`⊫`,Vbar:`⫫`,Vcy:`В`,Vdash:`⊩`,Vdashl:`⫦`,Vee:`⋁`,Verbar:`‖`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,Vopf:`𝕍`,Vscr:`𝒱`,Vvdash:`⊪`,Wcirc:`Ŵ`,Wedge:`⋀`,Wfr:`𝔚`,Wopf:`𝕎`,Wscr:`𝒲`,Xfr:`𝔛`,Xi:`Ξ`,Xopf:`𝕏`,Xscr:`𝒳`,YAcy:`Я`,YIcy:`Ї`,YUcy:`Ю`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,ZeroWidthSpace:`​`,Zeta:`Ζ`,Zfr:`ℨ`,Zopf:`ℤ`,Zscr:`𝒵`,aacute:`á`,abreve:`ă`,ac:`∾`,acE:`∾̳`,acd:`∿`,acirc:`â`,acute:`´`,acy:`а`,aelig:`æ`,af:`⁡`,afr:`𝔞`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,amp:`&`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,aogon:`ą`,aopf:`𝕒`,ap:`≈`,apE:`⩰`,apacir:`⩯`,ape:`≊`,apid:`≋`,apos:`'`,approx:`≈`,approxeq:`≊`,aring:`å`,ascr:`𝒶`,ast:`*`,asymp:`≈`,asympeq:`≍`,atilde:`ã`,auml:`ä`,awconint:`∳`,awint:`⨑`,bNot:`⫭`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,barvee:`⊽`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,beta:`β`,beth:`ℶ`,between:`≬`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bnot:`⌐`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxDL:`╗`,boxDR:`╔`,boxDl:`╖`,boxDr:`╓`,boxH:`═`,boxHD:`╦`,boxHU:`╩`,boxHd:`╤`,boxHu:`╧`,boxUL:`╝`,boxUR:`╚`,boxUl:`╜`,boxUr:`╙`,boxV:`║`,boxVH:`╬`,boxVL:`╣`,boxVR:`╠`,boxVh:`╫`,boxVl:`╢`,boxVr:`╟`,boxbox:`⧉`,boxdL:`╕`,boxdR:`╒`,boxdl:`┐`,boxdr:`┌`,boxh:`─`,boxhD:`╥`,boxhU:`╨`,boxhd:`┬`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxuL:`╛`,boxuR:`╘`,boxul:`┘`,boxur:`└`,boxv:`│`,boxvH:`╪`,boxvL:`╡`,boxvR:`╞`,boxvh:`┼`,boxvl:`┤`,boxvr:`├`,bprime:`‵`,breve:`˘`,brvbar:`¦`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,bumpeq:`≏`,cacute:`ć`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,ccaps:`⩍`,ccaron:`č`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cedil:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,cfr:`𝔠`,chcy:`ч`,check:`✓`,checkmark:`✓`,chi:`χ`,cir:`○`,cirE:`⧃`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,clubs:`♣`,clubsuit:`♣`,colon:`:`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,conint:`∮`,copf:`𝕔`,coprod:`∐`,copy:`©`,copysr:`℗`,crarr:`↵`,cross:`✗`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cup:`∪`,cupbrcap:`⩈`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dArr:`⇓`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,darr:`↓`,dash:`‐`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,dcaron:`ď`,dcy:`д`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,ddotseq:`⩷`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,dharl:`⇃`,dharr:`⇂`,diam:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,dopf:`𝕕`,dot:`˙`,doteq:`≐`,doteqdot:`≑`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,downarrow:`↓`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,dscr:`𝒹`,dscy:`ѕ`,dsol:`⧶`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,dzcy:`џ`,dzigrarr:`⟿`,eDDot:`⩷`,eDot:`≑`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`≖`,ecirc:`ê`,ecolon:`≕`,ecy:`э`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,efr:`𝔢`,eg:`⪚`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,emacr:`ē`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,emsp13:` `,emsp14:` `,emsp:` `,eng:`ŋ`,ensp:` `,eogon:`ę`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,equals:`=`,equest:`≟`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erDot:`≓`,erarr:`⥱`,escr:`ℯ`,esdot:`≐`,esim:`≂`,eta:`η`,eth:`ð`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,ffr:`𝔣`,filig:`fi`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,fopf:`𝕗`,forall:`∀`,fork:`⋔`,forkv:`⫙`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:`𝒻`,gE:`≧`,gEl:`⪌`,gacute:`ǵ`,gamma:`γ`,gammad:`ϝ`,gap:`⪆`,gbreve:`ğ`,gcirc:`ĝ`,gcy:`г`,gdot:`ġ`,ge:`≥`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,gfr:`𝔤`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,gjcy:`ѓ`,gl:`≷`,glE:`⪒`,gla:`⪥`,glj:`⪤`,gnE:`≩`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,gopf:`𝕘`,grave:"`",gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,hArr:`⇔`,hairsp:` `,half:`½`,hamilt:`ℋ`,hardcy:`ъ`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,hbar:`ℏ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:`𝔥`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:`𝕙`,horbar:`―`,hscr:`𝒽`,hslash:`ℏ`,hstrok:`ħ`,hybull:`⁃`,hyphen:`‐`,iacute:`í`,ic:`⁣`,icirc:`î`,icy:`и`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,ijlig:`ij`,imacr:`ī`,image:`ℑ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,int:`∫`,intcal:`⊺`,integers:`ℤ`,intercal:`⊺`,intlarhk:`⨗`,intprod:`⨼`,iocy:`ё`,iogon:`į`,iopf:`𝕚`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:`𝒾`,isin:`∈`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,itilde:`ĩ`,iukcy:`і`,iuml:`ï`,jcirc:`ĵ`,jcy:`й`,jfr:`𝔧`,jmath:`ȷ`,jopf:`𝕛`,jscr:`𝒿`,jsercy:`ј`,jukcy:`є`,kappa:`κ`,kappav:`ϰ`,kcedil:`ķ`,kcy:`к`,kfr:`𝔨`,kgreen:`ĸ`,khcy:`х`,kjcy:`ќ`,kopf:`𝕜`,kscr:`𝓀`,lAarr:`⇚`,lArr:`⇐`,lAtail:`⤛`,lBarr:`⤎`,lE:`≦`,lEg:`⪋`,lHar:`⥢`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,lambda:`λ`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,laquo:`«`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,lcaron:`ľ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,leftarrow:`←`,leftarrowtail:`↢`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,leftthreetimes:`⋋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,lessgtr:`≶`,lesssim:`≲`,lfisht:`⥼`,lfloor:`⌊`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,ljcy:`љ`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,llhard:`⥫`,lltri:`◺`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnE:`≨`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,longleftrightarrow:`⟷`,longmapsto:`⟼`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,lstrok:`ł`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,measuredangle:`∡`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,mopf:`𝕞`,mp:`∓`,mscr:`𝓂`,mstpos:`∾`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nGg:`⋙̸`,nGt:`≫⃒`,nGtv:`≫̸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nLl:`⋘̸`,nLt:`≪⃒`,nLtv:`≪̸`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,nabla:`∇`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,ncaron:`ň`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,ncy:`н`,ndash:`–`,ne:`≠`,neArr:`⇗`,nearhk:`⤤`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,nexist:`∄`,nexists:`∄`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,ngsim:`≵`,ngt:`≯`,ngtr:`≯`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,njcy:`њ`,nlArr:`⇍`,nlE:`≦̸`,nlarr:`↚`,nldr:`‥`,nle:`≰`,nleftarrow:`↚`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nlsim:`≴`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nmid:`∤`,nopf:`𝕟`,not:`¬`,notin:`∉`,notinE:`⋹̸`,notindot:`⋵̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvDash:`⊭`,nvHarr:`⤄`,nvap:`≍⃒`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwArr:`⇖`,nwarhk:`⤣`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,oS:`Ⓢ`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,ocirc:`ô`,ocy:`о`,odash:`⊝`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,omacr:`ō`,omega:`ω`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,oopf:`𝕠`,opar:`⦷`,operp:`⦹`,oplus:`⊕`,or:`∨`,orarr:`↻`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oscr:`ℴ`,oslash:`ø`,osol:`⊘`,otilde:`õ`,otimes:`⊗`,otimesas:`⨶`,ouml:`ö`,ovbar:`⌽`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,pfr:`𝔭`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,pointint:`⨕`,popf:`𝕡`,pound:`£`,pr:`≺`,prE:`⪳`,prap:`⪷`,prcue:`≼`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,prime:`′`,primes:`ℙ`,prnE:`⪵`,prnap:`⪹`,prnsim:`⋨`,prod:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,pscr:`𝓅`,psi:`ψ`,puncsp:` `,qfr:`𝔮`,qint:`⨌`,qopf:`𝕢`,qprime:`⁗`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,rAarr:`⇛`,rArr:`⇒`,rAtail:`⤜`,rBarr:`⤏`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,rcaron:`ř`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,reg:`®`,rfisht:`⥽`,rfloor:`⌋`,rfr:`𝔯`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,rho:`ρ`,rhov:`ϱ`,rightarrow:`→`,rightarrowtail:`↣`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,rightthreetimes:`⋌`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:`‏`,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,rsaquo:`›`,rscr:`𝓇`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,ruluhar:`⥨`,rx:`℞`,sacute:`ś`,sbquo:`‚`,sc:`≻`,scE:`⪴`,scap:`⪸`,scaron:`š`,sccue:`≽`,sce:`⪰`,scedil:`ş`,scirc:`ŝ`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,seArr:`⇘`,searhk:`⤥`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shortmid:`∣`,shortparallel:`∥`,shy:`­`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,square:`□`,squarf:`▪`,squf:`▪`,srarr:`→`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,subE:`⫅`,subdot:`⪽`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,sum:`∑`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,supE:`⫆`,supdot:`⪾`,supdsub:`⫘`,supe:`⊇`,supedot:`⫄`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swArr:`⇙`,swarhk:`⤦`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,target:`⌖`,tau:`τ`,tbrk:`⎴`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,tfr:`𝔱`,there4:`∴`,therefore:`∴`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,thinsp:` `,thkap:`≈`,thksim:`∼`,thorn:`þ`,tilde:`˜`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,tscr:`𝓉`,tscy:`ц`,tshcy:`ћ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,uArr:`⇑`,uHar:`⥣`,uacute:`ú`,uarr:`↑`,ubrcy:`ў`,ubreve:`ŭ`,ucirc:`û`,ucy:`у`,udarr:`⇅`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,ufr:`𝔲`,ugrave:`ù`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,uml:`¨`,uogon:`ų`,uopf:`𝕦`,uparrow:`↑`,updownarrow:`↕`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,upsi:`υ`,upsih:`ϒ`,upsilon:`υ`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,uuml:`ü`,uwangle:`⦧`,vArr:`⇕`,vBar:`⫨`,vBarv:`⫩`,vDash:`⊨`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vcy:`в`,vdash:`⊢`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,vert:`|`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,vzigzag:`⦚`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,wfr:`𝔴`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeetrf:`ℨ`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:`‍`,zwnj:`‌`},nz={amp:{category:`XML`,description:`ampersand`},AMP:{category:`XML`,description:`ampersand`},lt:{category:`XML`,description:`less-than sign`},LT:{category:`XML`,description:`less-than sign`},gt:{category:`XML`,description:`greater-than sign`},GT:{category:`XML`,description:`greater-than sign`},quot:{category:`XML`,description:`quotation mark`},QUOT:{category:`XML`,description:`quotation mark`},apos:{category:`XML`,description:`apostrophe`},nbsp:{category:`Spacing`,description:`non-breaking space`},NonBreakingSpace:{category:`Spacing`,description:`non-breaking space`},copy:{category:`Legal`,description:`copyright sign`},COPY:{category:`Legal`,description:`copyright sign`},reg:{category:`Legal`,description:`registered sign`},REG:{category:`Legal`,description:`registered sign`},trade:{category:`Legal`,description:`trademark sign`},TRADE:{category:`Legal`,description:`trademark sign`},pi:{category:`Greek`,description:`Greek small letter pi`},rarr:{category:`Arrows`,description:`rightwards arrow`},rightarrow:{category:`Arrows`,description:`rightwards arrow`},RightArrow:{category:`Arrows`,description:`rightwards arrow`}};function rz(e){return e.replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/([A-Z]+)([A-Z][a-z])/g,`$1 $2`).replace(/_/g,` `).toLowerCase()}var iz=Object.entries(tz).reduce((e,[t,n])=>{let r=nz[t],i=r?.description??rz(t),a=`${n}\u0000${i}`,o=e.get(a);return o===void 0?(e.set(a,{category:r?.category??`HTML`,character:n,description:i,entities:[`&${t};`]}),e):(o.entities.push(`&${t};`),e)},new Map),az=Array.from(iz.values()).map(e=>({...e,entities:e.entities})),oz=96,sz=12,cz=`lexical-playground-insert-character-picker`,lz=Ry.map(e=>({category:e.category,description:e.description,id:`emoji:${e.description}:${e.emoji}`,keywords:[e.description,e.category,...e.aliases,...e.tags].join(` `).toLowerCase(),label:e.emoji,meta:e.aliases.map(e=>`:${e}:`).join(` `),value:e.emoji})),uz=az.map(e=>({category:e.category,description:e.description,id:`html:${e.description}:${e.character}:${e.entities.join(`|`)}`,keywords:[e.description,e.category,e.character,...e.entities].join(` `).toLowerCase(),label:e.character,meta:e.entities.join(` `),value:e.character})),dz=new Map([...lz,...uz].map(e=>[e.id,e]));function fz(e,t,n){let r=t.trim().toLowerCase();if(r.length===0){let t=new Set(e.map(e=>e.id)),r=n.map(e=>dz.get(e)).filter(e=>e!==void 0&&t.has(e.id)),i=new Set(r.map(e=>e.id));return[...r,...e.filter(e=>!i.has(e.id))].slice(0,oz)}return e.filter(e=>e.keywords.includes(r)).slice(0,oz)}function pz(){let e=hz();if(e===null)return{activeTab:`emoji`,recentOptionIds:[]};try{let t=e.getItem(cz);if(t===null)return{activeTab:`emoji`,recentOptionIds:[]};let n=JSON.parse(t);return{activeTab:n.activeTab===`html`||n.activeTab===`emoji`?n.activeTab:`emoji`,recentOptionIds:Array.isArray(n.recentOptionIds)?n.recentOptionIds.filter(e=>typeof e==`string`&&dz.has(e)):[]}}catch{return e.removeItem(cz),{activeTab:`emoji`,recentOptionIds:[]}}}function mz(e){let t=hz();t!==null&&t.setItem(cz,JSON.stringify(e))}function hz(){return i.d()}function gz({activeEditor:e,onClose:n}){let[r,i]=(0,h.useState)(pz),[a,o]=(0,h.useState)(``),{activeTab:s,recentOptionIds:c}=r,l=s===`emoji`?lz:uz,u=(0,h.useMemo)(()=>fz(l,a,c),[l,a,c]),d=e=>{let t={...r,activeTab:e};i(t),mz(t)},f=r=>{e.update(()=>{let e=t.tt();t.bn(e)&&e.insertText(r.value)}),mz({activeTab:s,recentOptionIds:[r.id,...c.filter(e=>e!==r.id)].slice(0,sz)}),n()};return(0,_.jsxs)(`div`,{className:`InsertCharacterDialog`,children:[(0,_.jsxs)(`div`,{className:`InsertCharacterDialog__controls`,children:[(0,_.jsx)(`input`,{"aria-label":`Search emoji and HTML characters`,className:`InsertCharacterDialog__search form-control`,onChange:e=>o(e.target.value),placeholder:s===`emoji`?`Search emoji by name, alias, or tag`:`Search by character, entity, or name`,type:`search`,value:a}),(0,_.jsxs)(`div`,{className:`InsertCharacterDialog__tabs`,role:`group`,children:[(0,_.jsx)(`button`,{"aria-pressed":s===`emoji`,className:`InsertCharacterDialog__tab`,onClick:()=>d(`emoji`),type:`button`,children:`Emoji`}),(0,_.jsx)(`button`,{"aria-pressed":s===`html`,className:`InsertCharacterDialog__tab`,onClick:()=>d(`html`),type:`button`,children:`HTML`})]})]}),(0,_.jsx)(`div`,{className:`InsertCharacterDialog__results`,children:u.length===0?(0,_.jsx)(`div`,{className:`InsertCharacterDialog__empty`,children:`No matches`}):u.map(e=>(0,_.jsxs)(`button`,{"aria-label":`Insert ${e.description}`,className:`InsertCharacterDialog__item`,onClick:()=>f(e),title:`${e.description} ${e.meta}`,type:`button`,children:[(0,_.jsx)(`span`,{className:`InsertCharacterDialog__symbol`,children:e.label}),(0,_.jsxs)(`span`,{className:`InsertCharacterDialog__meta`,children:[(0,_.jsx)(`span`,{className:`InsertCharacterDialog__name`,children:e.description}),(0,_.jsx)(`span`,{className:`InsertCharacterDialog__entities`,children:e.meta||e.category})]})]},e.id))})]})}var _z=vt().filter(e=>[`c`,`clike`,`cpp`,`css`,`html`,`java`,`js`,`javascript`,`markdown`,`objc`,`objective-c`,`plain`,`powershell`,`py`,`python`,`rust`,`sql`,`swift`,`typescript`,`xml`].includes(e[0])),vz=Rj().filter(e=>[`c`,`clike`,`cpp`,`css`,`html`,`java`,`js`,`javascript`,`markdown`,`objc`,`objective-c`,`plain`,`powershell`,`py`,`python`,`rust`,`sql`,`typescript`,`xml`].includes(e[0])),yz=zj().filter(e=>[`catppuccin-latte`,`everforest-light`,`github-light`,`gruvbox-light-medium`,`kanagawa-lotus`,`dark-plus`,`light-plus`,`material-theme-lighter`,`min-light`,`one-light`,`rose-pine-dawn`,`slack-ochin`,`snazzy-light`,`solarized-light`,`vitesse-light`].includes(e[0])),bz=[],xz=[[`10px`,`10px`],[`11px`,`11px`],[`12px`,`12px`],[`13px`,`13px`],[`14px`,`14px`],[`15px`,`15px`],[`16px`,`16px`],[`17px`,`17px`],[`18px`,`18px`],[`19px`,`19px`],[`20px`,`20px`]],Sz={bullet:`bi bi-list-ul icon`,check:`bi bi-check2-square icon`,code:`bi bi-code-slash icon`,h1:`bi bi-type-h1 icon`,h2:`bi bi-type-h2 icon`,h3:`bi bi-type-h3 icon`,h4:`bi bi-type-h4 icon`,h5:`bi bi-type-h5 icon`,h6:`bi bi-type-h6 icon`,number:`bi bi-list-ol icon`,paragraph:`bi bi-text-paragraph icon`,quote:`bi bi-chat-square-quote icon`},Cz={bold:`bi bi-type-bold format`,code:`bi bi-code-slash format`,invisibleCharacters:`invisible-characters-toolbar-icon`,italic:`bi bi-type-italic format`,link:`bi bi-link-45deg format`,redo:`bi bi-arrow-clockwise format`,underline:`bi bi-type-underline format`,undo:`bi bi-arrow-counterclockwise format`},wz={bgColor:`bi bi-paint-bucket icon`,calendar:`bi bi-calendar icon`,clear:`bi bi-eraser icon`,collapsible:`bi bi-caret-right-fill icon`,columns:`bi bi-columns-gap icon`,diagram:`bi bi-diagram-2 icon`,equation:`bi bi-plus-slash-minus icon`,defaultExample:`bi bi-file-earmark-richtext icon`,fontColor:`bi bi-palette icon`,fontFamily:`bi bi-type icon block-type`,highlight:`bi bi-highlighter icon`,htmlCharacter:`bi bi-code-square icon`,horizontalRule:`bi bi-dash-lg icon`,image:`bi bi-file-earmark-easel icon`,insert:`bi bi-plus icon`,bibleVerse:`bi bi-journal-medical icon`,linkBlock:`bi bi-bezier2 icon`,mentionName:`bi bi-at icon`,pinLocation:`bi bi-pin-map icon`,lowerTransform:`bi bi-alphabet icon`,pageBreak:`bi bi-scissors icon`,poll:`bi bi-card-checklist icon`,sticky:`bi bi-sticky icon`,subscript:`bi bi-subscript icon`,superscript:`bi bi-superscript icon`,table:`bi bi-table icon`,upperTransform:`bi bi-alphabet-uppercase icon`,titleTransform:`bi bi-type icon`};function Tz(e,t){return e?t?`bi bi-text-indent-left icon`:`bi bi-text-indent-right icon`:t?`bi bi-text-indent-right icon`:`bi bi-text-indent-left icon`}var Ez={center:{iconClassName:`bi bi-text-center icon`,iconRTLClassName:`bi bi-text-center icon`,name:`Center Align`},end:{iconClassName:`bi bi-text-right icon`,iconRTLClassName:`bi bi-text-left icon`,name:`End Align`},justify:{iconClassName:`bi bi-justify icon`,iconRTLClassName:`bi bi-justify icon`,name:`Justify Align`},left:{iconClassName:`bi bi-text-left icon`,iconRTLClassName:`bi bi-text-left icon`,name:`Left Align`},right:{iconClassName:`bi bi-text-right icon`,iconRTLClassName:`bi bi-text-right icon`,name:`Right Align`},start:{iconClassName:`bi bi-text-left icon`,iconRTLClassName:`bi bi-text-right icon`,name:`Start Align`}};function Dz(e){return e?`active dropdown-item-active`:``}function Oz({editor:e,blockType:t,disabled:n=!1}){return(0,_.jsxs)(ZN,{disabled:n,buttonClassName:`toolbar-item block-controls`,buttonIconClassName:Sz[t],buttonLabel:D[t],buttonAriaLabel:`Formatting options for text style`,children:[(0,_.jsxs)(Z,{className:`item wide `+Dz(t===`paragraph`),onClick:()=>pn(e),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Sz.paragraph}),(0,_.jsx)(`span`,{className:`text`,children:`Normal`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.NORMAL})]}),(0,_.jsxs)(Z,{className:`item wide `+Dz(t===`h1`),onClick:()=>mn(e,t,`h1`),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Sz.h1}),(0,_.jsx)(`span`,{className:`text`,children:`Heading 1`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.HEADING1})]}),(0,_.jsxs)(Z,{className:`item wide `+Dz(t===`h2`),onClick:()=>mn(e,t,`h2`),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Sz.h2}),(0,_.jsx)(`span`,{className:`text`,children:`Heading 2`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.HEADING2})]}),(0,_.jsxs)(Z,{className:`item wide `+Dz(t===`h3`),onClick:()=>mn(e,t,`h3`),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Sz.h3}),(0,_.jsx)(`span`,{className:`text`,children:`Heading 3`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.HEADING3})]}),(0,_.jsxs)(Z,{className:`item wide `+Dz(t===`number`),onClick:()=>_n(e,t),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Sz.number}),(0,_.jsx)(`span`,{className:`text`,children:`Numbered List`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.NUMBERED_LIST})]}),(0,_.jsxs)(Z,{className:`item wide `+Dz(t===`bullet`),onClick:()=>hn(e,t),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Sz.bullet}),(0,_.jsx)(`span`,{className:`text`,children:`Bullet List`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.BULLET_LIST})]}),(0,_.jsxs)(Z,{className:`item wide `+Dz(t===`check`),onClick:()=>gn(e,t),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Sz.check}),(0,_.jsx)(`span`,{className:`text`,children:`Check List`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.CHECK_LIST})]}),(0,_.jsxs)(Z,{className:`item wide `+Dz(t===`quote`),onClick:()=>vn(e,t),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Sz.quote}),(0,_.jsx)(`span`,{className:`text`,children:`Quote`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.QUOTE})]}),(0,_.jsxs)(Z,{className:`item wide `+Dz(t===`code`),onClick:()=>yn(e,t),children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Sz.code}),(0,_.jsx)(`span`,{className:`text`,children:`Code Block`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.CODE_BLOCK})]})]})}function kz(){return(0,_.jsx)(`div`,{className:`divider`})}function Az({editor:e,fontFamilyOptions:r=o.l,value:i,style:a,disabled:s=!1}){let c=a===`font-family`?r:xz,l=(0,h.useCallback)(r=>{e.update(()=>{t.pt(t.ft);let e=t.tt();e!==null&&n.j(e,{[a]:r})})},[e,a]),u=a===`font-family`?`Formatting options for font family`:`Formatting options for font size`;return(0,_.jsx)(ZN,{disabled:s,buttonClassName:`toolbar-item `+a,buttonLabel:i,buttonIconClassName:a===`font-family`?wz.fontFamily:``,buttonAriaLabel:u,children:c.map(e=>{let t=e[0],n=e[1];return(0,_.jsx)(Z,{className:`item ${Dz(i===t)} ${a===`font-size`?`fontsize-item`:``}`,onClick:()=>l(t),children:(0,_.jsx)(`span`,{className:`text`,children:n})},t)})})}function jz({editor:e,value:n,isRTL:r,disabled:i=!1}){let a=Ez[n||`left`];return(0,_.jsxs)(ZN,{disabled:i,buttonLabel:a.name,buttonIconClassName:r?a.iconRTLClassName:a.iconClassName,buttonClassName:`toolbar-item spaced alignment`,buttonAriaLabel:`Formatting options for text alignment`,children:[(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.tr,`left`)},className:`item wide`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Ez.left.iconClassName}),(0,_.jsx)(`span`,{className:`text`,children:`Left Align`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.LEFT_ALIGN})]}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.tr,`center`)},className:`item wide`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Ez.center.iconClassName}),(0,_.jsx)(`span`,{className:`text`,children:`Center Align`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.CENTER_ALIGN})]}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.tr,`right`)},className:`item wide`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Ez.right.iconClassName}),(0,_.jsx)(`span`,{className:`text`,children:`Right Align`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.RIGHT_ALIGN})]}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.tr,`justify`)},className:`item wide`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Ez.justify.iconClassName}),(0,_.jsx)(`span`,{className:`text`,children:`Justify Align`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.JUSTIFY_ALIGN})]}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.tr,`start`)},className:`item wide`,children:[(0,_.jsx)(`i`,{className:r?Ez.start.iconRTLClassName:Ez.start.iconClassName}),(0,_.jsx)(`span`,{className:`text`,children:`Start Align`})]}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.tr,`end`)},className:`item wide`,children:[(0,_.jsx)(`i`,{className:r?Ez.end.iconRTLClassName:Ez.end.iconClassName}),(0,_.jsx)(`span`,{className:`text`,children:`End Align`})]}),(0,_.jsx)(kz,{}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.pr,void 0)},className:`item wide`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Tz(r,!1)}),(0,_.jsx)(`span`,{className:`text`,children:`Outdent`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.OUTDENT})]}),(0,_.jsxs)(Z,{onClick:()=>{e.dispatchCommand(t.on,void 0)},className:`item wide`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:Tz(r,!0)}),(0,_.jsx)(`span`,{className:`text`,children:`Indent`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.INDENT})]})]})}function Mz(e){let n=e.getKey()===`root`?e:t.B(e,e=>{let n=e.getParent();return n!==null&&t.J(n)});return n===null&&(n=e.getTopLevelElementOrThrow()),n}function Nz({editor:e,extraFontFamilies:c=bz,activeEditor:l,resolveFilePath:u,scrollContainerRef:d,setActiveEditor:f,setIsLinkEditMode:p}){let[m,g]=(0,h.useState)(null),[v,y]=(0,h.useState)(!1),[b,x]=ix(),[S,C]=(0,h.useState)(()=>e.isEditable()),{toolbarState:w,updateToolbarState:T}=j(),E=(0,h.useMemo)(()=>o.d(c),[c]),O=(e,n=void 0,r=!1)=>{l.update(()=>{r&&t.pt(t.gn),l.dispatchCommand(e,n)})},k=(e,n=!1)=>O(t.w,e,n),A=(0,h.useCallback)(e=>{l.update(()=>{let n=t.tt();t.bn(n)&&n.insertText(e)})},[l]),M=(0,h.useCallback)(()=>{l.update(()=>{let e=VR(),n=t.tt();if(t.bn(n)||t.Fr(n)){t.W(e);return}t.Dr().append(...e)})},[l]),N=(0,h.useCallback)(e=>{let t=a.Qt(e)?e.getTag():e.getType();t in D&&T(`blockType`,t)},[T]),{setOption:I,settings:{isCodeHighlighted:L,isCodeShiki:R,showInvisibleCharacters:z,showTableOfContents:B}}=i.r(),ee=(0,h.useCallback)(e=>{if(W(e)){let t=e.getLanguage();T(`codeLanguage`,t?L&&(R?Bj(t):xt(t))||t:``);let n=e.getTheme();T(`codeTheme`,n||``);return}},[T,L,R]),te=(0,h.useCallback)(()=>{let r=t.tt(),i=t.bn(r)&&typeof r.isCollapsed==`function`&&!r.isCollapsed()&&r.getTextContent().replace(/\n/g,``)!==``;if(y(i),t.bn(r)){if(l!==e&&n.y(l)){let e=l.getRootElement();T(`isImageCaption`,!!e?.parentElement?.classList.contains(`media-caption-container`))}else T(`isImageCaption`,!1);let i=r.anchor.getNode(),o=Mz(i),s=o.getKey(),c=l.getElementByKey(s);T(`isRTL`,n.N(r));let u=RF(r),d=u.getParent(),f=a.X(d)||a.X(u);if(T(`isLink`,f),a.Ut(t.B(u,a.Ut))?T(`rootType`,`table`):T(`rootType`,`root`),c!==null)if(g(s),K(o)){let e=n.m(i,Ut),t=e?e.getListType():o.getListType();T(`blockType`,t)}else N(o),ee(o);T(`fontColor`,n.A(r,`color`,`#000`)),T(`fontColorIcon`,n.A(r,`color`,``)),T(`bgColor`,n.A(r,`background-color`,`#fff`)),T(`bgColorIcon`,n.A(r,`background-color`,``)),T(`fontFamily`,n.A(r,`font-family`,`Arial`));let p;a.X(d)&&(p=t.B(u,e=>t.vt(e)&&!e.isInline())),T(`elementFormat`,t.vt(p)?p.getFormatType():t.vt(u)?u.getFormatType():d?.getFormatType()||`left`)}if((t.bn(r)||a.Kt(r))&&(T(`isBold`,r.hasFormat(`bold`)),T(`isItalic`,r.hasFormat(`italic`)),T(`isUnderline`,r.hasFormat(`underline`)),T(`isStrikethrough`,r.hasFormat(`strikethrough`)),T(`isSubscript`,r.hasFormat(`subscript`)),T(`isSuperscript`,r.hasFormat(`superscript`)),T(`isHighlight`,r.hasFormat(`highlight`)),T(`isCode`,r.hasFormat(`code`)),T(`fontSize`,n.A(r,`font-size`,`15px`)),T(`isLowercase`,r.hasFormat(`lowercase`)),T(`isUppercase`,r.hasFormat(`uppercase`)),T(`isCapitalize`,r.hasFormat(`capitalize`))),t.Fr(r)){let e=r.getNodes();for(let r of e){let e=n.m(r,Ut);if(e){let t=e.getListType();T(`blockType`,t)}else{let e=Mz(r);N(e),ee(e),t.vt(e)&&T(`elementFormat`,e.getFormatType())}}}},[l,e,T,N,ee]);(0,h.useEffect)(()=>e.registerCommand(t.F,(e,t)=>(f(t),te(),!1),4),[e,te,f]),(0,h.useEffect)(()=>{l.getEditorState().read(()=>{te()},{editor:l})},[l,te]),(0,h.useEffect)(()=>t.Yn(e.registerEditableListener(e=>{C(e)}),l.registerUpdateListener(({editorState:e})=>{e.read(()=>{te()},{editor:l})}),l.registerCommand(t.v,e=>(T(`canUndo`,e),!1),4),l.registerCommand(t.Ur,e=>(T(`canRedo`,e),!1),4)),[te,l,e,T]);let V=(0,h.useCallback)((e,r,i=!1)=>{l.update(()=>{i&&t.pt(t.gn);let r=t.tt();r!==null&&n.j(r,e)},r?{tag:t.$r}:{})},[l]),ne=(0,h.useCallback)((e,t,n)=>{V({color:e},t,n)},[V]),re=(0,h.useCallback)((e,t)=>{V({color:null},e,t)},[V]),ie=(0,h.useCallback)((e,t,n)=>{V({"background-color":e},t,n)},[V]),H=(0,h.useCallback)((e,t)=>{V({"background-color":null},e,t)},[V]),ae=(0,h.useCallback)(()=>{w.isLink?(p(!1),l.dispatchCommand(a.nt,null)):(p(!0),l.dispatchCommand(a.nt,a.C(`https://`)))},[l,p,w.isLink]),oe=(0,h.useCallback)(e=>{l.update(()=>{if(t.pt(t.ft),m!==null){let n=t.Ht(m);W(n)&&n.setLanguage(e)}})},[l,m]),se=(0,h.useCallback)(e=>{l.update(()=>{if(m!==null){let n=t.Ht(m);W(n)&&n.setTheme(e)}})},[l,m]),ce=!w.isImageCaption,le=!w.isImageCaption;return(0,_.jsxs)(`div`,{className:`toolbar`,children:[B&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(ez,{editor:e,scrollContainerRef:d}),(0,_.jsx)(kz,{})]}),(0,_.jsx)(`button`,{disabled:!w.canUndo||!S,onClick:e=>O(t.Tt,void 0,P(e)),title:t.yr?`Undo (⌘Z)`:`Undo (Ctrl+Z)`,type:`button`,className:`toolbar-item spaced`,"aria-label":`Undo`,children:(0,_.jsx)(`i`,{className:Cz.undo})}),(0,_.jsx)(`button`,{disabled:!w.canRedo||!S,onClick:e=>O(t.nn,void 0,P(e)),title:t.yr?`Redo (⇧⌘Z)`:`Redo (Ctrl+Y)`,type:`button`,className:`toolbar-item`,"aria-label":`Redo`,children:(0,_.jsx)(`i`,{className:Cz.redo})}),(0,_.jsx)(kz,{}),w.blockType in D&&l===e&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Oz,{disabled:!S,blockType:w.blockType,rootType:w.rootType,editor:l}),(0,_.jsx)(kz,{})]}),w.blockType===`code`&&L?(0,_.jsxs)(_.Fragment,{children:[!R&&(0,_.jsx)(ZN,{disabled:!S,buttonClassName:`toolbar-item code-language`,buttonLabel:(_z.find(e=>e[0]===xt(w.codeLanguage))||[``,``])[1],buttonAriaLabel:`Select language`,children:_z.map(([e,t])=>(0,_.jsx)(Z,{className:`item ${Dz(e===w.codeLanguage)}`,onClick:()=>oe(e),children:(0,_.jsx)(`span`,{className:`text`,children:t})},e))}),R&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(ZN,{disabled:!S,buttonClassName:`toolbar-item code-language`,buttonLabel:(vz.find(e=>e[0]===Bj(w.codeLanguage))||[``,``])[1],buttonAriaLabel:`Select language`,children:vz.map(([e,t])=>(0,_.jsx)(Z,{className:`item ${Dz(e===w.codeLanguage)}`,onClick:()=>oe(e),children:(0,_.jsx)(`span`,{className:`text`,children:t})},e))}),(0,_.jsx)(ZN,{disabled:!S,buttonClassName:`toolbar-item code-language`,buttonLabel:(yz.find(e=>e[0]===w.codeTheme)||[``,``])[1],buttonAriaLabel:`Select theme`,children:yz.map(([e,t])=>(0,_.jsx)(Z,{className:`item ${Dz(e===w.codeTheme)}`,onClick:()=>se(e),children:(0,_.jsx)(`span`,{className:`text`,children:t})},e))})]})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Az,{disabled:!S,fontFamilyOptions:E,style:`font-family`,value:w.fontFamily,editor:l}),(0,_.jsx)(kz,{}),(0,_.jsx)(En,{selectionFontSize:wn(w.fontSize).slice(0,-2),editor:l,disabled:!S}),(0,_.jsx)(kz,{}),(0,_.jsx)(`button`,{disabled:!S,onClick:e=>k(`bold`,P(e)),className:`toolbar-item spaced `+(w.isBold?`active`:``),title:`Bold (${F.BOLD})`,type:`button`,"aria-label":`Format text as bold. Shortcut: ${F.BOLD}`,children:(0,_.jsx)(`i`,{className:Cz.bold})}),(0,_.jsx)(`button`,{disabled:!S,onClick:e=>k(`italic`,P(e)),className:`toolbar-item spaced `+(w.isItalic?`active`:``),title:`Italic (${F.ITALIC})`,type:`button`,"aria-label":`Format text as italics. Shortcut: ${F.ITALIC}`,children:(0,_.jsx)(`i`,{className:Cz.italic})}),(0,_.jsx)(`button`,{disabled:!S,onClick:e=>k(`underline`,P(e)),className:`toolbar-item spaced `+(w.isUnderline?`active`:``),title:`Underline (${F.UNDERLINE})`,type:`button`,"aria-label":`Format text to underlined. Shortcut: ${F.UNDERLINE}`,children:(0,_.jsx)(`i`,{className:Cz.underline})}),le&&(0,_.jsx)(`button`,{disabled:!S,onClick:e=>k(`code`,P(e)),className:`toolbar-item spaced `+(w.isCode?`active`:``),title:`Insert code block (${F.INSERT_CODE_BLOCK})`,type:`button`,"aria-label":`Insert code block`,children:(0,_.jsx)(`i`,{className:Cz.code})}),(0,_.jsx)(`button`,{disabled:!S,onClick:ae,className:`toolbar-item spaced `+(w.isLink?`active`:``),"aria-label":`Insert link`,title:`Insert link (${F.INSERT_LINK})`,type:`button`,children:(0,_.jsx)(`i`,{className:Cz.link})}),(0,_.jsx)(KF,{disabled:!S,buttonClassName:`toolbar-item color-picker`,buttonAriaLabel:`Formatting text color`,buttonIconClassName:wz.fontColor,buttonIconStyle:w.fontColorIcon?{color:w.fontColorIcon}:void 0,color:w.fontColor,onChange:ne,onClear:re,title:`text color`}),(0,_.jsx)(KF,{disabled:!S,buttonClassName:`toolbar-item color-picker`,buttonAriaLabel:`Formatting background color`,buttonIconClassName:wz.bgColor,buttonIconStyle:w.bgColorIcon?{color:w.bgColorIcon}:void 0,color:w.bgColor,onChange:ie,onClear:H,title:`bg color`}),(0,_.jsxs)(ZN,{disabled:!S,buttonClassName:`toolbar-item spaced`,buttonLabel:``,buttonAriaLabel:`Formatting options for additional text styles`,buttonIconClassName:`bi bi-three-dots icon`,children:[(0,_.jsxs)(Z,{onClick:e=>k(`lowercase`,P(e)),className:`item wide `+Dz(w.isLowercase),title:`Lowercase`,"aria-label":`Format text to lowercase`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.lowerTransform}),(0,_.jsx)(`span`,{className:`text`,children:`Lowercase`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.LOWERCASE})]}),(0,_.jsxs)(Z,{onClick:e=>k(`uppercase`,P(e)),className:`item wide `+Dz(w.isUppercase),title:`Uppercase`,"aria-label":`Format text to uppercase`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.upperTransform}),(0,_.jsx)(`span`,{className:`text`,children:`Uppercase`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.UPPERCASE})]}),(0,_.jsxs)(Z,{onClick:e=>k(`capitalize`,P(e)),className:`item wide `+Dz(w.isCapitalize),title:`Capitalize`,"aria-label":`Format text to capitalize`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.titleTransform}),(0,_.jsx)(`span`,{className:`text`,children:`Capitalize`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.CAPITALIZE})]}),(0,_.jsxs)(Z,{onClick:e=>k(`strikethrough`,P(e)),className:`item wide `+Dz(w.isStrikethrough),title:`Strikethrough`,"aria-label":`Format text with a strikethrough`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:`bi bi-type-strikethrough icon`}),(0,_.jsx)(`span`,{className:`text`,children:`Strikethrough`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.STRIKETHROUGH})]}),(0,_.jsxs)(Z,{onClick:e=>k(`subscript`,P(e)),className:`item wide `+Dz(w.isSubscript),title:`Subscript`,"aria-label":`Format text with a subscript`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.subscript}),(0,_.jsx)(`span`,{className:`text`,children:`Subscript`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.SUBSCRIPT})]}),(0,_.jsxs)(Z,{onClick:e=>k(`superscript`,P(e)),className:`item wide `+Dz(w.isSuperscript),title:`Superscript`,"aria-label":`Format text with a superscript`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.superscript}),(0,_.jsx)(`span`,{className:`text`,children:`Superscript`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.SUPERSCRIPT})]}),(0,_.jsx)(Z,{onClick:e=>k(`highlight`,P(e)),className:`item wide `+Dz(w.isHighlight),title:`Highlight`,"aria-label":`Format text with a highlight`,children:(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.highlight}),(0,_.jsx)(`span`,{className:`text`,children:`Highlight`})]})}),(0,_.jsxs)(Z,{onClick:e=>bn(l,P(e)),className:`item wide`,title:`Clear text formatting`,"aria-label":`Clear all text formatting`,children:[(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.clear}),(0,_.jsx)(`span`,{className:`text`,children:`Clear Formatting`})]}),(0,_.jsx)(`span`,{className:`shortcut`,children:F.CLEAR_FORMATTING})]}),(0,_.jsx)(Z,{onClick:e=>O(Vx,void 0,P(e)),className:`item wide`,disabled:!S||!v,title:`Link block text`,"aria-label":`Link block text`,children:(0,_.jsxs)(`div`,{className:`icon-text-container`,children:[(0,_.jsx)(`i`,{className:wz.linkBlock}),(0,_.jsx)(`span`,{className:`text`,children:`Link block text`})]})})]}),ce&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(kz,{}),(0,_.jsxs)(ZN,{disabled:!S,buttonClassName:`toolbar-item spaced`,buttonLabel:`Insert`,buttonAriaLabel:`Insert specialized editor node`,buttonIconClassName:wz.insert,children:[(0,_.jsxs)(Z,{onClick:()=>O(r.U),className:`item`,children:[(0,_.jsx)(`i`,{className:wz.horizontalRule}),(0,_.jsx)(`span`,{className:`text`,children:`Horizontal Rule`})]}),(0,_.jsxs)(Z,{onClick:M,className:`item`,children:[(0,_.jsx)(`i`,{className:wz.defaultExample}),(0,_.jsx)(`span`,{className:`text`,children:`Default Example`})]}),(0,_.jsxs)(Z,{onClick:()=>O(_P),className:`item`,children:[(0,_.jsx)(`i`,{className:wz.pageBreak}),(0,_.jsx)(`span`,{className:`text`,children:`Page Break`})]}),(0,_.jsxs)(Z,{onClick:()=>{x(`Insert Media`,e=>(0,_.jsx)(PN,{activeEditor:l,onClose:e,resolveFilePath:u}))},className:`item`,title:`Insert image, video, pdf or audio`,children:[(0,_.jsx)(`i`,{className:wz.image}),(0,_.jsx)(`span`,{className:`text`,children:`Media`})]}),(0,_.jsxs)(Z,{onClick:()=>O(xN),className:`item`,children:[(0,_.jsx)(`i`,{className:wz.diagram}),(0,_.jsx)(`span`,{className:`text`,children:`Excalidraw`})]}),(0,_.jsxs)(Z,{onClick:()=>A(`@`),className:`item`,children:[(0,_.jsx)(`i`,{className:wz.mentionName}),(0,_.jsx)(`span`,{className:`text`,children:`Mention Name`})]}),(0,_.jsxs)(Z,{onClick:()=>A(`#`),className:`item`,children:[(0,_.jsx)(`i`,{className:wz.pinLocation}),(0,_.jsx)(`span`,{className:`text`,children:`Pin Location`})]}),(0,_.jsxs)(Z,{onClick:()=>A(`^`),className:`item`,children:[(0,_.jsx)(`i`,{className:wz.bibleVerse}),(0,_.jsx)(`span`,{className:`text`,children:`Bible Verse`})]}),(0,_.jsxs)(Z,{onClick:()=>{x(`Insert Emoji or HTML Character`,e=>(0,_.jsx)(gz,{activeEditor:l,onClose:e}))},className:`item`,children:[(0,_.jsx)(`i`,{className:wz.htmlCharacter}),(0,_.jsx)(`span`,{className:`text`,children:`Emoji & HTML Character`})]}),(0,_.jsxs)(Z,{onClick:()=>{x(`Insert Table`,e=>(0,_.jsx)(wP,{activeEditor:l,onClose:e}))},className:`item`,children:[(0,_.jsx)(`i`,{className:wz.table}),(0,_.jsx)(`span`,{className:`text`,children:`Table`})]}),(0,_.jsxs)(Z,{onClick:()=>{x(`Insert Poll`,e=>(0,_.jsx)(bP,{activeEditor:l,onClose:e}))},className:`item`,children:[(0,_.jsx)(`i`,{className:wz.poll}),(0,_.jsx)(`span`,{className:`text`,children:`Poll`})]}),(0,_.jsxs)(Z,{onClick:()=>{x(`Insert Columns Layout`,e=>(0,_.jsx)(fP,{activeEditor:l,onClose:e}))},className:`item`,children:[(0,_.jsx)(`i`,{className:wz.columns}),(0,_.jsx)(`span`,{className:`text`,children:`Columns Layout`})]}),(0,_.jsxs)(Z,{onClick:()=>{x(`Insert Equation`,e=>(0,_.jsx)(yN,{activeEditor:l,onClose:e}))},className:`item`,children:[(0,_.jsx)(`i`,{className:wz.equation}),(0,_.jsx)(`span`,{className:`text`,children:`Equation`})]}),(0,_.jsxs)(Z,{onClick:()=>{e.update(()=>{t.pt(`skip-selection-focus`);let e=t.Dr(),n=s.t(0,0);e.append(n)})},className:`item`,children:[(0,_.jsx)(`i`,{className:wz.sticky}),(0,_.jsx)(`span`,{className:`text`,children:`Sticky Note`})]}),(0,_.jsxs)(Z,{onClick:()=>O(mM),className:`item`,children:[(0,_.jsx)(`i`,{className:wz.collapsible}),(0,_.jsx)(`span`,{className:`text`,children:`Collapsible container`})]}),(0,_.jsxs)(Z,{onClick:()=>{let e=new Date;e.setHours(0,0,0,0),O(hN,{dateTime:e})},className:`item`,children:[(0,_.jsx)(`i`,{className:wz.calendar}),(0,_.jsx)(`span`,{className:`text`,children:`Date`})]}),jx.map(e=>(0,_.jsxs)(Z,{onClick:()=>O(tx,e.type),className:`item`,children:[e.icon,(0,_.jsx)(`span`,{className:`text`,children:e.buttonLabel??e.contentName})]},e.type))]})]})]}),(0,_.jsx)(kz,{}),(0,_.jsx)(`button`,{onClick:()=>I(`showInvisibleCharacters`,!z),className:`toolbar-item spaced `+(z?`active`:``),title:`Show invisible characters`,type:`button`,"aria-label":`Show invisible characters`,children:(0,_.jsx)(`span`,{className:Cz.invisibleCharacters,"aria-hidden":`true`,children:`¶`})}),(0,_.jsx)(kz,{}),(0,_.jsx)(jz,{disabled:!S,value:w.elementFormat,editor:l,isRTL:w.isRTL}),b]})}var Pz=100,Fz=50,Iz=500,Lz=1,Rz=3,zz=8,Bz=96,Vz=[`.excalidraw`,`.excalidraw-button`,`.ExcalidrawModal__overlay`,`.ExcalidrawModal__modal`,`.ExcalidrawModal__row`].join(`,`);function Hz(e){return Number.isFinite(e)?Math.min(Iz,Math.max(Fz,e)):Pz}function Uz(e){return e instanceof Element?e:e instanceof Node?e.parentElement:null}function Wz(e){return Uz(e)?.closest(Vz)!==null}function Gz(e){if(e.length!==2)return null;let t=e[0],n=e[1],r=Math.hypot(n.clientX-t.clientX,n.clientY-t.clientY);return r<zz?null:{clientX:(t.clientX+n.clientX)/2,clientY:(t.clientY+n.clientY)/2,distance:r}}function Kz({detectTextLanguage:e,excalidrawClearLibrariesFileList:n,excalidrawLibraryItems:c=[],excalidrawLoadLibrariesFileList:u,excalidrawSaveLibrariesFile:d,extraFontFamilies:f=[],floatingActionButtons:p=Zn,forceReadOnly:m=!1,footerActionButtons:g=Qn,isMinimize:v,isOnApp:y,print:b,resolveFilePath:x}){let[S,C]=ix(),{historyState:w}=r.a(),{settings:{isCodeHighlighted:T,isCodeShiki:E,isAutocomplete:D,isMaxLength:O,isCharLimit:k,hasLinkAttributes:A,hasNestedTables:j,isCharLimitUtf8:M,isRichText:N,showTreeView:P,shouldUseLexicalContextMenu:F,shouldPreserveNewLinesInMarkdown:I,tableCellMerge:L,tableCellBackgroundColor:R,tableHorizontalScroll:z,shouldAllowHighlightingWithBrackets:B,showInvisibleCharacters:ee,selectionAlwaysOnDisplay:te,listStrictIndent:V,pageSize:ne}}=i.r(),re=l.t(),ie=N?`Enter some rich text...`:`Enter some plain text...`,[H,ae]=(0,h.useState)(null),[oe,se]=(0,h.useState)(!0),[ce]=t.oi(),[le,ue]=(0,h.useState)(ce),[de,fe]=(0,h.useState)(!1),[pe,me]=(0,h.useState)(()=>Gi()),[U,he]=(0,h.useState)(!1),[ge,_e]=(0,h.useState)(`comments`),[ve,ye]=(0,h.useState)(!1),[be,xe]=(0,h.useState)(!1),[Se,Ce]=(0,h.useState)(!1),[we,Te]=(0,h.useState)(()=>Hz(ra()??Pz)),Ee=(0,h.useRef)(null),De=(0,h.useRef)(null),Oe=(0,h.useRef)(we);Oe.current=we;let ke=(0,h.useRef)(null),Ae=(0,h.useRef)(null),je={"--playground-editor-content-zoom":String(we/100),overflow:`hidden`,touchAction:`pan-x pan-y`},Me=e=>{Te(Hz(e))};(0,h.useEffect)(()=>{ia(we)},[we]),(0,h.useLayoutEffect)(()=>{let e=ke.current;if(ke.current=null,e===null||e.previousZoomPercent===we)return;let t=De.current;if(t===null)return;let n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top,a=we/e.previousZoomPercent;t.scrollLeft=(t.scrollLeft+r)*a-r,t.scrollTop=(t.scrollTop+i)*a-i},[we]);let Ne=i.h(ne),Pe=e=>{let t=De.current;if(t===null||Ne===null)return;let n=getComputedStyle(t);if(e===`width`){let e=Ne.widthIn*Bz;if(e<=0)return;let r=t.clientWidth-(Number.parseFloat(n.paddingLeft)||0)-(Number.parseFloat(n.paddingRight)||0);Me(Math.round(r/e*100));return}let r=Ne.heightIn*Bz;if(r<=0)return;let i=t.clientHeight-(Number.parseFloat(n.paddingTop)||0)-(Number.parseFloat(n.paddingBottom)||0);Me(Math.round(i/r*100))},Fe=e=>{e!==null&&ae(e)};(0,h.useEffect)(()=>{let e=`(hover: hover) and (pointer: fine)`,n=()=>{let n=!t.ar||window.matchMedia(e).matches;n!==oe&&se(n)};n();let r=t.ar?window.matchMedia(e):null;return r?.addEventListener(`change`,n),window.addEventListener(`resize`,n),()=>{r?.removeEventListener(`change`,n),window.removeEventListener(`resize`,n)}},[oe]);let Ie=(0,h.useRef)(pe);(0,h.useEffect)(()=>{pe&&!Ie.current&&_e(`comments`),Ie.current=pe},[pe]);let W=(0,h.useRef)(U);(0,h.useEffect)(()=>{U&&!W.current&&_e(`lookup`),W.current=U},[U]);let Le=(0,h.useCallback)(()=>{pe?ge===`comments`?me(!1):_e(`comments`):me(!0)},[pe,ge]),Re=(0,h.useCallback)(()=>{U?ge===`lookup`?he(!1):_e(`lookup`):he(!0)},[U,ge]),ze=ge===`comments`?26:25,Be=ge===`lookup`?26:25;(0,h.useEffect)(()=>{let e=()=>{document.fullscreenElement!==Ee.current&&ye(!1)};return document.addEventListener(`fullscreenchange`,e),()=>{document.removeEventListener(`fullscreenchange`,e)}},[]);let Ve=(0,h.useCallback)(()=>{let e=Ee.current;if(e!==null){if(document.fullscreenElement===e){ye(!1),document.exitFullscreen?.().catch(()=>{});return}ye(!0),e.requestFullscreen!==void 0&&e.requestFullscreen().catch(()=>{})}},[]);return(0,h.useEffect)(()=>{let e=Ee.current;if(e===null)return;let t=e=>{if(!e.ctrlKey||e.deltaY===0||Wz(e.target))return;e.preventDefault();let t=Oe.current,n=Hz(t+(e.deltaY<0?Rz:-3));n!==t&&(ke.current={clientX:e.clientX,clientY:e.clientY,previousZoomPercent:t},Te(n))},n=e=>{if(Wz(e.target)){Ae.current=null;return}let t=Gz(e.touches);if(t===null){Ae.current=null;return}Ae.current={initialDistance:t.distance,initialZoomPercent:Oe.current}},r=e=>{let t=Ae.current;if(t===null||Wz(e.target))return;let n=Gz(e.touches);if(n===null){Ae.current=null;return}e.preventDefault();let r=Oe.current,i=Hz(Math.round(t.initialZoomPercent*(n.distance/t.initialDistance)));i!==r&&(ke.current={clientX:n.clientX,clientY:n.clientY,previousZoomPercent:r},Te(i))},i=()=>{Ae.current=null};return e.addEventListener(`wheel`,t,{passive:!1}),e.addEventListener(`touchstart`,n),e.addEventListener(`touchmove`,r,{passive:!1}),e.addEventListener(`touchend`,i),e.addEventListener(`touchcancel`,i),()=>{e.removeEventListener(`wheel`,t),e.removeEventListener(`touchstart`,n),e.removeEventListener(`touchmove`,r),e.removeEventListener(`touchend`,i),e.removeEventListener(`touchcancel`,i)}},[]),(0,h.useEffect)(()=>{let e=e=>{e.key===`F5`&&(e.preventDefault(),ye(e=>!e))};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[]),(0,h.useEffect)(()=>{ve||(xe(!1),Ce(!1))},[ve]),(0,_.jsx)(o.p,{clearLibrariesFileList:n,detectTextLanguage:e,extraFontFamilies:f,loadLibrariesFileList:u,libraryItems:c,saveLibrariesFile:d,children:(0,_.jsxs)(`div`,{className:`w-100 h-100 card editor-shell${ve?` full-view`:``}`,ref:Ee,style:je,children:[ve&&(0,_.jsx)(`div`,{className:`full-view-hover-zone full-view-hover-zone-top`,onMouseEnter:()=>xe(!0)}),(0,_.jsxs)(`div`,{className:`w-100 card-header p-0${ve&&be?` full-view-visible`:``}`,onMouseEnter:ve?()=>xe(!0):void 0,onMouseLeave:ve?()=>xe(!1):void 0,children:[N&&(0,_.jsx)(Nz,{editor:ce,extraFontFamilies:f,activeEditor:le,resolveFilePath:x,scrollContainerRef:De,setActiveEditor:ue,setIsLinkEditMode:fe}),N&&(0,_.jsx)(OL,{editor:le,setIsLinkEditMode:fe})]}),(0,_.jsx)(`div`,{className:`w-100 card-body editor-container p-0 ${P?`tree-view`:``} ${N?``:`plain-text`}`,ref:De,children:(0,_.jsxs)(`div`,{className:`editor-zoom-surface`,children:[O&&(0,_.jsx)(WI,{maxLength:30}),(0,_.jsx)(QP,{resolveFilePath:x}),(0,_.jsx)(ni,{}),(0,_.jsx)(uF,{}),te&&(0,_.jsx)(Ci,{}),(0,_.jsx)(hi,{}),(0,_.jsx)(LF,{}),(0,_.jsx)(AP,{resolveFilePath:x}),(0,_.jsx)(mF,{}),(0,_.jsx)(Ix,{}),(0,_.jsx)(a.n,{}),(0,_.jsx)(a.r,{}),(0,_.jsx)(fL,{}),(0,_.jsx)(a.c,{}),(0,_.jsx)(a.s,{}),(0,_.jsx)(Bx,{}),(0,_.jsx)(gN,{}),(0,_.jsx)(mN,{setShowComments:me,showComments:pe,panelZIndex:ze}),(0,_.jsx)(BI,{showLookup:U,setShowLookup:he,zIndex:Be}),N?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(r.o,{externalHistoryState:w}),(0,_.jsx)(a.q,{contentEditable:(0,_.jsx)(`div`,{className:`editor-scroller${pe?` comment-panel-open`:``}`,children:(0,_.jsx)(`div`,{className:`editor`,ref:Fe,children:(0,_.jsx)(r.t,{placeholder:ie,"data-test-id":`playground-editor`})})}),ErrorBoundary:r.N}),(0,_.jsx)(WL,{}),(0,_.jsx)(UI,{}),T&&(E?(0,_.jsx)(Qj,{}):(0,_.jsx)(VS,{})),(0,_.jsx)(Si,{hasStrictIndent:V}),(0,_.jsx)(pi,{}),(0,_.jsx)(Ti,{hasCellMerge:L,hasCellBackgroundColor:R,hasHorizontalScroll:z,hasNestedTables:j}),(0,_.jsx)(sR,{}),(0,_.jsx)(yR,{}),(0,_.jsx)(FN,{}),(0,_.jsx)(a.o,{hasLinkAttributes:A}),(0,_.jsx)(xP,{}),(0,_.jsx)(Ax,{}),(0,_.jsx)(yx,{}),(0,_.jsx)(gi,{disabled:re}),(0,_.jsx)(xi,{}),(0,_.jsx)(bN,{}),(0,_.jsx)(SN,{clearLibrariesFileList:n,detectTextLanguage:e,extraFontFamilies:f,loadLibrariesFileList:u,libraryItems:c,saveLibrariesFile:d}),(0,_.jsx)(YL,{}),(0,_.jsx)(wi,{maxIndent:7}),(0,_.jsx)(TM,{detectTextLanguage:e,extraFontFamilies:f}),(0,_.jsx)(vP,{}),(0,_.jsx)(lP,{}),H&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(GF,{anchorElem:H,isLinkEditMode:de,setIsLinkEditMode:fe}),(0,_.jsx)(TS,{anchorElem:H}),(0,_.jsx)(nR,{anchorElem:H,cellMerge:!0}),(0,_.jsx)(lI,{actionButtons:p,anchorElem:H})]}),H&&oe&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(lF,{anchorElem:H}),(0,_.jsx)(BS,{anchorElem:H}),(0,_.jsx)(pR,{anchorElem:H})]})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(s.a,{contentEditable:(0,_.jsx)(r.t,{placeholder:ie,"data-test-id":`playground-editor`}),ErrorBoundary:r.N}),(0,_.jsx)(r.o,{externalHistoryState:w})]}),(0,_.jsx)(AI,{anchorElem:H,enabled:ee}),(k||M)&&(0,_.jsx)(fi,{charset:k?`UTF-16`:`UTF-8`,maxLength:5}),D&&(0,_.jsx)(Vb,{}),(0,_.jsx)(bL,{}),(0,_.jsx)(TL,{}),F&&(0,_.jsx)(LP,{}),B&&(0,_.jsx)(FL,{})]})}),(0,_.jsx)(DL,{scrollContainerRef:De}),(0,_.jsx)(`div`,{className:`w-100 card-footer p-0 px-1${ve&&Se?` full-view-visible`:``}`,onMouseEnter:ve?()=>Ce(!0):void 0,onMouseLeave:ve?()=>Ce(!1):void 0,children:(0,_.jsxs)(`div`,{className:`editor-footer`,children:[(0,_.jsx)(qz,{onZoomPercentChange:Me,zoomPercent:we}),(0,_.jsx)(Jz,{isDefaultZoom:we===Pz,isFullView:ve,onFitHeight:()=>Pe(`height`),onFitWidth:()=>Pe(`width`),onOpenFind:()=>ce.dispatchCommand(DF,void 0),onResetZoom:()=>Me(Pz),onToggleFullView:()=>ye(e=>!e),showFitButtons:Ne!==null}),(0,_.jsx)(vb,{forceReadOnly:m,footerActionButtons:g,isMinimize:v,isOnApp:y,onToggleFullscreen:Ve,print:b,setShowComments:me,setShowLookup:he,onToggleComments:Le,onToggleLookup:Re,shouldPreserveNewLinesInMarkdown:I,showComments:pe,showLookup:U,showModal:C})]})}),ve&&(0,_.jsx)(`div`,{className:`full-view-hover-zone full-view-hover-zone-bottom`,onMouseEnter:()=>Ce(!0)}),P&&(0,_.jsx)(a.t,{}),S]})})}function qz({onZoomPercentChange:e,zoomPercent:t}){return(0,_.jsxs)(`div`,{className:`editor-zoom-controls`,"aria-label":`Editor zoom controls`,children:[(0,_.jsx)(`button`,{"aria-label":`Zoom out`,className:`action-button editor-zoom-button`,disabled:t<=Fz,onClick:()=>{e(t-Lz)},title:`Zoom out`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-dash`,"aria-hidden":`true`})}),(0,_.jsx)(`input`,{"aria-label":`Editor zoom`,className:`editor-zoom-range`,max:Iz,min:Fz,onChange:t=>{e(t.target.valueAsNumber)},step:Lz,title:`Editor zoom`,type:`range`,value:t}),(0,_.jsx)(`button`,{"aria-label":`Zoom in`,className:`action-button editor-zoom-button`,disabled:t>=Iz,onClick:()=>{e(t+Lz)},title:`Zoom in`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-plus`,"aria-hidden":`true`})}),(0,_.jsxs)(`span`,{className:`editor-zoom-percent`,"aria-live":`polite`,children:[t,`%`]})]})}function Jz({isDefaultZoom:e,isFullView:t,onFitHeight:n,onFitWidth:r,onOpenFind:i,onResetZoom:a,onToggleFullView:o,showFitButtons:s}){return(0,_.jsxs)(`div`,{className:`editor-view-options-menu`,children:[(0,_.jsx)(`button`,{"aria-haspopup":`true`,"aria-label":`View options`,className:`action-button editor-view-options-button`,title:`View options`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-three-dots-vertical`,"aria-hidden":`true`})}),(0,_.jsxs)(`div`,{className:`editor-view-options-popover`,role:`menu`,children:[(0,_.jsx)(`button`,{"aria-label":`Find in note`,className:`action-button editor-find-button`,onClick:i,title:`Find in note (${F.FIND})`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-search`,"aria-hidden":`true`})}),(0,_.jsx)(`button`,{"aria-label":`Reset zoom`,className:`action-button editor-zoom-button`,disabled:e,onClick:a,title:`Reset zoom`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-arrow-counterclockwise`,"aria-hidden":`true`})}),(0,_.jsx)(`button`,{"aria-label":`Toggle full view`,"aria-pressed":t,className:`action-button editor-full-view-button`,onClick:o,title:`Toggle full view (F5)`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-square`,"aria-hidden":`true`})}),s&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{"aria-label":`Fit page width`,className:`action-button editor-fit-button`,onClick:r,title:`Fit page width`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-arrows`,"aria-hidden":`true`})}),(0,_.jsx)(`button`,{"aria-label":`Fit page height`,className:`action-button editor-fit-button`,onClick:n,title:`Fit page height`,type:`button`,children:(0,_.jsx)(`i`,{className:`bi bi-arrows-vertical`,"aria-hidden":`true`})})]})]})]})}var Yz=[a.tn,Ut,Rt,a.$t,Fe,a.At,a.Wt,a.Jt,We,a.Z,a.Q,ri,m.r,s.r,a.D,a.k,a.j,o.a,d.a,kb,a.A,vi,Ex,hx,a.v,nM,oM,dM,mP,$N,iP,kL,f.f],Xz=()=>{let e=document.getElementById(`report-container`);return e===null&&(e=document.createElement(`div`),e.id=`report-container`,e.style.position=`fixed`,e.style.top=`50%`,e.style.left=`50%`,e.style.fontSize=`32px`,e.style.transform=`translate(-50%, -50px)`,e.style.padding=`20px`,e.style.background=`rgba(240, 240, 240, 0.4)`,e.style.borderRadius=`20px`,document.body&&document.body.appendChild(e)),e};function Zz(){let e=(0,h.useRef)(null),t=(0,h.useCallback)(()=>{e.current!==null&&(clearTimeout(e.current),e.current=null),document.body&&document.body.removeChild(Xz())},[]);return(0,h.useEffect)(()=>t,[t]),(0,h.useCallback)(n=>{let r=Xz();return e.current!==null&&clearTimeout(e.current),r.innerHTML=n,e.current=setTimeout(t,1e3),e.current},[t])}var Qz=new Set([`insertText`,`insertCompositionText`,`insertFromComposition`,`insertLineBreak`,`insertParagraph`,`deleteCompositionText`,`deleteContentBackward`,`deleteByComposition`,`deleteContent`,`deleteContentForward`,`deleteWordBackward`,`deleteWordForward`,`deleteHardLineBackward`,`deleteSoftLineBackward`,`deleteHardLineForward`,`deleteSoftLineForward`]);function $z(){let e=Zz();return(0,h.useEffect)(()=>{let t=0,n,r,i=[],a=!1,o=function(){r!=null&&(a?a=!1:i.push(performance.now()-t),clearTimeout(r),r=null)},s=function(){n!=null&&(clearTimeout(n),n=null),r=setTimeout(o,0),n=setTimeout(()=>{let t=i.reduce((e,t)=>e+t,0),n=`Typing Perf: `+Math.round(t/i.length*100)/100+`ms`;e(n),i=[]},2e3),t=performance.now()},c=function(e){if(!Qz.has(e.inputType)||a){a=!1;return}s()},l=function(e){let t=e.key;(t===`Backspace`||t===`Enter`)&&s()},u=function(){a=!0},d=function(){a=!0};return window.addEventListener(`keydown`,l,!0),window.addEventListener(`selectionchange`,o,!0),window.addEventListener(`beforeinput`,c,!0),window.addEventListener(`paste`,u,!0),window.addEventListener(`cut`,d,!0),()=>{window.removeEventListener(`keydown`,l,!0),window.removeEventListener(`selectionchange`,o,!0),window.removeEventListener(`beforeinput`,c,!0),window.removeEventListener(`paste`,u,!0),window.removeEventListener(`cut`,d,!0)}},[e]),null}console.warn(`If you are profiling the playground app, please ensure you turn off the debug view. You can disable it by pressing on the settings control in the bottom-left of your screen and toggling the debug view setting.`);function eB(e){let t=Er();return t===null?e?void 0:UR:t}function tB({detectTextLanguage:e,editorController:n,editorExtraFontFamilies:c=[],excalidrawClearLibrariesFileList:l,excalidrawLibraryItems:u=[],excalidrawLoadLibrariesFileList:d,excalidrawSaveLibrariesFile:f,floatingActionButtonController:p,footerActionButtonController:m,isMinimize:g=!1,isOnApp:y,print:b,resolveFilePath:C,revealFile:w,settings:T,settingsContainerElement:D,settingsController:O,stickyNoteExtraFontFamilies:k=[],shortToVerseData:j,verseFullTextToListShorts:M,changeBibleKey:N}){let{settings:{isDarkMode:P,emptyEditor:F,measureTypingPerf:I,pageSize:L}}=i.r(),[R,z]=(0,h.useState)(()=>Cr()?{status:`loading`,value:null}:{status:`idle`,value:null}),[B,ee]=(0,h.useState)(Qn),[te,V]=(0,h.useState)(Zn),[ne,re]=(0,h.useState)(!1);(0,h.useEffect)(()=>{n===void 0&&re(!1)},[n]),(0,h.useEffect)(()=>{if(!Cr())return;let e=!0;return z({status:`loading`,value:null}),Tr().then(t=>{e&&z({status:`loaded`,value:t??(F?void 0:UR)})}),()=>{e=!1}},[F]);let ie=(0,h.useMemo)(()=>eB(F),[F]),H=R.status===`loaded`?R.value:ie,ae=(0,h.useMemo)(()=>t.hr({$initialEditorState:H,html:Gn(),name:`@lexical/playground`,namespace:`Playground`,nodes:Yz,theme:s.i}),[H]),oe=T!==void 0&&D!==void 0?(0,v.createPortal)(T,D):T;return(0,h.useEffect)(()=>(x(P?`dark`:`light`),()=>{S()}),[P]),(0,h.useEffect)(()=>{let{body:e}=document,t=i.h(L);if(t===null){delete e.dataset.playgroundPageSize,e.style.removeProperty(`--playground-paper-width`),e.style.removeProperty(`--playground-paper-height`);return}return e.dataset.playgroundPageSize=`paper`,e.style.setProperty(`--playground-paper-width`,`${t.widthIn}in`),e.style.setProperty(`--playground-paper-height`,`${t.heightIn}in`),()=>{delete e.dataset.playgroundPageSize,e.style.removeProperty(`--playground-paper-width`),e.style.removeProperty(`--playground-paper-height`)}},[L]),R.status===`loading`?(0,_.jsx)(`div`,{className:`d-flex h-100 w-100 align-items-center justify-content-center text-body-secondary`,children:`Opening password-protected shared link...`}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(nB,{currentColorScheme:P?`dark`:`light`,settingsController:O}),(0,_.jsx)(rB,{footerActionButtonController:m,setFooterActionButtons:ee}),(0,_.jsx)(iB,{floatingActionButtonController:p,setFloatingActionButtons:V}),(0,_.jsx)(o.p,{clearLibrariesFileList:l,detectTextLanguage:e,extraFontFamilies:c,loadLibrariesFileList:d,libraryItems:u,saveLibrariesFile:f,children:(0,_.jsx)(s.o,{extraFontFamilies:k,children:(0,_.jsx)(a.vt,{revealFile:w,children:(0,_.jsx)(a.gt,{shortToVerseData:j,verseFullTextToListShorts:M,changeBibleKey:N,children:(0,_.jsxs)(E,{extension:ae,contentEditable:null,children:[n===void 0?null:(0,_.jsx)(aB,{editorController:n,setForceReadOnly:re}),(0,_.jsx)(r.i,{children:(0,_.jsx)(CP,{children:(0,_.jsxs)(A,{children:[(0,_.jsx)(Kz,{detectTextLanguage:e,excalidrawClearLibrariesFileList:l,excalidrawLibraryItems:u,excalidrawLoadLibrariesFileList:d,excalidrawSaveLibrariesFile:f,extraFontFamilies:c,floatingActionButtons:te,forceReadOnly:ne,footerActionButtons:B,isMinimize:g,isOnApp:y,print:b,resolveFilePath:C}),oe,null,null,null,I?(0,_.jsx)($z,{}):null]})})})]})})})})})]})}function nB({currentColorScheme:e,settingsController:t}){let{setOption:n}=i.r();return(0,h.useEffect)(()=>{if(t!==void 0)return t.connectSettingsController({setColorScheme:e=>{n(`isDarkMode`,e===`dark`)}},e)},[e,n,t]),(0,h.useEffect)(()=>{t?.syncColorSchemeFromSettings(e)},[e,t]),null}function rB({footerActionButtonController:e,setFooterActionButtons:t}){return(0,h.useEffect)(()=>{if(e===void 0){t(Qn);return}return e.connectFooterActionButtonController({setFooterActionButtons:t})},[e,t]),null}function iB({floatingActionButtonController:e,setFloatingActionButtons:t}){return(0,h.useEffect)(()=>{if(e===void 0){t(Zn);return}return e.connectFloatingActionButtonController({setFloatingActionButtons:t})},[e,t]),null}function aB({editorController:e,setForceReadOnly:n}){let[r]=t.oi(),i=(0,h.useRef)(!1);return(0,h.useEffect)(()=>{let a=r.registerEditableListener(e=>{i.current&&e&&queueMicrotask(()=>{i.current&&r.isEditable()&&r.setEditable(!1)})}),o=e.connectEditorController({addText:e=>{i.current||!r.isEditable()||(r.update(()=>{t.tt()===null&&t.Dr().selectEnd()}),r.dispatchCommand(t.Wn,ZF(e)))},getContent:()=>JSON.stringify(r.getEditorState().toJSON())??``,getIsFocusing:()=>{let e=r.getRootElement();if(e===null)return!1;let t=e.ownerDocument.getSelection(),n=t?.anchorNode??null,i=t?.focusNode??null;return e.ownerDocument.hasFocus()&&e.ownerDocument.activeElement===e&&t!==null&&t.isCollapsed&&n!==null&&i!==null&&e.contains(n)&&e.contains(i)},getIsReadOnly:()=>i.current||!r.isEditable(),searchText:e=>{r.dispatchCommand(OF,e)},setContent:e=>{if(e.length===0){r.update(()=>{t.Dr().clear()});return}r.setEditorState(r.parseEditorState(e))},setReadOnly:e=>{i.current=e,n(e),r.setEditable(!e)}});return()=>{o(),a()}},[r,e,n]),null}function oB({detectTextLanguage:e,namesLookupManager:t,locationsLookupManager:n,editorController:r,editorExtraFontFamilies:o=[],excalidrawClearLibrariesFileList:s,excalidrawLibraryItems:c=[],excalidrawLoadLibrariesFileList:l,excalidrawSaveLibrariesFile:u,floatingActionButtonController:d,footerActionButtonController:f,print:p,resolveFilePath:m,revealFile:h,settings:g,settingsContainerElement:v,settingsController:y,stickyNoteExtraFontFamilies:b=[],storageManager:x,isMinimize:S,isOnApp:C,shortToVerseData:w,verseFullTextToListShorts:T,changeBibleKey:E}){return(0,_.jsx)(a.rt,{locationsLookupManager:n,namesLookupManager:t,children:(0,_.jsx)(sB,{storageManager:x,children:(0,_.jsx)(i.n,{children:(0,_.jsx)(Xn,{children:(0,_.jsx)(tB,{detectTextLanguage:e,editorController:r,editorExtraFontFamilies:o,excalidrawClearLibrariesFileList:s,excalidrawLibraryItems:c,excalidrawLoadLibrariesFileList:l,excalidrawSaveLibrariesFile:u,floatingActionButtonController:d,footerActionButtonController:f,isMinimize:S,print:p,resolveFilePath:m,revealFile:h,settings:g,settingsContainerElement:v,settingsController:y,stickyNoteExtraFontFamilies:b,isOnApp:C,shortToVerseData:w,verseFullTextToListShorts:T,changeBibleKey:E})})})})})}function sB({children:e,storageManager:t}){let[n,r]=(0,h.useState)(()=>(i.l(t),t===void 0));return(0,h.useEffect)(()=>{let e=!0;if(i.l(t),t===void 0){r(!0);return}return r(!1),i.f(i.c).then(()=>{e&&r(!0)}),()=>{e=!1}},[t]),n?(0,_.jsx)(_.Fragment,{children:e}):(0,_.jsx)(`div`,{className:`d-flex h-100 w-100 align-items-center justify-content-center text-body-secondary`,children:`Loading saved Bible note...`})}var cB=17775936e5,lB=(e,t,n,r,i,a,o={})=>({angle:0,backgroundColor:`transparent`,boundElements:null,fillStyle:`solid`,frameId:null,groupIds:[],height:i,id:e,index:null,isDeleted:!1,link:null,locked:!1,opacity:100,roughness:1,roundness:{type:3},seed:a,strokeColor:`#1e1e1e`,strokeStyle:`solid`,strokeWidth:2,updated:cB,version:1,versionNonce:a+1e5,width:r,x:t,y:n,...o}),uB=(e,t,n,r,i,a,o={})=>({...lB(e,t,n,r,i,a,o),type:`rectangle`}),Q=(e,t,n,r,i,a,o={})=>({...lB(e,t,n,r,i,a,o),type:`ellipse`}),dB=(e,t,n,r,i,a,o={})=>({...lB(e,t,n,r,i,a,o),type:`diamond`}),$=(e,t,n,r,i,a={})=>{let o=r.map(([e])=>e),s=r.map(([,e])=>e);return{...lB(e,t,n,Math.max(...o)-Math.min(...o),Math.max(...s)-Math.min(...s),i,a),endArrowhead:null,endBinding:null,lastCommittedPoint:null,points:r,startArrowhead:null,startBinding:null,type:`line`}},fB=(e,t,n)=>({created:cB,elements:n,id:e,name:t,status:`published`}),pB=[fB(`christianity-cross`,`Cross`,[uB(`christianity-cross-vertical`,72,0,28,180,101,{backgroundColor:`#c7d2fe`,strokeColor:`#4338ca`}),uB(`christianity-cross-horizontal`,20,56,132,28,102,{backgroundColor:`#c7d2fe`,strokeColor:`#4338ca`})]),fB(`christianity-church`,`Church`,[uB(`christianity-church-body`,20,86,164,96,201,{backgroundColor:`#e0f2fe`,strokeColor:`#0f766e`}),dB(`christianity-church-roof`,35,34,134,100,202,{backgroundColor:`#bae6fd`,strokeColor:`#0369a1`}),uB(`christianity-church-steeple`,86,12,32,86,203,{backgroundColor:`#f8fafc`,strokeColor:`#0369a1`}),$(`christianity-church-cross-v`,102,0,[[0,0],[0,38]],204,{strokeColor:`#0369a1`,strokeWidth:3}),$(`christianity-church-cross-h`,91,13,[[0,0],[22,0]],205,{strokeColor:`#0369a1`,strokeWidth:3}),uB(`christianity-church-door`,86,124,34,58,206,{backgroundColor:`#fef3c7`,strokeColor:`#92400e`})]),fB(`christianity-ichthys`,`Ichthys Fish`,[Q(`christianity-ichthys-body`,0,34,186,86,301,{backgroundColor:`transparent`,strokeColor:`#0f766e`,strokeWidth:4}),$(`christianity-ichthys-tail-a`,134,42,[[0,0],[64,58]],302,{strokeColor:`#0f766e`,strokeWidth:4}),$(`christianity-ichthys-tail-b`,134,100,[[0,0],[64,-58]],303,{strokeColor:`#0f766e`,strokeWidth:4}),Q(`christianity-ichthys-eye`,36,70,10,10,304,{backgroundColor:`#0f766e`,strokeColor:`#0f766e`})]),fB(`christianity-open-bible`,`Open Bible`,[uB(`christianity-bible-left-page`,0,22,98,132,401,{backgroundColor:`#fff7ed`,strokeColor:`#7c2d12`}),uB(`christianity-bible-right-page`,98,22,98,132,402,{backgroundColor:`#fff7ed`,strokeColor:`#7c2d12`}),$(`christianity-bible-spine`,98,18,[[0,0],[0,142]],403,{strokeColor:`#7c2d12`,strokeWidth:3}),$(`christianity-bible-left-line-1`,24,58,[[0,0],[48,0]],404,{strokeColor:`#9a3412`}),$(`christianity-bible-left-line-2`,24,82,[[0,0],[52,0]],405,{strokeColor:`#9a3412`}),$(`christianity-bible-right-line-1`,122,58,[[0,0],[48,0]],406,{strokeColor:`#9a3412`}),$(`christianity-bible-right-line-2`,122,82,[[0,0],[52,0]],407,{strokeColor:`#9a3412`}),$(`christianity-bible-bookmark`,150,22,[[0,0],[0,78]],408,{strokeColor:`#dc2626`,strokeWidth:4})]),fB(`christianity-candle`,`Candle`,[Q(`christianity-candle-flame`,58,0,42,68,501,{backgroundColor:`#fed7aa`,strokeColor:`#ea580c`}),$(`christianity-candle-wick`,79,54,[[0,0],[0,30]],502,{strokeColor:`#44403c`,strokeWidth:3}),uB(`christianity-candle-body`,48,74,62,112,503,{backgroundColor:`#f8fafc`,strokeColor:`#475569`}),Q(`christianity-candle-base`,30,164,98,30,504,{backgroundColor:`#e2e8f0`,strokeColor:`#475569`})]),fB(`christianity-chalice`,`Chalice`,[Q(`christianity-chalice-cup`,18,0,132,86,601,{backgroundColor:`#fde68a`,strokeColor:`#a16207`}),uB(`christianity-chalice-stem`,76,76,20,72,602,{backgroundColor:`#facc15`,strokeColor:`#a16207`}),Q(`christianity-chalice-base`,42,132,88,34,603,{backgroundColor:`#fde68a`,strokeColor:`#a16207`}),$(`christianity-chalice-rim`,28,31,[[0,0],[112,0]],604,{strokeColor:`#a16207`,strokeWidth:3})]),fB(`christianity-empty-tomb`,`Empty Tomb`,[Q(`christianity-tomb-hill`,0,38,176,116,701,{backgroundColor:`#e5e7eb`,strokeColor:`#374151`}),Q(`christianity-tomb-door`,52,74,72,80,702,{backgroundColor:`#111827`,strokeColor:`#111827`}),Q(`christianity-tomb-stone`,118,94,58,58,703,{backgroundColor:`#d1d5db`,strokeColor:`#374151`}),$(`christianity-tomb-ground`,0,152,[[0,0],[190,0]],704,{strokeColor:`#374151`,strokeWidth:3})]),fB(`christianity-radiant-cross`,`Radiant Cross`,[uB(`christianity-radiant-cross-vertical`,78,22,28,142,801,{backgroundColor:`#fde68a`,strokeColor:`#a16207`}),uB(`christianity-radiant-cross-horizontal`,38,70,108,26,802,{backgroundColor:`#fde68a`,strokeColor:`#a16207`}),$(`christianity-radiant-cross-ray-top`,92,0,[[0,0],[0,16]],803,{strokeColor:`#a16207`,strokeWidth:4}),$(`christianity-radiant-cross-ray-left-top`,42,18,[[0,0],[22,22]],804,{strokeColor:`#a16207`,strokeWidth:4}),$(`christianity-radiant-cross-ray-right-top`,142,18,[[0,0],[-22,22]],805,{strokeColor:`#a16207`,strokeWidth:4}),$(`christianity-radiant-cross-ray-left`,8,82,[[0,0],[22,0]],806,{strokeColor:`#a16207`,strokeWidth:4}),$(`christianity-radiant-cross-ray-right`,154,82,[[0,0],[22,0]],807,{strokeColor:`#a16207`,strokeWidth:4}),$(`christianity-radiant-cross-ray-left-bottom`,44,150,[[0,0],[-20,22]],808,{strokeColor:`#a16207`,strokeWidth:4}),$(`christianity-radiant-cross-ray-right-bottom`,140,150,[[0,0],[20,22]],809,{strokeColor:`#a16207`,strokeWidth:4})]),fB(`christianity-crown-of-thorns`,`Crown of Thorns`,[Q(`christianity-crown-ring`,18,22,150,114,901,{backgroundColor:`transparent`,strokeColor:`#78350f`,strokeWidth:4}),$(`christianity-crown-vine-top`,26,76,[[0,0],[24,-30],[54,-42],[88,-34],[118,-8],[142,-16]],902,{strokeColor:`#92400e`,strokeWidth:3}),$(`christianity-crown-vine-bottom`,30,90,[[0,0],[28,26],[72,30],[112,14],[136,-8]],903,{strokeColor:`#92400e`,strokeWidth:3}),$(`christianity-crown-thorn-top`,80,22,[[0,0],[10,-22],[22,0]],904,{strokeColor:`#78350f`,strokeWidth:3}),$(`christianity-crown-thorn-left`,24,62,[[0,0],[-20,-10],[2,-22]],905,{strokeColor:`#78350f`,strokeWidth:3}),$(`christianity-crown-thorn-right`,152,64,[[0,0],[24,-12],[8,-28]],906,{strokeColor:`#78350f`,strokeWidth:3}),$(`christianity-crown-thorn-bottom-left`,54,120,[[0,0],[-12,24],[14,10]],907,{strokeColor:`#78350f`,strokeWidth:3}),$(`christianity-crown-thorn-bottom-right`,122,118,[[0,0],[20,22],[26,-2]],908,{strokeColor:`#78350f`,strokeWidth:3})]),fB(`christianity-dove`,`Dove`,[Q(`christianity-dove-wing`,26,22,96,74,1001,{backgroundColor:`#e0f2fe`,strokeColor:`#0369a1`,strokeWidth:3}),Q(`christianity-dove-body`,64,66,82,52,1002,{backgroundColor:`#f8fafc`,strokeColor:`#0369a1`,strokeWidth:3}),Q(`christianity-dove-head`,126,44,38,38,1003,{backgroundColor:`#f8fafc`,strokeColor:`#0369a1`,strokeWidth:3}),$(`christianity-dove-beak`,160,60,[[0,0],[22,8],[0,16]],1004,{strokeColor:`#b45309`,strokeWidth:3}),Q(`christianity-dove-eye`,146,58,6,6,1005,{backgroundColor:`#0369a1`,strokeColor:`#0369a1`}),$(`christianity-dove-tail-top`,64,90,[[0,0],[-36,-22]],1006,{strokeColor:`#0369a1`,strokeWidth:3}),$(`christianity-dove-tail-bottom`,66,104,[[0,0],[-42,18]],1007,{strokeColor:`#0369a1`,strokeWidth:3}),$(`christianity-dove-wing-feathers`,48,58,[[0,0],[26,18],[52,6],[74,24]],1008,{strokeColor:`#0369a1`,strokeWidth:3}),$(`christianity-dove-olive-branch`,172,56,[[0,0],[32,-14]],1009,{strokeColor:`#15803d`,strokeWidth:3}),$(`christianity-dove-olive-leaf-a`,184,50,[[0,0],[-10,-10]],1010,{strokeColor:`#15803d`,strokeWidth:3}),$(`christianity-dove-olive-leaf-b`,192,46,[[0,0],[10,-10]],1011,{strokeColor:`#15803d`,strokeWidth:3})]),fB(`christianity-heart-cross`,`Heart Cross`,[Q(`christianity-heart-left-lobe`,26,18,72,72,1101,{backgroundColor:`#fecdd3`,strokeColor:`#be123c`,strokeWidth:3}),Q(`christianity-heart-right-lobe`,82,18,72,72,1102,{backgroundColor:`#fecdd3`,strokeColor:`#be123c`,strokeWidth:3}),dB(`christianity-heart-point`,42,56,96,96,1103,{backgroundColor:`#fecdd3`,strokeColor:`#be123c`,strokeWidth:3}),uB(`christianity-heart-cross-vertical`,82,52,18,64,1104,{backgroundColor:`#f8fafc`,strokeColor:`#be123c`}),uB(`christianity-heart-cross-horizontal`,62,74,58,18,1105,{backgroundColor:`#f8fafc`,strokeColor:`#be123c`})]),fB(`christianity-jesus-face`,`Jesus Face`,[Q(`christianity-jesus-halo`,18,0,144,144,1201,{backgroundColor:`transparent`,strokeColor:`#facc15`,strokeWidth:4}),Q(`christianity-jesus-face-shape`,42,24,96,120,1202,{backgroundColor:`#ffedd5`,strokeColor:`#7c2d12`,strokeWidth:3}),$(`christianity-jesus-hair-left`,56,34,[[0,0],[-20,36],[-12,84],[8,110]],1203,{strokeColor:`#7c2d12`,strokeWidth:4}),$(`christianity-jesus-hair-right`,124,34,[[0,0],[20,36],[12,84],[-8,110]],1204,{strokeColor:`#7c2d12`,strokeWidth:4}),$(`christianity-jesus-eye-left`,66,76,[[0,0],[18,0]],1205,{strokeColor:`#7c2d12`,strokeWidth:3}),$(`christianity-jesus-eye-right`,98,76,[[0,0],[18,0]],1206,{strokeColor:`#7c2d12`,strokeWidth:3}),$(`christianity-jesus-nose`,90,80,[[0,0],[-8,28],[8,28]],1207,{strokeColor:`#92400e`,strokeWidth:3}),Q(`christianity-jesus-beard`,62,96,56,52,1208,{backgroundColor:`#fef3c7`,strokeColor:`#7c2d12`,strokeWidth:3}),$(`christianity-jesus-mouth`,76,114,[[0,0],[28,0]],1209,{strokeColor:`#7c2d12`,strokeWidth:3})]),fB(`christianity-communion`,`Communion Cup and Bread`,[Q(`christianity-communion-cup`,18,0,108,78,1301,{backgroundColor:`#fde68a`,strokeColor:`#92400e`,strokeWidth:3}),$(`christianity-communion-wine`,28,30,[[0,0],[88,0]],1302,{strokeColor:`#7f1d1d`,strokeWidth:4}),uB(`christianity-communion-stem`,62,72,20,58,1303,{backgroundColor:`#facc15`,strokeColor:`#92400e`}),Q(`christianity-communion-base`,32,118,80,30,1304,{backgroundColor:`#fde68a`,strokeColor:`#92400e`}),Q(`christianity-communion-bread`,112,96,72,52,1305,{backgroundColor:`#fed7aa`,strokeColor:`#9a3412`,strokeWidth:3}),$(`christianity-communion-bread-score-a`,126,112,[[0,0],[38,22]],1306,{strokeColor:`#9a3412`}),$(`christianity-communion-bread-score-b`,164,112,[[0,0],[-34,24]],1307,{strokeColor:`#9a3412`})]),fB(`christianity-angel`,`Angel`,[Q(`christianity-angel-halo`,68,0,50,16,1401,{backgroundColor:`transparent`,strokeColor:`#ca8a04`,strokeWidth:3}),Q(`christianity-angel-head`,70,24,46,46,1402,{backgroundColor:`#ffedd5`,strokeColor:`#92400e`,strokeWidth:3}),Q(`christianity-angel-left-wing`,8,58,76,72,1403,{backgroundColor:`#e0f2fe`,strokeColor:`#0369a1`,strokeWidth:3}),Q(`christianity-angel-right-wing`,102,58,76,72,1404,{backgroundColor:`#e0f2fe`,strokeColor:`#0369a1`,strokeWidth:3}),dB(`christianity-angel-robe`,60,68,66,108,1405,{backgroundColor:`#f8fafc`,strokeColor:`#475569`,strokeWidth:3}),$(`christianity-angel-left-arm`,70,92,[[0,0],[-34,30]],1406,{strokeColor:`#475569`,strokeWidth:3}),$(`christianity-angel-right-arm`,116,92,[[0,0],[34,30]],1407,{strokeColor:`#475569`,strokeWidth:3}),$(`christianity-angel-wing-feathers-left`,28,88,[[0,0],[28,18],[42,44]],1408,{strokeColor:`#0369a1`,strokeWidth:3}),$(`christianity-angel-wing-feathers-right`,158,88,[[0,0],[-28,18],[-42,44]],1409,{strokeColor:`#0369a1`,strokeWidth:3})]),fB(`christianity-rainbow`,`Rainbow`,[$(`christianity-rainbow-red`,18,132,[[0,0],[14,-42],[42,-78],[82,-98],[124,-78],[152,-42],[166,0]],1501,{strokeColor:`#dc2626`,strokeWidth:6}),$(`christianity-rainbow-gold`,30,132,[[0,0],[12,-34],[36,-62],[70,-78],[104,-62],[128,-34],[140,0]],1502,{strokeColor:`#facc15`,strokeWidth:6}),$(`christianity-rainbow-green`,42,132,[[0,0],[10,-26],[30,-46],[58,-58],[86,-46],[106,-26],[116,0]],1503,{strokeColor:`#16a34a`,strokeWidth:6}),$(`christianity-rainbow-blue`,54,132,[[0,0],[8,-18],[24,-30],[46,-38],[68,-30],[84,-18],[92,0]],1504,{strokeColor:`#2563eb`,strokeWidth:6}),Q(`christianity-rainbow-left-cloud-a`,0,116,44,28,1505,{backgroundColor:`#f8fafc`,strokeColor:`#64748b`}),Q(`christianity-rainbow-left-cloud-b`,28,104,42,40,1506,{backgroundColor:`#f8fafc`,strokeColor:`#64748b`}),Q(`christianity-rainbow-right-cloud-a`,134,116,44,28,1507,{backgroundColor:`#f8fafc`,strokeColor:`#64748b`}),Q(`christianity-rainbow-right-cloud-b`,166,104,42,40,1508,{backgroundColor:`#f8fafc`,strokeColor:`#64748b`})]),fB(`christianity-lamb`,`Lamb`,[Q(`christianity-lamb-body`,34,56,116,70,1601,{backgroundColor:`#f8fafc`,strokeColor:`#475569`,strokeWidth:3}),Q(`christianity-lamb-fleece-a`,46,38,34,34,1602,{backgroundColor:`#ffffff`,strokeColor:`#475569`}),Q(`christianity-lamb-fleece-b`,74,34,38,38,1603,{backgroundColor:`#ffffff`,strokeColor:`#475569`}),Q(`christianity-lamb-fleece-c`,106,42,34,34,1604,{backgroundColor:`#ffffff`,strokeColor:`#475569`}),Q(`christianity-lamb-head`,132,64,50,44,1605,{backgroundColor:`#fff7ed`,strokeColor:`#92400e`,strokeWidth:3}),Q(`christianity-lamb-ear`,162,54,28,20,1606,{backgroundColor:`#fed7aa`,strokeColor:`#92400e`}),Q(`christianity-lamb-eye`,162,78,6,6,1607,{backgroundColor:`#111827`,strokeColor:`#111827`}),$(`christianity-lamb-leg-front`,126,120,[[0,0],[0,36]],1608,{strokeColor:`#475569`,strokeWidth:4}),$(`christianity-lamb-leg-back`,58,120,[[0,0],[0,36]],1609,{strokeColor:`#475569`,strokeWidth:4}),$(`christianity-lamb-tail`,34,82,[[0,0],[-22,-12]],1610,{strokeColor:`#475569`,strokeWidth:4})])];(Object.assign(i.a,i.o({onParseError:e=>{console.warn(`Unable to parse query parameter "${e}"`)}})),i.a.disableBeforeInput&&delete window.InputEvent.prototype.getTargetRanges,i.a).disableBeforeInput;function mB({loadData:e,saveData:t,storageManager:n}){return{async deleteSetting(e){if(e===`lexical-playground-editor-state`){await t(``);return}await n.deleteSetting(e)},async getSetting(t){if(t===`lexical-playground-editor-state`){let t=await e();return typeof t==`string`&&t.length>0?t:null}return n.getSetting(t)},async setSetting(e,r){if(e===`lexical-playground-editor-state`){let e=hB(r);e!==null&&await t(e);return}await n.setSetting(e,r)}}}function hB(e){if(e==null)return null;if(typeof e==`string`)return e;try{return JSON.stringify(e)??null}catch{return null}}function gB({props:e,containerElement:t,editorControllerOwner:n,floatingActionButtonControllerOwner:r,footerActionButtonControllerOwner:i,settingsControllerOwner:a,storageManager:o},{settings:s,settingsContainerElement:c}={}){let l=(0,g.createRoot)(t),u=e.resolveFilePath,d=e.revealFile,f=e.print,p=e.isOnApp??!1,m=e.isMinimize??!1;return l.render((0,_.jsx)(h.StrictMode,{children:(0,_.jsx)(oB,{detectTextLanguage:e.getLangCode,namesLookupManager:e.namesLookupManager,locationsLookupManager:e.locationsLookupManager,editorController:n,editorExtraFontFamilies:e.editorExtraFontFamilies,excalidrawLibraryItems:[...pB,...e.excalidrawLibraryItems??[]],excalidrawClearLibrariesFileList:e.excalidrawClearLibrariesFileList,excalidrawLoadLibrariesFileList:e.excalidrawLoadLibrariesFileList,excalidrawSaveLibrariesFile:e.excalidrawSaveLibrariesFile,floatingActionButtonController:r,footerActionButtonController:i,isMinimize:m,isOnApp:p,print:f,resolveFilePath:u,revealFile:d,settings:s,settingsContainerElement:c,settingsController:a,stickyNoteExtraFontFamilies:e.stickyNoteExtraFontFamilies,storageManager:o,shortToVerseData:e.shortToVerseData,verseFullTextToListShorts:e.verseFullTextToListShorts,changeBibleKey:e.changeBibleKey})})),l}var{version:_B}=y,vB=class{static VERSION=_B;props;colorScheme=`light`;editorController=null;pendingEditorActions=[];pendingColorScheme=null;readOnlyOverride=null;footerActionButtonController=null;footerActionButtons=new b;floatingActionButtonController=null;floatingActionButtons=new b;root=null;settingsController=null;editorControllerOwner={connectEditorController:e=>this.connectEditorController(e)};footerActionButtonControllerOwner={connectFooterActionButtonController:e=>this.connectFooterActionButtonController(e)};floatingActionButtonControllerOwner={connectFloatingActionButtonController:e=>this.connectFloatingActionButtonController(e)};storageManager;settingsControllerOwner={connectSettingsController:(e,t)=>this.connectSettingsController(e,t),syncColorSchemeFromSettings:e=>this.syncColorSchemeFromSettings(e)};constructor(e){this.props=e,this.storageManager=mB(e)}get content(){return this.editorController?.getContent()??``}set content(e){this.runOrQueueEditorAction(t=>{t.setContent(e)})}get isReadOnly(){return this.readOnlyOverride??this.editorController?.getIsReadOnly()??!1}set isReadOnly(e){this.readOnlyOverride=e,this.editorController?.setReadOnly(e)}getIsFocusing(){return this.editorController?.getIsFocusing()??!1}setColorScheme(e){this.pendingColorScheme=e,this.colorScheme=e,x(e),this.settingsController?.setColorScheme(e)}addText(e){e.length===0||this.isReadOnly||this.runOrQueueEditorAction(t=>{this.isReadOnly||t.addText(e)})}appendFooterActionButton(e){this.footerActionButtons.set(e,`after`),this.syncFooterActionButtons()}prependFooterActionButton(e){this.footerActionButtons.set(e,`before`),this.syncFooterActionButtons()}getFooterActionButton(e){return this.footerActionButtons.get(e)}removeFooterActionButton(e){let t=this.footerActionButtons.remove(e);return t&&this.syncFooterActionButtons(),t}appendFloatingActionButton(e){this.floatingActionButtons.set(e,`after`),this.syncFloatingActionButtons()}prependFloatingActionButton(e){this.floatingActionButtons.set(e,`before`),this.syncFloatingActionButtons()}getFloatingActionButton(e){return this.floatingActionButtons.get(e)}removeFloatingActionButton(e){let t=this.floatingActionButtons.remove(e);return t&&this.syncFloatingActionButtons(),t}syncFooterActionButtons(){this.footerActionButtonController?.setFooterActionButtons(this.footerActionButtons.snapshot())}syncFloatingActionButtons(){this.floatingActionButtonController?.setFloatingActionButtons(this.floatingActionButtons.snapshot())}runOrQueueEditorAction(e){let t=this.editorController;if(t===null){this.pendingEditorActions.push(e);return}e(t)}connectEditorController(e){this.editorController=e;for(let t of this.pendingEditorActions.splice(0))t(e);return this.readOnlyOverride!==null&&e.setReadOnly(this.readOnlyOverride),()=>{this.editorController===e&&(this.editorController=null)}}connectSettingsController(e,t){return this.settingsController=e,this.pendingColorScheme!==null&&this.pendingColorScheme!==t?e.setColorScheme(this.pendingColorScheme):(this.pendingColorScheme=null,this.colorScheme=t),()=>{this.settingsController===e&&(this.settingsController=null)}}connectFooterActionButtonController(e){return this.footerActionButtonController=e,e.setFooterActionButtons(this.footerActionButtons.snapshot()),()=>{this.footerActionButtonController===e&&(this.footerActionButtonController=null)}}connectFloatingActionButtonController(e){return this.floatingActionButtonController=e,e.setFloatingActionButtons(this.floatingActionButtons.snapshot()),()=>{this.floatingActionButtonController===e&&(this.floatingActionButtonController=null)}}syncColorSchemeFromSettings(e){this.pendingColorScheme!==null&&this.pendingColorScheme!==e||(this.pendingColorScheme=null,this.colorScheme=e,x(e))}searchText(e){this.runOrQueueEditorAction(t=>{t.searchText(e)})}render(e,t={}){this.unmount(),this.root=gB({props:this.props,containerElement:e,editorControllerOwner:this.editorControllerOwner,floatingActionButtonControllerOwner:this.floatingActionButtonControllerOwner,footerActionButtonControllerOwner:this.footerActionButtonControllerOwner,settingsControllerOwner:this.settingsControllerOwner,storageManager:this.storageManager},t)}unmount(){this.root?.unmount(),this.root=null,this.editorController=null,this.floatingActionButtonController=null,this.footerActionButtonController=null,this.settingsController=null}static getAllShortVersesFromText(e){return ic(e)}};function yB({checked:e,onClick:t,text:n,id:r}){let i=(0,h.useId)();return(0,_.jsxs)(`div`,{className:`switch d-block my-1 px-2 py-1 rounded-3`,id:r,children:[(0,_.jsx)(`label`,{className:`mb-0 me-1`,htmlFor:i,children:n}),(0,_.jsx)(`button`,{role:`switch`,"aria-checked":e,id:i,onClick:t,children:(0,_.jsx)(`span`,{})})]})}function bB({onColorSchemeChange:e}={}){let n=window.location,[r]=t.oi(),{resetOptions:a,setOption:o,settings:s}=i.r(),{measureTypingPerf:c,isDarkMode:l,isRichText:u,hasNestedTables:d,isMaxLength:f,hasLinkAttributes:p,isCharLimit:m,isCharLimitUtf8:g,isAutocomplete:v,showTreeView:y,showNestedEditorTreeView:b,showTableOfContents:x,shouldUseLexicalContextMenu:S,shouldPreserveNewLinesInMarkdown:C,shouldAllowHighlightingWithBrackets:w,showInvisibleCharacters:T,selectionAlwaysOnDisplay:E,isCodeHighlighted:D,isCodeShiki:O}=s;(0,h.useEffect)(()=>{i.a.disableBeforeInput&&t.xr&&console.error(`Legacy events are enabled (disableBeforeInput) but CAN_USE_BEFORE_INPUT is true`)},[]);let[k,A]=(0,h.useState)(!1),[j,M]=(0,h.useMemo)(()=>{let e=window.parent,t=n.search;return[e&&e.location.pathname===`/split/`,t]},[n]),N=i.s(s);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{id:`options-button`,"data-test-id":`options-button`,className:`editor-dev-button ${k?`active`:``}`,onClick:()=>A(!k),children:(0,_.jsx)(`i`,{className:`bi bi-gear`})}),k?(0,_.jsxs)(`div`,{className:`switches p-1`,children:[!1,(0,_.jsx)(yB,{onClick:()=>o(`measureTypingPerf`,!c),checked:c,text:`Measure Perf`}),(0,_.jsx)(yB,{onClick:()=>o(`showTreeView`,!y),checked:y,text:`Debug View`}),(0,_.jsx)(yB,{onClick:()=>{let t=l?`light`:`dark`;if(e){e(t);return}o(`isDarkMode`,t===`dark`)},checked:l,text:`Dark Mode`}),(0,_.jsx)(yB,{onClick:()=>{o(`showInvisibleCharacters`,!T)},checked:T,text:`Show invisible characters`}),(0,_.jsx)(yB,{onClick:()=>o(`showNestedEditorTreeView`,!b),checked:b,text:`Nested Editors Debug View`}),(0,_.jsx)(yB,{onClick:()=>{o(`isRichText`,!u)},checked:u,text:`Rich Text`}),(0,_.jsx)(yB,{onClick:()=>{o(`hasNestedTables`,!d)},checked:d,text:`Nested Tables`}),(0,_.jsx)(yB,{onClick:()=>o(`isCharLimit`,!m),checked:m,text:`Char Limit`}),(0,_.jsx)(yB,{onClick:()=>o(`isCharLimitUtf8`,!g),checked:g,text:`Char Limit (UTF-8)`}),(0,_.jsx)(yB,{onClick:()=>o(`hasLinkAttributes`,!p),checked:p,text:`Link Attributes`}),(0,_.jsx)(yB,{onClick:()=>o(`isMaxLength`,!f),checked:f,text:`Max Length`}),(0,_.jsx)(yB,{onClick:()=>o(`isAutocomplete`,!v),checked:v,text:`Autocomplete`}),(0,_.jsx)(yB,{onClick:()=>{o(`showTableOfContents`,!x)},checked:x,text:`Table Of Contents`}),(0,_.jsx)(yB,{onClick:()=>{o(`shouldUseLexicalContextMenu`,!S)},checked:S,text:`Use Lexical Context Menu`}),(0,_.jsx)(yB,{onClick:()=>{o(`shouldPreserveNewLinesInMarkdown`,!C)},checked:C,text:`Preserve newlines in Markdown`}),(0,_.jsx)(yB,{onClick:()=>{o(`shouldAllowHighlightingWithBrackets`,!w)},checked:w,text:`Use Brackets for Highlighting`}),(0,_.jsx)(yB,{onClick:()=>{o(`selectionAlwaysOnDisplay`,!E)},checked:E,text:`Retain selection`}),(0,_.jsx)(yB,{onClick:()=>{o(`isCodeHighlighted`,!D)},checked:D,text:`Enable Code Highlighting`}),(0,_.jsx)(yB,{onClick:()=>{o(`isCodeShiki`,!O)},checked:O,text:`Use Shiki for Code Highlighting`}),(0,_.jsx)(`button`,{type:`button`,className:`settings-reset`,disabled:!N,onClick:()=>{qi(),Fr(),a(),WR(r,{emptyEditor:i.i.emptyEditor})},children:`Reset to Defaults`})]}):null]})}function xB({setColorScheme:e}){return(0,_.jsx)(bB,{onColorSchemeChange:t=>{e(t)}})}var SB=vB;exports.BIBLE_NOTE_STORAGE_MANAGER_KEYS=i.c,exports.BibleNote=vB,exports.BibleNoteSettings=xB,exports.EDITOR_STATE_LOCAL_STORAGE_KEY=lr,exports.LocationsLookupManager=a.st,exports.NamesLookupManager=a.ct,exports.applyBibleNoteColorScheme=x,exports.clearBibleNoteColorScheme=S,exports.createBrowserStorageManager=i.u,exports.default=SB,exports.getLookupRecordValues=a.lt,exports.getMentionKjvName=a.ut,exports.normalizeMentionNameType=a.dt,exports.parseMentionLocationMatch=a.ft,exports.parseMentionLocationMatches=a.pt,exports.parseMentionNameMatch=a.mt,exports.parseMentionNameMatches=a.ht;