From e842835b45f78b5a1174b00516b0b05e7835ab95 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Sun, 18 Dec 2022 03:10:28 +0000 Subject: [PATCH] Bundle embedded web app --- static/web/404.html | 4 ++-- static/web/404/index.html | 4 ++-- .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 ...94a0f-7059b9f8abbc2737.js => d2094a0f-95b09167d4c8b805.js} | 2 +- ...ebpack-47532d75414a7b3e.js => webpack-fec4316652d3032e.js} | 2 +- static/web/admin/access-tokens/index.html | 2 +- static/web/admin/actions/index.html | 2 +- static/web/admin/chat/emojis/index.html | 2 +- static/web/admin/chat/messages/index.html | 2 +- static/web/admin/chat/users/index.html | 2 +- static/web/admin/config-chat/index.html | 2 +- static/web/admin/config-federation/index.html | 2 +- static/web/admin/config-notify/index.html | 2 +- static/web/admin/config-public-details/index.html | 2 +- static/web/admin/config-server-details/index.html | 2 +- static/web/admin/config-social-items/index.html | 2 +- static/web/admin/config-storage/index.html | 2 +- static/web/admin/config-video/index.html | 2 +- static/web/admin/config/appearance/index.html | 2 +- static/web/admin/config/streamkeys/index.html | 2 +- static/web/admin/federation/actions/index.html | 2 +- static/web/admin/federation/followers/index.html | 2 +- static/web/admin/hardware-info/index.html | 2 +- static/web/admin/help/index.html | 2 +- static/web/admin/index.html | 2 +- static/web/admin/logs/index.html | 2 +- static/web/admin/stream-health/index.html | 2 +- static/web/admin/upgrade/index.html | 2 +- static/web/admin/viewer-info/index.html | 2 +- static/web/admin/webhooks/index.html | 2 +- static/web/embed/chat/readonly/index.html | 2 +- static/web/embed/chat/readwrite/index.html | 2 +- static/web/embed/video/index.html | 2 +- static/web/index.html | 4 ++-- 35 files changed, 37 insertions(+), 37 deletions(-) rename static/web/_next/static/{ONJzHWv-mVNa2r-t5N7jy => CdPAhbNYQqMpGczdJ6lDm}/_buildManifest.js (98%) rename static/web/_next/static/{ONJzHWv-mVNa2r-t5N7jy => CdPAhbNYQqMpGczdJ6lDm}/_ssgManifest.js (100%) rename static/web/_next/static/chunks/{d2094a0f-7059b9f8abbc2737.js => d2094a0f-95b09167d4c8b805.js} (80%) rename static/web/_next/static/chunks/{webpack-47532d75414a7b3e.js => webpack-fec4316652d3032e.js} (99%) diff --git a/static/web/404.html b/static/web/404.html index 2972bfe19..418f70cc3 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 2972bfe19..418f70cc3 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/ONJzHWv-mVNa2r-t5N7jy/_buildManifest.js b/static/web/_next/static/CdPAhbNYQqMpGczdJ6lDm/_buildManifest.js similarity index 98% rename from static/web/_next/static/ONJzHWv-mVNa2r-t5N7jy/_buildManifest.js rename to static/web/_next/static/CdPAhbNYQqMpGczdJ6lDm/_buildManifest.js index 4c84964a5..9e12a66cf 100644 --- a/static/web/_next/static/ONJzHWv-mVNa2r-t5N7jy/_buildManifest.js +++ b/static/web/_next/static/CdPAhbNYQqMpGczdJ6lDm/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,a,c,e,i,t,n,d,f,h,o,m,b,u,k,g,j,r,p,l,_,w,v,y,I,B,F,A,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[a,s,c,t,n,f,b,u,r,"static/chunks/8793-fb39c89e6ac1a77e.js",h,"static/css/089ea92974e6f7ca.css","static/chunks/pages/index-49786d08775a251c.js"],"/_error":["static/chunks/pages/_error-02cc11fd74b4e5ff.js"],"/admin":[a,s,c,e,i,t,n,d,o,u,"static/chunks/8676-c38bd41883242e8e.js","static/chunks/pages/admin-f61cf9b387d8362c.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-91177ddb58bd90ee.js"],"/admin/actions":[k,a,s,c,e,p,"static/chunks/pages/admin/actions-7483f9b4cbcfc09b.js"],"/admin/chat/emojis":[a,s,c,e,m,l,"static/chunks/pages/admin/chat/emojis-9dba07537ae5965f.js"],"/admin/chat/messages":[k,a,s,c,e,i,n,_,"static/chunks/pages/admin/chat/messages-047de84a2e00ae32.js"],"/admin/chat/users":[k,a,s,c,e,i,t,n,_,"static/chunks/pages/admin/chat/users-cccb0365f7f2b068.js"],"/admin/config/appearance":[w,b,v,y,"static/css/6c8941159bdd16f6.css","static/chunks/pages/admin/config/appearance-7e36c5c106f93636.js"],"/admin/config/streamkeys":[a,s,c,e,p,"static/chunks/pages/admin/config/streamkeys-6a3f2badc0712b01.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-fab037451220beb1.js"],"/admin/config-federation":["static/chunks/8572-deca358d1a965d80.js","static/chunks/pages/admin/config-federation-3e7e0a54acf1bd9b.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-ebd8215757f41c6c.js"],"/admin/config-public-details":[w,a,s,c,e,m,v,l,"static/chunks/7022-3b2d41956634908e.js","static/chunks/pages/admin/config-public-details-496d14bd2df3187b.js"],"/admin/config-server-details":[I,"static/chunks/pages/admin/config-server-details-fafadf003f21dada.js"],"/admin/config-social-items":[a,s,c,e,"static/chunks/pages/admin/config-social-items-b791a665eeb4c2aa.js"],"/admin/config-storage":["static/chunks/pages/admin/config-storage-deb117562bb5cc59.js"],"/admin/config-video":[a,s,c,e,I,"static/chunks/6962-f197cc126c73fb7f.js","static/chunks/pages/admin/config-video-ea088d6f81d33fcc.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-d79f77b8b18148ad.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-8c2d451ee44fb398.js"],"/admin/hardware-info":[g,i,t,d,m,o,j,"static/chunks/pages/admin/hardware-info-c3e778b57a2b1513.js"],"/admin/help":[t,d,b,y,"static/chunks/7830-37f6f9f7aaae2bbf.js","static/chunks/pages/admin/help-cf85d400d1ada208.js"],"/admin/logs":[a,s,c,e,i,u,"static/chunks/pages/admin/logs-162fcb457a63183f.js"],"/admin/stream-health":[g,i,t,d,o,j,"static/chunks/2934-c96a01cbf005d5a7.js","static/chunks/pages/admin/stream-health-8f1f5efaa8ebdcb6.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/2069-c5012847917b76df.js","static/chunks/pages/admin/upgrade-41783a74d59f851b.js"],"/admin/viewer-info":[g,a,s,c,e,i,t,n,d,m,o,j,"static/chunks/pages/admin/viewer-info-028b7180ef826618.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-852ecc4a76a501ad.js"],"/embed/chat/readonly":[B,F,f,A,h,D,"static/css/e2479775241cd5e1.css","static/chunks/pages/embed/chat/readonly-1d789cb2de5c6857.js"],"/embed/chat/readwrite":[B,F,s,f,A,"static/chunks/911-9156415c36038fd8.js",h,D,"static/css/d97e63babcccad86.css","static/chunks/pages/embed/chat/readwrite-9c8509e8be1ad34b.js"],"/embed/video":["static/chunks/d6e1aeb5-0705bf43bcd6af77.js",n,f,"static/css/7c735c05af084bb2.css","static/chunks/7902-139b487986de3737.js",r,h,"static/chunks/2239-de44814eef43316f.js","static/css/f065863129f648da.css","static/chunks/pages/embed/video-04abad59027d2c31.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/emojis","/admin/chat/messages","/admin/chat/users","/admin/config/appearance","/admin/config/streamkeys","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-37c1af34070ecbf4.js","static/chunks/8909-6d59cce6f69e27ae.js","static/chunks/4267-cfe0f573c442773c.js","static/chunks/2206-8da9006b177e3283.js","static/chunks/8091-5d2e0cdb05cd1ef7.js","static/chunks/575-11393a44fd60b818.js","static/chunks/5938-b5bac17e4fa31c49.js","static/chunks/5101-e2c6238798b20535.js","static/chunks/6395-f04016ae318b5e91.js","static/chunks/7466-1e76829814bac0c3.js","static/chunks/4763-00b0de2ecc334aed.js","static/chunks/5577-ce77da4314c60f70.js","static/chunks/1082-51b9f63c6446d49d.js","static/chunks/5360-fbeb63371734b066.js","static/chunks/29107295-1453a3860b50f70e.js","static/chunks/ee8b1517-9cf421a7da630c58.js","static/chunks/236-f876fd1a47451d45.js","static/chunks/8245-b34a27e35386277e.js","static/chunks/8119-57984c2c349ea105.js","static/chunks/2938-98037ce4e714d752.js","static/chunks/9550-db4a457e5e1bbbcf.js","static/chunks/4ad82c5e-573627f1f4333b92.js","static/chunks/1943-6310cc9ae4d0ffc3.js","static/chunks/1938-c04d908728a12ddb.js","static/chunks/3286-716fef4ced844a4d.js","static/chunks/d3048c20-93c008b4ff3ddb0e.js","static/chunks/d2094a0f-7059b9f8abbc2737.js","static/chunks/3729-e88e6289f5436bb5.js","static/chunks/4977-cca63b780fb2a427.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(s,a,c,e,i,t,n,d,f,h,o,m,b,u,k,g,j,r,p,l,_,w,v,y,I,B,F,A,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[a,s,c,t,n,f,b,u,r,"static/chunks/8793-fb39c89e6ac1a77e.js",h,"static/css/089ea92974e6f7ca.css","static/chunks/pages/index-49786d08775a251c.js"],"/_error":["static/chunks/pages/_error-02cc11fd74b4e5ff.js"],"/admin":[a,s,c,e,i,t,n,d,o,u,"static/chunks/8676-c38bd41883242e8e.js","static/chunks/pages/admin-f61cf9b387d8362c.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-91177ddb58bd90ee.js"],"/admin/actions":[k,a,s,c,e,p,"static/chunks/pages/admin/actions-7483f9b4cbcfc09b.js"],"/admin/chat/emojis":[a,s,c,e,m,l,"static/chunks/pages/admin/chat/emojis-9dba07537ae5965f.js"],"/admin/chat/messages":[k,a,s,c,e,i,n,_,"static/chunks/pages/admin/chat/messages-047de84a2e00ae32.js"],"/admin/chat/users":[k,a,s,c,e,i,t,n,_,"static/chunks/pages/admin/chat/users-cccb0365f7f2b068.js"],"/admin/config/appearance":[w,b,v,y,"static/css/6c8941159bdd16f6.css","static/chunks/pages/admin/config/appearance-7e36c5c106f93636.js"],"/admin/config/streamkeys":[a,s,c,e,p,"static/chunks/pages/admin/config/streamkeys-6a3f2badc0712b01.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-fab037451220beb1.js"],"/admin/config-federation":["static/chunks/8572-deca358d1a965d80.js","static/chunks/pages/admin/config-federation-3e7e0a54acf1bd9b.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-ebd8215757f41c6c.js"],"/admin/config-public-details":[w,a,s,c,e,m,v,l,"static/chunks/7022-3b2d41956634908e.js","static/chunks/pages/admin/config-public-details-496d14bd2df3187b.js"],"/admin/config-server-details":[I,"static/chunks/pages/admin/config-server-details-fafadf003f21dada.js"],"/admin/config-social-items":[a,s,c,e,"static/chunks/pages/admin/config-social-items-b791a665eeb4c2aa.js"],"/admin/config-storage":["static/chunks/pages/admin/config-storage-deb117562bb5cc59.js"],"/admin/config-video":[a,s,c,e,I,"static/chunks/6962-f197cc126c73fb7f.js","static/chunks/pages/admin/config-video-ea088d6f81d33fcc.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-d79f77b8b18148ad.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-8c2d451ee44fb398.js"],"/admin/hardware-info":[g,i,t,d,m,o,j,"static/chunks/pages/admin/hardware-info-c3e778b57a2b1513.js"],"/admin/help":[t,d,b,y,"static/chunks/7830-37f6f9f7aaae2bbf.js","static/chunks/pages/admin/help-cf85d400d1ada208.js"],"/admin/logs":[a,s,c,e,i,u,"static/chunks/pages/admin/logs-162fcb457a63183f.js"],"/admin/stream-health":[g,i,t,d,o,j,"static/chunks/2934-c96a01cbf005d5a7.js","static/chunks/pages/admin/stream-health-8f1f5efaa8ebdcb6.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/2069-c5012847917b76df.js","static/chunks/pages/admin/upgrade-41783a74d59f851b.js"],"/admin/viewer-info":[g,a,s,c,e,i,t,n,d,m,o,j,"static/chunks/pages/admin/viewer-info-028b7180ef826618.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-852ecc4a76a501ad.js"],"/embed/chat/readonly":[B,F,f,A,h,D,"static/css/e2479775241cd5e1.css","static/chunks/pages/embed/chat/readonly-1d789cb2de5c6857.js"],"/embed/chat/readwrite":[B,F,s,f,A,"static/chunks/911-9156415c36038fd8.js",h,D,"static/css/d97e63babcccad86.css","static/chunks/pages/embed/chat/readwrite-9c8509e8be1ad34b.js"],"/embed/video":["static/chunks/d6e1aeb5-0705bf43bcd6af77.js",n,f,"static/css/7c735c05af084bb2.css","static/chunks/7902-139b487986de3737.js",r,h,"static/chunks/2239-de44814eef43316f.js","static/css/f065863129f648da.css","static/chunks/pages/embed/video-04abad59027d2c31.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/emojis","/admin/chat/messages","/admin/chat/users","/admin/config/appearance","/admin/config/streamkeys","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-37c1af34070ecbf4.js","static/chunks/8909-6d59cce6f69e27ae.js","static/chunks/4267-cfe0f573c442773c.js","static/chunks/2206-8da9006b177e3283.js","static/chunks/8091-5d2e0cdb05cd1ef7.js","static/chunks/575-11393a44fd60b818.js","static/chunks/5938-b5bac17e4fa31c49.js","static/chunks/5101-e2c6238798b20535.js","static/chunks/6395-f04016ae318b5e91.js","static/chunks/7466-1e76829814bac0c3.js","static/chunks/4763-00b0de2ecc334aed.js","static/chunks/5577-ce77da4314c60f70.js","static/chunks/1082-51b9f63c6446d49d.js","static/chunks/5360-fbeb63371734b066.js","static/chunks/29107295-1453a3860b50f70e.js","static/chunks/ee8b1517-9cf421a7da630c58.js","static/chunks/236-f876fd1a47451d45.js","static/chunks/8245-b34a27e35386277e.js","static/chunks/8119-57984c2c349ea105.js","static/chunks/2938-98037ce4e714d752.js","static/chunks/9550-db4a457e5e1bbbcf.js","static/chunks/4ad82c5e-573627f1f4333b92.js","static/chunks/1943-6310cc9ae4d0ffc3.js","static/chunks/1938-c04d908728a12ddb.js","static/chunks/3286-716fef4ced844a4d.js","static/chunks/d3048c20-93c008b4ff3ddb0e.js","static/chunks/d2094a0f-95b09167d4c8b805.js","static/chunks/3729-e88e6289f5436bb5.js","static/chunks/4977-cca63b780fb2a427.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/ONJzHWv-mVNa2r-t5N7jy/_ssgManifest.js b/static/web/_next/static/CdPAhbNYQqMpGczdJ6lDm/_ssgManifest.js similarity index 100% rename from static/web/_next/static/ONJzHWv-mVNa2r-t5N7jy/_ssgManifest.js rename to static/web/_next/static/CdPAhbNYQqMpGczdJ6lDm/_ssgManifest.js diff --git a/static/web/_next/static/chunks/d2094a0f-7059b9f8abbc2737.js b/static/web/_next/static/chunks/d2094a0f-95b09167d4c8b805.js similarity index 80% rename from static/web/_next/static/chunks/d2094a0f-7059b9f8abbc2737.js rename to static/web/_next/static/chunks/d2094a0f-95b09167d4c8b805.js index 33e86c705..9dd9271e3 100644 --- a/static/web/_next/static/chunks/d2094a0f-7059b9f8abbc2737.js +++ b/static/web/_next/static/chunks/d2094a0f-95b09167d4c8b805.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8700],{96391:function(e,t,r){r.d(t,{BU:function(){return tL},CX:function(){return td},F3:function(){return eb},UE:function(){return tg},mH:function(){return tb},vt:function(){return eY}});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(94203),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,k=new WeakMap,x=new WeakMap,y=new WeakMap,E=new WeakMap,L=new WeakMap,C=new WeakMap,D=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=new WeakMap,q=Symbol("placeholder"),Y=Symbol("mark-placeholder"),$=globalThis.Text,U=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,_=e=>V(e)&&8===e.nodeType,z=e=>V(e)&&1===e.nodeType,V=e=>{var t=U(e);return!!t&&e instanceof t.Node},H=e=>{var t=e&&e.anchorNode&&U(e.anchorNode);return!!t&&e instanceof t.Selection},K=e=>V(e)&&3===e.nodeType,X=e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length,J=e=>{var[t,r]=e;if(z(t)&&t.childNodes.length){var a=r===t.childNodes.length,n=a?r-1:r;for([t,n]=Z(t,n,a?"backward":"forward"),a=n!!(window.document.activeElement&&window.document.activeElement.shadowRoot),Z=(e,t,r)=>{for(var{childNodes:a}=e,n=a[t],o=t,i=!1,s=!1;(_(n)||z(n)&&0===n.childNodes.length||z(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]},G=(e,t,r)=>{var[a]=Z(e,t,r);return a},ee=e=>{var t="";if(K(e)&&e.nodeValue)return e.nodeValue;if(z(e)){for(var r of Array.from(e.childNodes))t+=ee(r);var a=getComputedStyle(e).getPropertyValue("display");("block"===a||"list"===a||"BR"===e.tagName)&&(t+="\n")}return t},et=/data-slate-fragment="(.+?)"/m,er=e=>{var[,t]=e.getData("text/html").match(et)||[];return t},ea=(e,t,r)=>{var{target:a}=t;if(z(a)&&a.matches('[contentEditable="false"]'))return!1;var{document:n}=eb.getWindow(e);if(n.contains(a))return eb.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&&ea(e,o,r)},en=parseInt(d.version.split(".")[0],10)>=17,eo="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ei="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),es="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),el="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ed="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),ec="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),eu="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),ef="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),ev="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),eh="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),ep="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),eg="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),em=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),ew=!ef&&!ec&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,eb={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=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=eb.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&null!=r.getSelection?r:t.ownerDocument},isFocused:e=>!!S.get(e),isReadOnly:e=>!!O.get(e),blur(e){var t=eb.toDOMNode(e,e),r=eb.findDocumentOrShadowRoot(e);S.set(e,!1),r.activeElement===t&&t.blur()},focus(e){var t=eb.toDOMNode(e,e),r=eb.findDocumentOrShadowRoot(e);S.set(e,!0),r.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,r=eb.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=eb.toDOMNode(e,e);try{r=z(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=C.get(e),a=u.ML.isEditor(t)?k.get(e):null==r?void 0:r.get(eb.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=eb.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(es&&!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]"),k=0;k{d-=e.textContent.length})):d=1}m&&d===m.textContent.length&&es&&"z"===m.getAttribute("data-slate-zero-width")&&null!==(c=m.textContent)&&void 0!==c&&c.startsWith("\uFEFF")&&(s.hasAttribute("data-slate-zero-width")||el&&null!==(f=m.textContent)&&void 0!==f&&f.endsWith("\n\n"))&&d--}if(es&&!l&&!a){var y=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(y&&eb.hasDOMNode(e,y,{editable:!0})){var E=eb.toSlateNode(e,y),{path:L,offset:C}=u.ML.start(e,eb.findPath(e,E));return y.querySelector("[data-slate-leaf]")||(C=i),{path:L,offset:C}}}if(!l){if(n)return null;throw Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var D=eb.toSlateNode(e,l),O=eb.findPath(e,D);return{path:O,offset:d}},toSlateRange(e,t,r){var a,n,o,i,s,{exactMatch:l,suppressThrow:d}=r;if((H(t)?t.anchorNode:t.startContainer)&&(H(t)?(a=t.anchorNode,n=t.anchorOffset,o=t.focusNode,i=t.focusOffset,s=eu&&Q()?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=eb.toSlatePoint(e,[a,n],{exactMatch:l,suppressThrow:d});if(!c)return null;var f=s?c:eb.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)&&z(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)=>V(t)&&eb.hasDOMNode(e,t),hasEditableTarget:(e,t)=>V(t)&&eb.hasDOMNode(e,t,{editable:!0}),hasSelectableTarget:(e,t)=>eb.hasEditableTarget(e,t)||eb.isTargetInsideNonReadonlyVoid(e,t),isTargetInsideNonReadonlyVoid(e,t){if(O.get(e))return!1;var r=eb.hasTarget(e,t)&&eb.toSlateNode(e,t);return u.ML.isVoid(e,r)},androidScheduleFlush(e){var t;null===(t=R.get(e))||void 0===t||t()},androidPendingDiffs:e=>W.get(e)},eM=em?d.useLayoutEffect:d.useEffect,ek=["anchor","focus"],ex=["anchor","focus"],ey=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(r=>t.hasOwnProperty(r)&&e[r]===t[r]),eE=(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=eS(),i=eb.findPath(o,n),s=u.y$.parent(i),l=!0===r[Y];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(eC,{isTrailing:!0,text:r.text}):d.createElement(eC,{text:r.text}):d.createElement(eD,{isLineBreak:!0,isMarkPlaceholder:l})},eC=e=>{var{text:t,isTrailing:r=!1}=e,a=(0,d.useRef)(null),n=()=>"".concat(null!=t?t:"").concat(r?"\n":"");return(eM(()=>{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),es&&r?null:"\uFEFF",r?d.createElement("br",null):null)},eO=(0,d.createContext)(null),eS=()=>{var e=(0,d.useContext)(eO);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(eT,Object.assign({},e))}=e,s=(0,d.useRef)(null),l=eS(),c=(0,d.useRef)(null);(0,d.useEffect)(()=>()=>{c.current&&c.current.disconnect()},[]),(0,d.useEffect)(()=>{var e=null==s?void 0:s.current;if(e?x.set(l,e):x.delete(l),c.current?(c.current.disconnect(),e&&c.current.observe(e)):e&&(c.current=new ResizeObserver(e=>{var[{target:t}]=e,r=D.get(l);if(r){var a="".concat(t.clientHeight,"px");r.innerHTML=':where([data-slate-editor-id="'.concat(l.id,'"]) { min-height: ').concat(a,"; }")}}),c.current.observe(e)),!e){var t=D.get(l);t&&(t.innerHTML="")}return()=>{x.delete(l)}},[s,t]);var u=d.createElement(eL,{isLast:r,leaf:t,parent:n,text:a});if(t[q]){var f={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}};u=d.createElement(d.Fragment,null,o(f),u)}return i({attributes:{"data-slate-leaf":!0},children:u,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]),eT=e=>{var{attributes:t,children:r}=e;return d.createElement("span",Object.assign({},t),r)},eR=e=>{for(var{decorations:t,isLast:r,parent:a,renderPlaceholder:n,renderLeaf:o,text:i}=e,s=eS(),l=(0,d.useRef)(null),c=u.xv.decorations(i,t),f=eb.findKey(s,i),v=[],h=0;h{var e=C.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)},eP=d.memo(eR,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&eE(t.decorations,e.decorations)),eN=e=>{var{decorations:t,element:r,renderElement:a=e=>d.createElement(ej,Object.assign({},e)),renderPlaceholder:o,renderLeaf:i,selection:s}=e,l=eS(),c=e_(),f=l.isInline(r),v=eb.findKey(l,r),h=(0,d.useCallback)(e=>{var t=C.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=e$({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[[k]]=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(eP,{renderPlaceholder:o,decorations:[],isLast:!1,parent:r,text:k})),w.set(k,0),b.set(k,r)}return a({attributes:g,children:p,element:r})},eW=d.memo(eN,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&eE(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&u.e6.equals(e.selection,t.selection))),ej=e=>{var{attributes:t,children:r,element:a}=e,n=eS().isInline(a)?"span":"div";return d.createElement(n,Object.assign({},t,{style:{position:"relative"}}),r)},eA=(0,d.createContext)(()=>[]),eI=()=>(0,d.useContext)(eA),eq=(0,d.createContext)(!1),eY=()=>(0,d.useContext)(eq),e$=e=>{for(var{decorations:t,node:r,renderElement:a,renderPlaceholder:n,renderLeaf:o,selection:i}=e,s=eI(),l=eS(),c=eb.findPath(l,r),f=[],v=u.W_.isElement(r)&&!l.isInline(r)&&u.ML.hasInlines(l,r),h=0;h(0,d.useContext)(eU),ez=(0,d.createContext)(null),eV=()=>{var e=(0,d.useContext)(ez);if(!e)throw Error("The `useSlate` hook must be used inside the component's context.");var{editor:t}=e;return t},eH={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"},eK={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"},eX={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},eJ=e=>{var t=eH[e],r=eK[e],a=eX[e],n=t&&(0,f.TB)(t),o=r&&(0,f.TB)(r),i=a&&(0,f.TB)(a);return e=>!!(n&&n(e)||ei&&o&&o(e)||!ei&&i&&i(e))},eQ={isBold:eJ("bold"),isCompose:eJ("compose"),isMoveBackward:eJ("moveBackward"),isMoveForward:eJ("moveForward"),isDeleteBackward:eJ("deleteBackward"),isDeleteForward:eJ("deleteForward"),isDeleteLineBackward:eJ("deleteLineBackward"),isDeleteLineForward:eJ("deleteLineForward"),isDeleteWordBackward:eJ("deleteWordBackward"),isDeleteWordForward:eJ("deleteWordForward"),isExtendBackward:eJ("extendBackward"),isExtendForward:eJ("extendForward"),isExtendLineBackward:eJ("extendLineBackward"),isExtendLineForward:eJ("extendLineForward"),isItalic:eJ("italic"),isMoveLineBackward:eJ("moveLineBackward"),isMoveLineForward:eJ("moveLineForward"),isMoveWordBackward:eJ("moveWordBackward"),isMoveWordForward:eJ("moveWordForward"),isRedo:eJ("redo"),isSoftBreak:eJ("insertSoftBreak"),isSplitBlock:eJ("splitBlock"),isTransposeCharacter:eJ("transposeCharacter"),isUndo:eJ("undo")},eZ=(e,t)=>{var r=[],a=()=>{r=[]},n=a=>{if(t.current){var n=a.filter(t=>ea(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}},eG={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class e0 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,eG)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=eZ(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}}e0.contextType=eO;var e1=es?e0:e=>{var{children:t}=e;return d.createElement(d.Fragment,null,t)};function e6(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 e9(e,t){var r=e2(e,t.anchor);if(!r)return null;if(u.e6.isCollapsed(t))return{anchor:r,focus:r};var a=e2(e,t.focus);return a?{anchor:r,focus:a}:null}function e3(e,t,r){var a=W.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,e$(e)),tl=0,td=e=>{var t,r,a,o,{autoFocus:s,decorate:c=tu,onDOMBeforeInput:f,placeholder:v,readOnly:g=!1,renderElement:m,renderLeaf:w,renderPlaceholder:b=e=>d.createElement(tc,Object.assign({},e)),scrollSelectionIntoView:L=tf,style:C={},as:T="div"}=e,$=p(e,ta),_=eV(),[K,J]=(0,d.useState)(!1),Q=(0,d.useRef)(null),Z=(0,d.useRef)([]),{onUserInput:G,receivedUserInput:ee}=(t=eS(),r=(0,d.useRef)(!1),a=(0,d.useRef)(0),o=(0,d.useCallback)(()=>{if(!r.current){r.current=!0;var e=eb.getWindow(t);e.cancelAnimationFrame(a.current),a.current=e.requestAnimationFrame(()=>{r.current=!1})}},[]),(0,d.useEffect)(()=>()=>cancelAnimationFrame(a.current),[]),{receivedUserInput:r,onUserInput:o}),[,et]=(0,d.useReducer)(e=>e+1,0);I.set(_,et),O.set(_,g);var er=(0,d.useMemo)(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);(0,d.useEffect)(()=>{Q.current&&s&&Q.current.focus()},[s]);var en=(0,d.useCallback)(l()(()=>{if((es||!eb.isComposing(_))&&(!er.isUpdatingSelection||null!=ec&&ec.isFlushing())&&!er.isDraggingInternally){var e=eb.findDocumentOrShadowRoot(_),{activeElement:t}=e,r=eb.toDOMNode(_,_),a=e.getSelection();if(t===r?(er.latestElement=t,S.set(_,!0)):S.delete(_),!a)return u.YR.deselect(_);var{anchorNode:n,focusNode:o}=a,i=eb.hasEditableTarget(_,n)||eb.isTargetInsideNonReadonlyVoid(_,n),s=eb.hasEditableTarget(_,o)||eb.isTargetInsideNonReadonlyVoid(_,o);if(i&&s){var l=eb.toSlateRange(_,a,{exactMatch:!1,suppressThrow:!0});l&&(eb.isComposing(_)||null!=ec&&ec.hasPendingChanges()||null!=ec&&ec.isFlushing()?null==ec||ec.handleUserSelect(l):u.YR.select(_,l))}!g||i&&s||u.YR.deselect(_)}},100),[g]),ei=(0,d.useMemo)(()=>i()(en,0),[en]),ec=function(e){var t,{node:r}=e,a=p(e,te);if(!es)return null;var n=eS(),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=A.get(t);if(A.delete(t),e){var{selection:r}=t,a=e9(t,e);!a||r&&u.e6.equals(a,r)||u.YR.select(t,a)}},f=()=>{var e=j.get(t);if(j.delete(t),e){if(e.at){var r=u.E9.isPoint(e.at)?e2(t,e.at):e9(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),!k()&&!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",j.get(t),W.get(t));for(var o=!!(null!==(l=W.get(t))&&void 0!==l&&l.length);v=null===(h=W.get(t))||void 0===h?void 0:h[0];){var l,v,h,p,g=P.get(t);void 0!==g&&(P.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),W.set(t,null===(p=W.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,j.delete(t),N.delete(t),n="action",A.delete(t),r.cancel(),a.cancel(),null==e||e.unref())}var w=null==e?void 0:e.unref();if(!w||A.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())},h=e=>{o&&clearTimeout(o),o=setTimeout(()=>{F.set(t,!1),v()},25)},p=e=>{F.set(t,!0),o&&(clearTimeout(o),o=null)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=x.get(t);if(r){if(k()||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=W.get(t))&&void 0!==v?v:[];W.set(t,h);var p=u.NB.leaf(t,e),m=h.findIndex(t=>u.y$.equals(t.path,e));if(m<0){e6(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)),e6(a,{start:o,end:f,text:c}));if(!w){h.splice(m,1),g();return}h[m]=e8(e8({},h[m]),{},{diff:w})},w=function(e){var{at:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d=!1,A.delete(t),r.cancel(),a.cancel(),M()&&v(),j.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=eb.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!0}));var s=eb.getWindow(t).getSelection();if(!a&&s&&(o=s,a=eb.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,k,{anchor:x}=a;if((H(o)?o.isCollapsed:!!(null!==(k=o)&&void 0!==k&&k.collapsed))&&u.e6.isCollapsed(a)&&x.offset>0)return m(x.path,{text:"",start:x.offset-1,end:x.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(()=>eb.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(P.get(t)&&(y=y.replace("\uFEFF","")),u.y$.equals(a.anchor.path,a.focus.path)){var[E,L]=u.e6.edges(a),C={start:E.offset,end:L.offset,text:y};if(y&&d&&"insertCompositionText"===r){var O=d.start+d.text.search(/\S|$/);C.start+C.text.search(/\S|$/)===O+1&&C.end===d.start+d.text.length?(C.start-=1,d=null,D()):d=!1}else d="insertText"===r&&(null===d?C:!!(d&&u.e6.isCollapsed(a))&&d.end+d.text.length===E.offset&&e8(e8({},d),{},{text:d.text+y}));m(E.path,C);return}return w(()=>u.ML.insertText(t,y),{at:a})}}},M=()=>!!j.get(t),k=()=>{var e;return!!(null!==(e=W.get(t))&&void 0!==e&&e.length)},y=()=>M()||k(),E=e=>{A.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||!k())&&(i=setTimeout(v,200))}},L=()=>{(M()||!k())&&v()},C=e=>{k()||(g(!0),setTimeout(g))},D=()=>{M()||(s=setTimeout(v))},O=e=>{if(!(k()||M())&&e.some(r=>ea(t,r,e))){var r;null===(r=I.get(t))||void 0===r||r()}};return{flush:v,scheduleFlush:D,hasPendingDiffs:k,hasPendingAction:M,hasPendingChanges:y,isFlushing:()=>n,handleUserSelect:E,handleCompositionEnd:h,handleCompositionStart:p,handleDOMBeforeInput:b,handleKeyDown:C,handleDomMutations:O,handleInput:L}})(function(e){for(var t=1;tnew MutationObserver(t));eM(()=>{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,tr),R.set(n,i.scheduleFlush),o&&i.flush(),i}({node:Q,onDOMSelectionChange:en,scheduleOnDOMSelectionChange:ei});eM(()=>{Q.current&&(e=U(Q.current))?(M.set(_,e),k.set(_,Q.current),E.set(_,Q.current),y.set(Q.current,_)):E.delete(_);var e,{selection:t}=_,r=eb.findDocumentOrShadowRoot(_).getSelection();if(!(!r||!eb.isFocused(_)||null!=ec&&ec.hasPendingAction())){var a=e=>{var a="None"!==r.type;if(t||a){var n=k.get(_),o=!1;if(n.contains(r.anchorNode)&&n.contains(r.focusNode)&&(o=!0),a&&o&&t&&!e){var i=eb.toSlateRange(_,r,{exactMatch:!0,suppressThrow:!0});if(i&&u.e6.equals(i,t)){if(!er.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&&!eb.hasRange(_,t)){_.selection=eb.toSlateRange(_,r,{exactMatch:!1,suppressThrow:!0});return}er.isUpdatingSelection=!0;var d=t&&eb.toDOMRange(_,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(_,d)):r.removeAllRanges(),d}},n=a(),o=(null==ec?void 0:ec.isFlushing())==="action";if(!es||!o){setTimeout(()=>{n&&el&&eb.toDOMNode(_,_).focus(),er.isUpdatingSelection=!1});return}var i=null,s=requestAnimationFrame(()=>{if(o){var e=e=>{try{eb.toDOMNode(_,_).focus(),a(e)}catch(t){}};e(),i=setTimeout(()=>{e(!0),er.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(s),i&&clearTimeout(i)}}});var ef=(0,d.useCallback)(e=>{if(G(),!g&&eb.hasEditableTarget(_,e.target)&&!th(e,f)){if(ec)return ec.handleDOMBeforeInput(e);ei.flush(),en.flush();var{selection:t}=_,{inputType:r}=e,a=e.dataTransfer||e.data||void 0,n="insertCompositionText"===r||"deleteCompositionText"===r;if(!(n&&eb.isComposing(_))){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,_.marks&&(o=!1);var{anchor:i}=t,[s,l]=eb.toDOMPoint(_,i),d=null===(h=s.parentElement)||void 0===h?void 0:h.closest("a"),c=eb.getWindow(_);if(o&&d&&eb.hasDOMNode(_,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(_,{at:i.path,match:e=>u.ML.isBlock(_,e)});b&&u.NB.string(b[0]).includes(" ")&&(o=!1)}}if(!r.startsWith("delete")||r.startsWith("deleteBy")){var[M]=e.getTargetRanges();if(M){var k=eb.toSlateRange(_,M,{exactMatch:!1,suppressThrow:!1});if(!t||!u.e6.equals(t,k)){o=!1;var x=!n&&_.selection&&u.ML.rangeRef(_,_.selection);u.YR.select(_,k),x&&B.set(_,x)}}}if(!n){if(o||e.preventDefault(),t&&u.e6.isExpanded(t)&&r.startsWith("delete")){var y=r.endsWith("Backward")?"backward":"forward";u.ML.deleteFragment(_,{direction:y});return}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":u.ML.deleteFragment(_);break;case"deleteContent":case"deleteContentForward":u.ML.deleteForward(_);break;case"deleteContentBackward":u.ML.deleteBackward(_);break;case"deleteEntireSoftLine":u.ML.deleteBackward(_,{unit:"line"}),u.ML.deleteForward(_,{unit:"line"});break;case"deleteHardLineBackward":u.ML.deleteBackward(_,{unit:"block"});break;case"deleteSoftLineBackward":u.ML.deleteBackward(_,{unit:"line"});break;case"deleteHardLineForward":u.ML.deleteForward(_,{unit:"block"});break;case"deleteSoftLineForward":u.ML.deleteForward(_,{unit:"line"});break;case"deleteWordBackward":u.ML.deleteBackward(_,{unit:"word"});break;case"deleteWordForward":u.ML.deleteForward(_,{unit:"word"});break;case"insertLineBreak":u.ML.insertSoftBreak(_);break;case"insertParagraph":u.ML.insertBreak(_);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===r&&eb.isComposing(_)&&(J(!1),F.set(_,!1)),(null==a?void 0:a.constructor.name)==="DataTransfer"?eb.insertData(_,a):"string"==typeof a&&(o?Z.current.push(()=>u.ML.insertText(_,a)):u.ML.insertText(_,a))}var E=null===(v=B.get(_))||void 0===v?void 0:v.unref();B.delete(_),!E||_.selection&&u.e6.equals(_.selection,E)||u.YR.select(_,E)}}}},[g,f]);eM(()=>(Q.current&&ew&&Q.current.addEventListener("beforeinput",ef),()=>{Q.current&&ew&&Q.current.removeEventListener("beforeinput",ef)}),[ef]),eM(()=>{var e=eb.getWindow(_);return e.document.addEventListener("selectionchange",ei),()=>{e.document.removeEventListener("selectionchange",ei)}},[ei]);var ek=c([_,[]]);if(v&&1===_.children.length&&1===Array.from(u.NB.texts(_)).length&&""===u.NB.string(_)&&!K){var ex=u.ML.start(_,[]);ek.push({[q]:!0,placeholder:v,anchor:ex,focus:ex})}var{marks:ey}=_;if(er.hasMarkPlaceholder=!1,_.selection&&u.e6.isCollapsed(_.selection)&&ey){var{anchor:eE}=_.selection,eL=u.NB.leaf(_,eE.path),eC=p(eL,tn);if(!u.xv.equals(eL,ey,{loose:!0})){er.hasMarkPlaceholder=!0;var eD=Object.fromEntries(Object.keys(eC).map(e=>[e,null]));ek.push(ti(ti(ti({[Y]:!0},eD),ey),{},{anchor:eE,focus:eE}))}}return(0,d.useEffect)(()=>{setTimeout(()=>{var{selection:e}=_;if(e){var{anchor:t}=e,r=u.NB.leaf(_,t.path);if(ey&&!u.xv.equals(r,ey,{loose:!0})){P.set(_,ey);return}}P.delete(_)})}),(0,d.useEffect)(()=>{if(1==++tl){var e=document.createElement("style");e.setAttribute("data-slate-default-styles","true"),e.innerHTML=":where([data-slate-editor]) {position: relative;outline: none;white-space: pre-wrap;word-wrap: break-word;}",document.head.appendChild(e)}return()=>{var e;--tl<=0&&(null===(e=document.querySelector("style[data-slate-default-styles]"))||void 0===e||e.remove())}},[]),(0,d.useEffect)(()=>{var e=document.createElement("style");return document.head.appendChild(e),D.set(_,e),()=>{e.remove(),D.delete(_)}},[]),d.createElement(eU.Provider,{value:g},d.createElement(eA.Provider,{value:c},d.createElement(e1,{node:Q,receivedUserInput:ee},d.createElement(T,Object.assign({role:g?void 0:"textbox","aria-multiline":!g||void 0},$,{spellCheck:(!!ew||!em)&&$.spellCheck,autoCorrect:ew||!em?$.autoCorrect:"false",autoCapitalize:ew||!em?$.autoCapitalize:"false","data-slate-editor":!0,"data-slate-editor-id":_.id,"data-slate-node":"value",contentEditable:!g,zindex:-1,suppressContentEditableWarning:!0,ref:Q,style:C,onBeforeInput:(0,d.useCallback)(e=>{if(!ew&&!g&&!tv(e,$.onBeforeInput)&&eb.hasSelectableTarget(_,e.target)&&(e.preventDefault(),!eb.isComposing(_))){var t=e.data;u.ML.insertText(_,t)}},[g]),onInput:(0,d.useCallback)(e=>{if(ec){ec.handleInput();return}for(var t of Z.current)t();Z.current=[]},[]),onBlur:(0,d.useCallback)(e=>{if(!(g||er.isUpdatingSelection||!eb.hasSelectableTarget(_,e.target)||tv(e,$.onBlur))){var t=eb.findDocumentOrShadowRoot(_);if(er.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(!(r===eb.toDOMNode(_,_)||z(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&V(r)&&eb.hasDOMNode(_,r)){var a=eb.toSlateNode(_,r);if(u.W_.isElement(a)&&!_.isVoid(a))return}if(ed){var n=t.getSelection();null==n||n.removeAllRanges()}S.delete(_)}}}},[g,$.onBlur]),onClick:(0,d.useCallback)(e=>{if(eb.hasTarget(_,e.target)&&!tv(e,$.onClick)&&V(e.target)){var t=eb.toSlateNode(_,e.target),r=eb.findPath(_,t);if(u.ML.hasPath(_,r)&&u.NB.get(_,r)===t){if(3===e.detail&&r.length>=1){var a=r;if(!u.ML.isBlock(_,t)){var n,o=u.ML.above(_,{match:e=>u.ML.isBlock(_,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(_,a);u.YR.select(_,i);return}if(!g){var s=u.ML.start(_,r),l=u.ML.end(_,r),d=u.ML.void(_,{at:s}),c=u.ML.void(_,{at:l});if(d&&c&&u.y$.equals(d[1],c[1])){var f=u.ML.range(_,s);u.YR.select(_,f)}}}}},[g,$.onClick]),onCompositionEnd:(0,d.useCallback)(e=>{if(eb.hasSelectableTarget(_,e.target)&&(eb.isComposing(_)&&(J(!1),F.set(_,!1)),null==ec||ec.handleCompositionEnd(e),!tv(e,$.onCompositionEnd)&&!es&&!ed&&!ev&&!eo&&!eh&&!eg&&!ep&&e.data)){var t=P.get(_);P.delete(_),void 0!==t&&(N.set(_,_.marks),_.marks=t),u.ML.insertText(_,e.data);var r=N.get(_);N.delete(_),void 0!==r&&(_.marks=r)}},[$.onCompositionEnd]),onCompositionUpdate:(0,d.useCallback)(e=>{!eb.hasSelectableTarget(_,e.target)||tv(e,$.onCompositionUpdate)||eb.isComposing(_)||(J(!0),F.set(_,!0))},[$.onCompositionUpdate]),onCompositionStart:(0,d.useCallback)(e=>{if(eb.hasSelectableTarget(_,e.target)&&(null==ec||ec.handleCompositionStart(e),!tv(e,$.onCompositionStart)&&!es)){J(!0);var{selection:t}=_;if(t){if(u.e6.isExpanded(t)){u.ML.deleteFragment(_);return}var r=u.ML.above(_,{match:e=>u.ML.isInline(_,e),mode:"highest"});if(r){var[,a]=r;if(u.ML.isEnd(_,t.anchor,a)){var n=u.ML.after(_,a);u.YR.setSelection(_,{anchor:n,focus:n})}}}}},[$.onCompositionStart]),onCopy:(0,d.useCallback)(e=>{eb.hasSelectableTarget(_,e.target)&&!tv(e,$.onCopy)&&(e.preventDefault(),eb.setFragmentData(_,e.clipboardData,"copy"))},[$.onCopy]),onCut:(0,d.useCallback)(e=>{if(!g&&eb.hasSelectableTarget(_,e.target)&&!tv(e,$.onCut)){e.preventDefault(),eb.setFragmentData(_,e.clipboardData,"cut");var{selection:t}=_;if(t){if(u.e6.isExpanded(t))u.ML.deleteFragment(_);else{var r=u.NB.parent(_,t.anchor.path);u.ML.isVoid(_,r)&&u.YR.delete(_)}}}},[g,$.onCut]),onDragOver:(0,d.useCallback)(e=>{if(eb.hasTarget(_,e.target)&&!tv(e,$.onDragOver)){var t=eb.toSlateNode(_,e.target);u.ML.isVoid(_,t)&&e.preventDefault()}},[$.onDragOver]),onDragStart:(0,d.useCallback)(e=>{if(!g&&eb.hasTarget(_,e.target)&&!tv(e,$.onDragStart)){var t=eb.toSlateNode(_,e.target),r=eb.findPath(_,t);if(u.ML.isVoid(_,t)||u.ML.void(_,{at:r,voids:!0})){var a=u.ML.range(_,r);u.YR.select(_,a)}er.isDraggingInternally=!0,eb.setFragmentData(_,e.dataTransfer,"drag")}},[g,$.onDragStart]),onDrop:(0,d.useCallback)(e=>{if(!g&&eb.hasTarget(_,e.target)&&!tv(e,$.onDrop)){e.preventDefault();var t=_.selection,r=eb.findEventRange(_,e),a=e.dataTransfer;u.YR.select(_,r),er.isDraggingInternally&&t&&!u.e6.equals(t,r)&&!u.ML.void(_,{at:r,voids:!0})&&u.YR.delete(_,{at:t}),eb.insertData(_,a),eb.isFocused(_)||eb.focus(_)}er.isDraggingInternally=!1},[g,$.onDrop]),onDragEnd:(0,d.useCallback)(e=>{!g&&er.isDraggingInternally&&$.onDragEnd&&eb.hasTarget(_,e.target)&&$.onDragEnd(e),er.isDraggingInternally=!1},[g,$.onDragEnd]),onFocus:(0,d.useCallback)(e=>{if(!g&&!er.isUpdatingSelection&&eb.hasSelectableTarget(_,e.target)&&!tv(e,$.onFocus)){var t=eb.toDOMNode(_,_),r=eb.findDocumentOrShadowRoot(_);if(er.latestElement=r.activeElement,el&&e.target!==t){t.focus();return}S.set(_,!0)}},[g,$.onFocus]),onKeyDown:(0,d.useCallback)(e=>{if(!g&&eb.hasEditableTarget(_,e.target)){null==ec||ec.handleKeyDown(e);var{nativeEvent:t}=e;if(eb.isComposing(_)&&!1===t.isComposing&&(F.set(_,!1),J(!1)),!(tv(e,$.onKeyDown)||eb.isComposing(_))){var{selection:r}=_,a=_.children[null!==r?r.focus.path[0]:0],o="rtl"===n()(u.NB.string(a));if(eQ.isRedo(t)){e.preventDefault(),"function"==typeof _.redo&&_.redo();return}if(eQ.isUndo(t)){e.preventDefault(),"function"==typeof _.undo&&_.undo();return}if(eQ.isMoveLineBackward(t)){e.preventDefault(),u.YR.move(_,{unit:"line",reverse:!0});return}if(eQ.isMoveLineForward(t)){e.preventDefault(),u.YR.move(_,{unit:"line"});return}if(eQ.isExtendLineBackward(t)){e.preventDefault(),u.YR.move(_,{unit:"line",edge:"focus",reverse:!0});return}if(eQ.isExtendLineForward(t)){e.preventDefault(),u.YR.move(_,{unit:"line",edge:"focus"});return}if(eQ.isMoveBackward(t)){e.preventDefault(),r&&u.e6.isCollapsed(r)?u.YR.move(_,{reverse:!o}):u.YR.collapse(_,{edge:"start"});return}if(eQ.isMoveForward(t)){e.preventDefault(),r&&u.e6.isCollapsed(r)?u.YR.move(_,{reverse:o}):u.YR.collapse(_,{edge:"end"});return}if(eQ.isMoveWordBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)&&u.YR.collapse(_,{edge:"focus"}),u.YR.move(_,{unit:"word",reverse:!o});return}if(eQ.isMoveWordForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)&&u.YR.collapse(_,{edge:"focus"}),u.YR.move(_,{unit:"word",reverse:o});return}if(ew){if((eu||ed)&&r&&(eQ.isDeleteBackward(t)||eQ.isDeleteForward(t))&&u.e6.isCollapsed(r)){var i=u.NB.parent(_,r.anchor.path);if(u.W_.isElement(i)&&u.ML.isVoid(_,i)&&(u.ML.isInline(_,i)||u.ML.isBlock(_,i))){e.preventDefault(),u.ML.deleteBackward(_,{unit:"block"});return}}}else{if(eQ.isBold(t)||eQ.isItalic(t)||eQ.isTransposeCharacter(t)){e.preventDefault();return}if(eQ.isSoftBreak(t)){e.preventDefault(),u.ML.insertSoftBreak(_);return}if(eQ.isSplitBlock(t)){e.preventDefault(),u.ML.insertBreak(_);return}if(eQ.isDeleteBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(_,{direction:"backward"}):u.ML.deleteBackward(_);return}if(eQ.isDeleteForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(_,{direction:"forward"}):u.ML.deleteForward(_);return}if(eQ.isDeleteLineBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(_,{direction:"backward"}):u.ML.deleteBackward(_,{unit:"line"});return}if(eQ.isDeleteLineForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(_,{direction:"forward"}):u.ML.deleteForward(_,{unit:"line"});return}if(eQ.isDeleteWordBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(_,{direction:"backward"}):u.ML.deleteBackward(_,{unit:"word"});return}if(eQ.isDeleteWordForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(_,{direction:"forward"}):u.ML.deleteForward(_,{unit:"word"});return}}}}},[g,$.onKeyDown]),onPaste:(0,d.useCallback)(e=>{!g&&eb.hasSelectableTarget(_,e.target)&&!tv(e,$.onPaste)&&(!ew||X(e.nativeEvent))&&(e.preventDefault(),eb.insertData(_,e.clipboardData))},[g,$.onPaste])}),d.createElement(ts,{decorations:ek,node:_,renderElement:m,renderPlaceholder:b,renderLeaf:w,selection:_.selection})))))},tc=e=>{var{attributes:t,children:r}=e;return d.createElement("span",Object.assign({},t),r,es&&d.createElement("br",null))},tu=()=>[],tf=(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}},tv=(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},tp=(0,d.createContext)(!1),tg=()=>(0,d.useContext)(tp),tm=(0,d.createContext)({}),tw=["editor","children","onChange","value"],tb=e=>{var t,r,a,n,{editor:o,children:i,onChange:s,value:l}=e,c=p(e,tw),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]);T.set(o,w),(0,d.useEffect)(()=>()=>{T.set(o,()=>{}),f.current=!0},[]);var[b,M]=(0,d.useState)(eb.isFocused(o));return(0,d.useEffect)(()=>{M(eb.isFocused(o))}),eM(()=>{var e=()=>M(eb.isFocused(o));return en?(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(tm.Provider,{value:g},d.createElement(ez.Provider,{value:v},d.createElement(eO.Provider,{value:v.editor},d.createElement(tp.Provider,{value:b},i))))},tM=(e,t)=>{var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},tk=(e,t,r)=>{var a=eb.toDOMRange(e,t).getBoundingClientRect(),n=eb.toDOMRange(e,r).getBoundingClientRect();return tM(a,n)&&tM(n,a)},tx=(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 ty(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 C.set(t,new WeakMap),t.addMark=(e,r)=>{var a,n;null===(a=R.get(t))||void 0===a||a(),!P.get(t)&&null!==(n=W.get(t))&&void 0!==n&&n.length&&P.set(t,null),N.delete(t),o(e,r)},t.removeMark=e=>{var r;!P.get(t)&&null!==(r=W.get(t))&&void 0!==r&&r.length&&P.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=tx(t,o);u.e6.isCollapsed(i)||u.YR.delete(t,{at:i})}}},t.apply=e=>{var a,n=[],o=W.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);W.set(t,i)}var s=A.get(t);s&&A.set(t,e7(t,s,e));var l=j.get(t);if(null!=l&&l.at){var d=u.E9.isPoint(null==l?void 0:l.at)?e3(t,l.at,e):e7(t,l.at,e);j.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);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=eb.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=eb.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":""}),K(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",ee(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")||er(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=T.get(t);e&&e(),a()})},t},tC=(e,t)=>{var r=[];for(var[a,n]of u.ML.levels(e,{at:t})){var o=eb.findKey(e,a);r.push([n,o])}return r}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8700],{96391:function(e,t,r){r.d(t,{BU:function(){return tL},CX:function(){return td},F3:function(){return eb},UE:function(){return tg},mH:function(){return tb},vt:function(){return eY}});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(94203),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,k=new WeakMap,x=new WeakMap,y=new WeakMap,E=new WeakMap,L=new WeakMap,C=new WeakMap,D=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=new WeakMap,q=Symbol("placeholder"),Y=Symbol("mark-placeholder"),$=globalThis.Text,U=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,_=e=>V(e)&&8===e.nodeType,z=e=>V(e)&&1===e.nodeType,V=e=>{var t=U(e);return!!t&&e instanceof t.Node},H=e=>{var t=e&&e.anchorNode&&U(e.anchorNode);return!!t&&e instanceof t.Selection},K=e=>V(e)&&3===e.nodeType,X=e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length,J=e=>{var[t,r]=e;if(z(t)&&t.childNodes.length){var a=r===t.childNodes.length,n=a?r-1:r;for([t,n]=Z(t,n,a?"backward":"forward"),a=n!!(window.document.activeElement&&window.document.activeElement.shadowRoot),Z=(e,t,r)=>{for(var{childNodes:a}=e,n=a[t],o=t,i=!1,s=!1;(_(n)||z(n)&&0===n.childNodes.length||z(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]},G=(e,t,r)=>{var[a]=Z(e,t,r);return a},ee=e=>{var t="";if(K(e)&&e.nodeValue)return e.nodeValue;if(z(e)){for(var r of Array.from(e.childNodes))t+=ee(r);var a=getComputedStyle(e).getPropertyValue("display");("block"===a||"list"===a||"BR"===e.tagName)&&(t+="\n")}return t},et=/data-slate-fragment="(.+?)"/m,er=e=>{var[,t]=e.getData("text/html").match(et)||[];return t},ea=(e,t,r)=>{var{target:a}=t;if(z(a)&&a.matches('[contentEditable="false"]'))return!1;var{document:n}=eb.getWindow(e);if(n.contains(a))return eb.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&&ea(e,o,r)},en=parseInt(d.version.split(".")[0],10)>=17,eo="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ei="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),es="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),el="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ed="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),ec="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),eu="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),ef="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),ev="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),eh="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),ep="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),eg="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),em=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),ew=!ef&&!ec&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,eb={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=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=eb.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&null!=r.getSelection?r:t.ownerDocument},isFocused:e=>!!S.get(e),isReadOnly:e=>!!O.get(e),blur(e){var t=eb.toDOMNode(e,e),r=eb.findDocumentOrShadowRoot(e);S.set(e,!1),r.activeElement===t&&t.blur()},focus(e){var t=eb.toDOMNode(e,e),r=eb.findDocumentOrShadowRoot(e);S.set(e,!0),r.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,r=eb.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=eb.toDOMNode(e,e);try{r=z(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=C.get(e),a=u.ML.isEditor(t)?k.get(e):null==r?void 0:r.get(eb.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=eb.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(es&&!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]"),k=0;k{d-=e.textContent.length})):d=1}m&&d===m.textContent.length&&es&&"z"===m.getAttribute("data-slate-zero-width")&&null!==(c=m.textContent)&&void 0!==c&&c.startsWith("\uFEFF")&&(s.hasAttribute("data-slate-zero-width")||el&&null!==(f=m.textContent)&&void 0!==f&&f.endsWith("\n\n"))&&d--}if(es&&!l&&!a){var y=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(y&&eb.hasDOMNode(e,y,{editable:!0})){var E=eb.toSlateNode(e,y),{path:L,offset:C}=u.ML.start(e,eb.findPath(e,E));return y.querySelector("[data-slate-leaf]")||(C=i),{path:L,offset:C}}}if(!l){if(n)return null;throw Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var D=eb.toSlateNode(e,l),O=eb.findPath(e,D);return{path:O,offset:d}},toSlateRange(e,t,r){var a,n,o,i,s,{exactMatch:l,suppressThrow:d}=r;if((H(t)?t.anchorNode:t.startContainer)&&(H(t)?(a=t.anchorNode,n=t.anchorOffset,o=t.focusNode,i=t.focusOffset,s=eu&&Q()?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=eb.toSlatePoint(e,[a,n],{exactMatch:l,suppressThrow:d});if(!c)return null;var f=s?c:eb.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)&&z(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)=>V(t)&&eb.hasDOMNode(e,t),hasEditableTarget:(e,t)=>V(t)&&eb.hasDOMNode(e,t,{editable:!0}),hasSelectableTarget:(e,t)=>eb.hasEditableTarget(e,t)||eb.isTargetInsideNonReadonlyVoid(e,t),isTargetInsideNonReadonlyVoid(e,t){if(O.get(e))return!1;var r=eb.hasTarget(e,t)&&eb.toSlateNode(e,t);return u.ML.isVoid(e,r)},androidScheduleFlush(e){var t;null===(t=R.get(e))||void 0===t||t()},androidPendingDiffs:e=>W.get(e)},eM=em?d.useLayoutEffect:d.useEffect,ek=["anchor","focus"],ex=["anchor","focus"],ey=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(r=>t.hasOwnProperty(r)&&e[r]===t[r]),eE=(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=eS(),i=eb.findPath(o,n),s=u.y$.parent(i),l=!0===r[Y];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(eC,{isTrailing:!0,text:r.text}):d.createElement(eC,{text:r.text}):d.createElement(eD,{isLineBreak:!0,isMarkPlaceholder:l})},eC=e=>{var{text:t,isTrailing:r=!1}=e,a=(0,d.useRef)(null),n=()=>"".concat(null!=t?t:"").concat(r?"\n":"");return(eM(()=>{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),es&&r?null:"\uFEFF",r?d.createElement("br",null):null)},eO=(0,d.createContext)(null),eS=()=>{var e=(0,d.useContext)(eO);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(eT,Object.assign({},e))}=e,s=(0,d.useRef)(null),l=eS(),c=(0,d.useRef)(null);(0,d.useEffect)(()=>()=>{c.current&&c.current.disconnect()},[]),(0,d.useEffect)(()=>{var e=null==s?void 0:s.current;if(e?x.set(l,e):x.delete(l),c.current?(c.current.disconnect(),e&&c.current.observe(e)):e&&(c.current=new ResizeObserver(e=>{var[{target:t}]=e,r=D.get(l);if(r){var a="".concat(t.clientHeight,"px");r.innerHTML=':where([data-slate-editor-id="'.concat(l.id,'"]) { min-height: ').concat(a,"; }")}}),c.current.observe(e)),!e){var t=D.get(l);t&&(t.innerHTML="")}return()=>{x.delete(l)}},[s,t]);var u=d.createElement(eL,{isLast:r,leaf:t,parent:n,text:a});if(t[q]){var f={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}};u=d.createElement(d.Fragment,null,o(f),u)}return i({attributes:{"data-slate-leaf":!0},children:u,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]),eT=e=>{var{attributes:t,children:r}=e;return d.createElement("span",Object.assign({},t),r)},eR=e=>{for(var{decorations:t,isLast:r,parent:a,renderPlaceholder:n,renderLeaf:o,text:i}=e,s=eS(),l=(0,d.useRef)(null),c=u.xv.decorations(i,t),f=eb.findKey(s,i),v=[],h=0;h{var e=C.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)},eP=d.memo(eR,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&eE(t.decorations,e.decorations)),eN=e=>{var{decorations:t,element:r,renderElement:a=e=>d.createElement(ej,Object.assign({},e)),renderPlaceholder:o,renderLeaf:i,selection:s}=e,l=eS(),c=e_(),f=l.isInline(r),v=eb.findKey(l,r),h=(0,d.useCallback)(e=>{var t=C.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=e$({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[[k]]=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(eP,{renderPlaceholder:o,decorations:[],isLast:!1,parent:r,text:k})),w.set(k,0),b.set(k,r)}return a({attributes:g,children:p,element:r})},eW=d.memo(eN,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&eE(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&u.e6.equals(e.selection,t.selection))),ej=e=>{var{attributes:t,children:r,element:a}=e,n=eS().isInline(a)?"span":"div";return d.createElement(n,Object.assign({},t,{style:{position:"relative"}}),r)},eA=(0,d.createContext)(()=>[]),eI=()=>(0,d.useContext)(eA),eq=(0,d.createContext)(!1),eY=()=>(0,d.useContext)(eq),e$=e=>{for(var{decorations:t,node:r,renderElement:a,renderPlaceholder:n,renderLeaf:o,selection:i}=e,s=eI(),l=eS(),c=eb.findPath(l,r),f=[],v=u.W_.isElement(r)&&!l.isInline(r)&&u.ML.hasInlines(l,r),h=0;h(0,d.useContext)(eU),ez=(0,d.createContext)(null),eV=()=>{var e=(0,d.useContext)(ez);if(!e)throw Error("The `useSlate` hook must be used inside the component's context.");var{editor:t}=e;return t},eH={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"},eK={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"},eX={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},eJ=e=>{var t=eH[e],r=eK[e],a=eX[e],n=t&&(0,f.TB)(t),o=r&&(0,f.TB)(r),i=a&&(0,f.TB)(a);return e=>!!(n&&n(e)||ei&&o&&o(e)||!ei&&i&&i(e))},eQ={isBold:eJ("bold"),isCompose:eJ("compose"),isMoveBackward:eJ("moveBackward"),isMoveForward:eJ("moveForward"),isDeleteBackward:eJ("deleteBackward"),isDeleteForward:eJ("deleteForward"),isDeleteLineBackward:eJ("deleteLineBackward"),isDeleteLineForward:eJ("deleteLineForward"),isDeleteWordBackward:eJ("deleteWordBackward"),isDeleteWordForward:eJ("deleteWordForward"),isExtendBackward:eJ("extendBackward"),isExtendForward:eJ("extendForward"),isExtendLineBackward:eJ("extendLineBackward"),isExtendLineForward:eJ("extendLineForward"),isItalic:eJ("italic"),isMoveLineBackward:eJ("moveLineBackward"),isMoveLineForward:eJ("moveLineForward"),isMoveWordBackward:eJ("moveWordBackward"),isMoveWordForward:eJ("moveWordForward"),isRedo:eJ("redo"),isSoftBreak:eJ("insertSoftBreak"),isSplitBlock:eJ("splitBlock"),isTransposeCharacter:eJ("transposeCharacter"),isUndo:eJ("undo")},eZ=(e,t)=>{var r=[],a=()=>{r=[]},n=a=>{if(t.current){var n=a.filter(t=>ea(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}},eG={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class e0 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,eG)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=eZ(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}}e0.contextType=eO;var e1=es?e0:e=>{var{children:t}=e;return d.createElement(d.Fragment,null,t)};function e6(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 e9(e,t){var r=e2(e,t.anchor);if(!r)return null;if(u.e6.isCollapsed(t))return{anchor:r,focus:r};var a=e2(e,t.focus);return a?{anchor:r,focus:a}:null}function e3(e,t,r){var a=W.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,e$(e)),tl=0,td=e=>{var t,r,a,o,{autoFocus:s,decorate:c=tu,onDOMBeforeInput:f,placeholder:v,readOnly:g=!1,renderElement:m,renderLeaf:w,renderPlaceholder:b=e=>d.createElement(tc,Object.assign({},e)),scrollSelectionIntoView:L=tf,style:C={},as:T="div"}=e,$=p(e,ta),_=eV(),[K,J]=(0,d.useState)(!1),Q=(0,d.useRef)(null),Z=(0,d.useRef)([]),{onUserInput:G,receivedUserInput:ee}=(t=eS(),r=(0,d.useRef)(!1),a=(0,d.useRef)(0),o=(0,d.useCallback)(()=>{if(!r.current){r.current=!0;var e=eb.getWindow(t);e.cancelAnimationFrame(a.current),a.current=e.requestAnimationFrame(()=>{r.current=!1})}},[]),(0,d.useEffect)(()=>()=>cancelAnimationFrame(a.current),[]),{receivedUserInput:r,onUserInput:o}),[,et]=(0,d.useReducer)(e=>e+1,0);I.set(_,et),O.set(_,g);var er=(0,d.useMemo)(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);(0,d.useEffect)(()=>{Q.current&&s&&Q.current.focus()},[s]);var en=(0,d.useCallback)(l()(()=>{if((es||!eb.isComposing(_))&&(!er.isUpdatingSelection||null!=ec&&ec.isFlushing())&&!er.isDraggingInternally){var e=eb.findDocumentOrShadowRoot(_),{activeElement:t}=e,r=eb.toDOMNode(_,_),a=e.getSelection();if(t===r?(er.latestElement=t,S.set(_,!0)):S.delete(_),!a)return u.YR.deselect(_);var{anchorNode:n,focusNode:o}=a,i=eb.hasEditableTarget(_,n)||eb.isTargetInsideNonReadonlyVoid(_,n),s=eb.hasEditableTarget(_,o)||eb.isTargetInsideNonReadonlyVoid(_,o);if(i&&s){var l=eb.toSlateRange(_,a,{exactMatch:!1,suppressThrow:!0});l&&(eb.isComposing(_)||null!=ec&&ec.hasPendingChanges()||null!=ec&&ec.isFlushing()?null==ec||ec.handleUserSelect(l):u.YR.select(_,l))}!g||i&&s||u.YR.deselect(_)}},100),[g]),ei=(0,d.useMemo)(()=>i()(en,0),[en]),ec=function(e){var t,{node:r}=e,a=p(e,te);if(!es)return null;var n=eS(),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=A.get(t);if(A.delete(t),e){var{selection:r}=t,a=e9(t,e);!a||r&&u.e6.equals(a,r)||u.YR.select(t,a)}},f=()=>{var e=j.get(t);if(j.delete(t),e){if(e.at){var r=u.E9.isPoint(e.at)?e2(t,e.at):e9(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),!k()&&!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",j.get(t),W.get(t));for(var o=!!(null!==(l=W.get(t))&&void 0!==l&&l.length);v=null===(h=W.get(t))||void 0===h?void 0:h[0];){var l,v,h,p,g=P.get(t);void 0!==g&&(P.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),W.set(t,null===(p=W.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,j.delete(t),N.delete(t),n="action",A.delete(t),r.cancel(),a.cancel(),null==e||e.unref())}var w=null==e?void 0:e.unref();if(!w||A.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())},h=e=>{o&&clearTimeout(o),o=setTimeout(()=>{F.set(t,!1),v()},25)},p=e=>{F.set(t,!0),o&&(clearTimeout(o),o=null)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=x.get(t);if(r){if(k()||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=W.get(t))&&void 0!==v?v:[];W.set(t,h);var p=u.NB.leaf(t,e),m=h.findIndex(t=>u.y$.equals(t.path,e));if(m<0){e6(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)),e6(a,{start:o,end:f,text:c}));if(!w){h.splice(m,1),g();return}h[m]=e8(e8({},h[m]),{},{diff:w})},w=function(e){var{at:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d=!1,A.delete(t),r.cancel(),a.cancel(),M()&&v(),j.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=eb.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!0}));var s=eb.getWindow(t).getSelection();if(!a&&s&&(o=s,a=eb.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,k,{anchor:x}=a;if((H(o)?o.isCollapsed:!!(null!==(k=o)&&void 0!==k&&k.collapsed))&&u.e6.isCollapsed(a)&&x.offset>0)return m(x.path,{text:"",start:x.offset-1,end:x.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(()=>eb.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(P.get(t)&&(y=y.replace("\uFEFF","")),u.y$.equals(a.anchor.path,a.focus.path)){var[E,L]=u.e6.edges(a),C={start:E.offset,end:L.offset,text:y};if(y&&d&&"insertCompositionText"===r){var O=d.start+d.text.search(/\S|$/);C.start+C.text.search(/\S|$/)===O+1&&C.end===d.start+d.text.length?(C.start-=1,d=null,D()):d=!1}else d="insertText"===r&&(null===d?C:!!(d&&u.e6.isCollapsed(a))&&d.end+d.text.length===E.offset&&e8(e8({},d),{},{text:d.text+y}));m(E.path,C);return}return w(()=>u.ML.insertText(t,y),{at:a})}}},M=()=>!!j.get(t),k=()=>{var e;return!!(null!==(e=W.get(t))&&void 0!==e&&e.length)},y=()=>M()||k(),E=e=>{A.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||!k())&&(i=setTimeout(v,200))}},L=()=>{(M()||!k())&&v()},C=e=>{k()||(g(!0),setTimeout(g))},D=()=>{M()||(s=setTimeout(v))},O=e=>{if(!(k()||M())&&e.some(r=>ea(t,r,e))){var r;null===(r=I.get(t))||void 0===r||r()}};return{flush:v,scheduleFlush:D,hasPendingDiffs:k,hasPendingAction:M,hasPendingChanges:y,isFlushing:()=>n,handleUserSelect:E,handleCompositionEnd:h,handleCompositionStart:p,handleDOMBeforeInput:b,handleKeyDown:C,handleDomMutations:O,handleInput:L}})(function(e){for(var t=1;tnew MutationObserver(t));eM(()=>{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,tr),R.set(n,i.scheduleFlush),o&&i.flush(),i}({node:Q,onDOMSelectionChange:en,scheduleOnDOMSelectionChange:ei});eM(()=>{Q.current&&(e=U(Q.current))?(M.set(_,e),k.set(_,Q.current),E.set(_,Q.current),y.set(Q.current,_)):E.delete(_);var e,{selection:t}=_,r=eb.findDocumentOrShadowRoot(_).getSelection();if(!(!r||!eb.isFocused(_)||null!=ec&&ec.hasPendingAction())){var a=e=>{var a="None"!==r.type;if(t||a){var n=k.get(_),o=!1;if(n.contains(r.anchorNode)&&n.contains(r.focusNode)&&(o=!0),a&&o&&t&&!e){var i=eb.toSlateRange(_,r,{exactMatch:!0,suppressThrow:!0});if(i&&u.e6.equals(i,t)){if(!er.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&&!eb.hasRange(_,t)){_.selection=eb.toSlateRange(_,r,{exactMatch:!1,suppressThrow:!0});return}er.isUpdatingSelection=!0;var d=t&&eb.toDOMRange(_,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(_,d)):r.removeAllRanges(),d}},n=a(),o=(null==ec?void 0:ec.isFlushing())==="action";if(!es||!o){setTimeout(()=>{n&&el&&eb.toDOMNode(_,_).focus(),er.isUpdatingSelection=!1});return}var i=null,s=requestAnimationFrame(()=>{if(o){var e=e=>{try{eb.toDOMNode(_,_).focus(),a(e)}catch(t){}};e(),i=setTimeout(()=>{e(!0),er.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(s),i&&clearTimeout(i)}}});var ef=(0,d.useCallback)(e=>{if(G(),!g&&eb.hasEditableTarget(_,e.target)&&!th(e,f)){if(ec)return ec.handleDOMBeforeInput(e);ei.flush(),en.flush();var{selection:t}=_,{inputType:r}=e,a=e.dataTransfer||e.data||void 0,n="insertCompositionText"===r||"deleteCompositionText"===r;if(!(n&&eb.isComposing(_))){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,_.marks&&(o=!1);var{anchor:i}=t,[s,l]=eb.toDOMPoint(_,i),d=null===(h=s.parentElement)||void 0===h?void 0:h.closest("a"),c=eb.getWindow(_);if(o&&d&&eb.hasDOMNode(_,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(_,{at:i.path,match:e=>u.ML.isBlock(_,e)});b&&u.NB.string(b[0]).includes(" ")&&(o=!1)}}if(!r.startsWith("delete")||r.startsWith("deleteBy")){var[M]=e.getTargetRanges();if(M){var k=eb.toSlateRange(_,M,{exactMatch:!1,suppressThrow:!1});if(!t||!u.e6.equals(t,k)){o=!1;var x=!n&&_.selection&&u.ML.rangeRef(_,_.selection);u.YR.select(_,k),x&&B.set(_,x)}}}if(!n){if(o||e.preventDefault(),t&&u.e6.isExpanded(t)&&r.startsWith("delete")){var y=r.endsWith("Backward")?"backward":"forward";u.ML.deleteFragment(_,{direction:y});return}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":u.ML.deleteFragment(_);break;case"deleteContent":case"deleteContentForward":u.ML.deleteForward(_);break;case"deleteContentBackward":u.ML.deleteBackward(_);break;case"deleteEntireSoftLine":u.ML.deleteBackward(_,{unit:"line"}),u.ML.deleteForward(_,{unit:"line"});break;case"deleteHardLineBackward":u.ML.deleteBackward(_,{unit:"block"});break;case"deleteSoftLineBackward":u.ML.deleteBackward(_,{unit:"line"});break;case"deleteHardLineForward":u.ML.deleteForward(_,{unit:"block"});break;case"deleteSoftLineForward":u.ML.deleteForward(_,{unit:"line"});break;case"deleteWordBackward":u.ML.deleteBackward(_,{unit:"word"});break;case"deleteWordForward":u.ML.deleteForward(_,{unit:"word"});break;case"insertLineBreak":u.ML.insertSoftBreak(_);break;case"insertParagraph":u.ML.insertBreak(_);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===r&&eb.isComposing(_)&&(J(!1),F.set(_,!1)),(null==a?void 0:a.constructor.name)==="DataTransfer"?eb.insertData(_,a):"string"==typeof a&&(o?Z.current.push(()=>u.ML.insertText(_,a)):u.ML.insertText(_,a))}var E=null===(v=B.get(_))||void 0===v?void 0:v.unref();B.delete(_),!E||_.selection&&u.e6.equals(_.selection,E)||u.YR.select(_,E)}}}},[g,f]);eM(()=>(Q.current&&ew&&Q.current.addEventListener("beforeinput",ef),()=>{Q.current&&ew&&Q.current.removeEventListener("beforeinput",ef)}),[ef]),eM(()=>{var e=eb.getWindow(_);return e.document.addEventListener("selectionchange",ei),()=>{e.document.removeEventListener("selectionchange",ei)}},[ei]);var ek=c([_,[]]);if(v&&1===_.children.length&&1===Array.from(u.NB.texts(_)).length&&""===u.NB.string(_)&&!K){var ex=u.ML.start(_,[]);ek.push({[q]:!0,placeholder:v,anchor:ex,focus:ex})}var{marks:ey}=_;if(er.hasMarkPlaceholder=!1,_.selection&&u.e6.isCollapsed(_.selection)&&ey){var{anchor:eE}=_.selection,eL=u.NB.leaf(_,eE.path),eC=p(eL,tn);if(!u.xv.equals(eL,ey,{loose:!0})){er.hasMarkPlaceholder=!0;var eD=Object.fromEntries(Object.keys(eC).map(e=>[e,null]));ek.push(ti(ti(ti({[Y]:!0},eD),ey),{},{anchor:eE,focus:eE}))}}return(0,d.useEffect)(()=>{setTimeout(()=>{var{selection:e}=_;if(e){var{anchor:t}=e,r=u.NB.leaf(_,t.path);if(ey&&!u.xv.equals(r,ey,{loose:!0})){P.set(_,ey);return}}P.delete(_)})}),(0,d.useEffect)(()=>{if(1==++tl){var e=document.createElement("style");e.setAttribute("data-slate-default-styles","true"),e.innerHTML=":where([data-slate-editor]) {position: relative;outline: none;white-space: pre-wrap;word-wrap: break-word;}",document.head.appendChild(e)}return()=>{var e;--tl<=0&&(null===(e=document.querySelector("style[data-slate-default-styles]"))||void 0===e||e.remove())}},[]),(0,d.useEffect)(()=>{var e=document.createElement("style");return document.head.appendChild(e),D.set(_,e),()=>{e.remove(),D.delete(_)}},[]),d.createElement(eU.Provider,{value:g},d.createElement(eA.Provider,{value:c},d.createElement(e1,{node:Q,receivedUserInput:ee},d.createElement(T,Object.assign({role:g?void 0:"textbox","aria-multiline":!g||void 0},$,{spellCheck:(!!ew||!em)&&$.spellCheck,autoCorrect:ew||!em?$.autoCorrect:"false",autoCapitalize:ew||!em?$.autoCapitalize:"false","data-slate-editor":!0,"data-slate-editor-id":_.id,"data-slate-node":"value",contentEditable:!g,zindex:-1,suppressContentEditableWarning:!0,ref:Q,style:C,onBeforeInput:(0,d.useCallback)(e=>{if(!ew&&!g&&!tv(e,$.onBeforeInput)&&eb.hasSelectableTarget(_,e.target)&&(e.preventDefault(),!eb.isComposing(_))){var t=e.data;u.ML.insertText(_,t)}},[g]),onInput:(0,d.useCallback)(e=>{if(ec){ec.handleInput();return}for(var t of Z.current)t();Z.current=[]},[]),onBlur:(0,d.useCallback)(e=>{if(!(g||er.isUpdatingSelection||!eb.hasSelectableTarget(_,e.target)||tv(e,$.onBlur))){var t=eb.findDocumentOrShadowRoot(_);if(er.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(!(r===eb.toDOMNode(_,_)||z(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&V(r)&&eb.hasDOMNode(_,r)){var a=eb.toSlateNode(_,r);if(u.W_.isElement(a)&&!_.isVoid(a))return}if(ed){var n=t.getSelection();null==n||n.removeAllRanges()}S.delete(_)}}}},[g,$.onBlur]),onClick:(0,d.useCallback)(e=>{if(eb.hasTarget(_,e.target)&&!tv(e,$.onClick)&&V(e.target)){var t=eb.toSlateNode(_,e.target),r=eb.findPath(_,t);if(u.ML.hasPath(_,r)&&u.NB.get(_,r)===t){if(3===e.detail&&r.length>=1){var a=r;if(!u.ML.isBlock(_,t)){var n,o=u.ML.above(_,{match:e=>u.ML.isBlock(_,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(_,a);u.YR.select(_,i);return}if(!g){var s=u.ML.start(_,r),l=u.ML.end(_,r),d=u.ML.void(_,{at:s}),c=u.ML.void(_,{at:l});if(d&&c&&u.y$.equals(d[1],c[1])){var f=u.ML.range(_,s);u.YR.select(_,f)}}}}},[g,$.onClick]),onCompositionEnd:(0,d.useCallback)(e=>{if(eb.hasSelectableTarget(_,e.target)&&(eb.isComposing(_)&&(J(!1),F.set(_,!1)),null==ec||ec.handleCompositionEnd(e),!tv(e,$.onCompositionEnd)&&!es&&!ed&&!ev&&!eo&&!eh&&!eg&&!ep&&e.data)){var t=P.get(_);P.delete(_),void 0!==t&&(N.set(_,_.marks),_.marks=t),u.ML.insertText(_,e.data);var r=N.get(_);N.delete(_),void 0!==r&&(_.marks=r)}},[$.onCompositionEnd]),onCompositionUpdate:(0,d.useCallback)(e=>{!eb.hasSelectableTarget(_,e.target)||tv(e,$.onCompositionUpdate)||eb.isComposing(_)||(J(!0),F.set(_,!0))},[$.onCompositionUpdate]),onCompositionStart:(0,d.useCallback)(e=>{if(eb.hasSelectableTarget(_,e.target)&&(null==ec||ec.handleCompositionStart(e),!tv(e,$.onCompositionStart)&&!es)){J(!0);var{selection:t}=_;if(t){if(u.e6.isExpanded(t)){u.ML.deleteFragment(_);return}var r=u.ML.above(_,{match:e=>u.ML.isInline(_,e),mode:"highest"});if(r){var[,a]=r;if(u.ML.isEnd(_,t.anchor,a)){var n=u.ML.after(_,a);u.YR.setSelection(_,{anchor:n,focus:n})}}}}},[$.onCompositionStart]),onCopy:(0,d.useCallback)(e=>{eb.hasSelectableTarget(_,e.target)&&!tv(e,$.onCopy)&&(e.preventDefault(),eb.setFragmentData(_,e.clipboardData,"copy"))},[$.onCopy]),onCut:(0,d.useCallback)(e=>{if(!g&&eb.hasSelectableTarget(_,e.target)&&!tv(e,$.onCut)){e.preventDefault(),eb.setFragmentData(_,e.clipboardData,"cut");var{selection:t}=_;if(t){if(u.e6.isExpanded(t))u.ML.deleteFragment(_);else{var r=u.NB.parent(_,t.anchor.path);u.ML.isVoid(_,r)&&u.YR.delete(_)}}}},[g,$.onCut]),onDragOver:(0,d.useCallback)(e=>{if(eb.hasTarget(_,e.target)&&!tv(e,$.onDragOver)){var t=eb.toSlateNode(_,e.target);u.ML.isVoid(_,t)&&e.preventDefault()}},[$.onDragOver]),onDragStart:(0,d.useCallback)(e=>{if(!g&&eb.hasTarget(_,e.target)&&!tv(e,$.onDragStart)){var t=eb.toSlateNode(_,e.target),r=eb.findPath(_,t);if(u.ML.isVoid(_,t)||u.ML.void(_,{at:r,voids:!0})){var a=u.ML.range(_,r);u.YR.select(_,a)}er.isDraggingInternally=!0,eb.setFragmentData(_,e.dataTransfer,"drag")}},[g,$.onDragStart]),onDrop:(0,d.useCallback)(e=>{if(!g&&eb.hasTarget(_,e.target)&&!tv(e,$.onDrop)){e.preventDefault();var t=_.selection,r=eb.findEventRange(_,e),a=e.dataTransfer;u.YR.select(_,r),er.isDraggingInternally&&t&&!u.e6.equals(t,r)&&!u.ML.void(_,{at:r,voids:!0})&&u.YR.delete(_,{at:t}),eb.insertData(_,a),eb.isFocused(_)||eb.focus(_)}er.isDraggingInternally=!1},[g,$.onDrop]),onDragEnd:(0,d.useCallback)(e=>{!g&&er.isDraggingInternally&&$.onDragEnd&&eb.hasTarget(_,e.target)&&$.onDragEnd(e),er.isDraggingInternally=!1},[g,$.onDragEnd]),onFocus:(0,d.useCallback)(e=>{if(!g&&!er.isUpdatingSelection&&eb.hasEditableTarget(_,e.target)&&!tv(e,$.onFocus)){var t=eb.toDOMNode(_,_),r=eb.findDocumentOrShadowRoot(_);if(er.latestElement=r.activeElement,el&&e.target!==t){t.focus();return}S.set(_,!0)}},[g,$.onFocus]),onKeyDown:(0,d.useCallback)(e=>{if(!g&&eb.hasEditableTarget(_,e.target)){null==ec||ec.handleKeyDown(e);var{nativeEvent:t}=e;if(eb.isComposing(_)&&!1===t.isComposing&&(F.set(_,!1),J(!1)),!(tv(e,$.onKeyDown)||eb.isComposing(_))){var{selection:r}=_,a=_.children[null!==r?r.focus.path[0]:0],o="rtl"===n()(u.NB.string(a));if(eQ.isRedo(t)){e.preventDefault(),"function"==typeof _.redo&&_.redo();return}if(eQ.isUndo(t)){e.preventDefault(),"function"==typeof _.undo&&_.undo();return}if(eQ.isMoveLineBackward(t)){e.preventDefault(),u.YR.move(_,{unit:"line",reverse:!0});return}if(eQ.isMoveLineForward(t)){e.preventDefault(),u.YR.move(_,{unit:"line"});return}if(eQ.isExtendLineBackward(t)){e.preventDefault(),u.YR.move(_,{unit:"line",edge:"focus",reverse:!0});return}if(eQ.isExtendLineForward(t)){e.preventDefault(),u.YR.move(_,{unit:"line",edge:"focus"});return}if(eQ.isMoveBackward(t)){e.preventDefault(),r&&u.e6.isCollapsed(r)?u.YR.move(_,{reverse:!o}):u.YR.collapse(_,{edge:"start"});return}if(eQ.isMoveForward(t)){e.preventDefault(),r&&u.e6.isCollapsed(r)?u.YR.move(_,{reverse:o}):u.YR.collapse(_,{edge:"end"});return}if(eQ.isMoveWordBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)&&u.YR.collapse(_,{edge:"focus"}),u.YR.move(_,{unit:"word",reverse:!o});return}if(eQ.isMoveWordForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)&&u.YR.collapse(_,{edge:"focus"}),u.YR.move(_,{unit:"word",reverse:o});return}if(ew){if((eu||ed)&&r&&(eQ.isDeleteBackward(t)||eQ.isDeleteForward(t))&&u.e6.isCollapsed(r)){var i=u.NB.parent(_,r.anchor.path);if(u.W_.isElement(i)&&u.ML.isVoid(_,i)&&(u.ML.isInline(_,i)||u.ML.isBlock(_,i))){e.preventDefault(),u.ML.deleteBackward(_,{unit:"block"});return}}}else{if(eQ.isBold(t)||eQ.isItalic(t)||eQ.isTransposeCharacter(t)){e.preventDefault();return}if(eQ.isSoftBreak(t)){e.preventDefault(),u.ML.insertSoftBreak(_);return}if(eQ.isSplitBlock(t)){e.preventDefault(),u.ML.insertBreak(_);return}if(eQ.isDeleteBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(_,{direction:"backward"}):u.ML.deleteBackward(_);return}if(eQ.isDeleteForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(_,{direction:"forward"}):u.ML.deleteForward(_);return}if(eQ.isDeleteLineBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(_,{direction:"backward"}):u.ML.deleteBackward(_,{unit:"line"});return}if(eQ.isDeleteLineForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(_,{direction:"forward"}):u.ML.deleteForward(_,{unit:"line"});return}if(eQ.isDeleteWordBackward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(_,{direction:"backward"}):u.ML.deleteBackward(_,{unit:"word"});return}if(eQ.isDeleteWordForward(t)){e.preventDefault(),r&&u.e6.isExpanded(r)?u.ML.deleteFragment(_,{direction:"forward"}):u.ML.deleteForward(_,{unit:"word"});return}}}}},[g,$.onKeyDown]),onPaste:(0,d.useCallback)(e=>{!g&&eb.hasSelectableTarget(_,e.target)&&!tv(e,$.onPaste)&&(!ew||X(e.nativeEvent))&&(e.preventDefault(),eb.insertData(_,e.clipboardData))},[g,$.onPaste])}),d.createElement(ts,{decorations:ek,node:_,renderElement:m,renderPlaceholder:b,renderLeaf:w,selection:_.selection})))))},tc=e=>{var{attributes:t,children:r}=e;return d.createElement("span",Object.assign({},t),r,es&&d.createElement("br",null))},tu=()=>[],tf=(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}},tv=(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},tp=(0,d.createContext)(!1),tg=()=>(0,d.useContext)(tp),tm=(0,d.createContext)({}),tw=["editor","children","onChange","value"],tb=e=>{var t,r,a,n,{editor:o,children:i,onChange:s,value:l}=e,c=p(e,tw),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]);T.set(o,w),(0,d.useEffect)(()=>()=>{T.set(o,()=>{}),f.current=!0},[]);var[b,M]=(0,d.useState)(eb.isFocused(o));return(0,d.useEffect)(()=>{M(eb.isFocused(o))}),eM(()=>{var e=()=>M(eb.isFocused(o));return en?(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(tm.Provider,{value:g},d.createElement(ez.Provider,{value:v},d.createElement(eO.Provider,{value:v.editor},d.createElement(tp.Provider,{value:b},i))))},tM=(e,t)=>{var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},tk=(e,t,r)=>{var a=eb.toDOMRange(e,t).getBoundingClientRect(),n=eb.toDOMRange(e,r).getBoundingClientRect();return tM(a,n)&&tM(n,a)},tx=(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 ty(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 C.set(t,new WeakMap),t.addMark=(e,r)=>{var a,n;null===(a=R.get(t))||void 0===a||a(),!P.get(t)&&null!==(n=W.get(t))&&void 0!==n&&n.length&&P.set(t,null),N.delete(t),o(e,r)},t.removeMark=e=>{var r;!P.get(t)&&null!==(r=W.get(t))&&void 0!==r&&r.length&&P.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=tx(t,o);u.e6.isCollapsed(i)||u.YR.delete(t,{at:i})}}},t.apply=e=>{var a,n=[],o=W.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);W.set(t,i)}var s=A.get(t);s&&A.set(t,e7(t,s,e));var l=j.get(t);if(null!=l&&l.at){var d=u.E9.isPoint(null==l?void 0:l.at)?e3(t,l.at,e):e7(t,l.at,e);j.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);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=eb.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=eb.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":""}),K(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",ee(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")||er(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=T.get(t);e&&e(),a()})},t},tC=(e,t)=>{var r=[];for(var[a,n]of u.ML.levels(e,{at:t})){var o=eb.findKey(e,a);r.push([n,o])}return r}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/webpack-47532d75414a7b3e.js b/static/web/_next/static/chunks/webpack-fec4316652d3032e.js similarity index 99% rename from static/web/_next/static/chunks/webpack-47532d75414a7b3e.js rename to static/web/_next/static/chunks/webpack-fec4316652d3032e.js index cc33f9860..b308a21b6 100644 --- a/static/web/_next/static/chunks/webpack-47532d75414a7b3e.js +++ b/static/web/_next/static/chunks/webpack-fec4316652d3032e.js @@ -1 +1 @@ -!function(){"use strict";var e,t,c,a,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 c=l[e]={id:e,loaded:!1,exports:{}},a=!0;try{s[e].call(c.exports,c,c.exports,h),a=!1}finally{a&&delete l[e]}return c.loaded=!0,c.exports}h.m=s,h.amdO={},e=[],h.O=function(t,c,a,f){if(c){f=f||0;for(var d=e.length;d>0&&e[d-1][2]>f;d--)e[d]=e[d-1];e[d]=[c,a,f];return}for(var n=1/0,d=0;d=f&&Object.keys(h.O).every(function(e){return h.O[e](c[b])})?c.splice(b--,1):(r=!1,f0&&e[d-1][2]>f;d--)e[d]=e[d-1];e[d]=[c,a,f];return}for(var n=1/0,d=0;d=f&&Object.keys(h.O).every(function(e){return h.O[e](c[b])})?c.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 0e67b8626..1044df2a3 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/emojis/index.html b/static/web/admin/chat/emojis/index.html index bd92a9b1a..4a922aa32 100644 --- a/static/web/admin/chat/emojis/index.html +++ b/static/web/admin/chat/emojis/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Emojis

Here you can upload new custom emojis for usage in the chat. When uploading a new emoji, the filename will be used as emoji name.
NameEmoji
No data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Emojis

Here you can upload new custom emojis for usage in the chat. When uploading a new emoji, the filename will be used as emoji name.
NameEmoji
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 0fe26a210..95970cc08 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 0f6548962..3345d98c1 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 a9c949fd9..e9aa13e96 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 b5e749bfc..eeeaca4e0 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 9b7b8f857..0de309adb 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 cfc641662..aaee0dd48 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 75b88cbb8..af052c155 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 8646613e1..60ea6e699 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 77e5c76d8..e95dfd451 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 34aa30593..9133b626b 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 e1a3c3cd2..8a0cbeb45 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/config/streamkeys/index.html b/static/web/admin/config/streamkeys/index.html index e1a9d4812..e4e1d8f5b 100644 --- a/static/web/admin/config/streamkeys/index.html +++ b/static/web/admin/config/streamkeys/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Streaming Keys

A streaming key is used with your broadcasting software to authenticate itself to Owncast. Most people will only need one. However, if you share a server with others or you want different keys for different broadcasting sources you can add more here.
These keys are unrelated to the admin password and will not grant you access to make changes to Owncast's configuration.
Read more about broadcasting at the documentation.
KeyComment
No data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Streaming Keys

A streaming key is used with your broadcasting software to authenticate itself to Owncast. Most people will only need one. However, if you share a server with others or you want different keys for different broadcasting sources you can add more here.
These keys are unrelated to the admin password and will not grant you access to make changes to Owncast's configuration.
Read more about broadcasting at the documentation.
KeyComment
No data

\ 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 fd00ba068..de0bcde3e 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 4faa976ce..603bd85aa 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 d8e3ccf36..a9d301ea4 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 d24b6f863..e8dc419fc 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 e7ce81133..99f50babc 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.

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.

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 f852466dc..c5714c77d 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 1b2d73077..2eca19977 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 d702800bf..da4791a95 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 762413f49..24fd7d9f8 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 1eb7f10f2..79e2a1c46 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 04564616d..5bbd37d99 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 e5a19321d..b17f77758 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 418757fed..b7040db91 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 7781f47da..a5ade5ee0 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