1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[20680,29252,61754,73690],{42229:(e,t,i)=>{i.r(t),i.d(t,{__iconNode:()=>o,default:()=>l});var n=i(453292);let o=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]],l=(0,n.A)("text-align-end",o)},157204:(e,t,i)=>{i.r(t),i.d(t,{__iconNode:()=>o,default:()=>l});var n=i(453292);let o=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],l=(0,n.A)("text-align-start",o)},157762:(e,t,i)=>{i.r(t),i.d(t,{__iconNode:()=>o,default:()=>l});var n=i(453292);let o=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],l=(0,n.A)("italic",o)},173690:(e,t,i)=>{i.r(t),i.d(t,{__iconNode:()=>o,default:()=>l});var n=i(453292);let o=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],l=(0,n.A)("list-ordered",o)},177258:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(419261),o=n.CU.create({name:"superscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:e=>"super"===e&&null}],renderHTML({HTMLAttributes:e}){return["sup",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setSuperscript:()=>({commands:e})=>e.setMark(this.name),toggleSuperscript:()=>({commands:e})=>e.toggleMark(this.name),unsetSuperscript:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}})},202299:(e,t,i)=>{i.d(t,{_:()=>n});function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},240039:(e,t,i)=>{let n,o;
1i.d(t,{rn:()=>C,GU:()=>R,RC:()=>H,gC:()=>k,JD:()=>x,AL:()=>ea,gR:()=>I,aR:()=>N,kG:()=>B,rP:()=>O,D8:()=>K,w7:()=>$,i4:()=>_,L0:()=>E,LF:()=>ef,iS:()=>P,_G:()=>F});var l=i(683951),r=i(543434),s=i(279617),a=i(953867),d=i(970042);if("u">typeof WeakMap){let e=new WeakMap;n=t=>e.get(t),o=(t,i)=>(e.set(t,i),i)}else{let e=[],t=0;n=t=>{for(let i=0;i<e.length;i+=2)if(e[i]==t)return e[i+1]},o=(i,n)=>(10==t&&(t=0),e[t++]=i,e[t++]=n)}var h=class{constructor(e,t,i,n){this.width=e,this.height=t,this.map=i,this.problems=n}findCell(e){for(let t=0;t<this.map.length;t++){let i=this.map[t];if(i!=e)continue;let n=t%this.width,o=t/this.width|0,l=n+1,r=o+1;for(let e=1;l<this.width&&this.map[t+e]==i;e++)l++;for(let e=1;r<this.height&&this.map[t+this.width*e]==i;e++)r++;return{left:n,top:o,right:l,bottom:r}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,i){let{left:n,right:o,top:l,bottom:r}=this.findCell(e);return"horiz"==t?(i<0?0==n:o==this.width)?null:this.map[l*this.width+(i<0?n-1:o)]:(i<0?0==l:r==this.height)?null:this.map[n+this.width*(i<0?l-1:r)]}rectBetween(e,t){let{left:i,right:n,top:o,bottom:l}=this.findCell(e),{left:r,right:s,top:a,bottom:d}=this.findCell(t);return{left:Math.min(i,r),top:Math.min(o,a),right:Math.max(n,s),bottom:Math.max(l,d)}}cellsInRect(e){let t=[],i={};for(let n=e.top;n<e.bottom;n++)for(let o=e.left;o<e.right;o++){let l=n*this.width+o,r=this.map[l];!i[r]&&(i[r]=!0,o==e.left&&o&&this.map[l-1]==r||n==e.top&&n&&this.map[l-this.width]==r||t.push(r))}return t}positionAt(e,t,i){for(let n=0,o=0;;n++){let l=o+i.child(n).nodeSize;if(n==e){let i=t+e*this.width,n=(e+1)*this.width;for(;i<n&&this.map[i]<o;)i++;return i==n?l-1:this.map[i]}o=l}}static get(e){return n(e)||o(e,function(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=function(e){let t=-1,i=!1;for(let n=0;n<e.childCount;n++){let o=e.child(n),l=0;if(i)for(let t=0;t<n;t++){let i=e.child(t);for(let e=0;e<i.childCount;e++){let o=i.child(e);t+o.attrs.rowspan>n&&(l+=o.attrs.colspan)}}for(let e=0;e<o.childCount;e++){let t=o.child(e);l+=t.attrs.colspan,t.attrs.rowspan>1&&(i=!0)}-1==t?t=l:t!=l&&(t=Math.max(t,l))}return t}(e),i=e.childCount,n=[],o=0,l=null,r=[];for(let e=0,o=t*i;e<o;e++)n[e]=0;for(let s=0,a=0;s<i;s++){let d=e.child(s);a++;for(let e=0;;e++){for(;o<n.length&&0!=n[o];)o++;if(e==d.childCount)break;let h=d.child(e),{colspan:p,rowspan:c,colwidth:u}=h.attrs;for(let e=0;e<c;e++){if(e+s>=i){(l||(l=[])).push({type:"overlong_rowspan",pos:a,n:c-e});break}let d=o+e*t;for(let e=0;e<p;e++){0==n[d+e]?n[d+e]=a:(l||(l=[])).push({type:"collision",row:s,pos:a,n:p-e});let i=u&&u[e];if(i){let n=(d+e)%t*2,o=r[n];null==o||o!=i&&1==r[n+1]?(r[n]=i,r[n+1]=1):o==i&&r[n+1]++}}}o+=p,a+=h.nodeSize}let h=(s+1)*t,p=0;for(;o<h;)0==n[o++]&&p++;p&&(l||(l=[])).push({type:"missing",row:s,n:p}),a++}(0===t||0===i)&&(l||(l=[])).push({type:"zero_sized"});let s=new h(t,i,n,l),a=!1;for(let e=0;!a&&e<r.length;e+=2)null!=r[e]&&r[e+1]<i&&(a=!0);return a&&function(e,t,i){e.problems||(e.problems=[]);let n={};for(let o=0;o<e.map.length;o++){let l=e.map[o];if(n[l])continue;n[l]=!0;let r=i.nodeAt(l);if(!r)throw RangeError(`No cell with offset ${l}
1 found`);let s=null,a=r.attrs;for(let i=0;i<a.colspan;i++){let n=t[(o+i)%e.width*2];null==n||a.colwidth&&a.colwidth[i]==n||((s||(s=function(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let i=0;i<e.colspan;i++)t.push(0);return t}(a)))[i]=n)}s&&e.problems.unshift({type:"colwidth mismatch",pos:l,colwidth:s})}}(s,r,e),s}(e))}};function p(e){let t=e.cached.tableNodeTypes;if(!t)for(let i in t=e.cached.tableNodeTypes={},e.nodes){let n=e.nodes[i],o=n.spec.tableRole;o&&(t[o]=n)}return t}let c=new l.hs("selectingCells");function u(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function f(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function m(e){let t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;let i=u(t.$head)||function(e){for(let t=e.nodeAfter,i=e.pos;t;t=t.firstChild,i++){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(i)}for(let t=e.nodeBefore,i=e.pos;t;t=t.lastChild,i--){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(i-t.nodeSize)}}(t.$head);if(i)return i;throw RangeError(`No cell found around position ${t.head}`)}function g(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function w(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function v(e,t,i){let n=e.node(-1),o=h.get(n),l=e.start(-1),r=o.nextCell(e.pos-l,t,i);return null==r?null:e.node(0).resolve(l+r)}function y(e,t,i=1){let n={...e,colspan:e.colspan-i};return n.colwidth&&(n.colwidth=n.colwidth.slice(),n.colwidth.splice(t,i),n.colwidth.some(e=>e>0)||(n.colwidth=null)),n}function b(e,t,i=1){let n={...e,colspan:e.colspan+i};if(n.colwidth){n.colwidth=n.colwidth.slice();for(let e=0;e<i;e++)n.colwidth.splice(t,0,0)}return n}var C=class e extends l.LN{constructor(e,t=e){const i=e.node(-1),n=h.get(i),o=e.start(-1),r=n.rectBetween(e.pos-o,t.pos-o),s=e.node(0),a=n.cellsInRect(r).filter(e=>e!=t.pos-o);a.unshift(t.pos-o);const d=a.map(e=>{let t=i.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let n=o+e+1;return new l.yn(s.resolve(n),s.resolve(n+t.content.size))});super(d[0].$from,d[0].$to,d),this.$anchorCell=e,this.$headCell=t}map(t,i){let n=t.resolve(i.map(this.$anchorCell.pos)),o=t.resolve(i.map(this.$headCell.pos));if(g(n)&&g(o)&&w(n,o)){let t=this.$anchorCell.node(-1)!=n.node(-1);return t&&this.isRowSelection()?e.rowSelection(n,o):t&&this.isColSelection()?e.colSelection(n,o):new e(n,o)}return l.U3.between(n,o)}content(){let e=this.$anchorCell.node(-1),t=h.get(e),i=this.$anchorCell.start(-1),n=t.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i),o={},l=[];for(let i=n.top;i<n.bottom;i++){let s=[];for(let l=i*t.width+n.left,r=n.left;r<n.right;r++,l++){let i=t.map[l];if(o[i])continue;o[i]=!0;let r=t.findCell(i),a=e.nodeAt(i);if(!a)throw RangeError(`No cell with offset ${i} found`);let d=n.left-r.left,h=r.right-n.right;if(d>0||h>0){let e=a.attrs;if(d>0&&(e=y(e,0,d)),h>0&&(e=y(e,e.colspan-h,h)),r.left<n.left){if(!(a=a.type.createAndFill(e)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else a=a.type.create(e,a.content)}if(r.top<n.top||r.bottom>n.bottom){let e={...a.attrs,rowspan:Math.min(r.bottom,n.bottom)-Math.max(r.top,n.top)};a=r.top<n.top?a.type.createAndFill(e):a.type.create(e,a.content)}s.push(a)}l.push(e.child(i).copy(r.FK.from(s)))}let s=this.isColSelection()&&this.isRowSelection()?e:l;return new r.Ji(r.FK.from(s),1,1)}replace(e,t=r.Ji.empty){let i=e.steps.length,n=this.ranges;for(let o=0;o<n.length;o++){let{$from:l,$to:s}=n[o],a=e.mapping.slice(i);e.replace(a.map(l.pos),a.map(s.pos),o?r.Ji.empty:t)}let o=l.LN.findFrom(e.doc.resolve(e.mapping.slice(i).map(this.to)),-1);o&&e.setSelection(o)}replaceWith(e,t){this.replace(e,new r.Ji(r.FK.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),i=h.get(t),n=this.$anchorCell.start(-1),o=i.cells
1InRect(i.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n));for(let i=0;i<o.length;i++)e(t.nodeAt(o[i]),n+o[i])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);return!(Math.min(e,t)>0)&&Math.max(e+this.$anchorCell.nodeAfter.attrs.rowspan,t+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,i=t){let n=t.node(-1),o=h.get(n),l=t.start(-1),r=o.findCell(t.pos-l),s=o.findCell(i.pos-l),a=t.node(0);return r.top<=s.top?(r.top>0&&(t=a.resolve(l+o.map[r.left])),s.bottom<o.height&&(i=a.resolve(l+o.map[o.width*(o.height-1)+s.right-1]))):(s.top>0&&(i=a.resolve(l+o.map[s.left])),r.bottom<o.height&&(t=a.resolve(l+o.map[o.width*(o.height-1)+r.right-1]))),new e(t,i)}isRowSelection(){let e=this.$anchorCell.node(-1),t=h.get(e),i=this.$anchorCell.start(-1),n=t.colCount(this.$anchorCell.pos-i),o=t.colCount(this.$headCell.pos-i);return!(Math.min(n,o)>0)&&Math.max(n+this.$anchorCell.nodeAfter.attrs.colspan,o+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,i=t){let n=t.node(-1),o=h.get(n),l=t.start(-1),r=o.findCell(t.pos-l),s=o.findCell(i.pos-l),a=t.node(0);return r.left<=s.left?(r.left>0&&(t=a.resolve(l+o.map[r.top*o.width])),s.right<o.width&&(i=a.resolve(l+o.map[o.width*(s.top+1)-1]))):(s.left>0&&(i=a.resolve(l+o.map[s.top*o.width])),r.right<o.width&&(t=a.resolve(l+o.map[o.width*(r.top+1)-1]))),new e(t,i)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,i){return new e(t.resolve(i.anchor),t.resolve(i.head))}static create(t,i,n=i){return new e(t.resolve(i),t.resolve(n))}getBookmark(){return new S(this.$anchorCell.pos,this.$headCell.pos)}};C.prototype.visible=!1,l.LN.jsonID("cell",C);var S=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),i=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==i.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&i.index()<i.parent.childCount&&w(t,i)?new C(t,i):l.LN.near
1(i,1)}};function M(e){if(!(e.selection instanceof C))return null;let t=[];return e.selection.forEachCell((e,i)=>{t.push(s.NZ.node(i,i+e.nodeSize,{class:"selectedCell"}))}),s.zF.create(e.doc,t)}let A=new l.hs("fix-tables");function O(e,t){let i,n=(t,n)=>{"table"==t.type.spec.tableRole&&(i=function(e,t,i,n){let o,l,r=h.get(t);if(!r.problems)return n;n||(n=e.tr);let s=[];for(let e=0;e<r.height;e++)s.push(0);for(let e=0;e<r.problems.length;e++){let o=r.problems[e];if("collision"==o.type){let e=t.nodeAt(o.pos);if(!e)continue;let l=e.attrs;for(let e=0;e<l.rowspan;e++)s[o.row+e]+=o.n;n.setNodeMarkup(n.mapping.map(i+1+o.pos),null,y(l,l.colspan-o.n,o.n))}else if("missing"==o.type)s[o.row]+=o.n;else if("overlong_rowspan"==o.type){let e=t.nodeAt(o.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(i+1+o.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-o.n})}else if("colwidth mismatch"==o.type){let e=t.nodeAt(o.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(i+1+o.pos),null,{...e.attrs,colwidth:o.colwidth})}else if("zero_sized"==o.type){let e=n.mapping.map(i);n.delete(e,e+t.nodeSize)}}for(let e=0;e<s.length;e++)s[e]&&(null==o&&(o=e),l=e);for(let a=0,d=i+1;a<r.height;a++){let i=t.child(a),r=d+i.nodeSize,h=s[a];if(h>0){let t="cell";i.firstChild&&(t=i.firstChild.type.spec.tableRole);let s=[];for(let i=0;i<h;i++){let i=p(e.schema)[t].createAndFill();i&&s.push(i)}let c=(0==a||o==a-1)&&l==a?d+1:r-1;n.insert(n.mapping.map(c),s)}d=r}return n.setMeta(A,{fixTables:!0})}(e,t,n,i))};return t?t.doc!=e.doc&&function e(t,i,n,o){let l=t.childCount,r=i.childCount;e:for(let s=0,a=0;s<r;s++){let r=i.child(s);for(let e=a,i=Math.min(l,s+3);e<i;e++)if(t.child(e)==r){a=e+1,n+=r.nodeSize;continue e}o(r,n),a<l&&t.child(a).sameMarkup(r)?e(t.child(a),r,n+1,o):r.nodesBetween(0,r.content.size,o,n+1),n+=r.nodeSize}}(t.doc,e.doc,0,n):e.doc.descendants(n),i}function z(e){let t=e.selection,i=m(e),n=i.node(-1),o=i.start(-1),l=h.get(n);return{...t instanceof C?l.rectBetween(t.$anchorCell.pos-o,t.$headCell.pos-o):l.findCell(i.pos-o),tableStart:o,map:l,table:n}}function U(e,{map:t,tableStart:i,table:n},o){let l=o>0?-1:0;(function(e,t,i){let n=p(t.type.schema).header_cell;for(let o=0;o<e.height;o++)if(t.nodeAt(e.map[i+o*e.width]).type!=n)return!1;return!0})(t,n,o+l)&&(l=0==o||o==t.width?null:0);for(let r=0;r<t.height;r++){let s=r*t.width+o;if(o>0&&o<t.width&&t.map[s-1]==t.map[s]){let l=t.map[s],a=n.nodeAt(l);e.setNodeMarkup(e.mapping.map(i+l),null,b(a.attrs,o-t.colCount(l))),r+=a.attrs.rowspan-1}else{let a=null==l?p(n.type.schema).cell:n.nodeAt(t.map[s+l]).type,d=t.positionAt(r,o,n);e.insert(e.mapping.map(i+d),a.createAndFill())}}return e}function H(e,t){if(!f(e))return!1;if(t){let i=z(e);t(U(e.tr,i,i.left))}return!0}function R(e,t){if(!f(e))return!1;if(t){let i=z(e);t(U(e.tr,i,i.right))}return!0}function I(e,t){if(!f(e))return!1;if(t){let i=z(e),n=e.tr;if(0==i.left&&i.right==i.map.width)return!1;for(let e=i.right-1;!function(e,{map:t,table:i,tableStart:n},o){let l=e.mapping.maps.length;for(let r=0;r<t.height;){let s=r*t.width+o,a=t.map[s],d=i.nodeAt(a),h=d.attrs;if(o>0&&t.map[s-1]==a||o<t.width-1&&t.map[s+1]==a)e.setNodeMarkup(e.mapping.slice(l).map(n+a),null,y(h,o-t.colCount(a)));else{let t=e.mapping.slice(l).map(n+a);e.delete(t,t+d.nodeSize)}r+=h.rowspan}}(n,i,e),e!=i.left;e--){let e=i.tableStart?n.doc.nodeAt(i.tableStart-1):n.doc;if(!e)throw RangeError("No table found");i.table=e,i.map=h.get(e)}t(n)}return!0}function D(e,{map:t,tableStart:i,table:n},o){let l=i;for(let e=0;e<o;e++)l+=n.child(e).nodeSize;let r=[],s=o>0?-1:0;(function(e,t,i){var n;let o=p(t.type.schema).header_cell;for(let l=0;l<e.width;l++)if((null==(n=t.nodeAt(e.map[l+i*e.width]))?void 0:n.type)!=o)return!1;return!0})(t,n,o+s)&&(s=0==o||o==t.height?null:0);for(let l=0,d=t.width*o;l<t.width;l++,d++)if(o>0&&o<t.height&&t.map[d]==t.map[d-t.width]){let o=t.map[d],r=n.nodeAt(o).attrs;e.setNodeMarkup(i+o,null,{...r,rowspan:r.rowspan+1}),l+=r.colspan-1}else{var a;let e=null==s?p(n.type.schema).cell:null==(a=n.nodeAt(t.map[d+s*t.width]))?void 0:a.type,i=null==e?void 0:e.createAndFill();i&&r.push(i)}return e.insert(l,p(n.type.schema).row.create(null,r)),e}function x(e,t){if(!f(e))return!1;if(t){let i=z(e);t(D(e.tr,i,i.top))}return!0}function k(e,t){if(!f(e))return!1;if(t){let i=z(e);t(D(e.tr,i,i.bottom))}return!0}function N(e,t){if(!f(e))return!1;if(t){let i=z(e),n=e.tr;if(0==i.top&&i.bottom==i.map.height)return!1;for(let e=i.bottom-1;!function(e,{map:t,table:i,tableStart:n},o){let l=0;for(let e=0;e<o;e++)l+=i.child(e).nodeSize;let r=l+i.child(o).nodeSize,s=e.mapping.maps.length;e.delete(l+n,r+n);let a=new Set;for(let l=0,r=o*t.width;l<t.width;l++,r++){let d=t.map[r];if(!a.has(d)){if(a.add(d),o>0&&d==t.map[r-t.width]){let t=i.nodeAt(d).attrs;
1e.setNodeMarkup(e.mapping.slice(s).map(d+n),null,{...t,rowspan:t.rowspan-1}),l+=t.colspan-1}else if(o<t.height&&d==t.map[r+t.width]){let r=i.nodeAt(d),a=r.attrs,h=r.type.create({...a,rowspan:r.attrs.rowspan-1},r.content),p=t.positionAt(o+1,l,i);e.insert(e.mapping.slice(s).map(n+p),h),l+=a.colspan-1}}}}(n,i,e),e!=i.top;e--){let e=i.tableStart?n.doc.nodeAt(i.tableStart-1):n.doc;if(!e)throw RangeError("No table found");i.table=e,i.map=h.get(i.table)}t(n)}return!0}function T(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function $(e,t){let i=e.selection;if(!(i instanceof C)||i.$anchorCell.pos==i.$headCell.pos)return!1;let n=z(e),{map:o}=n;if(function({width:e,height:t,map:i},n){let o=n.top*e+n.left,l=o,r=(n.bottom-1)*e+n.left,s=o+(n.right-n.left-1);for(let t=n.top;t<n.bottom;t++){if(n.left>0&&i[l]==i[l-1]||n.right<e&&i[s]==i[s+1])return!0;l+=e,s+=e}for(let l=n.left;l<n.right;l++){if(n.top>0&&i[o]==i[o-e]||n.bottom<t&&i[r]==i[r+e])return!0;o++,r++}return!1}(o,n))return!1;if(t){let i,l,s=e.tr,a={},d=r.FK.empty;for(let e=n.top;e<n.bottom;e++)for(let t=n.left;t<n.right;t++){let r=o.map[e*o.width+t],h=n.table.nodeAt(r);if(!a[r]&&h)if(a[r]=!0,null==i)i=r,l=h;else{T(h)||(d=d.append(h.content));let e=s.mapping.map(r+n.tableStart);s.delete(e,e+h.nodeSize)}}if(null==i||null==l)return!0;if(s.setNodeMarkup(i+n.tableStart,null,{...b(l.attrs,l.attrs.colspan,n.right-n.left-l.attrs.colspan),rowspan:n.bottom-n.top}),d.size>0){let e=i+1+l.content.size,t=T(l)?i+1:e;s.replaceWith(t+n.tableStart,e+n.tableStart,d)}s.setSelection(new C(s.doc.resolve(i+n.tableStart))),t(s)}return!0}function E(e,t){var i;let n=p(e.schema);return(i=({node:e})=>n[e.type.spec.tableRole],(e,t)=>{let n,o,l=e.selection;if(l instanceof C){if(l.$anchorCell.pos!=l.$headCell.pos)return!1;n=l.$anchorCell.nodeAfter,o=l.$anchorCell.pos}else{var r;if(!(n=function(e){for(let t=e.depth;t>0;t--){let i=e.node(t).type.spec.tableRole;if("cell"===i||"header_cell"===i)return e.node(t)}return null}(l.$from)))return!1;o=null==(r=u(l.$from))?void 0:r.pos}if(null==n||null==o||1==n.attrs.colspan&&1==n.attrs.rowspan)return!1;if(t){let r,s=n.attrs,a=[],d=s.colwidth;s.rowspan>1&&(s={...s,rowspan:1}),s.colspan>1&&(s={...s,colspan:1});let h=z(e),p=e.tr;for(let e=0;e<h.right-h.left;e++)a.push(d?{...s,colwidth:d&&d[e]?[d[e]]:null}:s);for(let e=h.top;e<h.bottom;e++){let t=h.map.positionAt(e,h.left,h.table);e==h.top&&(t+=n.nodeSize);for(let o=h.left,l=0;o<h.right;o++,l++)(o!=h.left||e!=h.top)&&p.insert(r=p.mapping.map(t+h.tableStart,1),i({node:n,row:e,col:o}).createAndFill(a[l]))}p.setNodeMarkup(o,i({node:n,row:h.top,col:h.left}),a[0]),l instanceof C&&p.setSelection(new C(p.doc.resolve(l.$anchorCell.pos),r?p.doc.resolve(r):void 0)),t(p)}return!0})(e,t)}function _(e,t){return function(i,n){if(!f(i))return!1;let o=m(i);if(o.nodeAfter.attrs[e]===t)return!1;if(n){let l=i.tr;i.selection instanceof C?i.selection.forEachCell((i,n)=>{i.attrs[e]!==t&&l.setNodeMarkup(n,null,{...i.attrs,[e]:t})}):l.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[e]:t}),n(l)}return!0}}function L(e,t,i){let n=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<n.length;e++){let o=t.table.nodeAt(n[e]);if(o&&o.type!==i.header_cell)return!1}return!0}function P(e,t){if((t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic)return function(t,i){if(!f(t))return!1;if(i){let n=p(t.schema),o=z(t),l=t.tr,r=o.map.cellsInRect("column"==e?{left:o.left,top:0,right:o.right,bottom:o.map.height}:"row"==e?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),s=r.map(e=>o.table.nodeAt(e));for(let e=0;e<r.length;e++)s[e].type==n.header_cell&&l.setNodeMarkup(o.tableStart+r[e],n.cell,s[e].attrs);if(0===l.steps.length)for(let e=0;e<r.length;e++)l.setNodeMarkup(o.tableStart+r[e],n.header_cell,s[e].attrs);i(l)}return!0};return function(t,i){if(!f(t))return!1;if(i){let n=p(t.schema),o=z(t),l=t.tr,r=L("row",o,n),s=L("column",o,n),a=+("column"===e?!!r:"row"===e&&!!s),d="column"==e?{left:0,top:a,right:1,bottom:o.map.height}:"row"==e?{left:a,top:0,right:o.map.width,bottom:1}:o,h="column"==e?s?n.cell:n.header_cell:"row"==e?r?n.cell:n.header_cell:n.cell;
1o.map.cellsInRect(d).forEach(e=>{let t=e+o.tableStart,i=l.doc.nodeAt(t);i&&l.setNodeMarkup(t,h,i.attrs)}),i(l)}return!0}}P("row",{useDeprecatedLogic:!0}),P("column",{useDeprecatedLogic:!0});let F=P("cell",{useDeprecatedLogic:!0});function K(e){return function(t,i){if(!f(t))return!1;let n=function(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,i=e.before();t>=0;t--){let n=e.node(-1).child(t),o=n.lastChild;if(o)return i-1-o.nodeSize;i-=n.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let i=e.indexAfter(-1),n=e.after();i<t.childCount;i++){let e=t.child(i);if(e.childCount)return n+1;n+=e.nodeSize}}return null}(m(t),e);if(null==n)return!1;if(i){let e=t.doc.resolve(n);i(t.tr.setSelection(l.U3.between(e,e.node(0).resolve(e.pos+e.nodeAfter.nodeSize))).scrollIntoView())}return!0}}function B(e,t){let i=e.selection.$anchor;for(let n=i.depth;n>0;n--)if("table"==i.node(n).type.spec.tableRole)return t&&t(e.tr.delete(i.before(n),i.after(n)).scrollIntoView()),!0;return!1}function V(e,t){let i=e.selection;if(!(i instanceof C))return!1;if(t){let n=e.tr,o=p(e.schema).cell.createAndFill().content;
1i.forEachCell((e,t)=>{e.content.eq(o)||n.replace(n.mapping.map(t+1),n.mapping.map(t+e.nodeSize-1),new r.Ji(o,0,0))}),n.docChanged&&t(n)}return!0}function j(e,t){let i=e.createAndFill();return new d.dL(i).replace(0,i.content.size,t).doc}function q(e,t,i,n,o,l,r,s){if(0==r||r==t.height)return!1;let a=!1;for(let d=o;d<l;d++){let o=r*t.width+d,l=t.map[o];if(t.map[o-t.width]==l){a=!0;let o=i.nodeAt(l),{top:h,left:p}=t.findCell(l);e.setNodeMarkup(e.mapping.slice(s).map(l+n),null,{...o.attrs,rowspan:r-h}),e.insert(e.mapping.slice(s).map(t.positionAt(r,p,i)),o.type.createAndFill({...o.attrs,rowspan:h+o.attrs.rowspan-r})),d+=o.attrs.colspan-1}}return a}function W(e,t,i,n,o,l,r,s){if(0==r||r==t.width)return!1;let a=!1;for(let d=o;d<l;d++){let o=d*t.width+r,l=t.map[o];if(t.map[o-1]==l){a=!0;let o=i.nodeAt(l),h=t.colCount(l),p=e.mapping.slice(s).map(l+n);e.setNodeMarkup(p,null,y(o.attrs,r-h,o.attrs.colspan-(r-h))),e.insert(p+o.nodeSize,o.type.createAndFill(y(o.attrs,0,r-h))),d+=o.attrs.rowspan-1}}return a}function J(e,t,i,n,o){let l=i?e.doc.nodeAt(i-1):e.doc;if(!l)throw Error("No table found");let s=h.get(l),{top:a,left:d}=n,c=d+o.width,u=a+o.height,f=e.tr,m=0;function g(){if(!(l=i?f.doc.nodeAt(i-1):f.doc))throw Error("No table found");s=h.get(l),m=f.mapping.maps.length}(function(e,t,i,n,o,l){let s,a,d=p(e.doc.type.schema);if(o>t.width)for(let l=0,r=0;l<t.height;l++){let h,p=i.child(l);r+=p.nodeSize;let c=[];h=null==p.lastChild||p.lastChild.type==d.cell?s||(s=d.cell.createAndFill()):a||(a=d.header_cell.createAndFill());for(let e=t.width;e<o;e++)c.push(h);e.insert(e.mapping.slice(0).map(r-1+n),c)}if(l>t.height){let h=[];for(let e=0,n=(t.height-1)*t.width;e<Math.max(t.width,o);e++){let o=!(e>=t.width)&&i.nodeAt(t.map[n+e]).type==d.header_cell;h.push(o?a||(a=d.header_cell.createAndFill()):s||(s=d.cell.createAndFill()))}let p=d.row.create(null,r.FK.from(h)),c=[];for(let e=t.height;e<l;e++)c.push(p);e.insert(e.mapping.slice(0).map(n+i.nodeSize-2),c)}return!!(s||a)})(f,s,l,i,c,u)&&g(),q(f,s,l,i,d,c,a,m)&&g(),q(f,s,l,i,d,c,u,m)&&g(),W(f,s,l,i,a,u,d,m)&&g(),W(f,s,l,i,a,u,c,m)&&g();for(let e=a;e<u;e++){let t=s.positionAt(e,d,l),n=s.positionAt(e,c,l);f.replace(f.mapping.slice(m).map(t+i),f.mapping.slice(m).map(n+i),new r.Ji(o.rows[e-a],0,0))}g(),f.setSelection(new C(f.doc.resolve(i+s.positionAt(a,d,l)),f.doc.resolve(i+s.positionAt(u-1,c-1,l)))),t(f)}let G=(0,a.K)({ArrowLeft:Y("horiz",-1),ArrowRight:Y("horiz",1),ArrowUp:Y("vert",-1),ArrowDown:Y("vert",1),"Shift-ArrowLeft":Z("horiz",-1),"Shift-ArrowRight":Z("horiz",1),"Shift-ArrowUp":Z("vert",-1),"Shift-ArrowDown":Z("vert",1),Backspace:V,"Mod-Backspace":V,Delete:V,"Mod-Delete":V});function X(e,t,i){return!i.eq(e.selection)&&(t&&t(e.tr.setSelection(i).scrollIntoView()),!0)}function Y(e,t){return(i,n,o)=>{if(!o)return!1;let r=i.selection;if(r instanceof C)return X(i,n,l.LN.near(r.$headCell,t));if("horiz"!=e&&!r.empty)return!1;let s=ei(o,e,t);if(null==s)return!1;if("horiz"==e)return X(i,n,l.LN.near(i.doc.resolve(r.head+t),t));{let o,r=i.doc.resolve(s),a=v(r,e,t);return o=a?l.LN.near(a,1):t<0?l.LN.near(i.doc.resolve(r.before(-1)),-1):l.LN.near(i.doc.resolve(r.after(-1)),1),X(i,n,o)}}}function Z(e,t){return(i,n,o)=>{let l;if(!o)return!1;let r=i.selection;if(r instanceof C)l=r;else{let n=ei(o,e,t);if(null==n)return!1;l=new C(i.doc.resolve(n))}let s=v(l.$headCell,e,t);return!!s&&X(i,n,new C(l.$anchorCell,s))}}function Q(e,t){let i=u(e.state.doc.resolve(t));return!!i&&(e.dispatch(e.state.tr.setSelection(new C(i))),!0)}function ee(e,t,i){if(!f(e.state))return!1;let n=function(e){if(0===e.size)return null;let{content:t,openStart:i,openEnd:n}=e;for(;1==t.childCount&&(i>0&&n>0||"table"==t.child(0).type.spec.tableRole);)i--,n--,t=t.child(0).content;let o=t.child(0),l=o.type.spec.tableRole,s=o.type.schema,a=[];if("row"==l)for(let e=0;e<t.childCount;e++){let o=t.child(e).content,l=e?0:Math.max(0,i-1),d=e<t.childCount-1?0:Math.max(0,n-1);(l||d)&&(o=j(p(s).row,new r.Ji(o,l,d)).content),a.push(o)}else{if("cell"!=l&&"header_cell"!=l)return null;a.push(i||n?j(p(s).row,new r.Ji(t,i,n)).content:t)}return function(e,t){let i=[];for(let e=0;e<t.length;e++){let n=t[e];for(let t=n.childCount-1;t>=0;t--){let{rowspan:o,colspan:l}=n.child(t).attrs;for(let t=e;t<e+o;t++)i[t]=(i[t]||0)+l}}let n=0;for(let e=0;e<i.length;e++)n=Math.max(n,i[e]);for(let o=0;o<i.length;o++)if(o>=t.length&&t.push(r.FK.empty),i[o]<n){let l=p(e).cell.createAndFill(),s=[];for(let e=i[o];e<n;e++)s.push(l);t[o]=t[o].append(r.FK.from(s))}return{height:t.length,width:n,rows:t}}(s,a)}(i),o=e.state.selection;if(o instanceof C){n||(n={width:1,height:1,rows:[r.FK.from(j(p(e.state.schema).cell,i))]});let t=o.$anchorCell.node(-1),l=o.$anchorCell.start(-1),s=h.get(t).rectBetween(o.$anchorCell.pos-l,o.$headCell.pos-l);return n=function({width:e,height:t,rows:i},n,o){if(e!=n){let t=[],o=[];for(let e=0;e<i.length;e++){let l=i[e],s=[];for(let i=t[e]||0,o=0;i<n;o++){let r=l.child(o%l.childCount);i+r.attrs.colspan>n&&(r=r.type.createChecked(y(r.attrs,r.attrs.colspan,i+r.attrs.colspan-n),r.content)),s.push(r),i+=r.attrs.colspan;for(let i=1;i<r.attrs.rowspan;i++)t[e+i]=(t[e+i]||0)+r.attrs.colspan}o.push(r.FK.from(s))}i=o,e=n}if(t!=o){let e=[];for(let n=0,l=0;n<o;n++,l++){let s=[],a=i[l%t];for(let e=0;e<a.childCount;e++){let t=a.child(e);n+t.attrs.rowspan>o&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,o-t.attrs.rowspan)},t.content)),s.push(t)}e.push(r.FK.from(s))}i=e,t=o}return{width:e,height:t,rows:i}}(n,s.right-s.left,s.bottom-s.top),J(e.state,e.dispatch,l,s,n),!0}if(!n)return!1;{let t=m(e.state),i=t.start(-1);return J(e.state,e.dispatch,i,h.get(t.node(-1)).findCell(t.pos-i),n),!0}}function et(e,t){var i;let n;if(0!=t.button||t.ctrlKey||t.metaKey)return;let o=en(e,t.target);if(t.shiftKey&&e.state.selection instanceof C)l(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&o&&null!=(n=u(e.state.selection.$anchor))&&(null==(i=eo(e,t))?void 0:i.pos)!=n.pos)l(n,t),t.preventDefault();else if(!o)return;function l(t,i){let n=eo(e,i),o=null==c.getState(e.state);if(!n||!w(t,n))if(!o)return;else n=t;let l=new C(t,n);if(o||!e.state.selection.eq(l)){let i=e.state.tr.setSelection(l);o&&i.setMeta(c,t.pos),e.dispatch(i)}}function r(){e.root.removeEventListener("mouseup",r),e.root.removeEventListener("dragstart",r),e.root.removeEventListener("mousemove",s),null!=c.getState(e.state)&&e.dispatch(e.state.tr.setMeta(c,-1))}function s(i){let n,s=c.getState(e.state);if(null!=s)n=e.state.doc.resolve(s);else if(en(e,i.target)!=o&&!(n=eo(e,t)))return r();n&&l(n,i)}e.root.addEventListener("mouseup",r),e.root.addEventListener("dragstart",r),e.root.addEventListener("mousemove",s)}function ei(e,t,i){if(!(e.state.selection instanceof l.U3))return null;let{$head:n}=e.state.selection;for(let o=n.depth-1;o>=0;o--){let l=n.node(o);
1if((i<0?n.index(o):n.indexAfter(o))!=(i<0?0:l.childCount))break;if("cell"==l.type.spec.tableRole||"header_cell"==l.type.spec.tableRole){let l=n.before(o),r="vert"==t?i>0?"down":"up":i>0?"right":"left";return e.endOfTextblock(r)?l:null}}return null}function en(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function eo(e,t){let i=e.posAtCoords({left:t.clientX,top:t.clientY});if(!i)return null;let{inside:n,pos:o}=i;return n>=0&&u(e.state.doc.resolve(n))||u(e.state.doc.resolve(o))}var el=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),er(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,er(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function er(e,t,i,n,o,l){let r=0,s=!0,a=t.firstChild,d=e.firstChild;if(d){for(let e=0,i=0;e<d.childCount;e++){let{colspan:h,colwidth:p}=d.child(e).attrs;for(let e=0;e<h;e++,i++){let d=o==i?l:p&&p[e],h=d?d+"px":"";if(r+=d||n,d||(s=!1),a)a.style.width!=h&&(a.style.width=h),a=a.nextSibling;else{let e=document.createElement("col");e.style.width=h,t.appendChild(e)}}}for(;a;){var h;let e=a.nextSibling;null==(h=a.parentNode)||h.removeChild(a),a=e}s?(i.style.width=r+"px",i.style.minWidth=""):(i.style.width="",i.style.minWidth=r+"px")}}let es=new l.hs("tableColumnResizing");function ea({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:i=100,View:n=el,lastColumnResizable:o=!0}={}){let r=new l.k_({key:es,state:{init(e,t){var o;let l=null==(o=r.spec)||null==(o=o.props)?void 0:o.nodeViews,s=p(t.schema).table.name;return n&&l&&(l[s]=(e,t)=>new n(e,i,t)),new ed(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=es.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,i)=>{!function(e,t,i,n){if(!e.editable)return;let o=es.getState(e.state);if(o&&!o.dragging){let l=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),r=-1;if(l){let{left:n,right:o}=l.getBoundingClientRect();t.clientX-n<=i?r=eh(e,t,"left",i):o-t.clientX<=i&&(r=eh(e,t,"right",i))}if(r!=o.activeHandle){if(!n&&-1!==r){let t=e.state.doc.resolve(r),i=t.node(-1),n=h.get(i),o=t.start(-1);if(n.colCount(t.pos-o)+t.nodeAfter.attrs.colspan-1==n.width-1)return}ec(e,r)}}}(t,i,e,o)},mouseleave:e=>{!function(e){if(!e.editable)return;let t=es.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&ec(e,-1)}(e)},mousedown:(e,n)=>{!function(e,t,i,n){var o;if(!e.editable)return;let l=null!=(o=e.dom.ownerDocument.defaultView)?o:window,r=es.getState(e.state);if(!r||-1==r.activeHandle||r.dragging)return;let s=e.state.doc.nodeAt(r.activeHandle),a=function(e,t,{colspan:i,colwidth:n}){let o=n&&n[n.length-1];if(o)return o;let l=e.domAtPos(t),r=l.node.childNodes[l.offset].offsetWidth,s=i;if(n)for(let e=0;e<i;e++)n[e]&&(r-=n[e],s--);return r/s}(e,r.activeHandle,s.attrs);function d(t){l.removeEventListener("mouseup",d),l.removeEventListener("mousemove",p);let n=es.getState(e.state);(null==n?void 0:n.dragging)&&(function(e,t,i){let n=e.state.doc.resolve(t),o=n.node(-1),l=h.get(o),r=n.start(-1),s=l.colCount(n.pos-r)+n.nodeAfter.attrs.colspan-1,a=e.state.tr;for(let e=0;e<l.height;e++){let t=e*l.width+s;if(e&&l.map[t]==l.map[t-l.width])continue;let n=l.map[t],d=o.nodeAt(n).attrs,h=1==d.colspan?0:s-l.colCount(n);if(d.colwidth&&d.colwidth[h]==i)continue;let p=d.colwidth?d.colwidth.slice():Array(d.colspan).fill(0);p[h]=i,a.setNodeMarkup(r+n,null,{...d,colwidth:p})}a.docChanged&&e.dispatch(a)}(e,n.activeHandle,ep(n.dragging,t,i)),e.dispatch(e.state.tr.setMeta(es,{setDragging:null})))}function p(t){if(!t.which)return d(t);let o=es.getState(e.state);if(o&&o.dragging){let l=ep(o.dragging,t,i);eu(e,o.activeHandle,l,n)}}e.dispatch(e.state.tr.setMeta(es,{setDragging:{startX:t.clientX,startWidth:a}})),eu(e,r.activeHandle,a,n),l.addEventListener("mouseup",d),l.addEventListener("mousemove",p),t.preventDefault()}(e,n,t,i)}},decorations:e=>{let t=es.getState(e);if(t&&t.activeHandle>-1)return function(e,t){let i=[],n=e.doc.resolve(t),o=n.node(-1);if(!o)return s.zF.empty;let l=h.get(o),r=n.start(-1),a=l.colCount(n.pos-r)+n.nodeAfter.attrs.colspan-1;for(let t=0;t<l.height;t++){let n=a+t*l.width;if((a==l.width-1||l.map[n]!=l.map[n+1])&&(0==t||l.map[n]!=l.map[n-l.width])){var d;let t=l.map[n],a=r+t+o.nodeAt(t).nodeSize-1,h=document.createElement("div");
1h.className="column-resize-handle",(null==(d=es.getState(e))?void 0:d.dragging)&&i.push(s.NZ.node(r+t,r+t+o.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),i.push(s.NZ.widget(a,h))}}return s.zF.create(e.doc,i)}(e,t.activeHandle)},nodeViews:{}}});return r}var ed=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let i=t.getMeta(es);if(i&&null!=i.setHandle)return new e(i.setHandle,!1);if(i&&void 0!==i.setDragging)return new e(this.activeHandle,i.setDragging);if(this.activeHandle>-1&&t.docChanged){let i=t.mapping.map(this.activeHandle,-1);return g(t.doc.resolve(i))||(i=-1),new e(i,this.dragging)}return this}};function eh(e,t,i,n){let o=e.posAtCoords({left:t.clientX+("right"==i?-n:n),top:t.clientY});if(!o)return -1;let{pos:l}=o,r=u(e.state.doc.resolve(l));if(!r)return -1;if("right"==i)return r.pos;let s=h.get(r.node(-1)),a=r.start(-1),d=s.map.indexOf(r.pos-a);return d%s.width==0?-1:a+s.map[d-1]}function ep(e,t,i){let n=t.clientX-e.startX;return Math.max(i,e.startWidth+n)}function ec(e,t){e.dispatch(e.state.tr.setMeta(es,{setHandle:t}))}function eu(e,t,i,n){let o=e.state.doc.resolve(t),l=o.node(-1),r=o.start(-1),s=h.get(l).colCount(o.pos-r)+o.nodeAfter.attrs.colspan-1,a=e.domAtPos(o.start(-1)).node;for(;a&&"TABLE"!=a.nodeName;)a=a.parentNode;a&&er(l,a.firstChild,a,n,s,i)}function ef({allowTableNodeSelection:e=!1}={}){return new l.k_({key:c,state:{init:()=>null,apply(e,t){let i=e.getMeta(c);if(null!=i)return -1==i?null:i;if(null==t||!e.docChanged)return t;let{deleted:n,pos:o}=e.mapping.mapResult(t);return n?null:o}},props:{decorations:M,handleDOMEvents:{mousedown:et},createSelectionBetween:e=>null!=c.getState(e.state)?e.state.selection:null,handleTripleClick:Q,handleKeyDown:G,handlePaste:ee},appendTransaction:(t,i,n)=>(function(e,t,i){let n,o,r=(t||e).selection,s=(t||e).doc;if(r instanceof l.nh&&(o=r.node.type.spec.tableRole)){if("cell"==o||"header_cell"==o)n=C.create(s,r.from);else if("row"==o){let e=s.resolve(r.from+1);n=C.rowSelection(e,e)}else if(!i){let e=h.get(r.node),t=r.from+1,i=t+e.map[e.width*e.height-1];n=C.create(s,t+1,i)}}else r instanceof l.U3&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let i=e.pos,n=t.pos,o=e.depth;for(;o>=0&&!(e.after(o+1)<e.end(o));o--,i++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,n--);return i==n&&/row|table/.test(e.node(o).type.spec.tableRole)}(r)?n=l.U3.create(s,r.from):r instanceof l.U3&&function({$from:e,$to:t}){let i,n;for(let t=e.depth;t>0;t--){let n=e.node(t);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){i=n;break}}for(let e=t.depth;e>0;e--){let i=t.node(e);if("cell"===i.type.spec.tableRole||"header_cell"===i.type.spec.tableRole){n=i;break}}return i!==n&&0===t.parentOffset}(r)&&(n=l.U3.create(s,r.$from.start(),r.$from.end()));return n&&(t||(t=e.tr)).setSelection(n),t})(n,O(n,i),e)})}},276925:(e,t,i)=>{i.r(t),i.d(t,{__iconNode:()=>o,default:()=>l});var n=i(453292);let o=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]],l=(0,n.A)("text-align-center",o)},338628:(e,t,i)=>{i.d(t,{m:()=>m});var n=i(419261),o=i(577232),l=i(683951),r=i(240039),s=class{constructor({editor:e,element:t,view:i,updateDelay:o=250,resizeDelay:l=60,shouldShow:r,appendTo:s,getReferencedVirtualElement:a,options:d}){var h;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:e,state:t,from:i,to:o})=>{let{doc:l,selection:r}=t,{empty:s}=r,a=!l.textBetween(i,o).length&&(0,n.eE)(t.selection),d=this.element.contains(document.activeElement);return!!(e.hasFocus()||d)&&!s&&!a&&!!this.editor.isEditable},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{var t;if(this.editor.isDestroyed)return void this.destroy();if(this.preventHide){this.preventHide=!1;return}(null==e?void 0:e.relatedTarget)&&(null==(t=this.element.parentNode)?void 0:t.contains(e.relatedTarget))||(null==e?void 0:e.relatedTarget)!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(e,t)=>
1{let i=!(null==t?void 0:t.selection.eq(e.state.selection)),n=!(null==t?void 0:t.doc.eq(e.state.doc));(i||n)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(e,i,n,t)},this.updateDelay))},this.updateHandler=(e,t,i,n)=>{let{composing:o}=e;!o&&(t||i)&&(this.getShouldShow(n)?(this.updatePosition(),this.show()):this.hide())},this.transactionHandler=({transaction:e})=>{let t=e.getMeta("bubbleMenu");"updatePosition"===t?this.updatePosition():t&&"object"==typeof t&&"updateOptions"===t.type&&this.updateOptions(t.options)},this.editor=e,this.element=t,this.view=i,this.updateDelay=o,this.resizeDelay=l,this.appendTo=s,this.scrollTarget=null!=(h=null==d?void 0:d.scrollTarget)?h:window,this.getReferencedVirtualElement=a,this.floatingUIOptions={...this.floatingUIOptions,...d},this.element.tabIndex=0,r&&(this.shouldShow=r),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push((0,o.UU)("boolean"!=typeof this.floatingUIOptions.flip?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&e.push((0,o.BN)("boolean"!=typeof this.floatingUIOptions.shift?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&e.push((0,o.cY)("boolean"!=typeof this.floatingUIOptions.offset?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&e.push((0,o.UE)(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push((0,o.Ej)("boolean"!=typeof this.floatingUIOptions.size?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&e.push((0,o.RK)("boolean"!=typeof this.floatingUIOptions.autoPlacement?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&e.push((0,o.jD)("boolean"!=typeof this.floatingUIOptions.hide?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&e.push((0,o.mG)("boolean"!=typeof this.floatingUIOptions.inline?this.floatingUIOptions.inline:void 0)),e}get virtualElement(){var e,t,i,o,s;let{selection:a}=this.editor.state,d=null==(e=this.getReferencedVirtualElement)?void 0:e.call(this);if(d)return d;if(!(null==(i=null==(t=this.view)?void 0:t.dom)?void 0:i.parentNode))return;let h=(0,n.MG)(this.view,a.from,a.to),p={getBoundingClientRect:()=>h,getClientRects:()=>[h]};if(a instanceof l.nh){let e=this.view.nodeDOM(a.from),t=e.dataset.nodeViewWrapper?e:e.querySelector("[data-node-view-wrapper]");t&&(e=t),e&&(p={getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>[e.getBoundingClientRect()]})}if(a instanceof r.rn){let e,t,i,{$anchorCell:n,$headCell:l}=a,r=n?n.pos:l.pos,d=l?l.pos:n.pos,h=this.view.nodeDOM(r),c=this.view.nodeDOM(d);if(!h||!c)return;let u=h===c?h.getBoundingClientRect():(o=h.getBoundingClientRect(),s=c.getBoundingClientRect(),e=Math.min(o.top,s.top),t=Math.max(o.bottom,s.bottom),i=Math.min(o.left,s.left),new DOMRect(i,e,Math.max(o.right,s.right)-i,t-e));p={getBoundingClientRect:()=>u,getClientRects:()=>[u]}}return p}updatePosition(){let e=this.virtualElement;e&&(0,o.rD)(e,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:t,strategy:i,middlewareData:n})=>{var o,l;if((null==(o=n.hide)?void 0:o.referenceHidden)||(null==(l=n.hide)?void 0:l.escaped)){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=i,this.element.style.left=`${e}px`,this.element.style.top=`${t}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(e,t){let{state:i}=e,n=i.selection.from!==i.selection.to;if(this.updateDelay>0&&n)return void this.handleDebouncedUpdate(e,t);let o=!(null==t?void 0:t.selection.eq(e.state.selection)),l=!(null==t?void 0:t.doc.eq(e.state.doc));this.updateHandler(e,o,l,t)}getShouldShow(e){var t;let{state:i}=this.view,{selection:n}=i,{ranges:o}=n,l=Math.min(...o.map(e=>e.$from.pos)),r=Math.max(...o.map(e=>e.$to.pos));return(null==(t=this.shouldShow)?void 0:t.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:e,from:l,to:r}))||!1}show(){var e;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";let t="function"==typeof this.appendTo?this.appendTo():this.appendTo;null==(e=null!=t?t:this.view.dom.parentElement)||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(e){var t;if(void 0!==e.updateDelay&&(this.updateDelay=e.updateDelay),void 0!==e.resizeDelay&&(this.resizeDelay=e.resizeDelay),void 0!==e.appendTo&&(this.appendTo=e.appendTo),void 0!==e.getReferencedVirtualElement&&(this.getReferencedVirtualElement=e.getReferencedVirtualElement),void 0!==e.shouldShow&&e.shouldShow&&(this.shouldShow=e.shouldShow),void 0!==e.options){let i=null!=(t=e.options.scrollTarget)?t:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},a=e=>new l.k_({key:"string"==typeof e.pluginKey?new l.hs(e.pluginKey):e.pluginKey,view:t=>new s({view:t,...e})});n.YY.create({name:"bubbleMenu",addOptions:()=>({element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[a({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var d=i(222196),h=i(494936),p=i(687673),c=i(699892),u=class{constructor({editor:e,element:t,view:i,updateDelay:n=250,resizeDelay:o=60,options:l,appendTo:r,shouldShow:s}){var a;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:e,state:t})=>{let{selection:i}=t,{$anchor:n,empty:o}=i,l=1===n.depth,r=n.parent.isTextblock&&!n.parent.type.spec.code&&!n.parent.textContent&&0===n.parent.childCount&&!this.getTextContent(n.parent);return!!e.hasFocus()&&!!o&&!!l&&!!r&&!!this.editor.isEditable},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(e,t,i,n)=>{let{composing:o}=e;!o&&(t||i)&&(this.getShouldShow(n)?(this.updatePosition(),this.show()):this.hide())},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{var t;if(this.preventHide){this.preventHide=!1;return}(null==e?void 0:e.relatedTarget)&&(null==(t=this.element.parentNode)?void 0:t.contains(e.relatedTarget))||(null==e?void 0:e.relatedTarget)!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:e})=>{let t=e.getMeta("floatingMenu");"updatePosition"===t?this.updatePosition():t&&"object"==typeof t&&"updateOptions"===t.type&&this.updateOptions(t.options)},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=e,this.element=t,this.view=i,this.updateDelay=n,this.resizeDelay=o,this.appendTo=r,this.scrollTarget=null!=(a=null==l?void 0:l.scrollTarget)?a:window,this.floatingUIOptions={...this.floatingUIOptions,...l},this.element.tabIndex=0,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.get
1ShouldShow()&&(this.show(),this.updatePosition())}getTextContent(e){return(0,n.q4)(e,{textSerializers:(0,n.iR)(this.editor.schema)})}get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push((0,o.UU)("boolean"!=typeof this.floatingUIOptions.flip?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&e.push((0,o.BN)("boolean"!=typeof this.floatingUIOptions.shift?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&e.push((0,o.cY)("boolean"!=typeof this.floatingUIOptions.offset?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&e.push((0,o.UE)(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push((0,o.Ej)("boolean"!=typeof this.floatingUIOptions.size?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&e.push((0,o.RK)("boolean"!=typeof this.floatingUIOptions.autoPlacement?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&e.push((0,o.jD)("boolean"!=typeof this.floatingUIOptions.hide?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&e.push((0,o.mG)("boolean"!=typeof this.floatingUIOptions.inline?this.floatingUIOptions.inline:void 0)),e}getShouldShow(e){var t;let{state:i}=this.view,{selection:n}=i,{ranges:o}=n,l=Math.min(...o.map(e=>e.$from.pos)),r=Math.max(...o.map(e=>e.$to.pos));return null==(t=this.shouldShow)?void 0:t.call(this,{editor:this.editor,view:this.view,state:i,oldState:e,from:l,to:r})}updateOptions(e){var t;if(void 0!==e.updateDelay&&(this.updateDelay=e.updateDelay),void 0!==e.resizeDelay&&(this.resizeDelay=e.resizeDelay),void 0!==e.appendTo&&(this.appendTo=e.appendTo),void 0!==e.shouldShow&&e.shouldShow&&(this.shouldShow=e.shouldShow),void 0!==e.options){let i=null!=(t=e.options.scrollTarget)?t:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}updatePosition(){let{selection:e}=this.editor.state,t=(0,n.MG)(this.view,e.from,e.to);(0,o.rD)({getBoundingClientRect:()=>t,getClientRects:()=>[t]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:t,strategy:i,middlewareData:n})=>{var o,l;if((null==(o=n.hide)?void 0:o.referenceHidden)||(null==(l=n.hide)?void 0:l.escaped)){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=i,this.element.style.left=`${e}px`,this.element.style.top=`${t}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(e,t){let i=!(null==t?void 0:t.selection.eq(e.state.selection)),n=!(null==t?void 0:t.doc.eq(e.state.doc));this.updateHandler(e,i,n,t)}show(){var e;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";let t="function"==typeof this.appendTo?this.appendTo():this.appendTo;null==(e=null!=t?t:this.view.dom.parentElement)||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},f=e=>new l.k_({key:"string"==typeof e.pluginKey?new l.hs(e.pluginKey):e.pluginKey,view:t=>new u({view:t,...e})});n.YY.create({name:"floatingMenu",addOptions:()=>({element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}),addCommands:()=>({updateFloatingMenuPosition:()=>({tr:e,dispatch:t})=>(t&&e.setMeta("floatingMenu","updatePosition"),!0)}),addProseMirrorPlugins(){return this.options.element?[f({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});var m=h.forwardRef(({pluginKey:e="bubbleMenu",editor:t,updateDelay:i,resizeDelay:n,appendTo:o,shouldShow:l=null,getReferencedVirtualElement:r,options:s,children:u,...f},m)=>{let g=(0,h.useRef)(document.createElement("div"));"function"==typeof m?m(g.current):m&&(m.current=g.current);let{editor:w}=(0,d.aA)(),v=t||w,y={updateDelay:i,resizeDelay:n,appendTo:o,pluginKey:e,shouldShow:l,getReferencedVirtualElement:r,options:s},b=(0,h.useRef)(y);b.current=y;let[C,S]=(0,h.useState)(!1),M=(0,h.useRef)(!0);return(0,h.useEffect)(()=>
1{if(null==v?void 0:v.isDestroyed)return;if(!v)return void console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");let e=g.current;e.style.visibility="hidden",e.style.position="absolute";let t=a({...b.current,editor:v,element:e});v.registerPlugin(t);let i=b.current.pluginKey;return M.current=!0,S(!0),()=>{S(!1),v.unregisterPlugin(i),window.requestAnimationFrame(()=>{e.parentNode&&e.parentNode.removeChild(e)})}},[v]),(0,h.useEffect)(()=>{if(C&&v&&!v.isDestroyed){if(M.current){M.current=!1;return}v.view.dispatch(v.state.tr.setMeta("bubbleMenu",{type:"updateOptions",options:b.current}))}},[C,v,i,n,l,s,o,r]),(0,p.createPortal)((0,c.jsx)("div",{...f,children:u}),g.current)});h.forwardRef(({pluginKey:e="floatingMenu",editor:t,updateDelay:i,resizeDelay:n,appendTo:o,shouldShow:l=null,options:r,children:s,...a},u)=>{let m=(0,h.useRef)(document.createElement("div"));"function"==typeof u?u(m.current):u&&(u.current=m.current);let{editor:g}=(0,d.aA)(),w=t||g,v={updateDelay:i,resizeDelay:n,appendTo:o,pluginKey:e,shouldShow:l,options:r},y=(0,h.useRef)(v);y.current=v;let[b,C]=(0,h.useState)(!1),S=(0,h.useRef)(!0);return(0,h.useEffect)(()=>{if(null==w?void 0:w.isDestroyed)return;if(!w)return void console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");let e=m.current;e.style.visibility="hidden",e.style.position="absolute";let t=f({...y.current,editor:w,element:e});w.registerPlugin(t);let i=y.current.pluginKey;return S.current=!0,C(!0),()=>{C(!1),w.unregisterPlugin(i),window.requestAnimationFrame(()=>{e.parentNode&&e.parentNode.removeChild(e)})}},[w]),(0,h.useEffect)(()=>{if(b&&w&&!w.isDestroyed){if(S.current){S.current=!1;return}w.view.dispatch(w.state.tr.setMeta("floatingMenu",{type:"updateOptions",options:y.current}))}},[b,w,i,n,l,r,o]),(0,p.createPortal)((0,c.jsx)("div",{...a,children:s}),m.current)})},429252:(e,t,i)=>{i.r(t),i.d(t,{__iconNode:()=>o,default:()=>l});var n=i(453292);let o=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],l=(0,n.A)("monitor",o)},458247:(e,t,i)=>{i.d(t,{Ke:()=>O,R6:()=>M,UC:()=>I,bL:()=>H,l9:()=>R,z3:()=>v});var n=i(482611),o=i(139622),l=i(68980),r=i(494936),s=i(979292),a=i(926493),d=i(993692),h=i(546576),p=i(981795),c=i(158227),u=i(831271),f=i(620728),m=i(699892),g="Collapsible",[w,v]=(0,a.A)(g),[y,b]=w(g),C=r.forwardRef((e,t)=>{let{__scopeCollapsible:i,open:s,defaultOpen:a,disabled:h,onOpenChange:p}=e,u=(0,l._)(e,["__scopeCollapsible","open","defaultOpen","disabled","onOpenChange"]),[w,v]=(0,d.i)({prop:s,defaultProp:null!=a&&a,onChange:p,caller:g});return(0,m.jsx)(y,{scope:i,disabled:h,contentId:(0,f.B)(),open:w,onOpenToggle:r.useCallback(()=>v(e=>!e),[v]),children:(0,m.jsx)(c.sG.div,(0,o._)((0,n._)({"data-state":U(w),"data-disabled":h?"":void 0},u),{ref:t}))})});C.displayName=g;var S="CollapsibleTrigger",M=r.forwardRef((e,t)=>{let{__scopeCollapsible:i}=e,r=(0,l._)(e,["__scopeCollapsible"]),a=b(S,i);return(0,m.jsx)(c.sG.button,(0,o._)((0,n._)({type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":U(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled},r),{ref:t,onClick:(0,s.mK)(e.onClick,a.onOpenToggle)}))});M.displayName=S;var A="CollapsibleContent",O=r.forwardRef((e,t)=>{let{forceMount:i}=e,r=(0,l._)(e,["forceMount"]),s=b(A,e.__scopeCollapsible);return(0,m.jsx)(u.C,{present:i||s.open,children:e=>{let{present:i}=e;return(0,m.jsx)(z,(0,o._)((0,n._)({},r),{ref:t,present:i}))}})});O.displayName=A;var z=r.forwardRef((e,t)=>{let{__scopeCollapsible:i,present:s,children:a}=e,d=(0,l._)(e,["__scopeCollapsible","present","children"]),u=b(A,i),[f,g]=r.useState(s),w=r.useRef(null),v=(0,p.s)(t,w),y=r.useRef(0),C=y.current,S=r.useRef(0),M=S.current,O=u.open||f,z=r.useRef(O),H=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>z.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.N)(()=>{let e=w.current;if(e){H.current=H.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();y.current=t.height,S.current=t.width,z.current||(e.style.transitionDuration=H.current.transitionDuration,e.style.animationName=H.current.animationName),g(s)}},[u.open,s]),(0,m.jsx)(c.sG.div,(0,o._)((0,n._)({"data-state":U(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!O},d),{ref:v,style:(0,n._)({"--radix-collapsible-content-height":C?"".concat(C,"px"):void 0,"--radix-collapsible-content-width":M?"".concat(M,"px"):void 0},e.style),children:O&&a}))});function U(e){return e?"open":"closed"}var H=C,R=M,I=O},461754:(e,t,i)=>{i.r(t),i.d(t,{__iconNode:()=>o,default:()=>l});var n=i(453292);
1let o=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],l=(0,n.A)("tag",o)},707557:(e,t,i)=>{i.r(t),i.d(t,{__iconNode:()=>o,default:()=>l});var n=i(453292);let o=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],l=(0,n.A)("strikethrough",o)},862005:(e,t,i)=>{i.r(t),i.d(t,{__iconNode:()=>o,default:()=>l});var n=i(453292);let o=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],l=(0,n.A)("bold",o)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.