1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5818],{86027:(e,t,n)=>{n.d(t,{CU:()=>g,FF:()=>F,KV:()=>u,Nx:()=>R,T7:()=>B,Zc:()=>q,bP:()=>J,gg:()=>Z,gu:()=>_,hO:()=>L});var r=n(96621);n(44933),n(27993);var o=n(64092),a=n(21865),i=n(4729),s=n(49791);function l(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:o}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,a=n.storedMarks,n}}}class d{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:o}=n,a=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(a);return o.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(o),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:o}=this,{view:a}=r,i=[],s=!!e,l=e||o.tr,d=()=>(s||!t||l.getMeta("preventDispatch")||this.hasCustomState||a.dispatch(l),i.every(e=>!0===e)),c={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(l,t),o=n(...e)(r);return i.push(o),c}])),run:d};return c}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,o=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...o,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:o}=this,{view:a}=r,i={tr:e,editor:r,view:a,state:l({state:o,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(i)]))}};return i}}function c(e,t,n){return void 0===e.config[t]&&e.parent?c(e.parent,t,n):"function"==typeof e.config[t]?e.config[t].bind({...n,parent:e.parent?c(e.parent,t,n):null}):e.config[t]}function p(e,t){if("string"==typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function u(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(!n[e]){n[e]=t;return}if("class"===e){let r=t?String(t).split(" "):[],o=n[e]?n[e].split(" "):[],a=r.filter(e=>!o.includes(e));n[e]=[...o,...a].join(" ")}else if("style"===e){let r=t?t.split(";").map(e=>e.trim()).filter(Boolean):[],o=n[e]?n[e].split(";").map(e=>e.trim()).filter(Boolean):[],a=new Map;o.forEach(e=>{let[t,n]=e.split(":").map(e=>e.trim());a.set(t,n)}),r.forEach(e=>{let[t,n]=e.split(":").map(e=>e.trim());a.set(t,n)}),n[e]=Array.from(a.entries()).map(([e,t])=>`${e}: ${t}`).join("; ")}else n[e]=t}),n},{})}function f(e,t,...n){return"function"==typeof e?t?e.bind(t)(...n):e(...n):e}function m(e){return"Object"===Object.prototype.toString.call(e).slice(8,-1)&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function h(e,t){let n={...e};return m(e)&&m(t)&&Object.keys(t).forEach(r=>{m(t[r])&&m(e[r])?n[r]=h(e[r],t[r]):n[r]=t[r]}),n}class g{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=f(c(this,"addOptions",{name:this.name}))),this.storage=f(c(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new g(e)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>h(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){let t=new g(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=f(c(t,"addOptions",{name:t.name})),t.storage=f(c(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let o=r.marks();if(!o.find(e=>
1(null==e?void 0:e.type.name)===t.name))return!1;let a=o.find(e=>(null==e?void 0:e.type.name)===t.name);return a&&n.removeStoredMark(a),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}}class y{constructor(e){this.find=e.find,this.handler=e.handler}}class k{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=f(c(this,"addOptions",{name:this.name}))),this.storage=f(c(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new k(e)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>h(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){let t=new k({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=f(c(t,"addOptions",{name:t.name})),t.storage=f(c(t,"addStorage",{name:t.name,options:t.options})),t}}function b(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>{var o;return n.strict?t[r]===e[r]:(o=t[r],"[object RegExp]"===Object.prototype.toString.call(o))?t[r].test(e[r]):t[r]===e[r]})}function v(e,t,n={}){return e.find(e=>e.type===t&&b(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function w(e,t,n={}){return!!v(e,t,n)}function O(e,t,n){var r;if(!e||!t)return;let o=e.parent.childAfter(e.parentOffset);if(o.node&&o.node.marks.some(e=>e.type===t)||(o=e.parent.childBefore(e.parentOffset)),!o.node||!o.node.marks.some(e=>e.type===t)||(n=n||(null==(r=o.node.marks[0])?void 0:r.attrs),!v([...o.node.marks],t,n)))return;let a=o.index,i=e.start()+o.offset,s=a+1,l=i+o.node.nodeSize;for(;a>0&&w([...e.parent.child(a-1).marks],t,n);)a-=1,i-=e.parent.child(a).nodeSize;for(;s<e.parent.childCount&&w([...e.parent.child(s).marks],t,n);)l+=e.parent.child(s).nodeSize,s+=1;return{from:i,to:l}}function M(e,t){if("string"==typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}function x(e){return e instanceof r.U3}function S(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function C(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}k.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new r.k_({key:new r.hs("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:a}=o,i=Math.min(...a.map(e=>e.$from.pos)),s=Math.max(...a.map(e=>e.$to.pos)),l=Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]));return function(e,t,n){let{from:r,to:o}=t,{blockSeparator:a="\n\n",textSerializers:i={}}=n||{},s="";return e.nodesBetween(r,o,(e,n,l,d)=>{var c;e.isBlock&&n>r&&(s+=a);let p=null==i?void 0:i[e.type.name];if(p)return l&&(s+=p({node:e,pos:n,parent:l,index:d,range:t})),!1;e.isText&&(s+=null==(c=null==e?void 0:e.text)?void 0:c.slice(Math.max(r,n)-n,o-n))}),s}(r,{from:i,to:s},{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}});let E=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){let r=t[n];3===r.nodeType&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):1===r.nodeType&&E(r)}return e};function $(e){let t=`<body>${e}</body>`;return E(new window.DOMParser().parseFromString(t,"text/html").body)}function I(e,t,n){if(e instanceof o.bP||e instanceof o.FK)return e;n={slice:!0,parseOptions:{},...n};
1let r="object"==typeof e&&null!==e,a="string"==typeof e;if(r)try{if(Array.isArray(e)&&e.length>0)return o.FK.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error("[tiptap error]: Invalid JSON content",{cause:r});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),I("",t,n)}if(a){if(n.errorOnInvalidContent){let r=!1,a="",i=new o.Sj({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:e=>(r=!0,a="string"==typeof e?e:e.outerHTML,null)}]}})});if(n.slice?o.S4.fromSchema(i).parseSlice($(e),n.parseOptions):o.S4.fromSchema(i).parse($(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error("[tiptap error]: Invalid HTML content",{cause:Error(`Invalid element found: ${a}`)})}let r=o.S4.fromSchema(t);return n.slice?r.parseSlice($(e),n.parseOptions).content:r.parse($(e),n.parseOptions)}return I("",t,n)}function N(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function A(e,t,n={}){let{from:r,to:o,empty:a}=e.selection,i=t?p(t,e.schema):null,s=[];e.doc.nodesBetween(r,o,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),a=Math.min(o,t+e.nodeSize);s.push({node:e,from:n,to:a})});let l=o-r,d=s.filter(e=>!i||i.name===e.node.type.name).filter(e=>b(e.node.attrs,n,{strict:!1}));return a?!!d.length:d.reduce((e,t)=>e+t.to-t.from,0)>=l}function j(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function P(e,t){let n="string"==typeof t?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}function T(e,t){let n=M(t,e.schema),{from:r,to:o,empty:a}=e.selection,i=[];a?(e.storedMarks&&i.push(...e.storedMarks),i.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,e=>{i.push(...e.marks)});let s=i.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function B(e,t){let n=new a.dL(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function R(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function z(e){return t=>(function(e,t){for(let n=e.depth;n>0;n-=1){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}})(t.$from,e)}function _(e,t){let n=j("string"==typeof t?t:t.name,e.schema);if("node"===n){let n=p(t,e.schema),{from:r,to:o}=e.selection,a=[];e.doc.nodesBetween(r,o,e=>{a.push(e)});let i=a.reverse().find(e=>e.type.name===n.name);return i?{...i.attrs}:{}}return"mark"===n?T(e,t):{}}function F(e){let{mapping:t,steps:n}=e,r=[];t.maps.forEach((e,o)=>{let a=[];if(e.ranges.length)e.forEach((e,t)=>{a.push({from:e,to:t})});else{let{from:e,to:t}=n[o];if(void 0===e||void 0===t)return;a.push({from:e,to:t})}a.forEach(({from:e,to:n})=>{let a=t.slice(o).map(e,-1),i=t.slice(o).map(n),s=t.invert().map(a,-1),l=t.invert().map(i);r.push({oldRange:{from:s,to:l},newRange:{from:a,to:i}})})});let o=function(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)})}(r);return 1===o.length?o:o.filter((e,t)=>!o.filter((e,n)=>n!==t).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function L(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let o=O(n.resolve(e),t.type);o&&r.push({mark:t,...o})}):n.nodesBetween(e,t,(e,t)=>{e&&(null==e?void 0:e.nodeSize)!==void 0&&r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}function K(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return!!r&&r.attribute.keepOnSplit}))}function D(e,t){let{nodeExtensions:n}=function(e){let t=e.filter(e=>"extension"===e.type);return{baseExtensions:t,nodeExtensions:e.filter(e=>"node"===e.type),markExtensions:e.filter(e=>"mark"===e.type)}}(t),r=n.find(t=>t.name===e);if(!r)return!1;let o={name:r.name,options:r.options,storage:r.storage},a=f(c(r,"group",o));return"string"==typeof a&&a.split(" ").includes("list")}function U(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>
1null==t?void 0:t.includes(e.type.name));e.tr.ensureMarks(r)}}let G=(e,t)=>{let n=z(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;let o=e.doc.nodeAt(r);return!(n.node.type===(null==o?void 0:o.type)&&(0,a.n9)(e.doc,n.pos))||(e.join(n.pos),!0)},V=(e,t)=>{let n=z(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;let o=e.doc.nodeAt(r);return!(n.node.type===(null==o?void 0:o.type)&&(0,a.n9)(e.doc,r))||(e.join(r),!0)};var H=Object.freeze({__proto__:null,blur:()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),null==(n=null==window?void 0:window.getSelection())||n.removeAllRanges())}),!0),clearContent:(e=!1)=>({commands:t})=>t.setContent("",e),clearNodes:()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:o}=r;return!n||(o.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:o}=t,i=r.resolve(o.map(n)),s=r.resolve(o.map(n+e.nodeSize)),l=i.blockRange(s);if(!l)return;let d=(0,a.jP)(l);if(e.type.isTextblock){let{defaultType:e}=i.parent.contentMatchAt(i.index());t.setNodeMarkup(l.start,e)}(d||0===d)&&t.lift(l,d)})}),!0)},command:e=>t=>e(t),createParagraphNear:()=>({state:e,dispatch:t})=>(0,i.Z1)(e,t),cut:(e,t)=>({editor:n,tr:o})=>{let{state:a}=n,i=a.doc.slice(e.from,e.to);o.deleteRange(e.from,e.to);let s=o.mapping.map(t);return o.insert(s,i.content),o.setSelection(new r.U3(o.doc.resolve(Math.max(s-1,0)))),!0},deleteCurrentNode:()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let o=e.selection.$anchor;for(let n=o.depth;n>0;n-=1)if(o.node(n).type===r.type){if(t){let t=o.before(n),r=o.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1},deleteNode:e=>({tr:t,state:n,dispatch:r})=>{let o=p(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;e-=1)if(a.node(e).type===o){if(r){let n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},deleteRange:e=>({tr:t,dispatch:n})=>{let{from:r,to:o}=e;return n&&t.delete(r,o),!0},deleteSelection:()=>({state:e,dispatch:t})=>(0,i.ic)(e,t),enter:()=>({commands:e})=>e.keyboardShortcut("Enter"),exitCode:()=>({state:e,dispatch:t})=>(0,i.I$)(e,t),extendMarkRange:(e,t={})=>({tr:n,state:o,dispatch:a})=>{let i=M(e,o.schema),{doc:s,selection:l}=n,{$from:d,from:c,to:p}=l;if(a){let e=O(d,i,t);if(e&&e.from<=c&&e.to>=p){let t=r.U3.create(s,e.from,e.to);n.setSelection(t)}}return!0},first:e=>t=>{let n="function"==typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1},focus:(e=null,t={})=>({editor:n,view:o,tr:a,dispatch:i})=>{t={scrollIntoView:!0,...t};let s=()=>{(C()||"Android"===navigator.platform||/android/i.test(navigator.userAgent))&&o.dom.focus(),requestAnimationFrame(()=>{!n.isDestroyed&&(o.focus(),(null==t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())})};if(o.hasFocus()&&null===e||!1===e)return!0;if(i&&null===e&&!x(n.state.selection))return s(),!0;let l=function(e,t=null){if(!t)return null;let n=r.LN.atStart(e),o=r.LN.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return o;let a=n.from,i=o.to;return"all"===t?r.U3.create(e,S(0,a,i),S(e.content.size,a,i)):r.U3.create(e,S(t,a,i),S(t,a,i))}(a.doc,e)||n.state.selection,d=n.state.selection.eq(l);return i&&(d||a.setSelection(l),d&&a.storedMarks&&a.setStoredMarks(a.storedMarks),s()),!0},forEach:(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),insertContent:(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),insertContentAt:(e,t,n)=>({tr:i,dispatch:s,editor:l})=>{var d;if(s){let s,c;n={parseOptions:l.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let p=e=>{l.emit("contentError",{editor:l,error:e,disableCollaboration:()=>{l.storage.collaboration&&(l.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!l.options.enableContentCheck&&l.options.emitContentError)try{I(t,l.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(e){p(e)}try{s=I(t,l.schema,{parseOptions:u,errorOnInvalidContent:null!=(d=n.errorOnInvalidContent)?d:l.options.enableContentCheck})}catch(e){return p(e),!1}let{from:f,to:m}="number"==typeof e?{from:e,to:e}:{from:e.from,to:e.to},h=!0,g=!0;
1if((!("type"in s)?s:[s]).forEach(e=>{e.check(),h=!!h&&e.isText&&0===e.marks.length,g=!!g&&e.isBlock}),f===m&&g){let{parent:e}=i.doc.resolve(f);!e.isTextblock||e.type.spec.code||e.childCount||(f-=1,m+=1)}if(h){if(Array.isArray(t))c=t.map(e=>e.text||"").join("");else if(t instanceof o.FK){let e="";t.forEach(t=>{t.text&&(e+=t.text)}),c=e}else c="object"==typeof t&&t&&t.text?t.text:t;i.insertText(c,f,m)}else c=s,i.replaceWith(f,m,c);n.updateSelection&&function(e,t,n){let o=e.steps.length-1;if(o<t)return;let i=e.steps[o];if(!(i instanceof a.Ln||i instanceof a.Wg))return;let s=e.mapping.maps[o],l=0;s.forEach((e,t,n,r)=>{0===l&&(l=r)}),e.setSelection(r.LN.near(e.doc.resolve(l),-1))}(i,i.steps.length-1,0),n.applyInputRules&&i.setMeta("applyInputRules",{from:f,text:c}),n.applyPasteRules&&i.setMeta("applyPasteRules",{from:f,text:c})}return!0},joinBackward:()=>({state:e,dispatch:t})=>(0,i.Qv)(e,t),joinDown:()=>({state:e,dispatch:t})=>(0,i.bh)(e,t),joinForward:()=>({state:e,dispatch:t})=>(0,i.eT)(e,t),joinItemBackward:()=>({state:e,dispatch:t,tr:n})=>{try{let r=(0,a.N0)(e.doc,e.selection.$from.pos,-1);if(null==r)return!1;return n.join(r,2),t&&t(n),!0}catch{return!1}},joinItemForward:()=>({state:e,dispatch:t,tr:n})=>{try{let r=(0,a.N0)(e.doc,e.selection.$from.pos,1);if(null==r)return!1;return n.join(r,2),t&&t(n),!0}catch{return!1}},joinTextblockBackward:()=>({state:e,dispatch:t})=>(0,i.eB)(e,t),joinTextblockForward:()=>({state:e,dispatch:t})=>(0,i._G)(e,t),joinUp:()=>({state:e,dispatch:t})=>(0,i.G2)(e,t),keyboardShortcut:e=>({editor:t,view:n,tr:r,dispatch:o})=>{let a=(function(e){let t,n,r,o,a=e.split(/-(?!$)/),i=a[a.length-1];"Space"===i&&(i=" ");for(let e=0;e<a.length-1;e+=1){let i=a[e];if(/^(cmd|meta|m)$/i.test(i))o=!0;else if(/^a(lt)?$/i.test(i))t=!0;else if(/^(c|ctrl|control)$/i.test(i))n=!0;else if(/^s(hift)?$/i.test(i))r=!0;else if(/^mod$/i.test(i))C()||N()?o=!0:n=!0;else throw Error(`Unrecognized modifier name: ${i}`)}return t&&(i=`Alt-${i}`),n&&(i=`Ctrl-${i}`),o&&(i=`Meta-${i}`),r&&(i=`Shift-${i}`),i})(e).split(/-(?!$)/),i=a.find(e=>!["Alt","Ctrl","Meta","Shift"].includes(e)),s=new KeyboardEvent("keydown",{key:"Space"===i?" ":i,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",e=>e(n,s))});return null==l||l.steps.forEach(e=>{let t=e.map(r.mapping);t&&o&&r.maybeStep(t)}),!0},lift:(e,t={})=>({state:n,dispatch:r})=>{let o=p(e,n.schema);return!!A(n,o,t)&&(0,i.yY)(n,r)},liftEmptyBlock:()=>({state:e,dispatch:t})=>(0,i.iz)(e,t),liftListItem:e=>({state:t,dispatch:n})=>{let r=p(e,t.schema);return(0,s.T2)(r)(t,n)},newlineInCode:()=>({state:e,dispatch:t})=>(0,i.pC)(e,t),resetAttributes:(e,t)=>({tr:n,state:r,dispatch:o})=>{let a=null,i=null,s=j("string"==typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(a=p(e,r.schema)),"mark"===s&&(i=M(e,r.schema)),o&&n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&n.setNodeMarkup(r,void 0,P(e.attrs,t)),i&&e.marks.length&&e.marks.forEach(o=>{i===o.type&&n.addMark(r,r+e.nodeSize,i.create(P(o.attrs,t)))})})}),!0)},scrollIntoView:()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),selectAll:()=>({tr:e,dispatch:t})=>{if(t){let t=new r.i5(e.doc);e.setSelection(t)}return!0},selectNodeBackward:()=>({state:e,dispatch:t})=>(0,i._e)(e,t),selectNodeForward:()=>({state:e,dispatch:t})=>(0,i.Sd)(e,t),selectParentNode:()=>({state:e,dispatch:t})=>(0,i.hy)(e,t),selectTextblockEnd:()=>({state:e,dispatch:t})=>(0,i.ec)(e,t),selectTextblockStart:()=>({state:e,dispatch:t})=>(0,i.$f)(e,t),setContent:(e,t=!1,n={},r={})=>({editor:o,tr:a,dispatch:i,commands:s})=>{var l,d;let{doc:c}=a;if("full"!==n.preserveWhitespace){let s=function(e,t,n={},r={}){return I(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}(e,o.schema,n,{errorOnInvalidContent:null!=(l=r.errorOnInvalidContent)?l:o.options.enableContentCheck});return i&&a.replaceWith(0,c.content.size,s).setMeta("preventUpdate",!t),!0}return i&&a.setMeta("preventUpdate",!t),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:n,errorOnInvalidContent:null!=(d=r.errorOnInvalidContent)?d:o.options.enableContentCheck})},setMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{let{selection:a}=n,{empty:i,ranges:s}=a,l=M(e,r.schema);if(o)if(i){let e=T(r,l);n.addStoredMark(l.create({...e,...t}))}
1else s.forEach(e=>{let o=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(o,a,(e,r)=>{let i=Math.max(r,o),s=Math.min(r+e.nodeSize,a);e.marks.find(e=>e.type===l)?e.marks.forEach(e=>{l===e.type&&n.addMark(i,s,l.create({...e.attrs,...t}))}):n.addMark(i,s,l.create(t))})});return function(e,t,n){var r;let{selection:o}=t,a=null;if(x(o)&&(a=o.$cursor),a){let t=null!=(r=e.storedMarks)?r:a.marks();return!!n.isInSet(t)||!t.some(e=>e.type.excludes(n))}let{ranges:i}=o;return i.some(({$from:t,$to:r})=>{let o=0===t.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(o)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));o=t&&a}return!o}),o})}(r,n,l)},setMeta:(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),setNode:(e,t={})=>({state:n,dispatch:r,chain:o})=>{let a,s=p(e,n.schema);return(n.selection.$anchor.sameParent(n.selection.$head)&&(a=n.selection.$anchor.parent.attrs),s.isTextblock)?o().command(({commands:e})=>!!(0,i.y_)(s,{...a,...t})(n)||e.clearNodes()).command(({state:e})=>(0,i.y_)(s,{...a,...t})(e,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,o=S(e,0,n.content.size),a=r.nh.create(n,o);t.setSelection(a)}return!0},setTextSelection:e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:o,to:a}="number"==typeof e?{from:e,to:e}:e,i=r.U3.atStart(n).from,s=r.U3.atEnd(n).to,l=S(o,i,s),d=S(a,i,s),c=r.U3.create(n,l,d);t.setSelection(c)}return!0},sinkListItem:e=>({state:t,dispatch:n})=>{let r=p(e,t.schema);return(0,s.$B)(r)(t,n)},splitBlock:({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:o,editor:i})=>{let{selection:s,doc:l}=t,{$from:d,$to:c}=s,p=K(i.extensionManager.attributes,d.node().type.name,d.node().attrs);if(s instanceof r.nh&&s.node.isBlock)return!!d.parentOffset&&!!(0,a.zy)(l,d.pos)&&(o&&(e&&U(n,i.extensionManager.splittableMarks),t.split(d.pos).scrollIntoView()),!0);if(!d.parent.isBlock)return!1;let u=c.parentOffset===c.parent.content.size,f=0===d.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(d.node(-1).contentMatchAt(d.indexAfter(-1))),m=u&&f?[{type:f,attrs:p}]:void 0,h=(0,a.zy)(t.doc,t.mapping.map(d.pos),1,m);if(!m&&!h&&(0,a.zy)(t.doc,t.mapping.map(d.pos),1,f?[{type:f}]:void 0)&&(h=!0,m=f?[{type:f,attrs:p}]:void 0),o){if(h&&(s instanceof r.U3&&t.deleteSelection(),t.split(t.mapping.map(d.pos),1,m),f&&!u&&!d.parentOffset&&d.parent.type!==f)){let e=t.mapping.map(d.before()),n=t.doc.resolve(e);d.node(-1).canReplaceWith(n.index(),n.index()+1,f)&&t.setNodeMarkup(t.mapping.map(d.before()),f)}e&&U(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return h},splitListItem:(e,t={})=>({tr:n,state:i,dispatch:s,editor:l})=>{var d;let c=p(e,i.schema),{$from:u,$to:f}=i.selection,m=i.selection.node;if(m&&m.isBlock||u.depth<2||!u.sameParent(f))return!1;let h=u.node(-1);if(h.type!==c)return!1;let g=l.extensionManager.attributes;if(0===u.parent.content.size&&u.node(-1).childCount===u.indexAfter(-1)){if(2===u.depth||u.node(-3).type!==c||u.index(-2)!==u.node(-2).childCount-1)return!1;if(s){let e=o.FK.empty,a=u.index(-1)?1:u.index(-2)?2:3;for(let t=u.depth-a;t>=u.depth-3;t-=1)e=o.FK.from(u.node(t).copy(e));let i=u.indexAfter(-1)<u.node(-2).childCount?1:u.indexAfter(-2)<u.node(-3).childCount?2:3,s={...K(g,u.node().type.name,u.node().attrs),...t},l=(null==(d=c.contentMatch.defaultType)?void 0:d.createAndFill(s))||void 0;e=e.append(o.FK.from(c.createAndFill(null,l)||void 0));let p=u.before(u.depth-(a-1));n.replace(p,u.after(-i),new o.Ji(e,4-a,0));let f=-1;n.doc.nodesBetween(p,n.doc.content.size,(e,t)=>{if(f>-1)return!1;e.isTextblock&&0===e.content.size&&(f=t+1)}),f>-1&&n.setSelection(r.U3.near(n.doc.resolve(f))),n.scrollIntoView()}return!0}let y=f.pos===u.end()?h.contentMatchAt(0).defaultType:null,k={...K(g,h.type.name,h.attrs),...t},b={...K(g,u.node().type.name,u.node().attrs),...t};n.delete(u.pos,f.pos);let v=y?[{type:c,attrs:k},{type:y,attrs:b}]:[{type:c,attrs:k}];if(!(0,a.zy)(n.doc,u.pos,2))return!1;if(s){let{selection:e,storedMarks:t}=i,{splittableMarks:r}=l.extensionManager,o=t||e.$to.parentOffset&&e.$from.marks();if(n.split(u.pos,2,v).scrollIntoView(),!o||!s)return!0;let a=o.filter(e=>
1r.includes(e.type.name));n.ensureMarks(a)}return!0},toggleList:(e,t,n,r={})=>({editor:o,tr:a,state:i,dispatch:s,chain:l,commands:d,can:c})=>{let{extensions:u,splittableMarks:f}=o.extensionManager,m=p(e,i.schema),h=p(t,i.schema),{selection:g,storedMarks:y}=i,{$from:k,$to:b}=g,v=k.blockRange(b),w=y||g.$to.parentOffset&&g.$from.marks();if(!v)return!1;let O=z(e=>D(e.type.name,u))(g);if(v.depth>=1&&O&&v.depth-O.depth<=1){if(O.node.type===m)return d.liftListItem(h);if(D(O.node.type.name,u)&&m.validContent(O.node.content)&&s)return l().command(()=>(a.setNodeMarkup(O.pos,m),!0)).command(()=>G(a,m)).command(()=>V(a,m)).run()}return n&&w&&s?l().command(()=>{let e=c().wrapInList(m,r),t=w.filter(e=>f.includes(e.type.name));return a.ensureMarks(t),!!e||d.clearNodes()}).wrapInList(m,r).command(()=>G(a,m)).command(()=>V(a,m)).run():l().command(()=>!!c().wrapInList(m,r)||d.clearNodes()).wrapInList(m,r).command(()=>G(a,m)).command(()=>V(a,m)).run()},toggleMark:(e,t={},n={})=>({state:r,commands:o})=>{let{extendEmptyMarkRange:a=!1}=n,i=M(e,r.schema);return!function(e,t,n={}){let{empty:r,ranges:o}=e.selection,a=t?M(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!a||a.name===e.type.name).find(e=>b(e.attrs,n,{strict:!1}));let i=0,s=[];if(o.forEach(({$from:t,$to:n})=>{let r=t.pos,o=n.pos;e.doc.nodesBetween(r,o,(e,t)=>{if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),a=Math.min(o,t+e.nodeSize);i+=a-n,s.push(...e.marks.map(e=>({mark:e,from:n,to:a})))})}),0===i)return!1;let l=s.filter(e=>!a||a.name===e.mark.type.name).filter(e=>b(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),d=s.filter(e=>!a||e.mark.type!==a&&e.mark.type.excludes(a)).reduce((e,t)=>e+t.to-t.from,0);return(l>0?l+d:l)>=i}(r,i,t)?o.setMark(i,t):o.unsetMark(i,{extendEmptyMarkRange:a})},toggleNode:(e,t,n={})=>({state:r,commands:o})=>{let a,i=p(e,r.schema),s=p(t,r.schema),l=A(r,i,n);return(r.selection.$anchor.sameParent(r.selection.$head)&&(a=r.selection.$anchor.parent.attrs),l)?o.setNode(s,a):o.setNode(i,{...a,...n})},toggleWrap:(e,t={})=>({state:n,commands:r})=>{let o=p(e,n.schema);return A(n,o,t)?r.lift(o):r.wrapIn(o,t)},undoInputRule:()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let o,a=n[r];if(a.spec.isInputRules&&(o=a.getState(e))){if(t){let t=e.tr,n=o.transform;for(let e=n.steps.length-1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(o.text){let n=t.doc.resolve(o.from).marks();t.replaceWith(o.from,o.to,e.schema.text(o.text,n))}else t.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{let{selection:n}=e,{empty:r,ranges:o}=n;return!!r||(t&&o.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0)},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{var a;let{extendEmptyMarkRange:i=!1}=t,{selection:s}=n,l=M(e,r.schema),{$from:d,empty:c,ranges:p}=s;if(!o)return!0;if(c&&i){let{from:e,to:t}=s,r=null==(a=d.marks().find(e=>e.type===l))?void 0:a.attrs,o=O(d,l,r);o&&(e=o.from,t=o.to),n.removeMark(e,t,l)}else p.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:o})=>{let a=null,i=null,s=j("string"==typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(a=p(e,r.schema)),"mark"===s&&(i=M(e,r.schema)),o&&n.selection.ranges.forEach(e=>{let o,s,l,d,c=e.$from.pos,p=e.$to.pos;n.selection.empty?r.doc.nodesBetween(c,p,(e,t)=>{a&&a===e.type&&(l=Math.max(t,c),d=Math.min(t+e.nodeSize,p),o=t,s=e)}):r.doc.nodesBetween(c,p,(e,r)=>{r<c&&a&&a===e.type&&(l=Math.max(r,c),d=Math.min(r+e.nodeSize,p),o=r,s=e),r>=c&&r<=p&&(a&&a===e.type&&n.setNodeMarkup(r,void 0,{...e.attrs,...t}),i&&e.marks.length&&e.marks.forEach(o=>{if(i===o.type){let a=Math.max(r,c),s=Math.min(r+e.nodeSize,p);n.addMark(a,s,i.create({...o.attrs,...t}))}}))}),s&&(void 0!==o&&n.setNodeMarkup(o,void 0,{...s.attrs,...t}),i&&s.marks.length&&s.marks.forEach(e=>{i===e.type&&n.addMark(l,d,i.create({...e.attrs,...t}))}))}),!0)},wrapIn:(e,t={})=>({state:n,dispatch:r})=>{let o=p(e,n.schema);return(0,i.Im)(o,t)(n,r)},wrapInList:(e,t={})=>({state:n,dispatch:r})=>{let o=p(e,n.schema);return(0,s.Sd)(o,t)(n,r)}});k.create({name:"commands",addCommands:()=>({...H})}),k.create({name:"drop",addProseMirrorPlugins(){return[new r.k_({key:new r.hs("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),k.create({name:"editable",addProseMirrorPlugins(){return[new r.k_({key:new r.hs("editable"),props:{editable:()=>this.editor.options.editable}})]}});let W=new r.hs("focusEvents");k.create({name:"focusEvents",addProseMirrorPlugins(){let{editor:e}=this;
1return[new r.k_({key:W,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),k.create({name:"keymap",addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:o}=t,{empty:a,$anchor:i}=n,{pos:s,parent:l}=i,d=i.parent.isTextblock&&s>0?t.doc.resolve(s-1):i,c=d.parent.type.spec.isolating,p=i.pos-i.parentOffset,u=c&&1===d.parent.childCount?p===i.pos:r.LN.atStart(o).from===s;return!!a&&!!l.type.isTextblock&&!l.textContent.length&&!!u&&(!u||"paragraph"!==i.parent.type.name)&&e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},o={...n},a={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return C()||N()?a:o},addProseMirrorPlugins(){return[new r.k_({key:new r.hs("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta("composition")))return;let o=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),a=e.some(e=>e.getMeta("preventClearDocument"));if(!o||a)return;let{empty:i,from:s,to:c}=t.selection,p=r.LN.atStart(t.doc).from,u=r.LN.atEnd(t.doc).to;if(i||s!==p||c!==u||!function e(t,{checkChildren:n=!0,ignoreWhitespace:r=!1}={}){var o;if(r){if("hardBreak"===t.type.name)return!0;if(t.isText)return/^\s*$/m.test(null!=(o=t.text)?o:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(0===t.content.childCount)return!0;if(n){let o=!0;return t.content.forEach(t=>{!1===o||e(t,{ignoreWhitespace:r,checkChildren:n})||(o=!1)}),o}return!1}(n.doc))return;let f=n.tr,m=l({state:n,transaction:f}),{commands:h}=new d({editor:this.editor,state:m});if(h.clearNodes(),f.steps.length)return f}})]}}),k.create({name:"paste",addProseMirrorPlugins(){return[new r.k_({key:new r.hs("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),k.create({name:"tabindex",addProseMirrorPlugins(){return[new r.k_({key:new r.hs("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class J{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=f(c(this,"addOptions",{name:this.name}))),this.storage=f(c(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new J(e)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>h(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){let t=new J(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=f(c(t,"addOptions",{name:t.name})),t.storage=f(c(t,"addStorage",{name:t.name,options:t.options})),t}}function q(e){return new y({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:o})=>{let a=f(e.getAttributes,void 0,r,o);if(!1===a||null===a)return null;let{tr:i}=t,s=r[r.length-1],l=r[0],d=n.to;if(s){let r=l.search(/\S/),o=n.from+l.indexOf(s),c=o+s.length;if(L(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>o).length)return null;c<n.to&&i.delete(c,n.to),o>
1n.from&&i.delete(n.from+r,o),d=n.from+r+s.length,i.addMark(n.from+r,d,e.type.create(a||{})),i.removeStoredMark(e.type)}}})}function Z(e){return new y({find:e.find,handler({match:t,chain:n,range:r,pasteEvent:o}){let a=f(e.getAttributes,void 0,t,o),i=f(e.getContent,void 0,a);if(!1===a||null===a)return null;let s={type:e.type.name,attrs:a};i&&(s.content=i),t.input&&n().deleteRange(r).insertContentAt(r.from,s)}})}}}]);
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.