1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`release-202609241050`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`fd8af22e-4abe-4757-98c1-bdfb626eac73`,e._sentryDebugIdIdentifier=`sentry-dbid-fd8af22e-4abe-4757-98c1-bdfb626eac73`)}catch{}})();import{t as e}from"./rolldown-runtime-BI-OUt3b.js";import{d as t,n,w as r,x as i}from"./vendor-prosemirror-core-kywG8WWu.js";var a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});for(var t={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},n={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},r=typeof navigator<`u`&&/Mac/.test(navigator.platform),i=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)t[48+a]=t[96+a]=String(a);for(var a=1;a<=24;a++)t[a+111]=`F`+a;for(var a=65;a<=90;a++)t[a]=String.fromCharCode(a+32),n[a]=String.fromCharCode(a);for(var o in t)n.hasOwnProperty(o)||(n[o]=t[o]);function s(e){var a=!(r&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||i&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?n:t)[e.keyCode]||e.key||`Unidentified`;return a==`Esc`&&(a=`Escape`),a==`Del`&&(a=`Delete`),a==`Left`&&(a=`ArrowLeft`),a==`Up`&&(a=`ArrowUp`),a==`Right`&&(a=`ArrowRight`),a==`Down`&&(a=`ArrowDown`),a}e.base=t,e.keyName=s,e.shift=n})),o=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=a(),r=n(),i=typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function o(e){var t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);for(var r,a,o,s,c=0;c<t.length-1;c++){var l=t[c];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))a=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))i?s=!0:a=!0;else throw Error(`Unrecognized modifier name: `+l)}return r&&(n=`Alt-`+n),a&&(n=`Ctrl-`+n),s&&(n=`Meta-`+n),o&&(n=`Shift-`+n),n}function s(e){var t=Object.create(null);for(var n in e)t[o(n)]=e[n];return t}function c(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function l(e){return new r.Plugin({props:{handleKeyDown:u(e)}})}function u(e){var n=s(e);return function(e,r){var i=t.keyName(r),a,o=n[c(i,r)];if(o&&o(e.state,e.dispatch,e))return!0;if(i.length==1&&i!=` `){if(r.shiftKey){var s=n[c(i,r,!1)];if(s&&s(e.state,e.dispatch,e))return!0}if((r.shiftKey||r.altKey||r.metaKey||i.charCodeAt(0)>127)&&(a=t.base[r.keyCode])&&a!=i){var l=n[c(a,r)];if(l&&l(e.state,e.dispatch,e))return!0}}return!1}}e.keydownHandler=u,e.keymap=l})),s=class{constructor(e,t,n={}){this.match=e,this.match=e,this.handler=typeof t==`string`?c(t):t,this.undoable=n.undoable!==!1,this.inCode=n.inCode||!1}};function c(e){return function(t,n,r,i){let a=e;if(n[1]){let e=n[0].lastIndexOf(n[1]);a+=n[0].slice(e+n[1].length),r+=e;let t=r-i;t>0&&(a=n[0].slice(e-t,e)+a,r=i)}return t.tr.insertText(a,r,i)}}var l=500;function u({rules:e}){let n=new t({state:{init(){return null},apply(e,t){return e.getMeta(this)||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput(t,r,i,a){return d(t,r,i,a,e,n)},handleDOMEvents:{compositionend:t=>{setTimeout(()=>{let{$cursor:r}=t.state.selection;r&&d(t,r.pos,r.pos,``,e,n)})}}},isInputRules:!0});return n}function d(e,t,n,r,i,a){if(e.composing)return!1;let o=e.state,s=o.doc.resolve(t),c=s.parent.textBetween(Math.max(0,s.parentOffset-l),s.parentOffset,null,``)+r;for(let l=0;l<i.length;l++){let u=i[l];if(s.parent.type.spec.code){if(!u.inCode)continue}else if(u.inCode===`only`)continue;let d=u.match.exec(c),f=d&&u.handler(o,d,t-(d[0].length-r.length),n);if(f)return u.undoable&&f.setMeta(a,{transform:f,from:t,to:n,text:r}),e.dispatch(f),!0}return!1}var f=(e,t)=>{let n=e.plugins;for(let r=0;r<n.length;r++){let i=n[r],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let n=e.tr,r=a.transform;
1for(let e=r.steps.length-1;e>=0;e--)n.step(r.steps[e].invert(r.docs[e]));if(a.text){let t=n.doc.resolve(a.from).marks();n.replaceWith(a.from,a.to,e.schema.text(a.text,t))}else n.delete(a.from,a.to);t(n)}return!0}}return!1};new s(/--$/,`â`),new s(/\.\.\.$/,`â¦`),new s(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,`â`),new s(/"$/,`â`),new s(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,`â`),new s(/'$/,`â`);function p(e,t,n=null,a){return new s(e,(e,o,s,c)=>{let l=n instanceof Function?n(o):n,u=e.tr.delete(s,c),d=u.doc.resolve(s).blockRange(),f=d&&r(d,t,l);if(!f)return null;u.wrap(d,f);let p=u.doc.resolve(s-1).nodeBefore;return p&&p.type==t&&i(u.doc,s-1)&&(!a||a(o,p))&&u.join(s-1),u})}function m(e,t,n=null){return new s(e,(e,r,i,a)=>{let o=e.doc.resolve(i),s=n instanceof Function?n(r):n;return o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t)?e.tr.delete(i,a).setBlockType(i,i,t,s):null})}export{p as a,f as i,u as n,o,m as r,s as t}; 2//# sourceMappingURL=vendor-prosemirror-ext-DPWceSfN.js.map
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.