From a5f6f49280ec1bd0a081d0dfc8fa78c5d7cafb27 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Fri, 23 Dec 2022 23:14:53 +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-95b09167d4c8b805.js => d2094a0f-c2013de6dbc53323.js} | 2 +- ...ebpack-b2f8ee83efa91bf9.js => webpack-4153413483452c5c.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/{ut8S1AcfQ_1S-cA_PkwCc => -5SF95DGrIwaYwAcgcmEw}/_buildManifest.js (98%) rename static/web/_next/static/{ut8S1AcfQ_1S-cA_PkwCc => -5SF95DGrIwaYwAcgcmEw}/_ssgManifest.js (100%) rename static/web/_next/static/chunks/{d2094a0f-95b09167d4c8b805.js => d2094a0f-c2013de6dbc53323.js} (86%) rename static/web/_next/static/chunks/{webpack-b2f8ee83efa91bf9.js => webpack-4153413483452c5c.js} (98%) diff --git a/static/web/404.html b/static/web/404.html index f84b7750e..368dd24b8 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 f84b7750e..368dd24b8 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/ut8S1AcfQ_1S-cA_PkwCc/_buildManifest.js b/static/web/_next/static/-5SF95DGrIwaYwAcgcmEw/_buildManifest.js similarity index 98% rename from static/web/_next/static/ut8S1AcfQ_1S-cA_PkwCc/_buildManifest.js rename to static/web/_next/static/-5SF95DGrIwaYwAcgcmEw/_buildManifest.js index b8e8f7e7c..fa4cba7b6 100644 --- a/static/web/_next/static/ut8S1AcfQ_1S-cA_PkwCc/_buildManifest.js +++ b/static/web/_next/static/-5SF95DGrIwaYwAcgcmEw/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,a,c,e,i,t,n,d,f,h,o,m,u,b,k,j,g,r,p,l,_,w,v,y,I,B,F,A,D,E){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[c,a,e,n,d,h,b,k,p,"static/chunks/8793-97f96a16bc8069f8.js",o,"static/css/0950ea13d6ff3d43.css","static/chunks/pages/index-4b95694efc1a0478.js"],"/_error":["static/chunks/pages/_error-02cc11fd74b4e5ff.js"],"/admin":[s,c,a,e,i,t,n,d,f,m,k,"static/chunks/8676-c38bd41883242e8e.js","static/chunks/pages/admin-5221044a356250c9.js"],"/admin/access-tokens":[s,c,a,e,i,t,"static/chunks/pages/admin/access-tokens-11d48bfbb9164a75.js"],"/admin/actions":[j,s,c,a,e,i,l,"static/chunks/pages/admin/actions-74918267e1a136d4.js"],"/admin/chat/emojis":[s,c,a,e,i,u,_,"static/chunks/pages/admin/chat/emojis-816a586418b83710.js"],"/admin/chat/messages":[j,s,c,a,e,i,t,d,w,"static/chunks/pages/admin/chat/messages-2228eaaf3b330365.js"],"/admin/chat/users":[j,s,c,a,e,i,t,n,d,w,"static/chunks/pages/admin/chat/users-91c7fbe4fd9c6cbb.js"],"/admin/config/appearance":[v,s,b,y,I,B,"static/css/6c8941159bdd16f6.css","static/chunks/pages/admin/config/appearance-567adc449d2dc459.js"],"/admin/config/streamkeys":[s,c,a,e,i,l,"static/chunks/pages/admin/config/streamkeys-34d61214246fa6ed.js"],"/admin/config-chat":[s,"static/chunks/pages/admin/config-chat-b4857a4a7fae071a.js"],"/admin/config-federation":[s,"static/chunks/8995-2163bbfbcf40237a.js","static/chunks/pages/admin/config-federation-9ae27c1ba5d89acd.js"],"/admin/config-notify":[s,"static/chunks/7187-1eb4e0029ced6d6f.js","static/chunks/pages/admin/config-notify-85efccec12709d62.js"],"/admin/config-public-details":[v,s,c,a,e,i,u,y,_,"static/chunks/7022-4af2eaa76070d1d8.js","static/chunks/pages/admin/config-public-details-c3a4c0c8f8a33c5e.js"],"/admin/config-server-details":[s,"static/chunks/pages/admin/config-server-details-2012b4860317eb65.js"],"/admin/config-social-items":[s,c,a,e,i,"static/chunks/pages/admin/config-social-items-77a7605b50d74264.js"],"/admin/config-storage":[s,"static/chunks/pages/admin/config-storage-d61b1d9c973a1eda.js"],"/admin/config-video":[s,c,a,e,i,B,"static/chunks/2729-1c5084eb645c9eab.js","static/chunks/pages/admin/config-video-63aec11ae5babbd9.js"],"/admin/federation/actions":[s,c,a,e,i,t,"static/chunks/pages/admin/federation/actions-c184bd23e2d9eac5.js"],"/admin/federation/followers":[c,a,e,i,t,n,"static/chunks/pages/admin/federation/followers-75a86a3e75f888a3.js"],"/admin/hardware-info":[g,s,t,n,f,u,m,r,"static/chunks/pages/admin/hardware-info-4aa7ed52fcb239f9.js"],"/admin/help":[n,f,b,I,"static/chunks/5682-3ce0b43db5671359.js","static/chunks/pages/admin/help-d51ac5a60cd64502.js"],"/admin/logs":[s,c,a,e,i,t,k,"static/chunks/pages/admin/logs-1da798696afcbce1.js"],"/admin/stream-health":[g,s,t,n,f,m,r,"static/chunks/7731-510a1c0a2d78ab06.js","static/chunks/pages/admin/stream-health-1a0b9804bb7e2b81.js"],"/admin/upgrade":[s,c,a,e,i,"static/chunks/2069-d9f139bc73aea8db.js","static/chunks/pages/admin/upgrade-0ddabcb9157be8ec.js"],"/admin/viewer-info":[g,s,c,a,e,i,t,n,d,f,u,m,r,"static/chunks/pages/admin/viewer-info-ca7e8445e1d0f23e.js"],"/admin/webhooks":[s,c,a,e,i,"static/chunks/pages/admin/webhooks-e8966ce2d3b8efca.js"],"/embed/chat/readonly":[F,A,h,D,o,E,"static/css/e2479775241cd5e1.css","static/chunks/pages/embed/chat/readonly-d5ddc4feaa5a70b3.js"],"/embed/chat/readwrite":[F,A,a,h,D,"static/chunks/4388-de04225921654db9.js",o,E,"static/css/d97e63babcccad86.css","static/chunks/pages/embed/chat/readwrite-f6cb9372ecb1b1b2.js"],"/embed/video":["static/chunks/d6e1aeb5-0705bf43bcd6af77.js",d,h,"static/css/7c735c05af084bb2.css","static/chunks/7902-139b487986de3737.js",p,o,"static/chunks/2239-de44814eef43316f.js","static/css/f065863129f648da.css","static/chunks/pages/embed/video-ff4917f8414b83db.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/4485-1a6d1dff2c7e9712.js","static/chunks/3903-40ef42f3e9eb46b5.js","static/chunks/8909-a55c2326f65c0475.js","static/chunks/4267-cfe0f573c442773c.js","static/chunks/2206-53aea32a26a350a8.js","static/chunks/8091-5d2e0cdb05cd1ef7.js","static/chunks/575-11393a44fd60b818.js","static/chunks/5938-b5bac17e4fa31c49.js","static/chunks/5101-e2c6238798b20535.js","static/chunks/6395-1fa5d21fb518ec29.js","static/chunks/7466-1e76829814bac0c3.js","static/chunks/4763-00b0de2ecc334aed.js","static/chunks/5577-80194f897feb81a1.js","static/chunks/1082-51b9f63c6446d49d.js","static/chunks/5360-e33fd95511650040.js","static/chunks/29107295-1453a3860b50f70e.js","static/chunks/ee8b1517-59bb2a2ed7929bc5.js","static/chunks/8245-bd6f98841500302a.js","static/chunks/7066-524305b22bfbc967.js","static/chunks/8119-57984c2c349ea105.js","static/chunks/2938-98037ce4e714d752.js","static/chunks/9550-1a77c14173cd266e.js","static/chunks/4ad82c5e-573627f1f4333b92.js","static/chunks/1943-6d1cab809126a603.js","static/chunks/1938-c04d908728a12ddb.js","static/chunks/7661-9773fc2a51b7e27d.js","static/chunks/d3048c20-93c008b4ff3ddb0e.js","static/chunks/d2094a0f-95b09167d4c8b805.js","static/chunks/3729-e88e6289f5436bb5.js","static/chunks/4977-748e4374e401ea01.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,u,b,k,j,g,r,p,l,_,w,v,y,I,B,F,A,D,E){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[c,a,e,n,d,h,b,k,p,"static/chunks/8793-97f96a16bc8069f8.js",o,"static/css/0950ea13d6ff3d43.css","static/chunks/pages/index-4b95694efc1a0478.js"],"/_error":["static/chunks/pages/_error-02cc11fd74b4e5ff.js"],"/admin":[s,c,a,e,i,t,n,d,f,m,k,"static/chunks/8676-c38bd41883242e8e.js","static/chunks/pages/admin-5221044a356250c9.js"],"/admin/access-tokens":[s,c,a,e,i,t,"static/chunks/pages/admin/access-tokens-11d48bfbb9164a75.js"],"/admin/actions":[j,s,c,a,e,i,l,"static/chunks/pages/admin/actions-74918267e1a136d4.js"],"/admin/chat/emojis":[s,c,a,e,i,u,_,"static/chunks/pages/admin/chat/emojis-816a586418b83710.js"],"/admin/chat/messages":[j,s,c,a,e,i,t,d,w,"static/chunks/pages/admin/chat/messages-2228eaaf3b330365.js"],"/admin/chat/users":[j,s,c,a,e,i,t,n,d,w,"static/chunks/pages/admin/chat/users-91c7fbe4fd9c6cbb.js"],"/admin/config/appearance":[v,s,b,y,I,B,"static/css/6c8941159bdd16f6.css","static/chunks/pages/admin/config/appearance-567adc449d2dc459.js"],"/admin/config/streamkeys":[s,c,a,e,i,l,"static/chunks/pages/admin/config/streamkeys-34d61214246fa6ed.js"],"/admin/config-chat":[s,"static/chunks/pages/admin/config-chat-b4857a4a7fae071a.js"],"/admin/config-federation":[s,"static/chunks/8995-2163bbfbcf40237a.js","static/chunks/pages/admin/config-federation-9ae27c1ba5d89acd.js"],"/admin/config-notify":[s,"static/chunks/7187-1eb4e0029ced6d6f.js","static/chunks/pages/admin/config-notify-85efccec12709d62.js"],"/admin/config-public-details":[v,s,c,a,e,i,u,y,_,"static/chunks/7022-4af2eaa76070d1d8.js","static/chunks/pages/admin/config-public-details-c3a4c0c8f8a33c5e.js"],"/admin/config-server-details":[s,"static/chunks/pages/admin/config-server-details-2012b4860317eb65.js"],"/admin/config-social-items":[s,c,a,e,i,"static/chunks/pages/admin/config-social-items-77a7605b50d74264.js"],"/admin/config-storage":[s,"static/chunks/pages/admin/config-storage-d61b1d9c973a1eda.js"],"/admin/config-video":[s,c,a,e,i,B,"static/chunks/2729-1c5084eb645c9eab.js","static/chunks/pages/admin/config-video-63aec11ae5babbd9.js"],"/admin/federation/actions":[s,c,a,e,i,t,"static/chunks/pages/admin/federation/actions-c184bd23e2d9eac5.js"],"/admin/federation/followers":[c,a,e,i,t,n,"static/chunks/pages/admin/federation/followers-75a86a3e75f888a3.js"],"/admin/hardware-info":[g,s,t,n,f,u,m,r,"static/chunks/pages/admin/hardware-info-4aa7ed52fcb239f9.js"],"/admin/help":[n,f,b,I,"static/chunks/5682-3ce0b43db5671359.js","static/chunks/pages/admin/help-d51ac5a60cd64502.js"],"/admin/logs":[s,c,a,e,i,t,k,"static/chunks/pages/admin/logs-1da798696afcbce1.js"],"/admin/stream-health":[g,s,t,n,f,m,r,"static/chunks/7731-510a1c0a2d78ab06.js","static/chunks/pages/admin/stream-health-1a0b9804bb7e2b81.js"],"/admin/upgrade":[s,c,a,e,i,"static/chunks/2069-d9f139bc73aea8db.js","static/chunks/pages/admin/upgrade-0ddabcb9157be8ec.js"],"/admin/viewer-info":[g,s,c,a,e,i,t,n,d,f,u,m,r,"static/chunks/pages/admin/viewer-info-ca7e8445e1d0f23e.js"],"/admin/webhooks":[s,c,a,e,i,"static/chunks/pages/admin/webhooks-e8966ce2d3b8efca.js"],"/embed/chat/readonly":[F,A,h,D,o,E,"static/css/e2479775241cd5e1.css","static/chunks/pages/embed/chat/readonly-d5ddc4feaa5a70b3.js"],"/embed/chat/readwrite":[F,A,a,h,D,"static/chunks/4388-de04225921654db9.js",o,E,"static/css/d97e63babcccad86.css","static/chunks/pages/embed/chat/readwrite-f6cb9372ecb1b1b2.js"],"/embed/video":["static/chunks/d6e1aeb5-0705bf43bcd6af77.js",d,h,"static/css/7c735c05af084bb2.css","static/chunks/7902-139b487986de3737.js",p,o,"static/chunks/2239-de44814eef43316f.js","static/css/f065863129f648da.css","static/chunks/pages/embed/video-ff4917f8414b83db.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/4485-1a6d1dff2c7e9712.js","static/chunks/3903-40ef42f3e9eb46b5.js","static/chunks/8909-a55c2326f65c0475.js","static/chunks/4267-cfe0f573c442773c.js","static/chunks/2206-53aea32a26a350a8.js","static/chunks/8091-5d2e0cdb05cd1ef7.js","static/chunks/575-11393a44fd60b818.js","static/chunks/5938-b5bac17e4fa31c49.js","static/chunks/5101-e2c6238798b20535.js","static/chunks/6395-1fa5d21fb518ec29.js","static/chunks/7466-1e76829814bac0c3.js","static/chunks/4763-00b0de2ecc334aed.js","static/chunks/5577-80194f897feb81a1.js","static/chunks/1082-51b9f63c6446d49d.js","static/chunks/5360-e33fd95511650040.js","static/chunks/29107295-1453a3860b50f70e.js","static/chunks/ee8b1517-59bb2a2ed7929bc5.js","static/chunks/8245-bd6f98841500302a.js","static/chunks/7066-524305b22bfbc967.js","static/chunks/8119-57984c2c349ea105.js","static/chunks/2938-98037ce4e714d752.js","static/chunks/9550-1a77c14173cd266e.js","static/chunks/4ad82c5e-573627f1f4333b92.js","static/chunks/1943-6d1cab809126a603.js","static/chunks/1938-c04d908728a12ddb.js","static/chunks/7661-9773fc2a51b7e27d.js","static/chunks/d3048c20-93c008b4ff3ddb0e.js","static/chunks/d2094a0f-c2013de6dbc53323.js","static/chunks/3729-e88e6289f5436bb5.js","static/chunks/4977-748e4374e401ea01.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/ut8S1AcfQ_1S-cA_PkwCc/_ssgManifest.js b/static/web/_next/static/-5SF95DGrIwaYwAcgcmEw/_ssgManifest.js similarity index 100% rename from static/web/_next/static/ut8S1AcfQ_1S-cA_PkwCc/_ssgManifest.js rename to static/web/_next/static/-5SF95DGrIwaYwAcgcmEw/_ssgManifest.js diff --git a/static/web/_next/static/chunks/d2094a0f-95b09167d4c8b805.js b/static/web/_next/static/chunks/d2094a0f-c2013de6dbc53323.js similarity index 86% rename from static/web/_next/static/chunks/d2094a0f-95b09167d4c8b805.js rename to static/web/_next/static/chunks/d2094a0f-c2013de6dbc53323.js index 9dd9271e3..d2c40de53 100644 --- a/static/web/_next/static/chunks/d2094a0f-95b09167d4c8b805.js +++ b/static/web/_next/static/chunks/d2094a0f-c2013de6dbc53323.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.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 +"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(t.getBoundingClientRect&&(!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-b2f8ee83efa91bf9.js b/static/web/_next/static/chunks/webpack-4153413483452c5c.js similarity index 98% rename from static/web/_next/static/chunks/webpack-b2f8ee83efa91bf9.js rename to static/web/_next/static/chunks/webpack-4153413483452c5c.js index 18fe95271..552cc5c4d 100644 --- a/static/web/_next/static/chunks/webpack-b2f8ee83efa91bf9.js +++ b/static/web/_next/static/chunks/webpack-4153413483452c5c.js @@ -1 +1 @@ -!function(){"use strict";var e,t,a,c,f,d,n,r,b,o,u,i,s={},l={};function h(e){var t=l[e];if(void 0!==t)return t.exports;var a=l[e]={id:e,loaded:!1,exports:{}},c=!0;try{s[e].call(a.exports,a,a.exports,h),c=!1}finally{c&&delete l[e]}return a.loaded=!0,a.exports}h.m=s,h.amdO={},e=[],h.O=function(t,a,c,f){if(a){f=f||0;for(var d=e.length;d>0&&e[d-1][2]>f;d--)e[d]=e[d-1];e[d]=[a,c,f];return}for(var n=1/0,d=0;d=f&&Object.keys(h.O).every(function(e){return h.O[e](a[b])})?a.splice(b--,1):(r=!1,f0&&e[d-1][2]>f;d--)e[d]=e[d-1];e[d]=[a,c,f];return}for(var n=1/0,d=0;d=f&&Object.keys(h.O).every(function(e){return h.O[e](a[b])})?a.splice(b--,1):(r=!1,fOwncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

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

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

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

\ No newline at end of file diff --git a/static/web/admin/actions/index.html b/static/web/admin/actions/index.html index e98bdd428..dc077063b 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 e20ca0ee4..6b945070f 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 d3b647f4c..54260c514 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 22b9b0c68..feae16be4 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 d1946ec7a..f89ebee9e 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 7b18049e6..ca41d0df9 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 9fbfc923f..d8427ef09 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 3623c6938..036f0b769 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 e41c73106..cfa5ccc52 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 5e9be0be5..062627bcc 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 0a3cc91cc..43a1a9d0d 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 1d73b6375..50af724e9 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 32ab7da9a..73317d3ee 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 6eeac39a1..150c5f1b6 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 8d1173681..e08f2dc73 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 f8d7b1ca4..3e857b97c 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 fcad2a0ee..74950ca32 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 685042d3b..7a12e7a26 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 68decf7b0..47ddbd524 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 b64e3c570..e1cbb18de 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 4726940bf..df9a99023 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 3f05f155b..be5b3d19c 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 f12acddd1..c83cc9e62 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 51ace128e..d0900938b 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 228bd972f..264d34116 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 9628e15b8..e117fcf75 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 6e899b5f9..a3b703615 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 9fc3ca717..57668553a 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