diff --git a/static/web/404.html b/static/web/404.html index 19bdd0c57..f81031281 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 19bdd0c57..f81031281 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/2PHoXvghxUJEuSZYB92KR/_buildManifest.js b/static/web/_next/static/AHfwI8q2tdwt5dN-doVir/_buildManifest.js similarity index 83% rename from static/web/_next/static/2PHoXvghxUJEuSZYB92KR/_buildManifest.js rename to static/web/_next/static/AHfwI8q2tdwt5dN-doVir/_buildManifest.js index c5b07fcb8..32f30b8e7 100644 --- a/static/web/_next/static/2PHoXvghxUJEuSZYB92KR/_buildManifest.js +++ b/static/web/_next/static/AHfwI8q2tdwt5dN-doVir/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(a,s,c,e,i,t,n,d,f,h,b,o,m,u,k,g,r,j,p,l,_,w,v,y,I,B,F,A){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[s,a,c,t,n,f,o,m,j,"static/chunks/4466-2e8c1156cd6902a6.js",h,"static/css/089ea92974e6f7ca.css","static/chunks/pages/index-77383441e78cee11.js"],"/_error":["static/chunks/pages/_error-02cc11fd74b4e5ff.js"],"/admin":[s,a,c,e,i,t,n,d,b,m,"static/chunks/8676-c38bd41883242e8e.js","static/chunks/pages/admin-f61cf9b387d8362c.js"],"/admin/access-tokens":[s,a,c,e,i,"static/chunks/pages/admin/access-tokens-91177ddb58bd90ee.js"],"/admin/actions":[u,s,a,c,e,p,"static/chunks/pages/admin/actions-0b45668aebec7dde.js"],"/admin/chat/messages":[u,s,a,c,e,i,n,l,"static/chunks/pages/admin/chat/messages-7e88922542839f8a.js"],"/admin/chat/users":[u,s,a,c,e,i,t,n,l,"static/chunks/pages/admin/chat/users-8fc28dfaa9e52d37.js"],"/admin/config/appearance":[_,o,w,v,"static/css/6c8941159bdd16f6.css","static/chunks/pages/admin/config/appearance-be1829febefc4db6.js"],"/admin/config/streamkeys":[s,a,c,e,p,"static/chunks/pages/admin/config/streamkeys-6a3f2badc0712b01.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-fab037451220beb1.js"],"/admin/config-federation":["static/chunks/8572-deca358d1a965d80.js","static/chunks/pages/admin/config-federation-3e7e0a54acf1bd9b.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-b525013f97b7a9a9.js"],"/admin/config-public-details":[_,s,a,c,e,k,w,"static/chunks/1043-9c545dc74036761a.js","static/chunks/pages/admin/config-public-details-085c048afcb776d7.js"],"/admin/config-server-details":[y,"static/chunks/pages/admin/config-server-details-fafadf003f21dada.js"],"/admin/config-social-items":[s,a,c,e,"static/chunks/pages/admin/config-social-items-f022d29681248095.js"],"/admin/config-storage":["static/chunks/pages/admin/config-storage-7c5510a084d9c01c.js"],"/admin/config-video":[s,a,c,e,y,"static/chunks/6962-f197cc126c73fb7f.js","static/chunks/pages/admin/config-video-ea088d6f81d33fcc.js"],"/admin/federation/actions":[s,a,c,e,i,"static/chunks/pages/admin/federation/actions-d79f77b8b18148ad.js"],"/admin/federation/followers":[s,a,c,e,i,t,"static/chunks/pages/admin/federation/followers-8c2d451ee44fb398.js"],"/admin/hardware-info":[g,i,t,d,b,r,k,"static/chunks/pages/admin/hardware-info-d1ca2af204c98f51.js"],"/admin/help":[t,d,o,v,"static/chunks/7830-37f6f9f7aaae2bbf.js","static/chunks/pages/admin/help-cf85d400d1ada208.js"],"/admin/logs":[s,a,c,e,i,m,"static/chunks/pages/admin/logs-c494c4dc6f214d8b.js"],"/admin/stream-health":[g,i,t,d,b,r,"static/chunks/2934-4a8cbef0e0cea1a5.js","static/chunks/pages/admin/stream-health-f2cf52294c67fcb8.js"],"/admin/upgrade":[s,a,c,e,"static/chunks/2069-c5012847917b76df.js","static/chunks/pages/admin/upgrade-41783a74d59f851b.js"],"/admin/viewer-info":[g,s,a,c,e,i,t,n,d,b,r,k,"static/chunks/pages/admin/viewer-info-9a828a713dcea351.js"],"/admin/webhooks":[s,a,c,e,"static/chunks/pages/admin/webhooks-c59eaaf1fe4ac78c.js"],"/embed/chat/readonly":[I,B,f,F,h,A,"static/css/c43a4bf0142c5559.css","static/chunks/pages/embed/chat/readonly-1d789cb2de5c6857.js"],"/embed/chat/readwrite":[I,B,a,f,F,"static/chunks/911-9156415c36038fd8.js",h,A,"static/css/0db0271556306928.css","static/chunks/pages/embed/chat/readwrite-56b92edb498f6991.js"],"/embed/video":["static/chunks/d6e1aeb5-0705bf43bcd6af77.js",n,f,"static/css/7c735c05af084bb2.css","static/chunks/7902-139b487986de3737.js",j,h,"static/chunks/2239-ceff4252276e3d5e.js","static/css/f065863129f648da.css","static/chunks/pages/embed/video-04abad59027d2c31.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config/appearance","/admin/config/streamkeys","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-37c1af34070ecbf4.js","static/chunks/8909-6d59cce6f69e27ae.js","static/chunks/4267-cfe0f573c442773c.js","static/chunks/2206-8da9006b177e3283.js","static/chunks/8091-5d2e0cdb05cd1ef7.js","static/chunks/575-11393a44fd60b818.js","static/chunks/5938-b5bac17e4fa31c49.js","static/chunks/5101-e2c6238798b20535.js","static/chunks/6395-f04016ae318b5e91.js","static/chunks/7466-1e76829814bac0c3.js","static/chunks/4763-cd081ceb0032736f.js","static/chunks/1082-51b9f63c6446d49d.js","static/chunks/5360-ddb180f0aeda9ff0.js","static/chunks/29107295-1453a3860b50f70e.js","static/chunks/7910-44b63d030e4b1767.js","static/chunks/ee8b1517-9cf421a7da630c58.js","static/chunks/236-f876fd1a47451d45.js","static/chunks/8245-b34a27e35386277e.js","static/chunks/8119-57984c2c349ea105.js","static/chunks/9550-db4a457e5e1bbbcf.js","static/chunks/4ad82c5e-929b3fa886d2b3d7.js","static/chunks/1943-896020ebd27dae4b.js","static/chunks/1938-c04d908728a12ddb.js","static/chunks/3286-716fef4ced844a4d.js","static/chunks/d3048c20-93c008b4ff3ddb0e.js","static/chunks/d2094a0f-7059b9f8abbc2737.js","static/chunks/3729-e88e6289f5436bb5.js","static/chunks/4977-167fb026492a9609.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(a,s,c,e,i,t,n,d,f,b,h,o,m,u,k,g,r,j,p,l,_,w,v,y,I,B,F,A){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[s,a,c,t,n,f,o,m,j,"static/chunks/4466-2e8c1156cd6902a6.js",b,"static/css/089ea92974e6f7ca.css","static/chunks/pages/index-77383441e78cee11.js"],"/_error":["static/chunks/pages/_error-02cc11fd74b4e5ff.js"],"/admin":[s,a,c,e,i,t,n,d,h,m,"static/chunks/8676-c38bd41883242e8e.js","static/chunks/pages/admin-f61cf9b387d8362c.js"],"/admin/access-tokens":[s,a,c,e,i,"static/chunks/pages/admin/access-tokens-91177ddb58bd90ee.js"],"/admin/actions":[u,s,a,c,e,p,"static/chunks/pages/admin/actions-0b45668aebec7dde.js"],"/admin/chat/messages":[u,s,a,c,e,i,n,l,"static/chunks/pages/admin/chat/messages-7e88922542839f8a.js"],"/admin/chat/users":[u,s,a,c,e,i,t,n,l,"static/chunks/pages/admin/chat/users-8fc28dfaa9e52d37.js"],"/admin/config/appearance":[_,o,w,v,"static/css/6c8941159bdd16f6.css","static/chunks/pages/admin/config/appearance-be1829febefc4db6.js"],"/admin/config/streamkeys":[s,a,c,e,p,"static/chunks/pages/admin/config/streamkeys-6a3f2badc0712b01.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-fab037451220beb1.js"],"/admin/config-federation":["static/chunks/8572-deca358d1a965d80.js","static/chunks/pages/admin/config-federation-3e7e0a54acf1bd9b.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-b525013f97b7a9a9.js"],"/admin/config-public-details":[_,s,a,c,e,k,w,"static/chunks/1043-926dbac42978d9db.js","static/chunks/pages/admin/config-public-details-085c048afcb776d7.js"],"/admin/config-server-details":[y,"static/chunks/pages/admin/config-server-details-fafadf003f21dada.js"],"/admin/config-social-items":[s,a,c,e,"static/chunks/pages/admin/config-social-items-f022d29681248095.js"],"/admin/config-storage":["static/chunks/pages/admin/config-storage-7c5510a084d9c01c.js"],"/admin/config-video":[s,a,c,e,y,"static/chunks/6962-f197cc126c73fb7f.js","static/chunks/pages/admin/config-video-ea088d6f81d33fcc.js"],"/admin/federation/actions":[s,a,c,e,i,"static/chunks/pages/admin/federation/actions-d79f77b8b18148ad.js"],"/admin/federation/followers":[s,a,c,e,i,t,"static/chunks/pages/admin/federation/followers-8c2d451ee44fb398.js"],"/admin/hardware-info":[g,i,t,d,h,r,k,"static/chunks/pages/admin/hardware-info-d1ca2af204c98f51.js"],"/admin/help":[t,d,o,v,"static/chunks/7830-37f6f9f7aaae2bbf.js","static/chunks/pages/admin/help-cf85d400d1ada208.js"],"/admin/logs":[s,a,c,e,i,m,"static/chunks/pages/admin/logs-c494c4dc6f214d8b.js"],"/admin/stream-health":[g,i,t,d,h,r,"static/chunks/2934-4a8cbef0e0cea1a5.js","static/chunks/pages/admin/stream-health-f2cf52294c67fcb8.js"],"/admin/upgrade":[s,a,c,e,"static/chunks/2069-c5012847917b76df.js","static/chunks/pages/admin/upgrade-41783a74d59f851b.js"],"/admin/viewer-info":[g,s,a,c,e,i,t,n,d,h,r,k,"static/chunks/pages/admin/viewer-info-9a828a713dcea351.js"],"/admin/webhooks":[s,a,c,e,"static/chunks/pages/admin/webhooks-c59eaaf1fe4ac78c.js"],"/embed/chat/readonly":[I,B,f,F,b,A,"static/css/c43a4bf0142c5559.css","static/chunks/pages/embed/chat/readonly-1d789cb2de5c6857.js"],"/embed/chat/readwrite":[I,B,a,f,F,"static/chunks/911-9156415c36038fd8.js",b,A,"static/css/0db0271556306928.css","static/chunks/pages/embed/chat/readwrite-56b92edb498f6991.js"],"/embed/video":["static/chunks/d6e1aeb5-0705bf43bcd6af77.js",n,f,"static/css/7c735c05af084bb2.css","static/chunks/7902-139b487986de3737.js",j,b,"static/chunks/2239-ceff4252276e3d5e.js","static/css/f065863129f648da.css","static/chunks/pages/embed/video-04abad59027d2c31.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config/appearance","/admin/config/streamkeys","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-37c1af34070ecbf4.js","static/chunks/8909-6d59cce6f69e27ae.js","static/chunks/4267-cfe0f573c442773c.js","static/chunks/2206-8da9006b177e3283.js","static/chunks/8091-5d2e0cdb05cd1ef7.js","static/chunks/575-11393a44fd60b818.js","static/chunks/5938-b5bac17e4fa31c49.js","static/chunks/5101-e2c6238798b20535.js","static/chunks/6395-f04016ae318b5e91.js","static/chunks/7466-1e76829814bac0c3.js","static/chunks/4763-cd081ceb0032736f.js","static/chunks/1082-51b9f63c6446d49d.js","static/chunks/5360-8155b586c5f545d5.js","static/chunks/29107295-1453a3860b50f70e.js","static/chunks/7910-44b63d030e4b1767.js","static/chunks/ee8b1517-9cf421a7da630c58.js","static/chunks/236-f876fd1a47451d45.js","static/chunks/8245-b34a27e35386277e.js","static/chunks/8119-57984c2c349ea105.js","static/chunks/9550-db4a457e5e1bbbcf.js","static/chunks/4ad82c5e-170dc8748c5bb2d7.js","static/chunks/1943-896020ebd27dae4b.js","static/chunks/1938-c04d908728a12ddb.js","static/chunks/3286-716fef4ced844a4d.js","static/chunks/d3048c20-93c008b4ff3ddb0e.js","static/chunks/d2094a0f-7059b9f8abbc2737.js","static/chunks/3729-e88e6289f5436bb5.js","static/chunks/4977-167fb026492a9609.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/2PHoXvghxUJEuSZYB92KR/_ssgManifest.js b/static/web/_next/static/AHfwI8q2tdwt5dN-doVir/_ssgManifest.js similarity index 100% rename from static/web/_next/static/2PHoXvghxUJEuSZYB92KR/_ssgManifest.js rename to static/web/_next/static/AHfwI8q2tdwt5dN-doVir/_ssgManifest.js diff --git a/static/web/_next/static/chunks/1043-9c545dc74036761a.js b/static/web/_next/static/chunks/1043-926dbac42978d9db.js similarity index 70% rename from static/web/_next/static/chunks/1043-9c545dc74036761a.js rename to static/web/_next/static/chunks/1043-926dbac42978d9db.js index 2628d8fa6..2f7bf5476 100644 --- a/static/web/_next/static/chunks/1043-9c545dc74036761a.js +++ b/static/web/_next/static/chunks/1043-926dbac42978d9db.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1043],{48689:function(e,t,O){"use strict";O.d(t,{Z:function(){return l}});var n=O(1413),a=O(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},r=O(42135),o=function(e,t){return a.createElement(r.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:i}))};o.displayName="DeleteOutlined";var l=a.forwardRef(o)},88484:function(e,t,O){"use strict";O.d(t,{Z:function(){return l}});var n=O(1413),a=O(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},r=O(42135),o=function(e,t){return a.createElement(r.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:i}))};o.displayName="UploadOutlined";var l=a.forwardRef(o)},94594:function(e,t,O){"use strict";O.d(t,{Z:function(){return b}});var n=O(87462),a=O(4942),i=O(50888),r=O(94184),o=O.n(r),l=O(97685),s=O(45987),c=O(67294),p=O(21770),d=O(15105),u=c.forwardRef(function(e,t){var O,n=e.prefixCls,i=void 0===n?"rc-switch":n,r=e.className,u=e.checked,f=e.defaultChecked,Q=e.disabled,h=e.loadingIcon,m=e.checkedChildren,$=e.unCheckedChildren,S=e.onClick,b=e.onChange,g=e.onKeyDown,P=(0,s.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),T=(0,p.Z)(!1,{value:u,defaultValue:f}),Z=(0,l.Z)(T,2),x=Z[0],X=Z[1];function y(e,t){var O=x;return Q||(X(O=e),null==b||b(O,t)),O}var q=o()(i,r,(O={},(0,a.Z)(O,"".concat(i,"-checked"),x),(0,a.Z)(O,"".concat(i,"-disabled"),Q),O));return c.createElement("button",Object.assign({},P,{type:"button",role:"switch","aria-checked":x,disabled:Q,className:q,ref:t,onKeyDown:function(e){e.which===d.Z.LEFT?y(!1,e):e.which===d.Z.RIGHT&&y(!0,e),null==g||g(e)},onClick:function(e){var t=y(!x,e);null==S||S(t,e)}}),h,c.createElement("span",{className:"".concat(i,"-inner")},x?m:$))});u.displayName="Switch";var f=O(53124),Q=O(98866),h=O(97647),m=O(68349),$=function(e,t){var O={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(O[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(O[n[a]]=e[n[a]]);return O},S=c.forwardRef(function(e,t){var O,r=e.prefixCls,l=e.size,s=e.disabled,p=e.loading,d=e.className,S=$(e,["prefixCls","size","disabled","loading","className"]),b=c.useContext(f.E_),g=b.getPrefixCls,P=b.direction,T=c.useContext(h.Z),Z=c.useContext(Q.Z),x=g("switch",r),X=c.createElement("div",{className:"".concat(x,"-handle")},p&&c.createElement(i.Z,{className:"".concat(x,"-loading-icon")})),y=o()((O={},(0,a.Z)(O,"".concat(x,"-small"),"small"===(l||T)),(0,a.Z)(O,"".concat(x,"-loading"),p),(0,a.Z)(O,"".concat(x,"-rtl"),"rtl"===P),O),void 0===d?"":d);return c.createElement(m.Z,{insertExtraNode:!0},c.createElement(u,(0,n.Z)({},S,{prefixCls:x,className:y,disabled:(null!=s?s:Z)||p,ref:t,loadingIcon:X})))});S.__ANT_SWITCH=!0;var b=S},20550:function(e,t,O){"use strict";O.d(t,{Z:function(){return S}});var n=O(4942),a=O(87462),i=O(97685),r=O(97937),o=O(94184),l=O.n(o),s=O(98423),c=O(67294),p=O(53124),d=O(98787),u=O(68349),f=function(e,t){var O={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(O[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(O[n[a]]=e[n[a]]);return O},Q=function(e,t){var O={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(O[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(O[n[a]]=e[n[a]]);return O},h=RegExp("^(".concat(d.Y.join("|"),")(-inverse)?$")),m=RegExp("^(".concat(d.E.join("|"),")$")),$=c.forwardRef(function(e,t){var O,o=e.prefixCls,d=e.className,f=e.style,$=e.children,S=e.icon,b=e.color,g=e.onClose,P=e.closeIcon,T=e.closable,Z=Q(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),x=c.useContext(p.E_),X=x.getPrefixCls,y=x.direction,q=c.useState(!0),v=(0,i.Z)(q,2),k=v[0],_=v[1];c.useEffect(function(){"visible"in Z&&_(Z.visible)},[Z.visible]);var V=function(){return!!b&&(h.test(b)||m.test(b))},U=(0,a.Z)({backgroundColor:b&&!V()?b:void 0},f),w=V(),j=X("tag",o),R=l()(j,(O={},(0,n.Z)(O,"".concat(j,"-").concat(b),w),(0,n.Z)(O,"".concat(j,"-has-color"),b&&!w),(0,n.Z)(O,"".concat(j,"-hidden"),!k),(0,n.Z)(O,"".concat(j,"-rtl"),"rtl"===y),O),d),C=function(e){e.stopPropagation(),null==g||g(e),!e.defaultPrevented&&("visible"in Z||_(!1))},G="onClick"in Z||$&&"a"===$.type,W=(0,s.Z)(Z,["visible"]),Y=S||null,A=Y?c.createElement(c.Fragment,null,Y,c.createElement("span",null,$)):$,E=c.createElement("span",(0,a.Z)({},W,{ref:t,className:R,style:U}),A,void 0!==T&&T?P?c.createElement("span",{className:"".concat(j,"-close-icon"),onClick:C},P):c.createElement(r.Z,{className:"".concat(j,"-close-icon"),onClick:C}):null);return G?c.createElement(u.Z,null,E):E});$.CheckableTag=function(e){var t,O=e.prefixCls,i=e.className,r=e.checked,o=e.onChange,s=e.onClick,d=f(e,["prefixCls","className","checked","onChange","onClick"]),u=(0,c.useContext(p.E_).getPrefixCls)("tag",O),Q=l()(u,(t={},(0,n.Z)(t,"".concat(u,"-checkable"),!0),(0,n.Z)(t,"".concat(u,"-checkable-checked"),r),t),i);return c.createElement("span",(0,a.Z)({},d,{className:Q,onClick:function(e){null==o||o(!r),null==s||s(e)}}))};var S=$},77916:function(e,t,O){"use strict";O.d(t,{Z:function(){return eP}});var n=O(87462),a=O(67294),i=O(4942),r=O(74165),o=O(71002),l=O(74902),s=O(97685),c=O(94184),p=O.n(c),d=O(15671),u=O(43144),f=O(60136),Q=O(33643),h=O(45987),m=O(15861),$=O(64217);function S(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(O){return t}}function b(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var O=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var n=e.data[t];if(Array.isArray(n)){n.forEach(function(e){O.append("".concat(t,"[]"),e)});return}O.append(t,n)}),e.file instanceof Blob?O.append(e.filename,e.file,e.file.name):O.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var O;return e.onError(((O=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,O.method=e.method,O.url=e.action,O),S(t))}return e.onSuccess(S(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return null!==n["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(e){null!==n[e]&&t.setRequestHeader(e,n[e])}),t.send(O),{abort:function(){t.abort()}}}var g=+new Date,P=0;function T(){return"rc-upload-".concat(g,"-").concat(++P)}var Z=O(80334),x=function(e,t){if(e&&t){var O=Array.isArray(t)?t:t.split(","),n=e.name||"",a=e.type||"",i=a.replace(/\/.*$/,"");return O.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var O=n.toLowerCase(),r=t.toLowerCase(),o=[r];return(".jpg"===r||".jpeg"===r)&&(o=[".jpg",".jpeg"]),o.some(function(e){return O.endsWith(e)})}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):a===t||!!/^\w+$/.test(t)&&((0,Z.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0},X=function(e,t,O){var n=function e(n,a){if(n.path=a||"",n.isFile)n.file(function(e){O(e)&&(n.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=n.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))});else if(n.isDirectory){var i,r,o;i=function(t){t.forEach(function(t){e(t,"".concat(a).concat(n.name,"/"))})},r=n.createReader(),o=[],function e(){r.readEntries(function(t){var O=Array.prototype.slice.apply(t);o=o.concat(O),O.length?e():i(o)})}()}};e.forEach(function(e){n(e.webkitGetAsEntry())})},y=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],q=function(e){(0,f.Z)(O,e);var t=(0,Q.Z)(O);function O(){(0,d.Z)(this,O);for(var e,n,a=arguments.length,i=Array(a),s=0;s0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),O=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(O)||[""])[0]},ea=function(e){return 0===e.indexOf("image/")},ei=function(e){if(e.type&&!e.thumbUrl)return ea(e.type);var t=e.thumbUrl||e.url||"",O=en(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(O))||!/^data:/.test(t)&&!O};function er(e){return new Promise(function(t){if(!e.type||!ea(e.type)){t("");return}var O=document.createElement("canvas");O.width=200,O.height=200,O.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(O);var n=O.getContext("2d"),a=new Image;if(a.onload=function(){var e=a.width,i=a.height,r=200,o=200,l=0,s=0;e>i?s=-((o=i*(200/e))-r)/2:l=-((r=e*(200/i))-o)/2,n.drawImage(a,l,s,r,o);var c=O.toDataURL();document.body.removeChild(O),t(c)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){var i=new FileReader;i.addEventListener("load",function(){i.result&&(a.src=i.result)}),i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var eo=O(48689),el={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},es=function(e,t){return a.createElement(W.Z,(0,C.Z)((0,C.Z)({},e),{},{ref:t,icon:el}))};es.displayName="DownloadOutlined";var ec=a.forwardRef(es),ep=O(99611),ed=O(97910),eu=O(94199),ef=a.forwardRef(function(e,t){var O,r=e.prefixCls,o=e.className,l=e.style,c=e.locale,d=e.listType,u=e.file,f=e.items,Q=e.progress,h=e.iconRender,m=e.actionIconRender,$=e.itemRender,S=e.isImgUrl,b=e.showPreviewIcon,g=e.showRemoveIcon,P=e.showDownloadIcon,T=e.previewIcon,Z=e.removeIcon,x=e.downloadIcon,X=e.onPreview,y=e.onDownload,q=e.onClose,v=u.status,k=a.useState(v),_=(0,s.Z)(k,2),V=_[0],w=_[1];a.useEffect(function(){"removed"!==v&&w(v)},[v]);var j=a.useState(!1),R=(0,s.Z)(j,2),C=R[0],G=R[1],W=a.useRef(null);a.useEffect(function(){return W.current=setTimeout(function(){G(!0)},300),function(){W.current&&clearTimeout(W.current)}},[]);var Y=h(u),A=a.createElement("div",{className:"".concat(r,"-text-icon")},Y);if("picture"===d||"picture-card"===d){if("uploading"!==V&&(u.thumbUrl||u.url)){var E,L=(null==S?void 0:S(u))?a.createElement("img",{src:u.thumbUrl||u.url,alt:u.name,className:"".concat(r,"-list-item-image"),crossOrigin:u.crossOrigin}):Y,z=p()((E={},(0,i.Z)(E,"".concat(r,"-list-item-thumbnail"),!0),(0,i.Z)(E,"".concat(r,"-list-item-file"),S&&!S(u)),E));A=a.createElement("a",{className:z,onClick:function(e){return X(u,e)},href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},L)}else{var I,J,B,M,N=p()((M={},(0,i.Z)(M,"".concat(r,"-list-item-thumbnail"),!0),(0,i.Z)(M,"".concat(r,"-list-item-file"),"uploading"!==V),M));A=a.createElement("div",{className:N},Y)}}var H=p()((I={},(0,i.Z)(I,"".concat(r,"-list-item"),!0),(0,i.Z)(I,"".concat(r,"-list-item-").concat(V),!0),(0,i.Z)(I,"".concat(r,"-list-item-list-type-").concat(d),!0),I)),F="string"==typeof u.linkProps?JSON.parse(u.linkProps):u.linkProps,K=g?m(("function"==typeof Z?Z(u):Z)||a.createElement(eo.Z,null),function(){return q(u)},r,c.removeFile):null,ee=P&&"done"===V?m(("function"==typeof x?x(u):x)||a.createElement(ec,null),function(){return y(u)},r,c.downloadFile):null,et="picture-card"!==d&&a.createElement("span",{key:"download-delete",className:p()("".concat(r,"-list-item-card-actions"),{picture:"picture"===d})},ee,K),eO=p()("".concat(r,"-list-item-name")),en=u.url?[a.createElement("a",(0,n.Z)({key:"view",target:"_blank",rel:"noopener noreferrer",className:eO,title:u.name},F,{href:u.url,onClick:function(e){return X(u,e)}}),u.name),et]:[a.createElement("span",{key:"view",className:eO,onClick:function(e){return X(u,e)},title:u.name},u.name),et],ea=b?a.createElement("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(e){return X(u,e)},title:c.previewFile},"function"==typeof T?T(u):T||a.createElement(ep.Z,null)):null,ei="picture-card"===d&&"uploading"!==V&&a.createElement("span",{className:"".concat(r,"-list-item-actions")},ea,"done"===V&&ee,K);O=u.response&&"string"==typeof u.response?u.response:(null===(J=u.error)||void 0===J?void 0:J.statusText)||(null===(B=u.error)||void 0===B?void 0:B.message)||c.uploadError;var er=a.createElement("span",{className:"".concat(r,"-span")},A,en),el=(0,a.useContext(U.E_).getPrefixCls)(),es=a.createElement("div",{className:H},a.createElement("div",{className:"".concat(r,"-list-item-info")},er),ei,C&&a.createElement(D.Z,{motionName:"".concat(el,"-fade"),visible:"uploading"===V,motionDeadline:2e3},function(e){var t=e.className,O="percent"in u?a.createElement(ed.Z,(0,n.Z)({},Q,{type:"line",percent:u.percent})):null;return a.createElement("div",{className:p()("".concat(r,"-list-item-progress"),t)},O)})),ef=p()("".concat(r,"-list-").concat(d,"-container"),o),eQ="error"===V?a.createElement(eu.Z,{title:O,getPopupContainer:function(e){return e.parentNode}},es):es;return a.createElement("div",{className:ef,style:l,ref:t},$?$(eQ,u,f,{download:y.bind(null,u),preview:X.bind(null,u),remove:q.bind(null,u)}):eQ)}),eQ=(0,n.Z)({},F.ZP);delete eQ.onAppearEnd,delete eQ.onEnterEnd,delete eQ.onLeaveEnd;var eh=a.forwardRef(function(e,t){var O,r=e.listType,o=void 0===r?"text":r,c=e.previewFile,d=void 0===c?er:c,u=e.onPreview,f=e.onDownload,Q=e.onRemove,h=e.locale,m=e.iconRender,$=e.isImageUrl,S=void 0===$?ei:$,b=e.prefixCls,g=e.items,P=void 0===g?[]:g,T=e.showPreviewIcon,Z=void 0===T||T,x=e.showRemoveIcon,X=void 0===x||x,y=e.showDownloadIcon,q=void 0!==y&&y,v=e.removeIcon,k=e.previewIcon,_=e.downloadIcon,V=e.progress,w=void 0===V?{strokeWidth:2,showInfo:!1}:V,j=e.appendAction,R=e.appendActionVisible,C=e.itemRender,G=(0,H.Z)(),W=a.useState(!1),Y=(0,s.Z)(W,2),L=Y[0],z=Y[1];a.useEffect(function(){("picture"===o||"picture-card"===o)&&(P||[]).forEach(function(e){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",d&&d(e.originFileObj).then(function(t){e.thumbUrl=t||"",G()}))})},[o,P,d]),a.useEffect(function(){z(!0)},[]);var J=function(e,t){if(u)return null==t||t.preventDefault(),u(e)},B=function(e){"function"==typeof f?f(e):e.url&&window.open(e.url)},F=function(e){null==Q||Q(e)},ee=function(e){if(m)return m(e,o);var t="uploading"===e.status,O=S&&S(e)?a.createElement(M,null):a.createElement(A,null),n=t?a.createElement(E.Z,null):a.createElement(I,null);return"picture"===o?n=t?a.createElement(E.Z,null):O:"picture-card"===o&&(n=t?h.uploading:O),n},et=function(e,t,O,i){var r={type:"text",size:"small",title:i,onClick:function(O){t(),(0,K.l$)(e)&&e.props.onClick&&e.props.onClick(O)},className:"".concat(O,"-list-item-card-actions-btn")};if((0,K.l$)(e)){var o=(0,K.Tm)(e,(0,n.Z)((0,n.Z)({},e.props),{onClick:function(){}}));return a.createElement(N.Z,(0,n.Z)({},r,{icon:o}))}return a.createElement(N.Z,(0,n.Z)({},r),a.createElement("span",null,e))};a.useImperativeHandle(t,function(){return{handlePreview:J,handleDownload:B}});var eO=a.useContext(U.E_),en=eO.getPrefixCls,ea=eO.direction,eo=en("upload",b),el=p()((O={},(0,i.Z)(O,"".concat(eo,"-list"),!0),(0,i.Z)(O,"".concat(eo,"-list-").concat(o),!0),(0,i.Z)(O,"".concat(eo,"-list-rtl"),"rtl"===ea),O)),es=(0,l.Z)(P.map(function(e){return{key:e.uid,file:e}})),ec={motionDeadline:2e3,motionName:"".concat(eo,"-").concat("picture-card"===o?"animate-inline":"animate"),keys:es,motionAppear:L};return"picture-card"!==o&&(ec=(0,n.Z)((0,n.Z)({},eQ),ec)),a.createElement("div",{className:el},a.createElement(D.V,(0,n.Z)({},ec,{component:!1}),function(e){var t=e.key,O=e.file,n=e.className,i=e.style;return a.createElement(ef,{key:t,locale:h,prefixCls:eo,className:n,style:i,file:O,items:P,progress:w,listType:o,isImgUrl:S,showPreviewIcon:Z,showRemoveIcon:X,showDownloadIcon:q,removeIcon:v,previewIcon:k,downloadIcon:_,iconRender:ee,actionIconRender:et,itemRender:C,onPreview:J,onDownload:B,onClose:F})}),j&&a.createElement(D.Z,(0,n.Z)({},ec,{visible:void 0===R||R,forceRender:!0}),function(e){var t=e.className,O=e.style;return(0,K.Tm)(j,function(e){return{className:p()(e.className,t),style:(0,n.Z)((0,n.Z)((0,n.Z)({},O),{pointerEvents:t?"none":void 0}),e.style)}})}))}),em="__LIST_IGNORE_".concat(Date.now(),"__"),e$=a.forwardRef(function(e,t){var O=e.fileList,c=e.defaultFileList,d=e.onRemove,u=e.showUploadList,f=void 0===u||u,Q=e.listType,h=void 0===Q?"text":Q,m=e.onPreview,$=e.onDownload,S=e.onChange,b=e.onDrop,g=e.previewFile,P=e.disabled,T=e.locale,Z=e.iconRender,x=e.isImageUrl,X=e.progress,y=e.prefixCls,q=e.className,v=e.type,C=e.children,G=e.style,W=e.itemRender,Y=e.maxCount,A=e.data,E=e.multiple,L=e.action,z=e.accept,I=e.supportServerRender,J=a.useContext(w.Z),B=null!=P?P:J,M=(0,_.Z)(c||[],{value:O,postState:function(e){return null!=e?e:[]}}),D=(0,s.Z)(M,2),N=D[0],H=D[1],F=a.useState("drop"),K=(0,s.Z)(F,2),en=K[0],ea=K[1],ei=a.useRef(null);a.useMemo(function(){var e=Date.now();(O||[]).forEach(function(t,O){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(O,"__"))})},[O]);var er=function(e,t,O){var n=(0,l.Z)(t);1===Y?n=n.slice(-1):Y&&(n=n.slice(0,Y)),(0,V.flushSync)(function(){H(n)});var a={file:e,fileList:n};O&&(a.event=O),null==S||S(a)},eo=function(e){var t=e.filter(function(e){return!e.file[em]});if(t.length){var O=t.map(function(e){return ee(e.file)}),n=(0,l.Z)(N);O.forEach(function(e){n=et(e,n)}),O.forEach(function(e,O){var a=e;if(t[O].parsedFile)e.status="uploading";else{var i,r=e.originFileObj;try{i=new File([r],r.name,{type:r.type})}catch(o){(i=new Blob([r],{type:r.type})).name=r.name,i.lastModifiedDate=new Date,i.lastModified=new Date().getTime()}i.uid=e.uid,a=i}er(a,n)})}},el=function(e,t,O){try{"string"==typeof e&&(e=JSON.parse(e))}catch(n){}if(eO(t,N)){var a=ee(t);a.status="done",a.percent=100,a.response=e,a.xhr=O;var i=et(a,N);er(a,i)}},es=function(e,t){if(eO(t,N)){var O=ee(t);O.status="uploading",O.percent=e.percent;var n=et(O,N);er(O,n,e)}},ec=function(e,t,O){if(eO(O,N)){var n=ee(O);n.error=e,n.response=t,n.status="error";var a=et(n,N);er(n,a)}},ep=function(e){var t;Promise.resolve("function"==typeof d?d(e):d).then(function(O){if(!1!==O){var a,i,r,o=(a=void 0!==e.uid?"uid":"name",(i=N.filter(function(t){return t[a]!==e[a]})).length===N.length?null:i);o&&(t=(0,n.Z)((0,n.Z)({},e),{status:"removed"}),null==N||N.forEach(function(e){var O=void 0!==t.uid?"uid":"name";e[O]!==t[O]||Object.isFrozen(e)||(e.status="removed")}),null===(r=ei.current)||void 0===r||r.abort(t),er(t,o))}})},ed=function(e){ea(e.type),"drop"===e.type&&(null==b||b(e))};a.useImperativeHandle(t,function(){return{onBatchStart:eo,onSuccess:el,onProgress:es,onError:ec,fileList:N,upload:ei.current}});var eu=a.useContext(U.E_),ef=eu.getPrefixCls,eQ=eu.direction,e$=ef("upload",y),eS=(0,n.Z)((0,n.Z)({onBatchStart:eo,onError:ec,onProgress:es,onSuccess:el},e),{data:void 0===A?{}:A,multiple:void 0!==E&&E,action:void 0===L?"":L,accept:void 0===z?"":z,supportServerRender:void 0===I||I,prefixCls:e$,disabled:B,beforeUpload:function(t,O){var n,a,i,l;return n=void 0,a=void 0,i=void 0,l=(0,r.Z)().mark(function n(){var a,i,l,s;return(0,r.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(a=e.beforeUpload,i=e.transformFile,l=t,!a){n.next=13;break}return n.next=5,a(t,O);case 5:if(!1!==(s=n.sent)){n.next=8;break}return n.abrupt("return",!1);case 8:if(delete t[em],s!==em){n.next=12;break}return Object.defineProperty(t,em,{value:!0,configurable:!0}),n.abrupt("return",!1);case 12:"object"===(0,o.Z)(s)&&s&&(l=s);case 13:if(!i){n.next=17;break}return n.next=16,i(l);case 16:l=n.sent;case 17:return n.abrupt("return",l);case 18:case"end":return n.stop()}},n)}),new(i||(i=Promise))(function(e,t){function O(e){try{o(l.next(e))}catch(O){t(O)}}function r(e){try{o(l.throw(e))}catch(O){t(O)}}function o(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(O,r)}o((l=l.apply(n,a||[])).next())})},onChange:void 0});delete eS.className,delete eS.style,(!C||B)&&delete eS.id;var eb=function(e,t){return f?a.createElement(j.Z,{componentName:"Upload",defaultLocale:R.Z.Upload},function(O){var i="boolean"==typeof f?{}:f,r=i.showRemoveIcon,o=i.showPreviewIcon,l=i.showDownloadIcon,s=i.removeIcon,c=i.previewIcon,p=i.downloadIcon;return a.createElement(eh,{prefixCls:e$,listType:h,items:N,previewFile:g,onPreview:m,onDownload:$,onRemove:ep,showRemoveIcon:!B&&r,showPreviewIcon:o,showDownloadIcon:l,removeIcon:s,previewIcon:c,downloadIcon:p,iconRender:Z,locale:(0,n.Z)((0,n.Z)({},O),T),isImageUrl:x,progress:X,appendAction:e,appendActionVisible:t,itemRender:W})}):e};if("drag"===(void 0===v?"select":v)){var eg,eP,eT=p()(e$,(eP={},(0,i.Z)(eP,"".concat(e$,"-drag"),!0),(0,i.Z)(eP,"".concat(e$,"-drag-uploading"),N.some(function(e){return"uploading"===e.status})),(0,i.Z)(eP,"".concat(e$,"-drag-hover"),"dragover"===en),(0,i.Z)(eP,"".concat(e$,"-disabled"),B),(0,i.Z)(eP,"".concat(e$,"-rtl"),"rtl"===eQ),eP),q);return a.createElement("span",null,a.createElement("div",{className:eT,onDrop:ed,onDragOver:ed,onDragLeave:ed,style:G},a.createElement(k,(0,n.Z)({},eS,{ref:ei,className:"".concat(e$,"-btn")}),a.createElement("div",{className:"".concat(e$,"-drag-container")},C))),eb())}var eZ=p()(e$,(eg={},(0,i.Z)(eg,"".concat(e$,"-select"),!0),(0,i.Z)(eg,"".concat(e$,"-select-").concat(h),!0),(0,i.Z)(eg,"".concat(e$,"-disabled"),B),(0,i.Z)(eg,"".concat(e$,"-rtl"),"rtl"===eQ),eg)),ex=a.createElement("div",{className:eZ,style:C?void 0:{display:"none"}},a.createElement(k,(0,n.Z)({},eS,{ref:ei})));return"picture-card"===h?a.createElement("span",{className:p()("".concat(e$,"-picture-card-wrapper"),q)},eb(ex,!!C)):a.createElement("span",{className:q},ex,eb())}),eS=function(e,t){var O={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(O[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(O[n[a]]=e[n[a]]);return O},eb=a.forwardRef(function(e,t){var O=e.style,i=e.height,r=eS(e,["style","height"]);return a.createElement(e$,(0,n.Z)({ref:t},r,{type:"drag",style:(0,n.Z)((0,n.Z)({},O),{height:i})}))}),eg=e$;eg.Dragger=eb,eg.LIST_IGNORE=em;var eP=eg},27561:function(e,t,O){var n=O(67990),a=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},67990:function(e){var t=/\s/;e.exports=function(e){for(var O=e.length;O--&&t.test(e.charAt(O)););return O}},23279:function(e,t,O){var n=O(13218),a=O(7771),i=O(14841),r=Math.max,o=Math.min;e.exports=function(e,t,O){var l,s,c,p,d,u,f=0,Q=!1,h=!1,m=!0;if("function"!=typeof e)throw TypeError("Expected a function");function $(t){var O=l,n=s;return l=s=void 0,f=t,p=e.apply(n,O)}function S(e){var O=e-u,n=e-f;return void 0===u||O>=t||O<0||h&&n>=c}function b(){var e,O,n,i=a();if(S(i))return g(i);d=setTimeout(b,(e=i-u,O=i-f,n=t-e,h?o(n,c-O):n))}function g(e){return(d=void 0,m&&l)?$(e):(l=s=void 0,p)}function P(){var e,O=a(),n=S(O);if(l=arguments,s=this,u=O,n){if(void 0===d)return f=e=u,d=setTimeout(b,t),Q?$(e):p;if(h)return clearTimeout(d),d=setTimeout(b,t),$(u)}return void 0===d&&(d=setTimeout(b,t)),p}return t=i(t)||0,n(O)&&(Q=!!O.leading,c=(h="maxWait"in O)?r(i(O.maxWait)||0,t):c,m="trailing"in O?!!O.trailing:m),P.cancel=function(){void 0!==d&&clearTimeout(d),f=0,l=u=s=d=void 0},P.flush=function(){return void 0===d?p:g(a())},P}},33448:function(e,t,O){var n=O(44239),a=O(37005);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==n(e)}},7771:function(e,t,O){var n=O(55639);e.exports=function(){return n.Date.now()}},14841:function(e,t,O){var n=O(27561),a=O(13218),i=O(33448),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return r;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var O=l.test(e);return O||s.test(e)?c(e.slice(2),O?2:8):o.test(e)?r:+e}},13804:function(e,t,O){"use strict";O.r(t),O.d(t,{autoCloseTags:function(){return en},html:function(){return eO},htmlCompletionSource:function(){return H},htmlCompletionSourceWith:function(){return F},htmlLanguage:function(){return et}});var n=O(53105),a=O(35524),i=O(41113);let r={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},o={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},l={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function s(e){return 9==e||10==e||13==e||32==e}let c=null,p=null,d=0;function u(e,t){var O;let n=e.pos+t;if(d==n&&p==e)return c;let a=e.peek(t);for(;s(a);)a=e.peek(++t);let i="";for(;45==(O=a)||46==O||58==O||O>=65&&O<=90||95==O||O>=97&&O<=122||O>=161;)i+=String.fromCharCode(a),a=e.peek(++t);return p=e,d=n,c=i?i.toLowerCase():a==f||a==Q?void 0:null}let f=63,Q=33;function h(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let O=0;Om.indexOf(t)>-1?new h(u(n,1)||"",e):e,reduce:(e,t)=>18==t&&e?e.parent:e,reuse(e,t,O,n){let a=t.type.id;return 4==a||35==a?new h(u(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),S=new n.Jq((e,t)=>{if(60!=e.next){e.next<0&&t.context&&e.acceptToken(57);return}e.advance();let O=47==e.next;O&&e.advance();let n=u(e,0);if(void 0===n)return;if(!n)return e.acceptToken(O?12:4);let a=t.context?t.context.name:null;if(O){if(n==a)return e.acceptToken(9);if(a&&o[a])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(10);for(let i=t.context;i;i=i.parent)if(i.name==n)return;e.acceptToken(11)}else{if("script"==n)return e.acceptToken(5);if("style"==n)return e.acceptToken(6);if("textarea"==n)return e.acceptToken(7);if(r.hasOwnProperty(n))return e.acceptToken(8);a&&l[a]&&l[a][n]?e.acceptToken(57,-1):e.acceptToken(4)}},{contextual:!0}),b=new n.Jq(e=>{for(let t=0,O=0;;O++){if(e.next<0){O&&e.acceptToken(58);break}if(45==e.next)t++;else if(62==e.next&&t>=2){O>3&&e.acceptToken(58,-2);break}else t=0;e.advance()}});function g(e,t,O){let a=2+e.length;return new n.Jq(n=>{for(let i=0,r=0,o=0;;o++){if(n.next<0){o&&n.acceptToken(t);break}if(0==i&&60==n.next||1==i&&47==n.next||i>=2&&ir?n.acceptToken(t,-r):n.acceptToken(O,-(r-2));break}else if((10==n.next||13==n.next)&&o){n.acceptToken(t,1);break}else i=r=0;n.advance()}})}let P=g("script",54,1),T=g("style",55,2),Z=g("textarea",56,3),x=(0,a.Gv)({"Text RawText":a.pJ.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":a.pJ.angleBracket,TagName:a.pJ.tagName,"MismatchedCloseTag/TagName":[a.pJ.tagName,a.pJ.invalid],AttributeName:a.pJ.attributeName,"AttributeValue UnquotedAttributeValue":a.pJ.attributeValue,Is:a.pJ.definitionOperator,"EntityReference CharacterReference":a.pJ.character,Comment:a.pJ.blockComment,ProcessingInst:a.pJ.processingInstruction,DoctypeDecl:a.pJ.documentMeta}),X=n.WQ.deserialize({version:14,states:",xOVOxOOO!WQ!bO'#CoO!]Q!bO'#CyO!bQ!bO'#C|O!gQ!bO'#DPO!lQ!bO'#DRO!qOXO'#CnO!|OYO'#CnO#XO[O'#CnO$eOxO'#CnOOOW'#Cn'#CnO$lO!rO'#DTO$tQ!bO'#DVO$yQ!bO'#DWOOOW'#Dk'#DkOOOW'#DY'#DYQVOxOOO%OQ#tO,59ZO%WQ#tO,59eO%`Q#tO,59hO%hQ#tO,59kO%sQ#tO,59mOOOX'#D^'#D^O%{OXO'#CwO&WOXO,59YOOOY'#D_'#D_O&`OYO'#CzO&kOYO,59YOOO['#D`'#D`O&sO[O'#C}O'OO[O,59YOOOW'#Da'#DaO'WOxO,59YO'_Q!bO'#DQOOOW,59Y,59YOOO`'#Db'#DbO'dO!rO,59oOOOW,59o,59oO'lQ!bO,59qO'qQ!bO,59rOOOW-E7W-E7WO'vQ#tO'#CqOOQO'#DZ'#DZO(UQ#tO1G.uOOOX1G.u1G.uO(^Q#tO1G/POOOY1G/P1G/PO(fQ#tO1G/SOOO[1G/S1G/SO(nQ#tO1G/VOOOW1G/V1G/VOOOW1G/X1G/XO(yQ#tO1G/XOOOX-E7[-E7[O)RQ!bO'#CxOOOW1G.t1G.tOOOY-E7]-E7]O)WQ!bO'#C{OOO[-E7^-E7^O)]Q!bO'#DOOOOW-E7_-E7_O)bQ!bO,59lOOO`-E7`-E7`OOOW1G/Z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PPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag SelfClosingEndTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:$,nodeProps:[["closedBy",-10,1,2,3,5,6,7,8,9,10,11,"EndTag",4,"EndTag SelfClosingEndTag",-4,19,29,32,35,"CloseTag"],["group",-9,12,15,16,17,18,39,40,41,42,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],["openedBy",26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag",38,"StartTag"]],propSources:[x],skippedNodes:[0],repeatNodeCount:9,tokenData:"#(r!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs4ysv-_vw5iwxJ^x}-_}!OKP!O!P-_!P!Q!!O!Q![-_![!]!$c!]!^-_!^!_!(k!_!`#'S!`!a#'z!a!c-_!c!}!$c!}#R-_#R#S!$c#S#T3V#T#o!$c#o#s-_#s$f$q$f%W-_%W%o!$c%o%p-_%p&a!$c&a&b-_&b1p!$c1p4U-_4U4d!$c4d4e-_4e$IS!$c$IS$I`-_$I`$Ib!$c$Ib$Kh-_$Kh%#t!$c%#t&/x-_&/x&Et!$c&Et&FV-_&FV;'S!$c;'S;:j!(e;:j;=`4s<%l?&r-_?&r?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,t,O);if(30==i)return y(e,t,n);if(33==i)return y(e,t,a);if(l&&21==i){let r=e.node,o;if(o=r.firstChild){let s=l[t.read(o.from,o.to)];if(s)for(let c of s){if(c.tagName){if(!tagName){let p=r.parent.getChild(20);tagName=p?t.read(p.from,p.to):" "}if(attrTagName!=tagName)continue}let d=r.lastChild;if(24==d.type.id)return{parser:c.parser,overlay:[{from:d.from+1,to:d.to-1}]};if(25==d.type.id)return{parser:c.parser,overlay:[{from:d.from,to:d.to}]}}}}return null})}var v=O(61426),k=O(58037),_=O(47421),V=O(78120),U=O(59119);let w=["_blank","_self","_top","_parent"],j=["ascii","utf-8","utf-16","latin1","latin1"],R=["get","post","put","delete"],C=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],G=["true","false"],W={},Y={a:{attrs:{href:null,ping:null,type:null,media:null,target:w,hreflang:null}},abbr:W,address:W,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:W,aside:W,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:W,base:{attrs:{href:null,target:w}},bdi:W,bdo:W,blockquote:{attrs:{cite:null}},body:W,br:W,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:C,formmethod:R,formnovalidate:["novalidate"],formtarget:w,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:W,center:W,cite:W,code:W,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:W,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:W,div:W,dl:W,dt:W,em:W,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:W,figure:W,footer:W,form:{attrs:{action:null,name:null,"accept-charset":j,autocomplete:["on","off"],enctype:C,method:R,novalidate:["novalidate"],target:w}},h1:W,h2:W,h3:W,h4:W,h5:W,h6:W,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:W,hgroup:W,hr:W,html:{attrs:{manifest:null}},i:W,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:C,formmethod:R,formnovalidate:["novalidate"],formtarget:w,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:W,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:W,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:W,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:j,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:W,noscript:W,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:W,param:{attrs:{name:null,value:null}},pre:W,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:W,rt:W,ruby:W,samp:W,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:j}},section:W,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:W,source:{attrs:{src:null,type:null,media:null}},span:W,strong:W,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:W,summary:W,sup:W,table:W,tbody:W,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:W,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:W,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:W,time:{attrs:{datetime:null}},title:W,tr:W,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:W,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:W},A={accesskey:null,class:null,contenteditable:G,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:G,autocorrect:G,autocapitalize:G,style:null,tabindex:null,title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":G,"aria-autocomplete":["inline","list","both","none"],"aria-busy":G,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":G,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":G,"aria-hidden":G,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":G,"aria-multiselectable":G,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":G,"aria-relevant":null,"aria-required":G,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null};class E{constructor(e,t){this.tags=Object.assign(Object.assign({},Y),e),this.globalAttrs=Object.assign(Object.assign({},A),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function L(e,t,O=e.length){if(!t)return"";let n=t.firstChild,a=n&&n.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,O)):""}function z(e,t=!1){for(let O=e.parent;O;O=O.parent)if("Element"==O.name){if(!t)return O;t=!1}return null}function I(e,t,O){let n=O.tags[L(e,z(t,!0))];return(null==n?void 0:n.children)||O.allTags}function J(e,t){let O=[];for(let n=t;n=z(n);){let a=L(e,n);if(a&&"CloseTag"==n.lastChild.name)break;a&&0>O.indexOf(a)&&("EndTag"==t.name||t.from>=n.firstChild.to)&&O.push(a)}return O}E.default=new E;let B=/^[:\-\.\w\u00b7-\uffff]*$/;function M(e,t,O,n,a){let i=/\s*>/.test(e.sliceDoc(a,a+5))?"":">";return{from:n,to:a,options:I(e.doc,O,t).map(e=>({label:e,type:"type"})).concat(J(e.doc,O).map((e,t)=>({label:"/"+e,apply:"/"+e+i,type:"type",boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function D(e,t,O,n){let a=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:O,to:n,options:J(e.doc,t).map((e,t)=>({label:e,apply:e+a,type:"type",boost:99-t})),validFor:B}}function N(e,t){let{state:O,pos:n}=t,a=(0,U.qz)(O).resolveInner(n),i=a.resolve(n,-1);for(let r=n,o;a==i&&(o=i.childBefore(r));){let l=o.lastChild;if(!l||!l.type.isError||l.from({label:e,type:"property"})),validFor:B}}return"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,t,O,n,a){var i;let r=null===(i=O.parent)||void 0===i?void 0:i.getChild("AttributeName"),o=[],l;if(r){let s=e.sliceDoc(r.from,r.to),c=t.globalAttrs[s];if(!c){let p=z(O),d=p?t.tags[L(e.doc,p)]:null;c=(null==d?void 0:d.attrs)&&d.attrs[s]}if(c){let u=e.sliceDoc(n,a).toLowerCase(),f='"',Q='"';for(let h of(/^['"]/.test(u)?(l='"'==u[0]?/^[^"]*$/:/^[^']*$/,f="",Q=e.sliceDoc(a,a+1)==u[0]?"":u[0],u=u.slice(1),n++):l=/^[^\s<>='"]*$/,c))o.push({label:h,apply:f+h+Q,type:"constant"})}}return{from:n,to:a,options:o,validFor:l}}(O,e,i,"Is"==i.name?n:i.from,n):t.explicit&&("Element"==a.name||"Text"==a.name||"Document"==a.name)?function(e,t,O,n){let a=[],i=0;for(let r of I(e.doc,O,t))a.push({label:"<"+r,type:"type"});for(let o of J(e.doc,O))a.push({label:"",type:"type",boost:99-i++});return{from:n,to:n,options:a,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(O,e,i,n):null}function H(e){return N(E.default,e)}function F(e){let{extraTags:t,extraGlobalAttributes:O}=e,n=O||t?new E(t,O):E.default;return e=>N(n,e)}let K=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:k.typescriptLanguage.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:k.jsxLanguage.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:k.tsxLanguage.parser},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:k.javascriptLanguage.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:v.cssLanguage.parser}],ee=[{name:"style",parser:v.cssLanguage.parser.configure({top:"Styles"})}].concat("beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>({name:"on"+e,parser:k.javascriptLanguage.parser}))),et=U.qp.define({name:"html",parser:X.configure({props:[U.uj.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}});function eO(e={}){let t="",O;!1===e.matchClosingTags&&(t="noMatch"),!0===e.selfClosingTags&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(O=q((e.nestedLanguages||[]).concat(K),(e.nestedAttributes||[]).concat(ee)));let n=O||t?et.configure({dialect:t,wrap:O}):et;return new U.ri(n,[et.data.of({autocomplete:F(e)}),!1!==e.autoCloseTags?en:[],(0,k.javascript)().support,(0,v.css)().support])}let en=_.tk.inputHandler.of((e,t,O,n)=>{if(e.composing||e.state.readOnly||t!=O||">"!=n&&"/"!=n||!et.isActiveAt(e.state,t,-1))return!1;let{state:a}=e,i=a.changeByRange(t=>{var O,i,r;let{head:o}=t,l=(0,U.qz)(a).resolveInner(o,-1),s;if(("TagName"==l.name||"StartTag"==l.name)&&(l=l.parent),">"==n&&"OpenTag"==l.name){if((null===(i=null===(O=l.parent)||void 0===O?void 0:O.lastChild)||void 0===i?void 0:i.name)!="CloseTag"&&(s=L(a.doc,l.parent,o))){let c=">"===e.state.doc.sliceString(o,o+1),p=`${c?"":">"}`;return{range:V.jT.cursor(o+1),changes:{from:o+(c?1:0),insert:p}}}}else if("/"==n&&"OpenTag"==l.name){let d=l.parent,u=null==d?void 0:d.parent;if(d.from==o-1&&(null===(r=u.lastChild)||void 0===r?void 0:r.name)!="CloseTag"&&(s=L(a.doc,u,o))){let f=">"===e.state.doc.sliceString(o,o+1),Q=`/${s}${f?"":">"}`,h=o+Q.length+(f?1:0);return{range:V.jT.cursor(h),changes:{from:o,insert:Q}}}}return{range:t}});return!i.changes.empty&&(e.dispatch(i,{userEvent:"input.type",scrollIntoView:!0}),!0)})},58037:function(e,t,O){"use strict";O.r(t),O.d(t,{autoCloseTags:function(){return E},completionPath:function(){return V},esLint:function(){return L},javascript:function(){return W},javascriptLanguage:function(){return w},jsxLanguage:function(){return R},localCompletionSource:function(){return k},scopeCompletionSource:function(){return U},snippets:function(){return P},tsxLanguage:function(){return C},typescriptLanguage:function(){return j}});var n=O(53105),a=O(35524);let i=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],r=new n.IK({start:!1,shift:(e,t)=>5==t||6==t||299==t?e:300==t,strict:!1}),o=new n.Jq((e,t)=>{let{next:O}=e;(125==O||-1==O||t.context)&&t.canShift(297)&&e.acceptToken(297)},{contextual:!0,fallback:!0}),l=new n.Jq((e,t)=>{let{next:O}=e,n;!(i.indexOf(O)>-1)&&(47!=O||47!=(n=e.peek(1))&&42!=n)&&125!=O&&59!=O&&-1!=O&&!t.context&&t.canShift(294)&&e.acceptToken(294)},{contextual:!0}),s=new n.Jq((e,t)=>{let{next:O}=e;if((43==O||45==O)&&(e.advance(),O==e.next)){e.advance();let n=!t.context&&t.canShift(2);e.acceptToken(n?2:3)}},{contextual:!0}),c=new n.Jq(e=>{for(let t=!1,O=0;;O++){let{next:n}=e;if(n<0){O&&e.acceptToken(295);break}if(96==n){O?e.acceptToken(295):e.acceptToken(296,1);break}if(123==n&&t){1==O?e.acceptToken(4,1):e.acceptToken(295,-1);break}if(10==n&&O){e.advance(),e.acceptToken(295);break}else 92==n&&e.advance();t=36==n,e.advance()}}),p=new n.Jq((e,t)=>{if(101==e.next&&t.dialectEnabled(1)){e.advance();for(let O=0;O<6;O++){if(e.next!="xtends".charCodeAt(O))return;e.advance()}e.next>=57&&e.next<=65||e.next>=48&&e.next<=90||95==e.next||e.next>=97&&e.next<=122||e.next>160||e.acceptToken(1)}}),d=(0,a.Gv)({"get set async static":a.pJ.modifier,"for while do if else switch try catch finally return throw break continue default case":a.pJ.controlKeyword,"in of await yield void typeof delete instanceof":a.pJ.operatorKeyword,"let var const function class extends":a.pJ.definitionKeyword,"import export from":a.pJ.moduleKeyword,"with debugger as new":a.pJ.keyword,TemplateString:a.pJ.special(a.pJ.string),super:a.pJ.atom,BooleanLiteral:a.pJ.bool,this:a.pJ.self,null:a.pJ.null,Star:a.pJ.modifier,VariableName:a.pJ.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":a.pJ.function(a.pJ.variableName),VariableDefinition:a.pJ.definition(a.pJ.variableName),Label:a.pJ.labelName,PropertyName:a.pJ.propertyName,PrivatePropertyName:a.pJ.special(a.pJ.propertyName),"CallExpression/MemberExpression/PropertyName":a.pJ.function(a.pJ.propertyName),"FunctionDeclaration/VariableDefinition":a.pJ.function(a.pJ.definition(a.pJ.variableName)),"ClassDeclaration/VariableDefinition":a.pJ.definition(a.pJ.className),PropertyDefinition:a.pJ.definition(a.pJ.propertyName),PrivatePropertyDefinition:a.pJ.definition(a.pJ.special(a.pJ.propertyName)),UpdateOp:a.pJ.updateOperator,LineComment:a.pJ.lineComment,BlockComment:a.pJ.blockComment,Number:a.pJ.number,String:a.pJ.string,ArithOp:a.pJ.arithmeticOperator,LogicOp:a.pJ.logicOperator,BitOp:a.pJ.bitwiseOperator,CompareOp:a.pJ.compareOperator,RegExp:a.pJ.regexp,Equals:a.pJ.definitionOperator,Arrow:a.pJ.function(a.pJ.punctuation),": Spread":a.pJ.punctuation,"( )":a.pJ.paren,"[ ]":a.pJ.squareBracket,"{ }":a.pJ.brace,"InterpolationStart InterpolationEnd":a.pJ.special(a.pJ.brace),".":a.pJ.derefOperator,", ;":a.pJ.separator,"@":a.pJ.meta,TypeName:a.pJ.typeName,TypeDefinition:a.pJ.definition(a.pJ.typeName),"type enum interface implements namespace module declare":a.pJ.definitionKeyword,"abstract global Privacy readonly override":a.pJ.modifier,"is keyof unique infer":a.pJ.operatorKeyword,JSXAttributeValue:a.pJ.attributeValue,JSXText:a.pJ.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":a.pJ.angleBracket,"JSXIdentifier JSXNameSpacedName":a.pJ.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":a.pJ.attributeName,"JSXBuiltin/JSXIdentifier":a.pJ.standard(a.pJ.tagName)}),u={__proto__:null,export:18,as:23,from:29,default:32,async:37,function:38,this:50,true:58,false:58,null:68,void:72,typeof:76,super:92,new:126,await:143,yield:145,delete:146,class:156,extends:158,public:213,private:213,protected:213,readonly:215,instanceof:234,satisfies:237,in:238,const:240,import:272,keyof:327,unique:331,infer:337,is:373,abstract:393,implements:395,type:397,let:400,var:402,interface:409,enum:413,namespace:419,module:421,declare:425,global:429,for:450,of:459,while:462,with:466,do:470,if:474,else:476,switch:480,case:486,try:492,catch:496,finally:500,return:504,throw:508,break:512,continue:516,debugger:520},f={__proto__:null,async:113,get:115,set:117,public:175,private:175,protected:175,static:177,abstract:179,override:181,readonly:187,accessor:189,new:377},Q={__proto__:null,"<":133},h=n.WQ.deserialize({version:14,states:"$CWO`QdOOO$}QdOOO)WQ(C|O'#ChO)_OWO'#DYO+jQdO'#D_O+zQdO'#DjO$}QdO'#DtO.OQdO'#DzOOQ(C['#ET'#ETO.fQ`O'#EQOOQO'#IW'#IWO.nQ`O'#GgOOQO'#Ee'#EeO.yQ`O'#EdO/OQ`O'#EdO1QQ(C|O'#JQO3nQ(C|O'#JRO4_Q`O'#FSO4dQ!bO'#FkOOQ(C['#F['#F[O4oO#tO'#F[O4}Q&jO'#FrO6bQ`O'#FqOOQ(C['#JR'#JROOQ(CW'#JQ'#JQOOQS'#Jk'#JkO6gQ`O'#H{O6lQ(ChO'#H|OOQS'#Iu'#IuOOQS'#IO'#IOQ`QdOOO$}QdO'#DlO6tQ`O'#GgO6yQ&jO'#CmO7XQ`O'#EcO7dQ`O'#EnO7iQ&jO'#FZO8TQ`O'#GgO8YQ`O'#GkO8eQ`O'#GkO8sQ`O'#GnO8sQ`O'#GoO8sQ`O'#GqO6tQ`O'#GtO9dQ`O'#GwO:uQ`O'#CdO;VQ`O'#HUO;_Q`O'#H[O;_Q`O'#H^O`QdO'#H`O;_Q`O'#HbO;_Q`O'#HeO;dQ`O'#HkO;iQ(CjO'#HqO$}QdO'#HsO;tQ(CjO'#HuOWQpO'#FZO$}QdO'#DZOOOW'#IQ'#IQO>`OWO,59tOOQ(C[,59t,59tO>kQdO'#IRO?OQ`O'#JSOAQQtO'#JSO)jQdO'#JSOAXQ`O,59yOAoQ`O'#EeOA|Q`O'#J`OBXQ`O'#J_OBXQ`O'#J_OBaQ`O,5;ROBfQ`O'#J^OOQ(C[,5:U,5:UOBmQdO,5:UODnQ(C|O,5:`OE_Q`O,5:fOEdQ`O'#J[OF^Q(ChO'#J]O8YQ`O'#J[OFeQ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U(QX~O#`;|O~Oe TypeParamList TypeDefinition ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression await yield delete LogicOp BitOp ParenthesizedExpression ClassExpression class extends ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody MethodDeclaration AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression",maxTerm:345,context:r,nodeProps:[["closedBy",4,"InterpolationEnd",43,"]",53,"}",68,")",140,"JSXSelfCloseEndTag JSXEndTag",156,"JSXEndTag"],["group",-26,8,15,17,60,195,199,202,203,205,208,211,222,224,230,232,234,236,239,245,251,253,255,257,259,261,262,"Statement",-30,12,13,25,28,29,34,44,46,47,49,54,62,70,76,77,99,100,109,110,127,130,132,133,134,135,137,138,158,159,161,"Expression",-23,24,26,30,33,35,37,162,164,166,167,169,170,171,173,174,175,177,178,179,189,191,193,194,"Type",-3,81,92,98,"ClassItem"],["openedBy",31,"InterpolationStart",48,"[",52,"{",67,"(",139,"JSXStartTag",151,"JSXStartTag JSXStartCloseTag"]],propSources:[d],skippedNodes:[0,5,6],repeatNodeCount:29,tokenData:"#2k~R!bOX%ZXY%uYZ'kZ[%u[]%Z]^'k^p%Zpq%uqr(Rrs)mst7]tu9guvlxyJcyzJyz{Ka{|Lm|}MW}!OLm!O!PMn!P!Q!$v!Q!R!Er!R![!G_![!]!Nc!]!^!N{!^!_# c!_!`#!`!`!a##d!a!b#%s!b!c#'h!c!}9g!}#O#(O#O#P%Z#P#Q#(f#Q#R#(|#R#S9g#S#T#)g#T#o#)}#o#p#,w#p#q#,|#q#r#-j#r#s#.S#s$f%Z$f$g%u$g#BY9g#BY#BZ#.j#BZ$IS9g$IS$I_#.j$I_$I|9g$I|$I}#1X$I}$JO#1X$JO$JT9g$JT$JU#.j$JU$KV9g$KV$KW#.j$KW&FU9g&FU&FV#.j&FV;'S9g;'S;=`Rw!^%Z!_!`YU$`W#q&lO!^%Z!_!`s]$`W]&ZOY>lYZ?lZw>lwx,jx!^>l!^!_@|!_#O>l#O#PE_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S%Z;'S;=`%o<%lO%Z$PKQT!e#w$`WO!^%Z!_#o%Z#p;'S%Z;'S;=`%o<%lO%Z)ZKjW$`W'k#e#f&lOz%Zz{LS{!^%Z!_!`q#P#Q!-n#Q#o!;l#o#p!6|#p;'S!;l;'S;=`!?i<%lO!;l7Z!q#P#Q!-n#Q#o!;l#o#p!6|#p;'S!;l;'S;=`!?i<%lO!;l7Z!={[$`WU7ROY!+TYZ%ZZ!^!+T!^!_!)o!_#O!+T#O#P!,O#P#Q!&V#Q#o!+T#o#p!)o#p;'S!+T;'S;=`!,p<%lO!+T7Z!>vZ$`WOY!;lYZ!.wZz!;lz{!u[e]||-1},{term:311,get:e=>f[e]||-1},{term:65,get:e=>Q[e]||-1}],tokenPrec:13429});var m=O(59119),$=O(78120),S=O(47421),b=O(34790),g=O(41113);let P=[(0,b.Gn)("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,b.Gn)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,b.Gn)("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,b.Gn)("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,b.Gn)("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,b.Gn)("try {\n ${}\n} catch (${error}) {\n ${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,b.Gn)("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,b.Gn)("if (${}) {\n ${}\n} else {\n ${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,b.Gn)("class ${name} {\n constructor(${params}) {\n ${}\n }\n}",{label:"class",detail:"definition",type:"keyword"}),(0,b.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,b.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],T=new g.hr,Z=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function x(e){return(t,O)=>{let n=t.node.getChild("VariableDefinition");return n&&O(n,e),!0}}let X=["FunctionDeclaration"],y={FunctionDeclaration:x("function"),ClassDeclaration:x("class"),ClassExpression:()=>!0,EnumDeclaration:x("constant"),TypeAliasDeclaration:x("type"),NamespaceDeclaration:x("namespace"),VariableDefinition(e,t){e.matchContext(X)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null},q=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,v=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName"];function k(e){let t=(0,m.qz)(e.state).resolveInner(e.pos,-1);if(v.indexOf(t.name)>-1)return null;let O="VariableName"==t.name||t.to-t.from<20&&q.test(e.state.sliceDoc(t.from,t.to));if(!O&&!e.explicit)return null;let n=[];for(let a=t;a;a=a.parent)Z.has(a.name)&&(n=n.concat(function e(t,O){let n=T.get(O);if(n)return n;let a=[],i=!0;function r(e,O){let n=t.sliceString(e.from,e.to);a.push({label:n,type:O})}return O.cursor(g.vj.IncludeAnonymous).iterate(O=>{if(i)i=!1;else if(O.name){let n=y[O.name];if(n&&n(O,r)||Z.has(O.name))return!1}else if(O.to-O.from>8192){for(let o of e(t,O.node))a.push(o);return!1}}),T.set(O,a),a}(e.state.doc,a)));return{options:n,from:O?t.from:e.pos,validFor:q}}function _(e,t,O){var n;let a=[];for(;;){let i=t.firstChild,r;if((null==i?void 0:i.name)=="VariableName")return a.push(e(i)),{path:a.reverse(),name:O};if((null==i?void 0:i.name)!="MemberExpression"||(null===(n=r=i.lastChild)||void 0===n?void 0:n.name)!="PropertyName")return null;a.push(e(r)),t=i}}function V(e){let t=t=>e.state.doc.sliceString(t.from,t.to),O=(0,m.qz)(e.state).resolveInner(e.pos,-1);return"PropertyName"==O.name?_(t,O.parent,t(O)):v.indexOf(O.name)>-1?null:"VariableName"==O.name||O.to-O.from<20&&q.test(t(O))?{path:[],name:t(O)}:("."==O.name||"?."==O.name)&&"MemberExpression"==O.parent.name?_(t,O.parent,""):"MemberExpression"==O.name?_(t,O,""):e.explicit?{path:[],name:""}:null}function U(e){let t=new Map;return O=>{let n=V(O);if(!n)return null;let a=e;for(let i of n.path)if(!(a=a[i]))return null;let r=t.get(a);return r||t.set(a,r=function(e,t){let O=[],n=new Set;for(let a=0;;a++){for(let i of(Object.getOwnPropertyNames||Object.keys)(e)){let r;if(!n.has(i)){n.add(i);try{r=e[i]}catch(o){continue}O.push({label:i,type:"function"==typeof r?/^[A-Z]/.test(i)?"class":t?"function":"method":t?"variable":"property",boost:-a})}}let l=Object.getPrototypeOf(e);if(!l)return O;e=l}}(a,!n.path.length)),{from:O.pos-n.name.length,options:r,validFor:q}}}let w=m.qp.define({name:"javascript",parser:h.configure({props:[m.uj.add({IfStatement:(0,m.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,m.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:m.ze,SwitchBody(e){let t=e.textAfter,O=/^\s*\}/.test(t),n=/^\s*(case|default)\b/.test(t);return e.baseIndent+(O?0:n?1:2)*e.unit},Block:(0,m.vw)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,m.tC)({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),m.x0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":m.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),j=w.configure({dialect:"ts"},"typescript"),R=w.configure({dialect:"jsx"}),C=w.configure({dialect:"jsx ts"},"typescript"),G="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(e=>({label:e,type:"keyword"}));function W(e={}){let t=e.jsx?e.typescript?C:R:e.typescript?j:w;return new m.ri(t,[w.data.of({autocomplete:(0,b.eC)(v,(0,b.Mb)(P.concat(G)))}),w.data.of({autocomplete:k}),e.jsx?E:[]])}function Y(e,t,O=e.length){if(!t)return"";let n=t.getChild("JSXIdentifier");return n?e.sliceString(n.from,Math.min(n.to,O)):""}let A="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),E=S.tk.inputHandler.of((e,t,O,n)=>{if((A?e.composing:e.compositionStarted)||e.state.readOnly||t!=O||">"!=n&&"/"!=n||!w.isActiveAt(e.state,t,-1))return!1;let{state:a}=e,i=a.changeByRange(e=>{var t,O,i;let{head:r}=e,o=(0,m.qz)(a).resolveInner(r,-1),l;if("JSXStartTag"==o.name&&(o=o.parent),">"==n&&"JSXFragmentTag"==o.name)return{range:$.jT.cursor(r+1),changes:{from:r,insert:"><>"}};if(">"==n&&"JSXIdentifier"==o.name){if((null===(O=null===(t=o.parent)||void 0===t?void 0:t.lastChild)||void 0===O?void 0:O.name)!="JSXEndTag"&&(l=Y(a.doc,o.parent,r)))return{range:$.jT.cursor(r+1),changes:{from:r,insert:`>`}}}else if("/"==n&&"JSXFragmentTag"==o.name){let s=o.parent,c=null==s?void 0:s.parent;if(s.from==r-1&&(null===(i=c.lastChild)||void 0===i?void 0:i.name)!="JSXEndTag"&&(l=Y(a.doc,null==c?void 0:c.firstChild,r))){let p=`/${l}>`;return{range:$.jT.cursor(r+p.length),changes:{from:r,insert:p}}}}return{range:e}});return!i.changes.empty&&(e.dispatch(i,{userEvent:"input.type",scrollIntoView:!0}),!0)});function L(e,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach((e,O)=>{e.meta.docs.recommended&&(t.rules[O]=2)})),O=>{let{state:n}=O,a=[];for(let{from:i,to:r}of w.findRegions(n)){let o=n.doc.lineAt(i),l={line:o.number-1,col:i-o.from,pos:i};for(let s of e.verify(n.sliceDoc(i,r),t))a.push(function(e,t,O){let n=z(e.line,e.column,t,O),a={from:n,to:null!=e.endLine&&1!=e.endColumn?z(e.endLine,e.endColumn,t,O):n,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:i,text:r}=e.fix,o=i[0]+O.pos-n,l=i[1]+O.pos-n;a.actions=[{name:"fix",apply(e,t){e.dispatch({changes:{from:t+o,to:t+l,insert:r},scrollIntoView:!0})}}]}return a}(s,n.doc,l))}return a}}function z(e,t,O,n){return O.line(e+n.line).from+t+(1==e?n.col-1:-1)}},48825:function(e,t,O){"use strict";O.r(t),O.d(t,{commonmarkLanguage:function(){return eV},deleteMarkupBackward:function(){return eA},insertNewlineContinueMarkup:function(){return eW},markdown:function(){return ez},markdownKeymap:function(){return eE},markdownLanguage:function(){return ew}});var n,a,i=O(78120),r=O(47421),o=O(59119),l=O(41113),s=O(35524);class c{constructor(e,t,O,n,a,i,r){this.type=e,this.value=t,this.from=O,this.hash=n,this.end=a,this.children=i,this.positions=r,this.hashProp=[[l.md.contextHash,n]]}static create(e,t,O,n,a){return new c(e,t,O,n+(n<<8)+e+(t<<4)|0,a,[],[])}addChild(e,t){e.prop(l.md.contextHash)!=this.hash&&(e=new l.mp(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let O=this.children.length-1;return O>=0&&(t=Math.max(t,this.positions[O]+this.children[O].length+this.from)),new l.mp(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,O)=>new l.mp(l.Jq.none,e,t,O,this.hashProp)})}}(n=a||(a={}))[n.Document=1]="Document",n[n.CodeBlock=2]="CodeBlock",n[n.FencedCode=3]="FencedCode",n[n.Blockquote=4]="Blockquote",n[n.HorizontalRule=5]="HorizontalRule",n[n.BulletList=6]="BulletList",n[n.OrderedList=7]="OrderedList",n[n.ListItem=8]="ListItem",n[n.ATXHeading1=9]="ATXHeading1",n[n.ATXHeading2=10]="ATXHeading2",n[n.ATXHeading3=11]="ATXHeading3",n[n.ATXHeading4=12]="ATXHeading4",n[n.ATXHeading5=13]="ATXHeading5",n[n.ATXHeading6=14]="ATXHeading6",n[n.SetextHeading1=15]="SetextHeading1",n[n.SetextHeading2=16]="SetextHeading2",n[n.HTMLBlock=17]="HTMLBlock",n[n.LinkReference=18]="LinkReference",n[n.Paragraph=19]="Paragraph",n[n.CommentBlock=20]="CommentBlock",n[n.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",n[n.Escape=22]="Escape",n[n.Entity=23]="Entity",n[n.HardBreak=24]="HardBreak",n[n.Emphasis=25]="Emphasis",n[n.StrongEmphasis=26]="StrongEmphasis",n[n.Link=27]="Link",n[n.Image=28]="Image",n[n.InlineCode=29]="InlineCode",n[n.HTMLTag=30]="HTMLTag",n[n.Comment=31]="Comment",n[n.ProcessingInstruction=32]="ProcessingInstruction",n[n.URL=33]="URL",n[n.HeaderMark=34]="HeaderMark",n[n.QuoteMark=35]="QuoteMark",n[n.ListMark=36]="ListMark",n[n.LinkMark=37]="LinkMark",n[n.EmphasisMark=38]="EmphasisMark",n[n.CodeMark=39]="CodeMark",n[n.CodeText=40]="CodeText",n[n.CodeInfo=41]="CodeInfo",n[n.LinkTitle=42]="LinkTitle",n[n.LinkLabel=43]="LinkLabel";class p{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class d{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return h(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,O=0){for(let n=t;n=t.stack[O.depth+1].value+O.baseIndent)return!0;if(O.indent>=O.baseIndent+4)return!1;let n=(e.type==a.OrderedList?T:P)(O,t,!1);return n>0&&(e.type!=a.BulletList||0>b(O,t,!1))&&O.text.charCodeAt(O.pos+n-1)==e.value}let f={[a.Blockquote]:(e,t,O)=>62==O.next&&(O.markers.push(N(a.QuoteMark,t.lineStart+O.pos,t.lineStart+O.pos+1)),O.moveBase(O.pos+(Q(O.text.charCodeAt(O.pos+1))?2:1)),e.end=t.lineStart+O.text.length,!0),[a.ListItem]:(e,t,O)=>(!(O.indent-1))&&(O.moveBaseColumn(O.baseIndent+e.value),!0),[a.OrderedList]:u,[a.BulletList]:u,[a.Document]:()=>!0};function Q(e){return 32==e||9==e||10==e||13==e}function h(e,t=0){for(;tO&&Q(e.charCodeAt(t-1));)t--;return t}function $(e){if(96!=e.next&&126!=e.next)return -1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length?-1:n<3?-1:1}function g(e,t){for(let O=e.stack.length-1;O>=0;O--)if(e.stack[O].type==t)return!0;return!1}function P(e,t,O){return(45==e.next||43==e.next||42==e.next)&&(e.pos==e.text.length-1||Q(e.text.charCodeAt(e.pos+1)))&&(!O||g(t,a.BulletList)||e.skipSpace(e.pos+2)=48&&i<=57;){if(++n==e.text.length)return -1;i=e.text.charCodeAt(n)}return n==e.pos||n>e.pos+9||46!=i&&41!=i||ne.pos+1||49!=e.next)?-1:n+1-e.pos}function Z(e){if(35!=e.next)return -1;let t=e.pos+1;for(;t6?-1:O}function x(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return -1;let t=e.pos+1;for(;t/,q=/\?>/,v=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(n);if(r)return e.append(N(a.Comment,O,O+1+r[0].length));let o=/^\?[^]*?\?>/.exec(n);if(o)return e.append(N(a.ProcessingInstruction,O,O+1+o[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(n);return l?e.append(N(a.HTMLTag,O,O+1+l[0].length)):-1},Emphasis(e,t,O){if(95!=t&&42!=t)return -1;let n=O+1;for(;e.char(n)==t;)n++;let a=e.slice(O-1,O),i=e.slice(n,n+1),r=en.test(a),o=en.test(i),l=/\s|^$/.test(a),s=/\s|^$/.test(i),c=!s&&(!o||l||r),p=!l&&(!r||s||o);return e.append(new et(95==t?H:F,O,n,(c&&(42==t||!p||r)?1:0)|(p&&(42==t||!c||o)?2:0)))},HardBreak(e,t,O){if(92==t&&10==e.char(O+1))return e.append(N(a.HardBreak,O,O+2));if(32==t){let n=O+1;for(;32==e.char(n);)n++;if(10==e.char(n)&&n>=O+2)return e.append(N(a.HardBreak,O,n+1))}return -1},Link:(e,t,O)=>91==t?e.append(new et(K,O,O+1,1)):-1,Image:(e,t,O)=>33==t&&91==e.char(O+1)?e.append(new et(ee,O,O+2,1)):-1,LinkEnd(e,t,O){if(93!=t)return -1;for(let n=e.parts.length-1;n>=0;n--){let i=e.parts[n];if(i instanceof et&&(i.type==K||i.type==ee)){if(!i.side||e.skipSpace(i.to)==O&&!/[(\[]/.test(e.slice(O+1,O+2)))return e.parts[n]=null,-1;let r=e.takeContent(n),o=e.parts[n]=function(e,t,O,n,i){let{text:r}=e,o=e.char(i),l=i;if(t.unshift(N(a.LinkMark,n,n+(O==a.Image?2:1))),t.push(N(a.LinkMark,i-1,i)),40==o){let s=e.skipSpace(i+1),c=er(r,s-e.offset,e.offset),p;c&&(s=e.skipSpace(c.to),(p=eo(r,s-e.offset,e.offset))&&(s=e.skipSpace(p.to))),41==e.char(s)&&(t.push(N(a.LinkMark,i,i+1)),l=s+1,c&&t.push(c),p&&t.push(p),t.push(N(a.LinkMark,s,l)))}else if(91==o){let d=el(r,i-e.offset,e.offset,!1);d&&(t.push(d),l=d.to)}return N(O,n,l,t)}(e,r,i.type==K?a.Link:a.Image,i.from,O+1);if(i.type==K)for(let l=0;lt?N(a.URL,t+O,o+O):o==e.length&&null}}function eo(e,t,O){let n=e.charCodeAt(t);if(39!=n&&34!=n&&40!=n)return!1;let i=40==n?41:n;for(let r=t+1,o=!1;r=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,O,n,a){return this.append(new et(e,t,O,(n?1:0)|(a?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t=e;r--){let o=this.parts[r];if(o instanceof et&&1&o.side&&o.type==O.type&&!(n&&(1&O.side||2&o.side)&&(o.to-o.from+a)%3==0&&((o.to-o.from)%3||a%3))){i=o;break}}if(!i)continue;let l=O.type.resolve,s=[],c=i.from,p=O.to;if(n){let d=Math.min(2,i.to-i.from,a);c=i.to-d,p=O.from+d,l=1==d?"Emphasis":"StrongEmphasis"}i.type.mark&&s.push(this.elt(i.type.mark,c,i.to));for(let u=r+1;u=0;t--){let O=this.parts[t];if(O instanceof et&&O.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return h(this.text,e-this.offset)+this.offset}elt(e,t,O,n){return"string"==typeof e?N(this.parser.getNodeType(e),t,O,n):new D(e,t)}}function ec(e,t){if(!t.length)return e;if(!e.length)return t;let O=e.slice(),n=0;for(let a of t){for(;n(e?e-1:0))return!1;if(this.fragmentEnd<0){let O=this.fragment.to;for(;O>0&&"\n"!=this.input.read(O-1,O);)O--;this.fragmentEnd=O?O-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor()).firstChild();let a=e+this.fragment.offset;for(;n.to<=a;)if(!n.parent())return!1;for(;;){if(n.from>=a)return this.fragment.from<=t;if(!n.childAfter(a))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(l.md.contextHash)==e}takeNodes(e){let t=this.cursor,O=this.fragment.offset,n=this.fragmentEnd-(this.fragment.openEnd?1:0),a=e.absoluteLineStart,i=a,r=e.block.children.length,o=i,l=r;for(;;){if(t.to-O>n){if(t.type.isAnonymous&&t.firstChild())continue;break}if(e.dontInject.add(t.tree),e.addNode(t.tree,t.from-O),t.type.is("Block")&&(0>ep.indexOf(t.type.id)?(i=t.to-O,r=e.block.children.length):(i=o,r=l,o=t.to-O,l=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>r;)e.block.children.pop(),e.block.positions.pop();return i-a}}let eu=(0,s.Gv)({"Blockquote/...":s.pJ.quote,HorizontalRule:s.pJ.contentSeparator,"ATXHeading1/... SetextHeading1/...":s.pJ.heading1,"ATXHeading2/... SetextHeading2/...":s.pJ.heading2,"ATXHeading3/...":s.pJ.heading3,"ATXHeading4/...":s.pJ.heading4,"ATXHeading5/...":s.pJ.heading5,"ATXHeading6/...":s.pJ.heading6,"Comment CommentBlock":s.pJ.comment,Escape:s.pJ.escape,Entity:s.pJ.character,"Emphasis/...":s.pJ.emphasis,"StrongEmphasis/...":s.pJ.strong,"Link/... Image/...":s.pJ.link,"OrderedList/... BulletList/...":s.pJ.list,"BlockQuote/...":s.pJ.quote,"InlineCode CodeText":s.pJ.monospace,URL:s.pJ.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":s.pJ.processingInstruction,"CodeInfo LinkLabel":s.pJ.labelName,LinkTitle:s.pJ.string,Paragraph:s.pJ.content}),ef=new Y(new l.Lj(L).extend(eu),Object.keys(U).map(e=>U[e]),Object.keys(U).map(e=>C[e]),Object.keys(U),[(e,t)=>Z(t)>=0,(e,t)=>$(t)>=0,(e,t)=>S(t)>=0,(e,t)=>P(t,e,!0)>=0,(e,t)=>T(t,e,!0)>=0,(e,t)=>b(t,e,!0)>=0,(e,t)=>k(t,e,!0)>=0],f,Object.keys(ei).map(e=>ei[e]),Object.keys(ei),[]),eQ={resolve:"Strikethrough",mark:"StrikethroughMark"},eh={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":s.pJ.strikethrough}},{name:"StrikethroughMark",style:s.pJ.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,O){if(126!=t||126!=e.char(O+1)||126==e.char(O+2))return -1;let n=e.slice(O-1,O),a=e.slice(O+2,O+3),i=/\s|^$/.test(n),r=/\s|^$/.test(a),o=en.test(n),l=en.test(a);return e.addDelimiter(eQ,O,O+2,!r&&(!l||i||o),!i&&(!o||r||l))},after:"Emphasis"}]};function em(e,t,O=0,n,a=0){let i=0,r=!0,o=-1,l=-1,s=!1,c=()=>{n.push(e.elt("TableCell",a+o,a+l,e.parser.parseInline(t.slice(o,l),a+o)))};for(let p=O;p-1)&&i++,r=!1,n&&(o>-1&&c(),n.push(e.elt("TableDelimiter",p+a,p+a+1))),o=l=-1),s=!s&&92==d}return o>-1&&(i++,n&&c()),i}function e$(e,t){for(let O=t;Oe$(t.content,0)?new eb:null,endLeaf(e,t,O){if(O.parsers.some(e=>e instanceof eb)||!e$(t.text,t.basePos))return!1;let n=e.scanLine(e.absoluteLineEnd+1).text;return eS.test(n)&&em(e,t.text,t.basePos)==em(e,n,t.basePos)},before:"SetextHeading"}]};class eP{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}let eT={defineNodes:[{name:"Task",block:!0,style:s.pJ.list},{name:"TaskMarker",style:s.pJ.atom}],parseBlock:[{name:"TaskList",leaf:(e,t)=>/^\[[ xX]\]/.test(t.content)&&"ListItem"==e.parentType().name?new eP:null,after:"SetextHeading"}]};function eZ(e,t,O){return(n,a,i)=>{if(a!=e||n.char(i+1)==e)return -1;let r=[n.elt(O,i,i+1)];for(let o=i+1;o"}}),ek=ef.configure({props:[o.x0.add(e=>{if(!(!e.is("Block")||e.is("Document")))return(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})}),o.uj.add({Document:()=>null}),o.pp.add({Document:ev})]});function e_(e){return new o.SQ(ev,e,[],"markdown")}let eV=e_(ek),eU=ek.configure([[eg,eT,eh],eX,ex,ey]),ew=e_(eU);class ej{constructor(e,t,O,n,a,i,r){this.node=e,this.from=t,this.to=O,this.spaceBefore=n,this.spaceAfter=a,this.type=i,this.item=r}blank(e,t=!0){let O=this.spaceBefore+("Blockquote"==this.node.name?">":"");if(null!=e){for(;O.length0;n--)O+=" ";return O+(t?this.spaceAfter:"")}marker(e,t){let O="OrderedList"==this.node.name?String(+eC(this.item,e)[2]+t):"";return this.spaceBefore+O+this.type+this.spaceAfter}}function eR(e,t){let O=[];for(let n=e;n&&"Document"!=n.name;n=n.parent)("ListItem"==n.name||"Blockquote"==n.name||"FencedCode"==n.name)&&O.push(n);let a=[];for(let i=O.length-1;i>=0;i--){let r=O[i],o,l=t.lineAt(r.from),s=r.from-l.from;if("FencedCode"==r.name)a.push(new ej(r,s,s,"","","",null));else if("Blockquote"==r.name&&(o=/^[ \t]*>( ?)/.exec(l.text.slice(s))))a.push(new ej(r,s,s+o[0].length,"",o[1],">",null));else if("ListItem"==r.name&&"OrderedList"==r.parent.name&&(o=/^([ \t]*)\d+([.)])([ \t]*)/.exec(l.text.slice(s)))){let c=o[3],p=o[0].length;c.length>=4&&(c=c.slice(0,c.length-4),p-=4),a.push(new ej(r.parent,s,s+p,o[1],c,o[2],r))}else if("ListItem"==r.name&&"BulletList"==r.parent.name&&(o=/^([ \t]*)([-+*])([ \t]{1,4}\[[ xX]\])?([ \t]+)/.exec(l.text.slice(s)))){let d=o[4],u=o[0].length;d.length>4&&(d=d.slice(0,d.length-4),u-=4);let f=o[2];o[3]&&(f+=o[3].replace(/[xX]/," ")),a.push(new ej(r.parent,s,s+u,o[1],d,f,r))}}return a}function eC(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function eG(e,t,O,n=0){for(let a=-1,i=e;;){if("ListItem"==i.name){let r=eC(i,t),o=+r[2];if(a>=0){if(o!=a+1)return;O.push({from:i.from+r[1].length,to:i.from+r[0].length,insert:String(a+2+n)})}a=o}let l=i.nextSibling;if(!l)break;i=l}}let eW=({state:e,dispatch:t})=>{let O=(0,o.qz)(e),{doc:n}=e,a=null,r=e.changeByRange(t=>{if(!t.empty||!ew.isActiveAt(e,t.from))return a={range:t};let r=t.from,o=n.lineAt(r),l=eR(O.resolveInner(r,-1),n);for(;l.length&&l[l.length-1].from>r-o.from;)l.pop();if(!l.length)return a={range:t};let s=l[l.length-1];if(s.to-s.spaceAfter.length>r-o.from)return a={range:t};let c=r>=s.to-s.spaceAfter.length&&!/\S/.test(o.text.slice(s.to));if(s.item&&c){if(s.node.firstChild.to>=r||o.from>0&&!/[^\s>]/.test(n.lineAt(o.from-1).text)){let p=l.length>1?l[l.length-2]:null,d,u="";p&&p.item?(d=o.from+p.from,u=p.marker(n,1)):d=o.from+(p?p.to:0);let f=[{from:d,to:r,insert:u}];return"OrderedList"==s.node.name&&eG(s.item,n,f,-2),p&&"OrderedList"==p.node.name&&eG(p.item,n,f),{range:i.jT.cursor(d+u.length),changes:f}}{let Q="";for(let h=0,m=l.length-2;h<=m;h++)Q+=l[h].blank(h\s*$/.exec($.text);if(S&&S.index==s.from){let b=e.changes([{from:$.from+S.index,to:$.to},{from:o.from+s.from,to:o.to}]);return{range:t.map(b),changes:b}}}let g=[];"OrderedList"==s.node.name&&eG(s.item,n,g);let P=s.item&&s.item.from]*/.exec(o.text)[0].length>=s.to)for(let Z=0,x=l.length-1;Z<=x;Z++)T+=Z!=x||P?l[Z].blank(Zo.from&&/\s/.test(o.text.charAt(X-o.from-1));)X--;return T=e.lineBreak+T,g.push({from:X,to:r,insert:T}),{range:i.jT.cursor(X+T.length),changes:g}});return!a&&(t(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0)};function eY(e){return"QuoteMark"==e.name||"ListMark"==e.name}let eA=({state:e,dispatch:t})=>{let O=(0,o.qz)(e),n=null,a=e.changeByRange(t=>{let a=t.from,{doc:r}=e;if(t.empty&&ew.isActiveAt(e,t.from)){let o=r.lineAt(a),l=eR(function(e,t){let O=e.resolveInner(t,-1),n=t;eY(O)&&(n=O.from,O=O.parent);for(let a;a=O.childBefore(n);)if(eY(a))n=a.from;else if("OrderedList"==a.name||"BulletList"==a.name)n=(O=a.lastChild).to;else break;return O}(O,a),r);if(l.length){let s=l[l.length-1],c=s.to-s.spaceAfter.length+(s.spaceAfter?1:0);if(a-o.from>c&&!/\S/.test(o.text.slice(c,a-o.from)))return{range:i.jT.cursor(o.from+c),changes:{from:o.from+c,to:a}};if(a-o.from==c){let p=o.from+s.from;if(s.item&&s.node.from{if(e&&O){let n=null;if(e=/\S*/.exec(e)[0],(n="function"==typeof O?O(e):o.c6.matchLanguageName(O,e,!0))instanceof o.c6)return n.support?n.support.language.parser:o.Be.getSkippingParser(n.load());if(n)return n.parser}return t?t.parser:null}):void 0;return p.push(function(e){let{codeParser:t,htmlParser:O}=e,n=(0,l.FE)((e,n)=>{let i=e.type.id;if(t&&(i==a.CodeBlock||i==a.FencedCode)){let r="";if(i==a.FencedCode){let o=e.node.getChild(a.CodeInfo);o&&(r=n.read(o.from,o.to))}let l=t(r);if(l)return{parser:l,overlay:e=>e.type.id==a.CodeText}}else if(O&&(i==a.HTMLBlock||i==a.HTMLTag))return{parser:O,overlay:function(e,t,O){let n=[];for(let a=e.firstChild,i=t;;a=a.nextSibling){let r=a?a.from:O;if(r>i&&n.push({from:i,to:r}),!a)break;i=a.to}return n}(e.node,e.from,e.to)};return null});return{wrap:n}}({codeParser:f,htmlParser:eL.language.parser})),s&&d.push(i.Wl.high(r.$f.of(eE))),new o.ri(e_(c.configure(p)),d)}},76538:function(e,t,O){"use strict";O.d(t,{M:function(){return r}});var n=O(59119);function a(e){return new n.ri(n.il.define(e))}function i(e){return O.e(1390).then(O.bind(O,21390)).then(t=>t.sql({dialect:t[e]}))}let r=[n.c6.of({name:"C",extensions:["c","h","ino"],load:()=>O.e(2750).then(O.bind(O,12750)).then(e=>e.cpp())}),n.c6.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>O.e(2750).then(O.bind(O,12750)).then(e=>e.cpp())}),n.c6.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>i("Cassandra")}),n.c6.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(O.bind(O,61426)).then(e=>e.css())}),n.c6.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(O.bind(O,13804)).then(e=>e.html())}),n.c6.of({name:"Java",extensions:["java"],load:()=>O.e(4778).then(O.bind(O,44778)).then(e=>e.java())}),n.c6.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(O.bind(O,58037)).then(e=>e.javascript())}),n.c6.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>O.e(4732).then(O.bind(O,44732)).then(e=>e.json())}),n.c6.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(O.bind(O,58037)).then(e=>e.javascript({jsx:!0}))}),n.c6.of({name:"MariaDB SQL",load:()=>i("MariaSQL")}),n.c6.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(O.bind(O,48825)).then(e=>e.markdown())}),n.c6.of({name:"MS SQL",load:()=>i("MSSQL")}),n.c6.of({name:"MySQL",load:()=>i("MySQL")}),n.c6.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>O.e(2386).then(O.bind(O,12386)).then(e=>e.php())}),n.c6.of({name:"PLSQL",extensions:["pls"],load:()=>i("PLSQL")}),n.c6.of({name:"PostgreSQL",load:()=>i("PostgreSQL")}),n.c6.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>O.e(8088).then(O.bind(O,28088)).then(e=>e.python())}),n.c6.of({name:"Rust",extensions:["rs"],load:()=>O.e(4920).then(O.bind(O,24920)).then(e=>e.rust())}),n.c6.of({name:"SQL",extensions:["sql"],load:()=>i("StandardSQL")}),n.c6.of({name:"SQLite",load:()=>i("SQLite")}),n.c6.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(O.bind(O,58037)).then(e=>e.javascript({jsx:!0,typescript:!0}))}),n.c6.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load:()=>Promise.resolve().then(O.bind(O,58037)).then(e=>e.javascript({typescript:!0}))}),n.c6.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>O.e(9972).then(O.bind(O,9972)).then(e=>e.wast())}),n.c6.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>O.e(5122).then(O.bind(O,5122)).then(e=>e.xml())}),n.c6.of({name:"APL",extensions:["dyalog","apl"],load:()=>O.e(870).then(O.bind(O,90870)).then(e=>a(e.apl))}),n.c6.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>O.e(8029).then(O.bind(O,58029)).then(e=>a(e.asciiArmor))}),n.c6.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>O.e(3203).then(O.bind(O,93203)).then(e=>a(e.asn1({})))}),n.c6.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>O.e(5648).then(O.bind(O,15648)).then(e=>a(e.asterisk))}),n.c6.of({name:"Brainfuck",extensions:["b","bf"],load:()=>O.e(2675).then(O.bind(O,9521)).then(e=>a(e.brainfuck))}),n.c6.of({name:"Cobol",extensions:["cob","cpy"],load:()=>O.e(8915).then(O.bind(O,68915)).then(e=>a(e.cobol))}),n.c6.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.csharp))}),n.c6.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>O.e(2406).then(O.bind(O,72406)).then(e=>a(e.clojure))}),n.c6.of({name:"ClojureScript",extensions:["cljs"],load:()=>O.e(2406).then(O.bind(O,72406)).then(e=>a(e.clojure))}),n.c6.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>O.e(2136).then(O.bind(O,62136)).then(e=>a(e.gss))}),n.c6.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>O.e(889).then(O.bind(O,70889)).then(e=>a(e.cmake))}),n.c6.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>O.e(9558).then(O.bind(O,29558)).then(e=>a(e.coffeeScript))}),n.c6.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>O.e(1446).then(O.bind(O,61446)).then(e=>a(e.commonLisp))}),n.c6.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>O.e(673).then(O.bind(O,20673)).then(e=>a(e.cypher))}),n.c6.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>O.e(4323).then(O.bind(O,74323)).then(e=>a(e.cython))}),n.c6.of({name:"Crystal",extensions:["cr"],load:()=>O.e(2602).then(O.bind(O,62602)).then(e=>a(e.crystal))}),n.c6.of({name:"D",extensions:["d"],load:()=>O.e(1660).then(O.bind(O,11660)).then(e=>a(e.d))}),n.c6.of({name:"Dart",extensions:["dart"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.dart))}),n.c6.of({name:"diff",extensions:["diff","patch"],load:()=>O.e(7475).then(O.bind(O,87475)).then(e=>a(e.diff))}),n.c6.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>O.e(4812).then(O.bind(O,34812)).then(e=>a(e.dockerFile))}),n.c6.of({name:"DTD",extensions:["dtd"],load:()=>O.e(6991).then(O.bind(O,76991)).then(e=>a(e.dtd))}),n.c6.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>O.e(4144).then(O.bind(O,24144)).then(e=>a(e.dylan))}),n.c6.of({name:"EBNF",load:()=>O.e(2040).then(O.bind(O,82040)).then(e=>a(e.ebnf))}),n.c6.of({name:"ECL",extensions:["ecl"],load:()=>O.e(7315).then(O.bind(O,37315)).then(e=>a(e.ecl))}),n.c6.of({name:"edn",extensions:["edn"],load:()=>O.e(2406).then(O.bind(O,72406)).then(e=>a(e.clojure))}),n.c6.of({name:"Eiffel",extensions:["e"],load:()=>O.e(7525).then(O.bind(O,87525)).then(e=>a(e.eiffel))}),n.c6.of({name:"Elm",extensions:["elm"],load:()=>O.e(8770).then(O.bind(O,28770)).then(e=>a(e.elm))}),n.c6.of({name:"Erlang",extensions:["erl"],load:()=>O.e(7590).then(O.bind(O,53482)).then(e=>a(e.erlang))}),n.c6.of({name:"Esper",load:()=>O.e(9607).then(O.bind(O,54050)).then(e=>a(e.esper))}),n.c6.of({name:"Factor",extensions:["factor"],load:()=>O.e(7001).then(O.bind(O,87001)).then(e=>a(e.factor))}),n.c6.of({name:"FCL",load:()=>O.e(7663).then(O.bind(O,77663)).then(e=>a(e.fcl))}),n.c6.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>O.e(8393).then(O.bind(O,68393)).then(e=>a(e.forth))}),n.c6.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>O.e(8283).then(O.bind(O,8283)).then(e=>a(e.fortran))}),n.c6.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>O.e(6121).then(O.bind(O,96121)).then(e=>a(e.fSharp))}),n.c6.of({name:"Gas",extensions:["s"],load:()=>O.e(9781).then(O.bind(O,39781)).then(e=>a(e.gas))}),n.c6.of({name:"Gherkin",extensions:["feature"],load:()=>O.e(2542).then(O.bind(O,2542)).then(e=>a(e.gherkin))}),n.c6.of({name:"Go",extensions:["go"],load:()=>O.e(8910).then(O.bind(O,48910)).then(e=>a(e.go))}),n.c6.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>O.e(3883).then(O.bind(O,23883)).then(e=>a(e.groovy))}),n.c6.of({name:"Haskell",extensions:["hs"],load:()=>O.e(5372).then(O.bind(O,95372)).then(e=>a(e.haskell))}),n.c6.of({name:"Haxe",extensions:["hx"],load:()=>O.e(3509).then(O.bind(O,63509)).then(e=>a(e.haxe))}),n.c6.of({name:"HXML",extensions:["hxml"],load:()=>O.e(3509).then(O.bind(O,63509)).then(e=>a(e.hxml))}),n.c6.of({name:"HTTP",load:()=>O.e(7558).then(O.bind(O,36395)).then(e=>a(e.http))}),n.c6.of({name:"IDL",extensions:["pro"],load:()=>O.e(2314).then(O.bind(O,22314)).then(e=>a(e.idl))}),n.c6.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>O.e(9296).then(O.bind(O,59296)).then(e=>a(e.jsonld))}),n.c6.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>O.e(1084).then(O.bind(O,41084)).then(e=>a(e.jinja2))}),n.c6.of({name:"Julia",extensions:["jl"],load:()=>O.e(6092).then(O.bind(O,76092)).then(e=>a(e.julia))}),n.c6.of({name:"Kotlin",extensions:["kt"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.kotlin))}),n.c6.of({name:"LESS",extensions:["less"],load:()=>O.e(2136).then(O.bind(O,62136)).then(e=>a(e.less))}),n.c6.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>O.e(402).then(O.bind(O,60402)).then(e=>a(e.liveScript))}),n.c6.of({name:"Lua",extensions:["lua"],load:()=>O.e(3519).then(O.bind(O,3519)).then(e=>a(e.lua))}),n.c6.of({name:"mIRC",extensions:["mrc"],load:()=>O.e(5134).then(O.bind(O,65134)).then(e=>a(e.mirc))}),n.c6.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>O.e(7213).then(O.bind(O,37213)).then(e=>a(e.mathematica))}),n.c6.of({name:"Modelica",extensions:["mo"],load:()=>O.e(305).then(O.bind(O,40305)).then(e=>a(e.modelica))}),n.c6.of({name:"MUMPS",extensions:["mps"],load:()=>O.e(7988).then(O.bind(O,17988)).then(e=>a(e.mumps))}),n.c6.of({name:"Mbox",extensions:["mbox"],load:()=>O.e(9121).then(O.bind(O,29121)).then(e=>a(e.mbox))}),n.c6.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>O.e(8561).then(O.bind(O,78561)).then(e=>a(e.nginx))}),n.c6.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>O.e(7370).then(O.bind(O,67370)).then(e=>a(e.nsis))}),n.c6.of({name:"NTriples",extensions:["nt","nq"],load:()=>O.e(3314).then(O.bind(O,43314)).then(e=>a(e.ntriples))}),n.c6.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.objectiveC))}),n.c6.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.objectiveCpp))}),n.c6.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>O.e(6121).then(O.bind(O,96121)).then(e=>a(e.oCaml))}),n.c6.of({name:"Octave",extensions:["m"],load:()=>O.e(3283).then(O.bind(O,33283)).then(e=>a(e.octave))}),n.c6.of({name:"Oz",extensions:["oz"],load:()=>O.e(4796).then(O.bind(O,94796)).then(e=>a(e.oz))}),n.c6.of({name:"Pascal",extensions:["p","pas"],load:()=>O.e(4163).then(O.bind(O,44163)).then(e=>a(e.pascal))}),n.c6.of({name:"Perl",extensions:["pl","pm"],load:()=>O.e(4293).then(O.bind(O,94293)).then(e=>a(e.perl))}),n.c6.of({name:"Pig",extensions:["pig"],load:()=>O.e(3482).then(O.bind(O,33482)).then(e=>a(e.pig))}),n.c6.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>O.e(7421).then(O.bind(O,37421)).then(e=>a(e.powerShell))}),n.c6.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>O.e(9071).then(O.bind(O,69071)).then(e=>a(e.properties))}),n.c6.of({name:"ProtoBuf",extensions:["proto"],load:()=>O.e(8142).then(O.bind(O,78142)).then(e=>a(e.protobuf))}),n.c6.of({name:"Puppet",extensions:["pp"],load:()=>O.e(3993).then(O.bind(O,83993)).then(e=>a(e.puppet))}),n.c6.of({name:"Q",extensions:["q"],load:()=>O.e(228).then(O.bind(O,10228)).then(e=>a(e.q))}),n.c6.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>O.e(7365).then(O.bind(O,57365)).then(e=>a(e.r))}),n.c6.of({name:"RPM Changes",load:()=>O.e(8171).then(O.bind(O,48171)).then(e=>a(e.rpmChanges))}),n.c6.of({name:"RPM Spec",extensions:["spec"],load:()=>O.e(8171).then(O.bind(O,48171)).then(e=>a(e.rpmSpec))}),n.c6.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],load:()=>O.e(4439).then(O.bind(O,24439)).then(e=>a(e.ruby))}),n.c6.of({name:"SAS",extensions:["sas"],load:()=>O.e(1770).then(O.bind(O,1770)).then(e=>a(e.sas))}),n.c6.of({name:"Sass",extensions:["sass"],load:()=>O.e(9809).then(O.bind(O,49809)).then(e=>a(e.sass))}),n.c6.of({name:"Scala",extensions:["scala"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.scala))}),n.c6.of({name:"Scheme",extensions:["scm","ss"],load:()=>O.e(5879).then(O.bind(O,95879)).then(e=>a(e.scheme))}),n.c6.of({name:"SCSS",extensions:["scss"],load:()=>O.e(2136).then(O.bind(O,62136)).then(e=>a(e.sCSS))}),n.c6.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>O.e(4879).then(O.bind(O,44879)).then(e=>a(e.shell))}),n.c6.of({name:"Sieve",extensions:["siv","sieve"],load:()=>O.e(9713).then(O.bind(O,9713)).then(e=>a(e.sieve))}),n.c6.of({name:"Smalltalk",extensions:["st"],load:()=>O.e(1873).then(O.bind(O,11873)).then(e=>a(e.smalltalk))}),n.c6.of({name:"Solr",load:()=>O.e(7762).then(O.bind(O,17762)).then(e=>a(e.solr))}),n.c6.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>O.e(6121).then(O.bind(O,96121)).then(e=>a(e.sml))}),n.c6.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>O.e(370).then(O.bind(O,70370)).then(e=>a(e.sparql))}),n.c6.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>O.e(7601).then(O.bind(O,97601)).then(e=>a(e.spreadsheet))}),n.c6.of({name:"Squirrel",extensions:["nut"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.squirrel))}),n.c6.of({name:"Stylus",extensions:["styl"],load:()=>O.e(8007).then(O.bind(O,28007)).then(e=>a(e.stylus))}),n.c6.of({name:"Swift",extensions:["swift"],load:()=>O.e(6062).then(O.bind(O,66062)).then(e=>a(e.swift))}),n.c6.of({name:"sTeX",load:()=>O.e(6732).then(O.bind(O,86732)).then(e=>a(e.stex))}),n.c6.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>O.e(6732).then(O.bind(O,86732)).then(e=>a(e.stex))}),n.c6.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>O.e(2119).then(O.bind(O,52119)).then(e=>a(e.verilog))}),n.c6.of({name:"Tcl",extensions:["tcl"],load:()=>O.e(3465).then(O.bind(O,43465)).then(e=>a(e.tcl))}),n.c6.of({name:"Textile",extensions:["textile"],load:()=>O.e(177).then(O.bind(O,90177)).then(e=>a(e.textile))}),n.c6.of({name:"TiddlyWiki",load:()=>O.e(4511).then(O.bind(O,34511)).then(e=>a(e.tiddlyWiki))}),n.c6.of({name:"Tiki wiki",load:()=>O.e(6471).then(O.bind(O,36471)).then(e=>a(e.tiki))}),n.c6.of({name:"TOML",extensions:["toml"],load:()=>O.e(6443).then(O.bind(O,96443)).then(e=>a(e.toml))}),n.c6.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>O.e(1920).then(O.bind(O,71920)).then(e=>a(e.troff))}),n.c6.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>O.e(6665).then(O.bind(O,66665)).then(e=>a(e.ttcn))}),n.c6.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>O.e(9831).then(O.bind(O,29831)).then(e=>a(e.ttcnCfg))}),n.c6.of({name:"Turtle",extensions:["ttl"],load:()=>O.e(5815).then(O.bind(O,15815)).then(e=>a(e.turtle))}),n.c6.of({name:"Web IDL",extensions:["webidl"],load:()=>O.e(6692).then(O.bind(O,26692)).then(e=>a(e.webIDL))}),n.c6.of({name:"VB.NET",extensions:["vb"],load:()=>O.e(4212).then(O.bind(O,44212)).then(e=>a(e.vb))}),n.c6.of({name:"VBScript",extensions:["vbs"],load:()=>O.e(1650).then(O.bind(O,31650)).then(e=>a(e.vbScript))}),n.c6.of({name:"Velocity",extensions:["vtl"],load:()=>O.e(617).then(O.bind(O,90617)).then(e=>a(e.velocity))}),n.c6.of({name:"Verilog",extensions:["v"],load:()=>O.e(2119).then(O.bind(O,52119)).then(e=>a(e.verilog))}),n.c6.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>O.e(5819).then(O.bind(O,5819)).then(e=>a(e.vhdl))}),n.c6.of({name:"XQuery",extensions:["xy","xquery"],load:()=>O.e(5753).then(O.bind(O,35753)).then(e=>a(e.xQuery))}),n.c6.of({name:"Yacas",extensions:["ys"],load:()=>O.e(9232).then(O.bind(O,69232)).then(e=>a(e.yacas))}),n.c6.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>O.e(2877).then(O.bind(O,82877)).then(e=>a(e.yaml))}),n.c6.of({name:"Z80",extensions:["z80"],load:()=>O.e(1053).then(O.bind(O,21053)).then(e=>a(e.z80))}),n.c6.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>O.e(758).then(O.bind(O,30758)).then(e=>a(e.mscgen))}),n.c6.of({name:"X\xf9",extensions:["xu"],load:()=>O.e(758).then(O.bind(O,30758)).then(e=>a(e.xu))}),n.c6.of({name:"MsGenny",extensions:["msgenny"],load:()=>O.e(758).then(O.bind(O,30758)).then(e=>a(e.msgenny))})]}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1043],{48689:function(e,t,O){"use strict";O.d(t,{Z:function(){return l}});var n=O(1413),a=O(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},r=O(42135),o=function(e,t){return a.createElement(r.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:i}))};o.displayName="DeleteOutlined";var l=a.forwardRef(o)},88484:function(e,t,O){"use strict";O.d(t,{Z:function(){return l}});var n=O(1413),a=O(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},r=O(42135),o=function(e,t){return a.createElement(r.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:i}))};o.displayName="UploadOutlined";var l=a.forwardRef(o)},94594:function(e,t,O){"use strict";O.d(t,{Z:function(){return b}});var n=O(87462),a=O(4942),i=O(50888),r=O(94184),o=O.n(r),l=O(97685),s=O(45987),c=O(67294),p=O(21770),d=O(15105),u=c.forwardRef(function(e,t){var O,n=e.prefixCls,i=void 0===n?"rc-switch":n,r=e.className,u=e.checked,f=e.defaultChecked,Q=e.disabled,h=e.loadingIcon,m=e.checkedChildren,$=e.unCheckedChildren,S=e.onClick,b=e.onChange,g=e.onKeyDown,P=(0,s.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),T=(0,p.Z)(!1,{value:u,defaultValue:f}),Z=(0,l.Z)(T,2),x=Z[0],X=Z[1];function y(e,t){var O=x;return Q||(X(O=e),null==b||b(O,t)),O}var q=o()(i,r,(O={},(0,a.Z)(O,"".concat(i,"-checked"),x),(0,a.Z)(O,"".concat(i,"-disabled"),Q),O));return c.createElement("button",Object.assign({},P,{type:"button",role:"switch","aria-checked":x,disabled:Q,className:q,ref:t,onKeyDown:function(e){e.which===d.Z.LEFT?y(!1,e):e.which===d.Z.RIGHT&&y(!0,e),null==g||g(e)},onClick:function(e){var t=y(!x,e);null==S||S(t,e)}}),h,c.createElement("span",{className:"".concat(i,"-inner")},x?m:$))});u.displayName="Switch";var f=O(53124),Q=O(98866),h=O(97647),m=O(68349),$=function(e,t){var O={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(O[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(O[n[a]]=e[n[a]]);return O},S=c.forwardRef(function(e,t){var O,r=e.prefixCls,l=e.size,s=e.disabled,p=e.loading,d=e.className,S=$(e,["prefixCls","size","disabled","loading","className"]),b=c.useContext(f.E_),g=b.getPrefixCls,P=b.direction,T=c.useContext(h.Z),Z=c.useContext(Q.Z),x=g("switch",r),X=c.createElement("div",{className:"".concat(x,"-handle")},p&&c.createElement(i.Z,{className:"".concat(x,"-loading-icon")})),y=o()((O={},(0,a.Z)(O,"".concat(x,"-small"),"small"===(l||T)),(0,a.Z)(O,"".concat(x,"-loading"),p),(0,a.Z)(O,"".concat(x,"-rtl"),"rtl"===P),O),void 0===d?"":d);return c.createElement(m.Z,{insertExtraNode:!0},c.createElement(u,(0,n.Z)({},S,{prefixCls:x,className:y,disabled:(null!=s?s:Z)||p,ref:t,loadingIcon:X})))});S.__ANT_SWITCH=!0;var b=S},20550:function(e,t,O){"use strict";O.d(t,{Z:function(){return S}});var n=O(4942),a=O(87462),i=O(97685),r=O(97937),o=O(94184),l=O.n(o),s=O(98423),c=O(67294),p=O(53124),d=O(98787),u=O(68349),f=function(e,t){var O={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(O[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(O[n[a]]=e[n[a]]);return O},Q=function(e,t){var O={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(O[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(O[n[a]]=e[n[a]]);return O},h=RegExp("^(".concat(d.Y.join("|"),")(-inverse)?$")),m=RegExp("^(".concat(d.E.join("|"),")$")),$=c.forwardRef(function(e,t){var O,o=e.prefixCls,d=e.className,f=e.style,$=e.children,S=e.icon,b=e.color,g=e.onClose,P=e.closeIcon,T=e.closable,Z=Q(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),x=c.useContext(p.E_),X=x.getPrefixCls,y=x.direction,q=c.useState(!0),v=(0,i.Z)(q,2),k=v[0],_=v[1];c.useEffect(function(){"visible"in Z&&_(Z.visible)},[Z.visible]);var V=function(){return!!b&&(h.test(b)||m.test(b))},U=(0,a.Z)({backgroundColor:b&&!V()?b:void 0},f),w=V(),j=X("tag",o),R=l()(j,(O={},(0,n.Z)(O,"".concat(j,"-").concat(b),w),(0,n.Z)(O,"".concat(j,"-has-color"),b&&!w),(0,n.Z)(O,"".concat(j,"-hidden"),!k),(0,n.Z)(O,"".concat(j,"-rtl"),"rtl"===y),O),d),C=function(e){e.stopPropagation(),null==g||g(e),!e.defaultPrevented&&("visible"in Z||_(!1))},G="onClick"in Z||$&&"a"===$.type,W=(0,s.Z)(Z,["visible"]),Y=S||null,A=Y?c.createElement(c.Fragment,null,Y,c.createElement("span",null,$)):$,E=c.createElement("span",(0,a.Z)({},W,{ref:t,className:R,style:U}),A,void 0!==T&&T?P?c.createElement("span",{className:"".concat(j,"-close-icon"),onClick:C},P):c.createElement(r.Z,{className:"".concat(j,"-close-icon"),onClick:C}):null);return G?c.createElement(u.Z,null,E):E});$.CheckableTag=function(e){var t,O=e.prefixCls,i=e.className,r=e.checked,o=e.onChange,s=e.onClick,d=f(e,["prefixCls","className","checked","onChange","onClick"]),u=(0,c.useContext(p.E_).getPrefixCls)("tag",O),Q=l()(u,(t={},(0,n.Z)(t,"".concat(u,"-checkable"),!0),(0,n.Z)(t,"".concat(u,"-checkable-checked"),r),t),i);return c.createElement("span",(0,a.Z)({},d,{className:Q,onClick:function(e){null==o||o(!r),null==s||s(e)}}))};var S=$},77916:function(e,t,O){"use strict";O.d(t,{Z:function(){return eP}});var n=O(87462),a=O(67294),i=O(4942),r=O(74165),o=O(71002),l=O(74902),s=O(97685),c=O(94184),p=O.n(c),d=O(15671),u=O(43144),f=O(60136),Q=O(33643),h=O(45987),m=O(15861),$=O(64217);function S(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(O){return t}}function b(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var O=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var n=e.data[t];if(Array.isArray(n)){n.forEach(function(e){O.append("".concat(t,"[]"),e)});return}O.append(t,n)}),e.file instanceof Blob?O.append(e.filename,e.file,e.file.name):O.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var O;return e.onError(((O=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,O.method=e.method,O.url=e.action,O),S(t))}return e.onSuccess(S(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return null!==n["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(e){null!==n[e]&&t.setRequestHeader(e,n[e])}),t.send(O),{abort:function(){t.abort()}}}var g=+new Date,P=0;function T(){return"rc-upload-".concat(g,"-").concat(++P)}var Z=O(80334),x=function(e,t){if(e&&t){var O=Array.isArray(t)?t:t.split(","),n=e.name||"",a=e.type||"",i=a.replace(/\/.*$/,"");return O.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var O=n.toLowerCase(),r=t.toLowerCase(),o=[r];return(".jpg"===r||".jpeg"===r)&&(o=[".jpg",".jpeg"]),o.some(function(e){return O.endsWith(e)})}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):a===t||!!/^\w+$/.test(t)&&((0,Z.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0},X=function(e,t,O){var n=function e(n,a){if(n.path=a||"",n.isFile)n.file(function(e){O(e)&&(n.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=n.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))});else if(n.isDirectory){var i,r,o;i=function(t){t.forEach(function(t){e(t,"".concat(a).concat(n.name,"/"))})},r=n.createReader(),o=[],function e(){r.readEntries(function(t){var O=Array.prototype.slice.apply(t);o=o.concat(O),O.length?e():i(o)})}()}};e.forEach(function(e){n(e.webkitGetAsEntry())})},y=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],q=function(e){(0,f.Z)(O,e);var t=(0,Q.Z)(O);function O(){(0,d.Z)(this,O);for(var e,n,a=arguments.length,i=Array(a),s=0;s0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),O=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(O)||[""])[0]},ea=function(e){return 0===e.indexOf("image/")},ei=function(e){if(e.type&&!e.thumbUrl)return ea(e.type);var t=e.thumbUrl||e.url||"",O=en(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(O))||!/^data:/.test(t)&&!O};function er(e){return new Promise(function(t){if(!e.type||!ea(e.type)){t("");return}var O=document.createElement("canvas");O.width=200,O.height=200,O.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(O);var n=O.getContext("2d"),a=new Image;if(a.onload=function(){var e=a.width,i=a.height,r=200,o=200,l=0,s=0;e>i?s=-((o=i*(200/e))-r)/2:l=-((r=e*(200/i))-o)/2,n.drawImage(a,l,s,r,o);var c=O.toDataURL();document.body.removeChild(O),t(c)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){var i=new FileReader;i.addEventListener("load",function(){i.result&&(a.src=i.result)}),i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var eo=O(48689),el={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},es=function(e,t){return a.createElement(W.Z,(0,C.Z)((0,C.Z)({},e),{},{ref:t,icon:el}))};es.displayName="DownloadOutlined";var ec=a.forwardRef(es),ep=O(99611),ed=O(97910),eu=O(94199),ef=a.forwardRef(function(e,t){var O,r=e.prefixCls,o=e.className,l=e.style,c=e.locale,d=e.listType,u=e.file,f=e.items,Q=e.progress,h=e.iconRender,m=e.actionIconRender,$=e.itemRender,S=e.isImgUrl,b=e.showPreviewIcon,g=e.showRemoveIcon,P=e.showDownloadIcon,T=e.previewIcon,Z=e.removeIcon,x=e.downloadIcon,X=e.onPreview,y=e.onDownload,q=e.onClose,v=u.status,k=a.useState(v),_=(0,s.Z)(k,2),V=_[0],w=_[1];a.useEffect(function(){"removed"!==v&&w(v)},[v]);var j=a.useState(!1),R=(0,s.Z)(j,2),C=R[0],G=R[1],W=a.useRef(null);a.useEffect(function(){return W.current=setTimeout(function(){G(!0)},300),function(){W.current&&clearTimeout(W.current)}},[]);var Y=h(u),A=a.createElement("div",{className:"".concat(r,"-text-icon")},Y);if("picture"===d||"picture-card"===d){if("uploading"!==V&&(u.thumbUrl||u.url)){var E,L=(null==S?void 0:S(u))?a.createElement("img",{src:u.thumbUrl||u.url,alt:u.name,className:"".concat(r,"-list-item-image"),crossOrigin:u.crossOrigin}):Y,z=p()((E={},(0,i.Z)(E,"".concat(r,"-list-item-thumbnail"),!0),(0,i.Z)(E,"".concat(r,"-list-item-file"),S&&!S(u)),E));A=a.createElement("a",{className:z,onClick:function(e){return X(u,e)},href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},L)}else{var I,J,B,M,N=p()((M={},(0,i.Z)(M,"".concat(r,"-list-item-thumbnail"),!0),(0,i.Z)(M,"".concat(r,"-list-item-file"),"uploading"!==V),M));A=a.createElement("div",{className:N},Y)}}var H=p()((I={},(0,i.Z)(I,"".concat(r,"-list-item"),!0),(0,i.Z)(I,"".concat(r,"-list-item-").concat(V),!0),(0,i.Z)(I,"".concat(r,"-list-item-list-type-").concat(d),!0),I)),F="string"==typeof u.linkProps?JSON.parse(u.linkProps):u.linkProps,K=g?m(("function"==typeof Z?Z(u):Z)||a.createElement(eo.Z,null),function(){return q(u)},r,c.removeFile):null,ee=P&&"done"===V?m(("function"==typeof x?x(u):x)||a.createElement(ec,null),function(){return y(u)},r,c.downloadFile):null,et="picture-card"!==d&&a.createElement("span",{key:"download-delete",className:p()("".concat(r,"-list-item-card-actions"),{picture:"picture"===d})},ee,K),eO=p()("".concat(r,"-list-item-name")),en=u.url?[a.createElement("a",(0,n.Z)({key:"view",target:"_blank",rel:"noopener noreferrer",className:eO,title:u.name},F,{href:u.url,onClick:function(e){return X(u,e)}}),u.name),et]:[a.createElement("span",{key:"view",className:eO,onClick:function(e){return X(u,e)},title:u.name},u.name),et],ea=b?a.createElement("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(e){return X(u,e)},title:c.previewFile},"function"==typeof T?T(u):T||a.createElement(ep.Z,null)):null,ei="picture-card"===d&&"uploading"!==V&&a.createElement("span",{className:"".concat(r,"-list-item-actions")},ea,"done"===V&&ee,K);O=u.response&&"string"==typeof u.response?u.response:(null===(J=u.error)||void 0===J?void 0:J.statusText)||(null===(B=u.error)||void 0===B?void 0:B.message)||c.uploadError;var er=a.createElement("span",{className:"".concat(r,"-span")},A,en),el=(0,a.useContext(U.E_).getPrefixCls)(),es=a.createElement("div",{className:H},a.createElement("div",{className:"".concat(r,"-list-item-info")},er),ei,C&&a.createElement(D.Z,{motionName:"".concat(el,"-fade"),visible:"uploading"===V,motionDeadline:2e3},function(e){var t=e.className,O="percent"in u?a.createElement(ed.Z,(0,n.Z)({},Q,{type:"line",percent:u.percent})):null;return a.createElement("div",{className:p()("".concat(r,"-list-item-progress"),t)},O)})),ef=p()("".concat(r,"-list-").concat(d,"-container"),o),eQ="error"===V?a.createElement(eu.Z,{title:O,getPopupContainer:function(e){return e.parentNode}},es):es;return a.createElement("div",{className:ef,style:l,ref:t},$?$(eQ,u,f,{download:y.bind(null,u),preview:X.bind(null,u),remove:q.bind(null,u)}):eQ)}),eQ=(0,n.Z)({},F.ZP);delete eQ.onAppearEnd,delete eQ.onEnterEnd,delete eQ.onLeaveEnd;var eh=a.forwardRef(function(e,t){var O,r=e.listType,o=void 0===r?"text":r,c=e.previewFile,d=void 0===c?er:c,u=e.onPreview,f=e.onDownload,Q=e.onRemove,h=e.locale,m=e.iconRender,$=e.isImageUrl,S=void 0===$?ei:$,b=e.prefixCls,g=e.items,P=void 0===g?[]:g,T=e.showPreviewIcon,Z=void 0===T||T,x=e.showRemoveIcon,X=void 0===x||x,y=e.showDownloadIcon,q=void 0!==y&&y,v=e.removeIcon,k=e.previewIcon,_=e.downloadIcon,V=e.progress,w=void 0===V?{strokeWidth:2,showInfo:!1}:V,j=e.appendAction,R=e.appendActionVisible,C=e.itemRender,G=(0,H.Z)(),W=a.useState(!1),Y=(0,s.Z)(W,2),L=Y[0],z=Y[1];a.useEffect(function(){("picture"===o||"picture-card"===o)&&(P||[]).forEach(function(e){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",d&&d(e.originFileObj).then(function(t){e.thumbUrl=t||"",G()}))})},[o,P,d]),a.useEffect(function(){z(!0)},[]);var J=function(e,t){if(u)return null==t||t.preventDefault(),u(e)},B=function(e){"function"==typeof f?f(e):e.url&&window.open(e.url)},F=function(e){null==Q||Q(e)},ee=function(e){if(m)return m(e,o);var t="uploading"===e.status,O=S&&S(e)?a.createElement(M,null):a.createElement(A,null),n=t?a.createElement(E.Z,null):a.createElement(I,null);return"picture"===o?n=t?a.createElement(E.Z,null):O:"picture-card"===o&&(n=t?h.uploading:O),n},et=function(e,t,O,i){var r={type:"text",size:"small",title:i,onClick:function(O){t(),(0,K.l$)(e)&&e.props.onClick&&e.props.onClick(O)},className:"".concat(O,"-list-item-card-actions-btn")};if((0,K.l$)(e)){var o=(0,K.Tm)(e,(0,n.Z)((0,n.Z)({},e.props),{onClick:function(){}}));return a.createElement(N.Z,(0,n.Z)({},r,{icon:o}))}return a.createElement(N.Z,(0,n.Z)({},r),a.createElement("span",null,e))};a.useImperativeHandle(t,function(){return{handlePreview:J,handleDownload:B}});var eO=a.useContext(U.E_),en=eO.getPrefixCls,ea=eO.direction,eo=en("upload",b),el=p()((O={},(0,i.Z)(O,"".concat(eo,"-list"),!0),(0,i.Z)(O,"".concat(eo,"-list-").concat(o),!0),(0,i.Z)(O,"".concat(eo,"-list-rtl"),"rtl"===ea),O)),es=(0,l.Z)(P.map(function(e){return{key:e.uid,file:e}})),ec={motionDeadline:2e3,motionName:"".concat(eo,"-").concat("picture-card"===o?"animate-inline":"animate"),keys:es,motionAppear:L};return"picture-card"!==o&&(ec=(0,n.Z)((0,n.Z)({},eQ),ec)),a.createElement("div",{className:el},a.createElement(D.V,(0,n.Z)({},ec,{component:!1}),function(e){var t=e.key,O=e.file,n=e.className,i=e.style;return a.createElement(ef,{key:t,locale:h,prefixCls:eo,className:n,style:i,file:O,items:P,progress:w,listType:o,isImgUrl:S,showPreviewIcon:Z,showRemoveIcon:X,showDownloadIcon:q,removeIcon:v,previewIcon:k,downloadIcon:_,iconRender:ee,actionIconRender:et,itemRender:C,onPreview:J,onDownload:B,onClose:F})}),j&&a.createElement(D.Z,(0,n.Z)({},ec,{visible:void 0===R||R,forceRender:!0}),function(e){var t=e.className,O=e.style;return(0,K.Tm)(j,function(e){return{className:p()(e.className,t),style:(0,n.Z)((0,n.Z)((0,n.Z)({},O),{pointerEvents:t?"none":void 0}),e.style)}})}))}),em="__LIST_IGNORE_".concat(Date.now(),"__"),e$=a.forwardRef(function(e,t){var O=e.fileList,c=e.defaultFileList,d=e.onRemove,u=e.showUploadList,f=void 0===u||u,Q=e.listType,h=void 0===Q?"text":Q,m=e.onPreview,$=e.onDownload,S=e.onChange,b=e.onDrop,g=e.previewFile,P=e.disabled,T=e.locale,Z=e.iconRender,x=e.isImageUrl,X=e.progress,y=e.prefixCls,q=e.className,v=e.type,C=e.children,G=e.style,W=e.itemRender,Y=e.maxCount,A=e.data,E=e.multiple,L=e.action,z=e.accept,I=e.supportServerRender,J=a.useContext(w.Z),B=null!=P?P:J,M=(0,_.Z)(c||[],{value:O,postState:function(e){return null!=e?e:[]}}),D=(0,s.Z)(M,2),N=D[0],H=D[1],F=a.useState("drop"),K=(0,s.Z)(F,2),en=K[0],ea=K[1],ei=a.useRef(null);a.useMemo(function(){var e=Date.now();(O||[]).forEach(function(t,O){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(O,"__"))})},[O]);var er=function(e,t,O){var n=(0,l.Z)(t);1===Y?n=n.slice(-1):Y&&(n=n.slice(0,Y)),(0,V.flushSync)(function(){H(n)});var a={file:e,fileList:n};O&&(a.event=O),null==S||S(a)},eo=function(e){var t=e.filter(function(e){return!e.file[em]});if(t.length){var O=t.map(function(e){return ee(e.file)}),n=(0,l.Z)(N);O.forEach(function(e){n=et(e,n)}),O.forEach(function(e,O){var a=e;if(t[O].parsedFile)e.status="uploading";else{var i,r=e.originFileObj;try{i=new File([r],r.name,{type:r.type})}catch(o){(i=new Blob([r],{type:r.type})).name=r.name,i.lastModifiedDate=new Date,i.lastModified=new Date().getTime()}i.uid=e.uid,a=i}er(a,n)})}},el=function(e,t,O){try{"string"==typeof e&&(e=JSON.parse(e))}catch(n){}if(eO(t,N)){var a=ee(t);a.status="done",a.percent=100,a.response=e,a.xhr=O;var i=et(a,N);er(a,i)}},es=function(e,t){if(eO(t,N)){var O=ee(t);O.status="uploading",O.percent=e.percent;var n=et(O,N);er(O,n,e)}},ec=function(e,t,O){if(eO(O,N)){var n=ee(O);n.error=e,n.response=t,n.status="error";var a=et(n,N);er(n,a)}},ep=function(e){var t;Promise.resolve("function"==typeof d?d(e):d).then(function(O){if(!1!==O){var a,i,r,o=(a=void 0!==e.uid?"uid":"name",(i=N.filter(function(t){return t[a]!==e[a]})).length===N.length?null:i);o&&(t=(0,n.Z)((0,n.Z)({},e),{status:"removed"}),null==N||N.forEach(function(e){var O=void 0!==t.uid?"uid":"name";e[O]!==t[O]||Object.isFrozen(e)||(e.status="removed")}),null===(r=ei.current)||void 0===r||r.abort(t),er(t,o))}})},ed=function(e){ea(e.type),"drop"===e.type&&(null==b||b(e))};a.useImperativeHandle(t,function(){return{onBatchStart:eo,onSuccess:el,onProgress:es,onError:ec,fileList:N,upload:ei.current}});var eu=a.useContext(U.E_),ef=eu.getPrefixCls,eQ=eu.direction,e$=ef("upload",y),eS=(0,n.Z)((0,n.Z)({onBatchStart:eo,onError:ec,onProgress:es,onSuccess:el},e),{data:void 0===A?{}:A,multiple:void 0!==E&&E,action:void 0===L?"":L,accept:void 0===z?"":z,supportServerRender:void 0===I||I,prefixCls:e$,disabled:B,beforeUpload:function(t,O){var n,a,i,l;return n=void 0,a=void 0,i=void 0,l=(0,r.Z)().mark(function n(){var a,i,l,s;return(0,r.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(a=e.beforeUpload,i=e.transformFile,l=t,!a){n.next=13;break}return n.next=5,a(t,O);case 5:if(!1!==(s=n.sent)){n.next=8;break}return n.abrupt("return",!1);case 8:if(delete t[em],s!==em){n.next=12;break}return Object.defineProperty(t,em,{value:!0,configurable:!0}),n.abrupt("return",!1);case 12:"object"===(0,o.Z)(s)&&s&&(l=s);case 13:if(!i){n.next=17;break}return n.next=16,i(l);case 16:l=n.sent;case 17:return n.abrupt("return",l);case 18:case"end":return n.stop()}},n)}),new(i||(i=Promise))(function(e,t){function O(e){try{o(l.next(e))}catch(O){t(O)}}function r(e){try{o(l.throw(e))}catch(O){t(O)}}function o(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(O,r)}o((l=l.apply(n,a||[])).next())})},onChange:void 0});delete eS.className,delete eS.style,(!C||B)&&delete eS.id;var eb=function(e,t){return f?a.createElement(j.Z,{componentName:"Upload",defaultLocale:R.Z.Upload},function(O){var i="boolean"==typeof f?{}:f,r=i.showRemoveIcon,o=i.showPreviewIcon,l=i.showDownloadIcon,s=i.removeIcon,c=i.previewIcon,p=i.downloadIcon;return a.createElement(eh,{prefixCls:e$,listType:h,items:N,previewFile:g,onPreview:m,onDownload:$,onRemove:ep,showRemoveIcon:!B&&r,showPreviewIcon:o,showDownloadIcon:l,removeIcon:s,previewIcon:c,downloadIcon:p,iconRender:Z,locale:(0,n.Z)((0,n.Z)({},O),T),isImageUrl:x,progress:X,appendAction:e,appendActionVisible:t,itemRender:W})}):e};if("drag"===(void 0===v?"select":v)){var eg,eP,eT=p()(e$,(eP={},(0,i.Z)(eP,"".concat(e$,"-drag"),!0),(0,i.Z)(eP,"".concat(e$,"-drag-uploading"),N.some(function(e){return"uploading"===e.status})),(0,i.Z)(eP,"".concat(e$,"-drag-hover"),"dragover"===en),(0,i.Z)(eP,"".concat(e$,"-disabled"),B),(0,i.Z)(eP,"".concat(e$,"-rtl"),"rtl"===eQ),eP),q);return a.createElement("span",null,a.createElement("div",{className:eT,onDrop:ed,onDragOver:ed,onDragLeave:ed,style:G},a.createElement(k,(0,n.Z)({},eS,{ref:ei,className:"".concat(e$,"-btn")}),a.createElement("div",{className:"".concat(e$,"-drag-container")},C))),eb())}var eZ=p()(e$,(eg={},(0,i.Z)(eg,"".concat(e$,"-select"),!0),(0,i.Z)(eg,"".concat(e$,"-select-").concat(h),!0),(0,i.Z)(eg,"".concat(e$,"-disabled"),B),(0,i.Z)(eg,"".concat(e$,"-rtl"),"rtl"===eQ),eg)),ex=a.createElement("div",{className:eZ,style:C?void 0:{display:"none"}},a.createElement(k,(0,n.Z)({},eS,{ref:ei})));return"picture-card"===h?a.createElement("span",{className:p()("".concat(e$,"-picture-card-wrapper"),q)},eb(ex,!!C)):a.createElement("span",{className:q},ex,eb())}),eS=function(e,t){var O={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(O[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(O[n[a]]=e[n[a]]);return O},eb=a.forwardRef(function(e,t){var O=e.style,i=e.height,r=eS(e,["style","height"]);return a.createElement(e$,(0,n.Z)({ref:t},r,{type:"drag",style:(0,n.Z)((0,n.Z)({},O),{height:i})}))}),eg=e$;eg.Dragger=eb,eg.LIST_IGNORE=em;var eP=eg},27561:function(e,t,O){var n=O(67990),a=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},67990:function(e){var t=/\s/;e.exports=function(e){for(var O=e.length;O--&&t.test(e.charAt(O)););return O}},23279:function(e,t,O){var n=O(13218),a=O(7771),i=O(14841),r=Math.max,o=Math.min;e.exports=function(e,t,O){var l,s,c,p,d,u,f=0,Q=!1,h=!1,m=!0;if("function"!=typeof e)throw TypeError("Expected a function");function $(t){var O=l,n=s;return l=s=void 0,f=t,p=e.apply(n,O)}function S(e){var O=e-u,n=e-f;return void 0===u||O>=t||O<0||h&&n>=c}function b(){var e,O,n,i=a();if(S(i))return g(i);d=setTimeout(b,(e=i-u,O=i-f,n=t-e,h?o(n,c-O):n))}function g(e){return(d=void 0,m&&l)?$(e):(l=s=void 0,p)}function P(){var e,O=a(),n=S(O);if(l=arguments,s=this,u=O,n){if(void 0===d)return f=e=u,d=setTimeout(b,t),Q?$(e):p;if(h)return clearTimeout(d),d=setTimeout(b,t),$(u)}return void 0===d&&(d=setTimeout(b,t)),p}return t=i(t)||0,n(O)&&(Q=!!O.leading,c=(h="maxWait"in O)?r(i(O.maxWait)||0,t):c,m="trailing"in O?!!O.trailing:m),P.cancel=function(){void 0!==d&&clearTimeout(d),f=0,l=u=s=d=void 0},P.flush=function(){return void 0===d?p:g(a())},P}},33448:function(e,t,O){var n=O(44239),a=O(37005);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==n(e)}},7771:function(e,t,O){var n=O(55639);e.exports=function(){return n.Date.now()}},14841:function(e,t,O){var n=O(27561),a=O(13218),i=O(33448),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return r;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var O=l.test(e);return O||s.test(e)?c(e.slice(2),O?2:8):o.test(e)?r:+e}},13804:function(e,t,O){"use strict";O.r(t),O.d(t,{autoCloseTags:function(){return en},html:function(){return eO},htmlCompletionSource:function(){return H},htmlCompletionSourceWith:function(){return F},htmlLanguage:function(){return et}});var n=O(53105),a=O(35524),i=O(41113);let r={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},o={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},l={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function s(e){return 9==e||10==e||13==e||32==e}let c=null,p=null,d=0;function u(e,t){var O;let n=e.pos+t;if(d==n&&p==e)return c;let a=e.peek(t);for(;s(a);)a=e.peek(++t);let i="";for(;45==(O=a)||46==O||58==O||O>=65&&O<=90||95==O||O>=97&&O<=122||O>=161;)i+=String.fromCharCode(a),a=e.peek(++t);return p=e,d=n,c=i?i.toLowerCase():a==f||a==Q?void 0:null}let f=63,Q=33;function h(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let O=0;Om.indexOf(t)>-1?new h(u(n,1)||"",e):e,reduce:(e,t)=>18==t&&e?e.parent:e,reuse(e,t,O,n){let a=t.type.id;return 4==a||35==a?new h(u(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),S=new n.Jq((e,t)=>{if(60!=e.next){e.next<0&&t.context&&e.acceptToken(57);return}e.advance();let O=47==e.next;O&&e.advance();let n=u(e,0);if(void 0===n)return;if(!n)return e.acceptToken(O?12:4);let a=t.context?t.context.name:null;if(O){if(n==a)return e.acceptToken(9);if(a&&o[a])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(10);for(let i=t.context;i;i=i.parent)if(i.name==n)return;e.acceptToken(11)}else{if("script"==n)return e.acceptToken(5);if("style"==n)return e.acceptToken(6);if("textarea"==n)return e.acceptToken(7);if(r.hasOwnProperty(n))return e.acceptToken(8);a&&l[a]&&l[a][n]?e.acceptToken(57,-1):e.acceptToken(4)}},{contextual:!0}),b=new n.Jq(e=>{for(let t=0,O=0;;O++){if(e.next<0){O&&e.acceptToken(58);break}if(45==e.next)t++;else if(62==e.next&&t>=2){O>3&&e.acceptToken(58,-2);break}else t=0;e.advance()}});function g(e,t,O){let a=2+e.length;return new n.Jq(n=>{for(let i=0,r=0,o=0;;o++){if(n.next<0){o&&n.acceptToken(t);break}if(0==i&&60==n.next||1==i&&47==n.next||i>=2&&ir?n.acceptToken(t,-r):n.acceptToken(O,-(r-2));break}else if((10==n.next||13==n.next)&&o){n.acceptToken(t,1);break}else i=r=0;n.advance()}})}let P=g("script",54,1),T=g("style",55,2),Z=g("textarea",56,3),x=(0,a.Gv)({"Text RawText":a.pJ.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":a.pJ.angleBracket,TagName:a.pJ.tagName,"MismatchedCloseTag/TagName":[a.pJ.tagName,a.pJ.invalid],AttributeName:a.pJ.attributeName,"AttributeValue UnquotedAttributeValue":a.pJ.attributeValue,Is:a.pJ.definitionOperator,"EntityReference CharacterReference":a.pJ.character,Comment:a.pJ.blockComment,ProcessingInst:a.pJ.processingInstruction,DoctypeDecl:a.pJ.documentMeta}),X=n.WQ.deserialize({version:14,states:",xOVOxOOO!WQ!bO'#CoO!]Q!bO'#CyO!bQ!bO'#C|O!gQ!bO'#DPO!lQ!bO'#DRO!qOXO'#CnO!|OYO'#CnO#XO[O'#CnO$eOxO'#CnOOOW'#Cn'#CnO$lO!rO'#DTO$tQ!bO'#DVO$yQ!bO'#DWOOOW'#Dk'#DkOOOW'#DY'#DYQVOxOOO%OQ#tO,59ZO%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dO![sO!euO~OdvO~OdwO~OfyOj|O~OfyOj!OO~OfyOj!QO~OfyOj!SOv!TO~OfyOj!TO~O!WfOPkX!ZkX~OP!WO!Z!XO~O!XiOQnX!ZnX~OQ!ZO!Z!XO~O!YlORqX!ZqX~OR!]O!Z!XO~O!Z!XO~P#dOd!_O~O![sO!e!aO~Oj!bO~Oj!cO~Og!dOfeXjeXveX~OfyOj!fO~OfyOj!gO~OfyOj!hO~OfyOj!iOv!jO~OfyOj!jO~Od!kO~Od!lO~Od!mO~Oj!nO~Oi!qO!`!oO!b!pO~Oj!rO~Oj!sO~Oj!tO~O_!uO`!uOa!uO!`!wO!a!uO~O_!xO`!xOa!xO!b!wO!c!xO~O_!uO`!uOa!uO!`!{O!a!uO~O_!xO`!xOa!xO!b!{O!c!xO~Ov~vj`!dx{_a_~",goto:"%p!`PPPPPPPPPPPPPPPPPP!a!gP!mPP!yPP!|#P#S#Y#]#`#f#i#l#r#xP!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag SelfClosingEndTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:$,nodeProps:[["closedBy",-10,1,2,3,5,6,7,8,9,10,11,"EndTag",4,"EndTag Self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c!]!^/^!^!_=p!_!a8q!a#S:c#S#T=p#T#s:c#s$f7d$f;'S:c;'S;=`?}<%l?Ah:c?Ah?BY7d?BY?Mn:c?MnO7d!Z7ibiWOX7dXZ8qZ[7d[^8q^p7dqr7drs8qst+Ptw7dwx8qx!]7d!]!^9f!^!a8q!a#S7d#S#T8q#T;'S7d;'S;=`:]<%lO7d!R8tVOp8qqs8qt!]8q!]!^9Z!^;'S8q;'S;=`9`<%lO8q!R9`O_!R!R9cP;=`<%l8q!Z9mYiW_!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z:`P;=`<%l7d!_:jjfSiWOX7dXZ8qZ[7d[^8q^p7dqr:crs8qst/^tw:cwx8qx!P:c!P!Q7d!Q!]:c!]!^<[!^!_=p!_!a8q!a#S:c#S#T=p#T#s:c#s$f7d$f;'S:c;'S;=`?}<%l?Ah:c?Ah?BY7d?BY?Mn:c?MnO7d!_{let i=e.type.id;if(27==i)return y(e,t,O);if(30==i)return y(e,t,n);if(33==i)return y(e,t,a);if(l&&21==i){let r=e.node,o;if(o=r.firstChild){let s=l[t.read(o.from,o.to)];if(s)for(let c of s){if(c.tagName){if(!tagName){let p=r.parent.getChild(20);tagName=p?t.read(p.from,p.to):" "}if(attrTagName!=tagName)continue}let d=r.lastChild;if(24==d.type.id)return{parser:c.parser,overlay:[{from:d.from+1,to:d.to-1}]};if(25==d.type.id)return{parser:c.parser,overlay:[{from:d.from,to:d.to}]}}}}return null})}var v=O(61426),k=O(58037),_=O(47421),V=O(78120),U=O(59119);let w=["_blank","_self","_top","_parent"],j=["ascii","utf-8","utf-16","latin1","latin1"],R=["get","post","put","delete"],C=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],G=["true","false"],W={},Y={a:{attrs:{href:null,ping:null,type:null,media:null,target:w,hreflang:null}},abbr:W,address:W,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:W,aside:W,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:W,base:{attrs:{href:null,target:w}},bdi:W,bdo:W,blockquote:{attrs:{cite:null}},body:W,br:W,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:C,formmethod:R,formnovalidate:["novalidate"],formtarget:w,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:W,center:W,cite:W,code:W,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:W,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:W,div:W,dl:W,dt:W,em:W,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:W,figure:W,footer:W,form:{attrs:{action:null,name:null,"accept-charset":j,autocomplete:["on","off"],enctype:C,method:R,novalidate:["novalidate"],target:w}},h1:W,h2:W,h3:W,h4:W,h5:W,h6:W,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:W,hgroup:W,hr:W,html:{attrs:{manifest:null}},i:W,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:C,formmethod:R,formnovalidate:["novalidate"],formtarget:w,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:W,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:W,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:W,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:j,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:W,noscript:W,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:W,param:{attrs:{name:null,value:null}},pre:W,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:W,rt:W,ruby:W,samp:W,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:j}},section:W,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:W,source:{attrs:{src:null,type:null,media:null}},span:W,strong:W,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:W,summary:W,sup:W,table:W,tbody:W,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:W,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:W,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:W,time:{attrs:{datetime:null}},title:W,tr:W,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:W,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:W},A={accesskey:null,class:null,contenteditable:G,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:G,autocorrect:G,autocapitalize:G,style:null,tabindex:null,title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":G,"aria-autocomplete":["inline","list","both","none"],"aria-busy":G,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":G,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":G,"aria-hidden":G,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":G,"aria-multiselectable":G,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":G,"aria-relevant":null,"aria-required":G,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null};class E{constructor(e,t){this.tags=Object.assign(Object.assign({},Y),e),this.globalAttrs=Object.assign(Object.assign({},A),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function L(e,t,O=e.length){if(!t)return"";let n=t.firstChild,a=n&&n.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,O)):""}function z(e,t=!1){for(let O=e.parent;O;O=O.parent)if("Element"==O.name){if(!t)return O;t=!1}return null}function I(e,t,O){let n=O.tags[L(e,z(t,!0))];return(null==n?void 0:n.children)||O.allTags}function J(e,t){let O=[];for(let n=t;n=z(n);){let a=L(e,n);if(a&&"CloseTag"==n.lastChild.name)break;a&&0>O.indexOf(a)&&("EndTag"==t.name||t.from>=n.firstChild.to)&&O.push(a)}return O}E.default=new E;let B=/^[:\-\.\w\u00b7-\uffff]*$/;function M(e,t,O,n,a){let i=/\s*>/.test(e.sliceDoc(a,a+5))?"":">";return{from:n,to:a,options:I(e.doc,O,t).map(e=>({label:e,type:"type"})).concat(J(e.doc,O).map((e,t)=>({label:"/"+e,apply:"/"+e+i,type:"type",boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function D(e,t,O,n){let a=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:O,to:n,options:J(e.doc,t).map((e,t)=>({label:e,apply:e+a,type:"type",boost:99-t})),validFor:B}}function N(e,t){let{state:O,pos:n}=t,a=(0,U.qz)(O).resolveInner(n),i=a.resolve(n,-1);for(let r=n,o;a==i&&(o=i.childBefore(r));){let l=o.lastChild;if(!l||!l.type.isError||l.from({label:e,type:"property"})),validFor:B}}return"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,t,O,n,a){var i;let r=null===(i=O.parent)||void 0===i?void 0:i.getChild("AttributeName"),o=[],l;if(r){let s=e.sliceDoc(r.from,r.to),c=t.globalAttrs[s];if(!c){let p=z(O),d=p?t.tags[L(e.doc,p)]:null;c=(null==d?void 0:d.attrs)&&d.attrs[s]}if(c){let u=e.sliceDoc(n,a).toLowerCase(),f='"',Q='"';for(let h of(/^['"]/.test(u)?(l='"'==u[0]?/^[^"]*$/:/^[^']*$/,f="",Q=e.sliceDoc(a,a+1)==u[0]?"":u[0],u=u.slice(1),n++):l=/^[^\s<>='"]*$/,c))o.push({label:h,apply:f+h+Q,type:"constant"})}}return{from:n,to:a,options:o,validFor:l}}(O,e,i,"Is"==i.name?n:i.from,n):t.explicit&&("Element"==a.name||"Text"==a.name||"Document"==a.name)?function(e,t,O,n){let a=[],i=0;for(let r of I(e.doc,O,t))a.push({label:"<"+r,type:"type"});for(let o of J(e.doc,O))a.push({label:"",type:"type",boost:99-i++});return{from:n,to:n,options:a,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(O,e,i,n):null}function H(e){return N(E.default,e)}function F(e){let{extraTags:t,extraGlobalAttributes:O}=e,n=O||t?new E(t,O):E.default;return e=>N(n,e)}let K=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:k.typescriptLanguage.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:k.jsxLanguage.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:k.tsxLanguage.parser},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:k.javascriptLanguage.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:v.cssLanguage.parser}],ee=[{name:"style",parser:v.cssLanguage.parser.configure({top:"Styles"})}].concat("beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>({name:"on"+e,parser:k.javascriptLanguage.parser}))),et=U.qp.define({name:"html",parser:X.configure({props:[U.uj.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}});function eO(e={}){let t="",O;!1===e.matchClosingTags&&(t="noMatch"),!0===e.selfClosingTags&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(O=q((e.nestedLanguages||[]).concat(K),(e.nestedAttributes||[]).concat(ee)));let n=O||t?et.configure({dialect:t,wrap:O}):et;return new U.ri(n,[et.data.of({autocomplete:F(e)}),!1!==e.autoCloseTags?en:[],(0,k.javascript)().support,(0,v.css)().support])}let en=_.tk.inputHandler.of((e,t,O,n)=>{if(e.composing||e.state.readOnly||t!=O||">"!=n&&"/"!=n||!et.isActiveAt(e.state,t,-1))return!1;let{state:a}=e,i=a.changeByRange(t=>{var O,i,r;let{head:o}=t,l=(0,U.qz)(a).resolveInner(o,-1),s;if(("TagName"==l.name||"StartTag"==l.name)&&(l=l.parent),">"==n&&"OpenTag"==l.name){if((null===(i=null===(O=l.parent)||void 0===O?void 0:O.lastChild)||void 0===i?void 0:i.name)!="CloseTag"&&(s=L(a.doc,l.parent,o))){let c=">"===e.state.doc.sliceString(o,o+1),p=`${c?"":">"}`;return{range:V.jT.cursor(o+1),changes:{from:o+(c?1:0),insert:p}}}}else if("/"==n&&"OpenTag"==l.name){let d=l.parent,u=null==d?void 0:d.parent;if(d.from==o-1&&(null===(r=u.lastChild)||void 0===r?void 0:r.name)!="CloseTag"&&(s=L(a.doc,u,o))){let f=">"===e.state.doc.sliceString(o,o+1),Q=`/${s}${f?"":">"}`,h=o+Q.length+(f?1:0);return{range:V.jT.cursor(h),changes:{from:o,insert:Q}}}}return{range:t}});return!i.changes.empty&&(e.dispatch(i,{userEvent:"input.type",scrollIntoView:!0}),!0)})},58037:function(e,t,O){"use strict";O.r(t),O.d(t,{autoCloseTags:function(){return E},completionPath:function(){return V},esLint:function(){return L},javascript:function(){return W},javascriptLanguage:function(){return w},jsxLanguage:function(){return R},localCompletionSource:function(){return k},scopeCompletionSource:function(){return U},snippets:function(){return P},tsxLanguage:function(){return C},typescriptLanguage:function(){return j}});var n=O(53105),a=O(35524);let i=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],r=new n.IK({start:!1,shift:(e,t)=>5==t||6==t||299==t?e:300==t,strict:!1}),o=new n.Jq((e,t)=>{let{next:O}=e;(125==O||-1==O||t.context)&&t.canShift(297)&&e.acceptToken(297)},{contextual:!0,fallback:!0}),l=new n.Jq((e,t)=>{let{next:O}=e,n;!(i.indexOf(O)>-1)&&(47!=O||47!=(n=e.peek(1))&&42!=n)&&125!=O&&59!=O&&-1!=O&&!t.context&&t.canShift(294)&&e.acceptToken(294)},{contextual:!0}),s=new n.Jq((e,t)=>{let{next:O}=e;if((43==O||45==O)&&(e.advance(),O==e.next)){e.advance();let n=!t.context&&t.canShift(2);e.acceptToken(n?2:3)}},{contextual:!0}),c=new n.Jq(e=>{for(let t=!1,O=0;;O++){let{next:n}=e;if(n<0){O&&e.acceptToken(295);break}if(96==n){O?e.acceptToken(295):e.acceptToken(296,1);break}if(123==n&&t){1==O?e.acceptToken(4,1):e.acceptToken(295,-1);break}if(10==n&&O){e.advance(),e.acceptToken(295);break}else 92==n&&e.advance();t=36==n,e.advance()}}),p=new n.Jq((e,t)=>{if(101==e.next&&t.dialectEnabled(1)){e.advance();for(let O=0;O<6;O++){if(e.next!="xtends".charCodeAt(O))return;e.advance()}e.next>=57&&e.next<=65||e.next>=48&&e.next<=90||95==e.next||e.next>=97&&e.next<=122||e.next>160||e.acceptToken(1)}}),d=(0,a.Gv)({"get set async static":a.pJ.modifier,"for while do if else switch try catch finally return throw break continue default case":a.pJ.controlKeyword,"in of await yield void typeof delete instanceof":a.pJ.operatorKeyword,"let var const function class extends":a.pJ.definitionKeyword,"import export from":a.pJ.moduleKeyword,"with debugger as new":a.pJ.keyword,TemplateString:a.pJ.special(a.pJ.string),super:a.pJ.atom,BooleanLiteral:a.pJ.bool,this:a.pJ.self,null:a.pJ.null,Star:a.pJ.modifier,VariableName:a.pJ.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":a.pJ.function(a.pJ.variableName),VariableDefinition:a.pJ.definition(a.pJ.variableName),Label:a.pJ.labelName,PropertyName:a.pJ.propertyName,PrivatePropertyName:a.pJ.special(a.pJ.propertyName),"CallExpression/MemberExpression/PropertyName":a.pJ.function(a.pJ.propertyName),"FunctionDeclaration/VariableDefinition":a.pJ.function(a.pJ.definition(a.pJ.variableName)),"ClassDeclaration/VariableDefinition":a.pJ.definition(a.pJ.className),PropertyDefinition:a.pJ.definition(a.pJ.propertyName),PrivatePropertyDefinition:a.pJ.definition(a.pJ.special(a.pJ.propertyName)),UpdateOp:a.pJ.updateOperator,LineComment:a.pJ.lineComment,BlockComment:a.pJ.blockComment,Number:a.pJ.number,String:a.pJ.string,ArithOp:a.pJ.arithmeticOperator,LogicOp:a.pJ.logicOperator,BitOp:a.pJ.bitwiseOperator,CompareOp:a.pJ.compareOperator,RegExp:a.pJ.regexp,Equals:a.pJ.definitionOperator,Arrow:a.pJ.function(a.pJ.punctuation),": Spread":a.pJ.punctuation,"( )":a.pJ.paren,"[ ]":a.pJ.squareBracket,"{ }":a.pJ.brace,"InterpolationStart InterpolationEnd":a.pJ.special(a.pJ.brace),".":a.pJ.derefOperator,", ;":a.pJ.separator,"@":a.pJ.meta,TypeName:a.pJ.typeName,TypeDefinition:a.pJ.definition(a.pJ.typeName),"type enum interface implements namespace module declare":a.pJ.definitionKeyword,"abstract global Privacy readonly override":a.pJ.modifier,"is keyof unique infer":a.pJ.operatorKeyword,JSXAttributeValue:a.pJ.attributeValue,JSXText:a.pJ.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":a.pJ.angleBracket,"JSXIdentifier JSXNameSpacedName":a.pJ.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":a.pJ.attributeName,"JSXBuiltin/JSXIdentifier":a.pJ.standard(a.pJ.tagName)}),u={__proto__:null,export:18,as:23,from:29,default:32,async:37,function:38,this:50,true:58,false:58,null:68,void:72,typeof:76,super:92,new:126,await:143,yield:145,delete:146,class:156,extends:158,public:213,private:213,protected:213,readonly:215,instanceof:234,satisfies:237,in:238,const:240,import:272,keyof:327,unique:331,infer:337,is:373,abstract:393,implements:395,type:397,let:400,var:402,interface:409,enum:413,namespace:419,module:421,declare:425,global:429,for:450,of:459,while:462,with:466,do:470,if:474,else:476,switch:480,case:486,try:492,catch:496,finally:500,return:504,throw:508,break:512,continue:516,debugger:520},f={__proto__:null,async:113,get:115,set:117,public:175,private:175,protected:175,static:177,abstract:179,override:181,readonly:187,accessor:189,new:377},Q={__proto__:null,"<":133},h=n.WQ.deserialize({version:14,states:"$CWO`QdOOO$}QdOOO)WQ(C|O'#ChO)_OWO'#DYO+jQdO'#D_O+zQdO'#DjO$}QdO'#DtO.OQdO'#DzOOQ(C['#ET'#ETO.fQ`O'#EQOOQO'#IW'#IWO.nQ`O'#GgOOQO'#Ee'#EeO.yQ`O'#EdO/OQ`O'#EdO1QQ(C|O'#JQO3nQ(C|O'#JRO4_Q`O'#FSO4dQ!bO'#FkOOQ(C['#F['#F[O4oO#tO'#F[O4}Q&jO'#FrO6bQ`O'#FqOOQ(C['#JR'#JROOQ(CW'#JQ'#JQOOQS'#Jk'#JkO6gQ`O'#H{O6lQ(ChO'#H|OOQS'#Iu'#IuOOQS'#IO'#IOQ`QdOOO$}QdO'#DlO6tQ`O'#G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#c[X#d[X#e[X#f[X#g[X#h[X#i[X#j[X#k[X#m[X#o[X#q[X#r[X#w[X'r[X'}[X(U[X(V[X~O!_dX!e[X!edX'}dX~P'$ZOQ;VOR;VO]gOb=ZOc!`OigOk;VOlgOmgOrgOt;VOv;VO{SO!OgO!PgO!VTO!a;YO!fVO!i;VO!j;VO!k;VO!l;VO!m;VO!p!_O#|!bO$QbO'j'|O'rRO'|WO(Z=XO~O]$SOi$cOk$TOl$SOm$SOr$dOt$eOv;pO{$[O!V$]O!a=aO!f$XO#_;yO#|$iO$i;sO$k;vO$n$jO'j'dO'n$bO'r$UO~O!T;jO!U$ga~O]$SOi$cOk$TOl$SOm$SOr$dOt$eOv;qO{$[O!V$]O!a=bO!f$XO#_;zO#|$iO$i;tO$k;wO$n$jO'j'dO'n$bO'r$UO~O#l(TO~P'*^O!U[X!UdX~P'$ZO!_;^O~O#`;]O~O!_#UO#`;]O~O#T;nO~O#k;cO~O#T;{O!T(SX!U(SX~O#T;nO!T(QX!U(QX~O#`;|O~Oe TypeParamList TypeDefinition ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression await yield delete LogicOp BitOp ParenthesizedExpression ClassExpression class extends ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody MethodDeclaration AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression",maxTerm:345,context:r,nodeProps:[["closedBy",4,"InterpolationEnd",43,"]",53,"}",68,")",140,"JSXSelfCloseEndTag JSXEndTag",156,"JSXEndTag"],["group",-26,8,15,17,60,195,199,202,203,205,208,211,222,224,230,232,234,236,239,245,251,253,255,257,259,261,262,"Statement",-30,12,13,25,28,29,34,44,46,47,49,54,62,70,76,77,99,100,109,110,127,130,132,133,134,135,137,138,158,159,161,"Expression",-23,24,26,30,33,35,37,162,164,166,167,169,170,171,173,174,175,177,178,179,189,191,193,194,"Type",-3,81,92,98,"ClassItem"],["openedBy",31,"InterpolationStart",48,"[",52,"{",67,"(",139,"JSXStartTag",151,"JSXStartTag JS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ound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,b.Gn)("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,b.Gn)("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,b.Gn)("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,b.Gn)("try {\n ${}\n} catch (${error}) {\n ${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,b.Gn)("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,b.Gn)("if (${}) {\n ${}\n} else {\n ${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,b.Gn)("class ${name} {\n constructor(${params}) {\n ${}\n }\n}",{label:"class",detail:"definition",type:"keyword"}),(0,b.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,b.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],T=new g.hr,Z=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function x(e){return(t,O)=>{let n=t.node.getChild("VariableDefinition");return n&&O(n,e),!0}}let X=["FunctionDeclaration"],y={FunctionDeclaration:x("function"),ClassDeclaration:x("class"),ClassExpression:()=>!0,EnumDeclaration:x("constant"),TypeAliasDeclaration:x("type"),NamespaceDeclaration:x("namespace"),VariableDefinition(e,t){e.matchContext(X)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null},q=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,v=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName"];function k(e){let t=(0,m.qz)(e.state).resolveInner(e.pos,-1);if(v.indexOf(t.name)>-1)return null;let O="VariableName"==t.name||t.to-t.from<20&&q.test(e.state.sliceDoc(t.from,t.to));if(!O&&!e.explicit)return null;let n=[];for(let a=t;a;a=a.parent)Z.has(a.name)&&(n=n.concat(function e(t,O){let n=T.get(O);if(n)return n;let a=[],i=!0;function r(e,O){let n=t.sliceString(e.from,e.to);a.push({label:n,type:O})}return O.cursor(g.vj.IncludeAnonymous).iterate(O=>{if(i)i=!1;else if(O.name){let n=y[O.name];if(n&&n(O,r)||Z.has(O.name))return!1}else if(O.to-O.from>8192){for(let o of e(t,O.node))a.push(o);return!1}}),T.set(O,a),a}(e.state.doc,a)));return{options:n,from:O?t.from:e.pos,validFor:q}}function _(e,t,O){var n;let a=[];for(;;){let i=t.firstChild,r;if((null==i?void 0:i.name)=="VariableName")return a.push(e(i)),{path:a.reverse(),name:O};if((null==i?void 0:i.name)!="MemberExpression"||(null===(n=r=i.lastChild)||void 0===n?void 0:n.name)!="PropertyName")return null;a.push(e(r)),t=i}}function V(e){let t=t=>e.state.doc.sliceString(t.from,t.to),O=(0,m.qz)(e.state).resolveInner(e.pos,-1);return"PropertyName"==O.name?_(t,O.parent,t(O)):v.indexOf(O.name)>-1?null:"VariableName"==O.name||O.to-O.from<20&&q.test(t(O))?{path:[],name:t(O)}:("."==O.name||"?."==O.name)&&"MemberExpression"==O.parent.name?_(t,O.parent,""):"MemberExpression"==O.name?_(t,O,""):e.explicit?{path:[],name:""}:null}function U(e){let t=new Map;return O=>{let n=V(O);if(!n)return null;let a=e;for(let i of n.path)if(!(a=a[i]))return null;let r=t.get(a);return r||t.set(a,r=function(e,t){let O=[],n=new Set;for(let a=0;;a++){for(let i of(Object.getOwnPropertyNames||Object.keys)(e)){let r;if(!n.has(i)){n.add(i);try{r=e[i]}catch(o){continue}O.push({label:i,type:"function"==typeof r?/^[A-Z]/.test(i)?"class":t?"function":"method":t?"variable":"property",boost:-a})}}let l=Object.getPrototypeOf(e);if(!l)return O;e=l}}(a,!n.path.length)),{from:O.pos-n.name.length,options:r,validFor:q}}}let w=m.qp.define({name:"javascript",parser:h.configure({props:[m.uj.add({IfStatement:(0,m.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,m.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:m.ze,SwitchBody(e){let t=e.textAfter,O=/^\s*\}/.test(t),n=/^\s*(case|default)\b/.test(t);return e.baseIndent+(O?0:n?1:2)*e.unit},Block:(0,m.vw)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,m.tC)({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),m.x0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":m.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),j=w.configure({dialect:"ts"},"typescript"),R=w.configure({dialect:"jsx"}),C=w.configure({dialect:"jsx ts"},"typescript"),G="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(e=>({label:e,type:"keyword"}));function W(e={}){let t=e.jsx?e.typescript?C:R:e.typescript?j:w;return new m.ri(t,[w.data.of({autocomplete:(0,b.eC)(v,(0,b.Mb)(P.concat(G)))}),w.data.of({autocomplete:k}),e.jsx?E:[]])}function Y(e,t,O=e.length){for(let n=null==t?void 0:t.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return e.sliceString(n.from,Math.min(n.to,O));return""}let A="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),E=S.tk.inputHandler.of((e,t,O,n)=>{if((A?e.composing:e.compositionStarted)||e.state.readOnly||t!=O||">"!=n&&"/"!=n||!w.isActiveAt(e.state,t,-1))return!1;let{state:a}=e,i=a.changeByRange(e=>{var t,O;let{head:i}=e,r=(0,m.qz)(a).resolveInner(i,-1),o;if("JSXStartTag"==r.name&&(r=r.parent),">"==n&&"JSXFragmentTag"==r.name)return{range:$.jT.cursor(i+1),changes:{from:i,insert:"><>"}};if("/"==n&&"JSXFragmentTag"==r.name){let l=r.parent,s=null==l?void 0:l.parent;if(l.from==i-1&&(null===(t=s.lastChild)||void 0===t?void 0:t.name)!="JSXEndTag"&&(o=Y(a.doc,null==s?void 0:s.firstChild,i))){let c=`/${o}>`;return{range:$.jT.cursor(i+c.length),changes:{from:i,insert:c}}}}else if(">"==n){let p=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if(!e.parent)return null;e=e.parent}}(r);if(p&&(null===(O=p.lastChild)||void 0===O?void 0:O.name)!="JSXEndTag"&&"`}}}return{range:e}});return!i.changes.empty&&(e.dispatch(i,{userEvent:"input.type",scrollIntoView:!0}),!0)});function L(e,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach((e,O)=>{e.meta.docs.recommended&&(t.rules[O]=2)})),O=>{let{state:n}=O,a=[];for(let{from:i,to:r}of w.findRegions(n)){let o=n.doc.lineAt(i),l={line:o.number-1,col:i-o.from,pos:i};for(let s of e.verify(n.sliceDoc(i,r),t))a.push(function(e,t,O){let n=z(e.line,e.column,t,O),a={from:n,to:null!=e.endLine&&1!=e.endColumn?z(e.endLine,e.endColumn,t,O):n,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:i,text:r}=e.fix,o=i[0]+O.pos-n,l=i[1]+O.pos-n;a.actions=[{name:"fix",apply(e,t){e.dispatch({changes:{from:t+o,to:t+l,insert:r},scrollIntoView:!0})}}]}return a}(s,n.doc,l))}return a}}function z(e,t,O,n){return O.line(e+n.line).from+t+(1==e?n.col-1:-1)}},48825:function(e,t,O){"use strict";O.r(t),O.d(t,{commonmarkLanguage:function(){return eV},deleteMarkupBackward:function(){return eA},insertNewlineContinueMarkup:function(){return eW},markdown:function(){return ez},markdownKeymap:function(){return eE},markdownLanguage:function(){return ew}});var n,a,i=O(78120),r=O(47421),o=O(59119),l=O(41113),s=O(35524);class c{constructor(e,t,O,n,a,i,r){this.type=e,this.value=t,this.from=O,this.hash=n,this.end=a,this.children=i,this.positions=r,this.hashProp=[[l.md.contextHash,n]]}static create(e,t,O,n,a){return new c(e,t,O,n+(n<<8)+e+(t<<4)|0,a,[],[])}addChild(e,t){e.prop(l.md.contextHash)!=this.hash&&(e=new l.mp(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let O=this.children.length-1;return O>=0&&(t=Math.max(t,this.positions[O]+this.children[O].length+this.from)),new l.mp(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,O)=>new l.mp(l.Jq.none,e,t,O,this.hashProp)})}}(n=a||(a={}))[n.Document=1]="Document",n[n.CodeBlock=2]="CodeBlock",n[n.FencedCode=3]="FencedCode",n[n.Blockquote=4]="Blockquote",n[n.HorizontalRule=5]="HorizontalRule",n[n.BulletList=6]="BulletList",n[n.OrderedList=7]="OrderedList",n[n.ListItem=8]="ListItem",n[n.ATXHeading1=9]="ATXHeading1",n[n.ATXHeading2=10]="ATXHeading2",n[n.ATXHeading3=11]="ATXHeading3",n[n.ATXHeading4=12]="ATXHeading4",n[n.ATXHeading5=13]="ATXHeading5",n[n.ATXHeading6=14]="ATXHeading6",n[n.SetextHeading1=15]="SetextHeading1",n[n.SetextHeading2=16]="SetextHeading2",n[n.HTMLBlock=17]="HTMLBlock",n[n.LinkReference=18]="LinkReference",n[n.Paragraph=19]="Paragraph",n[n.CommentBlock=20]="CommentBlock",n[n.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",n[n.Escape=22]="Escape",n[n.Entity=23]="Entity",n[n.HardBreak=24]="HardBreak",n[n.Emphasis=25]="Emphasis",n[n.StrongEmphasis=26]="StrongEmphasis",n[n.Link=27]="Link",n[n.Image=28]="Image",n[n.InlineCode=29]="InlineCode",n[n.HTMLTag=30]="HTMLTag",n[n.Comment=31]="Comment",n[n.ProcessingInstruction=32]="ProcessingInstruction",n[n.URL=33]="URL",n[n.HeaderMark=34]="HeaderMark",n[n.QuoteMark=35]="QuoteMark",n[n.ListMark=36]="ListMark",n[n.LinkMark=37]="LinkMark",n[n.EmphasisMark=38]="EmphasisMark",n[n.CodeMark=39]="CodeMark",n[n.CodeText=40]="CodeText",n[n.CodeInfo=41]="CodeInfo",n[n.LinkTitle=42]="LinkTitle",n[n.LinkLabel=43]="LinkLabel";class p{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class d{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return h(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,O=0){for(let n=t;n=t.stack[O.depth+1].value+O.baseIndent)return!0;if(O.indent>=O.baseIndent+4)return!1;let n=(e.type==a.OrderedList?T:P)(O,t,!1);return n>0&&(e.type!=a.BulletList||0>b(O,t,!1))&&O.text.charCodeAt(O.pos+n-1)==e.value}let f={[a.Blockquote]:(e,t,O)=>62==O.next&&(O.markers.push(N(a.QuoteMark,t.lineStart+O.pos,t.lineStart+O.pos+1)),O.moveBase(O.pos+(Q(O.text.charCodeAt(O.pos+1))?2:1)),e.end=t.lineStart+O.text.length,!0),[a.ListItem]:(e,t,O)=>(!(O.indent-1))&&(O.moveBaseColumn(O.baseIndent+e.value),!0),[a.OrderedList]:u,[a.BulletList]:u,[a.Document]:()=>!0};function Q(e){return 32==e||9==e||10==e||13==e}function h(e,t=0){for(;tO&&Q(e.charCodeAt(t-1));)t--;return t}function $(e){if(96!=e.next&&126!=e.next)return -1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length?-1:n<3?-1:1}function g(e,t){for(let O=e.stack.length-1;O>=0;O--)if(e.stack[O].type==t)return!0;return!1}function P(e,t,O){return(45==e.next||43==e.next||42==e.next)&&(e.pos==e.text.length-1||Q(e.text.charCodeAt(e.pos+1)))&&(!O||g(t,a.BulletList)||e.skipSpace(e.pos+2)=48&&i<=57;){if(++n==e.text.length)return -1;i=e.text.charCodeAt(n)}return n==e.pos||n>e.pos+9||46!=i&&41!=i||ne.pos+1||49!=e.next)?-1:n+1-e.pos}function Z(e){if(35!=e.next)return -1;let t=e.pos+1;for(;t6?-1:O}function x(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return -1;let t=e.pos+1;for(;t/,q=/\?>/,v=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(n);if(r)return e.append(N(a.Comment,O,O+1+r[0].length));let o=/^\?[^]*?\?>/.exec(n);if(o)return e.append(N(a.ProcessingInstruction,O,O+1+o[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(n);return l?e.append(N(a.HTMLTag,O,O+1+l[0].length)):-1},Emphasis(e,t,O){if(95!=t&&42!=t)return -1;let n=O+1;for(;e.char(n)==t;)n++;let a=e.slice(O-1,O),i=e.slice(n,n+1),r=en.test(a),o=en.test(i),l=/\s|^$/.test(a),s=/\s|^$/.test(i),c=!s&&(!o||l||r),p=!l&&(!r||s||o);return e.append(new et(95==t?H:F,O,n,(c&&(42==t||!p||r)?1:0)|(p&&(42==t||!c||o)?2:0)))},HardBreak(e,t,O){if(92==t&&10==e.char(O+1))return e.append(N(a.HardBreak,O,O+2));if(32==t){let n=O+1;for(;32==e.char(n);)n++;if(10==e.char(n)&&n>=O+2)return e.append(N(a.HardBreak,O,n+1))}return -1},Link:(e,t,O)=>91==t?e.append(new et(K,O,O+1,1)):-1,Image:(e,t,O)=>33==t&&91==e.char(O+1)?e.append(new et(ee,O,O+2,1)):-1,LinkEnd(e,t,O){if(93!=t)return -1;for(let n=e.parts.length-1;n>=0;n--){let i=e.parts[n];if(i instanceof et&&(i.type==K||i.type==ee)){if(!i.side||e.skipSpace(i.to)==O&&!/[(\[]/.test(e.slice(O+1,O+2)))return e.parts[n]=null,-1;let r=e.takeContent(n),o=e.parts[n]=function(e,t,O,n,i){let{text:r}=e,o=e.char(i),l=i;if(t.unshift(N(a.LinkMark,n,n+(O==a.Image?2:1))),t.push(N(a.LinkMark,i-1,i)),40==o){let s=e.skipSpace(i+1),c=er(r,s-e.offset,e.offset),p;c&&(s=e.skipSpace(c.to),(p=eo(r,s-e.offset,e.offset))&&(s=e.skipSpace(p.to))),41==e.char(s)&&(t.push(N(a.LinkMark,i,i+1)),l=s+1,c&&t.push(c),p&&t.push(p),t.push(N(a.LinkMark,s,l)))}else if(91==o){let d=el(r,i-e.offset,e.offset,!1);d&&(t.push(d),l=d.to)}return N(O,n,l,t)}(e,r,i.type==K?a.Link:a.Image,i.from,O+1);if(i.type==K)for(let l=0;lt?N(a.URL,t+O,o+O):o==e.length&&null}}function eo(e,t,O){let n=e.charCodeAt(t);if(39!=n&&34!=n&&40!=n)return!1;let i=40==n?41:n;for(let r=t+1,o=!1;r=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,O,n,a){return this.append(new et(e,t,O,(n?1:0)|(a?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t=e;r--){let o=this.parts[r];if(o instanceof et&&1&o.side&&o.type==O.type&&!(n&&(1&O.side||2&o.side)&&(o.to-o.from+a)%3==0&&((o.to-o.from)%3||a%3))){i=o;break}}if(!i)continue;let l=O.type.resolve,s=[],c=i.from,p=O.to;if(n){let d=Math.min(2,i.to-i.from,a);c=i.to-d,p=O.from+d,l=1==d?"Emphasis":"StrongEmphasis"}i.type.mark&&s.push(this.elt(i.type.mark,c,i.to));for(let u=r+1;u=0;t--){let O=this.parts[t];if(O instanceof et&&O.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return h(this.text,e-this.offset)+this.offset}elt(e,t,O,n){return"string"==typeof e?N(this.parser.getNodeType(e),t,O,n):new D(e,t)}}function ec(e,t){if(!t.length)return e;if(!e.length)return t;let O=e.slice(),n=0;for(let a of t){for(;n(e?e-1:0))return!1;if(this.fragmentEnd<0){let O=this.fragment.to;for(;O>0&&"\n"!=this.input.read(O-1,O);)O--;this.fragmentEnd=O?O-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor()).firstChild();let a=e+this.fragment.offset;for(;n.to<=a;)if(!n.parent())return!1;for(;;){if(n.from>=a)return this.fragment.from<=t;if(!n.childAfter(a))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(l.md.contextHash)==e}takeNodes(e){let t=this.cursor,O=this.fragment.offset,n=this.fragmentEnd-(this.fragment.openEnd?1:0),a=e.absoluteLineStart,i=a,r=e.block.children.length,o=i,l=r;for(;;){if(t.to-O>n){if(t.type.isAnonymous&&t.firstChild())continue;break}if(e.dontInject.add(t.tree),e.addNode(t.tree,t.from-O),t.type.is("Block")&&(0>ep.indexOf(t.type.id)?(i=t.to-O,r=e.block.children.length):(i=o,r=l,o=t.to-O,l=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>r;)e.block.children.pop(),e.block.positions.pop();return i-a}}let eu=(0,s.Gv)({"Blockquote/...":s.pJ.quote,HorizontalRule:s.pJ.contentSeparator,"ATXHeading1/... SetextHeading1/...":s.pJ.heading1,"ATXHeading2/... SetextHeading2/...":s.pJ.heading2,"ATXHeading3/...":s.pJ.heading3,"ATXHeading4/...":s.pJ.heading4,"ATXHeading5/...":s.pJ.heading5,"ATXHeading6/...":s.pJ.heading6,"Comment CommentBlock":s.pJ.comment,Escape:s.pJ.escape,Entity:s.pJ.character,"Emphasis/...":s.pJ.emphasis,"StrongEmphasis/...":s.pJ.strong,"Link/... Image/...":s.pJ.link,"OrderedList/... BulletList/...":s.pJ.list,"BlockQuote/...":s.pJ.quote,"InlineCode CodeText":s.pJ.monospace,URL:s.pJ.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":s.pJ.processingInstruction,"CodeInfo LinkLabel":s.pJ.labelName,LinkTitle:s.pJ.string,Paragraph:s.pJ.content}),ef=new Y(new l.Lj(L).extend(eu),Object.keys(U).map(e=>U[e]),Object.keys(U).map(e=>C[e]),Object.keys(U),[(e,t)=>Z(t)>=0,(e,t)=>$(t)>=0,(e,t)=>S(t)>=0,(e,t)=>P(t,e,!0)>=0,(e,t)=>T(t,e,!0)>=0,(e,t)=>b(t,e,!0)>=0,(e,t)=>k(t,e,!0)>=0],f,Object.keys(ei).map(e=>ei[e]),Object.keys(ei),[]),eQ={resolve:"Strikethrough",mark:"StrikethroughMark"},eh={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":s.pJ.strikethrough}},{name:"StrikethroughMark",style:s.pJ.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,O){if(126!=t||126!=e.char(O+1)||126==e.char(O+2))return -1;let n=e.slice(O-1,O),a=e.slice(O+2,O+3),i=/\s|^$/.test(n),r=/\s|^$/.test(a),o=en.test(n),l=en.test(a);return e.addDelimiter(eQ,O,O+2,!r&&(!l||i||o),!i&&(!o||r||l))},after:"Emphasis"}]};function em(e,t,O=0,n,a=0){let i=0,r=!0,o=-1,l=-1,s=!1,c=()=>{n.push(e.elt("TableCell",a+o,a+l,e.parser.parseInline(t.slice(o,l),a+o)))};for(let p=O;p-1)&&i++,r=!1,n&&(o>-1&&c(),n.push(e.elt("TableDelimiter",p+a,p+a+1))),o=l=-1),s=!s&&92==d}return o>-1&&(i++,n&&c()),i}function e$(e,t){for(let O=t;Oe$(t.content,0)?new eb:null,endLeaf(e,t,O){if(O.parsers.some(e=>e instanceof eb)||!e$(t.text,t.basePos))return!1;let n=e.scanLine(e.absoluteLineEnd+1).text;return eS.test(n)&&em(e,t.text,t.basePos)==em(e,n,t.basePos)},before:"SetextHeading"}]};class eP{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}let eT={defineNodes:[{name:"Task",block:!0,style:s.pJ.list},{name:"TaskMarker",style:s.pJ.atom}],parseBlock:[{name:"TaskList",leaf:(e,t)=>/^\[[ xX]\]/.test(t.content)&&"ListItem"==e.parentType().name?new eP:null,after:"SetextHeading"}]};function eZ(e,t,O){return(n,a,i)=>{if(a!=e||n.char(i+1)==e)return -1;let r=[n.elt(O,i,i+1)];for(let o=i+1;o"}}),ek=ef.configure({props:[o.x0.add(e=>{if(!(!e.is("Block")||e.is("Document")))return(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})}),o.uj.add({Document:()=>null}),o.pp.add({Document:ev})]});function e_(e){return new o.SQ(ev,e,[],"markdown")}let eV=e_(ek),eU=ek.configure([[eg,eT,eh],eX,ex,ey]),ew=e_(eU);class ej{constructor(e,t,O,n,a,i,r){this.node=e,this.from=t,this.to=O,this.spaceBefore=n,this.spaceAfter=a,this.type=i,this.item=r}blank(e,t=!0){let O=this.spaceBefore+("Blockquote"==this.node.name?">":"");if(null!=e){for(;O.length0;n--)O+=" ";return O+(t?this.spaceAfter:"")}marker(e,t){let O="OrderedList"==this.node.name?String(+eC(this.item,e)[2]+t):"";return this.spaceBefore+O+this.type+this.spaceAfter}}function eR(e,t){let O=[];for(let n=e;n&&"Document"!=n.name;n=n.parent)("ListItem"==n.name||"Blockquote"==n.name||"FencedCode"==n.name)&&O.push(n);let a=[];for(let i=O.length-1;i>=0;i--){let r=O[i],o,l=t.lineAt(r.from),s=r.from-l.from;if("FencedCode"==r.name)a.push(new ej(r,s,s,"","","",null));else if("Blockquote"==r.name&&(o=/^[ \t]*>( ?)/.exec(l.text.slice(s))))a.push(new ej(r,s,s+o[0].length,"",o[1],">",null));else if("ListItem"==r.name&&"OrderedList"==r.parent.name&&(o=/^([ \t]*)\d+([.)])([ \t]*)/.exec(l.text.slice(s)))){let c=o[3],p=o[0].length;c.length>=4&&(c=c.slice(0,c.length-4),p-=4),a.push(new ej(r.parent,s,s+p,o[1],c,o[2],r))}else if("ListItem"==r.name&&"BulletList"==r.parent.name&&(o=/^([ \t]*)([-+*])([ \t]{1,4}\[[ xX]\])?([ \t]+)/.exec(l.text.slice(s)))){let d=o[4],u=o[0].length;d.length>4&&(d=d.slice(0,d.length-4),u-=4);let f=o[2];o[3]&&(f+=o[3].replace(/[xX]/," ")),a.push(new ej(r.parent,s,s+u,o[1],d,f,r))}}return a}function eC(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function eG(e,t,O,n=0){for(let a=-1,i=e;;){if("ListItem"==i.name){let r=eC(i,t),o=+r[2];if(a>=0){if(o!=a+1)return;O.push({from:i.from+r[1].length,to:i.from+r[0].length,insert:String(a+2+n)})}a=o}let l=i.nextSibling;if(!l)break;i=l}}let eW=({state:e,dispatch:t})=>{let O=(0,o.qz)(e),{doc:n}=e,a=null,r=e.changeByRange(t=>{if(!t.empty||!ew.isActiveAt(e,t.from))return a={range:t};let r=t.from,o=n.lineAt(r),l=eR(O.resolveInner(r,-1),n);for(;l.length&&l[l.length-1].from>r-o.from;)l.pop();if(!l.length)return a={range:t};let s=l[l.length-1];if(s.to-s.spaceAfter.length>r-o.from)return a={range:t};let c=r>=s.to-s.spaceAfter.length&&!/\S/.test(o.text.slice(s.to));if(s.item&&c){if(s.node.firstChild.to>=r||o.from>0&&!/[^\s>]/.test(n.lineAt(o.from-1).text)){let p=l.length>1?l[l.length-2]:null,d,u="";p&&p.item?(d=o.from+p.from,u=p.marker(n,1)):d=o.from+(p?p.to:0);let f=[{from:d,to:r,insert:u}];return"OrderedList"==s.node.name&&eG(s.item,n,f,-2),p&&"OrderedList"==p.node.name&&eG(p.item,n,f),{range:i.jT.cursor(d+u.length),changes:f}}{let Q="";for(let h=0,m=l.length-2;h<=m;h++)Q+=l[h].blank(h\s*$/.exec($.text);if(S&&S.index==s.from){let b=e.changes([{from:$.from+S.index,to:$.to},{from:o.from+s.from,to:o.to}]);return{range:t.map(b),changes:b}}}let g=[];"OrderedList"==s.node.name&&eG(s.item,n,g);let P=s.item&&s.item.from]*/.exec(o.text)[0].length>=s.to)for(let Z=0,x=l.length-1;Z<=x;Z++)T+=Z!=x||P?l[Z].blank(Zo.from&&/\s/.test(o.text.charAt(X-o.from-1));)X--;return T=e.lineBreak+T,g.push({from:X,to:r,insert:T}),{range:i.jT.cursor(X+T.length),changes:g}});return!a&&(t(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0)};function eY(e){return"QuoteMark"==e.name||"ListMark"==e.name}let eA=({state:e,dispatch:t})=>{let O=(0,o.qz)(e),n=null,a=e.changeByRange(t=>{let a=t.from,{doc:r}=e;if(t.empty&&ew.isActiveAt(e,t.from)){let o=r.lineAt(a),l=eR(function(e,t){let O=e.resolveInner(t,-1),n=t;eY(O)&&(n=O.from,O=O.parent);for(let a;a=O.childBefore(n);)if(eY(a))n=a.from;else if("OrderedList"==a.name||"BulletList"==a.name)n=(O=a.lastChild).to;else break;return O}(O,a),r);if(l.length){let s=l[l.length-1],c=s.to-s.spaceAfter.length+(s.spaceAfter?1:0);if(a-o.from>c&&!/\S/.test(o.text.slice(c,a-o.from)))return{range:i.jT.cursor(o.from+c),changes:{from:o.from+c,to:a}};if(a-o.from==c){let p=o.from+s.from;if(s.item&&s.node.from{if(e&&O){let n=null;if(e=/\S*/.exec(e)[0],(n="function"==typeof O?O(e):o.c6.matchLanguageName(O,e,!0))instanceof o.c6)return n.support?n.support.language.parser:o.Be.getSkippingParser(n.load());if(n)return n.parser}return t?t.parser:null}):void 0;return p.push(function(e){let{codeParser:t,htmlParser:O}=e,n=(0,l.FE)((e,n)=>{let i=e.type.id;if(t&&(i==a.CodeBlock||i==a.FencedCode)){let r="";if(i==a.FencedCode){let o=e.node.getChild(a.CodeInfo);o&&(r=n.read(o.from,o.to))}let l=t(r);if(l)return{parser:l,overlay:e=>e.type.id==a.CodeText}}else if(O&&(i==a.HTMLBlock||i==a.HTMLTag))return{parser:O,overlay:function(e,t,O){let n=[];for(let a=e.firstChild,i=t;;a=a.nextSibling){let r=a?a.from:O;if(r>i&&n.push({from:i,to:r}),!a)break;i=a.to}return n}(e.node,e.from,e.to)};return null});return{wrap:n}}({codeParser:f,htmlParser:eL.language.parser})),s&&d.push(i.Wl.high(r.$f.of(eE))),new o.ri(e_(c.configure(p)),d)}},76538:function(e,t,O){"use strict";O.d(t,{M:function(){return r}});var n=O(59119);function a(e){return new n.ri(n.il.define(e))}function i(e){return O.e(1390).then(O.bind(O,21390)).then(t=>t.sql({dialect:t[e]}))}let r=[n.c6.of({name:"C",extensions:["c","h","ino"],load:()=>O.e(2750).then(O.bind(O,12750)).then(e=>e.cpp())}),n.c6.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>O.e(2750).then(O.bind(O,12750)).then(e=>e.cpp())}),n.c6.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>i("Cassandra")}),n.c6.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(O.bind(O,61426)).then(e=>e.css())}),n.c6.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(O.bind(O,13804)).then(e=>e.html())}),n.c6.of({name:"Java",extensions:["java"],load:()=>O.e(4778).then(O.bind(O,44778)).then(e=>e.java())}),n.c6.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(O.bind(O,58037)).then(e=>e.javascript())}),n.c6.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>O.e(4732).then(O.bind(O,44732)).then(e=>e.json())}),n.c6.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(O.bind(O,58037)).then(e=>e.javascript({jsx:!0}))}),n.c6.of({name:"MariaDB SQL",load:()=>i("MariaSQL")}),n.c6.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(O.bind(O,48825)).then(e=>e.markdown())}),n.c6.of({name:"MS SQL",load:()=>i("MSSQL")}),n.c6.of({name:"MySQL",load:()=>i("MySQL")}),n.c6.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>O.e(2386).then(O.bind(O,12386)).then(e=>e.php())}),n.c6.of({name:"PLSQL",extensions:["pls"],load:()=>i("PLSQL")}),n.c6.of({name:"PostgreSQL",load:()=>i("PostgreSQL")}),n.c6.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>O.e(8088).then(O.bind(O,28088)).then(e=>e.python())}),n.c6.of({name:"Rust",extensions:["rs"],load:()=>O.e(4920).then(O.bind(O,24920)).then(e=>e.rust())}),n.c6.of({name:"SQL",extensions:["sql"],load:()=>i("StandardSQL")}),n.c6.of({name:"SQLite",load:()=>i("SQLite")}),n.c6.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(O.bind(O,58037)).then(e=>e.javascript({jsx:!0,typescript:!0}))}),n.c6.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load:()=>Promise.resolve().then(O.bind(O,58037)).then(e=>e.javascript({typescript:!0}))}),n.c6.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>O.e(9972).then(O.bind(O,9972)).then(e=>e.wast())}),n.c6.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>O.e(5122).then(O.bind(O,5122)).then(e=>e.xml())}),n.c6.of({name:"APL",extensions:["dyalog","apl"],load:()=>O.e(870).then(O.bind(O,90870)).then(e=>a(e.apl))}),n.c6.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>O.e(8029).then(O.bind(O,58029)).then(e=>a(e.asciiArmor))}),n.c6.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>O.e(3203).then(O.bind(O,93203)).then(e=>a(e.asn1({})))}),n.c6.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>O.e(5648).then(O.bind(O,15648)).then(e=>a(e.asterisk))}),n.c6.of({name:"Brainfuck",extensions:["b","bf"],load:()=>O.e(2675).then(O.bind(O,9521)).then(e=>a(e.brainfuck))}),n.c6.of({name:"Cobol",extensions:["cob","cpy"],load:()=>O.e(8915).then(O.bind(O,68915)).then(e=>a(e.cobol))}),n.c6.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.csharp))}),n.c6.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>O.e(2406).then(O.bind(O,72406)).then(e=>a(e.clojure))}),n.c6.of({name:"ClojureScript",extensions:["cljs"],load:()=>O.e(2406).then(O.bind(O,72406)).then(e=>a(e.clojure))}),n.c6.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>O.e(2136).then(O.bind(O,62136)).then(e=>a(e.gss))}),n.c6.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>O.e(889).then(O.bind(O,70889)).then(e=>a(e.cmake))}),n.c6.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>O.e(9558).then(O.bind(O,29558)).then(e=>a(e.coffeeScript))}),n.c6.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>O.e(1446).then(O.bind(O,61446)).then(e=>a(e.commonLisp))}),n.c6.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>O.e(673).then(O.bind(O,20673)).then(e=>a(e.cypher))}),n.c6.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>O.e(4323).then(O.bind(O,74323)).then(e=>a(e.cython))}),n.c6.of({name:"Crystal",extensions:["cr"],load:()=>O.e(2602).then(O.bind(O,62602)).then(e=>a(e.crystal))}),n.c6.of({name:"D",extensions:["d"],load:()=>O.e(1660).then(O.bind(O,11660)).then(e=>a(e.d))}),n.c6.of({name:"Dart",extensions:["dart"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.dart))}),n.c6.of({name:"diff",extensions:["diff","patch"],load:()=>O.e(7475).then(O.bind(O,87475)).then(e=>a(e.diff))}),n.c6.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>O.e(4812).then(O.bind(O,34812)).then(e=>a(e.dockerFile))}),n.c6.of({name:"DTD",extensions:["dtd"],load:()=>O.e(6991).then(O.bind(O,76991)).then(e=>a(e.dtd))}),n.c6.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>O.e(4144).then(O.bind(O,24144)).then(e=>a(e.dylan))}),n.c6.of({name:"EBNF",load:()=>O.e(2040).then(O.bind(O,82040)).then(e=>a(e.ebnf))}),n.c6.of({name:"ECL",extensions:["ecl"],load:()=>O.e(7315).then(O.bind(O,37315)).then(e=>a(e.ecl))}),n.c6.of({name:"edn",extensions:["edn"],load:()=>O.e(2406).then(O.bind(O,72406)).then(e=>a(e.clojure))}),n.c6.of({name:"Eiffel",extensions:["e"],load:()=>O.e(7525).then(O.bind(O,87525)).then(e=>a(e.eiffel))}),n.c6.of({name:"Elm",extensions:["elm"],load:()=>O.e(8770).then(O.bind(O,28770)).then(e=>a(e.elm))}),n.c6.of({name:"Erlang",extensions:["erl"],load:()=>O.e(7590).then(O.bind(O,53482)).then(e=>a(e.erlang))}),n.c6.of({name:"Esper",load:()=>O.e(9607).then(O.bind(O,54050)).then(e=>a(e.esper))}),n.c6.of({name:"Factor",extensions:["factor"],load:()=>O.e(7001).then(O.bind(O,87001)).then(e=>a(e.factor))}),n.c6.of({name:"FCL",load:()=>O.e(7663).then(O.bind(O,77663)).then(e=>a(e.fcl))}),n.c6.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>O.e(8393).then(O.bind(O,68393)).then(e=>a(e.forth))}),n.c6.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>O.e(8283).then(O.bind(O,8283)).then(e=>a(e.fortran))}),n.c6.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>O.e(6121).then(O.bind(O,96121)).then(e=>a(e.fSharp))}),n.c6.of({name:"Gas",extensions:["s"],load:()=>O.e(9781).then(O.bind(O,39781)).then(e=>a(e.gas))}),n.c6.of({name:"Gherkin",extensions:["feature"],load:()=>O.e(2542).then(O.bind(O,2542)).then(e=>a(e.gherkin))}),n.c6.of({name:"Go",extensions:["go"],load:()=>O.e(8910).then(O.bind(O,48910)).then(e=>a(e.go))}),n.c6.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>O.e(3883).then(O.bind(O,23883)).then(e=>a(e.groovy))}),n.c6.of({name:"Haskell",extensions:["hs"],load:()=>O.e(5372).then(O.bind(O,95372)).then(e=>a(e.haskell))}),n.c6.of({name:"Haxe",extensions:["hx"],load:()=>O.e(3509).then(O.bind(O,63509)).then(e=>a(e.haxe))}),n.c6.of({name:"HXML",extensions:["hxml"],load:()=>O.e(3509).then(O.bind(O,63509)).then(e=>a(e.hxml))}),n.c6.of({name:"HTTP",load:()=>O.e(7558).then(O.bind(O,36395)).then(e=>a(e.http))}),n.c6.of({name:"IDL",extensions:["pro"],load:()=>O.e(2314).then(O.bind(O,22314)).then(e=>a(e.idl))}),n.c6.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>O.e(9296).then(O.bind(O,59296)).then(e=>a(e.jsonld))}),n.c6.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>O.e(1084).then(O.bind(O,41084)).then(e=>a(e.jinja2))}),n.c6.of({name:"Julia",extensions:["jl"],load:()=>O.e(6092).then(O.bind(O,76092)).then(e=>a(e.julia))}),n.c6.of({name:"Kotlin",extensions:["kt"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.kotlin))}),n.c6.of({name:"LESS",extensions:["less"],load:()=>O.e(2136).then(O.bind(O,62136)).then(e=>a(e.less))}),n.c6.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>O.e(402).then(O.bind(O,60402)).then(e=>a(e.liveScript))}),n.c6.of({name:"Lua",extensions:["lua"],load:()=>O.e(3519).then(O.bind(O,3519)).then(e=>a(e.lua))}),n.c6.of({name:"mIRC",extensions:["mrc"],load:()=>O.e(5134).then(O.bind(O,65134)).then(e=>a(e.mirc))}),n.c6.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>O.e(7213).then(O.bind(O,37213)).then(e=>a(e.mathematica))}),n.c6.of({name:"Modelica",extensions:["mo"],load:()=>O.e(305).then(O.bind(O,40305)).then(e=>a(e.modelica))}),n.c6.of({name:"MUMPS",extensions:["mps"],load:()=>O.e(7988).then(O.bind(O,17988)).then(e=>a(e.mumps))}),n.c6.of({name:"Mbox",extensions:["mbox"],load:()=>O.e(9121).then(O.bind(O,29121)).then(e=>a(e.mbox))}),n.c6.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>O.e(8561).then(O.bind(O,78561)).then(e=>a(e.nginx))}),n.c6.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>O.e(7370).then(O.bind(O,67370)).then(e=>a(e.nsis))}),n.c6.of({name:"NTriples",extensions:["nt","nq"],load:()=>O.e(3314).then(O.bind(O,43314)).then(e=>a(e.ntriples))}),n.c6.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.objectiveC))}),n.c6.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.objectiveCpp))}),n.c6.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>O.e(6121).then(O.bind(O,96121)).then(e=>a(e.oCaml))}),n.c6.of({name:"Octave",extensions:["m"],load:()=>O.e(3283).then(O.bind(O,33283)).then(e=>a(e.octave))}),n.c6.of({name:"Oz",extensions:["oz"],load:()=>O.e(4796).then(O.bind(O,94796)).then(e=>a(e.oz))}),n.c6.of({name:"Pascal",extensions:["p","pas"],load:()=>O.e(4163).then(O.bind(O,44163)).then(e=>a(e.pascal))}),n.c6.of({name:"Perl",extensions:["pl","pm"],load:()=>O.e(4293).then(O.bind(O,94293)).then(e=>a(e.perl))}),n.c6.of({name:"Pig",extensions:["pig"],load:()=>O.e(3482).then(O.bind(O,33482)).then(e=>a(e.pig))}),n.c6.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>O.e(7421).then(O.bind(O,37421)).then(e=>a(e.powerShell))}),n.c6.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>O.e(9071).then(O.bind(O,69071)).then(e=>a(e.properties))}),n.c6.of({name:"ProtoBuf",extensions:["proto"],load:()=>O.e(8142).then(O.bind(O,78142)).then(e=>a(e.protobuf))}),n.c6.of({name:"Puppet",extensions:["pp"],load:()=>O.e(3993).then(O.bind(O,83993)).then(e=>a(e.puppet))}),n.c6.of({name:"Q",extensions:["q"],load:()=>O.e(228).then(O.bind(O,10228)).then(e=>a(e.q))}),n.c6.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>O.e(7365).then(O.bind(O,57365)).then(e=>a(e.r))}),n.c6.of({name:"RPM Changes",load:()=>O.e(8171).then(O.bind(O,48171)).then(e=>a(e.rpmChanges))}),n.c6.of({name:"RPM Spec",extensions:["spec"],load:()=>O.e(8171).then(O.bind(O,48171)).then(e=>a(e.rpmSpec))}),n.c6.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],load:()=>O.e(4439).then(O.bind(O,24439)).then(e=>a(e.ruby))}),n.c6.of({name:"SAS",extensions:["sas"],load:()=>O.e(1770).then(O.bind(O,1770)).then(e=>a(e.sas))}),n.c6.of({name:"Sass",extensions:["sass"],load:()=>O.e(9809).then(O.bind(O,49809)).then(e=>a(e.sass))}),n.c6.of({name:"Scala",extensions:["scala"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.scala))}),n.c6.of({name:"Scheme",extensions:["scm","ss"],load:()=>O.e(5879).then(O.bind(O,95879)).then(e=>a(e.scheme))}),n.c6.of({name:"SCSS",extensions:["scss"],load:()=>O.e(2136).then(O.bind(O,62136)).then(e=>a(e.sCSS))}),n.c6.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>O.e(4879).then(O.bind(O,44879)).then(e=>a(e.shell))}),n.c6.of({name:"Sieve",extensions:["siv","sieve"],load:()=>O.e(9713).then(O.bind(O,9713)).then(e=>a(e.sieve))}),n.c6.of({name:"Smalltalk",extensions:["st"],load:()=>O.e(1873).then(O.bind(O,11873)).then(e=>a(e.smalltalk))}),n.c6.of({name:"Solr",load:()=>O.e(7762).then(O.bind(O,17762)).then(e=>a(e.solr))}),n.c6.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>O.e(6121).then(O.bind(O,96121)).then(e=>a(e.sml))}),n.c6.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>O.e(370).then(O.bind(O,70370)).then(e=>a(e.sparql))}),n.c6.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>O.e(7601).then(O.bind(O,97601)).then(e=>a(e.spreadsheet))}),n.c6.of({name:"Squirrel",extensions:["nut"],load:()=>O.e(7917).then(O.bind(O,63821)).then(e=>a(e.squirrel))}),n.c6.of({name:"Stylus",extensions:["styl"],load:()=>O.e(8007).then(O.bind(O,28007)).then(e=>a(e.stylus))}),n.c6.of({name:"Swift",extensions:["swift"],load:()=>O.e(6062).then(O.bind(O,66062)).then(e=>a(e.swift))}),n.c6.of({name:"sTeX",load:()=>O.e(6732).then(O.bind(O,86732)).then(e=>a(e.stex))}),n.c6.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>O.e(6732).then(O.bind(O,86732)).then(e=>a(e.stex))}),n.c6.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>O.e(2119).then(O.bind(O,52119)).then(e=>a(e.verilog))}),n.c6.of({name:"Tcl",extensions:["tcl"],load:()=>O.e(3465).then(O.bind(O,43465)).then(e=>a(e.tcl))}),n.c6.of({name:"Textile",extensions:["textile"],load:()=>O.e(177).then(O.bind(O,90177)).then(e=>a(e.textile))}),n.c6.of({name:"TiddlyWiki",load:()=>O.e(4511).then(O.bind(O,34511)).then(e=>a(e.tiddlyWiki))}),n.c6.of({name:"Tiki wiki",load:()=>O.e(6471).then(O.bind(O,36471)).then(e=>a(e.tiki))}),n.c6.of({name:"TOML",extensions:["toml"],load:()=>O.e(6443).then(O.bind(O,96443)).then(e=>a(e.toml))}),n.c6.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>O.e(1920).then(O.bind(O,71920)).then(e=>a(e.troff))}),n.c6.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>O.e(6665).then(O.bind(O,66665)).then(e=>a(e.ttcn))}),n.c6.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>O.e(9831).then(O.bind(O,29831)).then(e=>a(e.ttcnCfg))}),n.c6.of({name:"Turtle",extensions:["ttl"],load:()=>O.e(5815).then(O.bind(O,15815)).then(e=>a(e.turtle))}),n.c6.of({name:"Web IDL",extensions:["webidl"],load:()=>O.e(6692).then(O.bind(O,26692)).then(e=>a(e.webIDL))}),n.c6.of({name:"VB.NET",extensions:["vb"],load:()=>O.e(4212).then(O.bind(O,44212)).then(e=>a(e.vb))}),n.c6.of({name:"VBScript",extensions:["vbs"],load:()=>O.e(1650).then(O.bind(O,31650)).then(e=>a(e.vbScript))}),n.c6.of({name:"Velocity",extensions:["vtl"],load:()=>O.e(617).then(O.bind(O,90617)).then(e=>a(e.velocity))}),n.c6.of({name:"Verilog",extensions:["v"],load:()=>O.e(2119).then(O.bind(O,52119)).then(e=>a(e.verilog))}),n.c6.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>O.e(5819).then(O.bind(O,5819)).then(e=>a(e.vhdl))}),n.c6.of({name:"XQuery",extensions:["xy","xquery"],load:()=>O.e(5753).then(O.bind(O,35753)).then(e=>a(e.xQuery))}),n.c6.of({name:"Yacas",extensions:["ys"],load:()=>O.e(9232).then(O.bind(O,69232)).then(e=>a(e.yacas))}),n.c6.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>O.e(2877).then(O.bind(O,82877)).then(e=>a(e.yaml))}),n.c6.of({name:"Z80",extensions:["z80"],load:()=>O.e(1053).then(O.bind(O,21053)).then(e=>a(e.z80))}),n.c6.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>O.e(758).then(O.bind(O,30758)).then(e=>a(e.mscgen))}),n.c6.of({name:"X\xf9",extensions:["xu"],load:()=>O.e(758).then(O.bind(O,30758)).then(e=>a(e.xu))}),n.c6.of({name:"MsGenny",extensions:["msgenny"],load:()=>O.e(758).then(O.bind(O,30758)).then(e=>a(e.msgenny))})]}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/4ad82c5e-170dc8748c5bb2d7.js b/static/web/_next/static/chunks/4ad82c5e-170dc8748c5bb2d7.js new file mode 100644 index 000000000..86e38319c --- /dev/null +++ b/static/web/_next/static/chunks/4ad82c5e-170dc8748c5bb2d7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5762],{47421:function(t,e,i){let s;i.d(e,{$1:function(){return iw},$f:function(){return im},AE:function(){return i_},Eu:function(){return sW},HQ:function(){return sq},Nm:function(){return tF},OO:function(){return tA},S2:function(){return i4},SJ:function(){return sy},Sd:function(){return sm},Uw:function(){return iR},W$:function(){return i2},ZO:function(){return iZ},Zs:function(){return i3},bF:function(){return sd},gB:function(){return su},hJ:function(){return sn},l9:function(){return ts},lg:function(){return tR},mH:function(){return sb},p:function(){return tn},qr:function(){return iF},tk:function(){return ir},v5:function(){return sk}});var o,n,r,l=i(78120),h=i(28699),a=i(33952);function c(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function d(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function u(t,e){if(!e.anchorNode)return!1;try{return d(t,e.anchorNode)}catch(i){return!1}}function f(t){return 3==t.nodeType?M(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function p(t,e,i,s){return!!i&&(g(t,e,i,s,-1)||g(t,e,i,s,1))}function m(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function g(t,e,i,s,o){for(;;){if(t==i&&e==s)return!0;if(e==(o<0?0:v(t))){if("DIV"==t.nodeName)return!1;let n=t.parentNode;if(!n||1!=n.nodeType)return!1;e=m(t)+(o<0?0:1),t=n}else{if(1!=t.nodeType||1==(t=t.childNodes[e+(o<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=o<0?v(t):0}}}function v(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}let w={left:0,right:0,top:0,bottom:0};function b(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}class y{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){this.set(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)}set(t,e,i,s){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=s}}let x=null;function S(t){if(t.setActive)return t.setActive();if(x)return t.focus(x);let e=[];for(let i=t;i&&(e.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(t.focus(null==x?{get preventScroll(){return x={preventScroll:!0},!0}}:void 0),!x){x=!1;for(let s=0;se)return c.domBoundsAround(t,e,h);if(d>=t&&-1==s&&(s=l,o=h),h>e&&c.dom.parentNode==this.dom){n=l,r=a;break}a=d,h=d+c.breakAfter}return{from:o,to:r<0?i+this.length:r,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:n=0?this.children[n].dom:null}}markDirty(t=!1){this.dirty|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.dirty&&this.markParentsDirty(!0))}setDOM(t){this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=D){this.markDirty();for(let s=t;sthis.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function E(t,e,i,s,o,n,r,l,h){let{children:a}=t,c=a.length?a[e]:null,d=n.length?n[n.length-1]:null,u=d?d.breakAfter:r;if(!(e==s&&c&&!r&&!u&&n.length<2&&c.merge(i,o,n.length?d:null,0==i,l,h))){if(s0&&(!r&&n.length&&c.merge(i,c.length,n[0],!1,l,0)?c.breakAfter=n.shift().breakAfter:(i2);var K={mac:j||/Mac/.test(L.platform),windows:/Win/.test(L.platform),linux:/Linux|X11/.test(L.platform),ie:W,ie_version:N?V.documentMode||6:P?+P[1]:H?+H[1]:0,gecko:z,gecko_version:z?+(/Firefox\/(\d+)/.exec(L.userAgent)||[0,0])[1]:0,chrome:!!F,chrome_version:F?+F[1]:0,ios:j,android:/Android\b/.test(L.userAgent),webkit:I,safari:q,webkit_version:I?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=V.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class $ extends T{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,i){return(!i||i instanceof $&&!(this.length-(e-t)+i.length>256))&&(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new $(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new A(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return X(this.dom,t,e)}}class G extends T{constructor(t,e=[],i=0){for(let s of(super(),this.mark=t,this.children=e,this.length=i,e))s.setParent(this)}setAttrs(t){if(C(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.dirty|=6)}sync(t){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t)}merge(t,e,i,s,o,n){return(!i||!!(i instanceof G&&i.mark.eq(this.mark))&&(!t||!(o<=0))&&(!(et&&e.push(i=t&&(s=o),i=r,o++}let l=this.length-t;return this.length=t,s>-1&&(this.children.length=s,this.markDirty()),new G(this.mark,e,l)}domAtPos(t){return Z(this,t)}coordsAt(t,e){return J(this,t,e)}}function X(t,e,i){let s=t.nodeValue.length;e>s&&(e=s);let o=e,n=e,r=0;0==e&&i<0||e==s&&i>=0?!(K.chrome||K.gecko)&&(e?(o--,r=1):n=0)?0:l.length-1];return K.safari&&!r&&0==h.width&&(h=Array.prototype.find.call(l,t=>t.width)||h),r?b(h,r<0):h||null}class _ extends T{constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}static create(t,e,i){return new(t.customView||_)(t,e,i)}split(t){let e=_.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,e,i,s,o,n){return(!i||i instanceof _&&!!this.widget.compare(i.widget)&&(!(t>0)||!(o<=0))&&(!(e0?i.length-1:0;s=i[o],t>0?0!=o:o!=i.length-1&&!(s.top0?-1:1);return this.length?s:b(s,this.side>0)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class U extends _{domAtPos(t){let{topView:e,text:i}=this.widget;return e?Y(t,0,e,i,(t,e)=>t.domAtPos(e),t=>new A(i,Math.min(t,i.nodeValue.length))):new A(i,Math.min(t,i.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(t,e){let{topView:i,text:s}=this.widget;return i?function t(e,i,s,o){if(s instanceof G)for(let n of s.children){let r=0,l=d(n.dom,o);if(d(n.dom,e))return r+(l?t(e,i,n,o):n.localPosFromDOM(e,i));r+=l?o.nodeValue.length:n.length}else if(s.dom==o)return Math.min(i,o.nodeValue.length);return s.localPosFromDOM(e,i)}(t,e,i,s):Math.min(e,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(t,e){let{topView:i,text:s}=this.widget;return i?Y(t,e,i,s,(t,e,i)=>t.coordsAt(e,i),(t,e)=>X(s,t,e)):X(s,t,e)}destroy(){var t;super.destroy(),null===(t=this.widget.topView)||void 0===t||t.destroy()}get isEditable(){return!0}canReuseDOM(){return!0}}function Y(t,e,i,s,o,n){if(i instanceof G){for(let r=i.dom.firstChild;r;r=r.nextSibling){let l=T.get(r);if(!l)return n(t,e);let h=d(r,s),a=l.length+(h?s.nodeValue.length:0);if(t=l.getSide())return h?Y(t,e,l,s,o,n):o(l,t,e);t-=a}return o(i,i.length,-1)}return i.dom==s?n(t,e):o(i,t,e)}class Q extends T{constructor(t){super(),this.side=t}get length(){return 0}merge(){return!1}become(t){return t instanceof Q&&t.side==this.side}split(){return new Q(this.side)}sync(){if(!this.dom){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),this.setDOM(t)}}getSide(){return this.side}domAtPos(t){return A.before(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){let e=this.dom.getBoundingClientRect(),i=function(t,e){let i=t.parent,s=i?i.children.indexOf(t):-1;for(;i&&s>=0;)if(e<0?s>0:s0?-1:1);return i&&i.tope.top?{left:e.left,right:e.right,top:i.top,bottom:i.bottom}:e}get overrideDOMText(){return l.xv.empty}}function Z(t,e){let i=t.dom,{children:s}=t,o=0;for(let n=0;o=r.getSide())){if(e>n&&e0;h--){let a=s[h-1];if(a.dom.parentNode==i)return a.domAtPos(a.length)}for(let c=o;c=i&&(a.children.length?t(a,i-h):!n&&(c>i||h==c&&a.getSide()>0)?(n=a,r=i-h):(ha.getSide())&&(s=a,o=i-h)),h=c}}(t,e);let l=(i<0?s:n)||s||n;return l?l.coordsAt(Math.max(0,l==s?o:r),i):function(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let i=f(e);return i[i.length-1]||null}(t)}function tt(t,e){for(let i in t)"class"==i&&e.class?e.class+=" "+t.class:"style"==i&&e.style?e.style+=";"+t.style:e[i]=t[i];return e}function te(t,e){if(t==e)return!0;if(!t||!e)return!1;let i=Object.keys(t),s=Object.keys(e);if(i.length!=s.length)return!1;for(let o of i)if(-1==s.indexOf(o)||t[o]!==e[o])return!1;return!0}function ti(t,e,i){let s=null;if(e)for(let o in e)i&&o in i||t.removeAttribute(s=o);if(i)for(let n in i)e&&e[n]==i[n]||t.setAttribute(s=n,i[n]);return!!s}$.prototype.children=_.prototype.children=Q.prototype.children=D;class ts{eq(t){return!1}updateDOM(t){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return -1}ignoreEvent(t){return!0}get customView(){return null}destroy(t){}}var to=((o=to||(to={}))[o.Text=0]="Text",o[o.WidgetBefore=1]="WidgetBefore",o[o.WidgetAfter=2]="WidgetAfter",o[o.WidgetRange=3]="WidgetRange",o);class tn extends l.uU{constructor(t,e,i,s){super(),this.startSide=t,this.endSide=e,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(t){return new tr(t)}static widget(t){let e=t.side||0,i=!!t.block;return e+=i?e>0?3e8:-4e8:e>0?1e8:-1e8,new th(t,e,e,i,t.widget||null,!1)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap)i=-5e8,s=4e8;else{let{start:o,end:n}=ta(t,e);i=(o?e?-3e8:-1:5e8)-1,s=(n?e?2e8:1:-6e8)+1}return new th(t,i,s,e,t.widget||null,!0)}static line(t){return new tl(t)}static set(t,e=!1){return l.Xs.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}tn.none=l.Xs.empty;class tr extends tn{constructor(t){let{start:e,end:i}=ta(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){return this==t||t instanceof tr&&this.tagName==t.tagName&&this.class==t.class&&te(this.attrs,t.attrs)}range(t,e=t){if(t>=e)throw RangeError("Mark decorations may not be empty");return super.range(t,e)}}tr.prototype.point=!1;class tl extends tn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof tl&&te(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}tl.prototype.mapMode=l.gc.TrackBefore,tl.prototype.point=!0;class th extends tn{constructor(t,e,i,s,o,n){super(e,i,o,t),this.block=s,this.isReplace=n,this.mapMode=s?e<=0?l.gc.TrackBefore:l.gc.TrackAfter:l.gc.TrackDel}get type(){return this.startSide=5}eq(t){var e,i;return t instanceof th&&((e=this.widget)==(i=t.widget)||!!(e&&i&&e.compare(i)))&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}function ta(t,e=!1){let{inclusiveStart:i,inclusiveEnd:s}=t;return null==i&&(i=t.inclusive),null==s&&(s=t.inclusive),{start:null!=i?i:e,end:null!=s?s:e}}function tc(t,e,i,s=0){let o=i.length-1;o>=0&&i[o]+s>=t?i[o]=Math.max(i[o],e):i.push(t,e)}th.prototype.point=!0;class td extends T{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,e,i,s,o,n){if(i){if(!(i instanceof td))return!1;this.dom||i.transferDOM(this)}return s&&this.setDeco(i?i.attrs:null),B(this,t,e,i?i.children:[],o,n),!0}split(t){let e=new td;if(e.breakAfter=this.breakAfter,0==this.length)return e;let{i,off:s}=this.childPos(t);s&&(e.append(this.children[i].split(s),0),this.children[i].merge(s,this.children[i].length,null,!1,0,0),i++);for(let o=i;o0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){te(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){!function t(e,i,s){let o,{children:n}=e;s>0&&i instanceof G&&n.length&&(o=n[n.length-1])instanceof G&&o.mark.eq(i.mark)?t(o,i.children[0],s-1):(n.push(i),i.setParent(e)),e.length+=i.length}(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=tt(e,this.attrs||{})),i&&(this.attrs=tt({class:i},this.attrs||{}))}domAtPos(t){return Z(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.dirty|=6)}sync(t){var e;this.dom?4&this.dirty&&(C(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ti(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t);let i=this.dom.lastChild;for(;i&&T.get(i) instanceof G;)i=i.lastChild;if(!i||!this.length||"BR"!=i.nodeName&&(null===(e=T.get(i))||void 0===e?void 0:e.isEditable)==!1&&(!K.ios||!this.children.some(t=>t instanceof $))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let t=0;for(let e of this.children){if(!(e instanceof $)||/[^ -~]/.test(e.text))return null;let i=f(e.dom);if(1!=i.length)return null;t+=i[0].width}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length}:null}coordsAt(t,e){return J(this,t,e)}become(t){return!1}get type(){return to.Text}static find(t,e){for(let i=0,s=0;i=e){if(o instanceof td)return o;if(n>e)break}s=n+o.breakAfter}return null}}class tu extends T{constructor(t,e,i){super(),this.widget=t,this.length=e,this.type=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,s,o,n){return(!i||i instanceof tu&&!!this.widget.compare(i.widget)&&(!(t>0)||!(o<=0))&&(!(e0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}this.text=s,this.textOff=0}let r=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(tp(new $(this.text.slice(this.textOff,this.textOff+r)),e),i),this.atCursorPos=!0,this.textOff+=r,t-=r,i=0}}span(t,e,i,s){this.buildText(e-t,i,s),this.pos=e,this.openStart<0&&(this.openStart=s)}point(t,e,i,s,o,n){if(this.disallowBlockEffectsFor[n]&&i instanceof th){if(i.block)throw RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}let r=e-t;if(i instanceof th){if(i.block){let{type:l}=i;l!=to.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new tu(i.widget||new tm("div"),r,l))}else{let h=_.create(i.widget||new tm("span"),r,r?0:i.startSide),a=this.atCursorPos&&!h.isEditable&&o<=s.length&&(t0),c=!h.isEditable&&(ts.length||i.startSide<=0),d=this.getLine();2!=this.pendingBuffer||a||(this.pendingBuffer=0),this.flushBuffer(s),a&&(d.append(tp(new Q(1),s),o),o=s.length+Math.max(0,o-s.length)),d.append(tp(h,s),o),this.atCursorPos=c,this.pendingBuffer=c?ts.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);r&&(this.textOff+r<=this.text.length?this.textOff+=r:(this.skip+=r-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}static build(t,e,i,s,o){let n=new tf(t,e,i,o);return n.openEnd=l.Xs.spans(s,e,i,n),n.openStart<0&&(n.openStart=n.openEnd),n.finish(n.openEnd),n}}function tp(t,e){for(let i of e)t=new G(i,[t],t.length);return t}class tm extends ts{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}}let tg=l.r$.define(),tv=l.r$.define(),tw=l.r$.define(),tb=l.r$.define(),ty=l.r$.define(),tx=l.r$.define(),tS=l.r$.define({combine:t=>t.some(t=>t)}),tM=l.r$.define({combine:t=>t.some(t=>t)});class tk{constructor(t,e="nearest",i="nearest",s=5,o=5){this.range=t,this.y=e,this.x=i,this.yMargin=s,this.xMargin=o}map(t){return t.empty?this:new tk(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}let tC=l.Py.define({map:(t,e)=>t.map(e)});function tA(t,e,i){let s=t.facet(tb);s.length?s[0](e):window.onerror?window.onerror(String(e),i,void 0,void 0,e):i?console.error(i+":",e):console.error(e)}let tD=l.r$.define({combine:t=>!t.length||t[0]}),tT=0,tO=l.r$.define();class tR{constructor(t,e,i,s){this.id=t,this.create=e,this.domEventHandlers=i,this.extension=s(this)}static define(t,e){let{eventHandlers:i,provide:s,decorations:o}=e||{};return new tR(tT++,t,i,t=>{let e=[tO.of(t)];return o&&e.push(tV.of(e=>{let i=e.plugin(t);return i?o(i):tn.none})),s&&e.push(s(t)),e})}static fromClass(t,e){return tR.define(e=>new t(e),e)}}class tE{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(s){if(tA(e.state,s,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(i){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(o){tA(t.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(i){tA(t.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}let tB=l.r$.define(),tL=l.r$.define(),tV=l.r$.define(),tH=l.r$.define(),tN=l.r$.define(),tP=l.r$.define();class tW{constructor(t,e,i,s){this.fromA=t,this.toA=e,this.fromB=i,this.toB=s}join(t){return new tW(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(!(s.fromA>i.toA)){if(s.toAa)break;o+=2}if(!l)return i;new tW(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),n=l.toA,r=l.toB}}}class tz{constructor(t,e,i){for(let s of(this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=l.as.empty(this.startState.doc.length),i))this.changes=this.changes.compose(s.changes);let o=[];this.changes.iterChangedRanges((t,e,i,s)=>o.push(new tW(t,e,i,s))),this.changedRanges=o;let n=t.hasFocus;n!=t.inputState.notifiedFocused&&(t.inputState.notifiedFocused=n,this.flags|=1)}static create(t,e,i){return new tz(t,e,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}var tF=((n=tF||(tF={}))[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n);let tI=tF.LTR,tq=tF.RTL;function tj(t){let e=[];for(let i=0;i=e){if(r.level==i)return n;(o<0||(0!=s?s<0?r.frome:t[o].level>r.level))&&(o=n)}}if(o<0)throw RangeError("Index out of range");return o}}let tJ=[];function t0(t){return[new tZ(0,t,0)]}let t1="";class t2{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(l.yy.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+="￿"}readRange(t,e){if(!t)return this;let i=t.parentNode;for(let s=t;;){this.findPointBefore(i,s),this.readNode(s);let o=s.nextSibling;if(o==e)break;let n=T.get(s),r=T.get(o);(n&&r?n.breakAfter:(n?n.breakAfter:t8(s))||t8(o)&&("BR"!=s.nodeName||s.cmIgnore))&&this.lineBreak(),s=o}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let s=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let n=-1,r=1,l;if(this.lineSeparator?(n=e.indexOf(this.lineSeparator,s),r=this.lineSeparator.length):(l=o.exec(e))&&(n=l.index,r=l[0].length),this.append(e.slice(s,n<0?e.length:n)),n<0)break;if(this.lineBreak(),r>1)for(let h of this.points)h.node==t&&h.pos>this.text.length&&(h.pos-=r-1);s=n+r}}readNode(t){if(t.cmIgnore)return;let e=T.get(t),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(t,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(3==t.nodeType?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+Math.min(e,i.offset))}}function t8(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}class t3{constructor(t,e){this.node=t,this.offset=e,this.pos=-1}}class t9 extends T{constructor(t){super(),this.view=t,this.compositionDeco=tn.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new td],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new tW(0,0,0,t.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(t){var e,i,s;let o,n=t.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:t,toA:e})=>ethis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=tn.none:(t.transactions.length||this.dirty)&&(this.compositionDeco=function(t,e){let i=t4(t);if(!i)return tn.none;let{from:s,to:o,node:n,text:r}=i,l=e.mapPos(s,1),h=Math.max(l,e.mapPos(o,-1)),{state:a}=t,c=3==n.nodeType?n.nodeValue:new t2([],a).readRange(n.firstChild,null).text;if(h-l{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=K.chrome||K.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(t),this.dirty=0,t&&(t.written||i.selectionRange.focusNode!=t.node)&&(this.forceSelection=!0),this.dom.style.height=""});let s=[];if(this.view.viewport.from||this.view.viewport.to=0?t[s]:null;if(!o)break;let{fromA:n,toA:r,fromB:l,toB:h}=o,{content:a,breakAtStart:c,openStart:d,openEnd:u}=tf.build(this.view.state.doc,l,h,this.decorations,this.dynamicDecorationMap),{i:f,off:p}=i.findPos(r,1),{i:m,off:g}=i.findPos(n,-1);E(this,m,g,f,p,a,c,d,u)}}updateSelection(t=!1,e=!1){var i;if((t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange(),!(e||this.mayControlSelection()))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,n=this.domAtPos(o.anchor),r=o.empty?n:this.domAtPos(o.head);if(K.gecko&&o.empty&&1==(i=n).node.nodeType&&i.node.firstChild&&(0==i.offset||"false"==i.node.childNodes[i.offset-1].contentEditable)&&(i.offset==i.node.childNodes.length||"false"==i.node.childNodes[i.offset].contentEditable)){let l=document.createTextNode("");this.view.observer.ignore(()=>n.node.insertBefore(l,n.node.childNodes[n.offset]||null)),n=r=new A(l,0),s=!0}let h=this.view.observer.selectionRange;!s&&h.focusNode&&p(n.node,n.offset,h.anchorNode,h.anchorOffset)&&p(r.node,r.offset,h.focusNode,h.focusOffset)||(this.view.observer.ignore(()=>{K.android&&K.chrome&&this.dom.contains(h.focusNode)&&function(t,e){for(let i=t;i&&i!=e;i=i.assignedSlot||i.parentNode)if(1==i.nodeType&&"false"==i.contentEditable)return!0;return!1}(h.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let t=c(this.view.root);if(t){if(o.empty){if(K.gecko){var e,i;let s=(e=n.node,i=n.offset,1!=e.nodeType?0:(i&&"false"==e.childNodes[i-1].contentEditable?1:0)|(io.head&&([n,r]=[r,n]),d.setEnd(r.node,r.offset),d.setStart(n.node,n.offset),t.removeAllRanges(),t.addRange(d)}}}),this.view.observer.setSelectionRange(n,r)),this.impreciseAnchor=n.precise?null:new A(h.anchorNode,h.anchorOffset),this.impreciseHead=r.precise?null:new A(h.focusNode,h.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:t}=this,e=t.state.selection.main,i=c(t.root),{anchorNode:s,anchorOffset:o}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let n=td.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let l=this.coordsAt(e.head,-1),h=this.coordsAt(e.head,1);if(!l||!h||l.bottom>h.top)return;let a=this.domAtPos(e.head+e.assoc);i.collapse(a.node,a.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let d=t.observer.selectionRange;t.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=e.from&&i.collapse(s,o)}mayControlSelection(){let t=this.view.root.activeElement;return t==this.dom||u(this.dom,this.view.observer.selectionRange)&&!(t&&this.dom.contains(t))}nearest(t){for(let e=t;e;){let i=T.get(e);if(i&&i.rootView==this)return i;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;en||t==n&&o.type!=to.WidgetBefore&&o.type!=to.WidgetAfter&&(!s||2==e||this.children[s-1].breakAfter||this.children[s-1].type==to.WidgetBefore&&e>-2))return o.coordsAt(t-n,e);i=n}}measureVisibleLineHeights(t){let e=[],{from:i,to:s}=t,o=this.view.contentDOM.clientWidth,n=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,r=-1,l=this.view.textDirection==tF.LTR;for(let h=0,a=0;as)break;if(h>=i){let u=c.dom.getBoundingClientRect();if(e.push(u.height),n){let p=c.dom.lastChild,m=p?f(p):[];if(m.length){let g=m[m.length-1],v=l?g.right-u.left:u.right-g.left;v>r&&(r=v,this.minWidth=o,this.minWidthFrom=h,this.minWidthTo=d)}}}h=d+c.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?tF.RTL:tF.LTR}measureTextSize(){for(let t of this.children)if(t instanceof td){let e=t.measureTextSize();if(e)return e}let i=document.createElement("div"),s,o;return i.className="cm-line",i.style.width="99999px",i.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(i);let t=f(i.firstChild)[0];s=i.getBoundingClientRect().height,o=t?t.width/27:7,i.remove()}),{lineHeight:s,charWidth:o}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new R(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let o=s==e.viewports.length?null:e.viewports[s],n=o?o.from-1:this.length;if(n>i){let r=e.lineBlockAt(n).bottom-e.lineBlockAt(i).top;t.push(tn.replace({widget:new t5(r),block:!0,inclusive:!0,isBlockGap:!0}).range(i,n))}if(!o)break;i=o.to+1}return tn.set(t)}updateDeco(){let t=this.view.state.facet(tV).map((t,e)=>(this.dynamicDecorationMap[e]="function"==typeof t)?t(this.view):t);for(let e=t.length;ee.anchor?-1:1),s;if(!i)return;!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let o=0,n=0,r=0,l=0;for(let h of this.view.state.facet(tN).map(t=>t(this.view)))if(h){let{left:a,right:c,top:d,bottom:u}=h;null!=a&&(o=Math.max(o,a)),null!=c&&(n=Math.max(n,c)),null!=d&&(r=Math.max(r,d)),null!=u&&(l=Math.max(l,u))}let f={left:i.left-o,top:i.top-r,right:i.right+n,bottom:i.bottom+l};!function(t,e,i,s,o,n,r,l){let h=t.ownerDocument,a=h.defaultView||window;for(let c=t;c;)if(1==c.nodeType){let d,u=c==h.body;if(u)d={left:0,right:a.innerWidth,top:0,bottom:a.innerHeight};else{if(c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let f=c.getBoundingClientRect();d={left:f.left,right:f.left+c.clientWidth,top:f.top,bottom:f.top+c.clientHeight}}let p=0,m=0;if("nearest"==o)e.top0&&e.bottom>d.bottom+m&&(m=e.bottom-d.bottom+m+r)):e.bottom>d.bottom&&(m=e.bottom-d.bottom+r,i<0&&e.top-m0&&e.right>d.right+p&&(p=e.right-d.right+p+n)):e.right>d.right&&(p=e.right-d.right+n,i<0&&e.leftMath.abs(w-p)&&(s="nearest"),b&&1>Math.abs(b-m)&&(o="nearest")}}if(u)break;c=c.assignedSlot||c.parentNode}else if(11==c.nodeType)c=c.host;else break}(this.view.scrollDOM,f,e.head0&&i<=0)e=v(t=t.childNodes[e-1]);else{if(1!=t.nodeType||!(e=0))return null;t=t.childNodes[e],e=0}}}class et{constructor(){this.changes=[]}compareRange(t,e){tc(t,e,this.changes)}comparePoint(t,e){tc(t,e,this.changes)}}function ee(t,e){return t.tope.top+1}function ei(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function eo(t,e,i){let s=t.nodeValue.length,o=-1,n=1e9,r=0;for(let l=0;li?c.top-i:i-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&d=(c.left+c.right)/2,f=u;if((K.chrome||K.gecko)&&M(t,l).getBoundingClientRect().left==c.right&&(f=!u),d<=0)return{node:t,offset:l+(f?1:0)};o=l+(f?1:0),n=d}}}return{node:t,offset:o>-1?o:r>0?t.nodeValue.length:0}}function en(t,{x:e,y:i},s,o=-1){var n;let r=t.contentDOM.getBoundingClientRect(),l=r.top+t.viewState.paddingTop,h,{docHeight:a}=t.viewState,c=i-l;if(c<0)return 0;if(c>a)return t.state.doc.length;for(let d=t.defaultLineHeight/2,u=!1;(h=t.elementAtHeight(c)).type!=to.Text;)for(;!((c=o>0?h.bottom+d:h.top-d)>=0)||!(c<=a);){if(u)return s?null:0;u=!0,o=-o}i=l+c;let p=h.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:s?null:er(t,r,h,e,i);let m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(e,i);v&&!t.contentDOM.contains(v)&&(v=null),!v&&(e=Math.max(r.left+1,Math.min(r.right-1,e)),(v=g.elementFromPoint(e,i))&&!t.contentDOM.contains(v)&&(v=null));let w,b=-1;if(v&&(null===(n=t.docView.nearest(v))||void 0===n?void 0:n.isEditable)!=!1){if(m.caretPositionFromPoint){let y=m.caretPositionFromPoint(e,i);y&&({offsetNode:w,offset:b}=y)}else if(m.caretRangeFromPoint){let x=m.caretRangeFromPoint(e,i);x&&({startContainer:w,startOffset:b}=x,(!t.contentDOM.contains(w)||K.safari&&function(t,e,i){let s;if(3!=t.nodeType||e!=(s=t.nodeValue.length))return!1;for(let o=t.nextSibling;o;o=o.nextSibling)if(1!=o.nodeType||"BR"!=o.nodeName)return!1;return M(t,s-1,s).getBoundingClientRect().left>i}(w,b,e)||K.chrome&&function(t,e,i){if(0!=e)return!1;for(let s=t;;){let o=s.parentNode;if(!o||1!=o.nodeType||o.firstChild!=s)return!1;if(o.classList.contains("cm-line"))break;s=o}return i-(1==t.nodeType?t.getBoundingClientRect():M(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(w,b,e))&&(w=void 0))}}if(!w||!t.docView.dom.contains(w)){let S=td.find(t.docView,p);if(!S)return c>h.top+h.height/2?h.to:h.from;({node:w,offset:b}=function t(e,i,s){let o,n,r,l,h,a,c,d,u=!1;for(let p=e.firstChild;p;p=p.nextSibling){let m=f(p);for(let g=0;gi?v.left-i:Math.max(0,i-v.right),x=(w=b).top>s?w.top-s:Math.max(0,s-w.bottom);if(0==y&&0==x)return 3==p.nodeType?eo(p,i,s):t(p,i,s);(!h||d>x||d==x&&c>y)&&(h=p,a=b,c=y,d=x,u=!y||(y>0?g0)),0==y?s>b.bottom&&(!r||r.bottomb.top)&&(n=p,l=b):r&&ee(r,b)?r=es(r,b.bottom):l&&ee(l,b)&&(l=ei(l,b.top))}}if(r&&r.bottom>=s?(h=o,a=r):l&&l.top<=s&&(h=n,a=l),!h)return{node:e,offset:0};let S=Math.max(a.left,Math.min(a.right,i));if(3==h.nodeType)return eo(h,S,s);if(u&&"false"!=h.contentEditable)return t(h,S,s);let M=Array.prototype.indexOf.call(e.childNodes,h)+(i>=(a.left+a.right)/2?1:0);return{node:e,offset:M}}(S.dom,e,i))}return t.docView.posFromDOM(w,b)}function er(t,e,i,s,o){let n=Math.round((s-e.left)*t.defaultCharacterWidth);t.lineWrapping&&i.height>1.5*t.defaultLineHeight&&(n+=Math.floor((o-i.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);let r=t.state.sliceDoc(i.from,i.to);return i.from+(0,l.Gz)(r,n,t.state.tabSize)}function el(t,e,i,s){let o=t.state.doc.lineAt(e.head),n=t.bidiSpans(o),r=t.textDirectionAt(o.from);for(let h=e,a=null;;){let c=function(t,e,i,s,o){var n;let r=s.head-t.from,h=-1;if(0==r){if(!o||!t.length)return null;e[0].level!=i&&(r=e[0].side(!1,i),h=0)}else if(r==t.length){if(o)return null;let a=e[e.length-1];a.level!=i&&(r=a.side(!0,i),h=e.length-1)}h<0&&(h=tZ.find(e,r,null!==(n=s.bidiLevel)&&void 0!==n?n:-1,s.assoc));let c=e[h];r==c.side(o,i)&&(r=(c=e[h+=o?1:-1]).side(!o,i));let d=o==(c.dir==i),u=(0,l.cp)(t.text,r,d);if(t1=t.text.slice(Math.min(r,u),Math.max(r,u)),u!=c.side(o,i))return l.jT.cursor(u+t.from,d?-1:1,c.level);let f=h==(o?e.length-1:0)?null:e[h+(o?1:-1)];return f||c.level==i?f&&f.levele(t));for(;;){let o=!1;for(let n of s)n.between(i.from-1,i.from+1,(t,s,n)=>{i.from>t&&i.fromi.from?l.jT.cursor(t,1):l.jT.cursor(s,-1),o=!0)});if(!o)return i}}class ea{constructor(t){for(let e in this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null,em){let i=em[e];t.contentDOM.addEventListener(e,s=>{!(!ep(t,s)||this.ignoreDuringComposition(s))&&("keydown"==e&&this.keydown(t,s)||(this.mustFlushObserver(s)&&t.observer.forceFlush(),this.runCustomHandlers(e,t,s)?s.preventDefault():i(t,s)))},eg[e]),this.registeredEvents.push(e)}K.chrome&&102==K.chrome_version&&t.scrollDOM.addEventListener("wheel",()=>{this.chromeScrollHack<0?t.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout(()=>{this.chromeScrollHack=-1,t.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=t.hasFocus,K.safari&&t.contentDOM.addEventListener("input",()=>null)}setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}ensureHandlers(t,e){var i;let s;for(let o of(this.customHandlers=[],e))if(s=null===(i=o.update(t).spec)||void 0===i?void 0:i.domEventHandlers)for(let n in this.customHandlers.push({plugin:o.value,handlers:s}),s)0>this.registeredEvents.indexOf(n)&&"scroll"!=n&&(this.registeredEvents.push(n),t.contentDOM.addEventListener(n,e=>{ep(t,e)&&this.runCustomHandlers(n,t,e)&&e.preventDefault()}))}runCustomHandlers(t,e,i){for(let s of this.customHandlers){let o=s.handlers[t];if(o)try{if(o.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(n){tA(e.state,n)}}return!1}runScrollHandlers(t,e){for(let i of(this.lastScrollTop=t.scrollDOM.scrollTop,this.lastScrollLeft=t.scrollDOM.scrollLeft,this.customHandlers)){let s=i.handlers.scroll;if(s)try{s.call(i.plugin,e,t)}catch(o){tA(t.state,o)}}}keydown(t,e){let i;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),!!(9==e.keyCode&&Date.now()t.keyCode==e.keyCode))&&!e.ctrlKey||ed.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey))&&(this.pendingIOSKey=i||e,setTimeout(()=>this.flushIOSKey(t),250),!0))}flushIOSKey(t){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,k(t.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(K.safari&&!K.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(t){return"keydown"==t.type&&229!=t.keyCode}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}let ec=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],ed="dthko",eu=[16,17,18,20,91,92,224,225];class ef{constructor(t,e,i,s){let o,n;this.view=t,this.style=i,this.mustSelect=s,this.lastEvent=e;let r=t.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(l.yy.allowMultipleSelections)&&((o=t.state.facet(tg)).length?o[0](e):K.mac?e.metaKey:e.ctrlKey),this.dragMove=(n=t.state.facet(tv)).length?n[0](e):K.mac?!e.altKey:!e.ctrlKey,this.dragging=!!function(t,e){let{main:i}=t.state.selection;if(i.empty)return!1;let s=c(t.root);if(!s||0==s.rangeCount)return!0;let o=s.getRangeAt(0).getClientRects();for(let n=0;n=e.clientX&&r.top<=e.clientY&&r.bottom>=e.clientY)return!0}return!1}(t,e)&&1==eD(e)&&null,!1===this.dragging&&(e.preventDefault(),this.select(e))}move(t){if(0==t.buttons)return this.destroy();!1===this.dragging&&this.select(this.lastEvent=t)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}select(t){let e=this.style.get(t,this.extend,this.multiple);(this.mustSelect||!e.eq(this.view.state.selection)||e.main.assoc!=this.view.state.selection.main.assoc)&&this.view.dispatch({selection:e,userEvent:"select.pointer",scrollIntoView:!0}),this.mustSelect=!1}update(t){t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function ep(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i=e.target,s;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(s=T.get(i))&&s.ignoreEvent(e))return!1;return!0}let em=Object.create(null),eg=Object.create(null),ev=K.ie&&K.ie_version<15||K.ios&&K.webkit_version<604;function ew(t,e){let{state:i}=t,s,o=1,n=i.toText(e),r=n.lines==i.selection.ranges.length;if(null!=eO&&i.selection.ranges.every(t=>t.empty)&&eO==n.toString()){let h=-1;s=i.changeByRange(t=>{let s=i.doc.lineAt(t.from);if(s.from==h)return{range:t};h=s.from;let a=i.toText((r?n.line(o++).text:e)+i.lineBreak);return{changes:{from:s.from,insert:a},range:l.jT.cursor(t.from+a.length)}})}else s=r?i.changeByRange(t=>{let e=n.line(o++);return{changes:{from:t.from,to:t.to,insert:e.text},range:l.jT.cursor(t.from+e.length)}}):i.replaceSelection(n);t.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}function eb(t,e,i,s){if(1==s)return l.jT.cursor(e,i);if(2==s)return function(t,e,i=1){let s=t.charCategorizer(e),o=t.doc.lineAt(e),n=e-o.from;if(0==o.length)return l.jT.cursor(e);0==n?i=1:n==o.length&&(i=-1);let r=n,h=n;i<0?r=(0,l.cp)(o.text,n,!1):h=(0,l.cp)(o.text,n);let a=s(o.text.slice(r,h));for(;r>0;){let c=(0,l.cp)(o.text,r,!1);if(s(o.text.slice(c,r))!=a)break;r=c}for(;h{t.inputState.setSelectionOrigin("select"),27==e.keyCode?t.inputState.lastEscPress=Date.now():0>eu.indexOf(e.keyCode)&&(t.inputState.lastEscPress=0)},em.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},em.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},eg.touchstart=eg.touchmove={passive:!0},em.mousedown=(t,e)=>{let i,s,o,n,r;if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return;let h=null;for(let a of t.state.facet(tw))if(h=a(t,e))break;if(h||0!=e.button||(i=eS(t,e),s=eD(e),o=t.state.selection,n=i,r=e,h={update(t){t.docChanged&&(i.pos=t.changes.mapPos(i.pos),o=o.map(t.changes),r=null)},get(e,h,a){let c;r&&e.clientX==r.clientX&&e.clientY==r.clientY?c=n:(c=n=eS(t,e),r=e);let d=eb(t,c.pos,c.bias,s);if(i.pos!=c.pos&&!h){let u=eb(t,i.pos,i.bias,s),f=Math.min(u.from,d.from),p=Math.max(u.to,d.to);d=f1&&o.ranges.some(t=>t.eq(d))?function(t,e){for(let i=0;;i++)if(t.ranges[i].eq(e))return l.jT.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}(o,d):a?o.addRange(d):l.jT.create([d])}}),h){let c=t.root.activeElement!=t.contentDOM;c&&t.observer.ignore(()=>S(t.contentDOM)),t.inputState.startMouseSelection(new ef(t,e,h,c))}};let ey=(t,e)=>t>=e.top&&t<=e.bottom,ex=(t,e,i)=>ey(e,i)&&t>=i.left&&t<=i.right;function eS(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:i,bias:function(t,e,i,s){let o=td.find(t.docView,e);if(!o)return 1;let n=e-o.posAtStart;if(0==n)return 1;if(n==o.length)return -1;let r=o.coordsAt(n,-1);if(r&&ex(i,s,r))return -1;let l=o.coordsAt(n,1);return l&&ex(i,s,l)?1:r&&ey(s,r)?-1:1}(t,i,e.clientX,e.clientY)}}let eM=K.ie&&K.ie_version<=11,ek=null,eC=0,eA=0;function eD(t){if(!eM)return t.detail;let e=ek,i=eA;return ek=t,eA=Date.now(),eC=!e||i>Date.now()-400&&2>Math.abs(e.clientX-t.clientX)&&2>Math.abs(e.clientY-t.clientY)?(eC+1)%3:1}function eT(t,e,i,s){if(!i)return;let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1);e.preventDefault();let{mouseSelection:n}=t.inputState,r=s&&n&&n.dragging&&n.dragMove?{from:n.dragging.from,to:n.dragging.to}:null,l={from:o,insert:i},h=t.state.changes(r?[r,l]:l);t.focus(),t.dispatch({changes:h,selection:{anchor:h.mapPos(o,-1),head:h.mapPos(o,1)},userEvent:r?"move.drop":"input.drop"})}em.dragstart=(t,e)=>{let{selection:{main:i}}=t.state,{mouseSelection:s}=t.inputState;s&&(s.dragging=i),e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(i.from,i.to)),e.dataTransfer.effectAllowed="copyMove")},em.drop=(t,e)=>{if(!e.dataTransfer)return;if(t.state.readOnly)return e.preventDefault();let i=e.dataTransfer.files;if(i&&i.length){e.preventDefault();let s=Array(i.length),o=0,n=()=>{++o==i.length&&eT(t,e,s.filter(t=>null!=t).join(t.state.lineBreak),!1)};for(let r=0;r{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(s[r]=l.result),n()},l.readAsText(i[r])}}else eT(t,e,e.dataTransfer.getData("Text"),!0)},em.paste=(t,e)=>{if(t.state.readOnly)return e.preventDefault();t.observer.flush();let i=ev?null:e.clipboardData;i?(ew(t,i.getData("text/plain")),e.preventDefault()):function(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{t.focus(),i.remove(),ew(t,i.value)},50)}(t)};let eO=null;function eR(t){setTimeout(()=>{t.hasFocus!=t.inputState.notifiedFocused&&t.update([])},10)}em.copy=em.cut=(t,e)=>{let{text:i,ranges:s,linewise:o}=function(t){let e=[],i=[],s=!1;for(let o of t.selection.ranges)o.empty||(e.push(t.sliceDoc(o.from,o.to)),i.push(o));if(!e.length){let n=-1;for(let{from:r}of t.selection.ranges){let l=t.doc.lineAt(r);l.number>n&&(e.push(l.text),i.push({from:l.from,to:Math.min(t.doc.length,l.to+1)})),n=l.number}s=!0}return{text:e.join(t.lineBreak),ranges:i,linewise:s}}(t.state);if(!i&&!o)return;eO=o?i:null;let n=ev?null:e.clipboardData;n?(e.preventDefault(),n.clearData(),n.setData("text/plain",i)):function(t,e){let i=t.dom.parentNode;if(!i)return;let s=i.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.value=e,s.focus(),s.selectionEnd=e.length,s.selectionStart=0,setTimeout(()=>{s.remove(),t.focus()},50)}(t,i),"cut"!=e.type||t.state.readOnly||t.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"})},em.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),eR(t)},em.blur=t=>{t.observer.clearSelectionRange(),eR(t)},em.compositionstart=em.compositionupdate=t=>{null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},em.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,K.chrome&&K.android&&t.observer.flushSoon(),setTimeout(()=>{t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},em.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},em.beforeinput=(t,e)=>{var i;let s;if(K.chrome&&K.android&&(s=ec.find(t=>t.inputType==e.inputType))&&(t.observer.delayAndroidKey(s.key,s.keyCode),"Backspace"==s.key||"Delete"==s.key)){let o=(null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0;setTimeout(()=>{var e;((null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0)>o+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};let eE=["pre-wrap","normal","pre-line","break-spaces"];class eB{constructor(t){this.lineWrapping=t,this.doc=l.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength)),this.lineHeight*i}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return eE.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,r=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=n;if(this.lineWrapping=n,this.lineHeight=e,this.charWidth=i,this.lineLength=s,r){this.heightSamples={};for(let l=0;l0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(t.heightChanged=!0),this.height=e)}replace(t,e,i){return eN.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let o=this;for(let n=s.length-1;n>=0;n--){let{fromA:r,toA:l,fromB:h,toB:a}=s[n],c=o.lineAt(r,eH.ByPosNoHeight,e,0,0),d=c.to>=l?c:o.lineAt(l,eH.ByPosNoHeight,e,0,0);for(a+=d.to-l,l=d.to;n>0&&c.from<=s[n-1].toA;)r=s[n-1].fromA,h=s[n-1].fromB,n--,r2*o){let n=t[e-1];n.break?t.splice(--e,1,n.left,null,n.right):t.splice(--e,1,n.left,n.right),i+=1+n.break,s-=n.size}else if(o>2*s){let r=t[i];r.break?t.splice(i,1,r.left,null,r.right):t.splice(i,1,r.left,r.right),i+=2+r.break,o-=r.size}else break}else if(s=o&&n(this.blockAt(0,i,s,o))}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more&&this.setHeight(t,s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class eW extends eP{constructor(t,e){super(t,e,to.Text),this.collapsed=0,this.widgetHeight=0}replace(t,e,i){let s=i[0];return 1==i.length&&(s instanceof eW||s instanceof ez&&4&s.flags)&&10>Math.abs(this.length-s.length)?(s instanceof ez?s=new eW(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):eN.of(i)}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more?this.setHeight(t,s.heights[s.index++]):(i||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ez extends eN{constructor(t){super(t,0)}lines(t,e){let i=t.lineAt(e).number,s=t.lineAt(e+this.length).number;return{firstLine:i,lastLine:s,lineHeight:this.height/(s-i+1)}}blockAt(t,e,i,s){let{firstLine:o,lastLine:n,lineHeight:r}=this.lines(e,s),l=Math.max(0,Math.min(n-o,Math.floor((t-i)/r))),{from:h,length:a}=e.line(o+l);return new eV(h,a,i+r*l,r,to.Text)}lineAt(t,e,i,s,o){if(e==eH.ByHeight)return this.blockAt(t,i,s,o);if(e==eH.ByPosNoHeight){let{from:n,to:r}=i.lineAt(t);return new eV(n,r-n,0,0,to.Text)}let{firstLine:l,lineHeight:h}=this.lines(i,o),{from:a,length:c,number:d}=i.lineAt(t);return new eV(a,c,s+h*(d-l),h,to.Text)}forEachLine(t,e,i,s,o,n){let{firstLine:r,lineHeight:l}=this.lines(i,o);for(let h=Math.max(t,o),a=Math.min(o+this.length,e);h<=a;){let c=i.lineAt(h);h==t&&(s+=l*(c.number-r)),n(new eV(c.from,c.length,s,l,to.Text)),s+=l,h=c.to+1}}replace(t,e,i){let s=this.length-e;if(s>0){let o=i[i.length-1];o instanceof ez?i[i.length-1]=new ez(o.length+s):i.push(null,new ez(s-1))}if(t>0){let n=i[0];n instanceof ez?i[0]=new ez(t+n.length):i.unshift(new ez(t-1),null)}return eN.of(i)}decomposeLeft(t,e){e.push(new ez(t-1),null)}decomposeRight(t,e){e.push(null,new ez(this.length-t-1))}updateHeight(t,e=0,i=!1,s){let o=e+this.length;if(s&&s.from<=e+this.length&&s.more){let n=[],r=Math.max(e,s.from),l=-1,h=t.heightChanged;for(s.from>e&&n.push(new ez(s.from-e-1).updateHeight(t,e));r<=o&&s.more;){let a=t.doc.lineAt(r).length;n.length&&n.push(null);let c=s.heights[s.index++];-1==l?l=c:Math.abs(c-l)>=.001&&(l=-2);let d=new eW(a,c);d.outdated=!1,n.push(d),r+=a+1}r<=o&&n.push(null,new ez(o-r).updateHeight(t,r));let u=eN.of(n);return t.heightChanged=h||l<0||Math.abs(u.height-this.height)>=.001||Math.abs(l-this.lines(t.doc,e).lineHeight)>=.001,u}return(i||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class eF extends eN{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return 1&this.flags}blockAt(t,e,i,s){let o=i+this.left.height;return tr))return h;let a=e==eH.ByPosNoHeight?eH.ByPosNoHeight:eH.ByPos;return l?h.join(this.right.lineAt(r,a,i,n,r)):this.left.lineAt(r,a,i,s,o).join(h)}forEachLine(t,e,i,s,o,n){let r=s+this.left.height,l=o+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,e,i,r,l,n);else{let h=this.lineAt(l,eH.ByPos,i,s,o);t=t&&h.from<=e&&n(h),e>h.to&&this.right.forEachLine(h.to+1,e,i,r,l,n)}}replace(t,e,i){let s=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let o=[];t>0&&this.decomposeLeft(t,o);let n=o.length;for(let r of i)o.push(r);if(t>0&&eI(o,n-1),e=++i&&e.push(null),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);t2*e.size||e.size>2*t.size?eN.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,s){let{left:o,right:n}=this,r=e+o.length+this.break,l=null;return(s&&s.from<=e+o.length&&s.more?l=o=o.updateHeight(t,e,i,s):o.updateHeight(t,e,i),s&&s.from<=r+n.length&&s.more?l=n=n.updateHeight(t,r,i,s):n.updateHeight(t,r,i),l)?this.balanced(o,n):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function eI(t,e){let i,s;null==t[e]&&(i=t[e-1])instanceof ez&&(s=t[e+1])instanceof ez&&t.splice(e-1,3,new ez(i.length+1+s.length))}class eq{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let i=Math.min(e,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof eW?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new eW(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=5)&&this.addLineDeco(s,o)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new eW(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new ez(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof eW)return t;let e=new eW(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine(),t.type!=to.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,t.type!=to.WidgetBefore&&(this.covering=t)}addLineDeco(t,e){let i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,t),this.writtenTo=this.pos=this.pos+e}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof eW||this.isCovered?(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&"visible"!=d.overflow){let u=c.getBoundingClientRect();n=Math.max(n,u.left),r=Math.min(r,u.right),l=Math.max(l,u.top),h=a==t.parentNode?u.bottom:Math.min(h,u.bottom)}a="absolute"==d.position||"fixed"==d.position?c.offsetParent:c.parentNode}else if(11==a.nodeType)a=a.host;else break;return{left:n-i.left,right:Math.max(n,r)-i.left,top:l-(i.top+e),bottom:Math.max(l,h)-(i.top+e)}}function e$(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}class eG{constructor(t,e,i){this.from=t,this.to=e,this.size=i}static same(t,e){if(t.length!=e.length)return!1;for(let i=0;i"function"!=typeof t&&"cm-lineWrapping"==t.class);this.heightOracle=new eB(e),this.stateDeco=t.facet(tV).filter(t=>"function"!=typeof t),this.heightMap=eN.empty().applyChanges(this.stateDeco,l.xv.empty,this.heightOracle.setDoc(t.doc),[new tW(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=tn.set(this.lineGaps.map(t=>t.draw(!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some(({from:t,to:e})=>s>=t&&s<=e)){let{from:o,to:n}=this.lineBlockAt(s);t.push(new eU(o,n))}}this.viewports=t.sort((t,e)=>t.from-e.from),this.scaler=this.heightMap.height<=7e6?eZ:new eJ(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,t=>{this.viewportLines.push(1==this.scaler.scale?t:e0(t,this.scaler))})}update(t,e=null){var i,s;let o;this.state=t.state;let n=this.stateDeco;this.stateDeco=this.state.facet(tV).filter(t=>"function"!=typeof t);let r=t.changedRanges,h=tW.extendWithRanges(r,(i=this.stateDeco,s=t?t.changes:l.as.empty(this.state.doc.length),o=new ej,l.Xs.compare(n,i,s,o,0),o.changes)),a=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),h),this.heightMap.height!=a&&(t.flags|=2);let c=h.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headc.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,e));let d=!t.changes.empty||2&t.flags||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),d&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(tM)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),s=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?tF.RTL:tF.LTR;let n=this.heightOracle.mustRefreshForWrapping(o),r=n||this.mustMeasureContent||this.contentDOMHeight!=e.clientHeight;this.contentDOMHeight=e.clientHeight,this.mustMeasureContent=!1;let h=0,a=0,c=parseInt(i.paddingTop)||0,d=parseInt(i.paddingBottom)||0;(this.paddingTop!=c||this.paddingBottom!=d)&&(this.paddingTop=c,this.paddingBottom=d,h|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(s.lineWrapping&&(r=!0),this.editorWidth=t.scrollDOM.clientWidth,h|=8);let u=(this.printing?e$:eK)(e,this.paddingTop),f=u.top-this.pixelViewport.top,p=u.bottom-this.pixelViewport.bottom;this.pixelViewport=u;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(r=!0)),!this.inView&&!this.scrollTarget)return 0;let g=e.clientWidth;if((this.contentDOMWidth!=g||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=g,this.editorHeight=t.scrollDOM.clientHeight,h|=8),r){let v=t.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(v)&&(n=!0),n||s.lineWrapping&&Math.abs(g-this.contentDOMWidth)>s.charWidth){let{lineHeight:w,charWidth:b}=t.docView.measureTextSize();(n=w>0&&s.refresh(o,w,b,g/b,v))&&(t.docView.minWidth=0,h|=8)}for(let y of(f>0&&p>0?a=Math.max(f,p):f<0&&p<0&&(a=Math.min(f,p)),s.heightChanged=!1,this.viewports)){let x=y.from==this.viewport.from?v:t.docView.measureVisibleLineHeights(y);this.heightMap=(n?eN.empty().applyChanges(this.stateDeco,l.xv.empty,this.heightOracle,[new tW(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(s,0,n,new eL(y.from,x))}s.heightChanged&&(h|=2)}let S=!this.viewportIsAppropriate(this.viewport,a)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return S&&(this.viewport=this.getViewport(a,this.scrollTarget)),this.updateForViewport(),(2&h||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(n?[]:this.lineGaps,t)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),s=this.heightMap,o=this.state.doc,{visibleTop:n,visibleBottom:r}=this,l=new eU(s.lineAt(n-1e3*i,eH.ByHeight,o,0,0).from,s.lineAt(r+(1-i)*1e3,eH.ByHeight,o,0,0).to);if(e){let{head:h}=e.range;if(hl.to){let a=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),c=s.lineAt(h,eH.ByPos,o,0,0),d;d="center"==e.y?(c.top+c.bottom)/2-a/2:"start"==e.y||"nearest"==e.y&&h=r+Math.max(10,Math.min(i,250)))&&s>n-2e3&&o>1,n=s<<1;if(this.defaultTextDirection!=tF.LTR&&!i)return[];let r=[],h=(s,n,a,c)=>{if(n-ss&&ft.from>=a.from&&t.to<=a.to&&Math.abs(t.from-s)t.frome));if(!p){if(nt.from<=n&&t.to>=n)){let m=e.moveToLineBoundary(l.jT.cursor(n),!1,!0).head;m>s&&(n=m)}p=new eG(s,n,this.gapSize(a,s,n,c))}r.push(p)};for(let a of this.viewportLines){let c,d;if(a.lengtho&&(s.push({from:o,to:t}),n+=t-o),o=e}},20),oa.from&&h(a.from,c,a,u),dt.draw(this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];l.Xs.spans(t,this.viewport.from,this.viewport.to,{span(t,i){e.push({from:t,to:i})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some((t,i)=>t.from!=e[i].from||t.to!=e[i].to);return this.visibleRanges=e,i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||e0(this.heightMap.lineAt(t,eH.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(t){return e0(this.heightMap.lineAt(this.scaler.fromDOM(t),eH.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(t){return e0(this.heightMap.blockAt(this.scaler.fromDOM(t),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class eU{constructor(t,e){this.from=t,this.to=e}}function eY({total:t,ranges:e},i){if(i<=0)return e[0].from;if(i>=1)return e[e.length-1].to;let s=Math.floor(t*i);for(let o=0;;o++){let{from:n,to:r}=e[o],l=r-n;if(s<=l)return n+s;s-=l}}function eQ(t,e){let i=0;for(let{from:s,to:o}of t.ranges){if(e<=o){i+=e-s;break}i+=o-s}return i/t.total}let eZ={toDOM:t=>t,fromDOM:t=>t,scale:1};class eJ{constructor(t,e,i){let s=0,o=0,n=0;for(let r of(this.viewports=i.map(({from:i,to:o})=>{let n=e.lineAt(i,eH.ByPos,t,0,0).top,r=e.lineAt(o,eH.ByPos,t,0,0).bottom;return s+=r-n,{from:i,to:o,top:n,bottom:r,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(e.height-s),this.viewports))r.domTop=n+(r.top-o)*this.scale,n=r.domBottom=r.domTop+(r.bottom-r.top),o=r.bottom}toDOM(t){for(let e=0,i=0,s=0;;e++){let o=ee0(t,e)):t.type)}let e1=l.r$.define({combine:t=>t.join(" ")}),e2=l.r$.define({combine:t=>t.indexOf(!0)>-1}),e8=h.V.newName(),e3=h.V.newName(),e9=h.V.newName(),e5={"&light":"."+e3,"&dark":"."+e9};function e4(t,e,i){return new h.V(e,{finish:e=>/&/.test(e)?e.replace(/&\w*/,e=>{if("&"==e)return t;if(!i||!i[e])throw RangeError(`Unsupported selector: ${e}`);return i[e]}):t+" "+e})}let e6=e4("."+e8,{"&.cm-editor":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},e5);class e7{constructor(t,e,i,s){this.typeOver=s,this.bounds=null,this.text="";let{impreciseHead:o,impreciseAnchor:n}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let r=o||n?[]:function(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}=t.observer.selectionRange;return i&&(e.push(new t3(i,s)),(o!=i||n!=s)&&e.push(new t3(o,n))),e}(t),h=new t2(r,t.state);h.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=h.text,this.newSel=function(t,e){if(0==t.length)return null;let i=t[0].pos,s=2==t.length?t[1].pos:i;return i>-1&&s>-1?l.jT.single(i+e,s+e):null}(r,this.bounds.from)}else{let a=t.observer.selectionRange,c=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!d(t.contentDOM,a.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(a.focusNode,a.focusOffset),u=n&&n.node==a.anchorNode&&n.offset==a.anchorOffset||!d(t.contentDOM,a.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(a.anchorNode,a.anchorOffset);this.newSel=l.jT.single(u,c)}}}function it(t,e){let i;let{newSel:s}=e,o=t.state.selection.main;if(e.bounds){let{from:n,to:r}=e.bounds,h=o.from,a=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||K.android&&e.text.length0&&l>0&&t.charCodeAt(r-1)==e.charCodeAt(l-1);)r--,l--;if("end"==s){let h=Math.max(0,n-Math.min(r,l));i-=r+h-n}if(r=r?n-i:0;n-=a,l=n+(l-r),r=n}else if(l=l?n-i:0;n-=c,r=n+(r-l),l=n}return{from:n,toA:r,toB:l}}(t.state.doc.sliceString(n,r,"￿"),e.text,h-n,a);c&&(K.chrome&&13==t.inputState.lastKeyCode&&c.toB==c.from+2&&"￿￿"==e.text.slice(c.from,c.toB)&&c.toB--,i={from:n+c.from,to:n+c.toA,insert:l.xv.of(e.text.slice(c.from,c.toB).split("￿"))})}else s&&(!t.hasFocus||!t.state.facet(tD)||s.main.eq(o))&&(s=null);if(!i&&!s)return!1;if(!i&&e.typeOver&&!o.empty&&s&&s.main.empty?i={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,o.to)}:i&&i.from>=o.from&&i.to<=o.to&&(i.from!=o.from||i.to!=o.to)&&o.to-o.from-(i.to-i.from)<=4?i={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,o.to))}:(K.mac||K.android)&&i&&i.from==i.to&&i.from==o.head-1&&/^\. ?$/.test(i.insert.toString())?(s&&2==i.insert.length&&(s=l.jT.single(s.main.anchor-1,s.main.head-1)),i={from:o.from,to:o.to,insert:l.xv.of([" "])}):K.chrome&&i&&i.from==i.to&&i.from==o.head&&"\n "==i.insert.toString()&&t.lineWrapping&&(s&&(s=l.jT.single(s.main.anchor-1,s.main.head-1)),i={from:o.from,to:o.to,insert:l.xv.of([" "])}),i){let d,u=t.state;if(K.ios&&t.inputState.flushIOSKey(t)||K.android&&(i.from==o.from&&i.to==o.to&&1==i.insert.length&&2==i.insert.lines&&k(t.contentDOM,"Enter",13)||i.from==o.from-1&&i.to==o.to&&0==i.insert.length&&k(t.contentDOM,"Backspace",8)||i.from==o.from&&i.to==o.to+1&&0==i.insert.length&&k(t.contentDOM,"Delete",46)))return!0;let f=i.insert.toString();if(t.state.facet(tx).some(e=>e(t,i.from,i.to,f)))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,i.from>=o.from&&i.to<=o.to&&i.to-i.from>=(o.to-o.from)/3&&(!s||s.main.empty&&s.main.from==i.from+i.insert.length)&&t.inputState.composing<0){let p=o.fromi.to?u.sliceDoc(i.to,o.to):"";d=u.replaceSelection(t.state.toText(p+i.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{let g=u.changes(i),v=s&&!u.selection.main.eq(s.main)&&s.main.to<=g.newLength?s.main:void 0;if(u.selection.ranges.length>1&&t.inputState.composing>=0&&i.to<=o.to&&i.to>=o.to-10){let w=t.state.sliceDoc(i.from,i.to),b=t4(t)||t.state.doc.lineAt(o.head),y=o.to-i.to,x=o.to-o.from;d=u.changeByRange(e=>{if(e.from==o.from&&e.to==o.to)return{changes:g,range:v||e.map(g)};let s=e.to-y,n=s-w.length;if(e.to-e.from!=x||t.state.sliceDoc(n,s)!=w||b&&e.to>=b.from&&e.from<=b.to)return{range:e};let r=u.changes({from:n,to:s,insert:i.insert}),h=e.to-o.to;return{changes:r,range:v?l.jT.range(Math.max(0,v.anchor+h),Math.max(0,v.head+h)):e.map(r)}})}else d={changes:g,selection:v&&u.selection.replaceRange(v)}}let S="input.type";return t.composing&&(S+=".compose",t.inputState.compositionFirstChange&&(S+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(d,{scrollIntoView:!0,userEvent:S}),!0}if(!s||s.main.eq(o))return!1;{let M=!1,C="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(M=!0),C=t.inputState.lastSelectionOrigin),t.dispatch({selection:s,scrollIntoView:M,userEvent:C}),!0}}let ie={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},ii=K.ie&&K.ie_version<=11;class is{constructor(t){this.view=t,this.active=!1,this.selectionRange=new y,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let i of e)this.queue.push(i);(K.ie&&K.ie_version<=11||K.ios&&t.composing)&&e.some(t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length)?this.flushSoon():this.flush()}),ii&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate)this.view.requestMeasure()),this.resizeContent.observe(t.contentDOM)),this.addWindowListeners(this.win=t.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runScrollHandlers(this.view,t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,i)=>e!=t[i]))){for(let e of(this.gapIntersection.disconnect(),t))this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(tD)?i.root.activeElement!=this.dom:!u(i.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(t)){e||(this.selectionChanged=!1);return}(K.ie&&K.ie_version<=11||K.android&&K.chrome)&&!i.state.selection.main.empty&&s.focusNode&&p(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=K.safari&&11==t.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t){let e=null;function i(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),!e)return null;let s=e.startContainer,o=e.startOffset,n=e.endContainer,r=e.endOffset,l=t.docView.domAtPos(t.state.selection.main.anchor);return p(l.node,l.offset,n,r)&&([s,o,n,r]=[n,r,s,o]),{anchorNode:s,anchorOffset:o,focusNode:n,focusOffset:r}}(this.view)||c(t.root);if(!e||this.selectionRange.eq(e))return!1;let i=u(this.dom,e);return i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let t=this.delayedAndroidKey;t&&(this.clearDelayedAndroidKey(),!this.flush()&&t.force&&k(this.dom,t.key,t.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}this.delayedAndroidKey&&"Enter"!=t||(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}processRecords(){let t=this.queue;for(let e of this.observer.takeRecords())t.push(e);t.length&&(this.queue=[]);let i=-1,s=-1,o=!1;for(let n of t){let r=this.readMutation(n);r&&(r.typeOver&&(o=!0),-1==i?{from:i,to:s}=r:(i=Math.min(r.from,i),s=Math.max(r.to,s)))}return{from:i,to:s,typeOver:o}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),s=this.selectionChanged&&u(this.dom,this.selectionRange);return t<0&&!s?null:(t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new e7(this.view,t,e,i))}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return!1;let i=this.view.state,s=it(this.view,e);return this.view.state==i&&this.view.update([]),s}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.dirty|=4),"childList"==t.type){let i=io(e,t.previousSibling||t.target.previousSibling,-1),s=io(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,i,s;for(let o of(this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(s=this.resizeContent)||void 0===s||s.disconnect(),this.scrollTargets))o.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function io(t,e,i){for(;e;){let s=T.get(e);if(s&&s.parent==t)return s;let o=e.parentNode;e=o!=t.dom?o:i>0?e.nextSibling:e.previousSibling}return null}class ir{constructor(t={}){for(let e of(this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=t.dispatch||(t=>this.update([t])),this.dispatch=this.dispatch.bind(this),this._root=t.root||function(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(t.parent)||document,this.viewState=new e_(t.state||l.yy.create(t)),this.plugins=this.state.facet(tO).map(t=>new tE(t)),this.plugins))e.update(this);this.observer=new is(this),this.inputState=new ea(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new t9(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),t.parent&&t.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...t){this._dispatch(1==t.length&&t[0]instanceof l.YW?t[0]:this.state.update(...t))}update(t){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let e=!1,i=!1,s,o=this.state;for(let n of t){if(n.startState!=o)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=n.state}if(this.destroyed){this.viewState.state=o;return}let r=this.observer.delayedAndroidKey,h=null;if(r?(this.observer.clearDelayedAndroidKey(),((h=this.observer.readChange())&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(h=null)):this.observer.clear(),o.facet(l.yy.phrases)!=this.state.facet(l.yy.phrases))return this.setState(o);s=tz.create(this,o,t);let a=this.viewState.scrollTarget;try{for(let c of(this.updateState=2,t)){if(a&&(a=a.map(c.changes)),c.scrollIntoView){let{main:d}=c.state.selection;a=new tk(d.empty?d:l.jT.cursor(d.head,d.head>d.anchor?-1:1))}for(let u of c.effects)u.is(tC)&&(a=u.value)}this.viewState.update(s,a),this.bidiCache=ia.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),e=this.docView.update(s),this.state.facet(tP)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(t=>t.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(e1)!=s.state.facet(e1)&&(this.viewState.mustMeasureContent=!0),(e||i||a||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!s.empty)for(let f of this.state.facet(ty))f(s);h&&!it(this,h)&&r.force&&k(this.contentDOM,r.key,r.keyCode)}setState(t){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);for(let s of(this.viewState=new e_(t),this.plugins=t.facet(tO).map(t=>new tE(t)),this.pluginMap.clear(),this.plugins))s.update(this);this.docView=new t9(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(tO),i=t.state.facet(tO);if(e!=i){let s=[];for(let o of i){let n=e.indexOf(o);if(n<0)s.push(new tE(o));else{let r=this.plugins[n];r.mustUpdate=t,s.push(r)}}for(let l of this.plugins)l.mustUpdate!=t&&l.destroy(this);this.plugins=s,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let h of this.plugins)h.mustUpdate=t;for(let a=0;a-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,{scrollHeight:i,scrollTop:s,clientHeight:o}=this.scrollDOM,n=s>i-o-4?i:s;try{for(let r=0;;r++){this.updateState=1;let l=this.viewport,h=this.viewState.lineBlockAtHeight(n),a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(r>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];4&a||([this.measureRequests,c]=[c,this.measureRequests]);let d=c.map(t=>{try{return t.read(this)}catch(e){return tA(this.state,e),ih}}),u=tz.create(this,this.state,[]),f=!1,p=!1;u.flags|=a,e?e.flags|=a:e=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),f=this.docView.update(u));for(let m=0;m1||w<-1)&&(this.scrollDOM.scrollTop+=w,p=!0)}}if(f&&this.docView.updateSelection(!0),this.viewport.from==l.from&&this.viewport.to==l.to&&!p&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let b of this.state.facet(ty))b(e)}get themeClasses(){return e8+" "+(this.state.facet(e2)?e9:e3)+" "+this.state.facet(e1)}updateAttrs(){let t=ic(this,tB,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(tD)?"true":"false",class:"cm-content",style:`${K.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),ic(this,tL,e);let i=this.observer.ignore(()=>{let i=ti(this.contentDOM,this.contentAttrs,e),s=ti(this.dom,this.editorAttrs,t);return i||s});return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let s of i.effects)s.is(ir.announce)&&(e&&(this.announceDOM.textContent=""),e=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=s.value)}mountStyles(){this.styleModules=this.state.facet(tP),h.V.mount(this.root,this.styleModules.concat(e6).reverse())}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(null!=t.key){for(let e=0;ee.spec==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return eh(this,t,el(this,t,e,i))}moveByGroup(t,e){return eh(this,t,el(this,t,e,e=>{var i;let s,o;return i=t.head,o=(s=this.state.charCategorizer(i))(e),t=>{let e=s(t);return o==l.D0.Space&&(o=e),o==e}}))}moveToLineBoundary(t,e,i=!0){return function(t,e,i,s){let o=t.state.doc.lineAt(e.head),n=s&&t.lineWrapping?t.coordsAtPos(e.assoc<0&&e.head>o.from?e.head-1:e.head):null;if(n){let r=t.dom.getBoundingClientRect(),h=t.textDirectionAt(o.from),a=t.posAtCoords({x:i==(h==tF.LTR)?r.right-1:r.left+1,y:(n.top+n.bottom)/2});if(null!=a)return l.jT.cursor(a,i?-1:1)}let c=td.find(t.docView,e.head),d=c?i?c.posAtEnd:c.posAtStart:i?o.to:o.from;return l.jT.cursor(d,i?-1:1)}(this,t,e,i)}moveVertically(t,e,i){return eh(this,t,function(t,e,i,s){let o=e.head,n=i?1:-1;if(o==(i?t.state.doc.length:0))return l.jT.cursor(o,e.assoc);let r=e.goalColumn,h,a=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(o),d=t.documentTop;if(c)null==r&&(r=c.left-a.left),h=n<0?c.top:c.bottom;else{let u=t.viewState.lineBlockAt(o);null==r&&(r=Math.min(a.right-a.left,t.defaultCharacterWidth*(o-u.from))),h=(n<0?u.top:u.bottom)+d}let f=a.left+r,p=null!=s?s:t.defaultLineHeight>>1;for(let m=0;;m+=10){let g=h+(p+m)*n,v=en(t,{x:f,y:g},!1,n);if(ga.bottom||(n<0?vo))return l.jT.cursor(v,e.assoc,void 0,r)}}(this,t,e,i))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=!0){return this.readMeasured(),en(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(t),o=this.bidiSpans(s);return b(i,o[tZ.find(o,t-s.from,-1,e)].dir==tF.LTR==e>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(tS)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>il)return t0(t.length);let e=this.textDirectionAt(t.from);for(let i of this.bidiCache)if(i.from==t.from&&i.dir==e)return i.order;let s=function(t,e){let i=t.length,s=e==tI?1:2,o=e==tI?2:1;if(!t||1==s&&!tQ.test(t))return t0(i);for(let n=0,r=s,l=s;n=0;M-=3)if(tX[M+1]==-x){let k=tX[M+2],C=2&k?s:4&k?1&k?o:s:0;C&&(tJ[v]=tJ[tX[M]]=C),w=M;break}}else if(189==tX.length)break;else tX[w++]=v,tX[w++]=y,tX[w++]=b}else if(2==(S=tJ[v])||1==S){let A=S==s;b=A?0:1;for(let D=w-3;D>=0;D-=3){let T=tX[D+2];if(2&T)break;if(A)tX[D+2]|=2;else{if(4&T)break;tX[D+2]|=4}}}for(let O=0;ON;){let z=W,F=2!=tJ[--W];for(;W>N&&F==(2!=tJ[W-1]);)W--;V.push(new tZ(W,z,F?2:1))}else V.push(new tZ(N,H,0))}else for(let I=0;IDate.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{S(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return tC.of(new tk("number"==typeof t?l.jT.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}static domEventHandlers(t){return tR.define(()=>({}),{eventHandlers:t})}static theme(t,e){let i=h.V.newName(),s=[e1.of(i),tP.of(e4(`.${i}`,t))];return e&&e.dark&&s.push(e2.of(!0)),s}static baseTheme(t){return l.Wl.lowest(tP.of(e4("."+e8,t,e5)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),s=i&&T.get(i)||T.get(t);return(null===(e=null==s?void 0:s.rootView)||void 0===e?void 0:e.view)||null}}ir.styleModule=tP,ir.inputHandler=tx,ir.perLineTextDirection=tS,ir.exceptionSink=tb,ir.updateListener=ty,ir.editable=tD,ir.mouseSelectionStyle=tw,ir.dragMovesSelection=tv,ir.clickAddsSelectionRange=tg,ir.decorations=tV,ir.atomicRanges=tH,ir.scrollMargins=tN,ir.darkTheme=e2,ir.contentAttributes=tL,ir.editorAttributes=tB,ir.lineWrapping=ir.contentAttributes.of({class:"cm-lineWrapping"}),ir.announce=l.Py.define();let il=4096,ih={};class ia{constructor(t,e,i,s){this.from=t,this.to=e,this.dir=i,this.order=s}static update(t,e){if(e.empty)return t;let i=[],s=t.length?t[t.length-1].dir:tF.LTR;for(let o=Math.max(0,t.length-10);o=0;o--){let n=s[o],r="function"==typeof n?n(t):n;r&&tt(r,i)}return i}let id=K.mac?"mac":K.windows?"win":K.linux?"linux":"key";function iu(t,e,i){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==i&&e.shiftKey&&(t="Shift-"+t),t}let ip=l.Wl.default(ir.domEventHandlers({keydown:(t,e)=>iy(iv(e.state),t,e,"editor")})),im=l.r$.define({enables:ip}),ig=new WeakMap;function iv(t){let e=t.facet(im),i=ig.get(e);return i||ig.set(e,i=function(t,e=id){let i=Object.create(null),s=Object.create(null),o=(t,e)=>{let i=s[t];if(null==i)s[t]=e;else if(i!=e)throw Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},n=(t,s,n,r)=>{var l,h;let a=i[t]||(i[t]=Object.create(null)),c=s.split(/ (?!$)/).map(t=>(function(t,e){let i,s,o,n;let r=t.split(/-(?!$)/),l=r[r.length-1];"Space"==l&&(l=" ");for(let h=0;h{let i=ib={view:e,prefix:u,scope:t};return setTimeout(()=>{ib==i&&(ib=null)},4e3),!0}]})}let f=c.join(" ");o(f,!1);let p=a[f]||(a[f]={preventDefault:!1,run:(null===(h=null===(l=a._any)||void 0===l?void 0:l.run)||void 0===h?void 0:h.slice())||[]});n&&p.run.push(n),r&&(p.preventDefault=!0)};for(let r of t){let l=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let h of l){let a=i[h]||(i[h]=Object.create(null));for(let c in a._any||(a._any={preventDefault:!1,run:[]}),a)a[c].run.push(r.any)}let d=r[e]||r.key;if(d)for(let u of l)n(u,d,r.run,r.preventDefault),r.shift&&n(u,"Shift-"+d,r.shift,r.preventDefault)}return i}(e.reduce((t,e)=>t.concat(e),[]))),i}function iw(t,e,i){return iy(iv(t.state),e,t,i)}let ib=null;function iy(t,e,i,s){let o=(0,a.YG)(e),n=(0,l.gm)(o,0),r=(0,l.nZ)(n)==o.length&&" "!=o,h="",c=!1;ib&&ib.view==i&&ib.scope==s&&(h=ib.prefix+" ",(c=0>eu.indexOf(e.keyCode))&&(ib=null));let d=new Set,u=t=>{if(t){for(let s of t.run)if(!d.has(s)&&(d.add(s),s(i,e)))return!0;t.preventDefault&&(c=!0)}return!1},f=t[s],p,m;if(f){if(u(f[h+iu(o,e,!r)]))return!0;if(r&&(e.altKey||e.metaKey||e.ctrlKey)&&(p=a.ue[e.keyCode])&&p!=o){if(u(f[h+iu(p,e,!0)])||e.shiftKey&&(m=a.uY[e.keyCode])!=o&&m!=p&&u(f[h+iu(m,e,!1)]))return!0}else if(r&&e.shiftKey&&u(f[h+iu(o,e,!0)]))return!0;if(u(f._any))return!0}return c}class ix{constructor(t,e,i,s,o){this.className=t,this.left=e,this.top=i,this.width=s,this.height=o}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(!i.empty)return function(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let s=Math.max(i.from,t.viewport.from),o=Math.min(i.to,t.viewport.to),n=t.textDirection==tF.LTR,r=t.contentDOM,l=r.getBoundingClientRect(),h=iS(t),a=window.getComputedStyle(r.firstChild),c=l.left+parseInt(a.paddingLeft)+Math.min(0,parseInt(a.textIndent)),d=l.right-parseInt(a.paddingRight),u=ik(t,s),f=ik(t,o),p=u.type==to.Text?u:null,m=f.type==to.Text?f:null;if(t.lineWrapping&&(p&&(p=iM(t,s,p)),m&&(m=iM(t,o,m))),p&&m&&p.from==m.from)return y(x(i.from,i.to,p));{let g=p?x(i.from,null,p):S(u,!1),v=m?x(null,i.to,m):S(f,!0),w=[];return(p||u).to<(m||f).from-1?w.push(b(c,g.bottom,d,v.top)):g.bottoma&&f.from=m)break;b>p&&h(Math.max(w,p),null==e&&w<=a,Math.min(b,m),null==i&&b>=u,v.dir)}if((p=g.to+1)>=m)break}return 0==l.length&&h(a,null==e,u,null==i,t.textDirection),{top:o,bottom:r,horizontal:l}}function S(t,e){let i=l.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}(t,e,i);{let s=t.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=iS(t);return[new ix(e,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}}}function iS(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==tF.LTR?e.left:e.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:e.top-t.scrollDOM.scrollTop}}function iM(t,e,i){let s=l.jT.cursor(e);return{from:Math.max(i.from,t.moveToLineBoundary(s,!1,!0).from),to:Math.min(i.to,t.moveToLineBoundary(s,!0,!0).from),type:to.Text}}function ik(t,e){let i=t.lineBlockAt(e);if(Array.isArray(i.type)){for(let s of i.type)if(s.to>e||s.to==e&&(s.to==i.to||s.type==to.Text))return s}return i}class iC{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(iA)!=t.state.facet(iA)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&t.view.requestMeasure(this.measureReq)}setOrder(t){let e=0,i=t.facet(iA);for(;e{var i;return i=this.drawn[e],!(t.constructor==i.constructor&&t.eq(i))})){let e=this.dom.firstChild,i=0;for(let s of t)s.update&&e&&s.constructor&&this.drawn[i].constructor&&s.update(e,this.drawn[i])?(e=e.nextSibling,i++):this.dom.insertBefore(s.draw(),e);for(;e;){let o=e.nextSibling;e.remove(),e=o}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}let iA=l.r$.define();function iD(t){return[tR.define(e=>new iC(e,t)),iA.of(t)]}let iT=!K.ios,iO=l.r$.define({combine:t=>(0,l.BO)(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function iR(t={}){return[iO.of(t),iB,iV,iN,tM.of(!0)]}function iE(t){return t.startState.facet(iO)!=t.startState.facet(iO)}let iB=iD({above:!0,markers(t){let{state:e}=t,i=e.facet(iO),s=[];for(let o of e.selection.ranges){let n=o==e.selection.main;if(o.empty?!n||iT:i.drawRangeCursor){let r=n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",h=o.empty?o:l.jT.cursor(o.head,o.head>o.anchor?-1:1);for(let a of ix.forRange(t,r,h))s.push(a)}}return s},update(t,e){t.transactions.some(t=>t.scrollIntoView)&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let i=iE(t);return i&&iL(t.state,e),t.docChanged||t.selectionSet||i},mount(t,e){iL(e.state,t)},class:"cm-cursorLayer"});function iL(t,e){e.style.animationDuration=t.facet(iO).cursorBlinkRate+"ms"}let iV=iD({above:!1,markers:t=>t.state.selection.ranges.map(e=>e.empty?[]:ix.forRange(t,"cm-selectionBackground",e)).reduce((t,e)=>t.concat(e)),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||iE(t),class:"cm-selectionLayer"}),iH={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};iT&&(iH[".cm-line"].caretColor="transparent !important");let iN=l.Wl.highest(ir.theme(iH)),iP=l.Py.define({map:(t,e)=>null==t?null:e.mapPos(t)}),iW=l.QQ.define({create:()=>null,update:(t,e)=>(null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce((t,e)=>e.is(iP)?e.value:t,t))}),iz=tR.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(iW);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(iW)!=i||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let t=this.view.state.field(iW),e=null!=t&&this.view.coordsAtPos(t);if(!e)return null;let i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}drawCursor(t){this.cursor&&(t?(this.cursor.style.left=t.left+"px",this.cursor.style.top=t.top+"px",this.cursor.style.height=t.height+"px"):this.cursor.style.left="-100000px")}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(iW)!=t&&this.view.dispatch({effects:iP.of(t)})}},{eventHandlers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function iF(){return[iW,iz]}function iI(t,e,i,s,o){e.lastIndex=0;for(let n=t.iterRange(i,s),r=i,l;!n.next().done;r+=n.value.length)if(!n.lineBreak)for(;l=e.exec(n.value);)o(r+l.index,l)}class iq{constructor(t){let{regexp:e,decoration:i,decorate:s,boundary:o,maxLength:n=1e3}=t;if(!e.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,s)this.addMatch=(t,e,i,o)=>s(o,i,i+t[0].length,t,e);else if("function"==typeof i)this.addMatch=(t,e,s,o)=>{let n=i(t,e,s);n&&o(s,s+t[0].length,n)};else if(i)this.addMatch=(t,e,s,o)=>o(s,s+t[0].length,i);else throw RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=n}createDeco(t){let e=new l.f_,i=e.add.bind(e);for(let{from:s,to:o}of function(t,e){let i=t.visibleRanges;if(1==i.length&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let s=[];for(let{from:o,to:n}of i)o=Math.max(t.state.doc.lineAt(o).from,o-e),n=Math.min(t.state.doc.lineAt(n).to,n+e),s.length&&s[s.length-1].to>=o?s[s.length-1].to=n:s.push({from:o,to:n});return s}(t,this.maxLength))iI(t.state.doc,this.regexp,s,o,(e,s)=>this.addMatch(s,t,e,i));return e.finish()}updateDeco(t,e){let i=1e9,s=-1;return(t.docChanged&&t.changes.iterChanges((e,o,n,r)=>{r>t.view.viewport.from&&n1e3)?this.createDeco(t.view):s>-1?this.updateRange(t.view,e.map(t.changes),i,s):e}updateRange(t,e,i,s){for(let o of t.visibleRanges){let n=Math.max(o.from,i),r=Math.min(o.to,s);if(r>n){let l=t.state.doc.lineAt(n),h=l.tol.from;n--)if(this.boundary.test(l.text[n-1-l.from])){a=n;break}for(;rd.push(i.range(t,e));if(l==h)for(this.regexp.lastIndex=a-l.from;(u=this.regexp.exec(l.text))&&u.indexthis.addMatch(i,t,e,f));e=e.update({filterFrom:a,filterTo:c,filter:(t,e)=>tc,add:d})}}return e}}let ij=null!=/x/.unicode?"gu":"g",iK=RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]",ij),i$={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},iG=null,iX=l.r$.define({combine(t){let e=(0,l.BO)(t,{render:null,specialChars:iK,addSpecialChars:null});return(e.replaceTabs=!function(){var t;if(null==iG&&"undefined"!=typeof document&&document.body){let e=document.body.style;iG=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)!=null}return iG||!1}())&&(e.specialChars=RegExp(" |"+e.specialChars.source,ij)),e.addSpecialChars&&(e.specialChars=RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,ij)),e}});function i_(t={}){return[iX.of(t),iU||(iU=tR.fromClass(class{constructor(t){this.view=t,this.decorations=tn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(iX)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new iq({regexp:t.specialChars,decoration:(e,i,s)=>{let{doc:o}=i.state,n=(0,l.gm)(e[0],0);if(9==n){let r=o.lineAt(s),h=i.state.tabSize,a=(0,l.IS)(r.text,h,s-r.from);return tn.replace({widget:new iQ((h-a%h)*this.view.defaultCharacterWidth)})}return this.decorationCache[n]||(this.decorationCache[n]=tn.replace({widget:new iY(t,n)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(iX);t.startState.facet(iX)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))]}let iU=null;class iY extends ts{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){var e;let i=(e=this.code)>=32?"•":10==e?"␤":String.fromCharCode(9216+e),s=t.state.phrase("Control character")+" "+(i$[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,s,i);if(o)return o;let n=document.createElement("span");return n.textContent=i,n.title=s,n.setAttribute("aria-label",s),n.className="cm-specialChar",n}ignoreEvent(){return!1}}class iQ extends ts{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function iZ(){return i0}let iJ=tn.line({class:"cm-activeLine"}),i0=tR.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,i=[];for(let s of t.state.selection.ranges){let o=t.lineBlockAt(s.head);o.from>e&&(i.push(iJ.range(o.from)),e=o.from)}return tn.set(i)}},{decorations:t=>t.decorations});class i1 extends ts{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}ignoreEvent(){return!1}}function i2(t){return tR.fromClass(class{constructor(e){this.view=e,this.placeholder=tn.set([tn.widget({widget:new i1(t),side:1}).range(0)])}get decorations(){return this.view.state.doc.length?tn.none:this.placeholder}},{decorations:t=>t.decorations})}function i8(t,e){var i;let s,o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),n=t.state.doc.lineAt(o),r=o-n.from,h=r>2e3?-1:r==n.length?(i=e.clientX,(s=t.coordsAtPos(t.viewport.from))?Math.round(Math.abs((s.left-i)/t.defaultCharacterWidth)):-1):(0,l.IS)(n.text,t.state.tabSize,o-n.from);return{line:n.number,col:h,off:r}}function i3(t){let e=(null==t?void 0:t.eventFilter)||(t=>t.altKey&&0==t.button);return ir.mouseSelectionStyle.of((t,i)=>{let s,o;return e(i)?(s=i8(t,i),o=t.state.selection,s?{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(s.line).from),i=t.state.doc.lineAt(e);s={line:i.number,col:s.col,off:Math.min(s.off,i.length)},o=o.map(t.changes)}},get(e,i,n){let r=i8(t,e);if(!r)return o;let h=function(t,e,i){let s=Math.min(e.line,i.line),o=Math.max(e.line,i.line),n=[];if(e.off>2e3||i.off>2e3||e.col<0||i.col<0){let r=Math.min(e.off,i.off),h=Math.max(e.off,i.off);for(let a=s;a<=o;a++){let c=t.doc.line(a);c.length<=h&&n.push(l.jT.range(c.from+r,c.to+h))}}else{let d=Math.min(e.col,i.col),u=Math.max(e.col,i.col);for(let f=s;f<=o;f++){let p=t.doc.line(f),m=(0,l.Gz)(p.text,d,t.tabSize,!0);if(m<0)n.push(l.jT.cursor(p.to));else{let g=(0,l.Gz)(p.text,u,t.tabSize);n.push(l.jT.range(p.from+m,p.from+g))}}}return n}(t.state,s,r);return h.length?n?l.jT.create(h.concat(o.ranges)):l.jT.create(h):o}}:null):null})}let i9={Alt:[18,t=>t.altKey],Control:[17,t=>t.ctrlKey],Shift:[16,t=>t.shiftKey],Meta:[91,t=>t.metaKey]},i5={style:"cursor: crosshair"};function i4(t={}){let[e,i]=i9[t.key||"Alt"],s=tR.fromClass(class{constructor(t){this.view=t,this.isDown=!1}set(t){this.isDown!=t&&(this.isDown=t,this.view.update([]))}},{eventHandlers:{keydown(t){this.set(t.keyCode==e||i(t))},keyup(t){t.keyCode!=e&&i(t)||this.set(!1)},mousemove(t){this.set(i(t))}}});return[s,ir.contentAttributes.of(t=>{var e;return(null===(e=t.plugin(s))||void 0===e?void 0:e.isDown)?i5:null})]}let i6="-10000px";class i7{constructor(t,e,i){this.facet=e,this.createTooltipView=i,this.input=t.state.facet(e),this.tooltips=this.input.filter(t=>t),this.tooltipViews=this.tooltips.map(i)}update(t){var e;let i=t.state.facet(this.facet),s=i.filter(t=>t);if(i===this.input){for(let o of this.tooltipViews)o.update&&o.update(t);return!1}let n=[];for(let r=0;rn.indexOf(u)&&(u.dom.remove(),null===(e=u.destroy)||void 0===e||e.call(u));return this.input=i,this.tooltips=s,this.tooltipViews=n,!0}}function st(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}let se=l.r$.define({combine(t){var e,i,s;return{position:K.ios?"absolute":(null===(e=t.find(t=>t.position))||void 0===e?void 0:e.position)||"fixed",parent:(null===(i=t.find(t=>t.parent))||void 0===i?void 0:i.parent)||null,tooltipSpace:(null===(s=t.find(t=>t.tooltipSpace))||void 0===s?void 0:s.tooltipSpace)||st}}}),si=tR.fromClass(class{constructor(t){this.view=t,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(se);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new i7(t,sn,t=>this.createTooltip(t)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let t of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(t.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t);e&&this.observeIntersection();let i=e||t.geometryChanged,s=t.state.facet(se);if(s.position!=this.position){for(let o of(this.position=s.position,this.manager.tooltipViews))o.dom.style.position=this.position;i=!0}if(s.parent!=this.parent){for(let n of(this.parent&&this.container.remove(),this.parent=s.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(n.dom);i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top=i6,this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;for(let i of(this.view.win.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))i.dom.remove(),null===(t=i.destroy)||void 0===t||t.call(i);null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect();return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)}),size:this.manager.tooltipViews.map(({dom:t})=>t.getBoundingClientRect()),space:this.view.state.facet(se).tooltipSpace(this.view)}}writeMeasure(t){let{editor:e,space:i}=t,s=[];for(let o=0;o=Math.min(e.bottom,i.bottom)||h.rightMath.min(e.right,i.right)+.1){l.style.top=i6;continue}let c=n.arrow?r.dom.querySelector(".cm-tooltip-arrow"):null,d=c?7:0,u=a.right-a.left,f=a.bottom-a.top,p=r.offset||so,m=this.view.textDirection==tF.LTR,g=a.width>i.right-i.left?m?i.left:i.right-a.width:m?Math.min(h.left-(c?14:0)+p.x,i.right-u):Math.max(i.left,h.left-u+(c?14:0)-p.x),v=!!n.above;!n.strictSide&&(v?h.top-(a.bottom-a.top)-p.yi.bottom)&&v==i.bottom-h.bottom>h.top-i.top&&(v=!v);let w=(v?h.top-i.top:i.bottom-h.bottom)-d;if(wg&&x.topb&&(b=v?x.top-f-2-d:x.bottom+d+2);"absolute"==this.position?(l.style.top=b-t.parent.top+"px",l.style.left=g-t.parent.left+"px"):(l.style.top=b+"px",l.style.left=g+"px"),c&&(c.style.left=`${h.left+(m?p.x:-p.x)-(g+14-7)}px`),!0!==r.overlap&&s.push({left:g,top:b,right:y,bottom:b+f}),l.classList.toggle("cm-tooltip-above",v),l.classList.toggle("cm-tooltip-below",!v),r.positioned&&r.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=i6}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),ss=ir.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),so={x:0,y:0},sn=l.r$.define({enables:[si,ss]}),sr=l.r$.define();class sl{constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new i7(t,sr,t=>this.createHostedView(t))}static create(t){return new sl(t)}createHostedView(t){let e=t.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}}let sh=sn.compute([sr],t=>{let e=t.facet(sr).filter(t=>t);return 0===e.length?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.filter(t=>null!=t.end).map(t=>t.end)),create:sl.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class sa{constructor(t,e,i,s,o){this.view=t,this.source=e,this.field=i,this.setHover=s,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;ti.bottom||t.xi.right+this.view.defaultCharacterWidth)return;let s=this.view.bidiSpans(this.view.state.doc.lineAt(e)).find(t=>t.from<=e&&t.to>=e),o=s&&s.dir==tF.RTL?-1:1,n=this.source(this.view,e,t.x{this.pending==r&&(this.pending=null,t&&this.view.dispatch({effects:this.setHover.of(t)}))},t=>tA(this.view.state,t,"hover tooltip"))}else n&&this.view.dispatch({effects:this.setHover.of(n)})}mousemove(t){var e;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let i=this.active;if(i&&!sc(this.lastMove.target)||this.pending){let{pos:s}=i||this.pending,o=null!==(e=null==i?void 0:i.end)&&void 0!==e?e:s;(s==o?this.view.posAtCoords(this.lastMove)!=s:!function(t,e,i,s,o,n){let r=document.createRange(),l=t.domAtPos(e),h=t.domAtPos(i);r.setEnd(h.node,h.offset),r.setStart(l.node,l.offset);let a=r.getClientRects();r.detach();for(let c=0;c=Math.max(d.top-o,o-d.bottom,d.left-s,s-d.right))return!0}return!1}(this.view,s,o,t.clientX,t.clientY,0))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!sc(t.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function sc(t){for(let e=t;e;e=e.parentNode)if(1==e.nodeType&&e.classList.contains("cm-tooltip"))return!0;return!1}function sd(t,e={}){let i=l.Py.define(),s=l.QQ.define({create:()=>null,update(t,s){if(t&&(e.hideOnChange&&(s.docChanged||s.selection)||e.hideOn&&e.hideOn(s,t)))return null;if(t&&s.docChanged){let o=s.changes.mapPos(t.pos,-1,l.gc.TrackDel);if(null==o)return null;let n=Object.assign(Object.create(null),t);n.pos=o,null!=t.end&&(n.end=s.changes.mapPos(t.end)),t=n}for(let r of s.effects)r.is(i)&&(t=r.value),r.is(sf)&&(t=null);return t},provide:t=>sr.from(t)});return[s,tR.define(o=>new sa(o,t,s,i,e.hoverTime||300)),sh]}function su(t,e){let i=t.plugin(si);if(!i)return null;let s=i.manager.tooltips.indexOf(e);return s<0?null:i.manager.tooltipViews[s]}let sf=l.Py.define(),sp=l.r$.define({combine(t){let e,i;for(let s of t)e=e||s.topContainer,i=i||s.bottomContainer;return{topContainer:e,bottomContainer:i}}});function sm(t,e){let i=t.plugin(sg),s=i?i.specs.indexOf(e):-1;return s>-1?i.panels[s]:null}let sg=tR.fromClass(class{constructor(t){this.input=t.state.facet(sb),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(e=>e(t));let e=t.state.facet(sp);for(let i of(this.top=new sv(t,!0,e.topContainer),this.bottom=new sv(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top)),this.panels))i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(t){let e=t.state.facet(sp);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new sv(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new sv(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=t.state.facet(sb);if(i!=this.input){let s=i.filter(t=>t),o=[],n=[],r=[],l=[];for(let h of s){let a=this.specs.indexOf(h),c;a<0?(c=h(t.view),l.push(c)):(c=this.panels[a]).update&&c.update(t),o.push(c),(c.top?n:r).push(c)}for(let d of(this.specs=s,this.panels=o,this.top.sync(n),this.bottom.sync(r),l))d.dom.classList.add("cm-panel"),d.mount&&d.mount()}else for(let u of this.panels)u.update&&u.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>ir.scrollMargins.of(e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}})});class sv{constructor(t,e,i){this.view=t,this.top=e,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&0>t.indexOf(e)&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let i of this.panels)if(i.dom.parentNode==this.dom){for(;e!=i.dom;)e=sw(e);e=e.nextSibling}else this.dom.insertBefore(i.dom,e);for(;e;)e=sw(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function sw(t){let e=t.nextSibling;return t.remove(),e}let sb=l.r$.define({enables:sg});class sy extends l.uU{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}sy.prototype.elementClass="",sy.prototype.toDOM=void 0,sy.prototype.mapMode=l.gc.TrackBefore,sy.prototype.startSide=sy.prototype.endSide=-1,sy.prototype.point=!0;let sx=l.r$.define(),sS={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>l.Xs.empty,lineMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},sM=l.r$.define();function sk(t){return[sA(),sM.of(Object.assign(Object.assign({},sS),t))]}let sC=l.r$.define({combine:t=>t.some(t=>t)});function sA(t){let e=[sD];return t&&!1===t.fixed&&e.push(sC.of(!0)),e}let sD=tR.fromClass(class{constructor(t){for(let e of(this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=t.state.facet(sM).map(e=>new sE(t,e)),this.gutters))this.dom.appendChild(e.dom);this.fixed=!t.state.facet(sC),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport,s=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(s<(i.to-i.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(sC)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let i=l.Xs.iter(this.view.state.facet(sx),this.view.viewport.from),s=[],o=this.gutters.map(t=>new sR(t,this.view.viewport,-this.view.documentPadding.top));for(let n of this.view.viewportLineBlocks){let r;if(Array.isArray(n.type)){for(let h of n.type)if(h.type==to.Text){r=h;break}}else r=n.type==to.Text?n:void 0;if(r)for(let a of(s.length&&(s=[]),sO(i,s,n.from),o))a.line(this.view,r,s)}for(let c of o)c.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(sM),i=t.state.facet(sM),s=t.docChanged||t.heightChanged||t.viewportChanged||!l.Xs.eq(t.startState.facet(sx),t.state.facet(sx),t.view.viewport.from,t.view.viewport.to);if(e==i)for(let o of this.gutters)o.update(t)&&(s=!0);else{s=!0;let n=[];for(let r of i){let h=e.indexOf(r);h<0?n.push(new sE(this.view,r)):(this.gutters[h].update(t),n.push(this.gutters[h]))}for(let a of this.gutters)a.dom.remove(),0>n.indexOf(a)&&a.destroy();for(let c of n)this.dom.appendChild(c.dom);this.gutters=n}return s}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>ir.scrollMargins.of(e=>{let i=e.plugin(t);return i&&0!=i.gutters.length&&i.fixed?e.textDirection==tF.LTR?{left:i.dom.offsetWidth}:{right:i.dom.offsetWidth}:null})});function sT(t){return Array.isArray(t)?t:[t]}function sO(t,e,i){for(;t.value&&t.from<=i;)t.from==i&&e.push(t.value),t.next()}class sR{constructor(t,e,i){this.gutter=t,this.height=i,this.localMarkers=[],this.i=0,this.cursor=l.Xs.iter(t.markers,e.from)}line(t,e,i){this.localMarkers.length&&(this.localMarkers=[]),sO(this.cursor,this.localMarkers,e.from);let s=i.length?this.localMarkers.concat(i):this.localMarkers,o=this.gutter.config.lineMarker(t,e,s);o&&s.unshift(o);let n=this.gutter;if(0==s.length&&!n.config.renderEmptyElements)return;let r=e.top-this.height;if(this.i==n.elements.length){let l=new sB(t,e.height,r,s);n.elements.push(l),n.dom.appendChild(l.dom)}else n.elements[this.i].update(t,e.height,r,s);this.height=e.bottom,this.i++}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class sE{constructor(t,e){for(let i in this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),e.domEventHandlers)this.dom.addEventListener(i,s=>{let o=t.lineBlockAtHeight(s.clientY-t.documentTop);e.domEventHandlers[i](t,o,s)&&s.preventDefault()});this.markers=sT(e.markers(t)),e.initialSpacer&&(this.spacer=new sB(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=sT(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let s=t.view.viewport;return!l.Xs.eq(this.markers,e,s.from,s.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}}class sB{constructor(t,e,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,s)}update(t,e,i,s){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),!function(t,e){if(t.length!=e.length)return!1;for(let i=0;i(0,l.BO)(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let i=Object.assign({},t);for(let s in e){let o=i[s],n=e[s];i[s]=o?(t,e,i)=>o(t,e,i)||n(t,e,i):n}return i}})});class sH extends sy{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function sN(t,e){return t.state.facet(sV).formatNumber(e,t.state)}let sP=sM.compute([sV],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(sL),lineMarker:(t,e,i)=>i.some(t=>t.toDOM)?null:new sH(sN(t,t.state.doc.lineAt(e.from).number)),lineMarkerChange:t=>t.startState.facet(sV)!=t.state.facet(sV),initialSpacer:t=>new sH(sN(t,sz(t.state.doc.lines))),updateSpacer(t,e){let i=sN(e.view,sz(e.view.state.doc.lines));return i==t.number?t:new sH(i)},domEventHandlers:t.facet(sV).domEventHandlers}));function sW(t={}){return[sV.of(t),sA(),sP]}function sz(t){let e=9;for(;e{let e=[],i=-1;for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head).from;o>i&&(i=o,e.push(sF.range(o)))}return l.Xs.of(e)});function sq(){return sI}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/4ad82c5e-929b3fa886d2b3d7.js b/static/web/_next/static/chunks/4ad82c5e-929b3fa886d2b3d7.js deleted file mode 100644 index 4adf3965c..000000000 --- a/static/web/_next/static/chunks/4ad82c5e-929b3fa886d2b3d7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5762],{47421:function(t,e,i){let s;i.d(e,{$1:function(){return iw},$f:function(){return im},AE:function(){return i_},Eu:function(){return sW},HQ:function(){return sq},Nm:function(){return tF},OO:function(){return tA},S2:function(){return i4},SJ:function(){return sy},Sd:function(){return sm},Uw:function(){return iD},W$:function(){return i2},ZO:function(){return iZ},Zs:function(){return i3},bF:function(){return sd},gB:function(){return su},hJ:function(){return sn},l9:function(){return ts},lg:function(){return tR},mH:function(){return sb},p:function(){return tn},qr:function(){return iF},tk:function(){return ir},v5:function(){return sk}});var o,n,r,l=i(78120),h=i(28699),a=i(33952);function c(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function d(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function u(t,e){if(!e.anchorNode)return!1;try{return d(t,e.anchorNode)}catch(i){return!1}}function f(t){return 3==t.nodeType?M(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function p(t,e,i,s){return!!i&&(g(t,e,i,s,-1)||g(t,e,i,s,1))}function m(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function g(t,e,i,s,o){for(;;){if(t==i&&e==s)return!0;if(e==(o<0?0:v(t))){if("DIV"==t.nodeName)return!1;let n=t.parentNode;if(!n||1!=n.nodeType)return!1;e=m(t)+(o<0?0:1),t=n}else{if(1!=t.nodeType||1==(t=t.childNodes[e+(o<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=o<0?v(t):0}}}function v(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}let w={left:0,right:0,top:0,bottom:0};function b(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}class y{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){this.set(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)}set(t,e,i,s){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=s}}let x=null;function S(t){if(t.setActive)return t.setActive();if(x)return t.focus(x);let e=[];for(let i=t;i&&(e.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(t.focus(null==x?{get preventScroll(){return x={preventScroll:!0},!0}}:void 0),!x){x=!1;for(let s=0;se)return c.domBoundsAround(t,e,h);if(d>=t&&-1==s&&(s=l,o=h),h>e&&c.dom.parentNode==this.dom){n=l,r=a;break}a=d,h=d+c.breakAfter}return{from:o,to:r<0?i+this.length:r,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:n=0?this.children[n].dom:null}}markDirty(t=!1){this.dirty|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.dirty&&this.markParentsDirty(!0))}setDOM(t){this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=D){this.markDirty();for(let s=t;sthis.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function E(t,e,i,s,o,n,r,l,h){let{children:a}=t,c=a.length?a[e]:null,d=n.length?n[n.length-1]:null,u=d?d.breakAfter:r;if(!(e==s&&c&&!r&&!u&&n.length<2&&c.merge(i,o,n.length?d:null,0==i,l,h))){if(s0&&(!r&&n.length&&c.merge(i,c.length,n[0],!1,l,0)?c.breakAfter=n.shift().breakAfter:(i2);var K={mac:j||/Mac/.test(L.platform),windows:/Win/.test(L.platform),linux:/Linux|X11/.test(L.platform),ie:W,ie_version:N?V.documentMode||6:P?+P[1]:H?+H[1]:0,gecko:z,gecko_version:z?+(/Firefox\/(\d+)/.exec(L.userAgent)||[0,0])[1]:0,chrome:!!F,chrome_version:F?+F[1]:0,ios:j,android:/Android\b/.test(L.userAgent),webkit:I,safari:q,webkit_version:I?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=V.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class $ extends T{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,i){return(!i||i instanceof $&&!(this.length-(e-t)+i.length>256))&&(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new $(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new A(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return X(this.dom,t,e)}}class G extends T{constructor(t,e=[],i=0){for(let s of(super(),this.mark=t,this.children=e,this.length=i,e))s.setParent(this)}setAttrs(t){if(C(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.dirty|=6)}sync(t){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t)}merge(t,e,i,s,o,n){return(!i||!!(i instanceof G&&i.mark.eq(this.mark))&&(!t||!(o<=0))&&(!(et&&e.push(i=t&&(s=o),i=r,o++}let l=this.length-t;return this.length=t,s>-1&&(this.children.length=s,this.markDirty()),new G(this.mark,e,l)}domAtPos(t){return Z(this,t)}coordsAt(t,e){return J(this,t,e)}}function X(t,e,i){let s=t.nodeValue.length;e>s&&(e=s);let o=e,n=e,r=0;0==e&&i<0||e==s&&i>=0?!(K.chrome||K.gecko)&&(e?(o--,r=1):n=0)?0:l.length-1];return K.safari&&!r&&0==h.width&&(h=Array.prototype.find.call(l,t=>t.width)||h),r?b(h,r<0):h||null}class _ extends T{constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}static create(t,e,i){return new(t.customView||_)(t,e,i)}split(t){let e=_.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,e,i,s,o,n){return(!i||i instanceof _&&!!this.widget.compare(i.widget)&&(!(t>0)||!(o<=0))&&(!(e0?i.length-1:0;s=i[o],t>0?0!=o:o!=i.length-1&&!(s.top0?-1:1);return this.length?s:b(s,this.side>0)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class U extends _{domAtPos(t){let{topView:e,text:i}=this.widget;return e?Y(t,0,e,i,(t,e)=>t.domAtPos(e),t=>new A(i,Math.min(t,i.nodeValue.length))):new A(i,Math.min(t,i.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(t,e){let{topView:i,text:s}=this.widget;return i?function t(e,i,s,o){if(s instanceof G)for(let n of s.children){let r=0,l=d(n.dom,o);if(d(n.dom,e))return r+(l?t(e,i,n,o):n.localPosFromDOM(e,i));r+=l?o.nodeValue.length:n.length}else if(s.dom==o)return Math.min(i,o.nodeValue.length);return s.localPosFromDOM(e,i)}(t,e,i,s):Math.min(e,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(t,e){let{topView:i,text:s}=this.widget;return i?Y(t,e,i,s,(t,e,i)=>t.coordsAt(e,i),(t,e)=>X(s,t,e)):X(s,t,e)}destroy(){var t;super.destroy(),null===(t=this.widget.topView)||void 0===t||t.destroy()}get isEditable(){return!0}canReuseDOM(){return!0}}function Y(t,e,i,s,o,n){if(i instanceof G){for(let r=i.dom.firstChild;r;r=r.nextSibling){let l=T.get(r);if(!l)return n(t,e);let h=d(r,s),a=l.length+(h?s.nodeValue.length:0);if(t=l.getSide())return h?Y(t,e,l,s,o,n):o(l,t,e);t-=a}return o(i,i.length,-1)}return i.dom==s?n(t,e):o(i,t,e)}class Q extends T{constructor(t){super(),this.side=t}get length(){return 0}merge(){return!1}become(t){return t instanceof Q&&t.side==this.side}split(){return new Q(this.side)}sync(){if(!this.dom){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),this.setDOM(t)}}getSide(){return this.side}domAtPos(t){return A.before(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){let e=this.dom.getBoundingClientRect(),i=function(t,e){let i=t.parent,s=i?i.children.indexOf(t):-1;for(;i&&s>=0;)if(e<0?s>0:s0?-1:1);return i&&i.tope.top?{left:e.left,right:e.right,top:i.top,bottom:i.bottom}:e}get overrideDOMText(){return l.xv.empty}}function Z(t,e){let i=t.dom,{children:s}=t,o=0;for(let n=0;o=r.getSide())){if(e>n&&e0;h--){let a=s[h-1];if(a.dom.parentNode==i)return a.domAtPos(a.length)}for(let c=o;c=i&&(a.children.length?t(a,i-h):!n&&(c>i||h==c&&a.getSide()>0)?(n=a,r=i-h):(ha.getSide())&&(s=a,o=i-h)),h=c}}(t,e);let l=(i<0?s:n)||s||n;return l?l.coordsAt(Math.max(0,l==s?o:r),i):function(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let i=f(e);return i[i.length-1]||null}(t)}function tt(t,e){for(let i in t)"class"==i&&e.class?e.class+=" "+t.class:"style"==i&&e.style?e.style+=";"+t.style:e[i]=t[i];return e}function te(t,e){if(t==e)return!0;if(!t||!e)return!1;let i=Object.keys(t),s=Object.keys(e);if(i.length!=s.length)return!1;for(let o of i)if(-1==s.indexOf(o)||t[o]!==e[o])return!1;return!0}function ti(t,e,i){let s=null;if(e)for(let o in e)i&&o in i||t.removeAttribute(s=o);if(i)for(let n in i)e&&e[n]==i[n]||t.setAttribute(s=n,i[n]);return!!s}$.prototype.children=_.prototype.children=Q.prototype.children=D;class ts{eq(t){return!1}updateDOM(t){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return -1}ignoreEvent(t){return!0}get customView(){return null}destroy(t){}}var to=((o=to||(to={}))[o.Text=0]="Text",o[o.WidgetBefore=1]="WidgetBefore",o[o.WidgetAfter=2]="WidgetAfter",o[o.WidgetRange=3]="WidgetRange",o);class tn extends l.uU{constructor(t,e,i,s){super(),this.startSide=t,this.endSide=e,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(t){return new tr(t)}static widget(t){let e=t.side||0,i=!!t.block;return e+=i?e>0?3e8:-4e8:e>0?1e8:-1e8,new th(t,e,e,i,t.widget||null,!1)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap)i=-5e8,s=4e8;else{let{start:o,end:n}=ta(t,e);i=(o?e?-3e8:-1:5e8)-1,s=(n?e?2e8:1:-6e8)+1}return new th(t,i,s,e,t.widget||null,!0)}static line(t){return new tl(t)}static set(t,e=!1){return l.Xs.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}tn.none=l.Xs.empty;class tr extends tn{constructor(t){let{start:e,end:i}=ta(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){return this==t||t instanceof tr&&this.tagName==t.tagName&&this.class==t.class&&te(this.attrs,t.attrs)}range(t,e=t){if(t>=e)throw RangeError("Mark decorations may not be empty");return super.range(t,e)}}tr.prototype.point=!1;class tl extends tn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof tl&&te(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}tl.prototype.mapMode=l.gc.TrackBefore,tl.prototype.point=!0;class th extends tn{constructor(t,e,i,s,o,n){super(e,i,o,t),this.block=s,this.isReplace=n,this.mapMode=s?e<=0?l.gc.TrackBefore:l.gc.TrackAfter:l.gc.TrackDel}get type(){return this.startSide=5}eq(t){var e,i;return t instanceof th&&((e=this.widget)==(i=t.widget)||!!(e&&i&&e.compare(i)))&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}function ta(t,e=!1){let{inclusiveStart:i,inclusiveEnd:s}=t;return null==i&&(i=t.inclusive),null==s&&(s=t.inclusive),{start:null!=i?i:e,end:null!=s?s:e}}function tc(t,e,i,s=0){let o=i.length-1;o>=0&&i[o]+s>=t?i[o]=Math.max(i[o],e):i.push(t,e)}th.prototype.point=!0;class td extends T{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,e,i,s,o,n){if(i){if(!(i instanceof td))return!1;this.dom||i.transferDOM(this)}return s&&this.setDeco(i?i.attrs:null),B(this,t,e,i?i.children:[],o,n),!0}split(t){let e=new td;if(e.breakAfter=this.breakAfter,0==this.length)return e;let{i,off:s}=this.childPos(t);s&&(e.append(this.children[i].split(s),0),this.children[i].merge(s,this.children[i].length,null,!1,0,0),i++);for(let o=i;o0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){te(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){!function t(e,i,s){let o,{children:n}=e;s>0&&i instanceof G&&n.length&&(o=n[n.length-1])instanceof G&&o.mark.eq(i.mark)?t(o,i.children[0],s-1):(n.push(i),i.setParent(e)),e.length+=i.length}(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=tt(e,this.attrs||{})),i&&(this.attrs=tt({class:i},this.attrs||{}))}domAtPos(t){return Z(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.dirty|=6)}sync(t){var e;this.dom?4&this.dirty&&(C(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ti(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t);let i=this.dom.lastChild;for(;i&&T.get(i) instanceof G;)i=i.lastChild;if(!i||!this.length||"BR"!=i.nodeName&&(null===(e=T.get(i))||void 0===e?void 0:e.isEditable)==!1&&(!K.ios||!this.children.some(t=>t instanceof $))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let t=0;for(let e of this.children){if(!(e instanceof $)||/[^ -~]/.test(e.text))return null;let i=f(e.dom);if(1!=i.length)return null;t+=i[0].width}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length}:null}coordsAt(t,e){return J(this,t,e)}become(t){return!1}get type(){return to.Text}static find(t,e){for(let i=0,s=0;i=e){if(o instanceof td)return o;if(n>e)break}s=n+o.breakAfter}return null}}class tu extends T{constructor(t,e,i){super(),this.widget=t,this.length=e,this.type=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,s,o,n){return(!i||i instanceof tu&&!!this.widget.compare(i.widget)&&(!(t>0)||!(o<=0))&&(!(e0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer([]),this.curLine=null,t--;continue}this.text=s,this.textOff=0}let r=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(tp(new $(this.text.slice(this.textOff,this.textOff+r)),e),i),this.atCursorPos=!0,this.textOff+=r,t-=r,i=0}}span(t,e,i,s){this.buildText(e-t,i,s),this.pos=e,this.openStart<0&&(this.openStart=s)}point(t,e,i,s,o,n){if(this.disallowBlockEffectsFor[n]&&i instanceof th){if(i.block)throw RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}let r=e-t;if(i instanceof th){if(i.block){let{type:l}=i;l!=to.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new tu(i.widget||new tm("div"),r,l))}else{let h=_.create(i.widget||new tm("span"),r,r?0:i.startSide),a=this.atCursorPos&&!h.isEditable&&o<=s.length&&(t0),c=!h.isEditable&&(tt.some(t=>t)}),tM=l.r$.define({combine:t=>t.some(t=>t)});class tk{constructor(t,e="nearest",i="nearest",s=5,o=5){this.range=t,this.y=e,this.x=i,this.yMargin=s,this.xMargin=o}map(t){return t.empty?this:new tk(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}let tC=l.Py.define({map:(t,e)=>t.map(e)});function tA(t,e,i){let s=t.facet(tb);s.length?s[0](e):window.onerror?window.onerror(String(e),i,void 0,void 0,e):i?console.error(i+":",e):console.error(e)}let tD=l.r$.define({combine:t=>!t.length||t[0]}),tT=0,tO=l.r$.define();class tR{constructor(t,e,i,s){this.id=t,this.create=e,this.domEventHandlers=i,this.extension=s(this)}static define(t,e){let{eventHandlers:i,provide:s,decorations:o}=e||{};return new tR(tT++,t,i,t=>{let e=[tO.of(t)];return o&&e.push(tV.of(e=>{let i=e.plugin(t);return i?o(i):tn.none})),s&&e.push(s(t)),e})}static fromClass(t,e){return tR.define(e=>new t(e),e)}}class tE{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(s){if(tA(e.state,s,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(i){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(o){tA(t.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(i){tA(t.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}let tB=l.r$.define(),tL=l.r$.define(),tV=l.r$.define(),tH=l.r$.define(),tN=l.r$.define(),tP=l.r$.define();class tW{constructor(t,e,i,s){this.fromA=t,this.toA=e,this.fromB=i,this.toB=s}join(t){return new tW(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(!(s.fromA>i.toA)){if(s.toAa)break;o+=2}if(!l)return i;new tW(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),n=l.toA,r=l.toB}}}class tz{constructor(t,e,i){for(let s of(this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=l.as.empty(this.startState.doc.length),i))this.changes=this.changes.compose(s.changes);let o=[];this.changes.iterChangedRanges((t,e,i,s)=>o.push(new tW(t,e,i,s))),this.changedRanges=o;let n=t.hasFocus;n!=t.inputState.notifiedFocused&&(t.inputState.notifiedFocused=n,this.flags|=1)}static create(t,e,i){return new tz(t,e,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}var tF=((n=tF||(tF={}))[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n);let tI=tF.LTR,tq=tF.RTL;function tj(t){let e=[];for(let i=0;i=e){if(r.level==i)return n;(o<0||(0!=s?s<0?r.frome:t[o].level>r.level))&&(o=n)}}if(o<0)throw RangeError("Index out of range");return o}}let tJ=[];function t0(t){return[new tZ(0,t,0)]}let t1="";class t2{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(l.yy.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+="￿"}readRange(t,e){if(!t)return this;let i=t.parentNode;for(let s=t;;){this.findPointBefore(i,s),this.readNode(s);let o=s.nextSibling;if(o==e)break;let n=T.get(s),r=T.get(o);(n&&r?n.breakAfter:(n?n.breakAfter:t8(s))||t8(o)&&("BR"!=s.nodeName||s.cmIgnore))&&this.lineBreak(),s=o}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let s=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let n=-1,r=1,l;if(this.lineSeparator?(n=e.indexOf(this.lineSeparator,s),r=this.lineSeparator.length):(l=o.exec(e))&&(n=l.index,r=l[0].length),this.append(e.slice(s,n<0?e.length:n)),n<0)break;if(this.lineBreak(),r>1)for(let h of this.points)h.node==t&&h.pos>this.text.length&&(h.pos-=r-1);s=n+r}}readNode(t){if(t.cmIgnore)return;let e=T.get(t),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(t,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(3==t.nodeType?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+Math.min(e,i.offset))}}function t8(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}class t3{constructor(t,e){this.node=t,this.offset=e,this.pos=-1}}class t9 extends T{constructor(t){super(),this.view=t,this.compositionDeco=tn.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new td],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new tW(0,0,0,t.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(t){var e,i,s;let o,n=t.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:t,toA:e})=>ethis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=tn.none:(t.transactions.length||this.dirty)&&(this.compositionDeco=function(t,e){let i=t4(t);if(!i)return tn.none;let{from:s,to:o,node:n,text:r}=i,l=e.mapPos(s,1),h=Math.max(l,e.mapPos(o,-1)),{state:a}=t,c=3==n.nodeType?n.nodeValue:new t2([],a).readRange(n.firstChild,null).text;if(h-l{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=K.chrome||K.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(t),this.dirty=0,t&&(t.written||i.selectionRange.focusNode!=t.node)&&(this.forceSelection=!0),this.dom.style.height=""});let s=[];if(this.view.viewport.from||this.view.viewport.to=0?t[s]:null;if(!o)break;let{fromA:n,toA:r,fromB:l,toB:h}=o,{content:a,breakAtStart:c,openStart:d,openEnd:u}=tf.build(this.view.state.doc,l,h,this.decorations,this.dynamicDecorationMap),{i:f,off:p}=i.findPos(r,1),{i:m,off:g}=i.findPos(n,-1);E(this,m,g,f,p,a,c,d,u)}}updateSelection(t=!1,e=!1){var i;if((t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange(),!(e||this.mayControlSelection()))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,n=this.domAtPos(o.anchor),r=o.empty?n:this.domAtPos(o.head);if(K.gecko&&o.empty&&1==(i=n).node.nodeType&&i.node.firstChild&&(0==i.offset||"false"==i.node.childNodes[i.offset-1].contentEditable)&&(i.offset==i.node.childNodes.length||"false"==i.node.childNodes[i.offset].contentEditable)){let l=document.createTextNode("");this.view.observer.ignore(()=>n.node.insertBefore(l,n.node.childNodes[n.offset]||null)),n=r=new A(l,0),s=!0}let h=this.view.observer.selectionRange;!s&&h.focusNode&&p(n.node,n.offset,h.anchorNode,h.anchorOffset)&&p(r.node,r.offset,h.focusNode,h.focusOffset)||(this.view.observer.ignore(()=>{K.android&&K.chrome&&this.dom.contains(h.focusNode)&&function(t,e){for(let i=t;i&&i!=e;i=i.assignedSlot||i.parentNode)if(1==i.nodeType&&"false"==i.contentEditable)return!0;return!1}(h.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let t=c(this.view.root);if(t){if(o.empty){if(K.gecko){var e,i;let s=(e=n.node,i=n.offset,1!=e.nodeType?0:(i&&"false"==e.childNodes[i-1].contentEditable?1:0)|(io.head&&([n,r]=[r,n]),d.setEnd(r.node,r.offset),d.setStart(n.node,n.offset),t.removeAllRanges(),t.addRange(d)}}}),this.view.observer.setSelectionRange(n,r)),this.impreciseAnchor=n.precise?null:new A(h.anchorNode,h.anchorOffset),this.impreciseHead=r.precise?null:new A(h.focusNode,h.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:t}=this,e=t.state.selection.main,i=c(t.root),{anchorNode:s,anchorOffset:o}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let n=td.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let l=this.coordsAt(e.head,-1),h=this.coordsAt(e.head,1);if(!l||!h||l.bottom>h.top)return;let a=this.domAtPos(e.head+e.assoc);i.collapse(a.node,a.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let d=t.observer.selectionRange;t.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=e.from&&i.collapse(s,o)}mayControlSelection(){let t=this.view.root.activeElement;return t==this.dom||u(this.dom,this.view.observer.selectionRange)&&!(t&&this.dom.contains(t))}nearest(t){for(let e=t;e;){let i=T.get(e);if(i&&i.rootView==this)return i;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;en||t==n&&o.type!=to.WidgetBefore&&o.type!=to.WidgetAfter&&(!s||2==e||this.children[s-1].breakAfter||this.children[s-1].type==to.WidgetBefore&&e>-2))return o.coordsAt(t-n,e);i=n}}measureVisibleLineHeights(t){let e=[],{from:i,to:s}=t,o=this.view.contentDOM.clientWidth,n=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,r=-1,l=this.view.textDirection==tF.LTR;for(let h=0,a=0;as)break;if(h>=i){let u=c.dom.getBoundingClientRect();if(e.push(u.height),n){let p=c.dom.lastChild,m=p?f(p):[];if(m.length){let g=m[m.length-1],v=l?g.right-u.left:u.right-g.left;v>r&&(r=v,this.minWidth=o,this.minWidthFrom=h,this.minWidthTo=d)}}}h=d+c.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?tF.RTL:tF.LTR}measureTextSize(){for(let t of this.children)if(t instanceof td){let e=t.measureTextSize();if(e)return e}let i=document.createElement("div"),s,o;return i.className="cm-line",i.style.width="99999px",i.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(i);let t=f(i.firstChild)[0];s=i.getBoundingClientRect().height,o=t?t.width/27:7,i.remove()}),{lineHeight:s,charWidth:o}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new R(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let o=s==e.viewports.length?null:e.viewports[s],n=o?o.from-1:this.length;if(n>i){let r=e.lineBlockAt(n).bottom-e.lineBlockAt(i).top;t.push(tn.replace({widget:new t5(r),block:!0,inclusive:!0,isBlockGap:!0}).range(i,n))}if(!o)break;i=o.to+1}return tn.set(t)}updateDeco(){let t=this.view.state.facet(tV).map((t,e)=>(this.dynamicDecorationMap[e]="function"==typeof t)?t(this.view):t);for(let e=t.length;ee.anchor?-1:1),s;if(!i)return;!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let o=0,n=0,r=0,l=0;for(let h of this.view.state.facet(tN).map(t=>t(this.view)))if(h){let{left:a,right:c,top:d,bottom:u}=h;null!=a&&(o=Math.max(o,a)),null!=c&&(n=Math.max(n,c)),null!=d&&(r=Math.max(r,d)),null!=u&&(l=Math.max(l,u))}let f={left:i.left-o,top:i.top-r,right:i.right+n,bottom:i.bottom+l};!function(t,e,i,s,o,n,r,l){let h=t.ownerDocument,a=h.defaultView||window;for(let c=t;c;)if(1==c.nodeType){let d,u=c==h.body;if(u)d={left:0,right:a.innerWidth,top:0,bottom:a.innerHeight};else{if(c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let f=c.getBoundingClientRect();d={left:f.left,right:f.left+c.clientWidth,top:f.top,bottom:f.top+c.clientHeight}}let p=0,m=0;if("nearest"==o)e.top0&&e.bottom>d.bottom+m&&(m=e.bottom-d.bottom+m+r)):e.bottom>d.bottom&&(m=e.bottom-d.bottom+r,i<0&&e.top-m0&&e.right>d.right+p&&(p=e.right-d.right+p+n)):e.right>d.right&&(p=e.right-d.right+n,i<0&&e.leftMath.abs(w-p)&&(s="nearest"),b&&1>Math.abs(b-m)&&(o="nearest")}}if(u)break;c=c.assignedSlot||c.parentNode}else if(11==c.nodeType)c=c.host;else break}(this.view.scrollDOM,f,e.head0&&i<=0)e=v(t=t.childNodes[e-1]);else{if(1!=t.nodeType||!(e=0))return null;t=t.childNodes[e],e=0}}}class et{constructor(){this.changes=[]}compareRange(t,e){tc(t,e,this.changes)}comparePoint(t,e){tc(t,e,this.changes)}}function ee(t,e){return t.tope.top+1}function ei(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function eo(t,e,i){let s=t.nodeValue.length,o=-1,n=1e9,r=0;for(let l=0;li?c.top-i:i-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&d=(c.left+c.right)/2,f=u;if((K.chrome||K.gecko)&&M(t,l).getBoundingClientRect().left==c.right&&(f=!u),d<=0)return{node:t,offset:l+(f?1:0)};o=l+(f?1:0),n=d}}}return{node:t,offset:o>-1?o:r>0?t.nodeValue.length:0}}function en(t,{x:e,y:i},s,o=-1){var n;let r=t.contentDOM.getBoundingClientRect(),l=r.top+t.viewState.paddingTop,h,{docHeight:a}=t.viewState,c=i-l;if(c<0)return 0;if(c>a)return t.state.doc.length;for(let d=t.defaultLineHeight/2,u=!1;(h=t.elementAtHeight(c)).type!=to.Text;)for(;!((c=o>0?h.bottom+d:h.top-d)>=0)||!(c<=a);){if(u)return s?null:0;u=!0,o=-o}i=l+c;let p=h.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:s?null:er(t,r,h,e,i);let m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(e,i);v&&!t.contentDOM.contains(v)&&(v=null),!v&&(e=Math.max(r.left+1,Math.min(r.right-1,e)),(v=g.elementFromPoint(e,i))&&!t.contentDOM.contains(v)&&(v=null));let w,b=-1;if(v&&(null===(n=t.docView.nearest(v))||void 0===n?void 0:n.isEditable)!=!1){if(m.caretPositionFromPoint){let y=m.caretPositionFromPoint(e,i);y&&({offsetNode:w,offset:b}=y)}else if(m.caretRangeFromPoint){let x=m.caretRangeFromPoint(e,i);x&&({startContainer:w,startOffset:b}=x,(!t.contentDOM.contains(w)||K.safari&&function(t,e,i){let s;if(3!=t.nodeType||e!=(s=t.nodeValue.length))return!1;for(let o=t.nextSibling;o;o=o.nextSibling)if(1!=o.nodeType||"BR"!=o.nodeName)return!1;return M(t,s-1,s).getBoundingClientRect().left>i}(w,b,e)||K.chrome&&function(t,e,i){if(0!=e)return!1;for(let s=t;;){let o=s.parentNode;if(!o||1!=o.nodeType||o.firstChild!=s)return!1;if(o.classList.contains("cm-line"))break;s=o}return i-(1==t.nodeType?t.getBoundingClientRect():M(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(w,b,e))&&(w=void 0))}}if(!w||!t.docView.dom.contains(w)){let S=td.find(t.docView,p);if(!S)return c>h.top+h.height/2?h.to:h.from;({node:w,offset:b}=function t(e,i,s){let o,n,r,l,h,a,c,d,u=!1;for(let p=e.firstChild;p;p=p.nextSibling){let m=f(p);for(let g=0;gi?v.left-i:Math.max(0,i-v.right),x=(w=b).top>s?w.top-s:Math.max(0,s-w.bottom);if(0==y&&0==x)return 3==p.nodeType?eo(p,i,s):t(p,i,s);(!h||d>x||d==x&&c>y)&&(h=p,a=b,c=y,d=x,u=!y||(y>0?g0)),0==y?s>b.bottom&&(!r||r.bottomb.top)&&(n=p,l=b):r&&ee(r,b)?r=es(r,b.bottom):l&&ee(l,b)&&(l=ei(l,b.top))}}if(r&&r.bottom>=s?(h=o,a=r):l&&l.top<=s&&(h=n,a=l),!h)return{node:e,offset:0};let S=Math.max(a.left,Math.min(a.right,i));if(3==h.nodeType)return eo(h,S,s);if(u&&"false"!=h.contentEditable)return t(h,S,s);let M=Array.prototype.indexOf.call(e.childNodes,h)+(i>=(a.left+a.right)/2?1:0);return{node:e,offset:M}}(S.dom,e,i))}return t.docView.posFromDOM(w,b)}function er(t,e,i,s,o){let n=Math.round((s-e.left)*t.defaultCharacterWidth);t.lineWrapping&&i.height>1.5*t.defaultLineHeight&&(n+=Math.floor((o-i.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);let r=t.state.sliceDoc(i.from,i.to);return i.from+(0,l.Gz)(r,n,t.state.tabSize)}function el(t,e,i,s){let o=t.state.doc.lineAt(e.head),n=t.bidiSpans(o),r=t.textDirectionAt(o.from);for(let h=e,a=null;;){let c=function(t,e,i,s,o){var n;let r=s.head-t.from,h=-1;if(0==r){if(!o||!t.length)return null;e[0].level!=i&&(r=e[0].side(!1,i),h=0)}else if(r==t.length){if(o)return null;let a=e[e.length-1];a.level!=i&&(r=a.side(!0,i),h=e.length-1)}h<0&&(h=tZ.find(e,r,null!==(n=s.bidiLevel)&&void 0!==n?n:-1,s.assoc));let c=e[h];r==c.side(o,i)&&(r=(c=e[h+=o?1:-1]).side(!o,i));let d=o==(c.dir==i),u=(0,l.cp)(t.text,r,d);if(t1=t.text.slice(Math.min(r,u),Math.max(r,u)),u!=c.side(o,i))return l.jT.cursor(u+t.from,d?-1:1,c.level);let f=h==(o?e.length-1:0)?null:e[h+(o?1:-1)];return f||c.level==i?f&&f.levele(t));for(;;){let o=!1;for(let n of s)n.between(i.from-1,i.from+1,(t,s,n)=>{i.from>t&&i.fromi.from?l.jT.cursor(t,1):l.jT.cursor(s,-1),o=!0)});if(!o)return i}}class ea{constructor(t){for(let e in this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null,em){let i=em[e];t.contentDOM.addEventListener(e,s=>{!(!ep(t,s)||this.ignoreDuringComposition(s))&&("keydown"==e&&this.keydown(t,s)||(this.mustFlushObserver(s)&&t.observer.forceFlush(),this.runCustomHandlers(e,t,s)?s.preventDefault():i(t,s)))},eg[e]),this.registeredEvents.push(e)}K.chrome&&102==K.chrome_version&&t.scrollDOM.addEventListener("wheel",()=>{this.chromeScrollHack<0?t.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout(()=>{this.chromeScrollHack=-1,t.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=t.hasFocus,K.safari&&t.contentDOM.addEventListener("input",()=>null)}setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}ensureHandlers(t,e){var i;let s;for(let o of(this.customHandlers=[],e))if(s=null===(i=o.update(t).spec)||void 0===i?void 0:i.domEventHandlers)for(let n in this.customHandlers.push({plugin:o.value,handlers:s}),s)0>this.registeredEvents.indexOf(n)&&"scroll"!=n&&(this.registeredEvents.push(n),t.contentDOM.addEventListener(n,e=>{ep(t,e)&&this.runCustomHandlers(n,t,e)&&e.preventDefault()}))}runCustomHandlers(t,e,i){for(let s of this.customHandlers){let o=s.handlers[t];if(o)try{if(o.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(n){tA(e.state,n)}}return!1}runScrollHandlers(t,e){for(let i of(this.lastScrollTop=t.scrollDOM.scrollTop,this.lastScrollLeft=t.scrollDOM.scrollLeft,this.customHandlers)){let s=i.handlers.scroll;if(s)try{s.call(i.plugin,e,t)}catch(o){tA(t.state,o)}}}keydown(t,e){let i;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),!!(9==e.keyCode&&Date.now()t.keyCode==e.keyCode))&&!e.ctrlKey||ed.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey))&&(this.pendingIOSKey=i||e,setTimeout(()=>this.flushIOSKey(t),250),!0))}flushIOSKey(t){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,k(t.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(K.safari&&!K.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(t){return"keydown"==t.type&&229!=t.keyCode}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}let ec=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],ed="dthko",eu=[16,17,18,20,91,92,224,225];class ef{constructor(t,e,i,s){let o,n;this.view=t,this.style=i,this.mustSelect=s,this.lastEvent=e;let r=t.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(l.yy.allowMultipleSelections)&&((o=t.state.facet(tg)).length?o[0](e):K.mac?e.metaKey:e.ctrlKey),this.dragMove=(n=t.state.facet(tv)).length?n[0](e):K.mac?!e.altKey:!e.ctrlKey,this.dragging=!!function(t,e){let{main:i}=t.state.selection;if(i.empty)return!1;let s=c(t.root);if(!s||0==s.rangeCount)return!0;let o=s.getRangeAt(0).getClientRects();for(let n=0;n=e.clientX&&r.top<=e.clientY&&r.bottom>=e.clientY)return!0}return!1}(t,e)&&1==eD(e)&&null,!1===this.dragging&&(e.preventDefault(),this.select(e))}move(t){if(0==t.buttons)return this.destroy();!1===this.dragging&&this.select(this.lastEvent=t)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}select(t){let e=this.style.get(t,this.extend,this.multiple);(this.mustSelect||!e.eq(this.view.state.selection)||e.main.assoc!=this.view.state.selection.main.assoc)&&this.view.dispatch({selection:e,userEvent:"select.pointer",scrollIntoView:!0}),this.mustSelect=!1}update(t){t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function ep(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i=e.target,s;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(s=T.get(i))&&s.ignoreEvent(e))return!1;return!0}let em=Object.create(null),eg=Object.create(null),ev=K.ie&&K.ie_version<15||K.ios&&K.webkit_version<604;function ew(t,e){let{state:i}=t,s,o=1,n=i.toText(e),r=n.lines==i.selection.ranges.length;if(null!=eO&&i.selection.ranges.every(t=>t.empty)&&eO==n.toString()){let h=-1;s=i.changeByRange(t=>{let s=i.doc.lineAt(t.from);if(s.from==h)return{range:t};h=s.from;let a=i.toText((r?n.line(o++).text:e)+i.lineBreak);return{changes:{from:s.from,insert:a},range:l.jT.cursor(t.from+a.length)}})}else s=r?i.changeByRange(t=>{let e=n.line(o++);return{changes:{from:t.from,to:t.to,insert:e.text},range:l.jT.cursor(t.from+e.length)}}):i.replaceSelection(n);t.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}function eb(t,e,i,s){if(1==s)return l.jT.cursor(e,i);if(2==s)return function(t,e,i=1){let s=t.charCategorizer(e),o=t.doc.lineAt(e),n=e-o.from;if(0==o.length)return l.jT.cursor(e);0==n?i=1:n==o.length&&(i=-1);let r=n,h=n;i<0?r=(0,l.cp)(o.text,n,!1):h=(0,l.cp)(o.text,n);let a=s(o.text.slice(r,h));for(;r>0;){let c=(0,l.cp)(o.text,r,!1);if(s(o.text.slice(c,r))!=a)break;r=c}for(;h{t.inputState.setSelectionOrigin("select"),27==e.keyCode?t.inputState.lastEscPress=Date.now():0>eu.indexOf(e.keyCode)&&(t.inputState.lastEscPress=0)},em.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},em.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},eg.touchstart=eg.touchmove={passive:!0},em.mousedown=(t,e)=>{let i,s,o,n,r;if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return;let h=null;for(let a of t.state.facet(tw))if(h=a(t,e))break;if(h||0!=e.button||(i=eS(t,e),s=eD(e),o=t.state.selection,n=i,r=e,h={update(t){t.docChanged&&(i.pos=t.changes.mapPos(i.pos),o=o.map(t.changes),r=null)},get(e,h,a){let c;r&&e.clientX==r.clientX&&e.clientY==r.clientY?c=n:(c=n=eS(t,e),r=e);let d=eb(t,c.pos,c.bias,s);if(i.pos!=c.pos&&!h){let u=eb(t,i.pos,i.bias,s),f=Math.min(u.from,d.from),p=Math.max(u.to,d.to);d=f1&&o.ranges.some(t=>t.eq(d))?function(t,e){for(let i=0;;i++)if(t.ranges[i].eq(e))return l.jT.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}(o,d):a?o.addRange(d):l.jT.create([d])}}),h){let c=t.root.activeElement!=t.contentDOM;c&&t.observer.ignore(()=>S(t.contentDOM)),t.inputState.startMouseSelection(new ef(t,e,h,c))}};let ey=(t,e)=>t>=e.top&&t<=e.bottom,ex=(t,e,i)=>ey(e,i)&&t>=i.left&&t<=i.right;function eS(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:i,bias:function(t,e,i,s){let o=td.find(t.docView,e);if(!o)return 1;let n=e-o.posAtStart;if(0==n)return 1;if(n==o.length)return -1;let r=o.coordsAt(n,-1);if(r&&ex(i,s,r))return -1;let l=o.coordsAt(n,1);return l&&ex(i,s,l)?1:r&&ey(s,r)?-1:1}(t,i,e.clientX,e.clientY)}}let eM=K.ie&&K.ie_version<=11,ek=null,eC=0,eA=0;function eD(t){if(!eM)return t.detail;let e=ek,i=eA;return ek=t,eA=Date.now(),eC=!e||i>Date.now()-400&&2>Math.abs(e.clientX-t.clientX)&&2>Math.abs(e.clientY-t.clientY)?(eC+1)%3:1}function eT(t,e,i,s){if(!i)return;let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1);e.preventDefault();let{mouseSelection:n}=t.inputState,r=s&&n&&n.dragging&&n.dragMove?{from:n.dragging.from,to:n.dragging.to}:null,l={from:o,insert:i},h=t.state.changes(r?[r,l]:l);t.focus(),t.dispatch({changes:h,selection:{anchor:h.mapPos(o,-1),head:h.mapPos(o,1)},userEvent:r?"move.drop":"input.drop"})}em.dragstart=(t,e)=>{let{selection:{main:i}}=t.state,{mouseSelection:s}=t.inputState;s&&(s.dragging=i),e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(i.from,i.to)),e.dataTransfer.effectAllowed="copyMove")},em.drop=(t,e)=>{if(!e.dataTransfer)return;if(t.state.readOnly)return e.preventDefault();let i=e.dataTransfer.files;if(i&&i.length){e.preventDefault();let s=Array(i.length),o=0,n=()=>{++o==i.length&&eT(t,e,s.filter(t=>null!=t).join(t.state.lineBreak),!1)};for(let r=0;r{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(s[r]=l.result),n()},l.readAsText(i[r])}}else eT(t,e,e.dataTransfer.getData("Text"),!0)},em.paste=(t,e)=>{if(t.state.readOnly)return e.preventDefault();t.observer.flush();let i=ev?null:e.clipboardData;i?(ew(t,i.getData("text/plain")),e.preventDefault()):function(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{t.focus(),i.remove(),ew(t,i.value)},50)}(t)};let eO=null;function eR(t){setTimeout(()=>{t.hasFocus!=t.inputState.notifiedFocused&&t.update([])},10)}em.copy=em.cut=(t,e)=>{let{text:i,ranges:s,linewise:o}=function(t){let e=[],i=[],s=!1;for(let o of t.selection.ranges)o.empty||(e.push(t.sliceDoc(o.from,o.to)),i.push(o));if(!e.length){let n=-1;for(let{from:r}of t.selection.ranges){let l=t.doc.lineAt(r);l.number>n&&(e.push(l.text),i.push({from:l.from,to:Math.min(t.doc.length,l.to+1)})),n=l.number}s=!0}return{text:e.join(t.lineBreak),ranges:i,linewise:s}}(t.state);if(!i&&!o)return;eO=o?i:null;let n=ev?null:e.clipboardData;n?(e.preventDefault(),n.clearData(),n.setData("text/plain",i)):function(t,e){let i=t.dom.parentNode;if(!i)return;let s=i.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.value=e,s.focus(),s.selectionEnd=e.length,s.selectionStart=0,setTimeout(()=>{s.remove(),t.focus()},50)}(t,i),"cut"!=e.type||t.state.readOnly||t.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"})},em.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),eR(t)},em.blur=t=>{t.observer.clearSelectionRange(),eR(t)},em.compositionstart=em.compositionupdate=t=>{null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},em.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,K.chrome&&K.android&&t.observer.flushSoon(),setTimeout(()=>{t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},em.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},em.beforeinput=(t,e)=>{var i;let s;if(K.chrome&&K.android&&(s=ec.find(t=>t.inputType==e.inputType))&&(t.observer.delayAndroidKey(s.key,s.keyCode),"Backspace"==s.key||"Delete"==s.key)){let o=(null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0;setTimeout(()=>{var e;((null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0)>o+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};let eE=["pre-wrap","normal","pre-line","break-spaces"];class eB{constructor(t){this.lineWrapping=t,this.doc=l.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength)),this.lineHeight*i}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return eE.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,r=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=n;if(this.lineWrapping=n,this.lineHeight=e,this.charWidth=i,this.lineLength=s,r){this.heightSamples={};for(let l=0;l0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(t.heightChanged=!0),this.height=e)}replace(t,e,i){return eN.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let o=this;for(let n=s.length-1;n>=0;n--){let{fromA:r,toA:l,fromB:h,toB:a}=s[n],c=o.lineAt(r,eH.ByPosNoHeight,e,0,0),d=c.to>=l?c:o.lineAt(l,eH.ByPosNoHeight,e,0,0);for(a+=d.to-l,l=d.to;n>0&&c.from<=s[n-1].toA;)r=s[n-1].fromA,h=s[n-1].fromB,n--,r2*o){let n=t[e-1];n.break?t.splice(--e,1,n.left,null,n.right):t.splice(--e,1,n.left,n.right),i+=1+n.break,s-=n.size}else if(o>2*s){let r=t[i];r.break?t.splice(i,1,r.left,null,r.right):t.splice(i,1,r.left,r.right),i+=2+r.break,o-=r.size}else break}else if(s=o&&n(this.blockAt(0,i,s,o))}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more&&this.setHeight(t,s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class eW extends eP{constructor(t,e){super(t,e,to.Text),this.collapsed=0,this.widgetHeight=0}replace(t,e,i){let s=i[0];return 1==i.length&&(s instanceof eW||s instanceof ez&&4&s.flags)&&10>Math.abs(this.length-s.length)?(s instanceof ez?s=new eW(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):eN.of(i)}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more?this.setHeight(t,s.heights[s.index++]):(i||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ez extends eN{constructor(t){super(t,0)}lines(t,e){let i=t.lineAt(e).number,s=t.lineAt(e+this.length).number;return{firstLine:i,lastLine:s,lineHeight:this.height/(s-i+1)}}blockAt(t,e,i,s){let{firstLine:o,lastLine:n,lineHeight:r}=this.lines(e,s),l=Math.max(0,Math.min(n-o,Math.floor((t-i)/r))),{from:h,length:a}=e.line(o+l);return new eV(h,a,i+r*l,r,to.Text)}lineAt(t,e,i,s,o){if(e==eH.ByHeight)return this.blockAt(t,i,s,o);if(e==eH.ByPosNoHeight){let{from:n,to:r}=i.lineAt(t);return new eV(n,r-n,0,0,to.Text)}let{firstLine:l,lineHeight:h}=this.lines(i,o),{from:a,length:c,number:d}=i.lineAt(t);return new eV(a,c,s+h*(d-l),h,to.Text)}forEachLine(t,e,i,s,o,n){let{firstLine:r,lineHeight:l}=this.lines(i,o);for(let h=Math.max(t,o),a=Math.min(o+this.length,e);h<=a;){let c=i.lineAt(h);h==t&&(s+=l*(c.number-r)),n(new eV(c.from,c.length,s,l,to.Text)),s+=l,h=c.to+1}}replace(t,e,i){let s=this.length-e;if(s>0){let o=i[i.length-1];o instanceof ez?i[i.length-1]=new ez(o.length+s):i.push(null,new ez(s-1))}if(t>0){let n=i[0];n instanceof ez?i[0]=new ez(t+n.length):i.unshift(new ez(t-1),null)}return eN.of(i)}decomposeLeft(t,e){e.push(new ez(t-1),null)}decomposeRight(t,e){e.push(null,new ez(this.length-t-1))}updateHeight(t,e=0,i=!1,s){let o=e+this.length;if(s&&s.from<=e+this.length&&s.more){let n=[],r=Math.max(e,s.from),l=-1,h=t.heightChanged;for(s.from>e&&n.push(new ez(s.from-e-1).updateHeight(t,e));r<=o&&s.more;){let a=t.doc.lineAt(r).length;n.length&&n.push(null);let c=s.heights[s.index++];-1==l?l=c:Math.abs(c-l)>=.001&&(l=-2);let d=new eW(a,c);d.outdated=!1,n.push(d),r+=a+1}r<=o&&n.push(null,new ez(o-r).updateHeight(t,r));let u=eN.of(n);return t.heightChanged=h||l<0||Math.abs(u.height-this.height)>=.001||Math.abs(l-this.lines(t.doc,e).lineHeight)>=.001,u}return(i||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class eF extends eN{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return 1&this.flags}blockAt(t,e,i,s){let o=i+this.left.height;return tr))return h;let a=e==eH.ByPosNoHeight?eH.ByPosNoHeight:eH.ByPos;return l?h.join(this.right.lineAt(r,a,i,n,r)):this.left.lineAt(r,a,i,s,o).join(h)}forEachLine(t,e,i,s,o,n){let r=s+this.left.height,l=o+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,e,i,r,l,n);else{let h=this.lineAt(l,eH.ByPos,i,s,o);t=t&&h.from<=e&&n(h),e>h.to&&this.right.forEachLine(h.to+1,e,i,r,l,n)}}replace(t,e,i){let s=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let o=[];t>0&&this.decomposeLeft(t,o);let n=o.length;for(let r of i)o.push(r);if(t>0&&eI(o,n-1),e=++i&&e.push(null),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);t2*e.size||e.size>2*t.size?eN.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,s){let{left:o,right:n}=this,r=e+o.length+this.break,l=null;return(s&&s.from<=e+o.length&&s.more?l=o=o.updateHeight(t,e,i,s):o.updateHeight(t,e,i),s&&s.from<=r+n.length&&s.more?l=n=n.updateHeight(t,r,i,s):n.updateHeight(t,r,i),l)?this.balanced(o,n):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function eI(t,e){let i,s;null==t[e]&&(i=t[e-1])instanceof ez&&(s=t[e+1])instanceof ez&&t.splice(e-1,3,new ez(i.length+1+s.length))}class eq{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let i=Math.min(e,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof eW?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new eW(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=5)&&this.addLineDeco(s,o)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new eW(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new ez(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof eW)return t;let e=new eW(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine(),t.type!=to.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,t.type!=to.WidgetBefore&&(this.covering=t)}addLineDeco(t,e){let i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,t),this.writtenTo=this.pos=this.pos+e}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof eW||this.isCovered?(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&"visible"!=d.overflow){let u=c.getBoundingClientRect();n=Math.max(n,u.left),r=Math.min(r,u.right),l=Math.max(l,u.top),h=a==t.parentNode?u.bottom:Math.min(h,u.bottom)}a="absolute"==d.position||"fixed"==d.position?c.offsetParent:c.parentNode}else if(11==a.nodeType)a=a.host;else break;return{left:n-i.left,right:Math.max(n,r)-i.left,top:l-(i.top+e),bottom:Math.max(l,h)-(i.top+e)}}function e$(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}class eG{constructor(t,e,i){this.from=t,this.to=e,this.size=i}static same(t,e){if(t.length!=e.length)return!1;for(let i=0;i"function"!=typeof t&&"cm-lineWrapping"==t.class);this.heightOracle=new eB(e),this.stateDeco=t.facet(tV).filter(t=>"function"!=typeof t),this.heightMap=eN.empty().applyChanges(this.stateDeco,l.xv.empty,this.heightOracle.setDoc(t.doc),[new tW(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=tn.set(this.lineGaps.map(t=>t.draw(!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some(({from:t,to:e})=>s>=t&&s<=e)){let{from:o,to:n}=this.lineBlockAt(s);t.push(new eU(o,n))}}this.viewports=t.sort((t,e)=>t.from-e.from),this.scaler=this.heightMap.height<=7e6?eZ:new eJ(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,t=>{this.viewportLines.push(1==this.scaler.scale?t:e0(t,this.scaler))})}update(t,e=null){var i,s;let o;this.state=t.state;let n=this.stateDeco;this.stateDeco=this.state.facet(tV).filter(t=>"function"!=typeof t);let r=t.changedRanges,h=tW.extendWithRanges(r,(i=this.stateDeco,s=t?t.changes:l.as.empty(this.state.doc.length),o=new ej,l.Xs.compare(n,i,s,o,0),o.changes)),a=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),h),this.heightMap.height!=a&&(t.flags|=2);let c=h.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headc.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,e));let d=!t.changes.empty||2&t.flags||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),d&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(tM)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),s=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?tF.RTL:tF.LTR;let n=this.heightOracle.mustRefreshForWrapping(o),r=n||this.mustMeasureContent||this.contentDOMHeight!=e.clientHeight;this.contentDOMHeight=e.clientHeight,this.mustMeasureContent=!1;let h=0,a=0,c=parseInt(i.paddingTop)||0,d=parseInt(i.paddingBottom)||0;(this.paddingTop!=c||this.paddingBottom!=d)&&(this.paddingTop=c,this.paddingBottom=d,h|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(s.lineWrapping&&(r=!0),this.editorWidth=t.scrollDOM.clientWidth,h|=8);let u=(this.printing?e$:eK)(e,this.paddingTop),f=u.top-this.pixelViewport.top,p=u.bottom-this.pixelViewport.bottom;this.pixelViewport=u;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(r=!0)),!this.inView&&!this.scrollTarget)return 0;let g=e.clientWidth;if((this.contentDOMWidth!=g||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=g,this.editorHeight=t.scrollDOM.clientHeight,h|=8),r){let v=t.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(v)&&(n=!0),n||s.lineWrapping&&Math.abs(g-this.contentDOMWidth)>s.charWidth){let{lineHeight:w,charWidth:b}=t.docView.measureTextSize();(n=w>0&&s.refresh(o,w,b,g/b,v))&&(t.docView.minWidth=0,h|=8)}for(let y of(f>0&&p>0?a=Math.max(f,p):f<0&&p<0&&(a=Math.min(f,p)),s.heightChanged=!1,this.viewports)){let x=y.from==this.viewport.from?v:t.docView.measureVisibleLineHeights(y);this.heightMap=(n?eN.empty().applyChanges(this.stateDeco,l.xv.empty,this.heightOracle,[new tW(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(s,0,n,new eL(y.from,x))}s.heightChanged&&(h|=2)}let S=!this.viewportIsAppropriate(this.viewport,a)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return S&&(this.viewport=this.getViewport(a,this.scrollTarget)),this.updateForViewport(),(2&h||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(n?[]:this.lineGaps,t)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),s=this.heightMap,o=this.state.doc,{visibleTop:n,visibleBottom:r}=this,l=new eU(s.lineAt(n-1e3*i,eH.ByHeight,o,0,0).from,s.lineAt(r+(1-i)*1e3,eH.ByHeight,o,0,0).to);if(e){let{head:h}=e.range;if(hl.to){let a=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),c=s.lineAt(h,eH.ByPos,o,0,0),d;d="center"==e.y?(c.top+c.bottom)/2-a/2:"start"==e.y||"nearest"==e.y&&h=r+Math.max(10,Math.min(i,250)))&&s>n-2e3&&o>1,n=s<<1;if(this.defaultTextDirection!=tF.LTR&&!i)return[];let r=[],h=(s,n,a,c)=>{if(n-ss&&ft.from>=a.from&&t.to<=a.to&&Math.abs(t.from-s)t.frome));if(!p){if(nt.from<=n&&t.to>=n)){let m=e.moveToLineBoundary(l.jT.cursor(n),!1,!0).head;m>s&&(n=m)}p=new eG(s,n,this.gapSize(a,s,n,c))}r.push(p)};for(let a of this.viewportLines){let c,d;if(a.lengtho&&(s.push({from:o,to:t}),n+=t-o),o=e}},20),oa.from&&h(a.from,c,a,u),dt.draw(this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];l.Xs.spans(t,this.viewport.from,this.viewport.to,{span(t,i){e.push({from:t,to:i})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some((t,i)=>t.from!=e[i].from||t.to!=e[i].to);return this.visibleRanges=e,i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||e0(this.heightMap.lineAt(t,eH.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(t){return e0(this.heightMap.lineAt(this.scaler.fromDOM(t),eH.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(t){return e0(this.heightMap.blockAt(this.scaler.fromDOM(t),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class eU{constructor(t,e){this.from=t,this.to=e}}function eY({total:t,ranges:e},i){if(i<=0)return e[0].from;if(i>=1)return e[e.length-1].to;let s=Math.floor(t*i);for(let o=0;;o++){let{from:n,to:r}=e[o],l=r-n;if(s<=l)return n+s;s-=l}}function eQ(t,e){let i=0;for(let{from:s,to:o}of t.ranges){if(e<=o){i+=e-s;break}i+=o-s}return i/t.total}let eZ={toDOM:t=>t,fromDOM:t=>t,scale:1};class eJ{constructor(t,e,i){let s=0,o=0,n=0;for(let r of(this.viewports=i.map(({from:i,to:o})=>{let n=e.lineAt(i,eH.ByPos,t,0,0).top,r=e.lineAt(o,eH.ByPos,t,0,0).bottom;return s+=r-n,{from:i,to:o,top:n,bottom:r,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(e.height-s),this.viewports))r.domTop=n+(r.top-o)*this.scale,n=r.domBottom=r.domTop+(r.bottom-r.top),o=r.bottom}toDOM(t){for(let e=0,i=0,s=0;;e++){let o=ee0(t,e)):t.type)}let e1=l.r$.define({combine:t=>t.join(" ")}),e2=l.r$.define({combine:t=>t.indexOf(!0)>-1}),e8=h.V.newName(),e3=h.V.newName(),e9=h.V.newName(),e5={"&light":"."+e3,"&dark":"."+e9};function e4(t,e,i){return new h.V(e,{finish:e=>/&/.test(e)?e.replace(/&\w*/,e=>{if("&"==e)return t;if(!i||!i[e])throw RangeError(`Unsupported selector: ${e}`);return i[e]}):t+" "+e})}let e6=e4("."+e8,{"&.cm-editor":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,minHeight:"100%",display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},e5);class e7{constructor(t,e,i,s){this.typeOver=s,this.bounds=null,this.text="";let{impreciseHead:o,impreciseAnchor:n}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let r=o||n?[]:function(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}=t.observer.selectionRange;return i&&(e.push(new t3(i,s)),(o!=i||n!=s)&&e.push(new t3(o,n))),e}(t),h=new t2(r,t.state);h.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=h.text,this.newSel=function(t,e){if(0==t.length)return null;let i=t[0].pos,s=2==t.length?t[1].pos:i;return i>-1&&s>-1?l.jT.single(i+e,s+e):null}(r,this.bounds.from)}else{let a=t.observer.selectionRange,c=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!d(t.contentDOM,a.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(a.focusNode,a.focusOffset),u=n&&n.node==a.anchorNode&&n.offset==a.anchorOffset||!d(t.contentDOM,a.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(a.anchorNode,a.anchorOffset);this.newSel=l.jT.single(u,c)}}}function it(t,e){let i;let{newSel:s}=e,o=t.state.selection.main;if(e.bounds){let{from:n,to:r}=e.bounds,h=o.from,a=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||K.android&&e.text.length0&&l>0&&t.charCodeAt(r-1)==e.charCodeAt(l-1);)r--,l--;if("end"==s){let h=Math.max(0,n-Math.min(r,l));i-=r+h-n}if(r=r?n-i:0;n-=a,l=n+(l-r),r=n}else if(l=l?n-i:0;n-=c,r=n+(r-l),l=n}return{from:n,toA:r,toB:l}}(t.state.doc.sliceString(n,r,"￿"),e.text,h-n,a);c&&(K.chrome&&13==t.inputState.lastKeyCode&&c.toB==c.from+2&&"￿￿"==e.text.slice(c.from,c.toB)&&c.toB--,i={from:n+c.from,to:n+c.toA,insert:l.xv.of(e.text.slice(c.from,c.toB).split("￿"))})}else s&&(!t.hasFocus||!t.state.facet(tD)||s.main.eq(o))&&(s=null);if(!i&&!s)return!1;if(!i&&e.typeOver&&!o.empty&&s&&s.main.empty?i={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,o.to)}:i&&i.from>=o.from&&i.to<=o.to&&(i.from!=o.from||i.to!=o.to)&&o.to-o.from-(i.to-i.from)<=4?i={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,o.to))}:(K.mac||K.android)&&i&&i.from==i.to&&i.from==o.head-1&&/^\. ?$/.test(i.insert.toString())?(s&&2==i.insert.length&&(s=l.jT.single(s.main.anchor-1,s.main.head-1)),i={from:o.from,to:o.to,insert:l.xv.of([" "])}):K.chrome&&i&&i.from==i.to&&i.from==o.head&&"\n "==i.insert.toString()&&t.lineWrapping&&(s&&(s=l.jT.single(s.main.anchor-1,s.main.head-1)),i={from:o.from,to:o.to,insert:l.xv.of([" "])}),i){let d,u=t.state;if(K.ios&&t.inputState.flushIOSKey(t)||K.android&&(i.from==o.from&&i.to==o.to&&1==i.insert.length&&2==i.insert.lines&&k(t.contentDOM,"Enter",13)||i.from==o.from-1&&i.to==o.to&&0==i.insert.length&&k(t.contentDOM,"Backspace",8)||i.from==o.from&&i.to==o.to+1&&0==i.insert.length&&k(t.contentDOM,"Delete",46)))return!0;let f=i.insert.toString();if(t.state.facet(tx).some(e=>e(t,i.from,i.to,f)))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,i.from>=o.from&&i.to<=o.to&&i.to-i.from>=(o.to-o.from)/3&&(!s||s.main.empty&&s.main.from==i.from+i.insert.length)&&t.inputState.composing<0){let p=o.fromi.to?u.sliceDoc(i.to,o.to):"";d=u.replaceSelection(t.state.toText(p+i.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{let g=u.changes(i),v=s&&!u.selection.main.eq(s.main)&&s.main.to<=g.newLength?s.main:void 0;if(u.selection.ranges.length>1&&t.inputState.composing>=0&&i.to<=o.to&&i.to>=o.to-10){let w=t.state.sliceDoc(i.from,i.to),b=t4(t)||t.state.doc.lineAt(o.head),y=o.to-i.to,x=o.to-o.from;d=u.changeByRange(e=>{if(e.from==o.from&&e.to==o.to)return{changes:g,range:v||e.map(g)};let s=e.to-y,n=s-w.length;if(e.to-e.from!=x||t.state.sliceDoc(n,s)!=w||b&&e.to>=b.from&&e.from<=b.to)return{range:e};let r=u.changes({from:n,to:s,insert:i.insert}),h=e.to-o.to;return{changes:r,range:v?l.jT.range(Math.max(0,v.anchor+h),Math.max(0,v.head+h)):e.map(r)}})}else d={changes:g,selection:v&&u.selection.replaceRange(v)}}let S="input.type";return t.composing&&(S+=".compose",t.inputState.compositionFirstChange&&(S+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(d,{scrollIntoView:!0,userEvent:S}),!0}if(!s||s.main.eq(o))return!1;{let M=!1,C="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(M=!0),C=t.inputState.lastSelectionOrigin),t.dispatch({selection:s,scrollIntoView:M,userEvent:C}),!0}}let ie={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},ii=K.ie&&K.ie_version<=11;class is{constructor(t){this.view=t,this.active=!1,this.selectionRange=new y,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resize=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let i of e)this.queue.push(i);(K.ie&&K.ie_version<=11||K.ios&&t.composing)&&e.some(t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length)?this.flushSoon():this.flush()}),ii&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resize=new ResizeObserver(()=>{var t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runScrollHandlers(this.view,t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,i)=>e!=t[i]))){for(let e of(this.gapIntersection.disconnect(),t))this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(tD)?i.root.activeElement!=this.dom:!u(i.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(t)){e||(this.selectionChanged=!1);return}(K.ie&&K.ie_version<=11||K.android&&K.chrome)&&!i.state.selection.main.empty&&s.focusNode&&p(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=K.safari&&11==t.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t){let e=null;function i(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),!e)return null;let s=e.startContainer,o=e.startOffset,n=e.endContainer,r=e.endOffset,l=t.docView.domAtPos(t.state.selection.main.anchor);return p(l.node,l.offset,n,r)&&([s,o,n,r]=[n,r,s,o]),{anchorNode:s,anchorOffset:o,focusNode:n,focusOffset:r}}(this.view)||c(t.root);if(!e||this.selectionRange.eq(e))return!1;let i=u(this.dom,e);return i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let t=this.delayedAndroidKey;t&&(this.clearDelayedAndroidKey(),!this.flush()&&t.force&&k(this.dom,t.key,t.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}this.delayedAndroidKey&&"Enter"!=t||(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}processRecords(){let t=this.queue;for(let e of this.observer.takeRecords())t.push(e);t.length&&(this.queue=[]);let i=-1,s=-1,o=!1;for(let n of t){let r=this.readMutation(n);r&&(r.typeOver&&(o=!0),-1==i?{from:i,to:s}=r:(i=Math.min(r.from,i),s=Math.max(r.to,s)))}return{from:i,to:s,typeOver:o}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),s=this.selectionChanged&&u(this.dom,this.selectionRange);return t<0&&!s?null:(t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new e7(this.view,t,e,i))}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return!1;let i=this.view.state,s=it(this.view,e);return this.view.state==i&&this.view.update([]),s}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.dirty|=4),"childList"==t.type){let i=io(e,t.previousSibling||t.target.previousSibling,-1),s=io(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,i;for(let s of(this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resize)||void 0===i||i.disconnect(),this.scrollTargets))s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function io(t,e,i){for(;e;){let s=T.get(e);if(s&&s.parent==t)return s;let o=e.parentNode;e=o!=t.dom?o:i>0?e.nextSibling:e.previousSibling}return null}class ir{constructor(t={}){for(let e of(this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: absolute; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=t.dispatch||(t=>this.update([t])),this.dispatch=this.dispatch.bind(this),this._root=t.root||function(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(t.parent)||document,this.viewState=new e_(t.state||l.yy.create(t)),this.plugins=this.state.facet(tO).map(t=>new tE(t)),this.plugins))e.update(this);this.observer=new is(this),this.inputState=new ea(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new t9(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),t.parent&&t.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...t){this._dispatch(1==t.length&&t[0]instanceof l.YW?t[0]:this.state.update(...t))}update(t){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let e=!1,i=!1,s,o=this.state;for(let n of t){if(n.startState!=o)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=n.state}if(this.destroyed){this.viewState.state=o;return}let r=this.observer.delayedAndroidKey,h=null;if(r?(this.observer.clearDelayedAndroidKey(),((h=this.observer.readChange())&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(h=null)):this.observer.clear(),o.facet(l.yy.phrases)!=this.state.facet(l.yy.phrases))return this.setState(o);s=tz.create(this,o,t);let a=this.viewState.scrollTarget;try{for(let c of(this.updateState=2,t)){if(a&&(a=a.map(c.changes)),c.scrollIntoView){let{main:d}=c.state.selection;a=new tk(d.empty?d:l.jT.cursor(d.head,d.head>d.anchor?-1:1))}for(let u of c.effects)u.is(tC)&&(a=u.value)}this.viewState.update(s,a),this.bidiCache=ia.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),e=this.docView.update(s),this.state.facet(tP)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(t=>t.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(e1)!=s.state.facet(e1)&&(this.viewState.mustMeasureContent=!0),(e||i||a||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!s.empty)for(let f of this.state.facet(ty))f(s);h&&!it(this,h)&&r.force&&k(this.contentDOM,r.key,r.keyCode)}setState(t){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);for(let s of(this.viewState=new e_(t),this.plugins=t.facet(tO).map(t=>new tE(t)),this.pluginMap.clear(),this.plugins))s.update(this);this.docView=new t9(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(tO),i=t.state.facet(tO);if(e!=i){let s=[];for(let o of i){let n=e.indexOf(o);if(n<0)s.push(new tE(o));else{let r=this.plugins[n];r.mustUpdate=t,s.push(r)}}for(let l of this.plugins)l.mustUpdate!=t&&l.destroy(this);this.plugins=s,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let h of this.plugins)h.mustUpdate=t;for(let a=0;a-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,{scrollHeight:i,scrollTop:s,clientHeight:o}=this.scrollDOM,n=s>i-o-4?i:s;try{for(let r=0;;r++){this.updateState=1;let l=this.viewport,h=this.viewState.lineBlockAtHeight(n),a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(r>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];4&a||([this.measureRequests,c]=[c,this.measureRequests]);let d=c.map(t=>{try{return t.read(this)}catch(e){return tA(this.state,e),ih}}),u=tz.create(this,this.state,[]),f=!1,p=!1;u.flags|=a,e?e.flags|=a:e=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),f=this.docView.update(u));for(let m=0;m1||w<-1)&&(this.scrollDOM.scrollTop+=w,p=!0)}}if(f&&this.docView.updateSelection(!0),this.viewport.from==l.from&&this.viewport.to==l.to&&!p&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let b of this.state.facet(ty))b(e)}get themeClasses(){return e8+" "+(this.state.facet(e2)?e9:e3)+" "+this.state.facet(e1)}updateAttrs(){let t=ic(this,tB,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(tD)?"true":"false",class:"cm-content",style:`${K.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),ic(this,tL,e);let i=this.observer.ignore(()=>{let i=ti(this.contentDOM,this.contentAttrs,e),s=ti(this.dom,this.editorAttrs,t);return i||s});return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let s of i.effects)s.is(ir.announce)&&(e&&(this.announceDOM.textContent=""),e=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=s.value)}mountStyles(){this.styleModules=this.state.facet(tP),h.V.mount(this.root,this.styleModules.concat(e6).reverse())}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(null!=t.key){for(let e=0;ee.spec==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return eh(this,t,el(this,t,e,i))}moveByGroup(t,e){return eh(this,t,el(this,t,e,e=>{var i;let s,o;return i=t.head,o=(s=this.state.charCategorizer(i))(e),t=>{let e=s(t);return o==l.D0.Space&&(o=e),o==e}}))}moveToLineBoundary(t,e,i=!0){return function(t,e,i,s){let o=t.state.doc.lineAt(e.head),n=s&&t.lineWrapping?t.coordsAtPos(e.assoc<0&&e.head>o.from?e.head-1:e.head):null;if(n){let r=t.dom.getBoundingClientRect(),h=t.textDirectionAt(o.from),a=t.posAtCoords({x:i==(h==tF.LTR)?r.right-1:r.left+1,y:(n.top+n.bottom)/2});if(null!=a)return l.jT.cursor(a,i?-1:1)}let c=td.find(t.docView,e.head),d=c?i?c.posAtEnd:c.posAtStart:i?o.to:o.from;return l.jT.cursor(d,i?-1:1)}(this,t,e,i)}moveVertically(t,e,i){return eh(this,t,function(t,e,i,s){let o=e.head,n=i?1:-1;if(o==(i?t.state.doc.length:0))return l.jT.cursor(o,e.assoc);let r=e.goalColumn,h,a=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(o),d=t.documentTop;if(c)null==r&&(r=c.left-a.left),h=n<0?c.top:c.bottom;else{let u=t.viewState.lineBlockAt(o);null==r&&(r=Math.min(a.right-a.left,t.defaultCharacterWidth*(o-u.from))),h=(n<0?u.top:u.bottom)+d}let f=a.left+r,p=null!=s?s:t.defaultLineHeight>>1;for(let m=0;;m+=10){let g=h+(p+m)*n,v=en(t,{x:f,y:g},!1,n);if(ga.bottom||(n<0?vo))return l.jT.cursor(v,e.assoc,void 0,r)}}(this,t,e,i))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=!0){return this.readMeasured(),en(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(t),o=this.bidiSpans(s);return b(i,o[tZ.find(o,t-s.from,-1,e)].dir==tF.LTR==e>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(tS)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>il)return t0(t.length);let e=this.textDirectionAt(t.from);for(let i of this.bidiCache)if(i.from==t.from&&i.dir==e)return i.order;let s=function(t,e){let i=t.length,s=e==tI?1:2,o=e==tI?2:1;if(!t||1==s&&!tQ.test(t))return t0(i);for(let n=0,r=s,l=s;n=0;M-=3)if(tX[M+1]==-x){let k=tX[M+2],C=2&k?s:4&k?1&k?o:s:0;C&&(tJ[v]=tJ[tX[M]]=C),w=M;break}}else if(189==tX.length)break;else tX[w++]=v,tX[w++]=y,tX[w++]=b}else if(2==(S=tJ[v])||1==S){let A=S==s;b=A?0:1;for(let D=w-3;D>=0;D-=3){let T=tX[D+2];if(2&T)break;if(A)tX[D+2]|=2;else{if(4&T)break;tX[D+2]|=4}}}for(let O=0;ON;){let z=W,F=2!=tJ[--W];for(;W>N&&F==(2!=tJ[W-1]);)W--;V.push(new tZ(W,z,F?2:1))}else V.push(new tZ(N,H,0))}else for(let I=0;IDate.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{S(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return tC.of(new tk("number"==typeof t?l.jT.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}static domEventHandlers(t){return tR.define(()=>({}),{eventHandlers:t})}static theme(t,e){let i=h.V.newName(),s=[e1.of(i),tP.of(e4(`.${i}`,t))];return e&&e.dark&&s.push(e2.of(!0)),s}static baseTheme(t){return l.Wl.lowest(tP.of(e4("."+e8,t,e5)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),s=i&&T.get(i)||T.get(t);return(null===(e=null==s?void 0:s.rootView)||void 0===e?void 0:e.view)||null}}ir.styleModule=tP,ir.inputHandler=tx,ir.perLineTextDirection=tS,ir.exceptionSink=tb,ir.updateListener=ty,ir.editable=tD,ir.mouseSelectionStyle=tw,ir.dragMovesSelection=tv,ir.clickAddsSelectionRange=tg,ir.decorations=tV,ir.atomicRanges=tH,ir.scrollMargins=tN,ir.darkTheme=e2,ir.contentAttributes=tL,ir.editorAttributes=tB,ir.lineWrapping=ir.contentAttributes.of({class:"cm-lineWrapping"}),ir.announce=l.Py.define();let il=4096,ih={};class ia{constructor(t,e,i,s){this.from=t,this.to=e,this.dir=i,this.order=s}static update(t,e){if(e.empty)return t;let i=[],s=t.length?t[t.length-1].dir:tF.LTR;for(let o=Math.max(0,t.length-10);o=0;o--){let n=s[o],r="function"==typeof n?n(t):n;r&&tt(r,i)}return i}let id=K.mac?"mac":K.windows?"win":K.linux?"linux":"key";function iu(t,e,i){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==i&&e.shiftKey&&(t="Shift-"+t),t}let ip=l.Wl.default(ir.domEventHandlers({keydown:(t,e)=>iy(iv(e.state),t,e,"editor")})),im=l.r$.define({enables:ip}),ig=new WeakMap;function iv(t){let e=t.facet(im),i=ig.get(e);return i||ig.set(e,i=function(t,e=id){let i=Object.create(null),s=Object.create(null),o=(t,e)=>{let i=s[t];if(null==i)s[t]=e;else if(i!=e)throw Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},n=(t,s,n,r)=>{var l,h;let a=i[t]||(i[t]=Object.create(null)),c=s.split(/ (?!$)/).map(t=>(function(t,e){let i,s,o,n;let r=t.split(/-(?!$)/),l=r[r.length-1];"Space"==l&&(l=" ");for(let h=0;h{let i=ib={view:e,prefix:u,scope:t};return setTimeout(()=>{ib==i&&(ib=null)},4e3),!0}]})}let f=c.join(" ");o(f,!1);let p=a[f]||(a[f]={preventDefault:!1,run:(null===(h=null===(l=a._any)||void 0===l?void 0:l.run)||void 0===h?void 0:h.slice())||[]});n&&p.run.push(n),r&&(p.preventDefault=!0)};for(let r of t){let l=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let h of l){let a=i[h]||(i[h]=Object.create(null));for(let c in a._any||(a._any={preventDefault:!1,run:[]}),a)a[c].run.push(r.any)}let d=r[e]||r.key;if(d)for(let u of l)n(u,d,r.run,r.preventDefault),r.shift&&n(u,"Shift-"+d,r.shift,r.preventDefault)}return i}(e.reduce((t,e)=>t.concat(e),[]))),i}function iw(t,e,i){return iy(iv(t.state),e,t,i)}let ib=null;function iy(t,e,i,s){let o=(0,a.YG)(e),n=(0,l.gm)(o,0),r=(0,l.nZ)(n)==o.length&&" "!=o,h="",c=!1;ib&&ib.view==i&&ib.scope==s&&(h=ib.prefix+" ",(c=0>eu.indexOf(e.keyCode))&&(ib=null));let d=new Set,u=t=>{if(t){for(let s of t.run)if(!d.has(s)&&(d.add(s),s(i,e)))return!0;t.preventDefault&&(c=!0)}return!1},f=t[s],p,m;if(f){if(u(f[h+iu(o,e,!r)]))return!0;if(r&&(e.altKey||e.metaKey||e.ctrlKey)&&(p=a.ue[e.keyCode])&&p!=o){if(u(f[h+iu(p,e,!0)])||e.shiftKey&&(m=a.uY[e.keyCode])!=o&&m!=p&&u(f[h+iu(m,e,!1)]))return!0}else if(r&&e.shiftKey&&u(f[h+iu(o,e,!0)]))return!0;if(u(f._any))return!0}return c}class ix{constructor(t,e,i,s,o){this.className=t,this.left=e,this.top=i,this.width=s,this.height=o}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width>=0&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}}class iS{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(iM)!=t.state.facet(iM)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&t.view.requestMeasure(this.measureReq)}setOrder(t){let e=0,i=t.facet(iM);for(;e{var i;return i=this.drawn[e],!(t.constructor==i.constructor&&t.eq(i))})){let e=this.dom.firstChild,i=0;for(let s of t)s.update&&e&&s.constructor&&this.drawn[i].constructor&&s.update(e,this.drawn[i])?(e=e.nextSibling,i++):this.dom.insertBefore(s.draw(),e);for(;e;){let o=e.nextSibling;e.remove(),e=o}this.drawn=t}}destroy(){this.dom.remove()}}let iM=l.r$.define();function ik(t){return[tR.define(e=>new iS(e,t)),iM.of(t)]}let iC=!K.ios,iA=l.r$.define({combine:t=>(0,l.BO)(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function iD(t={}){return[iA.of(t),iO,iE,iL,tM.of(!0)]}function iT(t){return t.startState.facet(iA)!=t.startState.facet(iA)}let iO=ik({above:!0,markers(t){let{state:e}=t,i=e.facet(iA),s=[];for(let o of e.selection.ranges){let n=o==e.selection.main;if(o.empty?!n||iC:i.drawRangeCursor){let r=function(t,e,i){let s=t.coordsAtPos(e.head,e.assoc||1);if(!s)return null;let o=iV(t);return new ix(i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s.left-o.left,s.top-o.top,-1,s.bottom-s.top)}(t,o,n);r&&s.push(r)}}return s},update(t,e){t.transactions.some(t=>t.scrollIntoView)&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let i=iT(t);return i&&iR(t.state,e),t.docChanged||t.selectionSet||i},mount(t,e){iR(e.state,t)},class:"cm-cursorLayer"});function iR(t,e){e.style.animationDuration=t.facet(iA).cursorBlinkRate+"ms"}let iE=ik({above:!1,markers:t=>t.state.selection.ranges.map(e=>e.empty?[]:function(t,e){if(e.to<=t.viewport.from||e.from>=t.viewport.to)return[];let i=Math.max(e.from,t.viewport.from),s=Math.min(e.to,t.viewport.to),o=t.textDirection==tF.LTR,n=t.contentDOM,r=n.getBoundingClientRect(),l=iV(t),h=window.getComputedStyle(n.firstChild),a=r.left+parseInt(h.paddingLeft)+Math.min(0,parseInt(h.textIndent)),c=r.right-parseInt(h.paddingRight),d=iN(t,i),u=iN(t,s),f=d.type==to.Text?d:null,p=u.type==to.Text?u:null;if(t.lineWrapping&&(f&&(f=iH(t,i,f)),p&&(p=iH(t,s,p))),f&&p&&f.from==p.from)return b(y(e.from,e.to,f));{let m=f?y(e.from,null,f):x(d,!1),g=p?y(null,e.to,p):x(u,!0),v=[];return(f||d).to<(p||u).from-1?v.push(w(a,m.bottom,c,g.top)):m.bottomd&&f.from=m)break;b>p&&h(Math.max(w,p),null==e&&w<=d,Math.min(b,m),null==i&&b>=u,v.dir)}if((p=g.to+1)>=m)break}return 0==l.length&&h(d,null==e,u,null==i,t.textDirection),{top:n,bottom:r,horizontal:l}}function x(t,e){let i=r.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}(t,e)).reduce((t,e)=>t.concat(e)),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||iT(t),class:"cm-selectionLayer"}),iB={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};iC&&(iB[".cm-line"].caretColor="transparent !important");let iL=l.Wl.highest(ir.theme(iB));function iV(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==tF.LTR?e.left:e.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:e.top-t.scrollDOM.scrollTop}}function iH(t,e,i){let s=l.jT.cursor(e);return{from:Math.max(i.from,t.moveToLineBoundary(s,!1,!0).from),to:Math.min(i.to,t.moveToLineBoundary(s,!0,!0).from),type:to.Text}}function iN(t,e){let i=t.lineBlockAt(e);if(Array.isArray(i.type)){for(let s of i.type)if(s.to>e||s.to==e&&(s.to==i.to||s.type==to.Text))return s}return i}let iP=l.Py.define({map:(t,e)=>null==t?null:e.mapPos(t)}),iW=l.QQ.define({create:()=>null,update:(t,e)=>(null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce((t,e)=>e.is(iP)?e.value:t,t))}),iz=tR.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(iW);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(iW)!=i||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let t=this.view.state.field(iW),e=null!=t&&this.view.coordsAtPos(t);if(!e)return null;let i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}drawCursor(t){this.cursor&&(t?(this.cursor.style.left=t.left+"px",this.cursor.style.top=t.top+"px",this.cursor.style.height=t.height+"px"):this.cursor.style.left="-100000px")}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(iW)!=t&&this.view.dispatch({effects:iP.of(t)})}},{eventHandlers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function iF(){return[iW,iz]}function iI(t,e,i,s,o){e.lastIndex=0;for(let n=t.iterRange(i,s),r=i,l;!n.next().done;r+=n.value.length)if(!n.lineBreak)for(;l=e.exec(n.value);)o(r+l.index,l)}class iq{constructor(t){let{regexp:e,decoration:i,decorate:s,boundary:o,maxLength:n=1e3}=t;if(!e.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,s)this.addMatch=(t,e,i,o)=>s(o,i,i+t[0].length,t,e);else if("function"==typeof i)this.addMatch=(t,e,s,o)=>{let n=i(t,e,s);n&&o(s,s+t[0].length,n)};else if(i)this.addMatch=(t,e,s,o)=>o(s,s+t[0].length,i);else throw RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=n}createDeco(t){let e=new l.f_,i=e.add.bind(e);for(let{from:s,to:o}of function(t,e){let i=t.visibleRanges;if(1==i.length&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let s=[];for(let{from:o,to:n}of i)o=Math.max(t.state.doc.lineAt(o).from,o-e),n=Math.min(t.state.doc.lineAt(n).to,n+e),s.length&&s[s.length-1].to>=o?s[s.length-1].to=n:s.push({from:o,to:n});return s}(t,this.maxLength))iI(t.state.doc,this.regexp,s,o,(e,s)=>this.addMatch(s,t,e,i));return e.finish()}updateDeco(t,e){let i=1e9,s=-1;return(t.docChanged&&t.changes.iterChanges((e,o,n,r)=>{r>t.view.viewport.from&&n1e3)?this.createDeco(t.view):s>-1?this.updateRange(t.view,e.map(t.changes),i,s):e}updateRange(t,e,i,s){for(let o of t.visibleRanges){let n=Math.max(o.from,i),r=Math.min(o.to,s);if(r>n){let l=t.state.doc.lineAt(n),h=l.tol.from;n--)if(this.boundary.test(l.text[n-1-l.from])){a=n;break}for(;rd.push(i.range(t,e));if(l==h)for(this.regexp.lastIndex=a-l.from;(u=this.regexp.exec(l.text))&&u.indexthis.addMatch(i,t,e,f));e=e.update({filterFrom:a,filterTo:c,filter:(t,e)=>tc,add:d})}}return e}}let ij=null!=/x/.unicode?"gu":"g",iK=RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]",ij),i$={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},iG=null,iX=l.r$.define({combine(t){let e=(0,l.BO)(t,{render:null,specialChars:iK,addSpecialChars:null});return(e.replaceTabs=!function(){var t;if(null==iG&&"undefined"!=typeof document&&document.body){let e=document.body.style;iG=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)!=null}return iG||!1}())&&(e.specialChars=RegExp(" |"+e.specialChars.source,ij)),e.addSpecialChars&&(e.specialChars=RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,ij)),e}});function i_(t={}){return[iX.of(t),iU||(iU=tR.fromClass(class{constructor(t){this.view=t,this.decorations=tn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(iX)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new iq({regexp:t.specialChars,decoration:(e,i,s)=>{let{doc:o}=i.state,n=(0,l.gm)(e[0],0);if(9==n){let r=o.lineAt(s),h=i.state.tabSize,a=(0,l.IS)(r.text,h,s-r.from);return tn.replace({widget:new iQ((h-a%h)*this.view.defaultCharacterWidth)})}return this.decorationCache[n]||(this.decorationCache[n]=tn.replace({widget:new iY(t,n)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(iX);t.startState.facet(iX)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))]}let iU=null;class iY extends ts{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){var e;let i=(e=this.code)>=32?"•":10==e?"␤":String.fromCharCode(9216+e),s=t.state.phrase("Control character")+" "+(i$[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,s,i);if(o)return o;let n=document.createElement("span");return n.textContent=i,n.title=s,n.setAttribute("aria-label",s),n.className="cm-specialChar",n}ignoreEvent(){return!1}}class iQ extends ts{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function iZ(){return i0}let iJ=tn.line({class:"cm-activeLine"}),i0=tR.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,i=[];for(let s of t.state.selection.ranges){let o=t.lineBlockAt(s.head);o.from>e&&(i.push(iJ.range(o.from)),e=o.from)}return tn.set(i)}},{decorations:t=>t.decorations});class i1 extends ts{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}ignoreEvent(){return!1}}function i2(t){return tR.fromClass(class{constructor(e){this.view=e,this.placeholder=tn.set([tn.widget({widget:new i1(t),side:1}).range(0)])}get decorations(){return this.view.state.doc.length?tn.none:this.placeholder}},{decorations:t=>t.decorations})}function i8(t,e){var i;let s,o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),n=t.state.doc.lineAt(o),r=o-n.from,h=r>2e3?-1:r==n.length?(i=e.clientX,(s=t.coordsAtPos(t.viewport.from))?Math.round(Math.abs((s.left-i)/t.defaultCharacterWidth)):-1):(0,l.IS)(n.text,t.state.tabSize,o-n.from);return{line:n.number,col:h,off:r}}function i3(t){let e=(null==t?void 0:t.eventFilter)||(t=>t.altKey&&0==t.button);return ir.mouseSelectionStyle.of((t,i)=>{let s,o;return e(i)?(s=i8(t,i),o=t.state.selection,s?{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(s.line).from),i=t.state.doc.lineAt(e);s={line:i.number,col:s.col,off:Math.min(s.off,i.length)},o=o.map(t.changes)}},get(e,i,n){let r=i8(t,e);if(!r)return o;let h=function(t,e,i){let s=Math.min(e.line,i.line),o=Math.max(e.line,i.line),n=[];if(e.off>2e3||i.off>2e3||e.col<0||i.col<0){let r=Math.min(e.off,i.off),h=Math.max(e.off,i.off);for(let a=s;a<=o;a++){let c=t.doc.line(a);c.length<=h&&n.push(l.jT.range(c.from+r,c.to+h))}}else{let d=Math.min(e.col,i.col),u=Math.max(e.col,i.col);for(let f=s;f<=o;f++){let p=t.doc.line(f),m=(0,l.Gz)(p.text,d,t.tabSize,!0);if(m<0)n.push(l.jT.cursor(p.to));else{let g=(0,l.Gz)(p.text,u,t.tabSize);n.push(l.jT.range(p.from+m,p.from+g))}}}return n}(t.state,s,r);return h.length?n?l.jT.create(h.concat(o.ranges)):l.jT.create(h):o}}:null):null})}let i9={Alt:[18,t=>t.altKey],Control:[17,t=>t.ctrlKey],Shift:[16,t=>t.shiftKey],Meta:[91,t=>t.metaKey]},i5={style:"cursor: crosshair"};function i4(t={}){let[e,i]=i9[t.key||"Alt"],s=tR.fromClass(class{constructor(t){this.view=t,this.isDown=!1}set(t){this.isDown!=t&&(this.isDown=t,this.view.update([]))}},{eventHandlers:{keydown(t){this.set(t.keyCode==e||i(t))},keyup(t){t.keyCode!=e&&i(t)||this.set(!1)},mousemove(t){this.set(i(t))}}});return[s,ir.contentAttributes.of(t=>{var e;return(null===(e=t.plugin(s))||void 0===e?void 0:e.isDown)?i5:null})]}let i6="-10000px";class i7{constructor(t,e,i){this.facet=e,this.createTooltipView=i,this.input=t.state.facet(e),this.tooltips=this.input.filter(t=>t),this.tooltipViews=this.tooltips.map(i)}update(t){var e;let i=t.state.facet(this.facet),s=i.filter(t=>t);if(i===this.input){for(let o of this.tooltipViews)o.update&&o.update(t);return!1}let n=[];for(let r=0;rn.indexOf(u)&&(u.dom.remove(),null===(e=u.destroy)||void 0===e||e.call(u));return this.input=i,this.tooltips=s,this.tooltipViews=n,!0}}function st(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}let se=l.r$.define({combine(t){var e,i,s;return{position:K.ios?"absolute":(null===(e=t.find(t=>t.position))||void 0===e?void 0:e.position)||"fixed",parent:(null===(i=t.find(t=>t.parent))||void 0===i?void 0:i.parent)||null,tooltipSpace:(null===(s=t.find(t=>t.tooltipSpace))||void 0===s?void 0:s.tooltipSpace)||st}}}),si=tR.fromClass(class{constructor(t){this.view=t,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(se);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new i7(t,sn,t=>this.createTooltip(t)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let t of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(t.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t);e&&this.observeIntersection();let i=e||t.geometryChanged,s=t.state.facet(se);if(s.position!=this.position){for(let o of(this.position=s.position,this.manager.tooltipViews))o.dom.style.position=this.position;i=!0}if(s.parent!=this.parent){for(let n of(this.parent&&this.container.remove(),this.parent=s.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(n.dom);i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top=i6,this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;for(let i of(this.view.win.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))i.dom.remove(),null===(t=i.destroy)||void 0===t||t.call(i);null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect();return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)}),size:this.manager.tooltipViews.map(({dom:t})=>t.getBoundingClientRect()),space:this.view.state.facet(se).tooltipSpace(this.view)}}writeMeasure(t){let{editor:e,space:i}=t,s=[];for(let o=0;o=Math.min(e.bottom,i.bottom)||h.rightMath.min(e.right,i.right)+.1){l.style.top=i6;continue}let c=n.arrow?r.dom.querySelector(".cm-tooltip-arrow"):null,d=c?7:0,u=a.right-a.left,f=a.bottom-a.top,p=r.offset||so,m=this.view.textDirection==tF.LTR,g=a.width>i.right-i.left?m?i.left:i.right-a.width:m?Math.min(h.left-(c?14:0)+p.x,i.right-u):Math.max(i.left,h.left-u+(c?14:0)-p.x),v=!!n.above;!n.strictSide&&(v?h.top-(a.bottom-a.top)-p.yi.bottom)&&v==i.bottom-h.bottom>h.top-i.top&&(v=!v);let w=(v?h.top-i.top:i.bottom-h.bottom)-d;if(wg&&x.topb&&(b=v?x.top-f-2-d:x.bottom+d+2);"absolute"==this.position?(l.style.top=b-t.parent.top+"px",l.style.left=g-t.parent.left+"px"):(l.style.top=b+"px",l.style.left=g+"px"),c&&(c.style.left=`${h.left+(m?p.x:-p.x)-(g+14-7)}px`),!0!==r.overlap&&s.push({left:g,top:b,right:y,bottom:b+f}),l.classList.toggle("cm-tooltip-above",v),l.classList.toggle("cm-tooltip-below",!v),r.positioned&&r.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=i6}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),ss=ir.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),so={x:0,y:0},sn=l.r$.define({enables:[si,ss]}),sr=l.r$.define();class sl{constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new i7(t,sr,t=>this.createHostedView(t))}static create(t){return new sl(t)}createHostedView(t){let e=t.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}}let sh=sn.compute([sr],t=>{let e=t.facet(sr).filter(t=>t);return 0===e.length?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.filter(t=>null!=t.end).map(t=>t.end)),create:sl.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class sa{constructor(t,e,i,s,o){this.view=t,this.source=e,this.field=i,this.setHover=s,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;ti.bottom||t.xi.right+this.view.defaultCharacterWidth)return;let s=this.view.bidiSpans(this.view.state.doc.lineAt(e)).find(t=>t.from<=e&&t.to>=e),o=s&&s.dir==tF.RTL?-1:1,n=this.source(this.view,e,t.x{this.pending==r&&(this.pending=null,t&&this.view.dispatch({effects:this.setHover.of(t)}))},t=>tA(this.view.state,t,"hover tooltip"))}else n&&this.view.dispatch({effects:this.setHover.of(n)})}mousemove(t){var e;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let i=this.active;if(i&&!sc(this.lastMove.target)||this.pending){let{pos:s}=i||this.pending,o=null!==(e=null==i?void 0:i.end)&&void 0!==e?e:s;(s==o?this.view.posAtCoords(this.lastMove)!=s:!function(t,e,i,s,o,n){let r=document.createRange(),l=t.domAtPos(e),h=t.domAtPos(i);r.setEnd(h.node,h.offset),r.setStart(l.node,l.offset);let a=r.getClientRects();r.detach();for(let c=0;c=Math.max(d.top-o,o-d.bottom,d.left-s,s-d.right))return!0}return!1}(this.view,s,o,t.clientX,t.clientY,0))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!sc(t.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function sc(t){for(let e=t;e;e=e.parentNode)if(1==e.nodeType&&e.classList.contains("cm-tooltip"))return!0;return!1}function sd(t,e={}){let i=l.Py.define(),s=l.QQ.define({create:()=>null,update(t,s){if(t&&(e.hideOnChange&&(s.docChanged||s.selection)||e.hideOn&&e.hideOn(s,t)))return null;if(t&&s.docChanged){let o=s.changes.mapPos(t.pos,-1,l.gc.TrackDel);if(null==o)return null;let n=Object.assign(Object.create(null),t);n.pos=o,null!=t.end&&(n.end=s.changes.mapPos(t.end)),t=n}for(let r of s.effects)r.is(i)&&(t=r.value),r.is(sf)&&(t=null);return t},provide:t=>sr.from(t)});return[s,tR.define(o=>new sa(o,t,s,i,e.hoverTime||300)),sh]}function su(t,e){let i=t.plugin(si);if(!i)return null;let s=i.manager.tooltips.indexOf(e);return s<0?null:i.manager.tooltipViews[s]}let sf=l.Py.define(),sp=l.r$.define({combine(t){let e,i;for(let s of t)e=e||s.topContainer,i=i||s.bottomContainer;return{topContainer:e,bottomContainer:i}}});function sm(t,e){let i=t.plugin(sg),s=i?i.specs.indexOf(e):-1;return s>-1?i.panels[s]:null}let sg=tR.fromClass(class{constructor(t){this.input=t.state.facet(sb),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(e=>e(t));let e=t.state.facet(sp);for(let i of(this.top=new sv(t,!0,e.topContainer),this.bottom=new sv(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top)),this.panels))i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(t){let e=t.state.facet(sp);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new sv(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new sv(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=t.state.facet(sb);if(i!=this.input){let s=i.filter(t=>t),o=[],n=[],r=[],l=[];for(let h of s){let a=this.specs.indexOf(h),c;a<0?(c=h(t.view),l.push(c)):(c=this.panels[a]).update&&c.update(t),o.push(c),(c.top?n:r).push(c)}for(let d of(this.specs=s,this.panels=o,this.top.sync(n),this.bottom.sync(r),l))d.dom.classList.add("cm-panel"),d.mount&&d.mount()}else for(let u of this.panels)u.update&&u.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>ir.scrollMargins.of(e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}})});class sv{constructor(t,e,i){this.view=t,this.top=e,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&0>t.indexOf(e)&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let i of this.panels)if(i.dom.parentNode==this.dom){for(;e!=i.dom;)e=sw(e);e=e.nextSibling}else this.dom.insertBefore(i.dom,e);for(;e;)e=sw(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function sw(t){let e=t.nextSibling;return t.remove(),e}let sb=l.r$.define({enables:sg});class sy extends l.uU{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}sy.prototype.elementClass="",sy.prototype.toDOM=void 0,sy.prototype.mapMode=l.gc.TrackBefore,sy.prototype.startSide=sy.prototype.endSide=-1,sy.prototype.point=!0;let sx=l.r$.define(),sS={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>l.Xs.empty,lineMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},sM=l.r$.define();function sk(t){return[sA(),sM.of(Object.assign(Object.assign({},sS),t))]}let sC=l.r$.define({combine:t=>t.some(t=>t)});function sA(t){let e=[sD];return t&&!1===t.fixed&&e.push(sC.of(!0)),e}let sD=tR.fromClass(class{constructor(t){for(let e of(this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=t.state.facet(sM).map(e=>new sE(t,e)),this.gutters))this.dom.appendChild(e.dom);this.fixed=!t.state.facet(sC),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport,s=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(s<(i.to-i.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(sC)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let i=l.Xs.iter(this.view.state.facet(sx),this.view.viewport.from),s=[],o=this.gutters.map(t=>new sR(t,this.view.viewport,-this.view.documentPadding.top));for(let n of this.view.viewportLineBlocks){let r;if(Array.isArray(n.type)){for(let h of n.type)if(h.type==to.Text){r=h;break}}else r=n.type==to.Text?n:void 0;if(r)for(let a of(s.length&&(s=[]),sO(i,s,n.from),o))a.line(this.view,r,s)}for(let c of o)c.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(sM),i=t.state.facet(sM),s=t.docChanged||t.heightChanged||t.viewportChanged||!l.Xs.eq(t.startState.facet(sx),t.state.facet(sx),t.view.viewport.from,t.view.viewport.to);if(e==i)for(let o of this.gutters)o.update(t)&&(s=!0);else{s=!0;let n=[];for(let r of i){let h=e.indexOf(r);h<0?n.push(new sE(this.view,r)):(this.gutters[h].update(t),n.push(this.gutters[h]))}for(let a of this.gutters)a.dom.remove(),0>n.indexOf(a)&&a.destroy();for(let c of n)this.dom.appendChild(c.dom);this.gutters=n}return s}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>ir.scrollMargins.of(e=>{let i=e.plugin(t);return i&&0!=i.gutters.length&&i.fixed?e.textDirection==tF.LTR?{left:i.dom.offsetWidth}:{right:i.dom.offsetWidth}:null})});function sT(t){return Array.isArray(t)?t:[t]}function sO(t,e,i){for(;t.value&&t.from<=i;)t.from==i&&e.push(t.value),t.next()}class sR{constructor(t,e,i){this.gutter=t,this.height=i,this.localMarkers=[],this.i=0,this.cursor=l.Xs.iter(t.markers,e.from)}line(t,e,i){this.localMarkers.length&&(this.localMarkers=[]),sO(this.cursor,this.localMarkers,e.from);let s=i.length?this.localMarkers.concat(i):this.localMarkers,o=this.gutter.config.lineMarker(t,e,s);o&&s.unshift(o);let n=this.gutter;if(0==s.length&&!n.config.renderEmptyElements)return;let r=e.top-this.height;if(this.i==n.elements.length){let l=new sB(t,e.height,r,s);n.elements.push(l),n.dom.appendChild(l.dom)}else n.elements[this.i].update(t,e.height,r,s);this.height=e.bottom,this.i++}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class sE{constructor(t,e){for(let i in this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),e.domEventHandlers)this.dom.addEventListener(i,s=>{let o=t.lineBlockAtHeight(s.clientY-t.documentTop);e.domEventHandlers[i](t,o,s)&&s.preventDefault()});this.markers=sT(e.markers(t)),e.initialSpacer&&(this.spacer=new sB(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=sT(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let s=t.view.viewport;return!l.Xs.eq(this.markers,e,s.from,s.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}}class sB{constructor(t,e,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,s)}update(t,e,i,s){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),!function(t,e){if(t.length!=e.length)return!1;for(let i=0;i(0,l.BO)(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let i=Object.assign({},t);for(let s in e){let o=i[s],n=e[s];i[s]=o?(t,e,i)=>o(t,e,i)||n(t,e,i):n}return i}})});class sH extends sy{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function sN(t,e){return t.state.facet(sV).formatNumber(e,t.state)}let sP=sM.compute([sV],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(sL),lineMarker:(t,e,i)=>i.some(t=>t.toDOM)?null:new sH(sN(t,t.state.doc.lineAt(e.from).number)),lineMarkerChange:t=>t.startState.facet(sV)!=t.state.facet(sV),initialSpacer:t=>new sH(sN(t,sz(t.state.doc.lines))),updateSpacer(t,e){let i=sN(e.view,sz(e.view.state.doc.lines));return i==t.number?t:new sH(i)},domEventHandlers:t.facet(sV).domEventHandlers}));function sW(t={}){return[sV.of(t),sA(),sP]}function sz(t){let e=9;for(;e{let e=[],i=-1;for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head).from;o>i&&(i=o,e.push(sF.range(o)))}return l.Xs.of(e)});function sq(){return sI}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/5360-ddb180f0aeda9ff0.js b/static/web/_next/static/chunks/5360-8155b586c5f545d5.js similarity index 99% rename from static/web/_next/static/chunks/5360-ddb180f0aeda9ff0.js rename to static/web/_next/static/chunks/5360-8155b586c5f545d5.js index 762c1bf09..9bad6b314 100644 --- a/static/web/_next/static/chunks/5360-ddb180f0aeda9ff0.js +++ b/static/web/_next/static/chunks/5360-8155b586c5f545d5.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5360],{20550:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var a=r(4942),i=r(87462),o=r(97685),n=r(97937),s=r(94184),u=r.n(s),c=r(98423),l=r(67294),_=r(53124),p=r(98787),h=r(68349),m=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,a=Object.getOwnPropertySymbols(e);it.indexOf(a[i])&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]]);return r},d=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,a=Object.getOwnPropertySymbols(e);it.indexOf(a[i])&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]]);return r},f=RegExp("^(".concat(p.Y.join("|"),")(-inverse)?$")),g=RegExp("^(".concat(p.E.join("|"),")$")),b=l.forwardRef(function(e,t){var r,s=e.prefixCls,p=e.className,m=e.style,b=e.children,y=e.icon,v=e.color,D=e.onClose,k=e.closeIcon,F=e.closable,x=d(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),z=l.useContext(_.E_),w=z.getPrefixCls,E=z.direction,C=l.useState(!0),A=(0,o.Z)(C,2),j=A[0],O=A[1];l.useEffect(function(){"visible"in x&&O(x.visible)},[x.visible]);var Z=function(){return!!v&&(f.test(v)||g.test(v))},B=(0,i.Z)({backgroundColor:v&&!Z()?v:void 0},m),P=Z(),q=w("tag",s),S=u()(q,(r={},(0,a.Z)(r,"".concat(q,"-").concat(v),P),(0,a.Z)(r,"".concat(q,"-has-color"),v&&!P),(0,a.Z)(r,"".concat(q,"-hidden"),!j),(0,a.Z)(r,"".concat(q,"-rtl"),"rtl"===E),r),p),R=function(e){e.stopPropagation(),null==D||D(e),!e.defaultPrevented&&("visible"in x||O(!1))},T="onClick"in x||b&&"a"===b.type,$=(0,c.Z)(x,["visible"]),I=y||null,M=I?l.createElement(l.Fragment,null,I,l.createElement("span",null,b)):b,N=l.createElement("span",(0,i.Z)({},$,{ref:t,className:S,style:B}),M,void 0!==F&&F?k?l.createElement("span",{className:"".concat(q,"-close-icon"),onClick:R},k):l.createElement(n.Z,{className:"".concat(q,"-close-icon"),onClick:R}):null);return T?l.createElement(h.Z,null,N):N});b.CheckableTag=function(e){var t,r=e.prefixCls,o=e.className,n=e.checked,s=e.onChange,c=e.onClick,p=m(e,["prefixCls","className","checked","onChange","onClick"]),h=(0,l.useContext(_.E_).getPrefixCls)("tag",r),d=u()(h,(t={},(0,a.Z)(t,"".concat(h,"-checkable"),!0),(0,a.Z)(t,"".concat(h,"-checkable-checked"),n),t),o);return l.createElement("span",(0,i.Z)({},p,{className:d,onClick:function(e){null==s||s(!n),null==c||c(e)}}))};var y=b},68337:function(e,t,r){"use strict";function a(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function n(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},u={"http:":{validate:function(e,t,r){var a=e.slice(t);return(r.re.http||(r.re.http=RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(a))?a.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){var a=e.slice(t);return(r.re.no_http||(r.re.no_http=RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(a))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:a.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var a=e.slice(t);return(r.re.mailto||(r.re.mailto=RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(a))?a.match(r.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function l(){return function(e,t){t.normalize(e)}}function _(e){var t,a=e.re=r(36066)(e.__opts__),s=e.__tlds__.slice();function u(e){return e.replace("%TLDS%",a.src_tlds)}e.onCompile(),e.__tlds_replaced__||s.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),s.push(a.src_xn),a.src_tlds=s.join("|"),a.email_fuzzy=RegExp(u(a.tpl_email_fuzzy),"i"),a.link_fuzzy=RegExp(u(a.tpl_link_fuzzy),"i"),a.link_no_ip_fuzzy=RegExp(u(a.tpl_link_no_ip_fuzzy),"i"),a.host_fuzzy_test=RegExp(u(a.tpl_host_fuzzy_test),"i");var c=[];function _(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var r,a=e.__schemas__[t];if(null!==a){var n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===i(a)){"[object RegExp]"===i(a.validate)?n.validate=(r=a.validate,function(e,t){var a=e.slice(t);return r.test(a)?a.match(r)[0].length:0}):o(a.validate)?n.validate=a.validate:_(t,a),o(a.normalize)?n.normalize=a.normalize:a.normalize?_(t,a):n.normalize=l();return}if("[object String]"===i(a)){c.push(t);return}_(t,a)}}),c.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:l()};var p=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(n).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+p+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(t=e).__index__=-1,t.__text_cache__=""}function p(e,t){var r=e.__index__,a=e.__last_index__,i=e.__text_cache__.slice(r,a);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=a+t,this.raw=i,this.text=i,this.url=i}function h(e,t){var r=new p(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function m(e,t){if(!(this instanceof m))return new m(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||s.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=a({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=a({},u,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},_(this)}m.prototype.add=function(e,t){return this.__schemas__[e]=t,_(this),this},m.prototype.set=function(e){return this.__opts__=a(this.__opts__,e),this},m.prototype.test=function(e){var t,r,a,i,o,n,s,u;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u=0&&null!==(a=e.match(this.re.email_fuzzy))&&(o=a.index+a[1].length,n=a.index+a[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=n)),this.__index__>=0},m.prototype.pretest=function(e){return this.re.pretest.test(e)},m.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},m.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(h(this,t)),t=this.__last_index__);for(var a=t?e.slice(t):e;this.test(a);)r.push(h(this,t)),a=a.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null},m.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,r){return e!==r[t-1]}).reverse(),_(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,_(this),this)},m.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},m.prototype.onCompile=function(){},e.exports=m},36066:function(e,t,r){"use strict";e.exports=function(e){var t={};t.src_Any=r(29369).source,t.src_Cc=r(99413).source,t.src_Z=r(35045).source,t.src_P=r(73189).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var a="[><|]";return t.src_pseudo_letter="(?:(?!"+a+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+a+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+a+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+a+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},23279:function(e,t,r){var a=r(13218),i=r(7771),o=r(14841),n=Math.max,s=Math.min;e.exports=function(e,t,r){var u,c,l,_,p,h,m=0,d=!1,f=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var r=u,a=c;return u=c=void 0,m=t,_=e.apply(a,r)}function y(e){var r=e-h,a=e-m;return void 0===h||r>=t||r<0||f&&a>=l}function v(){var e,r,a,o=i();if(y(o))return D(o);p=setTimeout(v,(e=o-h,r=o-m,a=t-e,f?s(a,l-r):a))}function D(e){return(p=void 0,g&&u)?b(e):(u=c=void 0,_)}function k(){var e,r=i(),a=y(r);if(u=arguments,c=this,h=r,a){if(void 0===p)return m=e=h,p=setTimeout(v,t),d?b(e):_;if(f)return clearTimeout(p),p=setTimeout(v,t),b(h)}return void 0===p&&(p=setTimeout(v,t)),_}return t=o(t)||0,a(r)&&(d=!!r.leading,l=(f="maxWait"in r)?n(o(r.maxWait)||0,t):l,g="trailing"in r?!!r.trailing:g),k.cancel=function(){void 0!==p&&clearTimeout(p),m=0,u=h=c=p=void 0},k.flush=function(){return void 0===p?_:D(i())},k}},7771:function(e,t,r){var a=r(55639);e.exports=function(){return a.Date.now()}},36887:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;ri&&a.push(e.substring(i,r.index));var n=t.props.hrefDecorator(r.url),s=t.props.textDecorator(r.text),u=t.props.componentDecorator(n,s,o);a.push(u),i=r.lastIndex}),e.length>i&&a.push(e.substring(i)),1===a.length?a[0]:a}},{key:"parse",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"==typeof e?this.parseString(e):i.isValidElement(e)&&"a"!==e.type&&"button"!==e.type?i.cloneElement(e,{key:r},this.parse(e.props.children)):Array.isArray(e)?e.map(function(e,r){return t.parse(e,r)}):e}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),t}(i.Component);l.defaultProps={componentDecorator:o.default,hrefDecorator:n.default,matchDecorator:s.default,textDecorator:u.default},t.default=l},29872:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(67294));t.default=function(e,t,r){return a.createElement("a",{href:e,key:r},t)}},77599:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},86704:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(68337)),i=o(r(10248));function o(e){return e&&e.__esModule?e:{default:e}}var n=new a.default;n.tlds(i.default),t.default=function(e){return n.match(e)}},1627:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},53731:function(e,t,r){"use strict";var a,i=(a=r(36887))&&a.__esModule?a:{default:a};t.Z=i.default},99413:function(e){e.exports=/[\0-\x1F\x7F-\x9F]/},73189:function(e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},35045:function(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},29369:function(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},10248:function(e){"use strict";e.exports=JSON.parse('["aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mutual","mv","mw","mx","my","mz","na","nab","nagoya","name","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","northwesternmutual","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","verm\xf6gensberater","verm\xf6gensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","诺基亚","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]')}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5360],{20550:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var a=r(4942),i=r(87462),o=r(97685),n=r(97937),s=r(94184),u=r.n(s),c=r(98423),l=r(67294),_=r(53124),p=r(98787),h=r(68349),m=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,a=Object.getOwnPropertySymbols(e);it.indexOf(a[i])&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]]);return r},d=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,a=Object.getOwnPropertySymbols(e);it.indexOf(a[i])&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]]);return r},f=RegExp("^(".concat(p.Y.join("|"),")(-inverse)?$")),g=RegExp("^(".concat(p.E.join("|"),")$")),b=l.forwardRef(function(e,t){var r,s=e.prefixCls,p=e.className,m=e.style,b=e.children,y=e.icon,v=e.color,D=e.onClose,k=e.closeIcon,F=e.closable,x=d(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),z=l.useContext(_.E_),w=z.getPrefixCls,E=z.direction,C=l.useState(!0),A=(0,o.Z)(C,2),j=A[0],O=A[1];l.useEffect(function(){"visible"in x&&O(x.visible)},[x.visible]);var Z=function(){return!!v&&(f.test(v)||g.test(v))},B=(0,i.Z)({backgroundColor:v&&!Z()?v:void 0},m),P=Z(),q=w("tag",s),S=u()(q,(r={},(0,a.Z)(r,"".concat(q,"-").concat(v),P),(0,a.Z)(r,"".concat(q,"-has-color"),v&&!P),(0,a.Z)(r,"".concat(q,"-hidden"),!j),(0,a.Z)(r,"".concat(q,"-rtl"),"rtl"===E),r),p),R=function(e){e.stopPropagation(),null==D||D(e),!e.defaultPrevented&&("visible"in x||O(!1))},T="onClick"in x||b&&"a"===b.type,$=(0,c.Z)(x,["visible"]),I=y||null,M=I?l.createElement(l.Fragment,null,I,l.createElement("span",null,b)):b,N=l.createElement("span",(0,i.Z)({},$,{ref:t,className:S,style:B}),M,void 0!==F&&F?k?l.createElement("span",{className:"".concat(q,"-close-icon"),onClick:R},k):l.createElement(n.Z,{className:"".concat(q,"-close-icon"),onClick:R}):null);return T?l.createElement(h.Z,null,N):N});b.CheckableTag=function(e){var t,r=e.prefixCls,o=e.className,n=e.checked,s=e.onChange,c=e.onClick,p=m(e,["prefixCls","className","checked","onChange","onClick"]),h=(0,l.useContext(_.E_).getPrefixCls)("tag",r),d=u()(h,(t={},(0,a.Z)(t,"".concat(h,"-checkable"),!0),(0,a.Z)(t,"".concat(h,"-checkable-checked"),n),t),o);return l.createElement("span",(0,i.Z)({},p,{className:d,onClick:function(e){null==s||s(!n),null==c||c(e)}}))};var y=b},68337:function(e,t,r){"use strict";function a(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function n(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},u={"http:":{validate:function(e,t,r){var a=e.slice(t);return(r.re.http||(r.re.http=RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(a))?a.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){var a=e.slice(t);return(r.re.no_http||(r.re.no_http=RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(a))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:a.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var a=e.slice(t);return(r.re.mailto||(r.re.mailto=RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(a))?a.match(r.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function l(){return function(e,t){t.normalize(e)}}function _(e){var t,a=e.re=r(36066)(e.__opts__),s=e.__tlds__.slice();function u(e){return e.replace("%TLDS%",a.src_tlds)}e.onCompile(),e.__tlds_replaced__||s.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),s.push(a.src_xn),a.src_tlds=s.join("|"),a.email_fuzzy=RegExp(u(a.tpl_email_fuzzy),"i"),a.link_fuzzy=RegExp(u(a.tpl_link_fuzzy),"i"),a.link_no_ip_fuzzy=RegExp(u(a.tpl_link_no_ip_fuzzy),"i"),a.host_fuzzy_test=RegExp(u(a.tpl_host_fuzzy_test),"i");var c=[];function _(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var r,a=e.__schemas__[t];if(null!==a){var n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===i(a)){"[object RegExp]"===i(a.validate)?n.validate=(r=a.validate,function(e,t){var a=e.slice(t);return r.test(a)?a.match(r)[0].length:0}):o(a.validate)?n.validate=a.validate:_(t,a),o(a.normalize)?n.normalize=a.normalize:a.normalize?_(t,a):n.normalize=l();return}if("[object String]"===i(a)){c.push(t);return}_(t,a)}}),c.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:l()};var p=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(n).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+p+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(t=e).__index__=-1,t.__text_cache__=""}function p(e,t){var r=e.__index__,a=e.__last_index__,i=e.__text_cache__.slice(r,a);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=a+t,this.raw=i,this.text=i,this.url=i}function h(e,t){var r=new p(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function m(e,t){if(!(this instanceof m))return new m(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||s.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=a({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=a({},u,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},_(this)}m.prototype.add=function(e,t){return this.__schemas__[e]=t,_(this),this},m.prototype.set=function(e){return this.__opts__=a(this.__opts__,e),this},m.prototype.test=function(e){var t,r,a,i,o,n,s,u;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u=0&&null!==(a=e.match(this.re.email_fuzzy))&&(o=a.index+a[1].length,n=a.index+a[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=n)),this.__index__>=0},m.prototype.pretest=function(e){return this.re.pretest.test(e)},m.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},m.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(h(this,t)),t=this.__last_index__);for(var a=t?e.slice(t):e;this.test(a);)r.push(h(this,t)),a=a.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null},m.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,r){return e!==r[t-1]}).reverse(),_(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,_(this),this)},m.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},m.prototype.onCompile=function(){},e.exports=m},36066:function(e,t,r){"use strict";e.exports=function(e){var t={};t.src_Any=r(29369).source,t.src_Cc=r(99413).source,t.src_Z=r(35045).source,t.src_P=r(73189).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var a="[><|]";return t.src_pseudo_letter="(?:(?!"+a+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+a+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+a+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+a+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},23279:function(e,t,r){var a=r(13218),i=r(7771),o=r(14841),n=Math.max,s=Math.min;e.exports=function(e,t,r){var u,c,l,_,p,h,m=0,d=!1,f=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var r=u,a=c;return u=c=void 0,m=t,_=e.apply(a,r)}function y(e){var r=e-h,a=e-m;return void 0===h||r>=t||r<0||f&&a>=l}function v(){var e,r,a,o=i();if(y(o))return D(o);p=setTimeout(v,(e=o-h,r=o-m,a=t-e,f?s(a,l-r):a))}function D(e){return(p=void 0,g&&u)?b(e):(u=c=void 0,_)}function k(){var e,r=i(),a=y(r);if(u=arguments,c=this,h=r,a){if(void 0===p)return m=e=h,p=setTimeout(v,t),d?b(e):_;if(f)return clearTimeout(p),p=setTimeout(v,t),b(h)}return void 0===p&&(p=setTimeout(v,t)),_}return t=o(t)||0,a(r)&&(d=!!r.leading,l=(f="maxWait"in r)?n(o(r.maxWait)||0,t):l,g="trailing"in r?!!r.trailing:g),k.cancel=function(){void 0!==p&&clearTimeout(p),m=0,u=h=c=p=void 0},k.flush=function(){return void 0===p?_:D(i())},k}},7771:function(e,t,r){var a=r(55639);e.exports=function(){return a.Date.now()}},36887:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;ri&&a.push(e.substring(i,r.index));var n=t.props.hrefDecorator(r.url),s=t.props.textDecorator(r.text),u=t.props.componentDecorator(n,s,o);a.push(u),i=r.lastIndex}),e.length>i&&a.push(e.substring(i)),1===a.length?a[0]:a}},{key:"parse",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"==typeof e?this.parseString(e):i.isValidElement(e)&&"a"!==e.type&&"button"!==e.type?i.cloneElement(e,{key:r},this.parse(e.props.children)):Array.isArray(e)?e.map(function(e,r){return t.parse(e,r)}):e}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),t}(i.Component);l.defaultProps={componentDecorator:o.default,hrefDecorator:n.default,matchDecorator:s.default,textDecorator:u.default},t.default=l},29872:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(67294));t.default=function(e,t,r){return a.createElement("a",{href:e,key:r},t)}},77599:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},86704:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(68337)),i=o(r(10248));function o(e){return e&&e.__esModule?e:{default:e}}var n=new a.default;n.tlds(i.default),t.default=function(e){return n.match(e)}},1627:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},53731:function(e,t,r){"use strict";var a,i=(a=r(36887))&&a.__esModule?a:{default:a};t.Z=i.default},99413:function(e){e.exports=/[\0-\x1F\x7F-\x9F]/},73189:function(e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},35045:function(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},29369:function(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},10248:function(e){"use strict";e.exports=JSON.parse('["aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mutual","mv","mw","mx","my","mz","na","nab","nagoya","name","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","northwesternmutual","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","verm\xf6gensberater","verm\xf6gensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]')}}]); \ No newline at end of file diff --git a/static/web/admin/access-tokens/index.html b/static/web/admin/access-tokens/index.html index e68a5ee64..73c7cbaf1 100644 --- a/static/web/admin/access-tokens/index.html +++ b/static/web/admin/access-tokens/index.html @@ -1 +1 @@ -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 +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 5dafafeb2..968a9d96e 100644 --- a/static/web/admin/actions/index.html +++ b/static/web/admin/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

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

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

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

\ No newline at end of file diff --git a/static/web/admin/chat/messages/index.html b/static/web/admin/chat/messages/index.html index 839d9515c..ffe5eeb24 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 4a85fa880..4aa7d119c 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 70ae411c6..6f5fd7cfb 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 e319f7cad..5a850b20f 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 1747a91cc..c54c0d077 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 210252302..1923b21a6 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 6b51c60fe..4513d8fb1 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 8df61e422..fb1145307 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 6b72408bc..0f2d4ba67 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 b0725beae..c0ab8c6b1 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 64936840d..b877f53e1 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 f01d86b8e..c68d5a404 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 0e759dd60..2b7707f7c 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 2e5f17cfe..3b78fc79f 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 96c517846..b4f4c8e96 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 c6f4c2b8d..d0161827f 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 854097bd6..634d1fd51 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 1851a1bc5..c9ebe0acd 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 4d60c625f..c2c2775dc 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 19b9ea24c..9de1f8e5d 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 358c7dd2c..3f0aafd0a 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 e71629666..f837b0a47 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 320d9bf20..194f07681 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 29a2917d1..725f45d25 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 f875981c5..0779159fc 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 99e961a17..9bfffc5d0 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