diff --git a/static/web/404.html b/static/web/404.html index daa87686a..1bdbe82e2 100644 --- a/static/web/404.html +++ b/static/web/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/404/index.html b/static/web/404/index.html index daa87686a..1bdbe82e2 100644 --- a/static/web/404/index.html +++ b/static/web/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/_next/static/chunks/d2094a0f-43945b499b1f7318.js b/static/web/_next/static/chunks/d2094a0f-43945b499b1f7318.js deleted file mode 100644 index 667d91734..000000000 --- a/static/web/_next/static/chunks/d2094a0f-43945b499b1f7318.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8700],{96391:function(e,t,r){r.d(t,{BU:function(){return tD},CX:function(){return ts},F3:function(){return ew},UE:function(){return tm},mH:function(){return tM},vt:function(){return eI}});var a=r(6907),n=r.n(a),o=r(23279),i=r.n(o),s=r(23493),l=r.n(s),d=r(67294),c=r(12615),u=r(77493),f=r(18156),v=r(73935);function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var g=0;class m{constructor(){this.id="".concat(g++)}}var w=new WeakMap,b=new WeakMap,M=new WeakMap,x=new WeakMap,k=new WeakMap,y=new WeakMap,L=new WeakMap,E=new WeakMap,D=new WeakMap,C=new WeakMap,O=new WeakMap,F=new WeakMap,B=new WeakMap,S=new WeakMap,P=new WeakMap,R=new WeakMap,N=new WeakMap,T=new WeakMap,W=new WeakMap,j=new WeakMap,A=new WeakMap,q=Symbol("placeholder"),I=Symbol("mark-placeholder"),Y=globalThis.Text,$=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,U=e=>z(e)&&8===e.nodeType,_=e=>z(e)&&1===e.nodeType,z=e=>{var t=$(e);return!!t&&e instanceof t.Node},V=e=>{var t=e&&e.anchorNode&&$(e.anchorNode);return!!t&&e instanceof t.Selection},H=e=>z(e)&&3===e.nodeType,K=e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length,X=e=>{var[t,r]=e;if(_(t)&&t.childNodes.length){var a=r===t.childNodes.length,n=a?r-1:r;for([t,n]=Q(t,n,a?"backward":"forward"),a=n!!(window.document.activeElement&&window.document.activeElement.shadowRoot),Q=(e,t,r)=>{for(var{childNodes:a}=e,n=a[t],o=t,i=!1,s=!1;(U(n)||_(n)&&0===n.childNodes.length||_(n)&&"false"===n.getAttribute("contenteditable"))&&(!i||!s);){if(o>=a.length){i=!0,o=t-1,r="backward";continue}if(o<0){s=!0,o=t+1,r="forward";continue}n=a[o],t=o,o+="forward"===r?1:-1}return[n,t]},Z=(e,t,r)=>{var[a]=Q(e,t,r);return a},G=e=>{var t="";if(H(e)&&e.nodeValue)return e.nodeValue;if(_(e)){for(var r of Array.from(e.childNodes))t+=G(r);var a=getComputedStyle(e).getPropertyValue("display");("block"===a||"list"===a||"BR"===e.tagName)&&(t+="\n")}return t},ee=/data-slate-fragment="(.+?)"/m,et=e=>{var[,t]=e.getData("text/html").match(ee)||[];return t},er=(e,t,r)=>{var{target:a}=t;if(_(a)&&a.matches('[contentEditable="false"]'))return!1;var{document:n}=ew.getWindow(e);if(n.contains(a))return ew.hasDOMNode(e,a,{editable:!0});var o=r.find(e=>{var{addedNodes:t,removedNodes:r}=e;for(var n of t)if(n===a||n.contains(a))return!0;for(var o of r)if(o===a||o.contains(a))return!0});return!!o&&o!==t&&er(e,o,r)},ea=parseInt(d.version.split(".")[0],10)>=17,en="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,eo="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),ei="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),es="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),el="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),ed="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),ec="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),eu="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),ef="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),ev="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),ep="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),eh="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),eg=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),em=!eu&&!ed&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,ew={isComposing:e=>!!F.get(e),getWindow(e){var t=M.get(e);if(!t)throw Error("Unable to find a host window element for this editor");return t},findKey(e,t){var r=E.get(t);return r||(r=new m,E.set(t,r)),r},findPath(e,t){for(var r=[],a=t;;){var n=b.get(a);if(null==n){if(u.ML.isEditor(a))return r;break}var o=w.get(a);if(null==o)break;r.unshift(o),a=n}throw Error("Unable to find the path for Slate node: ".concat(u.o4.stringify(t)))},findDocumentOrShadowRoot(e){var t=ew.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&null!=r.getSelection?r:t.ownerDocument},isFocused:e=>!!O.get(e),isReadOnly:e=>!!C.get(e),blur(e){var t=ew.toDOMNode(e,e),r=ew.findDocumentOrShadowRoot(e);O.set(e,!1),r.activeElement===t&&t.blur()},focus(e){var t=ew.toDOMNode(e,e),r=ew.findDocumentOrShadowRoot(e);O.set(e,!0),r.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,r=ew.findDocumentOrShadowRoot(e).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&u.YR.deselect(e)},hasDOMNode(e,t){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:n=!1}=a,o=ew.toDOMNode(e,e);try{r=_(t)?t:t.parentElement}catch(i){if(!i.message.includes('Permission denied to access property "nodeType"'))throw i}return!!r&&r.closest("[data-slate-editor]")===o&&(!n||!!r.isContentEditable||"boolean"==typeof r.isContentEditable&&r.closest('[contenteditable="false"]')===o||!!r.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,r){e.setFragmentData(t,r)},toDOMNode(e,t){var r=D.get(e),a=u.ML.isEditor(t)?x.get(e):null==r?void 0:r.get(ew.findKey(e,t));if(!a)throw Error("Cannot resolve a DOM node from Slate node: ".concat(u.o4.stringify(t)));return a},toDOMPoint(e,t){var[r]=u.ML.node(e,t.path),a=ew.toDOMNode(e,r);u.ML.void(e,{at:t})&&(t={path:t.path,offset:0});for(var n=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),o=0,i=0;i{if(ei&&!a&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\uFEFF"!==e.textContext){e.textContent.startsWith("\uFEFF")&&(e.textContent=e.textContent.slice(1));return}e.parentNode.removeChild(e)}),d=b.textContent.length,m=l}}else if(h){for(var M=h.querySelectorAll("[data-slate-leaf]"),x=0;x{d-=e.textContent.length})):d=1}m&&d===m.textContent.length&&ei&&"z"===m.getAttribute("data-slate-zero-width")&&null!==(c=m.textContent)&&void 0!==c&&c.startsWith("\uFEFF")&&(s.hasAttribute("data-slate-zero-width")||es&&null!==(f=m.textContent)&&void 0!==f&&f.endsWith("\n\n"))&&d--}if(ei&&!l&&!a){var y=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(y&&ew.hasDOMNode(e,y,{editable:!0})){var L=ew.toSlateNode(e,y),{path:E,offset:D}=u.ML.start(e,ew.findPath(e,L));return y.querySelector("[data-slate-leaf]")||(D=i),{path:E,offset:D}}}if(!l){if(n)return null;throw Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var C=ew.toSlateNode(e,l),O=ew.findPath(e,C);return{path:O,offset:d}},toSlateRange(e,t,r){var a,n,o,i,s,{exactMatch:l,suppressThrow:d}=r;if((V(t)?t.anchorNode:t.startContainer)&&(V(t)?(a=t.anchorNode,n=t.anchorOffset,o=t.focusNode,i=t.focusOffset,s=ec&&J()?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(a=t.startContainer,n=t.startOffset,o=t.endContainer,i=t.endOffset,s=t.collapsed)),null==a||null==o||null==n||null==i)throw Error("Cannot resolve a Slate range from DOM range: ".concat(t));var c=ew.toSlatePoint(e,[a,n],{exactMatch:l,suppressThrow:d});if(!c)return null;var f=s?c:ew.toSlatePoint(e,[o,i],{exactMatch:l,suppressThrow:d});if(!f)return null;var v={anchor:c,focus:f};return u.e6.isExpanded(v)&&u.e6.isForward(v)&&_(o)&&u.ML.void(e,{at:v.focus,mode:"highest"})&&(v=u.ML.unhangRange(e,v,{voids:!0})),v},hasRange(e,t){var{anchor:r,focus:a}=t;return u.ML.hasPath(e,r.path)&&u.ML.hasPath(e,a.path)},androidScheduleFlush(e){var t;null===(t=P.get(e))||void 0===t||t()},androidPendingDiffs:e=>T.get(e)},eb=eg?d.useLayoutEffect:d.useEffect,eM=["anchor","focus"],ex=["anchor","focus"],ek=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(r=>t.hasOwnProperty(r)&&e[r]===t[r]),ey=(e,t)=>{if(e.length!==t.length)return!1;for(var r=0;r{var{isLast:t,leaf:r,parent:a,text:n}=e,o=eO(),i=ew.findPath(o,n),s=u.y$.parent(i),l=!0===r[I];return o.isVoid(a)?d.createElement(eD,{length:u.NB.string(a).length}):""!==r.text||a.children[a.children.length-1]!==n||o.isInline(a)||""!==u.ML.string(o,s)?""===r.text?d.createElement(eD,{isMarkPlaceholder:l}):t&&"\n"===r.text.slice(-1)?d.createElement(eE,{isTrailing:!0,text:r.text}):d.createElement(eE,{text:r.text}):d.createElement(eD,{isLineBreak:!0,isMarkPlaceholder:l})},eE=e=>{var{text:t,isTrailing:r=!1}=e,a=(0,d.useRef)(null),n=()=>"".concat(null!=t?t:"").concat(r?"\n":"");return(eb(()=>{var e=n();a.current&&a.current.textContent!==e&&(a.current.textContent=e)}),a.current)?d.createElement("span",{"data-slate-string":!0,ref:a}):d.createElement("span",{"data-slate-string":!0,ref:a},n())},eD=e=>{var{length:t=0,isLineBreak:r=!1,isMarkPlaceholder:a=!1}=e,n={"data-slate-zero-width":r?"n":"z","data-slate-length":t};return a&&(n["data-slate-mark-placeholder"]=!0),d.createElement("span",Object.assign({},n),ei&&r?null:"\uFEFF",r?d.createElement("br",null):null)},eC=(0,d.createContext)(null),eO=()=>{var e=(0,d.useContext)(eC);if(!e)throw Error("The `useSlateStatic` hook must be used inside the component's context.");return e},eF=e=>{var{leaf:t,isLast:r,text:a,parent:n,renderPlaceholder:o,renderLeaf:i=e=>d.createElement(eS,Object.assign({},e))}=e,s=(0,d.useRef)(null),l=eO();(0,d.useEffect)(()=>{var e=null==s?void 0:s.current,t=ew.toDOMNode(l,l);if(e&&t)return t.style.minHeight="".concat(e.clientHeight,"px"),k.set(l,e),()=>{t.style.minHeight="auto",k.delete(l)}},[s,t]);var c=d.createElement(eL,{isLast:r,leaf:t,parent:n,text:a});if(t[q]){var u={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:s}};c=d.createElement(d.Fragment,null,o(u),c)}return i({attributes:{"data-slate-leaf":!0},children:c,leaf:t,text:a})},eB=d.memo(eF,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&u.xv.equals(t.leaf,e.leaf)&&t.leaf[q]===e.leaf[q]),eS=e=>{var{attributes:t,children:r}=e;return d.createElement("span",Object.assign({},t),r)},eP=e=>{for(var{decorations:t,isLast:r,parent:a,renderPlaceholder:n,renderLeaf:o,text:i}=e,s=eO(),l=(0,d.useRef)(null),c=u.xv.decorations(i,t),f=ew.findKey(s,i),v=[],p=0;p{var e=D.get(s);l.current?(null==e||e.set(f,l.current),L.set(i,l.current),y.set(l.current,i)):(null==e||e.delete(f),L.delete(i))}),d.createElement("span",{"data-slate-node":"text",ref:l},v)},eR=d.memo(eP,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&ey(t.decorations,e.decorations)),eN=e=>{var{decorations:t,element:r,renderElement:a=e=>d.createElement(eW,Object.assign({},e)),renderPlaceholder:o,renderLeaf:i,selection:s}=e,l=eO(),c=eU(),f=l.isInline(r),v=ew.findKey(l,r),p=(0,d.useCallback)(e=>{var t=D.get(l);e?(null==t||t.set(v,e),L.set(r,e),y.set(e,r)):(null==t||t.delete(v),L.delete(r))},[l,v,r]),h=eY({decorations:t,node:r,renderElement:a,renderPlaceholder:o,renderLeaf:i,selection:s}),g={"data-slate-node":"element",ref:p};if(f&&(g["data-slate-inline"]=!0),!f&&u.ML.hasInlines(l,r)){var m=u.NB.string(r),M=n()(m);"rtl"===M&&(g.dir=M)}if(u.ML.isVoid(l,r)){g["data-slate-void"]=!0,!c&&f&&(g.contentEditable=!1);var[[x]]=u.NB.texts(r);h=d.createElement(f?"span":"div",{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},d.createElement(eR,{renderPlaceholder:o,decorations:[],isLast:!1,parent:r,text:x})),w.set(x,0),b.set(x,r)}return a({attributes:g,children:h,element:r})},eT=d.memo(eN,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&ey(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&u.e6.equals(e.selection,t.selection))),eW=e=>{var{attributes:t,children:r,element:a}=e,n=eO().isInline(a)?"span":"div";return d.createElement(n,Object.assign({},t,{style:{position:"relative"}}),r)},ej=(0,d.createContext)(()=>[]),eA=()=>(0,d.useContext)(ej),eq=(0,d.createContext)(!1),eI=()=>(0,d.useContext)(eq),eY=e=>{for(var{decorations:t,node:r,renderElement:a,renderPlaceholder:n,renderLeaf:o,selection:i}=e,s=eA(),l=eO(),c=ew.findPath(l,r),f=[],v=u.W_.isElement(r)&&!l.isInline(r)&&u.ML.hasInlines(l,r),p=0;p(0,d.useContext)(e$),e_=(0,d.createContext)(null),ez=()=>{var e=(0,d.useContext)(e_);if(!e)throw Error("The `useSlate` hook must be used inside the component's context.");var{editor:t}=e;return t},eV={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},eH={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},eK={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},eX=e=>{var t=eV[e],r=eH[e],a=eK[e],n=t&&(0,f.TB)(t),o=r&&(0,f.TB)(r),i=a&&(0,f.TB)(a);return e=>!!(n&&n(e)||eo&&o&&o(e)||!eo&&i&&i(e))},eJ={isBold:eX("bold"),isCompose:eX("compose"),isMoveBackward:eX("moveBackward"),isMoveForward:eX("moveForward"),isDeleteBackward:eX("deleteBackward"),isDeleteForward:eX("deleteForward"),isDeleteLineBackward:eX("deleteLineBackward"),isDeleteLineForward:eX("deleteLineForward"),isDeleteWordBackward:eX("deleteWordBackward"),isDeleteWordForward:eX("deleteWordForward"),isExtendBackward:eX("extendBackward"),isExtendForward:eX("extendForward"),isExtendLineBackward:eX("extendLineBackward"),isExtendLineForward:eX("extendLineForward"),isItalic:eX("italic"),isMoveLineBackward:eX("moveLineBackward"),isMoveLineForward:eX("moveLineForward"),isMoveWordBackward:eX("moveWordBackward"),isMoveWordForward:eX("moveWordForward"),isRedo:eX("redo"),isSoftBreak:eX("insertSoftBreak"),isSplitBlock:eX("splitBlock"),isTransposeCharacter:eX("transposeCharacter"),isUndo:eX("undo")},eQ=(e,t)=>{var r=[],a=()=>{r=[]},n=a=>{if(t.current){var n=a.filter(t=>er(e,t,a));r.push(...n)}};return{registerMutations:n,restoreDOM:function(){r.reverse().forEach(e=>{if("characterData"===e.type){e.target.textContent=e.oldValue;return}e.removedNodes.forEach(t=>{e.target.insertBefore(t,e.nextSibling)}),e.addedNodes.forEach(t=>{e.target.removeChild(t)})}),a()},clear:a}},eZ={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class eG extends d.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var e,{node:t}=this.props;if(!t.current)throw Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,eZ)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=eQ(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,r,a,n=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();return null!=n&&n.length&&(null===(a=this.manager)||void 0===a||a.registerMutations(n)),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(r=this.manager)||void 0===r||r.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}eG.contextType=eC;var e0=ei?eG:e=>{var{children:t}=e;return d.createElement(d.Fragment,null,t)};function e1(e,t){var{start:r,end:a,text:n}=t,o=e.slice(r,a),i=function(e,t){for(var r=Math.min(e.length,t.length),a=0;au.ML.isBlock(e,t),at:r});if(!o)return null;for(;a>n.text.length;){var i=u.ML.next(e,{at:r,match:u.xv.isText});if(!i||!u.y$.isDescendant(i[1],o[1]))return null;a-=n.text.length,n=i[0],r=i[1]}return{path:r,offset:a}}function e2(e,t){var r=e6(e,t.anchor);if(!r)return null;if(u.e6.isCollapsed(t))return{anchor:r,focus:r};var a=e6(e,t.focus);return a?{anchor:r,focus:a}:null}function e9(e,t,r){var a=T.get(e),n=null==a?void 0:a.find(e=>{var{path:r}=e;return u.y$.equals(r,t.path)});if(!n||t.offset<=n.diff.start)return u.E9.transform(t,r,{affinity:"backward"});var{diff:o}=n;if(t.offset<=o.start+o.text.length){var i={path:t.path,offset:o.start},s=u.E9.transform(i,r,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-o.start}:null}var l={path:t.path,offset:t.offset-o.text.length+o.end-o.start},d=u.E9.transform(l,r,{affinity:"backward"});return d?"split_node"===r.type&&u.y$.equals(r.path,t.path)&&l.offsetd.createElement(d.Fragment,null,eY(e)),ts=e=>{var t,r,a,o,{autoFocus:s,decorate:c=td,onDOMBeforeInput:f,placeholder:v,readOnly:g=!1,renderElement:m,renderLeaf:w,renderPlaceholder:b=e=>d.createElement(tl,Object.assign({},e)),scrollSelectionIntoView:E=tc,style:D={},as:S="div"}=e,Y=h(e,tr),U=ez(),[H,X]=(0,d.useState)(!1),J=(0,d.useRef)(null),Q=(0,d.useRef)([]),{onUserInput:Z,receivedUserInput:G}=(t=eO(),r=(0,d.useRef)(!1),a=(0,d.useRef)(0),o=(0,d.useCallback)(()=>{if(!r.current){r.current=!0;var e=ew.getWindow(t);e.cancelAnimationFrame(a.current),a.current=e.requestAnimationFrame(()=>{r.current=!1})}},[]),(0,d.useEffect)(()=>()=>cancelAnimationFrame(a.current),[]),{receivedUserInput:r,onUserInput:o}),[,ee]=(0,d.useReducer)(e=>e+1,0);A.set(U,ee),C.set(U,g);var et=(0,d.useMemo)(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);(0,d.useEffect)(()=>{J.current&&s&&J.current.focus()},[s]);var ea=(0,d.useCallback)(l()(()=>{if((ei||!ew.isComposing(U))&&(!et.isUpdatingSelection||null!=ed&&ed.isFlushing())&&!et.isDraggingInternally){var e=ew.findDocumentOrShadowRoot(U),{activeElement:t}=e,r=ew.toDOMNode(U,U),a=e.getSelection();if(t===r?(et.latestElement=t,O.set(U,!0)):O.delete(U),!a)return u.YR.deselect(U);var{anchorNode:n,focusNode:o}=a,i=tf(U,n)||tv(U,n),s=tf(U,o)||tv(U,o);if(i&&s){var l=ew.toSlateRange(U,a,{exactMatch:!1,suppressThrow:!0});l&&(ew.isComposing(U)||null!=ed&&ed.hasPendingChanges()||null!=ed&&ed.isFlushing()?null==ed||ed.handleUserSelect(l):u.YR.select(U,l))}!g||i&&s||u.YR.deselect(U)}},100),[g]),eo=(0,d.useMemo)(()=>i()(ea,0),[ea]),ed=function(e){var t,{node:r}=e,a=h(e,e8);if(!ei)return null;var n=eO(),o=(t=(0,d.useRef)(!1),(0,d.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),t.current),[i]=(0,d.useState)(()=>(function(e){var{editor:t,scheduleOnDOMSelectionChange:r,onDOMSelectionChange:a}=e,n=!1,o=null,i=null,s=null,l=0,d=!1,c=()=>{var e=j.get(t);if(j.delete(t),e){var{selection:r}=t,a=e2(t,e);!a||r&&u.e6.equals(a,r)||u.YR.select(t,a)}},f=()=>{var e=W.get(t);if(W.delete(t),e){if(e.at){var r=u.E9.isPoint(e.at)?e6(t,e.at):e2(t,e.at);if(!r)return;var a=u.ML.range(t,r);t.selection&&u.e6.equals(t.selection,a)||u.YR.select(t,r)}e.run()}},v=()=>{if(i&&(clearTimeout(i),i=null),s&&(clearTimeout(s),s=null),!x()&&!M()){c();return}n||(n=!0,setTimeout(()=>n=!1)),M()&&(n="action");var e=t.selection&&u.ML.rangeRef(t,t.selection,{affinity:"forward"});N.set(t,t.marks),e5("flush",W.get(t),T.get(t));for(var o=!!(null!==(l=T.get(t))&&void 0!==l&&l.length);v=null===(p=T.get(t))||void 0===p?void 0:p[0];){var l,v,p,h,g=R.get(t);void 0!==g&&(R.delete(t),t.marks=g),g&&!1===d&&(d=null);var m=function(e){var{path:t,diff:r}=e;return{anchor:{path:t,offset:r.start},focus:{path:t,offset:r.end}}}(v);t.selection&&u.e6.equals(t.selection,m)||u.YR.select(t,m),v.diff.text?u.ML.insertText(t,v.diff.text):u.ML.deleteFragment(t),T.set(t,null===(h=T.get(t))||void 0===h?void 0:h.filter(e=>{var{id:t}=e;return t!==v.id})),!function(e,t){var{path:r,diff:a}=t;if(!u.ML.hasPath(e,r))return!1;var n=u.NB.get(e,r);if(!u.xv.isText(n))return!1;if(a.start!==n.text.length||0===a.text.length)return n.text.slice(a.start,a.start+a.text.length)===a.text;var o=u.y$.next(r);if(!u.ML.hasPath(e,o))return!1;var i=u.NB.get(e,o);return u.xv.isText(i)&&i.text.startsWith(a.text)}(t,v)&&(o=!1,W.delete(t),N.delete(t),n="action",j.delete(t),r.cancel(),a.cancel(),null==e||e.unref())}var w=null==e?void 0:e.unref();if(!w||j.get(t)||t.selection&&u.e6.equals(w,t.selection)||u.YR.select(t,w),M()){f();return}o&&r(),r.flush(),a.flush(),c();var b=N.get(t);N.delete(t),void 0!==b&&(t.marks=b,t.onChange())},p=e=>{o&&clearTimeout(o),o=setTimeout(()=>{F.set(t,!1),v()},25)},h=e=>{F.set(t,!0),o&&(clearTimeout(o),o=null)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=k.get(t);if(r){if(x()||e){r.style.display="none";return}r.style.removeProperty("display")}},m=(e,r)=>{var a,n,o,i,s,d,c,f,v,p=null!==(v=T.get(t))&&void 0!==v?v:[];T.set(t,p);var h=u.NB.leaf(t,e),m=p.findIndex(t=>u.y$.equals(t.path,e));if(m<0){e1(h.text,r)&&p.push({path:e,diff:r,id:l++}),g();return}var w=(a=h.text,o=Math.min((n=p[m].diff).start,r.start),i=Math.max(0,Math.min(n.start+n.text.length,r.end)-r.start),s=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;ae.slice(0,t.start)+t.text+e.slice(t.end),e)}(a,n,r),d=Math.max(r.start+r.text.length,n.start+n.text.length+(n.start+n.text.length>r.start?r.text.length:0)-i),c=s.slice(o,d),f=Math.max(n.end,r.end-n.text.length+(n.end-n.start)),e1(a,{start:o,end:f,text:c}));if(!w){p.splice(m,1),g();return}p[m]=e4(e4({},p[m]),{},{diff:w})},w=function(e){var{at:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d=!1,j.delete(t),r.cancel(),a.cancel(),M()&&v(),W.set(t,{at:n,run:e}),s=setTimeout(v)},b=e=>{i&&(clearTimeout(i),i=null);var{inputType:r}=e,a=null,n=e.dataTransfer||e.data||void 0;!1!==d&&"insertText"!==r&&"insertCompositionText"!==r&&(d=!1);var[o]=e.getTargetRanges();o&&(a=ew.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!0}));var s=ew.getWindow(t).getSelection();if(!a&&s&&(o=s,a=ew.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0})),a=null!==(M=a)&&void 0!==M?M:t.selection){if(u.e6.isExpanded(a)&&r.startsWith("delete")){var[l,c]=u.e6.edges(a);if(u.NB.leaf(t,l.path).text.length===l.offset&&0===c.offset){var f=u.ML.next(t,{at:l.path,match:u.xv.isText});f&&u.y$.equals(f[1],c.path)&&(a={anchor:c,focus:c})}}if(u.e6.isExpanded(a)&&r.startsWith("delete")){if(u.y$.equals(a.anchor.path,a.focus.path)){var[v,p]=u.e6.edges(a);return m(a.anchor.path,{text:"",end:p.offset,start:v.offset})}var h=r.endsWith("Backward")?"backward":"forward";return w(()=>u.ML.deleteFragment(t,{direction:h}),{at:a})}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return w(()=>u.ML.deleteFragment(t),{at:a});case"deleteContent":case"deleteContentForward":var{anchor:g}=a;if(u.e6.isCollapsed(a)){var b=u.NB.leaf(t,g.path);if(g.offsetu.ML.deleteForward(t),{at:a});case"deleteContentBackward":var M,x,{anchor:k}=a;if((V(o)?o.isCollapsed:!!(null!==(x=o)&&void 0!==x&&x.collapsed))&&u.e6.isCollapsed(a)&&k.offset>0)return m(k.path,{text:"",start:k.offset-1,end:k.offset});return w(()=>u.ML.deleteBackward(t),{at:a});case"deleteEntireSoftLine":return w(()=>{u.ML.deleteBackward(t,{unit:"line"}),u.ML.deleteForward(t,{unit:"line"})},{at:a});case"deleteHardLineBackward":return w(()=>u.ML.deleteBackward(t,{unit:"block"}),{at:a});case"deleteSoftLineBackward":return w(()=>u.ML.deleteBackward(t,{unit:"line"}),{at:a});case"deleteHardLineForward":return w(()=>u.ML.deleteForward(t,{unit:"block"}),{at:a});case"deleteSoftLineForward":return w(()=>u.ML.deleteForward(t,{unit:"line"}),{at:a});case"deleteWordBackward":return w(()=>u.ML.deleteBackward(t,{unit:"word"}),{at:a});case"deleteWordForward":return w(()=>u.ML.deleteForward(t,{unit:"word"}),{at:a});case"insertLineBreak":return w(()=>u.ML.insertSoftBreak(t),{at:a});case"insertParagraph":return w(()=>u.ML.insertBreak(t),{at:a});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if((null==n?void 0:n.constructor.name)==="DataTransfer")return w(()=>ew.insertData(t,n),{at:a});if("string"==typeof n&&n.includes("\n"))return w(()=>u.ML.insertSoftBreak(t),{at:u.e6.end(a)});var y=null!=n?n:"";if(R.get(t)&&(y=y.replace("\uFEFF","")),u.y$.equals(a.anchor.path,a.focus.path)){var[L,E]=u.e6.edges(a),D={start:L.offset,end:E.offset,text:y};if(y&&d&&"insertCompositionText"===r){var O=d.start+d.text.search(/\S|$/);D.start+D.text.search(/\S|$/)===O+1&&D.end===d.start+d.text.length?(D.start-=1,d=null,C()):d=!1}else d="insertText"===r&&(null===d?D:!!(d&&u.e6.isCollapsed(a))&&d.end+d.text.length===L.offset&&e4(e4({},d),{},{text:d.text+y}));m(L.path,D);return}return w(()=>u.ML.insertText(t,y),{at:a})}}},M=()=>!!W.get(t),x=()=>{var e;return!!(null!==(e=T.get(t))&&void 0!==e&&e.length)},y=()=>M()||x(),L=e=>{j.set(t,e),i&&(clearTimeout(i),i=null);var{selection:r}=t;if(e){var a=!r||!u.y$.equals(r.anchor.path,e.anchor.path),n=!r||!u.y$.equals(r.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(a&&d||n)&&(d=!1),(a||!x())&&(i=setTimeout(v,200))}},E=()=>{(M()||!x())&&v()},D=e=>{x()||(g(!0),setTimeout(g))},C=()=>{M()||(s=setTimeout(v))},O=e=>{if(!(x()||M())&&e.some(r=>er(t,r,e))){var r;null===(r=A.get(t))||void 0===r||r()}};return{flush:v,scheduleFlush:C,hasPendingDiffs:x,hasPendingAction:M,hasPendingChanges:y,isFlushing:()=>n,handleUserSelect:L,handleCompositionEnd:p,handleCompositionStart:h,handleDOMBeforeInput:b,handleKeyDown:D,handleDomMutations:O,handleInput:E}})(function(e){for(var t=1;tnew MutationObserver(t));eb(()=>{a.takeRecords()}),(0,d.useEffect)(()=>{if(!e.current)throw Error("Failed to attach MutationObserver, `node` is undefined");return a.observe(e.current,r),()=>a.disconnect()},[])}(r,i.handleDomMutations,tt),P.set(n,i.scheduleFlush),o&&i.flush(),i}({node:J,onDOMSelectionChange:ea,scheduleOnDOMSelectionChange:eo});eb(()=>{J.current&&(e=$(J.current))?(M.set(U,e),x.set(U,J.current),L.set(U,J.current),y.set(J.current,U)):L.delete(U);var e,{selection:t}=U,r=ew.findDocumentOrShadowRoot(U).getSelection();if(!(!r||!ew.isFocused(U)||null!=ed&&ed.hasPendingAction())){var a=e=>{var a="None"!==r.type;if(t||a){var n=x.get(U),o=!1;if(n.contains(r.anchorNode)&&n.contains(r.focusNode)&&(o=!0),a&&o&&t&&!e){var i=ew.toSlateRange(U,r,{exactMatch:!0,suppressThrow:!0});if(i&&u.e6.equals(i,t)){if(!et.hasMarkPlaceholder)return;var s,{anchorNode:l}=r;if(null!=l&&null!==(s=l.parentElement)&&void 0!==s&&s.hasAttribute("data-slate-mark-placeholder"))return}}if(t&&!ew.hasRange(U,t)){U.selection=ew.toSlateRange(U,r,{exactMatch:!1,suppressThrow:!0});return}et.isUpdatingSelection=!0;var d=t&&ew.toDOMRange(U,t);return d?(u.e6.isBackward(t)?r.setBaseAndExtent(d.endContainer,d.endOffset,d.startContainer,d.startOffset):r.setBaseAndExtent(d.startContainer,d.startOffset,d.endContainer,d.endOffset),E(U,d)):r.removeAllRanges(),d}},n=a(),o=(null==ed?void 0:ed.isFlushing())==="action";if(!ei||!o){setTimeout(()=>{n&&es&&ew.toDOMNode(U,U).focus(),et.isUpdatingSelection=!1});return}var i=null,s=requestAnimationFrame(()=>{if(o){var e=e=>{try{ew.toDOMNode(U,U).focus(),a(e)}catch(t){}};e(),i=setTimeout(()=>{e(!0),et.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(s),i&&clearTimeout(i)}}});var eu=(0,d.useCallback)(e=>{if(Z(),!g&&tf(U,e.target)&&!th(e,f)){if(ed)return ed.handleDOMBeforeInput(e);eo.flush(),ea.flush();var{selection:t}=U,{inputType:r}=e,a=e.dataTransfer||e.data||void 0,n="insertCompositionText"===r||"deleteCompositionText"===r;if(!(n&&ew.isComposing(U))){var o=!1;if("insertText"===r&&t&&u.e6.isCollapsed(t)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==t.anchor.offset){o=!0,U.marks&&(o=!1);var{anchor:i}=t,[s,l]=ew.toDOMPoint(U,i),d=null===(p=s.parentElement)||void 0===p?void 0:p.closest("a"),c=ew.getWindow(U);if(o&&d&&ew.hasDOMNode(U,d)){var v,p,h,m,w=null==c?void 0:c.document.createTreeWalker(d,NodeFilter.SHOW_TEXT).lastChild();w===s&&(null===(m=w.textContent)||void 0===m?void 0:m.length)===l&&(o=!1)}if(o&&s.parentElement&&(null==c?void 0:null===(h=c.getComputedStyle(s.parentElement))||void 0===h?void 0:h.whiteSpace)==="pre"){var b=u.ML.above(U,{at:i.path,match:e=>u.ML.isBlock(U,e)});b&&u.NB.string(b[0]).includes(" ")&&(o=!1)}}if(!r.startsWith("delete")||r.startsWith("deleteBy")){var[M]=e.getTargetRanges();if(M){var x=ew.toSlateRange(U,M,{exactMatch:!1,suppressThrow:!1});if(!t||!u.e6.equals(t,x)){o=!1;var k=!n&&U.selection&&u.ML.rangeRef(U,U.selection);u.YR.select(U,x),k&&B.set(U,k)}}}if(!n){if(o||e.preventDefault(),t&&u.e6.isExpanded(t)&&r.startsWith("delete")){var y=r.endsWith("Backward")?"backward":"forward";u.ML.deleteFragment(U,{direction:y});return}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":u.ML.deleteFragment(U);break;case"deleteContent":case"deleteContentForward":u.ML.deleteForward(U);break;case"deleteContentBackward":u.ML.deleteBackward(U);break;case"deleteEntireSoftLine":u.ML.deleteBackward(U,{unit:"line"}),u.ML.deleteForward(U,{unit:"line"});break;case"deleteHardLineBackward":u.ML.deleteBackward(U,{unit:"block"});break;case"deleteSoftLineBackward":u.ML.deleteBackward(U,{unit:"line"});break;case"deleteHardLineForward":u.ML.deleteForward(U,{unit:"block"});break;case"deleteSoftLineForward":u.ML.deleteForward(U,{unit:"line"});break;case"deleteWordBackward":u.ML.deleteBackward(U,{unit:"word"});break;case"deleteWordForward":u.ML.deleteForward(U,{unit:"word"});break;case"insertLineBreak":u.ML.insertSoftBreak(U);break;case"insertParagraph":u.ML.insertBreak(U);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===r&&ew.isComposing(U)&&(X(!1),F.set(U,!1)),(null==a?void 0:a.constructor.name)==="DataTransfer"?ew.insertData(U,a):"string"==typeof a&&(o?Q.current.push(()=>u.ML.insertText(U,a)):u.ML.insertText(U,a))}var L=null===(v=B.get(U))||void 0===v?void 0:v.unref();B.delete(U),!L||U.selection&&u.e6.equals(U.selection,L)||u.YR.select(U,L)}}}},[g,f]);eb(()=>(J.current&&em&&J.current.addEventListener("beforeinput",eu),()=>{J.current&&em&&J.current.removeEventListener("beforeinput",eu)}),[eu]),eb(()=>{var e=ew.getWindow(U);return e.document.addEventListener("selectionchange",eo),()=>{e.document.removeEventListener("selectionchange",eo)}},[eo]);var eM=c([U,[]]);if(v&&1===U.children.length&&1===Array.from(u.NB.texts(U)).length&&""===u.NB.string(U)&&!H){var ex=u.ML.start(U,[]);eM.push({[q]:!0,placeholder:v,anchor:ex,focus:ex})}var{marks:ek}=U;if(et.hasMarkPlaceholder=!1,U.selection&&u.e6.isCollapsed(U.selection)&&ek){var{anchor:ey}=U.selection,eL=u.NB.leaf(U,ey.path),eE=h(eL,ta);if(!u.xv.equals(eL,ek,{loose:!0})){et.hasMarkPlaceholder=!0;var eD=Object.fromEntries(Object.keys(eE).map(e=>[e,null]));eM.push(to(to(to({[I]:!0},eD),ek),{},{anchor:ey,focus:ey}))}}return(0,d.useEffect)(()=>{setTimeout(()=>{var{selection:e}=U;if(e){var{anchor:t}=e,r=u.NB.leaf(U,t.path);if(ek&&!u.xv.equals(r,ek,{loose:!0})){R.set(U,ek);return}}R.delete(U)})}),d.createElement(e$.Provider,{value:g},d.createElement(ej.Provider,{value:c},d.createElement(e0,{node:J,receivedUserInput:G},d.createElement(S,Object.assign({role:g?void 0:"textbox","aria-multiline":!g||void 0},Y,{spellCheck:(!!em||!eg)&&Y.spellCheck,autoCorrect:em||!eg?Y.autoCorrect:"false",autoCapitalize:em||!eg?Y.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!g,zindex:-1,suppressContentEditableWarning:!0,ref:J,style:to({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},D),onBeforeInput:(0,d.useCallback)(e=>{if(!em&&!g&&!tp(e,Y.onBeforeInput)&&tf(U,e.target)&&(e.preventDefault(),!ew.isComposing(U))){var t=e.data;u.ML.insertText(U,t)}},[g]),onInput:(0,d.useCallback)(e=>{if(ed){ed.handleInput();return}for(var t of Q.current)t();Q.current=[]},[]),onBlur:(0,d.useCallback)(e=>{if(!(g||et.isUpdatingSelection||!tf(U,e.target)||tp(e,Y.onBlur))){var t=ew.findDocumentOrShadowRoot(U);if(et.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(!(r===ew.toDOMNode(U,U)||_(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&z(r)&&ew.hasDOMNode(U,r)){var a=ew.toSlateNode(U,r);if(u.W_.isElement(a)&&!U.isVoid(a))return}if(el){var n=t.getSelection();null==n||n.removeAllRanges()}O.delete(U)}}}},[g,Y.onBlur]),onClick:(0,d.useCallback)(e=>{if(tu(U,e.target)&&!tp(e,Y.onClick)&&z(e.target)){var t=ew.toSlateNode(U,e.target),r=ew.findPath(U,t);if(u.ML.hasPath(U,r)&&u.NB.get(U,r)===t){if(3===e.detail&&r.length>=1){var a=r;if(!u.ML.isBlock(U,t)){var n,o=u.ML.above(U,{match:e=>u.ML.isBlock(U,e),at:r});a=null!==(n=null==o?void 0:o[1])&&void 0!==n?n:r.slice(0,1)}var i=u.ML.range(U,a);u.YR.select(U,i);return}if(!g){var s=u.ML.start(U,r),l=u.ML.end(U,r),d=u.ML.void(U,{at:s}),c=u.ML.void(U,{at:l});if(d&&c&&u.y$.equals(d[1],c[1])){var f=u.ML.range(U,s);u.YR.select(U,f)}}}}},[g,Y.onClick]),onCompositionEnd:(0,d.useCallback)(e=>{if(tf(U,e.target)&&(ew.isComposing(U)&&(X(!1),F.set(U,!1)),null==ed||ed.handleCompositionEnd(e),!tp(e,Y.onCompositionEnd)&&!ei&&!el&&!ef&&!en&&!ev&&!eh&&!ep&&e.data)){var t=R.get(U);R.delete(U),void 0!==t&&(N.set(U,U.marks),U.marks=t),u.ML.insertText(U,e.data);var r=N.get(U);N.delete(U),void 0!==r&&(U.marks=r)}},[Y.onCompositionEnd]),onCompositionUpdate:(0,d.useCallback)(e=>{!tf(U,e.target)||tp(e,Y.onCompositionUpdate)||ew.isComposing(U)||(X(!0),F.set(U,!0))},[Y.onCompositionUpdate]),onCompositionStart:(0,d.useCallback)(e=>{if(tf(U,e.target)&&(null==ed||ed.handleCompositionStart(e),!tp(e,Y.onCompositionStart)&&!ei)){X(!0);var{selection:t}=U;if(t){if(u.e6.isExpanded(t)){u.ML.deleteFragment(U);return}var r=u.ML.above(U,{match:e=>u.ML.isInline(U,e),mode:"highest"});if(r){var[,a]=r;if(u.ML.isEnd(U,t.anchor,a)){var n=u.ML.after(U,a);u.YR.setSelection(U,{anchor:n,focus:n})}}}}},[Y.onCompositionStart]),onCopy:(0,d.useCallback)(e=>{tf(U,e.target)&&!tp(e,Y.onCopy)&&(e.preventDefault(),ew.setFragmentData(U,e.clipboardData,"copy"))},[Y.onCopy]),onCut:(0,d.useCallback)(e=>{if(!g&&tf(U,e.target)&&!tp(e,Y.onCut)){e.preventDefault(),ew.setFragmentData(U,e.clipboardData,"cut");var{selection:t}=U;if(t){if(u.e6.isExpanded(t))u.ML.deleteFragment(U);else{var r=u.NB.parent(U,t.anchor.path);u.ML.isVoid(U,r)&&u.YR.delete(U)}}}},[g,Y.onCut]),onDragOver:(0,d.useCallback)(e=>{if(tu(U,e.target)&&!tp(e,Y.onDragOver)){var t=ew.toSlateNode(U,e.target);u.ML.isVoid(U,t)&&e.preventDefault()}},[Y.onDragOver]),onDragStart:(0,d.useCallback)(e=>{if(!g&&tu(U,e.target)&&!tp(e,Y.onDragStart)){var t=ew.toSlateNode(U,e.target),r=ew.findPath(U,t);if(u.ML.isVoid(U,t)||u.ML.void(U,{at:r,voids:!0})){var a=u.ML.range(U,r);u.YR.select(U,a)}et.isDraggingInternally=!0,ew.setFragmentData(U,e.dataTransfer,"drag")}},[g,Y.onDragStart]),onDrop:(0,d.useCallback)(e=>{if(!g&&tu(U,e.target)&&!tp(e,Y.onDrop)){e.preventDefault();var t=U.selection,r=ew.findEventRange(U,e),a=e.dataTransfer;u.YR.select(U,r),et.isDraggingInternally&&t&&!u.e6.equals(t,r)&&!u.ML.void(U,{at:r,voids:!0})&&u.YR.delete(U,{at:t}),ew.insertData(U,a),ew.isFocused(U)||ew.focus(U)}et.isDraggingInternally=!1},[g,Y.onDrop]),onDragEnd:(0,d.useCallback)(e=>{!g&&et.isDraggingInternally&&Y.onDragEnd&&tu(U,e.target)&&Y.onDragEnd(e),et.isDraggingInternally=!1},[g,Y.onDragEnd]),onFocus:(0,d.useCallback)(e=>{if(!g&&!et.isUpdatingSelection&&tf(U,e.target)&&!tp(e,Y.onFocus)){var t=ew.toDOMNode(U,U),r=ew.findDocumentOrShadowRoot(U);if(et.latestElement=r.activeElement,es&&e.target!==t){t.focus();return}O.set(U,!0)}},[g,Y.onFocus]),onKeyDown:(0,d.useCallback)(e=>{if(!g&&tf(U,e.target)){null==ed||ed.handleKeyDown(e);var{nativeEvent:t}=e;if(ew.isComposing(U)&&!1===t.isComposing&&(F.set(U,!1),X(!1)),!(tp(e,Y.onKeyDown)||ew.isComposing(U))){var{selection:r}=U,a=U.children[null!==r?r.focus.path[0]:0],o="rtl"===n()(u.NB.string(a));if(eJ.isRedo(t)){e.preventDefault(),"function"==typeof U.redo&&U.redo();return}if(eJ.isUndo(t)){e.preventDefault(),"function"==typeof U.undo&&U.undo();return}if(eJ.isMoveLineBackward(t)){e.preventDefault(),u.YR.move(U,{unit:"line",reverse:!0});return}if(eJ.isMoveLineForward(t)){e.preventDefault(),u.YR.move(U,{unit:"line"});return}if(eJ.isExtendLineBackward(t)){e.preventDefault(),u.YR.move(U,{unit:"line",edge:"focus",reverse:!0});return}if(eJ.isExtendLineForward(t)){e.preventDefault(),u.YR.move(U,{unit:"line",edge:"focus"});return}if(eJ.isMoveBackward(t)){e.preventDefault(),r&&u.e6.isCollapsed(r)?u.YR.move(U,{reverse:!o}):u.YR.collapse(U,{edge:"start"});return}if(eJ.isMoveForward(t)){e.preventDefault(),r&&u.e6.isCollapsed(r)?u.YR.move(U,{reverse:o}):u.YR.collapse(U,{edge:"end"});return}if(eJ.isMoveWordBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)&&u.YR.collapse(U,{edge:"focus"}),u.YR.move(U,{unit:"word",reverse:!o});return}if(eJ.isMoveWordForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)&&u.YR.collapse(U,{edge:"focus"}),u.YR.move(U,{unit:"word",reverse:o});return}if(em){if((ec||el)&&r&&(eJ.isDeleteBackward(t)||eJ.isDeleteForward(t))&&u.e6.isCollapsed(r)){var i=u.NB.parent(U,r.anchor.path);if(u.W_.isElement(i)&&u.ML.isVoid(U,i)&&(u.ML.isInline(U,i)||u.ML.isBlock(U,i))){e.preventDefault(),u.ML.deleteBackward(U,{unit:"block"});return}}}else{if(eJ.isBold(t)||eJ.isItalic(t)||eJ.isTransposeCharacter(t)){e.preventDefault();return}if(eJ.isSoftBreak(t)){e.preventDefault(),u.ML.insertSoftBreak(U);return}if(eJ.isSplitBlock(t)){e.preventDefault(),u.ML.insertBreak(U);return}if(eJ.isDeleteBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(U,{direction:"backward"}):u.ML.deleteBackward(U);return}if(eJ.isDeleteForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(U,{direction:"forward"}):u.ML.deleteForward(U);return}if(eJ.isDeleteLineBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(U,{direction:"backward"}):u.ML.deleteBackward(U,{unit:"line"});return}if(eJ.isDeleteLineForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(U,{direction:"forward"}):u.ML.deleteForward(U,{unit:"line"});return}if(eJ.isDeleteWordBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(U,{direction:"backward"}):u.ML.deleteBackward(U,{unit:"word"});return}if(eJ.isDeleteWordForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(U,{direction:"forward"}):u.ML.deleteForward(U,{unit:"word"});return}}}}},[g,Y.onKeyDown]),onPaste:(0,d.useCallback)(e=>{!g&&tf(U,e.target)&&!tp(e,Y.onPaste)&&(!em||K(e.nativeEvent))&&(e.preventDefault(),ew.insertData(U,e.clipboardData))},[g,Y.onPaste])}),d.createElement(ti,{decorations:eM,node:U,renderElement:m,renderPlaceholder:b,renderLeaf:w,selection:U.selection})))))},tl=e=>{var{attributes:t,children:r}=e;return d.createElement("span",Object.assign({},t),r,ei&&d.createElement("br",null))},td=()=>[],tc=(e,t)=>{if(!e.selection||e.selection&&u.e6.isCollapsed(e.selection)){var r=t.startContainer.parentElement;r.getBoundingClientRect=t.getBoundingClientRect.bind(t),(0,c.Z)(r,{scrollMode:"if-needed"}),delete r.getBoundingClientRect}},tu=(e,t)=>z(t)&&ew.hasDOMNode(e,t),tf=(e,t)=>z(t)&&ew.hasDOMNode(e,t,{editable:!0}),tv=(e,t)=>{if(C.get(e))return!1;var r=tu(e,t)&&ew.toSlateNode(e,t);return u.ML.isVoid(e,r)},tp=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.isDefaultPrevented()||e.isPropagationStopped()},th=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.defaultPrevented},tg=(0,d.createContext)(!1),tm=()=>(0,d.useContext)(tg),tw=(0,d.createContext)({}),tb=["editor","children","onChange","value"],tM=e=>{var t,r,a,n,{editor:o,children:i,onChange:s,value:l}=e,c=h(e,tb),f=(0,d.useRef)(!1),[v,p]=d.useState(()=>{if(!u.NB.isNodeList(l))throw Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(u.o4.stringify(l)));if(!u.ML.isEditor(o))throw Error("[Slate] editor is invalid! you passed:"+"".concat(u.o4.stringify(o)));return o.children=l,Object.assign(o,c),{v:0,editor:o}}),{selectorContext:g,onChange:m}=(t=(0,d.useRef)([]).current,r=(0,d.useRef)({editor:o}).current,a=(0,d.useCallback)(e=>{r.editor=e,t.forEach(t=>t(e))},[]),n=(0,d.useMemo)(()=>({getSlate:()=>r.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})}),[t,r]),{selectorContext:n,onChange:a}),w=(0,d.useCallback)(()=>{s&&s(o.children),p(e=>({v:e.v+1,editor:o})),m(o)},[s]);S.set(o,w),(0,d.useEffect)(()=>()=>{S.set(o,()=>{}),f.current=!0},[]);var[b,M]=(0,d.useState)(ew.isFocused(o));return(0,d.useEffect)(()=>{M(ew.isFocused(o))}),eb(()=>{var e=()=>M(ew.isFocused(o));return ea?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})},[]),d.createElement(tw.Provider,{value:g},d.createElement(e_.Provider,{value:v},d.createElement(eC.Provider,{value:v.editor},d.createElement(tg.Provider,{value:b},i))))},tx=(e,t)=>{var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},tk=(e,t,r)=>{var a=ew.toDOMRange(e,t).getBoundingClientRect(),n=ew.toDOMRange(e,r).getBoundingClientRect();return tx(a,n)&&tx(n,a)},ty=(e,t)=>{var r=u.ML.range(e,u.e6.end(t)),a=Array.from(u.ML.positions(e,{at:t})),n=0,o=a.length,i=Math.floor(o/2);if(tk(e,u.ML.range(e,a[n]),r))return u.ML.range(e,a[n],r);if(a.length<2)return u.ML.range(e,a[a.length-1],r);for(;i!==a.length&&i!==n;)tk(e,u.ML.range(e,a[i]),r)?o=i:n=i,i=Math.floor((n+o)/2);return u.ML.range(e,a[o],r)};function tL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function tE(e){for(var t=1;t{var t=e,{apply:r,onChange:a,deleteBackward:n,addMark:o,removeMark:i}=t;return D.set(t,new WeakMap),t.addMark=(e,r)=>{var a,n;null===(a=P.get(t))||void 0===a||a(),!R.get(t)&&null!==(n=T.get(t))&&void 0!==n&&n.length&&R.set(t,null),N.delete(t),o(e,r)},t.removeMark=e=>{var r;!R.get(t)&&null!==(r=T.get(t))&&void 0!==r&&r.length&&R.set(t,null),N.delete(t),i(e)},t.deleteBackward=e=>{if("line"!==e)return n(e);if(t.selection&&u.e6.isCollapsed(t.selection)){var r=u.ML.above(t,{match:e=>u.ML.isBlock(t,e),at:t.selection});if(r){var[,a]=r,o=u.ML.range(t,a,t.selection.anchor),i=ty(t,o);u.e6.isCollapsed(i)||u.YR.delete(t,{at:i})}}},t.apply=e=>{var a,n=[],o=T.get(t);if(null!=o&&o.length){var i=o.map(t=>(function(e,t){var{path:r,diff:a,id:n}=e;switch(t.type){case"insert_text":if(!u.y$.equals(t.path,r)||t.offset>=a.end)return e;if(t.offset<=a.start)return{diff:{start:t.text.length+a.start,end:t.text.length+a.end,text:a.text},id:n,path:r};return{diff:{start:a.start,end:a.end+t.text.length,text:a.text},id:n,path:r};case"remove_text":if(!u.y$.equals(t.path,r)||t.offset>=a.end)return e;if(t.offset+t.text.length<=a.start)return{diff:{start:a.start-t.text.length,end:a.end-t.text.length,text:a.text},id:n,path:r};return{diff:{start:a.start,end:a.end-t.text.length,text:a.text},id:n,path:r};case"split_node":if(!u.y$.equals(t.path,r)||t.position>=a.end)return{diff:a,id:n,path:u.y$.transform(r,t,{affinity:"backward"})};if(t.position>a.start)return{diff:{start:a.start,end:Math.min(t.position,a.end),text:a.text},id:n,path:r};return{diff:{start:a.start-t.position,end:a.end-t.position,text:a.text},id:n,path:u.y$.transform(r,t,{affinity:"forward"})};case"merge_node":if(!u.y$.equals(t.path,r))return{diff:a,id:n,path:u.y$.transform(r,t)};return{diff:{start:a.start+t.position,end:a.end+t.position,text:a.text},id:n,path:u.y$.transform(r,t)}}var o=u.y$.transform(r,t);return o?{diff:a,path:o,id:n}:null})(t,e)).filter(Boolean);T.set(t,i)}var s=j.get(t);s&&j.set(t,e3(t,s,e));var l=W.get(t);if(null!=l&&l.at){var d=u.E9.isPoint(null==l?void 0:l.at)?e9(t,l.at,e):e3(t,l.at,e);W.set(t,d?tE(tE({},l),{},{at:d}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":n.push(...tC(t,e.path));break;case"set_selection":null===(a=B.get(t))||void 0===a||a.unref(),B.delete(t);break;case"insert_node":case"remove_node":n.push(...tC(t,u.y$.parent(e.path)));break;case"merge_node":n.push(...tC(t,u.y$.previous(e.path)));break;case"move_node":n.push(...tC(t,u.y$.common(u.y$.parent(e.path),u.y$.parent(e.newPath))))}for(var[c,f]of(r(e),n)){var[v]=u.ML.node(t,c);E.set(v,f)}},t.setFragmentData=e=>{var{selection:r}=t;if(r){var[a,n]=u.e6.edges(r),o=u.ML.void(t,{at:a.path}),i=u.ML.void(t,{at:n.path});if(!u.e6.isCollapsed(r)||o){var s=ew.toDOMRange(t,r),l=s.cloneContents(),d=l.childNodes[0];if(l.childNodes.forEach(e=>{e.textContent&&""!==e.textContent.trim()&&(d=e)}),i){var[c]=i,f=s.cloneRange(),v=ew.toDOMNode(t,c);f.setEndAfter(v),l=f.cloneContents()}if(o&&(d=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach(e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),H(d)){var p=d.ownerDocument.createElement("span");p.style.whiteSpace="pre",p.appendChild(d),l.appendChild(p),d=p}var h=JSON.stringify(t.getFragment()),g=window.btoa(encodeURIComponent(h));d.setAttribute("data-slate-fragment",g),e.setData("application/x-slate-fragment",g);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",G(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=e=>{t.insertFragmentData(e)||t.insertTextData(e)},t.insertFragmentData=e=>{var r=e.getData("application/x-slate-fragment")||et(e);if(r){var a=JSON.parse(decodeURIComponent(window.atob(r)));return t.insertFragment(a),!0}return!1},t.insertTextData=e=>{var r=e.getData("text/plain");if(r){var a=r.split(/\r\n|\r|\n/),n=!1;for(var o of a)n&&u.YR.splitNodes(t,{always:!0}),t.insertText(o),n=!0;return!0}return!1},t.onChange=()=>{v.unstable_batchedUpdates(()=>{var e=S.get(t);e&&e(),a()})},t},tC=(e,t)=>{var r=[];for(var[a,n]of u.ML.levels(e,{at:t})){var o=ew.findKey(e,a);r.push([n,o])}return r}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/d2094a0f-ffa3d9fcb172f7b4.js b/static/web/_next/static/chunks/d2094a0f-ffa3d9fcb172f7b4.js new file mode 100644 index 000000000..17501459a --- /dev/null +++ b/static/web/_next/static/chunks/d2094a0f-ffa3d9fcb172f7b4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8700],{96391:function(e,t,r){r.d(t,{BU:function(){return ty},CX:function(){return ts},F3:function(){return ew},UE:function(){return th},mH:function(){return tm},vt:function(){return eq}});var a=r(6907),n=r.n(a),o=r(23279),i=r.n(o),s=r(23493),l=r.n(s),d=r(67294),c=r(12615),u=r(77493),f=r(18156),v=r(73935);function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var g=0;class m{constructor(){this.id="".concat(g++)}}var w=new WeakMap,b=new WeakMap,M=new WeakMap,x=new WeakMap,k=new WeakMap,y=new WeakMap,E=new WeakMap,L=new WeakMap,D=new WeakMap,C=new WeakMap,O=new WeakMap,S=new WeakMap,F=new WeakMap,B=new WeakMap,T=new WeakMap,R=new WeakMap,P=new WeakMap,N=new WeakMap,W=new WeakMap,j=new WeakMap,A=new WeakMap,I=Symbol("placeholder"),q=Symbol("mark-placeholder"),Y=globalThis.Text,$=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,U=e=>z(e)&&8===e.nodeType,_=e=>z(e)&&1===e.nodeType,z=e=>{var t=$(e);return!!t&&e instanceof t.Node},V=e=>{var t=e&&e.anchorNode&&$(e.anchorNode);return!!t&&e instanceof t.Selection},H=e=>z(e)&&3===e.nodeType,K=e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length,X=e=>{var[t,r]=e;if(_(t)&&t.childNodes.length){var a=r===t.childNodes.length,n=a?r-1:r;for([t,n]=Q(t,n,a?"backward":"forward"),a=n!!(window.document.activeElement&&window.document.activeElement.shadowRoot),Q=(e,t,r)=>{for(var{childNodes:a}=e,n=a[t],o=t,i=!1,s=!1;(U(n)||_(n)&&0===n.childNodes.length||_(n)&&"false"===n.getAttribute("contenteditable"))&&(!i||!s);){if(o>=a.length){i=!0,o=t-1,r="backward";continue}if(o<0){s=!0,o=t+1,r="forward";continue}n=a[o],t=o,o+="forward"===r?1:-1}return[n,t]},Z=(e,t,r)=>{var[a]=Q(e,t,r);return a},G=e=>{var t="";if(H(e)&&e.nodeValue)return e.nodeValue;if(_(e)){for(var r of Array.from(e.childNodes))t+=G(r);var a=getComputedStyle(e).getPropertyValue("display");("block"===a||"list"===a||"BR"===e.tagName)&&(t+="\n")}return t},ee=/data-slate-fragment="(.+?)"/m,et=e=>{var[,t]=e.getData("text/html").match(ee)||[];return t},er=(e,t,r)=>{var{target:a}=t;if(_(a)&&a.matches('[contentEditable="false"]'))return!1;var{document:n}=ew.getWindow(e);if(n.contains(a))return ew.hasDOMNode(e,a,{editable:!0});var o=r.find(e=>{var{addedNodes:t,removedNodes:r}=e;for(var n of t)if(n===a||n.contains(a))return!0;for(var o of r)if(o===a||o.contains(a))return!0});return!!o&&o!==t&&er(e,o,r)},ea=parseInt(d.version.split(".")[0],10)>=17,en="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,eo="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),ei="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),es="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),el="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),ed="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),ec="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),eu="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),ef="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),ev="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),eh="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),ep="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),eg=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),em=!eu&&!ed&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,ew={isComposing:e=>!!S.get(e),getWindow(e){var t=M.get(e);if(!t)throw Error("Unable to find a host window element for this editor");return t},findKey(e,t){var r=L.get(t);return r||(r=new m,L.set(t,r)),r},findPath(e,t){for(var r=[],a=t;;){var n=b.get(a);if(null==n){if(u.ML.isEditor(a))return r;break}var o=w.get(a);if(null==o)break;r.unshift(o),a=n}throw Error("Unable to find the path for Slate node: ".concat(u.o4.stringify(t)))},findDocumentOrShadowRoot(e){var t=ew.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&null!=r.getSelection?r:t.ownerDocument},isFocused:e=>!!O.get(e),isReadOnly:e=>!!C.get(e),blur(e){var t=ew.toDOMNode(e,e),r=ew.findDocumentOrShadowRoot(e);O.set(e,!1),r.activeElement===t&&t.blur()},focus(e){var t=ew.toDOMNode(e,e),r=ew.findDocumentOrShadowRoot(e);O.set(e,!0),r.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,r=ew.findDocumentOrShadowRoot(e).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&u.YR.deselect(e)},hasDOMNode(e,t){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:n=!1}=a,o=ew.toDOMNode(e,e);try{r=_(t)?t:t.parentElement}catch(i){if(!i.message.includes('Permission denied to access property "nodeType"'))throw i}return!!r&&r.closest("[data-slate-editor]")===o&&(!n||!!r.isContentEditable||"boolean"==typeof r.isContentEditable&&r.closest('[contenteditable="false"]')===o||!!r.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,r){e.setFragmentData(t,r)},toDOMNode(e,t){var r=D.get(e),a=u.ML.isEditor(t)?x.get(e):null==r?void 0:r.get(ew.findKey(e,t));if(!a)throw Error("Cannot resolve a DOM node from Slate node: ".concat(u.o4.stringify(t)));return a},toDOMPoint(e,t){var[r]=u.ML.node(e,t.path),a=ew.toDOMNode(e,r);u.ML.void(e,{at:t})&&(t={path:t.path,offset:0});for(var n=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),o=0,i=0;i{if(ei&&!a&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\uFEFF"!==e.textContext){e.textContent.startsWith("\uFEFF")&&(e.textContent=e.textContent.slice(1));return}e.parentNode.removeChild(e)}),d=b.textContent.length,m=l}}else if(p){for(var M=p.querySelectorAll("[data-slate-leaf]"),x=0;x{d-=e.textContent.length})):d=1}m&&d===m.textContent.length&&ei&&"z"===m.getAttribute("data-slate-zero-width")&&null!==(c=m.textContent)&&void 0!==c&&c.startsWith("\uFEFF")&&(s.hasAttribute("data-slate-zero-width")||es&&null!==(f=m.textContent)&&void 0!==f&&f.endsWith("\n\n"))&&d--}if(ei&&!l&&!a){var y=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(y&&ew.hasDOMNode(e,y,{editable:!0})){var E=ew.toSlateNode(e,y),{path:L,offset:D}=u.ML.start(e,ew.findPath(e,E));return y.querySelector("[data-slate-leaf]")||(D=i),{path:L,offset:D}}}if(!l){if(n)return null;throw Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var C=ew.toSlateNode(e,l),O=ew.findPath(e,C);return{path:O,offset:d}},toSlateRange(e,t,r){var a,n,o,i,s,{exactMatch:l,suppressThrow:d}=r;if((V(t)?t.anchorNode:t.startContainer)&&(V(t)?(a=t.anchorNode,n=t.anchorOffset,o=t.focusNode,i=t.focusOffset,s=ec&&J()?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(a=t.startContainer,n=t.startOffset,o=t.endContainer,i=t.endOffset,s=t.collapsed)),null==a||null==o||null==n||null==i)throw Error("Cannot resolve a Slate range from DOM range: ".concat(t));var c=ew.toSlatePoint(e,[a,n],{exactMatch:l,suppressThrow:d});if(!c)return null;var f=s?c:ew.toSlatePoint(e,[o,i],{exactMatch:l,suppressThrow:d});if(!f)return null;var v={anchor:c,focus:f};return u.e6.isExpanded(v)&&u.e6.isForward(v)&&_(o)&&u.ML.void(e,{at:v.focus,mode:"highest"})&&(v=u.ML.unhangRange(e,v,{voids:!0})),v},hasRange(e,t){var{anchor:r,focus:a}=t;return u.ML.hasPath(e,r.path)&&u.ML.hasPath(e,a.path)},hasTarget:(e,t)=>z(t)&&ew.hasDOMNode(e,t),hasEditableTarget:(e,t)=>z(t)&&ew.hasDOMNode(e,t,{editable:!0}),hasSelectableTarget:(e,t)=>ew.hasEditableTarget(e,t)||ew.isTargetInsideNonReadonlyVoid(e,t),isTargetInsideNonReadonlyVoid(e,t){if(C.get(e))return!1;var r=ew.hasTarget(e,t)&&ew.toSlateNode(e,t);return u.ML.isVoid(e,r)},androidScheduleFlush(e){var t;null===(t=T.get(e))||void 0===t||t()},androidPendingDiffs:e=>N.get(e)},eb=eg?d.useLayoutEffect:d.useEffect,eM=["anchor","focus"],ex=["anchor","focus"],ek=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(r=>t.hasOwnProperty(r)&&e[r]===t[r]),ey=(e,t)=>{if(e.length!==t.length)return!1;for(var r=0;r{var{isLast:t,leaf:r,parent:a,text:n}=e,o=eO(),i=ew.findPath(o,n),s=u.y$.parent(i),l=!0===r[q];return o.isVoid(a)?d.createElement(eD,{length:u.NB.string(a).length}):""!==r.text||a.children[a.children.length-1]!==n||o.isInline(a)||""!==u.ML.string(o,s)?""===r.text?d.createElement(eD,{isMarkPlaceholder:l}):t&&"\n"===r.text.slice(-1)?d.createElement(eL,{isTrailing:!0,text:r.text}):d.createElement(eL,{text:r.text}):d.createElement(eD,{isLineBreak:!0,isMarkPlaceholder:l})},eL=e=>{var{text:t,isTrailing:r=!1}=e,a=(0,d.useRef)(null),n=()=>"".concat(null!=t?t:"").concat(r?"\n":"");return(eb(()=>{var e=n();a.current&&a.current.textContent!==e&&(a.current.textContent=e)}),a.current)?d.createElement("span",{"data-slate-string":!0,ref:a}):d.createElement("span",{"data-slate-string":!0,ref:a},n())},eD=e=>{var{length:t=0,isLineBreak:r=!1,isMarkPlaceholder:a=!1}=e,n={"data-slate-zero-width":r?"n":"z","data-slate-length":t};return a&&(n["data-slate-mark-placeholder"]=!0),d.createElement("span",Object.assign({},n),ei&&r?null:"\uFEFF",r?d.createElement("br",null):null)},eC=(0,d.createContext)(null),eO=()=>{var e=(0,d.useContext)(eC);if(!e)throw Error("The `useSlateStatic` hook must be used inside the component's context.");return e},eS=e=>{var{leaf:t,isLast:r,text:a,parent:n,renderPlaceholder:o,renderLeaf:i=e=>d.createElement(eB,Object.assign({},e))}=e,s=(0,d.useRef)(null),l=eO();(0,d.useEffect)(()=>{var e=null==s?void 0:s.current,t=ew.toDOMNode(l,l);if(e&&t)return t.style.minHeight="".concat(e.clientHeight,"px"),k.set(l,e),()=>{t.style.minHeight="auto",k.delete(l)}},[s,t]);var c=d.createElement(eE,{isLast:r,leaf:t,parent:n,text:a});if(t[I]){var u={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:s}};c=d.createElement(d.Fragment,null,o(u),c)}return i({attributes:{"data-slate-leaf":!0},children:c,leaf:t,text:a})},eF=d.memo(eS,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&u.xv.equals(t.leaf,e.leaf)&&t.leaf[I]===e.leaf[I]),eB=e=>{var{attributes:t,children:r}=e;return d.createElement("span",Object.assign({},t),r)},eT=e=>{for(var{decorations:t,isLast:r,parent:a,renderPlaceholder:n,renderLeaf:o,text:i}=e,s=eO(),l=(0,d.useRef)(null),c=u.xv.decorations(i,t),f=ew.findKey(s,i),v=[],h=0;h{var e=D.get(s);l.current?(null==e||e.set(f,l.current),E.set(i,l.current),y.set(l.current,i)):(null==e||e.delete(f),E.delete(i))}),d.createElement("span",{"data-slate-node":"text",ref:l},v)},eR=d.memo(eT,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&ey(t.decorations,e.decorations)),eP=e=>{var{decorations:t,element:r,renderElement:a=e=>d.createElement(eW,Object.assign({},e)),renderPlaceholder:o,renderLeaf:i,selection:s}=e,l=eO(),c=eU(),f=l.isInline(r),v=ew.findKey(l,r),h=(0,d.useCallback)(e=>{var t=D.get(l);e?(null==t||t.set(v,e),E.set(r,e),y.set(e,r)):(null==t||t.delete(v),E.delete(r))},[l,v,r]),p=eY({decorations:t,node:r,renderElement:a,renderPlaceholder:o,renderLeaf:i,selection:s}),g={"data-slate-node":"element",ref:h};if(f&&(g["data-slate-inline"]=!0),!f&&u.ML.hasInlines(l,r)){var m=u.NB.string(r),M=n()(m);"rtl"===M&&(g.dir=M)}if(u.ML.isVoid(l,r)){g["data-slate-void"]=!0,!c&&f&&(g.contentEditable=!1);var[[x]]=u.NB.texts(r);p=d.createElement(f?"span":"div",{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},d.createElement(eR,{renderPlaceholder:o,decorations:[],isLast:!1,parent:r,text:x})),w.set(x,0),b.set(x,r)}return a({attributes:g,children:p,element:r})},eN=d.memo(eP,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&ey(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&u.e6.equals(e.selection,t.selection))),eW=e=>{var{attributes:t,children:r,element:a}=e,n=eO().isInline(a)?"span":"div";return d.createElement(n,Object.assign({},t,{style:{position:"relative"}}),r)},ej=(0,d.createContext)(()=>[]),eA=()=>(0,d.useContext)(ej),eI=(0,d.createContext)(!1),eq=()=>(0,d.useContext)(eI),eY=e=>{for(var{decorations:t,node:r,renderElement:a,renderPlaceholder:n,renderLeaf:o,selection:i}=e,s=eA(),l=eO(),c=ew.findPath(l,r),f=[],v=u.W_.isElement(r)&&!l.isInline(r)&&u.ML.hasInlines(l,r),h=0;h(0,d.useContext)(e$),e_=(0,d.createContext)(null),ez=()=>{var e=(0,d.useContext)(e_);if(!e)throw Error("The `useSlate` hook must be used inside the component's context.");var{editor:t}=e;return t},eV={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},eH={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},eK={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},eX=e=>{var t=eV[e],r=eH[e],a=eK[e],n=t&&(0,f.TB)(t),o=r&&(0,f.TB)(r),i=a&&(0,f.TB)(a);return e=>!!(n&&n(e)||eo&&o&&o(e)||!eo&&i&&i(e))},eJ={isBold:eX("bold"),isCompose:eX("compose"),isMoveBackward:eX("moveBackward"),isMoveForward:eX("moveForward"),isDeleteBackward:eX("deleteBackward"),isDeleteForward:eX("deleteForward"),isDeleteLineBackward:eX("deleteLineBackward"),isDeleteLineForward:eX("deleteLineForward"),isDeleteWordBackward:eX("deleteWordBackward"),isDeleteWordForward:eX("deleteWordForward"),isExtendBackward:eX("extendBackward"),isExtendForward:eX("extendForward"),isExtendLineBackward:eX("extendLineBackward"),isExtendLineForward:eX("extendLineForward"),isItalic:eX("italic"),isMoveLineBackward:eX("moveLineBackward"),isMoveLineForward:eX("moveLineForward"),isMoveWordBackward:eX("moveWordBackward"),isMoveWordForward:eX("moveWordForward"),isRedo:eX("redo"),isSoftBreak:eX("insertSoftBreak"),isSplitBlock:eX("splitBlock"),isTransposeCharacter:eX("transposeCharacter"),isUndo:eX("undo")},eQ=(e,t)=>{var r=[],a=()=>{r=[]},n=a=>{if(t.current){var n=a.filter(t=>er(e,t,a));r.push(...n)}};return{registerMutations:n,restoreDOM:function(){r.reverse().forEach(e=>{if("characterData"===e.type){e.target.textContent=e.oldValue;return}e.removedNodes.forEach(t=>{e.target.insertBefore(t,e.nextSibling)}),e.addedNodes.forEach(t=>{e.target.removeChild(t)})}),a()},clear:a}},eZ={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class eG extends d.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var e,{node:t}=this.props;if(!t.current)throw Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,eZ)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=eQ(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,r,a,n=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();return null!=n&&n.length&&(null===(a=this.manager)||void 0===a||a.registerMutations(n)),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(r=this.manager)||void 0===r||r.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}eG.contextType=eC;var e0=ei?eG:e=>{var{children:t}=e;return d.createElement(d.Fragment,null,t)};function e1(e,t){var{start:r,end:a,text:n}=t,o=e.slice(r,a),i=function(e,t){for(var r=Math.min(e.length,t.length),a=0;au.ML.isBlock(e,t),at:r});if(!o)return null;for(;a>n.text.length;){var i=u.ML.next(e,{at:r,match:u.xv.isText});if(!i||!u.y$.isDescendant(i[1],o[1]))return null;a-=n.text.length,n=i[0],r=i[1]}return{path:r,offset:a}}function e2(e,t){var r=e6(e,t.anchor);if(!r)return null;if(u.e6.isCollapsed(t))return{anchor:r,focus:r};var a=e6(e,t.focus);return a?{anchor:r,focus:a}:null}function e9(e,t,r){var a=N.get(e),n=null==a?void 0:a.find(e=>{var{path:r}=e;return u.y$.equals(r,t.path)});if(!n||t.offset<=n.diff.start)return u.E9.transform(t,r,{affinity:"backward"});var{diff:o}=n;if(t.offset<=o.start+o.text.length){var i={path:t.path,offset:o.start},s=u.E9.transform(i,r,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-o.start}:null}var l={path:t.path,offset:t.offset-o.text.length+o.end-o.start},d=u.E9.transform(l,r,{affinity:"backward"});return d?"split_node"===r.type&&u.y$.equals(r.path,t.path)&&l.offsetd.createElement(d.Fragment,null,eY(e)),ts=e=>{var t,r,a,o,{autoFocus:s,decorate:c=td,onDOMBeforeInput:f,placeholder:v,readOnly:g=!1,renderElement:m,renderLeaf:w,renderPlaceholder:b=e=>d.createElement(tl,Object.assign({},e)),scrollSelectionIntoView:L=tc,style:D={},as:B="div"}=e,Y=p(e,tr),U=ez(),[H,X]=(0,d.useState)(!1),J=(0,d.useRef)(null),Q=(0,d.useRef)([]),{onUserInput:Z,receivedUserInput:G}=(t=eO(),r=(0,d.useRef)(!1),a=(0,d.useRef)(0),o=(0,d.useCallback)(()=>{if(!r.current){r.current=!0;var e=ew.getWindow(t);e.cancelAnimationFrame(a.current),a.current=e.requestAnimationFrame(()=>{r.current=!1})}},[]),(0,d.useEffect)(()=>()=>cancelAnimationFrame(a.current),[]),{receivedUserInput:r,onUserInput:o}),[,ee]=(0,d.useReducer)(e=>e+1,0);A.set(U,ee),C.set(U,g);var et=(0,d.useMemo)(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);(0,d.useEffect)(()=>{J.current&&s&&J.current.focus()},[s]);var ea=(0,d.useCallback)(l()(()=>{if((ei||!ew.isComposing(U))&&(!et.isUpdatingSelection||null!=ed&&ed.isFlushing())&&!et.isDraggingInternally){var e=ew.findDocumentOrShadowRoot(U),{activeElement:t}=e,r=ew.toDOMNode(U,U),a=e.getSelection();if(t===r?(et.latestElement=t,O.set(U,!0)):O.delete(U),!a)return u.YR.deselect(U);var{anchorNode:n,focusNode:o}=a,i=ew.hasEditableTarget(U,n)||ew.isTargetInsideNonReadonlyVoid(U,n),s=ew.hasEditableTarget(U,o)||ew.isTargetInsideNonReadonlyVoid(U,o);if(i&&s){var l=ew.toSlateRange(U,a,{exactMatch:!1,suppressThrow:!0});l&&(ew.isComposing(U)||null!=ed&&ed.hasPendingChanges()||null!=ed&&ed.isFlushing()?null==ed||ed.handleUserSelect(l):u.YR.select(U,l))}!g||i&&s||u.YR.deselect(U)}},100),[g]),eo=(0,d.useMemo)(()=>i()(ea,0),[ea]),ed=function(e){var t,{node:r}=e,a=p(e,e8);if(!ei)return null;var n=eO(),o=(t=(0,d.useRef)(!1),(0,d.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),t.current),[i]=(0,d.useState)(()=>(function(e){var{editor:t,scheduleOnDOMSelectionChange:r,onDOMSelectionChange:a}=e,n=!1,o=null,i=null,s=null,l=0,d=!1,c=()=>{var e=j.get(t);if(j.delete(t),e){var{selection:r}=t,a=e2(t,e);!a||r&&u.e6.equals(a,r)||u.YR.select(t,a)}},f=()=>{var e=W.get(t);if(W.delete(t),e){if(e.at){var r=u.E9.isPoint(e.at)?e6(t,e.at):e2(t,e.at);if(!r)return;var a=u.ML.range(t,r);t.selection&&u.e6.equals(t.selection,a)||u.YR.select(t,r)}e.run()}},v=()=>{if(i&&(clearTimeout(i),i=null),s&&(clearTimeout(s),s=null),!x()&&!M()){c();return}n||(n=!0,setTimeout(()=>n=!1)),M()&&(n="action");var e=t.selection&&u.ML.rangeRef(t,t.selection,{affinity:"forward"});P.set(t,t.marks),e5("flush",W.get(t),N.get(t));for(var o=!!(null!==(l=N.get(t))&&void 0!==l&&l.length);v=null===(h=N.get(t))||void 0===h?void 0:h[0];){var l,v,h,p,g=R.get(t);void 0!==g&&(R.delete(t),t.marks=g),g&&!1===d&&(d=null);var m=function(e){var{path:t,diff:r}=e;return{anchor:{path:t,offset:r.start},focus:{path:t,offset:r.end}}}(v);t.selection&&u.e6.equals(t.selection,m)||u.YR.select(t,m),v.diff.text?u.ML.insertText(t,v.diff.text):u.ML.deleteFragment(t),N.set(t,null===(p=N.get(t))||void 0===p?void 0:p.filter(e=>{var{id:t}=e;return t!==v.id})),!function(e,t){var{path:r,diff:a}=t;if(!u.ML.hasPath(e,r))return!1;var n=u.NB.get(e,r);if(!u.xv.isText(n))return!1;if(a.start!==n.text.length||0===a.text.length)return n.text.slice(a.start,a.start+a.text.length)===a.text;var o=u.y$.next(r);if(!u.ML.hasPath(e,o))return!1;var i=u.NB.get(e,o);return u.xv.isText(i)&&i.text.startsWith(a.text)}(t,v)&&(o=!1,W.delete(t),P.delete(t),n="action",j.delete(t),r.cancel(),a.cancel(),null==e||e.unref())}var w=null==e?void 0:e.unref();if(!w||j.get(t)||t.selection&&u.e6.equals(w,t.selection)||u.YR.select(t,w),M()){f();return}o&&r(),r.flush(),a.flush(),c();var b=P.get(t);P.delete(t),void 0!==b&&(t.marks=b,t.onChange())},h=e=>{o&&clearTimeout(o),o=setTimeout(()=>{S.set(t,!1),v()},25)},p=e=>{S.set(t,!0),o&&(clearTimeout(o),o=null)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=k.get(t);if(r){if(x()||e){r.style.display="none";return}r.style.removeProperty("display")}},m=(e,r)=>{var a,n,o,i,s,d,c,f,v,h=null!==(v=N.get(t))&&void 0!==v?v:[];N.set(t,h);var p=u.NB.leaf(t,e),m=h.findIndex(t=>u.y$.equals(t.path,e));if(m<0){e1(p.text,r)&&h.push({path:e,diff:r,id:l++}),g();return}var w=(a=p.text,o=Math.min((n=h[m].diff).start,r.start),i=Math.max(0,Math.min(n.start+n.text.length,r.end)-r.start),s=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;ae.slice(0,t.start)+t.text+e.slice(t.end),e)}(a,n,r),d=Math.max(r.start+r.text.length,n.start+n.text.length+(n.start+n.text.length>r.start?r.text.length:0)-i),c=s.slice(o,d),f=Math.max(n.end,r.end-n.text.length+(n.end-n.start)),e1(a,{start:o,end:f,text:c}));if(!w){h.splice(m,1),g();return}h[m]=e4(e4({},h[m]),{},{diff:w})},w=function(e){var{at:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d=!1,j.delete(t),r.cancel(),a.cancel(),M()&&v(),W.set(t,{at:n,run:e}),s=setTimeout(v)},b=e=>{i&&(clearTimeout(i),i=null);var{inputType:r}=e,a=null,n=e.dataTransfer||e.data||void 0;!1!==d&&"insertText"!==r&&"insertCompositionText"!==r&&(d=!1);var[o]=e.getTargetRanges();o&&(a=ew.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!0}));var s=ew.getWindow(t).getSelection();if(!a&&s&&(o=s,a=ew.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0})),a=null!==(M=a)&&void 0!==M?M:t.selection){if(u.e6.isExpanded(a)&&r.startsWith("delete")){var[l,c]=u.e6.edges(a);if(u.NB.leaf(t,l.path).text.length===l.offset&&0===c.offset){var f=u.ML.next(t,{at:l.path,match:u.xv.isText});f&&u.y$.equals(f[1],c.path)&&(a={anchor:c,focus:c})}}if(u.e6.isExpanded(a)&&r.startsWith("delete")){if(u.y$.equals(a.anchor.path,a.focus.path)){var[v,h]=u.e6.edges(a);return m(a.anchor.path,{text:"",end:h.offset,start:v.offset})}var p=r.endsWith("Backward")?"backward":"forward";return w(()=>u.ML.deleteFragment(t,{direction:p}),{at:a})}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return w(()=>u.ML.deleteFragment(t),{at:a});case"deleteContent":case"deleteContentForward":var{anchor:g}=a;if(u.e6.isCollapsed(a)){var b=u.NB.leaf(t,g.path);if(g.offsetu.ML.deleteForward(t),{at:a});case"deleteContentBackward":var M,x,{anchor:k}=a;if((V(o)?o.isCollapsed:!!(null!==(x=o)&&void 0!==x&&x.collapsed))&&u.e6.isCollapsed(a)&&k.offset>0)return m(k.path,{text:"",start:k.offset-1,end:k.offset});return w(()=>u.ML.deleteBackward(t),{at:a});case"deleteEntireSoftLine":return w(()=>{u.ML.deleteBackward(t,{unit:"line"}),u.ML.deleteForward(t,{unit:"line"})},{at:a});case"deleteHardLineBackward":return w(()=>u.ML.deleteBackward(t,{unit:"block"}),{at:a});case"deleteSoftLineBackward":return w(()=>u.ML.deleteBackward(t,{unit:"line"}),{at:a});case"deleteHardLineForward":return w(()=>u.ML.deleteForward(t,{unit:"block"}),{at:a});case"deleteSoftLineForward":return w(()=>u.ML.deleteForward(t,{unit:"line"}),{at:a});case"deleteWordBackward":return w(()=>u.ML.deleteBackward(t,{unit:"word"}),{at:a});case"deleteWordForward":return w(()=>u.ML.deleteForward(t,{unit:"word"}),{at:a});case"insertLineBreak":return w(()=>u.ML.insertSoftBreak(t),{at:a});case"insertParagraph":return w(()=>u.ML.insertBreak(t),{at:a});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if((null==n?void 0:n.constructor.name)==="DataTransfer")return w(()=>ew.insertData(t,n),{at:a});if("string"==typeof n&&n.includes("\n"))return w(()=>u.ML.insertSoftBreak(t),{at:u.e6.end(a)});var y=null!=n?n:"";if(R.get(t)&&(y=y.replace("\uFEFF","")),u.y$.equals(a.anchor.path,a.focus.path)){var[E,L]=u.e6.edges(a),D={start:E.offset,end:L.offset,text:y};if(y&&d&&"insertCompositionText"===r){var O=d.start+d.text.search(/\S|$/);D.start+D.text.search(/\S|$/)===O+1&&D.end===d.start+d.text.length?(D.start-=1,d=null,C()):d=!1}else d="insertText"===r&&(null===d?D:!!(d&&u.e6.isCollapsed(a))&&d.end+d.text.length===E.offset&&e4(e4({},d),{},{text:d.text+y}));m(E.path,D);return}return w(()=>u.ML.insertText(t,y),{at:a})}}},M=()=>!!W.get(t),x=()=>{var e;return!!(null!==(e=N.get(t))&&void 0!==e&&e.length)},y=()=>M()||x(),E=e=>{j.set(t,e),i&&(clearTimeout(i),i=null);var{selection:r}=t;if(e){var a=!r||!u.y$.equals(r.anchor.path,e.anchor.path),n=!r||!u.y$.equals(r.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(a&&d||n)&&(d=!1),(a||!x())&&(i=setTimeout(v,200))}},L=()=>{(M()||!x())&&v()},D=e=>{x()||(g(!0),setTimeout(g))},C=()=>{M()||(s=setTimeout(v))},O=e=>{if(!(x()||M())&&e.some(r=>er(t,r,e))){var r;null===(r=A.get(t))||void 0===r||r()}};return{flush:v,scheduleFlush:C,hasPendingDiffs:x,hasPendingAction:M,hasPendingChanges:y,isFlushing:()=>n,handleUserSelect:E,handleCompositionEnd:h,handleCompositionStart:p,handleDOMBeforeInput:b,handleKeyDown:D,handleDomMutations:O,handleInput:L}})(function(e){for(var t=1;tnew MutationObserver(t));eb(()=>{a.takeRecords()}),(0,d.useEffect)(()=>{if(!e.current)throw Error("Failed to attach MutationObserver, `node` is undefined");return a.observe(e.current,r),()=>a.disconnect()},[])}(r,i.handleDomMutations,tt),T.set(n,i.scheduleFlush),o&&i.flush(),i}({node:J,onDOMSelectionChange:ea,scheduleOnDOMSelectionChange:eo});eb(()=>{J.current&&(e=$(J.current))?(M.set(U,e),x.set(U,J.current),E.set(U,J.current),y.set(J.current,U)):E.delete(U);var e,{selection:t}=U,r=ew.findDocumentOrShadowRoot(U).getSelection();if(!(!r||!ew.isFocused(U)||null!=ed&&ed.hasPendingAction())){var a=e=>{var a="None"!==r.type;if(t||a){var n=x.get(U),o=!1;if(n.contains(r.anchorNode)&&n.contains(r.focusNode)&&(o=!0),a&&o&&t&&!e){var i=ew.toSlateRange(U,r,{exactMatch:!0,suppressThrow:!0});if(i&&u.e6.equals(i,t)){if(!et.hasMarkPlaceholder)return;var s,{anchorNode:l}=r;if(null!=l&&null!==(s=l.parentElement)&&void 0!==s&&s.hasAttribute("data-slate-mark-placeholder"))return}}if(t&&!ew.hasRange(U,t)){U.selection=ew.toSlateRange(U,r,{exactMatch:!1,suppressThrow:!0});return}et.isUpdatingSelection=!0;var d=t&&ew.toDOMRange(U,t);return d?(u.e6.isBackward(t)?r.setBaseAndExtent(d.endContainer,d.endOffset,d.startContainer,d.startOffset):r.setBaseAndExtent(d.startContainer,d.startOffset,d.endContainer,d.endOffset),L(U,d)):r.removeAllRanges(),d}},n=a(),o=(null==ed?void 0:ed.isFlushing())==="action";if(!ei||!o){setTimeout(()=>{n&&es&&ew.toDOMNode(U,U).focus(),et.isUpdatingSelection=!1});return}var i=null,s=requestAnimationFrame(()=>{if(o){var e=e=>{try{ew.toDOMNode(U,U).focus(),a(e)}catch(t){}};e(),i=setTimeout(()=>{e(!0),et.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(s),i&&clearTimeout(i)}}});var eu=(0,d.useCallback)(e=>{if(Z(),!g&&ew.hasEditableTarget(U,e.target)&&!tf(e,f)){if(ed)return ed.handleDOMBeforeInput(e);eo.flush(),ea.flush();var{selection:t}=U,{inputType:r}=e,a=e.dataTransfer||e.data||void 0,n="insertCompositionText"===r||"deleteCompositionText"===r;if(!(n&&ew.isComposing(U))){var o=!1;if("insertText"===r&&t&&u.e6.isCollapsed(t)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==t.anchor.offset){o=!0,U.marks&&(o=!1);var{anchor:i}=t,[s,l]=ew.toDOMPoint(U,i),d=null===(h=s.parentElement)||void 0===h?void 0:h.closest("a"),c=ew.getWindow(U);if(o&&d&&ew.hasDOMNode(U,d)){var v,h,p,m,w=null==c?void 0:c.document.createTreeWalker(d,NodeFilter.SHOW_TEXT).lastChild();w===s&&(null===(m=w.textContent)||void 0===m?void 0:m.length)===l&&(o=!1)}if(o&&s.parentElement&&(null==c?void 0:null===(p=c.getComputedStyle(s.parentElement))||void 0===p?void 0:p.whiteSpace)==="pre"){var b=u.ML.above(U,{at:i.path,match:e=>u.ML.isBlock(U,e)});b&&u.NB.string(b[0]).includes(" ")&&(o=!1)}}if(!r.startsWith("delete")||r.startsWith("deleteBy")){var[M]=e.getTargetRanges();if(M){var x=ew.toSlateRange(U,M,{exactMatch:!1,suppressThrow:!1});if(!t||!u.e6.equals(t,x)){o=!1;var k=!n&&U.selection&&u.ML.rangeRef(U,U.selection);u.YR.select(U,x),k&&F.set(U,k)}}}if(!n){if(o||e.preventDefault(),t&&u.e6.isExpanded(t)&&r.startsWith("delete")){var y=r.endsWith("Backward")?"backward":"forward";u.ML.deleteFragment(U,{direction:y});return}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":u.ML.deleteFragment(U);break;case"deleteContent":case"deleteContentForward":u.ML.deleteForward(U);break;case"deleteContentBackward":u.ML.deleteBackward(U);break;case"deleteEntireSoftLine":u.ML.deleteBackward(U,{unit:"line"}),u.ML.deleteForward(U,{unit:"line"});break;case"deleteHardLineBackward":u.ML.deleteBackward(U,{unit:"block"});break;case"deleteSoftLineBackward":u.ML.deleteBackward(U,{unit:"line"});break;case"deleteHardLineForward":u.ML.deleteForward(U,{unit:"block"});break;case"deleteSoftLineForward":u.ML.deleteForward(U,{unit:"line"});break;case"deleteWordBackward":u.ML.deleteBackward(U,{unit:"word"});break;case"deleteWordForward":u.ML.deleteForward(U,{unit:"word"});break;case"insertLineBreak":u.ML.insertSoftBreak(U);break;case"insertParagraph":u.ML.insertBreak(U);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===r&&ew.isComposing(U)&&(X(!1),S.set(U,!1)),(null==a?void 0:a.constructor.name)==="DataTransfer"?ew.insertData(U,a):"string"==typeof a&&(o?Q.current.push(()=>u.ML.insertText(U,a)):u.ML.insertText(U,a))}var E=null===(v=F.get(U))||void 0===v?void 0:v.unref();F.delete(U),!E||U.selection&&u.e6.equals(U.selection,E)||u.YR.select(U,E)}}}},[g,f]);eb(()=>(J.current&&em&&J.current.addEventListener("beforeinput",eu),()=>{J.current&&em&&J.current.removeEventListener("beforeinput",eu)}),[eu]),eb(()=>{var e=ew.getWindow(U);return e.document.addEventListener("selectionchange",eo),()=>{e.document.removeEventListener("selectionchange",eo)}},[eo]);var eM=c([U,[]]);if(v&&1===U.children.length&&1===Array.from(u.NB.texts(U)).length&&""===u.NB.string(U)&&!H){var ex=u.ML.start(U,[]);eM.push({[I]:!0,placeholder:v,anchor:ex,focus:ex})}var{marks:ek}=U;if(et.hasMarkPlaceholder=!1,U.selection&&u.e6.isCollapsed(U.selection)&&ek){var{anchor:ey}=U.selection,eE=u.NB.leaf(U,ey.path),eL=p(eE,ta);if(!u.xv.equals(eE,ek,{loose:!0})){et.hasMarkPlaceholder=!0;var eD=Object.fromEntries(Object.keys(eL).map(e=>[e,null]));eM.push(to(to(to({[q]:!0},eD),ek),{},{anchor:ey,focus:ey}))}}return(0,d.useEffect)(()=>{setTimeout(()=>{var{selection:e}=U;if(e){var{anchor:t}=e,r=u.NB.leaf(U,t.path);if(ek&&!u.xv.equals(r,ek,{loose:!0})){R.set(U,ek);return}}R.delete(U)})}),d.createElement(e$.Provider,{value:g},d.createElement(ej.Provider,{value:c},d.createElement(e0,{node:J,receivedUserInput:G},d.createElement(B,Object.assign({role:g?void 0:"textbox","aria-multiline":!g||void 0},Y,{spellCheck:(!!em||!eg)&&Y.spellCheck,autoCorrect:em||!eg?Y.autoCorrect:"false",autoCapitalize:em||!eg?Y.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!g,zindex:-1,suppressContentEditableWarning:!0,ref:J,style:to({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},D),onBeforeInput:(0,d.useCallback)(e=>{if(!em&&!g&&!tu(e,Y.onBeforeInput)&&ew.hasSelectableTarget(U,e.target)&&(e.preventDefault(),!ew.isComposing(U))){var t=e.data;u.ML.insertText(U,t)}},[g]),onInput:(0,d.useCallback)(e=>{if(ed){ed.handleInput();return}for(var t of Q.current)t();Q.current=[]},[]),onBlur:(0,d.useCallback)(e=>{if(!(g||et.isUpdatingSelection||!ew.hasSelectableTarget(U,e.target)||tu(e,Y.onBlur))){var t=ew.findDocumentOrShadowRoot(U);if(et.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(!(r===ew.toDOMNode(U,U)||_(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&z(r)&&ew.hasDOMNode(U,r)){var a=ew.toSlateNode(U,r);if(u.W_.isElement(a)&&!U.isVoid(a))return}if(el){var n=t.getSelection();null==n||n.removeAllRanges()}O.delete(U)}}}},[g,Y.onBlur]),onClick:(0,d.useCallback)(e=>{if(ew.hasTarget(U,e.target)&&!tu(e,Y.onClick)&&z(e.target)){var t=ew.toSlateNode(U,e.target),r=ew.findPath(U,t);if(u.ML.hasPath(U,r)&&u.NB.get(U,r)===t){if(3===e.detail&&r.length>=1){var a=r;if(!u.ML.isBlock(U,t)){var n,o=u.ML.above(U,{match:e=>u.ML.isBlock(U,e),at:r});a=null!==(n=null==o?void 0:o[1])&&void 0!==n?n:r.slice(0,1)}var i=u.ML.range(U,a);u.YR.select(U,i);return}if(!g){var s=u.ML.start(U,r),l=u.ML.end(U,r),d=u.ML.void(U,{at:s}),c=u.ML.void(U,{at:l});if(d&&c&&u.y$.equals(d[1],c[1])){var f=u.ML.range(U,s);u.YR.select(U,f)}}}}},[g,Y.onClick]),onCompositionEnd:(0,d.useCallback)(e=>{if(ew.hasSelectableTarget(U,e.target)&&(ew.isComposing(U)&&(X(!1),S.set(U,!1)),null==ed||ed.handleCompositionEnd(e),!tu(e,Y.onCompositionEnd)&&!ei&&!el&&!ef&&!en&&!ev&&!ep&&!eh&&e.data)){var t=R.get(U);R.delete(U),void 0!==t&&(P.set(U,U.marks),U.marks=t),u.ML.insertText(U,e.data);var r=P.get(U);P.delete(U),void 0!==r&&(U.marks=r)}},[Y.onCompositionEnd]),onCompositionUpdate:(0,d.useCallback)(e=>{!ew.hasSelectableTarget(U,e.target)||tu(e,Y.onCompositionUpdate)||ew.isComposing(U)||(X(!0),S.set(U,!0))},[Y.onCompositionUpdate]),onCompositionStart:(0,d.useCallback)(e=>{if(ew.hasSelectableTarget(U,e.target)&&(null==ed||ed.handleCompositionStart(e),!tu(e,Y.onCompositionStart)&&!ei)){X(!0);var{selection:t}=U;if(t){if(u.e6.isExpanded(t)){u.ML.deleteFragment(U);return}var r=u.ML.above(U,{match:e=>u.ML.isInline(U,e),mode:"highest"});if(r){var[,a]=r;if(u.ML.isEnd(U,t.anchor,a)){var n=u.ML.after(U,a);u.YR.setSelection(U,{anchor:n,focus:n})}}}}},[Y.onCompositionStart]),onCopy:(0,d.useCallback)(e=>{ew.hasSelectableTarget(U,e.target)&&!tu(e,Y.onCopy)&&(e.preventDefault(),ew.setFragmentData(U,e.clipboardData,"copy"))},[Y.onCopy]),onCut:(0,d.useCallback)(e=>{if(!g&&ew.hasSelectableTarget(U,e.target)&&!tu(e,Y.onCut)){e.preventDefault(),ew.setFragmentData(U,e.clipboardData,"cut");var{selection:t}=U;if(t){if(u.e6.isExpanded(t))u.ML.deleteFragment(U);else{var r=u.NB.parent(U,t.anchor.path);u.ML.isVoid(U,r)&&u.YR.delete(U)}}}},[g,Y.onCut]),onDragOver:(0,d.useCallback)(e=>{if(ew.hasTarget(U,e.target)&&!tu(e,Y.onDragOver)){var t=ew.toSlateNode(U,e.target);u.ML.isVoid(U,t)&&e.preventDefault()}},[Y.onDragOver]),onDragStart:(0,d.useCallback)(e=>{if(!g&&ew.hasTarget(U,e.target)&&!tu(e,Y.onDragStart)){var t=ew.toSlateNode(U,e.target),r=ew.findPath(U,t);if(u.ML.isVoid(U,t)||u.ML.void(U,{at:r,voids:!0})){var a=u.ML.range(U,r);u.YR.select(U,a)}et.isDraggingInternally=!0,ew.setFragmentData(U,e.dataTransfer,"drag")}},[g,Y.onDragStart]),onDrop:(0,d.useCallback)(e=>{if(!g&&ew.hasTarget(U,e.target)&&!tu(e,Y.onDrop)){e.preventDefault();var t=U.selection,r=ew.findEventRange(U,e),a=e.dataTransfer;u.YR.select(U,r),et.isDraggingInternally&&t&&!u.e6.equals(t,r)&&!u.ML.void(U,{at:r,voids:!0})&&u.YR.delete(U,{at:t}),ew.insertData(U,a),ew.isFocused(U)||ew.focus(U)}et.isDraggingInternally=!1},[g,Y.onDrop]),onDragEnd:(0,d.useCallback)(e=>{!g&&et.isDraggingInternally&&Y.onDragEnd&&ew.hasTarget(U,e.target)&&Y.onDragEnd(e),et.isDraggingInternally=!1},[g,Y.onDragEnd]),onFocus:(0,d.useCallback)(e=>{if(!g&&!et.isUpdatingSelection&&ew.hasSelectableTarget(U,e.target)&&!tu(e,Y.onFocus)){var t=ew.toDOMNode(U,U),r=ew.findDocumentOrShadowRoot(U);if(et.latestElement=r.activeElement,es&&e.target!==t){t.focus();return}O.set(U,!0)}},[g,Y.onFocus]),onKeyDown:(0,d.useCallback)(e=>{if(!g&&ew.hasEditableTarget(U,e.target)){null==ed||ed.handleKeyDown(e);var{nativeEvent:t}=e;if(ew.isComposing(U)&&!1===t.isComposing&&(S.set(U,!1),X(!1)),!(tu(e,Y.onKeyDown)||ew.isComposing(U))){var{selection:r}=U,a=U.children[null!==r?r.focus.path[0]:0],o="rtl"===n()(u.NB.string(a));if(eJ.isRedo(t)){e.preventDefault(),"function"==typeof U.redo&&U.redo();return}if(eJ.isUndo(t)){e.preventDefault(),"function"==typeof U.undo&&U.undo();return}if(eJ.isMoveLineBackward(t)){e.preventDefault(),u.YR.move(U,{unit:"line",reverse:!0});return}if(eJ.isMoveLineForward(t)){e.preventDefault(),u.YR.move(U,{unit:"line"});return}if(eJ.isExtendLineBackward(t)){e.preventDefault(),u.YR.move(U,{unit:"line",edge:"focus",reverse:!0});return}if(eJ.isExtendLineForward(t)){e.preventDefault(),u.YR.move(U,{unit:"line",edge:"focus"});return}if(eJ.isMoveBackward(t)){e.preventDefault(),r&&u.e6.isCollapsed(r)?u.YR.move(U,{reverse:!o}):u.YR.collapse(U,{edge:"start"});return}if(eJ.isMoveForward(t)){e.preventDefault(),r&&u.e6.isCollapsed(r)?u.YR.move(U,{reverse:o}):u.YR.collapse(U,{edge:"end"});return}if(eJ.isMoveWordBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)&&u.YR.collapse(U,{edge:"focus"}),u.YR.move(U,{unit:"word",reverse:!o});return}if(eJ.isMoveWordForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)&&u.YR.collapse(U,{edge:"focus"}),u.YR.move(U,{unit:"word",reverse:o});return}if(em){if((ec||el)&&r&&(eJ.isDeleteBackward(t)||eJ.isDeleteForward(t))&&u.e6.isCollapsed(r)){var i=u.NB.parent(U,r.anchor.path);if(u.W_.isElement(i)&&u.ML.isVoid(U,i)&&(u.ML.isInline(U,i)||u.ML.isBlock(U,i))){e.preventDefault(),u.ML.deleteBackward(U,{unit:"block"});return}}}else{if(eJ.isBold(t)||eJ.isItalic(t)||eJ.isTransposeCharacter(t)){e.preventDefault();return}if(eJ.isSoftBreak(t)){e.preventDefault(),u.ML.insertSoftBreak(U);return}if(eJ.isSplitBlock(t)){e.preventDefault(),u.ML.insertBreak(U);return}if(eJ.isDeleteBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(U,{direction:"backward"}):u.ML.deleteBackward(U);return}if(eJ.isDeleteForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(U,{direction:"forward"}):u.ML.deleteForward(U);return}if(eJ.isDeleteLineBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(U,{direction:"backward"}):u.ML.deleteBackward(U,{unit:"line"});return}if(eJ.isDeleteLineForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(U,{direction:"forward"}):u.ML.deleteForward(U,{unit:"line"});return}if(eJ.isDeleteWordBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(U,{direction:"backward"}):u.ML.deleteBackward(U,{unit:"word"});return}if(eJ.isDeleteWordForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(U,{direction:"forward"}):u.ML.deleteForward(U,{unit:"word"});return}}}}},[g,Y.onKeyDown]),onPaste:(0,d.useCallback)(e=>{!g&&ew.hasSelectableTarget(U,e.target)&&!tu(e,Y.onPaste)&&(!em||K(e.nativeEvent))&&(e.preventDefault(),ew.insertData(U,e.clipboardData))},[g,Y.onPaste])}),d.createElement(ti,{decorations:eM,node:U,renderElement:m,renderPlaceholder:b,renderLeaf:w,selection:U.selection})))))},tl=e=>{var{attributes:t,children:r}=e;return d.createElement("span",Object.assign({},t),r,ei&&d.createElement("br",null))},td=()=>[],tc=(e,t)=>{if(!e.selection||e.selection&&u.e6.isCollapsed(e.selection)){var r=t.startContainer.parentElement;r.getBoundingClientRect=t.getBoundingClientRect.bind(t),(0,c.Z)(r,{scrollMode:"if-needed"}),delete r.getBoundingClientRect}},tu=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.isDefaultPrevented()||e.isPropagationStopped()},tf=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.defaultPrevented},tv=(0,d.createContext)(!1),th=()=>(0,d.useContext)(tv),tp=(0,d.createContext)({}),tg=["editor","children","onChange","value"],tm=e=>{var t,r,a,n,{editor:o,children:i,onChange:s,value:l}=e,c=p(e,tg),f=(0,d.useRef)(!1),[v,h]=d.useState(()=>{if(!u.NB.isNodeList(l))throw Error("[Slate] value is invalid! Expected a list of elements but got: ".concat(u.o4.stringify(l)));if(!u.ML.isEditor(o))throw Error("[Slate] editor is invalid! You passed: ".concat(u.o4.stringify(o)));return o.children=l,Object.assign(o,c),{v:0,editor:o}}),{selectorContext:g,onChange:m}=(t=(0,d.useRef)([]).current,r=(0,d.useRef)({editor:o}).current,a=(0,d.useCallback)(e=>{r.editor=e,t.forEach(t=>t(e))},[]),n=(0,d.useMemo)(()=>({getSlate:()=>r.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})}),[t,r]),{selectorContext:n,onChange:a}),w=(0,d.useCallback)(()=>{s&&s(o.children),h(e=>({v:e.v+1,editor:o})),m(o)},[s]);B.set(o,w),(0,d.useEffect)(()=>()=>{B.set(o,()=>{}),f.current=!0},[]);var[b,M]=(0,d.useState)(ew.isFocused(o));return(0,d.useEffect)(()=>{M(ew.isFocused(o))}),eb(()=>{var e=()=>M(ew.isFocused(o));return ea?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})},[]),d.createElement(tp.Provider,{value:g},d.createElement(e_.Provider,{value:v},d.createElement(eC.Provider,{value:v.editor},d.createElement(tv.Provider,{value:b},i))))},tw=(e,t)=>{var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},tb=(e,t,r)=>{var a=ew.toDOMRange(e,t).getBoundingClientRect(),n=ew.toDOMRange(e,r).getBoundingClientRect();return tw(a,n)&&tw(n,a)},tM=(e,t)=>{var r=u.ML.range(e,u.e6.end(t)),a=Array.from(u.ML.positions(e,{at:t})),n=0,o=a.length,i=Math.floor(o/2);if(tb(e,u.ML.range(e,a[n]),r))return u.ML.range(e,a[n],r);if(a.length<2)return u.ML.range(e,a[a.length-1],r);for(;i!==a.length&&i!==n;)tb(e,u.ML.range(e,a[i]),r)?o=i:n=i,i=Math.floor((n+o)/2);return u.ML.range(e,a[o],r)};function tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function tk(e){for(var t=1;t{var t=e,{apply:r,onChange:a,deleteBackward:n,addMark:o,removeMark:i}=t;return D.set(t,new WeakMap),t.addMark=(e,r)=>{var a,n;null===(a=T.get(t))||void 0===a||a(),!R.get(t)&&null!==(n=N.get(t))&&void 0!==n&&n.length&&R.set(t,null),P.delete(t),o(e,r)},t.removeMark=e=>{var r;!R.get(t)&&null!==(r=N.get(t))&&void 0!==r&&r.length&&R.set(t,null),P.delete(t),i(e)},t.deleteBackward=e=>{if("line"!==e)return n(e);if(t.selection&&u.e6.isCollapsed(t.selection)){var r=u.ML.above(t,{match:e=>u.ML.isBlock(t,e),at:t.selection});if(r){var[,a]=r,o=u.ML.range(t,a,t.selection.anchor),i=tM(t,o);u.e6.isCollapsed(i)||u.YR.delete(t,{at:i})}}},t.apply=e=>{var a,n=[],o=N.get(t);if(null!=o&&o.length){var i=o.map(t=>(function(e,t){var{path:r,diff:a,id:n}=e;switch(t.type){case"insert_text":if(!u.y$.equals(t.path,r)||t.offset>=a.end)return e;if(t.offset<=a.start)return{diff:{start:t.text.length+a.start,end:t.text.length+a.end,text:a.text},id:n,path:r};return{diff:{start:a.start,end:a.end+t.text.length,text:a.text},id:n,path:r};case"remove_text":if(!u.y$.equals(t.path,r)||t.offset>=a.end)return e;if(t.offset+t.text.length<=a.start)return{diff:{start:a.start-t.text.length,end:a.end-t.text.length,text:a.text},id:n,path:r};return{diff:{start:a.start,end:a.end-t.text.length,text:a.text},id:n,path:r};case"split_node":if(!u.y$.equals(t.path,r)||t.position>=a.end)return{diff:a,id:n,path:u.y$.transform(r,t,{affinity:"backward"})};if(t.position>a.start)return{diff:{start:a.start,end:Math.min(t.position,a.end),text:a.text},id:n,path:r};return{diff:{start:a.start-t.position,end:a.end-t.position,text:a.text},id:n,path:u.y$.transform(r,t,{affinity:"forward"})};case"merge_node":if(!u.y$.equals(t.path,r))return{diff:a,id:n,path:u.y$.transform(r,t)};return{diff:{start:a.start+t.position,end:a.end+t.position,text:a.text},id:n,path:u.y$.transform(r,t)}}var o=u.y$.transform(r,t);return o?{diff:a,path:o,id:n}:null})(t,e)).filter(Boolean);N.set(t,i)}var s=j.get(t);s&&j.set(t,e3(t,s,e));var l=W.get(t);if(null!=l&&l.at){var d=u.E9.isPoint(null==l?void 0:l.at)?e9(t,l.at,e):e3(t,l.at,e);W.set(t,d?tk(tk({},l),{},{at:d}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":n.push(...tE(t,e.path));break;case"set_selection":null===(a=F.get(t))||void 0===a||a.unref(),F.delete(t);break;case"insert_node":case"remove_node":n.push(...tE(t,u.y$.parent(e.path)));break;case"merge_node":n.push(...tE(t,u.y$.previous(e.path)));break;case"move_node":n.push(...tE(t,u.y$.common(u.y$.parent(e.path),u.y$.parent(e.newPath))))}for(var[c,f]of(r(e),n)){var[v]=u.ML.node(t,c);L.set(v,f)}},t.setFragmentData=e=>{var{selection:r}=t;if(r){var[a,n]=u.e6.edges(r),o=u.ML.void(t,{at:a.path}),i=u.ML.void(t,{at:n.path});if(!u.e6.isCollapsed(r)||o){var s=ew.toDOMRange(t,r),l=s.cloneContents(),d=l.childNodes[0];if(l.childNodes.forEach(e=>{e.textContent&&""!==e.textContent.trim()&&(d=e)}),i){var[c]=i,f=s.cloneRange(),v=ew.toDOMNode(t,c);f.setEndAfter(v),l=f.cloneContents()}if(o&&(d=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach(e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),H(d)){var h=d.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(d),l.appendChild(h),d=h}var p=JSON.stringify(t.getFragment()),g=window.btoa(encodeURIComponent(p));d.setAttribute("data-slate-fragment",g),e.setData("application/x-slate-fragment",g);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",G(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=e=>{t.insertFragmentData(e)||t.insertTextData(e)},t.insertFragmentData=e=>{var r=e.getData("application/x-slate-fragment")||et(e);if(r){var a=JSON.parse(decodeURIComponent(window.atob(r)));return t.insertFragment(a),!0}return!1},t.insertTextData=e=>{var r=e.getData("text/plain");if(r){var a=r.split(/\r\n|\r|\n/),n=!1;for(var o of a)n&&u.YR.splitNodes(t,{always:!0}),t.insertText(o),n=!0;return!0}return!1},t.onChange=()=>{v.unstable_batchedUpdates(()=>{var e=B.get(t);e&&e(),a()})},t},tE=(e,t)=>{var r=[];for(var[a,n]of u.ML.levels(e,{at:t})){var o=ew.findKey(e,a);r.push([n,o])}return r}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/webpack-c4b69bcca4f42dd2.js b/static/web/_next/static/chunks/webpack-beafe4d3e86765a7.js similarity index 99% rename from static/web/_next/static/chunks/webpack-c4b69bcca4f42dd2.js rename to static/web/_next/static/chunks/webpack-beafe4d3e86765a7.js index d0c2c7743..9f785b7bf 100644 --- a/static/web/_next/static/chunks/webpack-c4b69bcca4f42dd2.js +++ b/static/web/_next/static/chunks/webpack-beafe4d3e86765a7.js @@ -1 +1 @@ -!function(){"use strict";var e,t,a,c,f,d,n,r,b,o,u,i,s={},l={};function h(e){var t=l[e];if(void 0!==t)return t.exports;var a=l[e]={id:e,loaded:!1,exports:{}},c=!0;try{s[e].call(a.exports,a,a.exports,h),c=!1}finally{c&&delete l[e]}return a.loaded=!0,a.exports}h.m=s,h.amdO={},e=[],h.O=function(t,a,c,f){if(a){f=f||0;for(var d=e.length;d>0&&e[d-1][2]>f;d--)e[d]=e[d-1];e[d]=[a,c,f];return}for(var n=1/0,d=0;d=f&&Object.keys(h.O).every(function(e){return h.O[e](a[b])})?a.splice(b--,1):(r=!1,f0&&e[d-1][2]>f;d--)e[d]=e[d-1];e[d]=[a,c,f];return}for(var n=1/0,d=0;d=f&&Object.keys(h.O).every(function(e){return h.O[e](a[b])})?a.splice(b--,1):(r=!1,fOwncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No data

\ No newline at end of file diff --git a/static/web/admin/actions/index.html b/static/web/admin/actions/index.html index 289ae8b68..87ed533cd 100644 --- a/static/web/admin/actions/index.html +++ b/static/web/admin/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No data

\ No newline at end of file diff --git a/static/web/admin/chat/messages/index.html b/static/web/admin/chat/messages/index.html index cdd881e86..74f4a26c1 100644 --- a/static/web/admin/chat/messages/index.html +++ b/static/web/admin/chat/messages/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No data
\ No newline at end of file diff --git a/static/web/admin/chat/users/index.html b/static/web/admin/chat/users/index.html index 9632f767e..d028bdb55 100644 --- a/static/web/admin/chat/users/index.html +++ b/static/web/admin/chat/users/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file diff --git a/static/web/admin/config-chat/index.html b/static/web/admin/config-chat/index.html index 5e84e2b0c..ac07ace50 100644 --- a/static/web/admin/config-chat/index.html +++ b/static/web/admin/config-chat/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/config-federation/index.html b/static/web/admin/config-federation/index.html index be8f9a1c6..9ed11700b 100644 --- a/static/web/admin/config-federation/index.html +++ b/static/web/admin/config-federation/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/config-notify/index.html b/static/web/admin/config-notify/index.html index e84489b54..ead850511 100644 --- a/static/web/admin/config-notify/index.html +++ b/static/web/admin/config-notify/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Custom

Build your own notifications by using custom webhooks.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Custom

Build your own notifications by using custom webhooks.

\ No newline at end of file diff --git a/static/web/admin/config-public-details/index.html b/static/web/admin/config-public-details/index.html index 4d4e83721..5676d8b5a 100644 --- a/static/web/admin/config-public-details/index.html +++ b/static/web/admin/config-public-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


\ No newline at end of file diff --git a/static/web/admin/config-server-details/index.html b/static/web/admin/config-server-details/index.html index 18b5ea229..f3fd39967 100644 --- a/static/web/admin/config-server-details/index.html +++ b/static/web/admin/config-server-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file diff --git a/static/web/admin/config-social-items/index.html b/static/web/admin/config-social-items/index.html index 6bd50d724..586ff1278 100644 --- a/static/web/admin/config-social-items/index.html +++ b/static/web/admin/config-social-items/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file diff --git a/static/web/admin/config-storage/index.html b/static/web/admin/config-storage/index.html index 6ba999a6c..aa903052b 100644 --- a/static/web/admin/config-storage/index.html +++ b/static/web/admin/config-storage/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file diff --git a/static/web/admin/config-video/index.html b/static/web/admin/config-video/index.html index c770f5d2f..adc8e3bfe 100644 --- a/static/web/admin/config-video/index.html +++ b/static/web/admin/config-video/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file diff --git a/static/web/admin/config/appearance/index.html b/static/web/admin/config/appearance/index.html index ad20dd3f5..820d5234f 100644 --- a/static/web/admin/config/appearance/index.html +++ b/static/web/admin/config/appearance/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
Loading...
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
Loading...
\ No newline at end of file diff --git a/static/web/admin/federation/actions/index.html b/static/web/admin/federation/actions/index.html index 3e831bb80..be9e31f18 100644 --- a/static/web/admin/federation/actions/index.html +++ b/static/web/admin/federation/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No data
\ No newline at end of file diff --git a/static/web/admin/federation/followers/index.html b/static/web/admin/federation/followers/index.html index 4838b2d96..8ed550623 100644 --- a/static/web/admin/federation/followers/index.html +++ b/static/web/admin/federation/followers/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No data
\ No newline at end of file diff --git a/static/web/admin/hardware-info/index.html b/static/web/admin/hardware-info/index.html index 485edd46c..2e6795ec6 100644 --- a/static/web/admin/hardware-info/index.html +++ b/static/web/admin/hardware-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file diff --git a/static/web/admin/help/index.html b/static/web/admin/help/index.html index 079d3d2f6..ef78440d8 100644 --- a/static/web/admin/help/index.html +++ b/static/web/admin/help/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file diff --git a/static/web/admin/index.html b/static/web/admin/index.html index 2f9c8ead5..5256ed620 100644 --- a/static/web/admin/index.html +++ b/static/web/admin/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file diff --git a/static/web/admin/logs/index.html b/static/web/admin/logs/index.html index 7b1535ab2..960777228 100644 --- a/static/web/admin/logs/index.html +++ b/static/web/admin/logs/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/stream-health/index.html b/static/web/admin/stream-health/index.html index 5113a59a6..9d54f8c63 100644 --- a/static/web/admin/stream-health/index.html +++ b/static/web/admin/stream-health/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file diff --git a/static/web/admin/upgrade/index.html b/static/web/admin/upgrade/index.html index 201b213da..63eda9d67 100644 --- a/static/web/admin/upgrade/index.html +++ b/static/web/admin/upgrade/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No data
\ No newline at end of file diff --git a/static/web/admin/viewer-info/index.html b/static/web/admin/viewer-info/index.html index 7043f522e..4015062e7 100644 --- a/static/web/admin/viewer-info/index.html +++ b/static/web/admin/viewer-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No data
\ No newline at end of file diff --git a/static/web/admin/webhooks/index.html b/static/web/admin/webhooks/index.html index bcdeed51c..f67b48d29 100644 --- a/static/web/admin/webhooks/index.html +++ b/static/web/admin/webhooks/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No data

\ No newline at end of file diff --git a/static/web/embed/chat/readonly/index.html b/static/web/embed/chat/readonly/index.html index 639c07519..48282225c 100644 --- a/static/web/embed/chat/readonly/index.html +++ b/static/web/embed/chat/readonly/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/chat/readwrite/index.html b/static/web/embed/chat/readwrite/index.html index 3264c77d5..46a7d5041 100644 --- a/static/web/embed/chat/readwrite/index.html +++ b/static/web/embed/chat/readwrite/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/video/index.html b/static/web/embed/video/index.html index 2efa8d2d1..44fbee9bd 100644 --- a/static/web/embed/video/index.html +++ b/static/web/embed/video/index.html @@ -1 +1 @@ -
This stream is offline. Check back soon!
\ No newline at end of file +
This stream is offline. Check back soon!
\ No newline at end of file diff --git a/static/web/index.html b/static/web/index.html index b15c99a7c..cabacfe49 100644 --- a/static/web/index.html +++ b/static/web/index.html @@ -1,9 +1,9 @@ {{.Name}}
{{.Name}}
Logo
Preview
\ No newline at end of file +
Logo
Preview
\ No newline at end of file