@surething/cockpit 1.0.230 → 1.0.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next-prod/BUILD_ID +1 -1
- package/.next-prod/app-path-routes-manifest.json +1 -1
- package/.next-prod/build-manifest.json +2 -2
- package/.next-prod/prerender-manifest.json +3 -3
- package/.next-prod/server/app/_global-error/page.js.nft.json +1 -1
- package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/_global-error.html +1 -1
- package/.next-prod/server/app/_global-error.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found/page.js.nft.json +1 -1
- package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/_not-found.html +2 -2
- package/.next-prod/server/app/_not-found.rsc +3 -3
- package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next-prod/server/app/api/agent/test/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/bash/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/codex/route.js +1 -1
- package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
- package/.next-prod/server/app/api/chat/deepseek/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/kimi/route.js +1 -1
- package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
- package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/pty-input/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/route.js +1 -1
- package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/stop/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/commands/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/comments/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/dev/spans/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/extension/version/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/file/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/blame/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/clipboard/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/copy/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/delete/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/expanded/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/index/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/init/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/paste/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/read/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/readdir/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/recent/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/save/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/search/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/stat/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/text/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/branch-diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/branches/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/commit-diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/commits/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/current-branch/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/discard/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/stage/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/status/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/unstage/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/worktree/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/global-state/route.js +3 -1
- package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/health/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/jupyter/load/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/jupyter/save/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/jupyter/shutdown/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/definition/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/hover/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/references/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/status/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/warmup/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/schemas/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/schema/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/note/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/project-state/route.js +2 -2
- package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/affected/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/callees/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/callers/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/coedit/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/context/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/file/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/file-functions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/impact/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/related/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/risk/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/search/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/public-key/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/subscribe/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/unsubscribe/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/[id]/comments/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/[id]/replies/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/scheduled-tasks/route.js +2 -2
- package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/services/scripts/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/fork/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/history/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/session-by-path/route.js +1 -1
- package/.next-prod/server/app/api/session-by-path/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/settings/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/skills/[id]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/skills/content/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/bubble-order/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/version/route.js.nft.json +1 -1
- package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next-prod/server/app/m/page.js.nft.json +1 -1
- package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next-prod/server/app/page.js.nft.json +1 -1
- package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/project/page.js.nft.json +1 -1
- package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/review/[id]/page.js.nft.json +1 -1
- package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app-paths-manifest.json +1 -1
- package/.next-prod/server/chunks/3633.js +1 -1
- package/.next-prod/server/chunks/4257.js +3 -3
- package/.next-prod/server/chunks/8916.js +1 -1
- package/.next-prod/server/chunks/9658.js +15 -5
- package/.next-prod/server/chunks/9830.js +1 -0
- package/.next-prod/server/middleware-build-manifest.js +1 -1
- package/.next-prod/server/pages/404.html +2 -2
- package/.next-prod/server/pages/500.html +1 -1
- package/.next-prod/server/server-reference-manifest.json +1 -1
- package/.next-prod/static/chunks/217-4f8250a204080159.js +15 -0
- package/.next-prod/static/chunks/2576-6420f6bad0b8ffb3.js +25 -0
- package/.next-prod/static/chunks/6784-8a99d051f03bb100.js +0 -0
- package/.next-prod/static/chunks/{9428-5c287b255a9831e6.js → 9428-ffc16bc24c6e0da1.js} +7 -7
- package/.next-prod/static/chunks/app/{layout-03c738d41e660f72.js → layout-ac2f1f67df01cc89.js} +1 -1
- package/.next-prod/static/chunks/app/page-1f0a6f49656a4c52.js +1 -0
- package/.next-prod/static/chunks/app/project/page-1f0a6f49656a4c52.js +1 -0
- package/.next-prod/static/css/2a854655f4108c3a.css +1 -0
- package/.next-prod/trace +13 -13
- package/.next-prod/trace-build +1 -1
- package/bin/cock.mjs +10 -0
- package/dist/auth.mjs +92 -0
- package/dist/{chunk-XW5CKMXI.mjs → chunk-VHFWPI2X.mjs} +64 -3
- package/dist/scheduledTasks.mjs +47 -25
- package/dist/wsServer.mjs +1 -1
- package/package.json +1 -1
- package/server.mjs +48 -0
- package/.next-prod/static/chunks/217-7dafa608b7290bdc.js +0 -5
- package/.next-prod/static/chunks/2576-55f4835e4d7e27a8.js +0 -25
- package/.next-prod/static/chunks/6784-b644510a0e060aac.js +0 -0
- package/.next-prod/static/chunks/app/page-677439ad5fd63732.js +0 -1
- package/.next-prod/static/chunks/app/project/page-677439ad5fd63732.js +0 -1
- package/.next-prod/static/css/ee516fc73c03aa88.css +0 -1
- /package/.next-prod/static/{9qXUVBkdZdaWcpPpaLd3c → Z3Em1C_kM7x4RjcH7E7v2}/_buildManifest.js +0 -0
- /package/.next-prod/static/{9qXUVBkdZdaWcpPpaLd3c → Z3Em1C_kM7x4RjcH7E7v2}/_ssgManifest.js +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9428],{5989:(e,t,r)=>{"use strict";let n,i;r.d(t,{XI:()=>tn,nA:()=>eY,A0:()=>eQ,Hj:()=>e0});var s=r(82159),o=r(76865),l=r(27050),a=r(63197),u=r(12894),c=r(8242);if("u">typeof WeakMap){let e=new WeakMap;n=t=>e.get(t),i=(t,r)=>(e.set(t,r),r)}else{let e=[],t=10,r=0;n=t=>{for(let r=0;r<e.length;r+=2)if(e[r]==t)return e[r+1]},i=(n,i)=>(r==t&&(r=0),e[r++]=n,e[r++]=i)}var h=class{constructor(e,t,r,n){this.width=e,this.height=t,this.map=r,this.problems=n}findCell(e){for(let t=0;t<this.map.length;t++){let r=this.map[t];if(r!=e)continue;let n=t%this.width,i=t/this.width|0,s=n+1,o=i+1;for(let e=1;s<this.width&&this.map[t+e]==r;e++)s++;for(let e=1;o<this.height&&this.map[t+this.width*e]==r;e++)o++;return{left:n,top:i,right:s,bottom:o}}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,r){let{left:n,right:i,top:s,bottom:o}=this.findCell(e);return"horiz"==t?(r<0?0==n:i==this.width)?null:this.map[s*this.width+(r<0?n-1:i)]:(r<0?0==s:o==this.height)?null:this.map[n+this.width*(r<0?s-1:o)]}rectBetween(e,t){let{left:r,right:n,top:i,bottom:s}=this.findCell(e),{left:o,right:l,top:a,bottom:u}=this.findCell(t);return{left:Math.min(r,o),top:Math.min(i,a),right:Math.max(n,l),bottom:Math.max(s,u)}}cellsInRect(e){let t=[],r={};for(let n=e.top;n<e.bottom;n++)for(let i=e.left;i<e.right;i++){let s=n*this.width+i,o=this.map[s];!r[o]&&(r[o]=!0,i==e.left&&i&&this.map[s-1]==o||n==e.top&&n&&this.map[s-this.width]==o||t.push(o))}return t}positionAt(e,t,r){for(let n=0,i=0;;n++){let s=i+r.child(n).nodeSize;if(n==e){let r=t+e*this.width,n=(e+1)*this.width;for(;r<n&&this.map[r]<i;)r++;return r==n?s-1:this.map[r]}i=s}}static get(e){return n(e)||i(e,d(e))}};function d(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=p(e),r=e.childCount,n=[],i=0,s=null,o=[];for(let e=0,i=t*r;e<i;e++)n[e]=0;for(let l=0,a=0;l<r;l++){let u=e.child(l);a++;for(let e=0;;e++){for(;i<n.length&&0!=n[i];)i++;if(e==u.childCount)break;let c=u.child(e),{colspan:h,rowspan:d,colwidth:p}=c.attrs;for(let e=0;e<d;e++){if(e+l>=r){(s||(s=[])).push({type:"overlong_rowspan",pos:a,n:d-e});break}let u=i+e*t;for(let e=0;e<h;e++){0==n[u+e]?n[u+e]=a:(s||(s=[])).push({type:"collision",row:l,pos:a,n:h-e});let r=p&&p[e];if(r){let n=(u+e)%t*2,i=o[n];null==i||i!=r&&1==o[n+1]?(o[n]=r,o[n+1]=1):i==r&&o[n+1]++}}}i+=h,a+=c.nodeSize}let c=(l+1)*t,h=0;for(;i<c;)0==n[i++]&&h++;h&&(s||(s=[])).push({type:"missing",row:l,n:h}),a++}(0===t||0===r)&&(s||(s=[])).push({type:"zero_sized"});let l=new h(t,r,n,s),a=!1;for(let e=0;!a&&e<o.length;e+=2)null!=o[e]&&o[e+1]<r&&(a=!0);return a&&f(l,o,e),l}function p(e){let t=-1,r=!1;for(let n=0;n<e.childCount;n++){let i=e.child(n),s=0;if(r)for(let t=0;t<n;t++){let r=e.child(t);for(let e=0;e<r.childCount;e++){let i=r.child(e);t+i.attrs.rowspan>n&&(s+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);s+=t.attrs.colspan,t.attrs.rowspan>1&&(r=!0)}-1==t?t=s:t!=s&&(t=Math.max(t,s))}return t}function f(e,t,r){e.problems||(e.problems=[]);let n={};for(let i=0;i<e.map.length;i++){let s=e.map[i];if(n[s])continue;n[s]=!0;let o=r.nodeAt(s);if(!o)throw RangeError(`No cell with offset ${s} found`);let l=null,a=o.attrs;for(let r=0;r<a.colspan;r++){let n=t[(i+r)%e.width*2];null==n||a.colwidth&&a.colwidth[r]==n||((l||(l=m(a)))[r]=n)}l&&e.problems.unshift({type:"colwidth mismatch",pos:s,colwidth:l})}}function m(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let r=0;r<e.colspan;r++)t.push(0);return t}function g(e){let t=e.cached.tableNodeTypes;if(!t)for(let r in t=e.cached.tableNodeTypes={},e.nodes){let n=e.nodes[r],i=n.spec.tableRole;i&&(t[i]=n)}return t}let _=new o.hs("selectingCells");function y(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 k(e){for(let t=e.depth;t>0;t--){let r=e.node(t).type.spec.tableRole;if("cell"===r||"header_cell"===r)return e.node(t)}return null}function b(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 w(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 r=y(t.$head)||x(t.$head);if(r)return r;throw RangeError(`No cell found around position ${t.head}`)}function x(e){for(let t=e.nodeAfter,r=e.pos;t;t=t.firstChild,r++){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r)}for(let t=e.nodeBefore,r=e.pos;t;t=t.lastChild,r--){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r-t.nodeSize)}}function v(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function C(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function A(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function E(e,t,r){let n=e.node(-1),i=h.get(n),s=e.start(-1),o=i.nextCell(e.pos-s,t,r);return null==o?null:e.node(0).resolve(s+o)}function S(e,t,r=1){let n={...e,colspan:e.colspan-r};return n.colwidth&&(n.colwidth=n.colwidth.slice(),n.colwidth.splice(t,r),n.colwidth.some(e=>e>0)||(n.colwidth=null)),n}function M(e,t,r=1){let n={...e,colspan:e.colspan+r};if(n.colwidth){n.colwidth=n.colwidth.slice();for(let e=0;e<r;e++)n.colwidth.splice(t,0,0)}return n}function T(e,t,r){let n=g(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[r+i*e.width]).type!=n)return!1;return!0}var D=class e extends o.LN{constructor(e,t=e){const r=e.node(-1),n=h.get(r),i=e.start(-1),s=n.rectBetween(e.pos-i,t.pos-i),l=e.node(0),a=n.cellsInRect(s).filter(e=>e!=t.pos-i);a.unshift(t.pos-i);const u=a.map(e=>{let t=r.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let n=i+e+1;return new o.yn(l.resolve(n),l.resolve(n+t.content.size))});super(u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=t}map(t,r){let n=t.resolve(r.map(this.$anchorCell.pos)),i=t.resolve(r.map(this.$headCell.pos));if(v(n)&&v(i)&&A(n,i)){let t=this.$anchorCell.node(-1)!=n.node(-1);return t&&this.isRowSelection()?e.rowSelection(n,i):t&&this.isColSelection()?e.colSelection(n,i):new e(n,i)}return o.U3.between(n,i)}content(){let e=this.$anchorCell.node(-1),t=h.get(e),r=this.$anchorCell.start(-1),n=t.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),i={},s=[];for(let r=n.top;r<n.bottom;r++){let o=[];for(let s=r*t.width+n.left,l=n.left;l<n.right;l++,s++){let r=t.map[s];if(i[r])continue;i[r]=!0;let l=t.findCell(r),a=e.nodeAt(r);if(!a)throw RangeError(`No cell with offset ${r} found`);let u=n.left-l.left,c=l.right-n.right;if(u>0||c>0){let e=a.attrs;if(u>0&&(e=S(e,0,u)),c>0&&(e=S(e,e.colspan-c,c)),l.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(l.top<n.top||l.bottom>n.bottom){let e={...a.attrs,rowspan:Math.min(l.bottom,n.bottom)-Math.max(l.top,n.top)};a=l.top<n.top?a.type.createAndFill(e):a.type.create(e,a.content)}o.push(a)}s.push(e.child(r).copy(l.FK.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:s;return new l.Ji(l.FK.from(o),1,1)}replace(e,t=l.Ji.empty){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:o}=n[i],a=e.mapping.slice(r);e.replace(a.map(s.pos),a.map(o.pos),i?l.Ji.empty:t)}let i=o.LN.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new l.Ji(l.FK.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),r=h.get(t),n=this.$anchorCell.start(-1),i=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n));for(let r=0;r<i.length;r++)e(t.nodeAt(i[r]),n+i[r])}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,r=t){let n=t.node(-1),i=h.get(n),s=t.start(-1),o=i.findCell(t.pos-s),l=i.findCell(r.pos-s),a=t.node(0);return o.top<=l.top?(o.top>0&&(t=a.resolve(s+i.map[o.left])),l.bottom<i.height&&(r=a.resolve(s+i.map[i.width*(i.height-1)+l.right-1]))):(l.top>0&&(r=a.resolve(s+i.map[l.left])),o.bottom<i.height&&(t=a.resolve(s+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,r)}isRowSelection(){let e=this.$anchorCell.node(-1),t=h.get(e),r=this.$anchorCell.start(-1),n=t.colCount(this.$anchorCell.pos-r),i=t.colCount(this.$headCell.pos-r);return!(Math.min(n,i)>0)&&Math.max(n+this.$anchorCell.nodeAfter.attrs.colspan,i+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,r=t){let n=t.node(-1),i=h.get(n),s=t.start(-1),o=i.findCell(t.pos-s),l=i.findCell(r.pos-s),a=t.node(0);return o.left<=l.left?(o.left>0&&(t=a.resolve(s+i.map[o.top*i.width])),l.right<i.width&&(r=a.resolve(s+i.map[i.width*(l.top+1)-1]))):(l.left>0&&(r=a.resolve(s+i.map[l.top*i.width])),o.right<i.width&&(t=a.resolve(s+i.map[i.width*(o.top+1)-1]))),new e(t,r)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,r){return new e(t.resolve(r.anchor),t.resolve(r.head))}static create(t,r,n=r){return new e(t.resolve(r),t.resolve(n))}getBookmark(){return new F(this.$anchorCell.pos,this.$headCell.pos)}};D.prototype.visible=!1,o.LN.jsonID("cell",D);var F=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),r=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==r.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&r.index()<r.parent.childCount&&A(t,r)?new D(t,r):o.LN.near(r,1)}};function I(e){if(!(e.selection instanceof D))return null;let t=[];return e.selection.forEachCell((e,r)=>{t.push(a.NZ.node(r,r+e.nodeSize,{class:"selectedCell"}))}),a.zF.create(e.doc,t)}function L({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let r=e.pos,n=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,r++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,n--);return r==n&&/row|table/.test(e.node(i).type.spec.tableRole)}function N({$from:e,$to:t}){let r,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){r=n;break}}for(let e=t.depth;e>0;e--){let r=t.node(e);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}return r!==n&&0===t.parentOffset}function R(e,t,r){let n,i,s=(t||e).selection,l=(t||e).doc;if(s instanceof o.nh&&(i=s.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)n=D.create(l,s.from);else if("row"==i){let e=l.resolve(s.from+1);n=D.rowSelection(e,e)}else if(!r){let e=h.get(s.node),t=s.from+1,r=t+e.map[e.width*e.height-1];n=D.create(l,t+1,r)}}else s instanceof o.U3&&L(s)?n=o.U3.create(l,s.from):s instanceof o.U3&&N(s)&&(n=o.U3.create(l,s.$from.start(),s.$from.end()));return n&&(t||(t=e.tr)).setSelection(n),t}let O=new o.hs("fix-tables");function z(e,t,r,n){let i=e.childCount,s=t.childCount;e:for(let o=0,l=0;o<s;o++){let s=t.child(o);for(let t=l,n=Math.min(i,o+3);t<n;t++)if(e.child(t)==s){l=t+1,r+=s.nodeSize;continue e}n(s,r),l<i&&e.child(l).sameMarkup(s)?z(e.child(l),s,r+1,n):s.nodesBetween(0,s.content.size,n,r+1),r+=s.nodeSize}}function P(e,t){let r,n=(t,n)=>{"table"==t.type.spec.tableRole&&(r=$(e,t,n,r))};return t?t.doc!=e.doc&&z(t.doc,e.doc,0,n):e.doc.descendants(n),r}function $(e,t,r,n){let i,s,o=h.get(t);if(!o.problems)return n;n||(n=e.tr);let l=[];for(let e=0;e<o.height;e++)l.push(0);for(let e=0;e<o.problems.length;e++){let i=o.problems[e];if("collision"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;let s=e.attrs;for(let e=0;e<s.rowspan;e++)l[i.row+e]+=i.n;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,S(s,s.colspan-i.n,i.n))}else if("missing"==i.type)l[i.row]+=i.n;else if("overlong_rowspan"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-i.n})}else if("colwidth mismatch"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,colwidth:i.colwidth})}else if("zero_sized"==i.type){let e=n.mapping.map(r);n.delete(e,e+t.nodeSize)}}for(let e=0;e<l.length;e++)l[e]&&(null==i&&(i=e),s=e);for(let a=0,u=r+1;a<o.height;a++){let r=t.child(a),o=u+r.nodeSize,c=l[a];if(c>0){let t="cell";r.firstChild&&(t=r.firstChild.type.spec.tableRole);let l=[];for(let r=0;r<c;r++){let r=g(e.schema)[t].createAndFill();r&&l.push(r)}let h=(0==a||i==a-1)&&s==a?u+1:o-1;n.insert(n.mapping.map(h),l)}u=o}return n.setMeta(O,{fixTables:!0})}function B(e){let t=e.selection,r=w(e),n=r.node(-1),i=r.start(-1),s=h.get(n);return{...t instanceof D?s.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):s.findCell(r.pos-i),tableStart:i,map:s,table:n}}function q(e,{map:t,tableStart:r,table:n},i){let s=i>0?-1:0;T(t,n,i+s)&&(s=0==i||i==t.width?null:0);for(let o=0;o<t.height;o++){let l=o*t.width+i;if(i>0&&i<t.width&&t.map[l-1]==t.map[l]){let s=t.map[l],a=n.nodeAt(s);e.setNodeMarkup(e.mapping.map(r+s),null,M(a.attrs,i-t.colCount(s))),o+=a.attrs.rowspan-1}else{let a=null==s?g(n.type.schema).cell:n.nodeAt(t.map[l+s]).type,u=t.positionAt(o,i,n);e.insert(e.mapping.map(r+u),a.createAndFill())}}return e}function j(e,t){if(!b(e))return!1;if(t){let r=B(e);t(q(e.tr,r,r.left))}return!0}function H(e,t){if(!b(e))return!1;if(t){let r=B(e);t(q(e.tr,r,r.right))}return!0}function U(e,{map:t,table:r,tableStart:n},i){let s=e.mapping.maps.length;for(let o=0;o<t.height;){let l=o*t.width+i,a=t.map[l],u=r.nodeAt(a),c=u.attrs;if(i>0&&t.map[l-1]==a||i<t.width-1&&t.map[l+1]==a)e.setNodeMarkup(e.mapping.slice(s).map(n+a),null,S(c,i-t.colCount(a)));else{let t=e.mapping.slice(s).map(n+a);e.delete(t,t+u.nodeSize)}o+=c.rowspan}}function V(e,t){if(!b(e))return!1;if(t){let r=B(e),n=e.tr;if(0==r.left&&r.right==r.map.width)return!1;for(let e=r.right-1;U(n,r,e),e!=r.left;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=h.get(e)}t(n)}return!0}function W(e,t,r){var n;let i=g(t.type.schema).header_cell;for(let s=0;s<e.width;s++)if((null==(n=t.nodeAt(e.map[s+r*e.width]))?void 0:n.type)!=i)return!1;return!0}function J(e,{map:t,tableStart:r,table:n},i){let s=r;for(let e=0;e<i;e++)s+=n.child(e).nodeSize;let o=[],l=i>0?-1:0;W(t,n,i+l)&&(l=0==i||i==t.height?null:0);for(let s=0,u=t.width*i;s<t.width;s++,u++)if(i>0&&i<t.height&&t.map[u]==t.map[u-t.width]){let i=t.map[u],o=n.nodeAt(i).attrs;e.setNodeMarkup(r+i,null,{...o,rowspan:o.rowspan+1}),s+=o.colspan-1}else{var a;let e=null==l?g(n.type.schema).cell:null==(a=n.nodeAt(t.map[u+l*t.width]))?void 0:a.type,r=null==e?void 0:e.createAndFill();r&&o.push(r)}return e.insert(s,g(n.type.schema).row.create(null,o)),e}function K(e,t){if(!b(e))return!1;if(t){let r=B(e);t(J(e.tr,r,r.top))}return!0}function G(e,t){if(!b(e))return!1;if(t){let r=B(e);t(J(e.tr,r,r.bottom))}return!0}function Z(e,{map:t,table:r,tableStart:n},i){let s=0;for(let e=0;e<i;e++)s+=r.child(e).nodeSize;let o=s+r.child(i).nodeSize,l=e.mapping.maps.length;e.delete(s+n,o+n);let a=new Set;for(let s=0,o=i*t.width;s<t.width;s++,o++){let u=t.map[o];if(!a.has(u)){if(a.add(u),i>0&&u==t.map[o-t.width]){let t=r.nodeAt(u).attrs;e.setNodeMarkup(e.mapping.slice(l).map(u+n),null,{...t,rowspan:t.rowspan-1}),s+=t.colspan-1}else if(i<t.height&&u==t.map[o+t.width]){let o=r.nodeAt(u),a=o.attrs,c=o.type.create({...a,rowspan:o.attrs.rowspan-1},o.content),h=t.positionAt(i+1,s,r);e.insert(e.mapping.slice(l).map(n+h),c),s+=a.colspan-1}}}}function X(e,t){if(!b(e))return!1;if(t){let r=B(e),n=e.tr;if(0==r.top&&r.bottom==r.map.height)return!1;for(let e=r.bottom-1;Z(n,r,e),e!=r.top;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=h.get(r.table)}t(n)}return!0}function Y(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function Q({width:e,height:t,map:r},n){let i=n.top*e+n.left,s=i,o=(n.bottom-1)*e+n.left,l=i+(n.right-n.left-1);for(let t=n.top;t<n.bottom;t++){if(n.left>0&&r[s]==r[s-1]||n.right<e&&r[l]==r[l+1])return!0;s+=e,l+=e}for(let s=n.left;s<n.right;s++){if(n.top>0&&r[i]==r[i-e]||n.bottom<t&&r[o]==r[o+e])return!0;i++,o++}return!1}function ee(e,t){let r=e.selection;if(!(r instanceof D)||r.$anchorCell.pos==r.$headCell.pos)return!1;let n=B(e),{map:i}=n;if(Q(i,n))return!1;if(t){let r,s,o=e.tr,a={},u=l.FK.empty;for(let e=n.top;e<n.bottom;e++)for(let t=n.left;t<n.right;t++){let l=i.map[e*i.width+t],c=n.table.nodeAt(l);if(!a[l]&&c)if(a[l]=!0,null==r)r=l,s=c;else{Y(c)||(u=u.append(c.content));let e=o.mapping.map(l+n.tableStart);o.delete(e,e+c.nodeSize)}}if(null==r||null==s)return!0;if(o.setNodeMarkup(r+n.tableStart,null,{...M(s.attrs,s.attrs.colspan,n.right-n.left-s.attrs.colspan),rowspan:n.bottom-n.top}),u.size>0){let e=r+1+s.content.size,t=Y(s)?r+1:e;o.replaceWith(t+n.tableStart,e+n.tableStart,u)}o.setSelection(new D(o.doc.resolve(r+n.tableStart))),t(o)}return!0}function et(e,t){let r=g(e.schema);return er(({node:e})=>r[e.type.spec.tableRole])(e,t)}function er(e){return(t,r)=>{let n,i,s=t.selection;if(s instanceof D){if(s.$anchorCell.pos!=s.$headCell.pos)return!1;n=s.$anchorCell.nodeAfter,i=s.$anchorCell.pos}else{var o;if(!(n=k(s.$from)))return!1;i=null==(o=y(s.$from))?void 0:o.pos}if(null==n||null==i||1==n.attrs.colspan&&1==n.attrs.rowspan)return!1;if(r){let o,l=n.attrs,a=[],u=l.colwidth;l.rowspan>1&&(l={...l,rowspan:1}),l.colspan>1&&(l={...l,colspan:1});let c=B(t),h=t.tr;for(let e=0;e<c.right-c.left;e++)a.push(u?{...l,colwidth:u&&u[e]?[u[e]]:null}:l);for(let t=c.top;t<c.bottom;t++){let r=c.map.positionAt(t,c.left,c.table);t==c.top&&(r+=n.nodeSize);for(let i=c.left,s=0;i<c.right;i++,s++)(i!=c.left||t!=c.top)&&h.insert(o=h.mapping.map(r+c.tableStart,1),e({node:n,row:t,col:i}).createAndFill(a[s]))}h.setNodeMarkup(i,e({node:n,row:c.top,col:c.left}),a[0]),s instanceof D&&h.setSelection(new D(h.doc.resolve(s.$anchorCell.pos),o?h.doc.resolve(o):void 0)),r(h)}return!0}}function en(e,t){return function(r,n){if(!b(r))return!1;let i=w(r);if(i.nodeAfter.attrs[e]===t)return!1;if(n){let s=r.tr;r.selection instanceof D?r.selection.forEachCell((r,n)=>{r.attrs[e]!==t&&s.setNodeMarkup(n,null,{...r.attrs,[e]:t})}):s.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),n(s)}return!0}}function ei(e){return function(t,r){if(!b(t))return!1;if(r){let n=g(t.schema),i=B(t),s=t.tr,o=i.map.cellsInRect("column"==e?{left:i.left,top:0,right:i.right,bottom:i.map.height}:"row"==e?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),l=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)l[e].type==n.header_cell&&s.setNodeMarkup(i.tableStart+o[e],n.cell,l[e].attrs);if(0===s.steps.length)for(let e=0;e<o.length;e++)s.setNodeMarkup(i.tableStart+o[e],n.header_cell,l[e].attrs);r(s)}return!0}}function es(e,t,r){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 i=t.table.nodeAt(n[e]);if(i&&i.type!==r.header_cell)return!1}return!0}function eo(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?ei(e):function(t,r){if(!b(t))return!1;if(r){let n=g(t.schema),i=B(t),s=t.tr,o=es("row",i,n),l=es("column",i,n),a=+("column"===e?!!o:"row"===e&&!!l),u="column"==e?{left:0,top:a,right:1,bottom:i.map.height}:"row"==e?{left:a,top:0,right:i.map.width,bottom:1}:i,c="column"==e?l?n.cell:n.header_cell:"row"==e?o?n.cell:n.header_cell:n.cell;i.map.cellsInRect(u).forEach(e=>{let t=e+i.tableStart,r=s.doc.nodeAt(t);r&&s.setNodeMarkup(t,c,r.attrs)}),r(s)}return!0}}eo("row",{useDeprecatedLogic:!0}),eo("column",{useDeprecatedLogic:!0});let el=eo("cell",{useDeprecatedLogic:!0});function ea(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,r=e.before();t>=0;t--){let n=e.node(-1).child(t),i=n.lastChild;if(i)return r-1-i.nodeSize;r-=n.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let r=e.indexAfter(-1),n=e.after();r<t.childCount;r++){let e=t.child(r);if(e.childCount)return n+1;n+=e.nodeSize}}return null}function eu(e){return function(t,r){if(!b(t))return!1;let n=ea(w(t),e);if(null==n)return!1;if(r){let e=t.doc.resolve(n);r(t.tr.setSelection(o.U3.between(e,C(e))).scrollIntoView())}return!0}}function ec(e,t){let r=e.selection.$anchor;for(let n=r.depth;n>0;n--)if("table"==r.node(n).type.spec.tableRole)return t&&t(e.tr.delete(r.before(n),r.after(n)).scrollIntoView()),!0;return!1}function eh(e,t){let r=e.selection;if(!(r instanceof D))return!1;if(t){let n=e.tr,i=g(e.schema).cell.createAndFill().content;r.forEachCell((e,t)=>{e.content.eq(i)||n.replace(n.mapping.map(t+1),n.mapping.map(t+e.nodeSize-1),new l.Ji(i,0,0))}),n.docChanged&&t(n)}return!0}function ed(e){if(0===e.size)return null;let{content:t,openStart:r,openEnd:n}=e;for(;1==t.childCount&&(r>0&&n>0||"table"==t.child(0).type.spec.tableRole);)r--,n--,t=t.child(0).content;let i=t.child(0),s=i.type.spec.tableRole,o=i.type.schema,a=[];if("row"==s)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,s=e?0:Math.max(0,r-1),u=e<t.childCount-1?0:Math.max(0,n-1);(s||u)&&(i=ef(g(o).row,new l.Ji(i,s,u)).content),a.push(i)}else{if("cell"!=s&&"header_cell"!=s)return null;a.push(r||n?ef(g(o).row,new l.Ji(t,r,n)).content:t)}return ep(o,a)}function ep(e,t){let r=[];for(let e=0;e<t.length;e++){let n=t[e];for(let t=n.childCount-1;t>=0;t--){let{rowspan:i,colspan:s}=n.child(t).attrs;for(let t=e;t<e+i;t++)r[t]=(r[t]||0)+s}}let n=0;for(let e=0;e<r.length;e++)n=Math.max(n,r[e]);for(let i=0;i<r.length;i++)if(i>=t.length&&t.push(l.FK.empty),r[i]<n){let s=g(e).cell.createAndFill(),o=[];for(let e=r[i];e<n;e++)o.push(s);t[i]=t[i].append(l.FK.from(o))}return{height:t.length,width:n,rows:t}}function ef(e,t){let r=e.createAndFill();return new c.dL(r).replace(0,r.content.size,t).doc}function em({width:e,height:t,rows:r},n,i){if(e!=n){let t=[],i=[];for(let e=0;e<r.length;e++){let s=r[e],o=[];for(let r=t[e]||0,i=0;r<n;i++){let l=s.child(i%s.childCount);r+l.attrs.colspan>n&&(l=l.type.createChecked(S(l.attrs,l.attrs.colspan,r+l.attrs.colspan-n),l.content)),o.push(l),r+=l.attrs.colspan;for(let r=1;r<l.attrs.rowspan;r++)t[e+r]=(t[e+r]||0)+l.attrs.colspan}i.push(l.FK.from(o))}r=i,e=n}if(t!=i){let e=[];for(let n=0,s=0;n<i;n++,s++){let o=[],a=r[s%t];for(let e=0;e<a.childCount;e++){let t=a.child(e);n+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),o.push(t)}e.push(l.FK.from(o))}r=e,t=i}return{width:e,height:t,rows:r}}function eg(e,t,r,n,i,s,o){let a,u,c=g(e.doc.type.schema);if(i>t.width)for(let s=0,l=0;s<t.height;s++){let h,d=r.child(s);l+=d.nodeSize;let p=[];h=null==d.lastChild||d.lastChild.type==c.cell?a||(a=c.cell.createAndFill()):u||(u=c.header_cell.createAndFill());for(let e=t.width;e<i;e++)p.push(h);e.insert(e.mapping.slice(o).map(l-1+n),p)}if(s>t.height){let h=[];for(let e=0,n=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&r.nodeAt(t.map[n+e]).type==c.header_cell;h.push(i?u||(u=c.header_cell.createAndFill()):a||(a=c.cell.createAndFill()))}let d=c.row.create(null,l.FK.from(h)),p=[];for(let e=t.height;e<s;e++)p.push(d);e.insert(e.mapping.slice(o).map(n+r.nodeSize-2),p)}return!!(a||u)}function e_(e,t,r,n,i,s,o,l){if(0==o||o==t.height)return!1;let a=!1;for(let u=i;u<s;u++){let i=o*t.width+u,s=t.map[i];if(t.map[i-t.width]==s){a=!0;let i=r.nodeAt(s),{top:c,left:h}=t.findCell(s);e.setNodeMarkup(e.mapping.slice(l).map(s+n),null,{...i.attrs,rowspan:o-c}),e.insert(e.mapping.slice(l).map(t.positionAt(o,h,r)),i.type.createAndFill({...i.attrs,rowspan:c+i.attrs.rowspan-o})),u+=i.attrs.colspan-1}}return a}function ey(e,t,r,n,i,s,o,l){if(0==o||o==t.width)return!1;let a=!1;for(let u=i;u<s;u++){let i=u*t.width+o,s=t.map[i];if(t.map[i-1]==s){a=!0;let i=r.nodeAt(s),c=t.colCount(s),h=e.mapping.slice(l).map(s+n);e.setNodeMarkup(h,null,S(i.attrs,o-c,i.attrs.colspan-(o-c))),e.insert(h+i.nodeSize,i.type.createAndFill(S(i.attrs,0,o-c))),u+=i.attrs.rowspan-1}}return a}function ek(e,t,r,n,i){let s=r?e.doc.nodeAt(r-1):e.doc;if(!s)throw Error("No table found");let o=h.get(s),{top:a,left:u}=n,c=u+i.width,d=a+i.height,p=e.tr,f=0;function m(){if(!(s=r?p.doc.nodeAt(r-1):p.doc))throw Error("No table found");o=h.get(s),f=p.mapping.maps.length}eg(p,o,s,r,c,d,0)&&m(),e_(p,o,s,r,u,c,a,f)&&m(),e_(p,o,s,r,u,c,d,f)&&m(),ey(p,o,s,r,a,d,u,f)&&m(),ey(p,o,s,r,a,d,c,f)&&m();for(let e=a;e<d;e++){let t=o.positionAt(e,u,s),n=o.positionAt(e,c,s);p.replace(p.mapping.slice(f).map(t+r),p.mapping.slice(f).map(n+r),new l.Ji(i.rows[e-a],0,0))}m(),p.setSelection(new D(p.doc.resolve(r+o.positionAt(a,u,s)),p.doc.resolve(r+o.positionAt(d-1,c-1,s)))),t(p)}let eb=(0,u.K)({ArrowLeft:ex("horiz",-1),ArrowRight:ex("horiz",1),ArrowUp:ex("vert",-1),ArrowDown:ex("vert",1),"Shift-ArrowLeft":ev("horiz",-1),"Shift-ArrowRight":ev("horiz",1),"Shift-ArrowUp":ev("vert",-1),"Shift-ArrowDown":ev("vert",1),Backspace:eh,"Mod-Backspace":eh,Delete:eh,"Mod-Delete":eh});function ew(e,t,r){return!r.eq(e.selection)&&(t&&t(e.tr.setSelection(r).scrollIntoView()),!0)}function ex(e,t){return(r,n,i)=>{if(!i)return!1;let s=r.selection;if(s instanceof D)return ew(r,n,o.LN.near(s.$headCell,t));if("horiz"!=e&&!s.empty)return!1;let l=eS(i,e,t);if(null==l)return!1;if("horiz"==e)return ew(r,n,o.LN.near(r.doc.resolve(s.head+t),t));{let i,s=r.doc.resolve(l),a=E(s,e,t);return i=a?o.LN.near(a,1):t<0?o.LN.near(r.doc.resolve(s.before(-1)),-1):o.LN.near(r.doc.resolve(s.after(-1)),1),ew(r,n,i)}}}function ev(e,t){return(r,n,i)=>{let s;if(!i)return!1;let o=r.selection;if(o instanceof D)s=o;else{let n=eS(i,e,t);if(null==n)return!1;s=new D(r.doc.resolve(n))}let l=E(s.$headCell,e,t);return!!l&&ew(r,n,new D(s.$anchorCell,l))}}function eC(e,t){let r=y(e.state.doc.resolve(t));return!!r&&(e.dispatch(e.state.tr.setSelection(new D(r))),!0)}function eA(e,t,r){if(!b(e.state))return!1;let n=ed(r),i=e.state.selection;if(i instanceof D){n||(n={width:1,height:1,rows:[l.FK.from(ef(g(e.state.schema).cell,r))]});let t=i.$anchorCell.node(-1),s=i.$anchorCell.start(-1),o=h.get(t).rectBetween(i.$anchorCell.pos-s,i.$headCell.pos-s);return n=em(n,o.right-o.left,o.bottom-o.top),ek(e.state,e.dispatch,s,o,n),!0}if(!n)return!1;{let t=w(e.state),r=t.start(-1);return ek(e.state,e.dispatch,r,h.get(t.node(-1)).findCell(t.pos-r),n),!0}}function eE(e,t){var r;let n;if(0!=t.button||t.ctrlKey||t.metaKey)return;let i=eM(e,t.target);if(t.shiftKey&&e.state.selection instanceof D)s(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=y(e.state.selection.$anchor))&&(null==(r=eT(e,t))?void 0:r.pos)!=n.pos)s(n,t),t.preventDefault();else if(!i)return;function s(t,r){let n=eT(e,r),i=null==_.getState(e.state);if(!n||!A(t,n))if(!i)return;else n=t;let s=new D(t,n);if(i||!e.state.selection.eq(s)){let r=e.state.tr.setSelection(s);i&&r.setMeta(_,t.pos),e.dispatch(r)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",l),null!=_.getState(e.state)&&e.dispatch(e.state.tr.setMeta(_,-1))}function l(r){let n,l=r,a=_.getState(e.state);if(null!=a)n=e.state.doc.resolve(a);else if(eM(e,l.target)!=i&&!(n=eT(e,t)))return o();n&&s(n,l)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",l)}function eS(e,t,r){if(!(e.state.selection instanceof o.U3))return null;let{$head:n}=e.state.selection;for(let i=n.depth-1;i>=0;i--){let s=n.node(i);if((r<0?n.index(i):n.indexAfter(i))!=(r<0?0:s.childCount))break;if("cell"==s.type.spec.tableRole||"header_cell"==s.type.spec.tableRole){let s=n.before(i),o="vert"==t?r>0?"down":"up":r>0?"right":"left";return e.endOfTextblock(o)?s:null}}return null}function eM(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function eT(e,t){let r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return null;let{inside:n,pos:i}=r;return n>=0&&y(e.state.doc.resolve(n))||y(e.state.doc.resolve(i))}var eD=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")),eF(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,eF(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function eF(e,t,r,n,i,s){let o=0,l=!0,a=t.firstChild,u=e.firstChild;if(u){for(let e=0,r=0;e<u.childCount;e++){let{colspan:c,colwidth:h}=u.child(e).attrs;for(let e=0;e<c;e++,r++){let u=i==r?s:h&&h[e],c=u?u+"px":"";if(o+=u||n,u||(l=!1),a)a.style.width!=c&&(a.style.width=c),a=a.nextSibling;else{let e=document.createElement("col");e.style.width=c,t.appendChild(e)}}}for(;a;){var c;let e=a.nextSibling;null==(c=a.parentNode)||c.removeChild(a),a=e}l?(r.style.width=o+"px",r.style.minWidth=""):(r.style.width="",r.style.minWidth=o+"px")}}let eI=new o.hs("tableColumnResizing");function eL({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:r=100,View:n=eD,lastColumnResizable:i=!0}={}){let s=new o.k_({key:eI,state:{init(e,t){var i;let o=null==(i=s.spec)||null==(i=i.props)?void 0:i.nodeViews,l=g(t.schema).table.name;return n&&o&&(o[l]=(e,t)=>new n(e,r,t)),new eN(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=eI.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,r)=>{eR(t,r,e,i)},mouseleave:e=>{eO(e)},mousedown:(e,n)=>{ez(e,n,t,r)}},decorations:e=>{let t=eI.getState(e);if(t&&t.activeHandle>-1)return eW(e,t.activeHandle)},nodeViews:{}}});return s}var eN=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let r=this,n=t.getMeta(eI);if(n&&null!=n.setHandle)return new e(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new e(r.activeHandle,n.setDragging);if(r.activeHandle>-1&&t.docChanged){let n=t.mapping.map(r.activeHandle,-1);return v(t.doc.resolve(n))||(n=-1),new e(n,r.dragging)}return r}};function eR(e,t,r,n){if(!e.editable)return;let i=eI.getState(e.state);if(i&&!i.dragging){let s=e$(t.target),o=-1;if(s){let{left:n,right:i}=s.getBoundingClientRect();t.clientX-n<=r?o=eB(e,t,"left",r):i-t.clientX<=r&&(o=eB(e,t,"right",r))}if(o!=i.activeHandle){if(!n&&-1!==o){let t=e.state.doc.resolve(o),r=t.node(-1),n=h.get(r),i=t.start(-1);if(n.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==n.width-1)return}ej(e,o)}}}function eO(e){if(!e.editable)return;let t=eI.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&ej(e,-1)}function ez(e,t,r,n){var i;if(!e.editable)return!1;let s=null!=(i=e.dom.ownerDocument.defaultView)?i:window,o=eI.getState(e.state);if(!o||-1==o.activeHandle||o.dragging)return!1;let l=e.state.doc.nodeAt(o.activeHandle),a=eP(e,o.activeHandle,l.attrs);function u(t){s.removeEventListener("mouseup",u),s.removeEventListener("mousemove",c);let n=eI.getState(e.state);(null==n?void 0:n.dragging)&&(eH(e,n.activeHandle,eq(n.dragging,t,r)),e.dispatch(e.state.tr.setMeta(eI,{setDragging:null})))}function c(t){if(!t.which)return u(t);let i=eI.getState(e.state);if(i&&i.dragging){let s=eq(i.dragging,t,r);eU(e,i.activeHandle,s,n)}}return e.dispatch(e.state.tr.setMeta(eI,{setDragging:{startX:t.clientX,startWidth:a}})),eU(e,o.activeHandle,a,n),s.addEventListener("mouseup",u),s.addEventListener("mousemove",c),t.preventDefault(),!0}function eP(e,t,{colspan:r,colwidth:n}){let i=n&&n[n.length-1];if(i)return i;let s=e.domAtPos(t),o=s.node.childNodes[s.offset].offsetWidth,l=r;if(n)for(let e=0;e<r;e++)n[e]&&(o-=n[e],l--);return o/l}function e$(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function eB(e,t,r,n){let i="right"==r?-n:n,s=e.posAtCoords({left:t.clientX+i,top:t.clientY});if(!s)return -1;let{pos:o}=s,l=y(e.state.doc.resolve(o));if(!l)return -1;if("right"==r)return l.pos;let a=h.get(l.node(-1)),u=l.start(-1),c=a.map.indexOf(l.pos-u);return c%a.width==0?-1:u+a.map[c-1]}function eq(e,t,r){let n=t.clientX-e.startX;return Math.max(r,e.startWidth+n)}function ej(e,t){e.dispatch(e.state.tr.setMeta(eI,{setHandle:t}))}function eH(e,t,r){let n=e.state.doc.resolve(t),i=n.node(-1),s=h.get(i),o=n.start(-1),l=s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1,a=e.state.tr;for(let e=0;e<s.height;e++){let t=e*s.width+l;if(e&&s.map[t]==s.map[t-s.width])continue;let n=s.map[t],u=i.nodeAt(n).attrs,c=1==u.colspan?0:l-s.colCount(n);if(u.colwidth&&u.colwidth[c]==r)continue;let h=u.colwidth?u.colwidth.slice():eV(u.colspan);h[c]=r,a.setNodeMarkup(o+n,null,{...u,colwidth:h})}a.docChanged&&e.dispatch(a)}function eU(e,t,r,n){let i=e.state.doc.resolve(t),s=i.node(-1),o=i.start(-1),l=h.get(s).colCount(i.pos-o)+i.nodeAfter.attrs.colspan-1,a=e.domAtPos(i.start(-1)).node;for(;a&&"TABLE"!=a.nodeName;)a=a.parentNode;a&&eF(s,a.firstChild,a,n,l,r)}function eV(e){return Array(e).fill(0)}function eW(e,t){let r=[],n=e.doc.resolve(t),i=n.node(-1);if(!i)return a.zF.empty;let s=h.get(i),o=n.start(-1),l=s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1;for(let t=0;t<s.height;t++){let n=l+t*s.width;if((l==s.width-1||s.map[n]!=s.map[n+1])&&(0==t||s.map[n]!=s.map[n-s.width])){var u;let t=s.map[n],l=o+t+i.nodeAt(t).nodeSize-1,c=document.createElement("div");c.className="column-resize-handle",(null==(u=eI.getState(e))?void 0:u.dragging)&&r.push(a.NZ.node(o+t,o+t+i.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),r.push(a.NZ.widget(l,c))}}return a.zF.create(e.doc,r)}function eJ({allowTableNodeSelection:e=!1}={}){return new o.k_({key:_,state:{init:()=>null,apply(e,t){let r=e.getMeta(_);if(null!=r)return -1==r?null:r;if(null==t||!e.docChanged)return t;let{deleted:n,pos:i}=e.mapping.mapResult(t);return n?null:i}},props:{decorations:I,handleDOMEvents:{mousedown:eE},createSelectionBetween:e=>null!=_.getState(e.state)?e.state.selection:null,handleTripleClick:eC,handleKeyDown:eb,handlePaste:eA},appendTransaction:(t,r,n)=>R(n,P(n,r),e)})}function eK(e){return"left"===e||"right"===e||"center"===e?e:null}function eG(e){let t=(e.style.textAlign||"").trim().toLowerCase(),r=(e.getAttribute("align")||"").trim().toLowerCase();return eK(t||r)}function eZ(e){return eK(null==e?void 0:e.align)}function eX(){return{default:null,parseHTML:e=>eG(e),renderHTML:e=>e.align?{style:`text-align: ${e.align}`}:{}}}var eY=s.bP.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{var t,r;let n=e.getAttribute("colwidth"),i=n?n.split(",").map(e=>parseInt(e,10)):null;if(!i){let n=null==(t=e.closest("table"))?void 0:t.querySelectorAll("colgroup > col"),i=Array.from((null==(r=e.parentElement)?void 0:r.children)||[]).indexOf(e);if(i&&i>-1&&n&&n[i]){let e=n[i].getAttribute("width");return e?[parseInt(e,10)]:null}}return i}},align:eX()}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",(0,s.KV)(this.options.HTMLAttributes,e),0]}}),eQ=s.bP.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}},align:eX()}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",(0,s.KV)(this.options.HTMLAttributes,e),0]}}),e0=s.bP.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",(0,s.KV)(this.options.HTMLAttributes,e),0]}});function e1(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function e2(e,t,r,n,i,s){var o;let l=0,a=!0,u=t.firstChild,c=e.firstChild;if(null!==c)for(let e=0,r=0;e<c.childCount;e+=1){let{colspan:o,colwidth:h}=c.child(e).attrs;for(let e=0;e<o;e+=1,r+=1){let o=i===r?s:h&&h[e],c=o?`${o}px`:"";if(l+=o||n,o||(a=!1),u){if(u.style.width!==c){let[e,t]=e1(n,o);u.style.setProperty(e,t)}u=u.nextSibling}else{let e=document.createElement("col"),[r,i]=e1(n,o);e.style.setProperty(r,i),t.appendChild(e)}}}for(;u;){let e=u.nextSibling;null==(o=u.parentNode)||o.removeChild(u),u=e}let h=e.attrs.style&&"string"==typeof e.attrs.style&&/\bwidth\s*:/i.test(e.attrs.style);a&&!h?(r.style.width=`${l}px`,r.style.minWidth=""):(r.style.width="",r.style.minWidth=`${l}px`)}var e3=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),e.attrs.style&&(this.table.style.cssText=e.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),e2(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,e2(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){let t=e.target,r=this.dom.contains(t),n=this.contentDOM.contains(t);return!!r&&!n&&("attributes"===e.type||"childList"===e.type||"characterData"===e.type)}};function e5(e,t,r,n){let i=0,s=!0,o=[],l=e.firstChild;if(!l)return{};for(let e=0,a=0;e<l.childCount;e+=1){let{colspan:u,colwidth:c}=l.child(e).attrs;for(let e=0;e<u;e+=1,a+=1){let l=r===a?n:c&&c[e];i+=l||t,l||(s=!1);let[u,h]=e1(t,l);o.push(["col",{style:`${u}: ${h}`}])}}return{colgroup:["colgroup",{},...o],tableWidth:s?`${i}px`:"",tableMinWidth:s?"":`${i}px`}}function e4(e,t){return t?e.createChecked(null,t):e.createAndFill()}function e6(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};return Object.keys(e.nodes).forEach(r=>{let n=e.nodes[r];n.spec.tableRole&&(t[n.spec.tableRole]=n)}),e.cached.tableNodeTypes=t,t}function e8(e,t,r,n,i){let s=e6(e),o=[],l=[];for(let e=0;e<r;e+=1){let e=e4(s.cell,i);if(e&&l.push(e),n){let e=e4(s.header_cell,i);e&&o.push(e)}}let a=[];for(let e=0;e<t;e+=1)a.push(s.row.createChecked(null,n&&0===e?o:l));return s.table.createChecked(null,a)}function e9(e){return e instanceof D}var e7=({editor:e})=>{let{selection:t}=e.state;if(!e9(t))return!1;let r=0,n=(0,s.eL)(t.ranges[0].$from,e=>"table"===e.type.name);return null==n||n.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(r+=1)}),r===t.ranges.length&&(e.commands.deleteTable(),!0)},te="\x1f";function tt(e){return(e||"").replace(/\s+/g," ").trim()}var tr=function(e,t,r={}){var n;let i=null!=(n=r.cellLineSeparator)?n:te;if(!e||!e.content||0===e.content.length)return"";let s=[];e.content.forEach(e=>{let r=[];e.content&&e.content.forEach(e=>{let n="",s=tt(n=e.content&&Array.isArray(e.content)&&e.content.length>1?e.content.map(e=>t.renderChildren(e)).join(i):e.content?t.renderChildren(e.content):""),o="tableHeader"===e.type,l=eZ(e.attrs);r.push({text:s,isHeader:o,align:l})}),s.push(r)});let o=s.reduce((e,t)=>Math.max(e,t.length),0);if(0===o)return"";let l=Array(o).fill(0);s.forEach(e=>{var t;for(let r=0;r<o;r+=1){let n=((null==(t=e[r])?void 0:t.text)||"").length;n>l[r]&&(l[r]=n),l[r]<3&&(l[r]=3)}});let a=(e,t)=>e+" ".repeat(Math.max(0,t-e.length)),u=s[0],c=u.some(e=>e.isHeader),h=Array(o).fill(null);s.forEach(e=>{var t;for(let r=0;r<o;r+=1)!h[r]&&(null==(t=e[r])?void 0:t.align)&&(h[r]=e[r].align)});let d="\n",p=Array(o).fill(0).map((e,t)=>c&&u[t]&&u[t].text||"");return d+=`| ${p.map((e,t)=>a(e,l[t])).join(" | ")} |
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9428],{5989:(e,t,r)=>{"use strict";let n,i;r.d(t,{XI:()=>tn,nA:()=>eY,A0:()=>eQ,Hj:()=>e0});var s=r(82159),o=r(76865),l=r(27050),a=r(63197),u=r(12894),c=r(8242);if("u">typeof WeakMap){let e=new WeakMap;n=t=>e.get(t),i=(t,r)=>(e.set(t,r),r)}else{let e=[],t=10,r=0;n=t=>{for(let r=0;r<e.length;r+=2)if(e[r]==t)return e[r+1]},i=(n,i)=>(r==t&&(r=0),e[r++]=n,e[r++]=i)}var h=class{constructor(e,t,r,n){this.width=e,this.height=t,this.map=r,this.problems=n}findCell(e){for(let t=0;t<this.map.length;t++){let r=this.map[t];if(r!=e)continue;let n=t%this.width,i=t/this.width|0,s=n+1,o=i+1;for(let e=1;s<this.width&&this.map[t+e]==r;e++)s++;for(let e=1;o<this.height&&this.map[t+this.width*e]==r;e++)o++;return{left:n,top:i,right:s,bottom:o}}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,r){let{left:n,right:i,top:s,bottom:o}=this.findCell(e);return"horiz"==t?(r<0?0==n:i==this.width)?null:this.map[s*this.width+(r<0?n-1:i)]:(r<0?0==s:o==this.height)?null:this.map[n+this.width*(r<0?s-1:o)]}rectBetween(e,t){let{left:r,right:n,top:i,bottom:s}=this.findCell(e),{left:o,right:l,top:a,bottom:u}=this.findCell(t);return{left:Math.min(r,o),top:Math.min(i,a),right:Math.max(n,l),bottom:Math.max(s,u)}}cellsInRect(e){let t=[],r={};for(let n=e.top;n<e.bottom;n++)for(let i=e.left;i<e.right;i++){let s=n*this.width+i,o=this.map[s];!r[o]&&(r[o]=!0,i==e.left&&i&&this.map[s-1]==o||n==e.top&&n&&this.map[s-this.width]==o||t.push(o))}return t}positionAt(e,t,r){for(let n=0,i=0;;n++){let s=i+r.child(n).nodeSize;if(n==e){let r=t+e*this.width,n=(e+1)*this.width;for(;r<n&&this.map[r]<i;)r++;return r==n?s-1:this.map[r]}i=s}}static get(e){return n(e)||i(e,d(e))}};function d(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=p(e),r=e.childCount,n=[],i=0,s=null,o=[];for(let e=0,i=t*r;e<i;e++)n[e]=0;for(let l=0,a=0;l<r;l++){let u=e.child(l);a++;for(let e=0;;e++){for(;i<n.length&&0!=n[i];)i++;if(e==u.childCount)break;let c=u.child(e),{colspan:h,rowspan:d,colwidth:p}=c.attrs;for(let e=0;e<d;e++){if(e+l>=r){(s||(s=[])).push({type:"overlong_rowspan",pos:a,n:d-e});break}let u=i+e*t;for(let e=0;e<h;e++){0==n[u+e]?n[u+e]=a:(s||(s=[])).push({type:"collision",row:l,pos:a,n:h-e});let r=p&&p[e];if(r){let n=(u+e)%t*2,i=o[n];null==i||i!=r&&1==o[n+1]?(o[n]=r,o[n+1]=1):i==r&&o[n+1]++}}}i+=h,a+=c.nodeSize}let c=(l+1)*t,h=0;for(;i<c;)0==n[i++]&&h++;h&&(s||(s=[])).push({type:"missing",row:l,n:h}),a++}(0===t||0===r)&&(s||(s=[])).push({type:"zero_sized"});let l=new h(t,r,n,s),a=!1;for(let e=0;!a&&e<o.length;e+=2)null!=o[e]&&o[e+1]<r&&(a=!0);return a&&f(l,o,e),l}function p(e){let t=-1,r=!1;for(let n=0;n<e.childCount;n++){let i=e.child(n),s=0;if(r)for(let t=0;t<n;t++){let r=e.child(t);for(let e=0;e<r.childCount;e++){let i=r.child(e);t+i.attrs.rowspan>n&&(s+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);s+=t.attrs.colspan,t.attrs.rowspan>1&&(r=!0)}-1==t?t=s:t!=s&&(t=Math.max(t,s))}return t}function f(e,t,r){e.problems||(e.problems=[]);let n={};for(let i=0;i<e.map.length;i++){let s=e.map[i];if(n[s])continue;n[s]=!0;let o=r.nodeAt(s);if(!o)throw RangeError(`No cell with offset ${s} found`);let l=null,a=o.attrs;for(let r=0;r<a.colspan;r++){let n=t[(i+r)%e.width*2];null==n||a.colwidth&&a.colwidth[r]==n||((l||(l=m(a)))[r]=n)}l&&e.problems.unshift({type:"colwidth mismatch",pos:s,colwidth:l})}}function m(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let r=0;r<e.colspan;r++)t.push(0);return t}function g(e){let t=e.cached.tableNodeTypes;if(!t)for(let r in t=e.cached.tableNodeTypes={},e.nodes){let n=e.nodes[r],i=n.spec.tableRole;i&&(t[i]=n)}return t}let _=new o.hs("selectingCells");function y(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 k(e){for(let t=e.depth;t>0;t--){let r=e.node(t).type.spec.tableRole;if("cell"===r||"header_cell"===r)return e.node(t)}return null}function b(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 w(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 r=y(t.$head)||x(t.$head);if(r)return r;throw RangeError(`No cell found around position ${t.head}`)}function x(e){for(let t=e.nodeAfter,r=e.pos;t;t=t.firstChild,r++){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r)}for(let t=e.nodeBefore,r=e.pos;t;t=t.lastChild,r--){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r-t.nodeSize)}}function v(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function C(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function A(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function E(e,t,r){let n=e.node(-1),i=h.get(n),s=e.start(-1),o=i.nextCell(e.pos-s,t,r);return null==o?null:e.node(0).resolve(s+o)}function S(e,t,r=1){let n={...e,colspan:e.colspan-r};return n.colwidth&&(n.colwidth=n.colwidth.slice(),n.colwidth.splice(t,r),n.colwidth.some(e=>e>0)||(n.colwidth=null)),n}function M(e,t,r=1){let n={...e,colspan:e.colspan+r};if(n.colwidth){n.colwidth=n.colwidth.slice();for(let e=0;e<r;e++)n.colwidth.splice(t,0,0)}return n}function T(e,t,r){let n=g(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[r+i*e.width]).type!=n)return!1;return!0}var D=class e extends o.LN{constructor(e,t=e){const r=e.node(-1),n=h.get(r),i=e.start(-1),s=n.rectBetween(e.pos-i,t.pos-i),l=e.node(0),a=n.cellsInRect(s).filter(e=>e!=t.pos-i);a.unshift(t.pos-i);const u=a.map(e=>{let t=r.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let n=i+e+1;return new o.yn(l.resolve(n),l.resolve(n+t.content.size))});super(u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=t}map(t,r){let n=t.resolve(r.map(this.$anchorCell.pos)),i=t.resolve(r.map(this.$headCell.pos));if(v(n)&&v(i)&&A(n,i)){let t=this.$anchorCell.node(-1)!=n.node(-1);return t&&this.isRowSelection()?e.rowSelection(n,i):t&&this.isColSelection()?e.colSelection(n,i):new e(n,i)}return o.U3.between(n,i)}content(){let e=this.$anchorCell.node(-1),t=h.get(e),r=this.$anchorCell.start(-1),n=t.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),i={},s=[];for(let r=n.top;r<n.bottom;r++){let o=[];for(let s=r*t.width+n.left,l=n.left;l<n.right;l++,s++){let r=t.map[s];if(i[r])continue;i[r]=!0;let l=t.findCell(r),a=e.nodeAt(r);if(!a)throw RangeError(`No cell with offset ${r} found`);let u=n.left-l.left,c=l.right-n.right;if(u>0||c>0){let e=a.attrs;if(u>0&&(e=S(e,0,u)),c>0&&(e=S(e,e.colspan-c,c)),l.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(l.top<n.top||l.bottom>n.bottom){let e={...a.attrs,rowspan:Math.min(l.bottom,n.bottom)-Math.max(l.top,n.top)};a=l.top<n.top?a.type.createAndFill(e):a.type.create(e,a.content)}o.push(a)}s.push(e.child(r).copy(l.FK.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:s;return new l.Ji(l.FK.from(o),1,1)}replace(e,t=l.Ji.empty){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:o}=n[i],a=e.mapping.slice(r);e.replace(a.map(s.pos),a.map(o.pos),i?l.Ji.empty:t)}let i=o.LN.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new l.Ji(l.FK.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),r=h.get(t),n=this.$anchorCell.start(-1),i=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n));for(let r=0;r<i.length;r++)e(t.nodeAt(i[r]),n+i[r])}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,r=t){let n=t.node(-1),i=h.get(n),s=t.start(-1),o=i.findCell(t.pos-s),l=i.findCell(r.pos-s),a=t.node(0);return o.top<=l.top?(o.top>0&&(t=a.resolve(s+i.map[o.left])),l.bottom<i.height&&(r=a.resolve(s+i.map[i.width*(i.height-1)+l.right-1]))):(l.top>0&&(r=a.resolve(s+i.map[l.left])),o.bottom<i.height&&(t=a.resolve(s+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,r)}isRowSelection(){let e=this.$anchorCell.node(-1),t=h.get(e),r=this.$anchorCell.start(-1),n=t.colCount(this.$anchorCell.pos-r),i=t.colCount(this.$headCell.pos-r);return!(Math.min(n,i)>0)&&Math.max(n+this.$anchorCell.nodeAfter.attrs.colspan,i+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,r=t){let n=t.node(-1),i=h.get(n),s=t.start(-1),o=i.findCell(t.pos-s),l=i.findCell(r.pos-s),a=t.node(0);return o.left<=l.left?(o.left>0&&(t=a.resolve(s+i.map[o.top*i.width])),l.right<i.width&&(r=a.resolve(s+i.map[i.width*(l.top+1)-1]))):(l.left>0&&(r=a.resolve(s+i.map[l.top*i.width])),o.right<i.width&&(t=a.resolve(s+i.map[i.width*(o.top+1)-1]))),new e(t,r)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,r){return new e(t.resolve(r.anchor),t.resolve(r.head))}static create(t,r,n=r){return new e(t.resolve(r),t.resolve(n))}getBookmark(){return new F(this.$anchorCell.pos,this.$headCell.pos)}};D.prototype.visible=!1,o.LN.jsonID("cell",D);var F=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),r=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==r.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&r.index()<r.parent.childCount&&A(t,r)?new D(t,r):o.LN.near(r,1)}};function I(e){if(!(e.selection instanceof D))return null;let t=[];return e.selection.forEachCell((e,r)=>{t.push(a.NZ.node(r,r+e.nodeSize,{class:"selectedCell"}))}),a.zF.create(e.doc,t)}function L({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let r=e.pos,n=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,r++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,n--);return r==n&&/row|table/.test(e.node(i).type.spec.tableRole)}function R({$from:e,$to:t}){let r,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){r=n;break}}for(let e=t.depth;e>0;e--){let r=t.node(e);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}return r!==n&&0===t.parentOffset}function N(e,t,r){let n,i,s=(t||e).selection,l=(t||e).doc;if(s instanceof o.nh&&(i=s.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)n=D.create(l,s.from);else if("row"==i){let e=l.resolve(s.from+1);n=D.rowSelection(e,e)}else if(!r){let e=h.get(s.node),t=s.from+1,r=t+e.map[e.width*e.height-1];n=D.create(l,t+1,r)}}else s instanceof o.U3&&L(s)?n=o.U3.create(l,s.from):s instanceof o.U3&&R(s)&&(n=o.U3.create(l,s.$from.start(),s.$from.end()));return n&&(t||(t=e.tr)).setSelection(n),t}let O=new o.hs("fix-tables");function z(e,t,r,n){let i=e.childCount,s=t.childCount;e:for(let o=0,l=0;o<s;o++){let s=t.child(o);for(let t=l,n=Math.min(i,o+3);t<n;t++)if(e.child(t)==s){l=t+1,r+=s.nodeSize;continue e}n(s,r),l<i&&e.child(l).sameMarkup(s)?z(e.child(l),s,r+1,n):s.nodesBetween(0,s.content.size,n,r+1),r+=s.nodeSize}}function P(e,t){let r,n=(t,n)=>{"table"==t.type.spec.tableRole&&(r=$(e,t,n,r))};return t?t.doc!=e.doc&&z(t.doc,e.doc,0,n):e.doc.descendants(n),r}function $(e,t,r,n){let i,s,o=h.get(t);if(!o.problems)return n;n||(n=e.tr);let l=[];for(let e=0;e<o.height;e++)l.push(0);for(let e=0;e<o.problems.length;e++){let i=o.problems[e];if("collision"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;let s=e.attrs;for(let e=0;e<s.rowspan;e++)l[i.row+e]+=i.n;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,S(s,s.colspan-i.n,i.n))}else if("missing"==i.type)l[i.row]+=i.n;else if("overlong_rowspan"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-i.n})}else if("colwidth mismatch"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,colwidth:i.colwidth})}else if("zero_sized"==i.type){let e=n.mapping.map(r);n.delete(e,e+t.nodeSize)}}for(let e=0;e<l.length;e++)l[e]&&(null==i&&(i=e),s=e);for(let a=0,u=r+1;a<o.height;a++){let r=t.child(a),o=u+r.nodeSize,c=l[a];if(c>0){let t="cell";r.firstChild&&(t=r.firstChild.type.spec.tableRole);let l=[];for(let r=0;r<c;r++){let r=g(e.schema)[t].createAndFill();r&&l.push(r)}let h=(0==a||i==a-1)&&s==a?u+1:o-1;n.insert(n.mapping.map(h),l)}u=o}return n.setMeta(O,{fixTables:!0})}function B(e){let t=e.selection,r=w(e),n=r.node(-1),i=r.start(-1),s=h.get(n);return{...t instanceof D?s.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):s.findCell(r.pos-i),tableStart:i,map:s,table:n}}function q(e,{map:t,tableStart:r,table:n},i){let s=i>0?-1:0;T(t,n,i+s)&&(s=0==i||i==t.width?null:0);for(let o=0;o<t.height;o++){let l=o*t.width+i;if(i>0&&i<t.width&&t.map[l-1]==t.map[l]){let s=t.map[l],a=n.nodeAt(s);e.setNodeMarkup(e.mapping.map(r+s),null,M(a.attrs,i-t.colCount(s))),o+=a.attrs.rowspan-1}else{let a=null==s?g(n.type.schema).cell:n.nodeAt(t.map[l+s]).type,u=t.positionAt(o,i,n);e.insert(e.mapping.map(r+u),a.createAndFill())}}return e}function j(e,t){if(!b(e))return!1;if(t){let r=B(e);t(q(e.tr,r,r.left))}return!0}function H(e,t){if(!b(e))return!1;if(t){let r=B(e);t(q(e.tr,r,r.right))}return!0}function U(e,{map:t,table:r,tableStart:n},i){let s=e.mapping.maps.length;for(let o=0;o<t.height;){let l=o*t.width+i,a=t.map[l],u=r.nodeAt(a),c=u.attrs;if(i>0&&t.map[l-1]==a||i<t.width-1&&t.map[l+1]==a)e.setNodeMarkup(e.mapping.slice(s).map(n+a),null,S(c,i-t.colCount(a)));else{let t=e.mapping.slice(s).map(n+a);e.delete(t,t+u.nodeSize)}o+=c.rowspan}}function V(e,t){if(!b(e))return!1;if(t){let r=B(e),n=e.tr;if(0==r.left&&r.right==r.map.width)return!1;for(let e=r.right-1;U(n,r,e),e!=r.left;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=h.get(e)}t(n)}return!0}function W(e,t,r){var n;let i=g(t.type.schema).header_cell;for(let s=0;s<e.width;s++)if((null==(n=t.nodeAt(e.map[s+r*e.width]))?void 0:n.type)!=i)return!1;return!0}function J(e,{map:t,tableStart:r,table:n},i){let s=r;for(let e=0;e<i;e++)s+=n.child(e).nodeSize;let o=[],l=i>0?-1:0;W(t,n,i+l)&&(l=0==i||i==t.height?null:0);for(let s=0,u=t.width*i;s<t.width;s++,u++)if(i>0&&i<t.height&&t.map[u]==t.map[u-t.width]){let i=t.map[u],o=n.nodeAt(i).attrs;e.setNodeMarkup(r+i,null,{...o,rowspan:o.rowspan+1}),s+=o.colspan-1}else{var a;let e=null==l?g(n.type.schema).cell:null==(a=n.nodeAt(t.map[u+l*t.width]))?void 0:a.type,r=null==e?void 0:e.createAndFill();r&&o.push(r)}return e.insert(s,g(n.type.schema).row.create(null,o)),e}function K(e,t){if(!b(e))return!1;if(t){let r=B(e);t(J(e.tr,r,r.top))}return!0}function G(e,t){if(!b(e))return!1;if(t){let r=B(e);t(J(e.tr,r,r.bottom))}return!0}function Z(e,{map:t,table:r,tableStart:n},i){let s=0;for(let e=0;e<i;e++)s+=r.child(e).nodeSize;let o=s+r.child(i).nodeSize,l=e.mapping.maps.length;e.delete(s+n,o+n);let a=new Set;for(let s=0,o=i*t.width;s<t.width;s++,o++){let u=t.map[o];if(!a.has(u)){if(a.add(u),i>0&&u==t.map[o-t.width]){let t=r.nodeAt(u).attrs;e.setNodeMarkup(e.mapping.slice(l).map(u+n),null,{...t,rowspan:t.rowspan-1}),s+=t.colspan-1}else if(i<t.height&&u==t.map[o+t.width]){let o=r.nodeAt(u),a=o.attrs,c=o.type.create({...a,rowspan:o.attrs.rowspan-1},o.content),h=t.positionAt(i+1,s,r);e.insert(e.mapping.slice(l).map(n+h),c),s+=a.colspan-1}}}}function X(e,t){if(!b(e))return!1;if(t){let r=B(e),n=e.tr;if(0==r.top&&r.bottom==r.map.height)return!1;for(let e=r.bottom-1;Z(n,r,e),e!=r.top;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=h.get(r.table)}t(n)}return!0}function Y(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function Q({width:e,height:t,map:r},n){let i=n.top*e+n.left,s=i,o=(n.bottom-1)*e+n.left,l=i+(n.right-n.left-1);for(let t=n.top;t<n.bottom;t++){if(n.left>0&&r[s]==r[s-1]||n.right<e&&r[l]==r[l+1])return!0;s+=e,l+=e}for(let s=n.left;s<n.right;s++){if(n.top>0&&r[i]==r[i-e]||n.bottom<t&&r[o]==r[o+e])return!0;i++,o++}return!1}function ee(e,t){let r=e.selection;if(!(r instanceof D)||r.$anchorCell.pos==r.$headCell.pos)return!1;let n=B(e),{map:i}=n;if(Q(i,n))return!1;if(t){let r,s,o=e.tr,a={},u=l.FK.empty;for(let e=n.top;e<n.bottom;e++)for(let t=n.left;t<n.right;t++){let l=i.map[e*i.width+t],c=n.table.nodeAt(l);if(!a[l]&&c)if(a[l]=!0,null==r)r=l,s=c;else{Y(c)||(u=u.append(c.content));let e=o.mapping.map(l+n.tableStart);o.delete(e,e+c.nodeSize)}}if(null==r||null==s)return!0;if(o.setNodeMarkup(r+n.tableStart,null,{...M(s.attrs,s.attrs.colspan,n.right-n.left-s.attrs.colspan),rowspan:n.bottom-n.top}),u.size>0){let e=r+1+s.content.size,t=Y(s)?r+1:e;o.replaceWith(t+n.tableStart,e+n.tableStart,u)}o.setSelection(new D(o.doc.resolve(r+n.tableStart))),t(o)}return!0}function et(e,t){let r=g(e.schema);return er(({node:e})=>r[e.type.spec.tableRole])(e,t)}function er(e){return(t,r)=>{let n,i,s=t.selection;if(s instanceof D){if(s.$anchorCell.pos!=s.$headCell.pos)return!1;n=s.$anchorCell.nodeAfter,i=s.$anchorCell.pos}else{var o;if(!(n=k(s.$from)))return!1;i=null==(o=y(s.$from))?void 0:o.pos}if(null==n||null==i||1==n.attrs.colspan&&1==n.attrs.rowspan)return!1;if(r){let o,l=n.attrs,a=[],u=l.colwidth;l.rowspan>1&&(l={...l,rowspan:1}),l.colspan>1&&(l={...l,colspan:1});let c=B(t),h=t.tr;for(let e=0;e<c.right-c.left;e++)a.push(u?{...l,colwidth:u&&u[e]?[u[e]]:null}:l);for(let t=c.top;t<c.bottom;t++){let r=c.map.positionAt(t,c.left,c.table);t==c.top&&(r+=n.nodeSize);for(let i=c.left,s=0;i<c.right;i++,s++)(i!=c.left||t!=c.top)&&h.insert(o=h.mapping.map(r+c.tableStart,1),e({node:n,row:t,col:i}).createAndFill(a[s]))}h.setNodeMarkup(i,e({node:n,row:c.top,col:c.left}),a[0]),s instanceof D&&h.setSelection(new D(h.doc.resolve(s.$anchorCell.pos),o?h.doc.resolve(o):void 0)),r(h)}return!0}}function en(e,t){return function(r,n){if(!b(r))return!1;let i=w(r);if(i.nodeAfter.attrs[e]===t)return!1;if(n){let s=r.tr;r.selection instanceof D?r.selection.forEachCell((r,n)=>{r.attrs[e]!==t&&s.setNodeMarkup(n,null,{...r.attrs,[e]:t})}):s.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),n(s)}return!0}}function ei(e){return function(t,r){if(!b(t))return!1;if(r){let n=g(t.schema),i=B(t),s=t.tr,o=i.map.cellsInRect("column"==e?{left:i.left,top:0,right:i.right,bottom:i.map.height}:"row"==e?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),l=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)l[e].type==n.header_cell&&s.setNodeMarkup(i.tableStart+o[e],n.cell,l[e].attrs);if(0===s.steps.length)for(let e=0;e<o.length;e++)s.setNodeMarkup(i.tableStart+o[e],n.header_cell,l[e].attrs);r(s)}return!0}}function es(e,t,r){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 i=t.table.nodeAt(n[e]);if(i&&i.type!==r.header_cell)return!1}return!0}function eo(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?ei(e):function(t,r){if(!b(t))return!1;if(r){let n=g(t.schema),i=B(t),s=t.tr,o=es("row",i,n),l=es("column",i,n),a=+("column"===e?!!o:"row"===e&&!!l),u="column"==e?{left:0,top:a,right:1,bottom:i.map.height}:"row"==e?{left:a,top:0,right:i.map.width,bottom:1}:i,c="column"==e?l?n.cell:n.header_cell:"row"==e?o?n.cell:n.header_cell:n.cell;i.map.cellsInRect(u).forEach(e=>{let t=e+i.tableStart,r=s.doc.nodeAt(t);r&&s.setNodeMarkup(t,c,r.attrs)}),r(s)}return!0}}eo("row",{useDeprecatedLogic:!0}),eo("column",{useDeprecatedLogic:!0});let el=eo("cell",{useDeprecatedLogic:!0});function ea(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,r=e.before();t>=0;t--){let n=e.node(-1).child(t),i=n.lastChild;if(i)return r-1-i.nodeSize;r-=n.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let r=e.indexAfter(-1),n=e.after();r<t.childCount;r++){let e=t.child(r);if(e.childCount)return n+1;n+=e.nodeSize}}return null}function eu(e){return function(t,r){if(!b(t))return!1;let n=ea(w(t),e);if(null==n)return!1;if(r){let e=t.doc.resolve(n);r(t.tr.setSelection(o.U3.between(e,C(e))).scrollIntoView())}return!0}}function ec(e,t){let r=e.selection.$anchor;for(let n=r.depth;n>0;n--)if("table"==r.node(n).type.spec.tableRole)return t&&t(e.tr.delete(r.before(n),r.after(n)).scrollIntoView()),!0;return!1}function eh(e,t){let r=e.selection;if(!(r instanceof D))return!1;if(t){let n=e.tr,i=g(e.schema).cell.createAndFill().content;r.forEachCell((e,t)=>{e.content.eq(i)||n.replace(n.mapping.map(t+1),n.mapping.map(t+e.nodeSize-1),new l.Ji(i,0,0))}),n.docChanged&&t(n)}return!0}function ed(e){if(0===e.size)return null;let{content:t,openStart:r,openEnd:n}=e;for(;1==t.childCount&&(r>0&&n>0||"table"==t.child(0).type.spec.tableRole);)r--,n--,t=t.child(0).content;let i=t.child(0),s=i.type.spec.tableRole,o=i.type.schema,a=[];if("row"==s)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,s=e?0:Math.max(0,r-1),u=e<t.childCount-1?0:Math.max(0,n-1);(s||u)&&(i=ef(g(o).row,new l.Ji(i,s,u)).content),a.push(i)}else{if("cell"!=s&&"header_cell"!=s)return null;a.push(r||n?ef(g(o).row,new l.Ji(t,r,n)).content:t)}return ep(o,a)}function ep(e,t){let r=[];for(let e=0;e<t.length;e++){let n=t[e];for(let t=n.childCount-1;t>=0;t--){let{rowspan:i,colspan:s}=n.child(t).attrs;for(let t=e;t<e+i;t++)r[t]=(r[t]||0)+s}}let n=0;for(let e=0;e<r.length;e++)n=Math.max(n,r[e]);for(let i=0;i<r.length;i++)if(i>=t.length&&t.push(l.FK.empty),r[i]<n){let s=g(e).cell.createAndFill(),o=[];for(let e=r[i];e<n;e++)o.push(s);t[i]=t[i].append(l.FK.from(o))}return{height:t.length,width:n,rows:t}}function ef(e,t){let r=e.createAndFill();return new c.dL(r).replace(0,r.content.size,t).doc}function em({width:e,height:t,rows:r},n,i){if(e!=n){let t=[],i=[];for(let e=0;e<r.length;e++){let s=r[e],o=[];for(let r=t[e]||0,i=0;r<n;i++){let l=s.child(i%s.childCount);r+l.attrs.colspan>n&&(l=l.type.createChecked(S(l.attrs,l.attrs.colspan,r+l.attrs.colspan-n),l.content)),o.push(l),r+=l.attrs.colspan;for(let r=1;r<l.attrs.rowspan;r++)t[e+r]=(t[e+r]||0)+l.attrs.colspan}i.push(l.FK.from(o))}r=i,e=n}if(t!=i){let e=[];for(let n=0,s=0;n<i;n++,s++){let o=[],a=r[s%t];for(let e=0;e<a.childCount;e++){let t=a.child(e);n+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),o.push(t)}e.push(l.FK.from(o))}r=e,t=i}return{width:e,height:t,rows:r}}function eg(e,t,r,n,i,s,o){let a,u,c=g(e.doc.type.schema);if(i>t.width)for(let s=0,l=0;s<t.height;s++){let h,d=r.child(s);l+=d.nodeSize;let p=[];h=null==d.lastChild||d.lastChild.type==c.cell?a||(a=c.cell.createAndFill()):u||(u=c.header_cell.createAndFill());for(let e=t.width;e<i;e++)p.push(h);e.insert(e.mapping.slice(o).map(l-1+n),p)}if(s>t.height){let h=[];for(let e=0,n=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&r.nodeAt(t.map[n+e]).type==c.header_cell;h.push(i?u||(u=c.header_cell.createAndFill()):a||(a=c.cell.createAndFill()))}let d=c.row.create(null,l.FK.from(h)),p=[];for(let e=t.height;e<s;e++)p.push(d);e.insert(e.mapping.slice(o).map(n+r.nodeSize-2),p)}return!!(a||u)}function e_(e,t,r,n,i,s,o,l){if(0==o||o==t.height)return!1;let a=!1;for(let u=i;u<s;u++){let i=o*t.width+u,s=t.map[i];if(t.map[i-t.width]==s){a=!0;let i=r.nodeAt(s),{top:c,left:h}=t.findCell(s);e.setNodeMarkup(e.mapping.slice(l).map(s+n),null,{...i.attrs,rowspan:o-c}),e.insert(e.mapping.slice(l).map(t.positionAt(o,h,r)),i.type.createAndFill({...i.attrs,rowspan:c+i.attrs.rowspan-o})),u+=i.attrs.colspan-1}}return a}function ey(e,t,r,n,i,s,o,l){if(0==o||o==t.width)return!1;let a=!1;for(let u=i;u<s;u++){let i=u*t.width+o,s=t.map[i];if(t.map[i-1]==s){a=!0;let i=r.nodeAt(s),c=t.colCount(s),h=e.mapping.slice(l).map(s+n);e.setNodeMarkup(h,null,S(i.attrs,o-c,i.attrs.colspan-(o-c))),e.insert(h+i.nodeSize,i.type.createAndFill(S(i.attrs,0,o-c))),u+=i.attrs.rowspan-1}}return a}function ek(e,t,r,n,i){let s=r?e.doc.nodeAt(r-1):e.doc;if(!s)throw Error("No table found");let o=h.get(s),{top:a,left:u}=n,c=u+i.width,d=a+i.height,p=e.tr,f=0;function m(){if(!(s=r?p.doc.nodeAt(r-1):p.doc))throw Error("No table found");o=h.get(s),f=p.mapping.maps.length}eg(p,o,s,r,c,d,0)&&m(),e_(p,o,s,r,u,c,a,f)&&m(),e_(p,o,s,r,u,c,d,f)&&m(),ey(p,o,s,r,a,d,u,f)&&m(),ey(p,o,s,r,a,d,c,f)&&m();for(let e=a;e<d;e++){let t=o.positionAt(e,u,s),n=o.positionAt(e,c,s);p.replace(p.mapping.slice(f).map(t+r),p.mapping.slice(f).map(n+r),new l.Ji(i.rows[e-a],0,0))}m(),p.setSelection(new D(p.doc.resolve(r+o.positionAt(a,u,s)),p.doc.resolve(r+o.positionAt(d-1,c-1,s)))),t(p)}let eb=(0,u.K)({ArrowLeft:ex("horiz",-1),ArrowRight:ex("horiz",1),ArrowUp:ex("vert",-1),ArrowDown:ex("vert",1),"Shift-ArrowLeft":ev("horiz",-1),"Shift-ArrowRight":ev("horiz",1),"Shift-ArrowUp":ev("vert",-1),"Shift-ArrowDown":ev("vert",1),Backspace:eh,"Mod-Backspace":eh,Delete:eh,"Mod-Delete":eh});function ew(e,t,r){return!r.eq(e.selection)&&(t&&t(e.tr.setSelection(r).scrollIntoView()),!0)}function ex(e,t){return(r,n,i)=>{if(!i)return!1;let s=r.selection;if(s instanceof D)return ew(r,n,o.LN.near(s.$headCell,t));if("horiz"!=e&&!s.empty)return!1;let l=eS(i,e,t);if(null==l)return!1;if("horiz"==e)return ew(r,n,o.LN.near(r.doc.resolve(s.head+t),t));{let i,s=r.doc.resolve(l),a=E(s,e,t);return i=a?o.LN.near(a,1):t<0?o.LN.near(r.doc.resolve(s.before(-1)),-1):o.LN.near(r.doc.resolve(s.after(-1)),1),ew(r,n,i)}}}function ev(e,t){return(r,n,i)=>{let s;if(!i)return!1;let o=r.selection;if(o instanceof D)s=o;else{let n=eS(i,e,t);if(null==n)return!1;s=new D(r.doc.resolve(n))}let l=E(s.$headCell,e,t);return!!l&&ew(r,n,new D(s.$anchorCell,l))}}function eC(e,t){let r=y(e.state.doc.resolve(t));return!!r&&(e.dispatch(e.state.tr.setSelection(new D(r))),!0)}function eA(e,t,r){if(!b(e.state))return!1;let n=ed(r),i=e.state.selection;if(i instanceof D){n||(n={width:1,height:1,rows:[l.FK.from(ef(g(e.state.schema).cell,r))]});let t=i.$anchorCell.node(-1),s=i.$anchorCell.start(-1),o=h.get(t).rectBetween(i.$anchorCell.pos-s,i.$headCell.pos-s);return n=em(n,o.right-o.left,o.bottom-o.top),ek(e.state,e.dispatch,s,o,n),!0}if(!n)return!1;{let t=w(e.state),r=t.start(-1);return ek(e.state,e.dispatch,r,h.get(t.node(-1)).findCell(t.pos-r),n),!0}}function eE(e,t){var r;let n;if(0!=t.button||t.ctrlKey||t.metaKey)return;let i=eM(e,t.target);if(t.shiftKey&&e.state.selection instanceof D)s(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=y(e.state.selection.$anchor))&&(null==(r=eT(e,t))?void 0:r.pos)!=n.pos)s(n,t),t.preventDefault();else if(!i)return;function s(t,r){let n=eT(e,r),i=null==_.getState(e.state);if(!n||!A(t,n))if(!i)return;else n=t;let s=new D(t,n);if(i||!e.state.selection.eq(s)){let r=e.state.tr.setSelection(s);i&&r.setMeta(_,t.pos),e.dispatch(r)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",l),null!=_.getState(e.state)&&e.dispatch(e.state.tr.setMeta(_,-1))}function l(r){let n,l=r,a=_.getState(e.state);if(null!=a)n=e.state.doc.resolve(a);else if(eM(e,l.target)!=i&&!(n=eT(e,t)))return o();n&&s(n,l)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",l)}function eS(e,t,r){if(!(e.state.selection instanceof o.U3))return null;let{$head:n}=e.state.selection;for(let i=n.depth-1;i>=0;i--){let s=n.node(i);if((r<0?n.index(i):n.indexAfter(i))!=(r<0?0:s.childCount))break;if("cell"==s.type.spec.tableRole||"header_cell"==s.type.spec.tableRole){let s=n.before(i),o="vert"==t?r>0?"down":"up":r>0?"right":"left";return e.endOfTextblock(o)?s:null}}return null}function eM(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function eT(e,t){let r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return null;let{inside:n,pos:i}=r;return n>=0&&y(e.state.doc.resolve(n))||y(e.state.doc.resolve(i))}var eD=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")),eF(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,eF(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function eF(e,t,r,n,i,s){let o=0,l=!0,a=t.firstChild,u=e.firstChild;if(u){for(let e=0,r=0;e<u.childCount;e++){let{colspan:c,colwidth:h}=u.child(e).attrs;for(let e=0;e<c;e++,r++){let u=i==r?s:h&&h[e],c=u?u+"px":"";if(o+=u||n,u||(l=!1),a)a.style.width!=c&&(a.style.width=c),a=a.nextSibling;else{let e=document.createElement("col");e.style.width=c,t.appendChild(e)}}}for(;a;){var c;let e=a.nextSibling;null==(c=a.parentNode)||c.removeChild(a),a=e}l?(r.style.width=o+"px",r.style.minWidth=""):(r.style.width="",r.style.minWidth=o+"px")}}let eI=new o.hs("tableColumnResizing");function eL({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:r=100,View:n=eD,lastColumnResizable:i=!0}={}){let s=new o.k_({key:eI,state:{init(e,t){var i;let o=null==(i=s.spec)||null==(i=i.props)?void 0:i.nodeViews,l=g(t.schema).table.name;return n&&o&&(o[l]=(e,t)=>new n(e,r,t)),new eR(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=eI.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,r)=>{eN(t,r,e,i)},mouseleave:e=>{eO(e)},mousedown:(e,n)=>{ez(e,n,t,r)}},decorations:e=>{let t=eI.getState(e);if(t&&t.activeHandle>-1)return eW(e,t.activeHandle)},nodeViews:{}}});return s}var eR=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let r=this,n=t.getMeta(eI);if(n&&null!=n.setHandle)return new e(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new e(r.activeHandle,n.setDragging);if(r.activeHandle>-1&&t.docChanged){let n=t.mapping.map(r.activeHandle,-1);return v(t.doc.resolve(n))||(n=-1),new e(n,r.dragging)}return r}};function eN(e,t,r,n){if(!e.editable)return;let i=eI.getState(e.state);if(i&&!i.dragging){let s=e$(t.target),o=-1;if(s){let{left:n,right:i}=s.getBoundingClientRect();t.clientX-n<=r?o=eB(e,t,"left",r):i-t.clientX<=r&&(o=eB(e,t,"right",r))}if(o!=i.activeHandle){if(!n&&-1!==o){let t=e.state.doc.resolve(o),r=t.node(-1),n=h.get(r),i=t.start(-1);if(n.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==n.width-1)return}ej(e,o)}}}function eO(e){if(!e.editable)return;let t=eI.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&ej(e,-1)}function ez(e,t,r,n){var i;if(!e.editable)return!1;let s=null!=(i=e.dom.ownerDocument.defaultView)?i:window,o=eI.getState(e.state);if(!o||-1==o.activeHandle||o.dragging)return!1;let l=e.state.doc.nodeAt(o.activeHandle),a=eP(e,o.activeHandle,l.attrs);function u(t){s.removeEventListener("mouseup",u),s.removeEventListener("mousemove",c);let n=eI.getState(e.state);(null==n?void 0:n.dragging)&&(eH(e,n.activeHandle,eq(n.dragging,t,r)),e.dispatch(e.state.tr.setMeta(eI,{setDragging:null})))}function c(t){if(!t.which)return u(t);let i=eI.getState(e.state);if(i&&i.dragging){let s=eq(i.dragging,t,r);eU(e,i.activeHandle,s,n)}}return e.dispatch(e.state.tr.setMeta(eI,{setDragging:{startX:t.clientX,startWidth:a}})),eU(e,o.activeHandle,a,n),s.addEventListener("mouseup",u),s.addEventListener("mousemove",c),t.preventDefault(),!0}function eP(e,t,{colspan:r,colwidth:n}){let i=n&&n[n.length-1];if(i)return i;let s=e.domAtPos(t),o=s.node.childNodes[s.offset].offsetWidth,l=r;if(n)for(let e=0;e<r;e++)n[e]&&(o-=n[e],l--);return o/l}function e$(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function eB(e,t,r,n){let i="right"==r?-n:n,s=e.posAtCoords({left:t.clientX+i,top:t.clientY});if(!s)return -1;let{pos:o}=s,l=y(e.state.doc.resolve(o));if(!l)return -1;if("right"==r)return l.pos;let a=h.get(l.node(-1)),u=l.start(-1),c=a.map.indexOf(l.pos-u);return c%a.width==0?-1:u+a.map[c-1]}function eq(e,t,r){let n=t.clientX-e.startX;return Math.max(r,e.startWidth+n)}function ej(e,t){e.dispatch(e.state.tr.setMeta(eI,{setHandle:t}))}function eH(e,t,r){let n=e.state.doc.resolve(t),i=n.node(-1),s=h.get(i),o=n.start(-1),l=s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1,a=e.state.tr;for(let e=0;e<s.height;e++){let t=e*s.width+l;if(e&&s.map[t]==s.map[t-s.width])continue;let n=s.map[t],u=i.nodeAt(n).attrs,c=1==u.colspan?0:l-s.colCount(n);if(u.colwidth&&u.colwidth[c]==r)continue;let h=u.colwidth?u.colwidth.slice():eV(u.colspan);h[c]=r,a.setNodeMarkup(o+n,null,{...u,colwidth:h})}a.docChanged&&e.dispatch(a)}function eU(e,t,r,n){let i=e.state.doc.resolve(t),s=i.node(-1),o=i.start(-1),l=h.get(s).colCount(i.pos-o)+i.nodeAfter.attrs.colspan-1,a=e.domAtPos(i.start(-1)).node;for(;a&&"TABLE"!=a.nodeName;)a=a.parentNode;a&&eF(s,a.firstChild,a,n,l,r)}function eV(e){return Array(e).fill(0)}function eW(e,t){let r=[],n=e.doc.resolve(t),i=n.node(-1);if(!i)return a.zF.empty;let s=h.get(i),o=n.start(-1),l=s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1;for(let t=0;t<s.height;t++){let n=l+t*s.width;if((l==s.width-1||s.map[n]!=s.map[n+1])&&(0==t||s.map[n]!=s.map[n-s.width])){var u;let t=s.map[n],l=o+t+i.nodeAt(t).nodeSize-1,c=document.createElement("div");c.className="column-resize-handle",(null==(u=eI.getState(e))?void 0:u.dragging)&&r.push(a.NZ.node(o+t,o+t+i.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),r.push(a.NZ.widget(l,c))}}return a.zF.create(e.doc,r)}function eJ({allowTableNodeSelection:e=!1}={}){return new o.k_({key:_,state:{init:()=>null,apply(e,t){let r=e.getMeta(_);if(null!=r)return -1==r?null:r;if(null==t||!e.docChanged)return t;let{deleted:n,pos:i}=e.mapping.mapResult(t);return n?null:i}},props:{decorations:I,handleDOMEvents:{mousedown:eE},createSelectionBetween:e=>null!=_.getState(e.state)?e.state.selection:null,handleTripleClick:eC,handleKeyDown:eb,handlePaste:eA},appendTransaction:(t,r,n)=>N(n,P(n,r),e)})}function eK(e){return"left"===e||"right"===e||"center"===e?e:null}function eG(e){let t=(e.style.textAlign||"").trim().toLowerCase(),r=(e.getAttribute("align")||"").trim().toLowerCase();return eK(t||r)}function eZ(e){return eK(null==e?void 0:e.align)}function eX(){return{default:null,parseHTML:e=>eG(e),renderHTML:e=>e.align?{style:`text-align: ${e.align}`}:{}}}var eY=s.bP.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{var t,r;let n=e.getAttribute("colwidth"),i=n?n.split(",").map(e=>parseInt(e,10)):null;if(!i){let n=null==(t=e.closest("table"))?void 0:t.querySelectorAll("colgroup > col"),i=Array.from((null==(r=e.parentElement)?void 0:r.children)||[]).indexOf(e);if(i&&i>-1&&n&&n[i]){let e=n[i].getAttribute("width");return e?[parseInt(e,10)]:null}}return i}},align:eX()}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",(0,s.KV)(this.options.HTMLAttributes,e),0]}}),eQ=s.bP.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}},align:eX()}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",(0,s.KV)(this.options.HTMLAttributes,e),0]}}),e0=s.bP.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",(0,s.KV)(this.options.HTMLAttributes,e),0]}});function e1(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function e2(e,t,r,n,i,s){var o;let l=0,a=!0,u=t.firstChild,c=e.firstChild;if(null!==c)for(let e=0,r=0;e<c.childCount;e+=1){let{colspan:o,colwidth:h}=c.child(e).attrs;for(let e=0;e<o;e+=1,r+=1){let o=i===r?s:h&&h[e],c=o?`${o}px`:"";if(l+=o||n,o||(a=!1),u){if(u.style.width!==c){let[e,t]=e1(n,o);u.style.setProperty(e,t)}u=u.nextSibling}else{let e=document.createElement("col"),[r,i]=e1(n,o);e.style.setProperty(r,i),t.appendChild(e)}}}for(;u;){let e=u.nextSibling;null==(o=u.parentNode)||o.removeChild(u),u=e}let h=e.attrs.style&&"string"==typeof e.attrs.style&&/\bwidth\s*:/i.test(e.attrs.style);a&&!h?(r.style.width=`${l}px`,r.style.minWidth=""):(r.style.width="",r.style.minWidth=`${l}px`)}var e3=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),e.attrs.style&&(this.table.style.cssText=e.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),e2(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,e2(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){let t=e.target,r=this.dom.contains(t),n=this.contentDOM.contains(t);return!!r&&!n&&("attributes"===e.type||"childList"===e.type||"characterData"===e.type)}};function e5(e,t,r,n){let i=0,s=!0,o=[],l=e.firstChild;if(!l)return{};for(let e=0,a=0;e<l.childCount;e+=1){let{colspan:u,colwidth:c}=l.child(e).attrs;for(let e=0;e<u;e+=1,a+=1){let l=r===a?n:c&&c[e];i+=l||t,l||(s=!1);let[u,h]=e1(t,l);o.push(["col",{style:`${u}: ${h}`}])}}return{colgroup:["colgroup",{},...o],tableWidth:s?`${i}px`:"",tableMinWidth:s?"":`${i}px`}}function e4(e,t){return t?e.createChecked(null,t):e.createAndFill()}function e6(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};return Object.keys(e.nodes).forEach(r=>{let n=e.nodes[r];n.spec.tableRole&&(t[n.spec.tableRole]=n)}),e.cached.tableNodeTypes=t,t}function e8(e,t,r,n,i){let s=e6(e),o=[],l=[];for(let e=0;e<r;e+=1){let e=e4(s.cell,i);if(e&&l.push(e),n){let e=e4(s.header_cell,i);e&&o.push(e)}}let a=[];for(let e=0;e<t;e+=1)a.push(s.row.createChecked(null,n&&0===e?o:l));return s.table.createChecked(null,a)}function e9(e){return e instanceof D}var e7=({editor:e})=>{let{selection:t}=e.state;if(!e9(t))return!1;let r=0,n=(0,s.eL)(t.ranges[0].$from,e=>"table"===e.type.name);return null==n||n.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(r+=1)}),r===t.ranges.length&&(e.commands.deleteTable(),!0)},te="\x1f";function tt(e){return(e||"").replace(/\s+/g," ").trim()}var tr=function(e,t,r={}){var n;let i=null!=(n=r.cellLineSeparator)?n:te;if(!e||!e.content||0===e.content.length)return"";let s=[];e.content.forEach(e=>{let r=[];e.content&&e.content.forEach(e=>{let n="",s=tt(n=e.content&&Array.isArray(e.content)&&e.content.length>1?e.content.map(e=>t.renderChildren(e)).join(i):e.content?t.renderChildren(e.content):""),o="tableHeader"===e.type,l=eZ(e.attrs);r.push({text:s,isHeader:o,align:l})}),s.push(r)});let o=s.reduce((e,t)=>Math.max(e,t.length),0);if(0===o)return"";let l=Array(o).fill(0);s.forEach(e=>{var t;for(let r=0;r<o;r+=1){let n=((null==(t=e[r])?void 0:t.text)||"").length;n>l[r]&&(l[r]=n),l[r]<3&&(l[r]=3)}});let a=(e,t)=>e+" ".repeat(Math.max(0,t-e.length)),u=s[0],c=u.some(e=>e.isHeader),h=Array(o).fill(null);s.forEach(e=>{var t;for(let r=0;r<o;r+=1)!h[r]&&(null==(t=e[r])?void 0:t.align)&&(h[r]=e[r].align)});let d="\n",p=Array(o).fill(0).map((e,t)=>c&&u[t]&&u[t].text||"");return d+=`| ${p.map((e,t)=>a(e,l[t])).join(" | ")} |
|
|
2
2
|
| ${l.map((e,t)=>{let r=Math.max(3,e),n=h[t];return"left"===n?`:${"-".repeat(r)}`:"right"===n?`${"-".repeat(r)}:`:"center"===n?`:${"-".repeat(r)}:`:"-".repeat(r)}).join(" | ")} |
|
|
3
3
|
`,(c?s.slice(1):s).forEach(e=>{d+=`| ${Array(o).fill(0).map((t,r)=>a(e[r]&&e[r].text||"",l[r])).join(" | ")} |
|
|
4
|
-
`}),d},tn=s.bP.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:e3,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:r,tableWidth:n,tableMinWidth:i}=e5(e,this.options.cellMinWidth),o=t.style;function l(){return o||(n?`width: ${n}`:`min-width: ${i}`)}let a=["table",(0,s.KV)(this.options.HTMLAttributes,t,{style:l()}),r,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},a]:a},parseMarkdown:(e,t)=>{let r=[],n=Array.isArray(e.align)?e.align:[];if(e.header){let i=[];e.header.forEach((e,r)=>{var s;let o=eK(null!=(s=n[r])?s:e.align),l=o?{align:o}:{};i.push(t.createNode("tableHeader",l,[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),r.push(t.createNode("tableRow",{},i))}return e.rows&&e.rows.forEach(e=>{let i=[];e.forEach((e,r)=>{var s;let o=eK(null!=(s=n[r])?s:e.align),l=o?{align:o}:{};i.push(t.createNode("tableCell",l,[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),r.push(t.createNode("tableRow",{},i))}),t.createNode("table",void 0,r)},renderMarkdown:(e,t)=>tr(e,t),addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:r=!0}={})=>({tr:n,dispatch:i,editor:s})=>{let l=e8(s.schema,e,t,r);if(i){let e=n.selection.from+1;n.replaceSelectionWith(l).scrollIntoView().setSelection(o.U3.near(n.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>j(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>H(e,t),deleteColumn:()=>({state:e,dispatch:t})=>V(e,t),addRowBefore:()=>({state:e,dispatch:t})=>K(e,t),addRowAfter:()=>({state:e,dispatch:t})=>G(e,t),deleteRow:()=>({state:e,dispatch:t})=>X(e,t),deleteTable:()=>({state:e,dispatch:t})=>ec(e,t),mergeCells:()=>({state:e,dispatch:t})=>ee(e,t),splitCell:()=>({state:e,dispatch:t})=>et(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>eo("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>eo("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>el(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!ee(e,t)||et(e,t),setCellAttribute:(e,t)=>({state:r,dispatch:n})=>en(e,t)(r,n),goToNextCell:()=>({state:e,dispatch:t})=>eu(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>eu(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&P(e),!0),setCellSelection:e=>({tr:t,dispatch:r})=>{if(r){let r=D.create(t.doc,e.anchorCell,e.headCell);t.setSelection(r)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:e7,"Mod-Backspace":e7,Delete:e7,"Mod-Delete":e7}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[eL({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],eJ({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:(0,s.gk)((0,s.iI)(e,"tableRole",t))}}});s.YY.create({name:"tableKit",addExtensions(){let e=[];return!1!==this.options.table&&e.push(tn.configure(this.options.table)),!1!==this.options.tableCell&&e.push(eY.configure(this.options.tableCell)),!1!==this.options.tableHeader&&e.push(eQ.configure(this.options.tableHeader)),!1!==this.options.tableRow&&e.push(e0.configure(this.options.tableRow)),e}})},6268:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A0});var n=r(5989)},8242:(e,t,r)=>{"use strict";r.d(t,{$L:()=>Y,Ln:()=>C,N0:()=>K,Um:()=>X,Wg:()=>A,X9:()=>m,Ys:()=>w,dL:()=>eg,jP:()=>F,n9:()=>V,oM:()=>L,zy:()=>H});var n=r(27050);let i=65535,s=65536;function o(e,t){return e+t*s}function l(e){return e&i}function a(e){return(e-(e&i))/s}let u=1,c=2,h=4,d=8;class p{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&d)>0}get deletedBefore(){return(this.delInfo&(u|h))>0}get deletedAfter(){return(this.delInfo&(c|h))>0}get deletedAcross(){return(this.delInfo&h)>0}}class f{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&f.empty)return f.empty}recover(e){let t=0,r=l(e);if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+a(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?n:0);if(a>e)break;let f=this.ranges[l+i],m=this.ranges[l+s],g=a+f;if(e<=g){let i=f?e==a?-1:e==g?1:t:t,s=a+n+(i<0?0:m);if(r)return s;let _=e==(t<0?a:g)?null:o(l/3,e-a),y=e==a?c:e==g?u:h;return(t<0?e!=a:e!=g)&&(y|=d),new p(s,y,_)}n+=m-f}return r?e+n:new p(e+n,0,null)}touches(e,t){let r=0,n=l(t),i=this.inverted?2:1,s=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?r:0);if(o>e)break;let l=this.ranges[t+i];if(e<=o+l&&t==3*n)return!0;r+=this.ranges[t+s]-l}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let s=this.ranges[n],o=s-(this.inverted?i:0),l=s+(this.inverted?0:i),a=this.ranges[n+t],u=this.ranges[n+r];e(o,o+a,l,l+u),i+=u-a}}invert(){return new f(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?f.empty:new f(e<0?[0,-e,0]:[0,0,e])}}f.empty=new f([]);class m{constructor(e,t,r=0,n=e?e.length:0){this.mirror=t,this.from=r,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new m(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new m;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this._maps[t].recover(i.recover);continue}}n|=i.delInfo,e=i.pos}return r?e:new p(e,n,null)}}let g=Object.create(null);class _{getMap(){return f.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=g[t.stepType];if(!r)throw RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in g)throw RangeError("Duplicate use of step JSON ID "+e);return g[e]=t,t.prototype.jsonID=e,t}}class y{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new y(e,null)}static fail(e){return new y(null,e)}static fromReplace(e,t,r,i){try{return y.ok(e.replace(t,r,i))}catch(e){if(e instanceof n.vI)return y.fail(e.message);throw e}}}function k(e,t,r){let i=[];for(let n=0;n<e.childCount;n++){let s=e.child(n);s.content.size&&(s=s.copy(k(s.content,t,s))),s.isInline&&(s=t(s,r,n)),i.push(s)}return n.FK.fromArray(i)}class b extends _{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new n.Ji(k(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return y.fromReplace(e,this.from,this.to,s)}invert(){return new w(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new b(t.pos,r.pos,this.mark)}merge(e){return e instanceof b&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new b(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new b(t.from,t.to,e.markFromJSON(t.mark))}}_.jsonID("addMark",b);class w extends _{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new n.Ji(k(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return y.fromReplace(e,this.from,this.to,r)}invert(){return new b(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new w(t.pos,r.pos,this.mark)}merge(e){return e instanceof w&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new w(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new w(t.from,t.to,e.markFromJSON(t.mark))}}_.jsonID("removeMark",w);class x extends _{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new x(this.pos,t.marks[r]);return new x(this.pos,this.mark)}}return new v(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new x(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new x(t.pos,e.markFromJSON(t.mark))}}_.jsonID("addNodeMark",x);class v extends _{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new x(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new v(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new v(t.pos,e.markFromJSON(t.mark))}}_.jsonID("removeNodeMark",v);class C extends _{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&E(e,this.from,this.to)?y.fail("Structure replace would overwrite content"):y.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new f([this.from,this.to-this.from,this.slice.size])}invert(e){return new C(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&C.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new C(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof C)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new C(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new C(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new C(t.from,t.to,n.Ji.fromJSON(e,t.slice),!!t.structure)}}C.MAP_BIAS=1,_.jsonID("replace",C);class A extends _{constructor(e,t,r,n,i,s,o=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=s,this.structure=o}apply(e){if(this.structure&&(E(e,this.from,this.gapFrom)||E(e,this.gapTo,this.to)))return y.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return y.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?y.fromReplace(e,this.from,this.to,r):y.fail("Content does not fit in gap")}getMap(){return new f([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new A(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||i>r.pos?null:new A(t.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new A(t.from,t.to,t.gapFrom,t.gapTo,n.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function E(e,t,r){let n=e.resolve(t),i=r-t,s=n.depth;for(;i>0&&s>0&&n.indexAfter(s)==n.node(s).childCount;)s--,i--;if(i>0){let e=n.node(s).maybeChild(n.indexAfter(s));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function S(e,t,r,n){let i,s,o=[],l=[];e.doc.nodesBetween(t,r,(e,a,u)=>{if(!e.isInline)return;let c=e.marks;if(!n.isInSet(c)&&u.type.allowsMarkType(n.type)){let u=Math.max(a,t),h=Math.min(a+e.nodeSize,r),d=n.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(d)||(i&&i.to==u&&i.mark.eq(c[e])?i.to=h:o.push(i=new w(u,h,c[e])));s&&s.to==u?s.to=h:l.push(s=new b(u,h,n))}}),o.forEach(t=>e.step(t)),l.forEach(t=>e.step(t))}function M(e,t,r,i){let s=[],o=0;e.doc.nodesBetween(t,r,(e,l)=>{if(!e.isInline)return;o++;let a=null;if(i instanceof n.sX){let t=e.marks,r;for(;r=i.isInSet(t);)(a||(a=[])).push(r),t=r.removeFromSet(t)}else i?i.isInSet(e.marks)&&(a=[i]):a=e.marks;if(a&&a.length){let n=Math.min(l+e.nodeSize,r);for(let e=0;e<a.length;e++){let r=a[e],i;for(let e=0;e<s.length;e++){let t=s[e];t.step==o-1&&r.eq(s[e].style)&&(i=t)}i?(i.to=n,i.step=o):s.push({style:r,from:Math.max(l,t),to:n,step:o})}}}),s.forEach(t=>e.step(new w(t.from,t.to,t.style)))}function T(e,t,r,i=r.contentMatch,s=!0){let o=e.doc.nodeAt(t),l=[],a=t+1;for(let t=0;t<o.childCount;t++){let u=o.child(t),c=a+u.nodeSize,h=i.matchType(u.type);if(h){i=h;for(let t=0;t<u.marks.length;t++)r.allowsMarkType(u.marks[t].type)||e.step(new w(a,c,u.marks[t]));if(s&&u.isText&&"pre"!=r.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(u.text);)i||(i=new n.Ji(n.FK.from(r.schema.text(" ",r.allowedMarks(u.marks))),0,0)),l.push(new C(a+e.index,a+e.index+e[0].length,i))}}else l.push(new C(a,c,n.Ji.empty));a=c}if(!i.validEnd){let t=i.fillBefore(n.FK.empty,!0);e.replace(a,a,new n.Ji(t,0,0))}for(let t=l.length-1;t>=0;t--)e.step(l[t])}function D(e,t,r){return(0==t||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function F(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,n=0,i=0;;--r){let s=e.$from.node(r),o=e.$from.index(r)+n,l=e.$to.indexAfter(r)-i;if(r<e.depth&&s.canReplace(o,l,t))return r;if(0==r||s.type.spec.isolating||!D(s,o,l))break;o&&(n=1),l<s.childCount&&(i=1)}return null}function I(e,t,r){let{$from:i,$to:s,depth:o}=t,l=i.before(o+1),a=s.after(o+1),u=l,c=a,h=n.FK.empty,d=0;for(let e=o,t=!1;e>r;e--)t||i.index(e)>0?(t=!0,h=n.FK.from(i.node(e).copy(h)),d++):u--;let p=n.FK.empty,f=0;for(let e=o,t=!1;e>r;e--)t||s.after(e+1)<s.end(e)?(t=!0,p=n.FK.from(s.node(e).copy(p)),f++):c++;e.step(new A(u,c,l,a,new n.Ji(h.append(p),d,f),h.size-d,!0))}function L(e,t,r=null,n=e){let i=R(e,t),s=i&&O(n,t);return s?i.map(N).concat({type:t,attrs:r}).concat(s.map(N)):null}function N(e){return{type:e,attrs:null}}function R(e,t){let{parent:r,startIndex:n,endIndex:i}=e,s=r.contentMatchAt(n).findWrapping(t);if(!s)return null;let o=s.length?s[0]:t;return r.canReplaceWith(n,i,o)?s:null}function O(e,t){let{parent:r,startIndex:n,endIndex:i}=e,s=r.child(n),o=t.contentMatch.findWrapping(s.type);if(!o)return null;let l=(o.length?o[o.length-1]:t).contentMatch;for(let e=n;l&&e<i;e++)l=l.matchType(r.child(e).type);return l&&l.validEnd?o:null}function z(e,t,r){let i=n.FK.empty;for(let e=r.length-1;e>=0;e--){if(i.size){let t=r[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[e].type.create(r[e].attrs,i))}let s=t.start,o=t.end;e.step(new A(s,o,s,o,new n.Ji(i,0,0),r.length,!0))}function P(e,t,r,i,s){if(!i.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,r,(t,r)=>{let l="function"==typeof s?s(t):s;if(t.isTextblock&&!t.hasMarkup(i,l)&&q(e.doc,e.mapping.slice(o).map(r),i)){let s=null;if(i.schema.linebreakReplacement){let e="pre"==i.whitespace,t=!!i.contentMatch.matchType(i.schema.linebreakReplacement);e&&!t?s=!1:!e&&t&&(s=!0)}!1===s&&B(e,t,r,o),T(e,e.mapping.slice(o).map(r,1),i,void 0,null===s);let a=e.mapping.slice(o),u=a.map(r,1),c=a.map(r+t.nodeSize,1);return e.step(new A(u,c,u+1,c-1,new n.Ji(n.FK.from(i.create(l,null,t.marks)),0,0),1,!0)),!0===s&&$(e,t,r,o),!1}})}function $(e,t,r,n){t.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let i=e.mapping.slice(n).map(r+1+s+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function B(e,t,r,n){t.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(n).map(r+1+s);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function q(e,t,r){let n=e.resolve(t),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}function j(e,t,r,i,s){let o=e.doc.nodeAt(t);if(!o)throw RangeError("No node at given position");r||(r=o.type);let l=r.create(i,null,s||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,l);if(!r.validContent(o.content))throw RangeError("Invalid content for node type "+r.name);e.step(new A(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new n.Ji(n.FK.from(l),0,0),1,!0))}function H(e,t,r=1,n){let i=e.resolve(t),s=i.depth-r,o=n&&n[n.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=r-2;e>s;e--,t--){let r=i.node(e),s=i.index(e);if(r.type.spec.isolating)return!1;let o=r.content.cutByIndex(s,r.childCount),l=n&&n[t+1];l&&(o=o.replaceChild(0,l.type.create(l.attrs)));let a=n&&n[t]||r;if(!r.canReplace(s+1,r.childCount)||!a.type.validContent(o))return!1}let l=i.indexAfter(s),a=n&&n[0];return i.node(s).canReplaceWith(l,l,a?a.type:i.node(s+1).type)}function U(e,t,r=1,i){let s=e.doc.resolve(t),o=n.FK.empty,l=n.FK.empty;for(let e=s.depth,t=s.depth-r,a=r-1;e>t;e--,a--){o=n.FK.from(s.node(e).copy(o));let t=i&&i[a];l=n.FK.from(t?t.type.create(t.attrs,l):s.node(e).copy(l))}e.step(new C(t,t,new n.Ji(o.append(l),r,r),!0))}function V(e,t){let r=e.resolve(t),n=r.index();return J(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function W(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<t.childCount;i++){let s=t.child(i),o=s.type==n?e.type.schema.nodes.text:s.type;if(!(r=r.matchType(o))||!e.type.allowsMarks(s.marks))return!1}return r.validEnd}function J(e,t){return!!(e&&t&&!e.isLeaf&&W(e,t))}function K(e,t,r=-1){let n=e.resolve(t);for(let e=n.depth;;e--){let i,s,o=n.index(e);if(e==n.depth?(i=n.nodeBefore,s=n.nodeAfter):r>0?(i=n.node(e+1),o++,s=n.node(e).maybeChild(o)):(i=n.node(e).maybeChild(o-1),s=n.node(e+1)),i&&!i.isTextblock&&J(i,s)&&n.node(e).canReplace(o,o+1))return t;if(0==e)break;t=r<0?n.before(e):n.after(e)}}function G(e,t,r){let i=null,{linebreakReplacement:s}=e.doc.type.schema,o=e.doc.resolve(t-r),l=o.node().type;if(s&&l.inlineContent){let e="pre"==l.whitespace,t=!!l.contentMatch.matchType(s);e&&!t?i=!1:!e&&t&&(i=!0)}let a=e.steps.length;if(!1===i){let n=e.doc.resolve(t+r);B(e,n.node(),n.before(),a)}l.inlineContent&&T(e,t+r-1,l,o.node().contentMatchAt(o.index()),null==i);let u=e.mapping.slice(a),c=u.map(t-r);if(e.step(new C(c,u.map(t+r,-1),n.Ji.empty,!0)),!0===i){let t=e.doc.resolve(c);$(e,t.node(),t.before(),e.steps.length)}return e}function Z(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)break}return null}function X(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,s=n.index(t)+ +(r>0),o=n.node(t),l=!1;if(1==e)l=o.canReplace(s,s,i);else{let e=o.contentMatchAt(s).findWrapping(i.firstChild.type);l=e&&o.canReplaceWith(s,s,e[0])}if(l)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}function Y(e,t,r=t,i=n.Ji.empty){if(t==r&&!i.size)return null;let s=e.resolve(t),o=e.resolve(r);return Q(s,o,i)?new C(t,r,i):new ee(s,o,i).fit()}function Q(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}_.jsonID("replaceAround",A);class ee{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=n.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let s=this.placed,o=r.depth,l=i.depth;for(;o&&l&&1==s.childCount;)s=s.firstChild.content,o--,l--;let a=new n.Ji(s,o,l);return e>-1?new A(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new C(r.pos,i.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e,i=null,s=(e=r?(i=en(this.unplaced.content,r-1).firstChild).content:this.unplaced.content).firstChild;for(let e=this.depth;e>=0;e--){let{type:o,match:l}=this.frontier[e],a,u=null;if(1==t&&(s?l.matchType(s.type)||(u=l.fillBefore(n.FK.from(s),!1)):i&&o.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:e,parent:i,inject:u};if(2==t&&s&&(a=l.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:e,parent:i,wrap:a};if(i&&l.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);if(i.childCount<=1&&t>0){let s=e.size-t<=t+i.size;this.unplaced=new n.Ji(et(e,t-1,1),t-1,s?t-1:r)}else this.unplaced=new n.Ji(et(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:s}){for(;this.depth>t;)this.closeFrontierNode();if(s)for(let e=0;e<s.length;e++)this.openFrontierNode(s[e]);let o=this.unplaced,l=r?r.content:o.content,a=o.openStart-e,u=0,c=[],{match:h,type:d}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)c.push(i.child(e));h=h.matchFragment(i)}let p=l.size+e-(o.content.size-o.openEnd);for(;u<l.childCount;){let e=l.child(u),t=h.matchType(e.type);if(!t)break;(++u>1||0==a||e.content.size)&&(h=t,c.push(ei(e.mark(d.allowedMarks(e.marks)),1==u?a:0,u==l.childCount?p:-1)))}let f=u==l.childCount;f||(p=-1),this.placed=er(this.placed,t,n.FK.from(c)),this.frontier[t].match=h,f&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=l;e<p;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=f?0==e?n.Ji.empty:new n.Ji(et(o.content,e-1,1),e-1,p<0?o.openEnd:e-1):new n.Ji(et(o.content,e,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!es(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){t:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=es(e,t,n,r,i);if(s){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],i=es(e,r,n,t,!0);if(!i||i.childCount)continue t}return{depth:t,fit:s,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=er(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=er(this.placed,this.depth,n.FK.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(n.FK.empty,!0);e.childCount&&(this.placed=er(this.placed,this.frontier.length,e))}}function et(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(et(e.firstChild.content,t-1,r)))}function er(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(er(e.lastChild.content,t-1,r)))}function en(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function ei(e,t,r){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,ei(i.firstChild,t-1,1==i.childCount?r-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),r<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(n.FK.empty,!0)))),e.copy(i)}function es(e,t,r,n,i){let s=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==s.childCount&&!r.compatibleContent(s.type))return null;let l=n.fillBefore(s.content,!0,o);return l&&!eo(r,s.content,o)?l:null}function eo(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}function el(e){return e.spec.defining||e.spec.definingForContent}function ea(e,t,r,i){if(!i.size)return e.deleteRange(t,r);let s=e.doc.resolve(t),o=e.doc.resolve(r);if(Q(s,o,i))return e.step(new C(t,r,i));let l=ed(s,o);0==l[l.length-1]&&l.pop();let a=-(s.depth+1);l.unshift(a);for(let e=s.depth,t=s.pos-1;e>0;e--,t--){let r=s.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;l.indexOf(e)>-1?a=e:s.before(e)==t&&l.splice(1,0,-e)}let u=l.indexOf(a),c=[],h=i.openStart;for(let e=i.content,t=0;;t++){let r=e.firstChild;if(c.push(r),t==i.openStart)break;e=r.content}for(let e=h-1;e>=0;e--){let t=c[e],r=el(t.type);if(r&&!t.sameMarkup(s.node(Math.abs(a)-1)))h=e;else if(r||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let a=(t+h+1)%(i.openStart+1),d=c[a];if(d)for(let t=0;t<l.length;t++){let c=l[(t+u)%l.length],h=!0;c<0&&(h=!1,c=-c);let p=s.node(c-1),f=s.index(c-1);if(p.canReplaceWith(f,f,d.type,d.marks))return e.replace(s.before(c),h?o.after(c):r,new n.Ji(eu(i.content,0,i.openStart,a),a,i.openEnd))}}let d=e.steps.length;for(let n=l.length-1;n>=0&&(e.replace(t,r,i),!(e.steps.length>d));n--){let e=l[n];e<0||(t=s.before(e),r=o.after(e))}}function eu(e,t,r,i,s){if(t<r){let n=e.firstChild;e=e.replaceChild(0,n.copy(eu(n.content,t+1,r,i,n)))}if(t>i){let t=s.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(n.FK.empty,!0))}return e}function ec(e,t,r,i){if(!i.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let n=Z(e.doc,t,i.type);null!=n&&(t=r=n)}e.replaceRange(t,r,new n.Ji(n.FK.from(i),0,0))}function eh(e,t,r){let n=e.doc.resolve(t),i=e.doc.resolve(r);if(n.parent.isTextblock&&i.parent.isTextblock&&n.start()!=i.start()&&0==n.parentOffset&&0==i.parentOffset){let s=n.sharedDepth(r),o=!1;for(let e=n.depth;e>s;e--)n.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>s;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=n.depth;e>0&&t==n.start(e);e--)t=n.before(e);for(let e=i.depth;e>0&&r==i.start(e);e--)r=i.before(e);n=e.doc.resolve(t),i=e.doc.resolve(r)}}let s=ed(n,i);for(let t=0;t<s.length;t++){let r=s[t],o=t==s.length-1;if(o&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),i.end(r));if(r>0&&(o||n.node(r-1).canReplace(n.index(r-1),i.indexAfter(r-1))))return e.delete(n.before(r),i.after(r))}for(let s=1;s<=n.depth&&s<=i.depth;s++)if(t-n.start(s)==n.depth-s&&r>n.end(s)&&i.end(s)-r!=i.depth-s&&n.start(s-1)==i.start(s-1)&&n.node(s-1).canReplace(n.index(s-1),i.index(s-1)))return e.delete(n.before(s),r);e.delete(t,r)}function ed(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let i=n;i>=0;i--){let n=e.start(i);if(n<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(n==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==n-1)&&r.push(i)}return r}class ep extends _{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!t.isLeaf))}getMap(){return f.empty}invert(e){return new ep(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ep(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new ep(t.pos,t.attr,t.value)}}_.jsonID("attr",ep);class ef extends _{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return y.ok(r)}getMap(){return f.empty}invert(e){return new ef(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new ef(t.attr,t.value)}}_.jsonID("docAttr",ef);let em=class extends Error{};(em=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r}).prototype=Object.create(Error.prototype),em.prototype.constructor=em,em.prototype.name="TransformError";class eg{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new m}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new em(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(e=n.map(e,1),t=n.map(t,-1)),n.forEach((r,n,i,s)=>{e=Math.min(e,i),t=Math.max(t,s)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=n.Ji.empty){let i=Y(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new n.Ji(n.FK.from(r),0,0))}delete(e,t){return this.replace(e,t,n.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return ea(this,e,t,r),this}replaceRangeWith(e,t,r){return ec(this,e,t,r),this}deleteRange(e,t){return eh(this,e,t),this}lift(e,t){return I(this,e,t),this}join(e,t=1){return G(this,e,t),this}wrap(e,t){return z(this,e,t),this}setBlockType(e,t=e,r,n=null){return P(this,e,t,r,n),this}setNodeMarkup(e,t,r=null,n){return j(this,e,t,r,n),this}setNodeAttribute(e,t,r){return this.step(new ep(e,t,r)),this}setDocAttribute(e,t){return this.step(new ef(e,t)),this}addNodeMark(e,t){return this.step(new x(e,t)),this}removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(t instanceof n.CU)t.isInSet(r.marks)&&this.step(new v(e,t));else{let n=r.marks,i,s=[];for(;i=t.isInSet(n);)s.push(new v(e,i)),n=i.removeFromSet(n);for(let e=s.length-1;e>=0;e--)this.step(s[e])}return this}split(e,t=1,r){return U(this,e,t,r),this}addMark(e,t,r){return S(this,e,t,r),this}removeMark(e,t,r){return M(this,e,t,r),this}clearIncompatible(e,t,r){return T(this,e,t,r),this}}},9921:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],s=(0,n.A)("chevron-up",i)},10762:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],s=(0,n.A)("terminal",i)},12894:(e,t,r)=>{"use strict";r.d(t,{K:()=>_,w:()=>g});for(var n={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:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="u">typeof navigator&&/Mac/.test(navigator.platform),o="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)n[48+l]=n[96+l]=String(l);for(var l=1;l<=24;l++)n[l+111]="F"+l;for(var l=65;l<=90;l++)n[l]=String.fromCharCode(l+32),i[l]=String.fromCharCode(l);for(var a in n)i.hasOwnProperty(a)||(i[a]=n[a]);function u(e){var t=!(s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||o&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}var c=r(76865);let h="u">typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),d="u">typeof navigator&&/Win/.test(navigator.platform);function p(e){let t,r,n,i,s=e.split(/-(?!$)/),o=s[s.length-1];"Space"==o&&(o=" ");for(let e=0;e<s.length-1;e++){let o=s[e];if(/^(cmd|meta|m)$/i.test(o))i=!0;else if(/^a(lt)?$/i.test(o))t=!0;else if(/^(c|ctrl|control)$/i.test(o))r=!0;else if(/^s(hift)?$/i.test(o))n=!0;else if(/^mod$/i.test(o))h?i=!0:r=!0;else throw Error("Unrecognized modifier name: "+o)}return t&&(o="Alt-"+o),r&&(o="Ctrl-"+o),i&&(o="Meta-"+o),n&&(o="Shift-"+o),o}function f(e){let t=Object.create(null);for(let r in e)t[p(r)]=e[r];return t}function m(e,t,r=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function g(e){return new c.k_({props:{handleKeyDown:_(e)}})}function _(e){let t=f(e);return function(e,r){let i=u(r),s,o=t[m(i,r)];if(o&&o(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(r.shiftKey){let n=t[m(i,r,!1)];if(n&&n(e.state,e.dispatch,e))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(d&&r.ctrlKey&&r.altKey)&&(s=n[r.keyCode])&&s!=i){let n=t[m(s,r)];if(n&&n(e.state,e.dispatch,e))return!0}}return!1}}},13439:(e,t,r)=>{"use strict";r.d(t,{$Z:()=>eh,hG:()=>ek});var n=r(12115),i=r(47650),s=r(8039),o=r(95155),l=r(82159);let{getOwnPropertyNames:a,getOwnPropertySymbols:u}=Object,{hasOwnProperty:c}=Object.prototype;function h(e,t){return function(r,n,i){return e(r,n,i)&&t(r,n,i)}}function d(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);let{cache:i}=n,s=i.get(t),o=i.get(r);if(s&&o)return s===r&&o===t;i.set(t,r),i.set(r,t);let l=e(t,r,n);return i.delete(t),i.delete(r),l}}function p(e){return null!=e?e[Symbol.toStringTag]:void 0}function f(e){return a(e).concat(u(e))}let m=Object.hasOwn||((e,t)=>c.call(e,t));function g(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let _="__v",y="__o",k="_owner",{getOwnPropertyDescriptor:b,keys:w}=Object;function x(e,t){return e.byteLength===t.byteLength&&R(new Uint8Array(e),new Uint8Array(t))}function v(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function C(e,t){return e.byteLength===t.byteLength&&R(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function A(e,t){return g(e.getTime(),t.getTime())}function E(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function S(e,t){return e===t}function M(e,t,r){let n,i,s=e.size;if(s!==t.size)return!1;if(!s)return!0;let o=Array(s),l=e.entries(),a=0;for(;(n=l.next())&&!n.done;){let s=t.entries(),l=!1,u=0;for(;(i=s.next())&&!i.done;){if(o[u]){u++;continue}let s=n.value,c=i.value;if(r.equals(s[0],c[0],a,u,e,t,r)&&r.equals(s[1],c[1],s[0],c[0],e,t,r)){l=o[u]=!0;break}u++}if(!l)return!1;a++}return!0}let T=g;function D(e,t,r){let n=w(e),i=n.length;if(w(t).length!==i)return!1;for(;i-- >0;)if(!z(e,t,r,n[i]))return!1;return!0}function F(e,t,r){let n,i,s,o=f(e),l=o.length;if(f(t).length!==l)return!1;for(;l-- >0;)if(!z(e,t,r,n=o[l])||(i=b(e,n),s=b(t,n),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function I(e,t){return g(e.valueOf(),t.valueOf())}function L(e,t){return e.source===t.source&&e.flags===t.flags}function N(e,t,r){let n,i,s=e.size;if(s!==t.size)return!1;if(!s)return!0;let o=Array(s),l=e.values();for(;(n=l.next())&&!n.done;){let s=t.values(),l=!1,a=0;for(;(i=s.next())&&!i.done;){if(!o[a]&&r.equals(n.value,i.value,n.value,i.value,e,t,r)){l=o[a]=!0;break}a++}if(!l)return!1}return!0}function R(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function O(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function z(e,t,r,n){return(n===k||n===y||n===_)&&(!!e.$$typeof||!!t.$$typeof)||m(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}let P="[object ArrayBuffer]",$="[object Arguments]",B="[object Boolean]",q="[object DataView]",j="[object Date]",H="[object Error]",U="[object Map]",V="[object Number]",W="[object Object]",J="[object RegExp]",K="[object Set]",G="[object String]",Z={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},X="[object URL]",Y=Object.prototype.toString;function Q({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:a,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:h,areTypedArraysEqual:d,areUrlsEqual:f,unknownTagComparators:m}){return function(g,_,y){if(g===_)return!0;if(null==g||null==_)return!1;let k=typeof g;if(k!==typeof _)return!1;if("object"!==k)return"number"===k?l(g,_,y):"function"===k&&s(g,_,y);let b=g.constructor;if(b!==_.constructor)return!1;if(b===Object)return a(g,_,y);if(Array.isArray(g))return t(g,_,y);if(b===Date)return n(g,_,y);if(b===RegExp)return c(g,_,y);if(b===Map)return o(g,_,y);if(b===Set)return h(g,_,y);let w=Y.call(g);if(w===j)return n(g,_,y);if(w===J)return c(g,_,y);if(w===U)return o(g,_,y);if(w===K)return h(g,_,y);if(w===W)return"function"!=typeof g.then&&"function"!=typeof _.then&&a(g,_,y);if(w===X)return f(g,_,y);if(w===H)return i(g,_,y);if(w===$)return a(g,_,y);if(Z[w])return d(g,_,y);if(w===P)return e(g,_,y);if(w===q)return r(g,_,y);if(w===B||w===V||w===G)return u(g,_,y);if(m){let e=m[w];if(!e){let t=p(g);t&&(e=m[t])}if(e)return e(g,_,y)}return!1}}function ee({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:x,areArraysEqual:r?F:v,areDataViewsEqual:C,areDatesEqual:A,areErrorsEqual:E,areFunctionsEqual:S,areMapsEqual:r?h(M,F):M,areNumbersEqual:T,areObjectsEqual:r?F:D,arePrimitiveWrappersEqual:I,areRegExpsEqual:L,areSetsEqual:r?h(N,F):N,areTypedArraysEqual:r?h(R,F):R,areUrlsEqual:O,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){let e=d(n.areArraysEqual),t=d(n.areMapsEqual),r=d(n.areObjectsEqual),i=d(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:r,areSetsEqual:i})}return n}function et(e){return function(t,r,n,i,s,o,l){return e(t,r,l)}}function er({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,o){let{cache:l=e?new WeakMap:void 0,meta:a}=r();return t(s,o,{cache:l,equals:n,meta:a,strict:i})};if(e)return function(e,r){return t(e,r,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};let s={cache:void 0,equals:n,meta:void 0,strict:i};return function(e,r){return t(e,r,s)}}let en=ei();function ei(e={}){let{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,s=Q(ee(e)),o=r?r(s):et(s);return er({circular:t,comparator:s,createState:n,equals:o,strict:i})}ei({strict:!0}),ei({circular:!0}),ei({circular:!0,strict:!0}),ei({createInternalComparator:()=>g}),ei({strict:!0,createInternalComparator:()=>g}),ei({circular:!0,createInternalComparator:()=>g}),ei({circular:!0,createInternalComparator:()=>g,strict:!0});var es=r(94577),eo=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},el=({contentComponent:e})=>{let t=(0,s.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,o.jsx)(o.Fragment,{children:Object.values(t)})};function ea(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(r,n){t={...t,[r]:i.createPortal(n.reactElement,n.element,r)},e.forEach(e=>e())},removeRenderer(r){let n={...t};delete n[r],t=n,e.forEach(e=>e())}}}var eu=class extends n.Component{constructor(e){super(e),this.editorContentRef=n.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;let t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){if(t.contentComponent)return;let e=this.editorContentRef.current;e.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:e}),t.contentComponent=ea(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;let t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.parentNode))return;let r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){let{editor:e,innerRef:t,...r}=this.props;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:eo(t,this.editorContentRef),...r}),(null==e?void 0:e.contentComponent)&&(0,o.jsx)(el,{contentComponent:e.contentComponent})]})}},ec=(0,n.forwardRef)((e,t)=>{let r=n.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return n.createElement(eu,{key:r,innerRef:t,...e})}),eh=n.memo(ec),ed="u">typeof window?n.useLayoutEffect:n.useEffect,ep=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}};function ef(e){var t;let[r]=(0,n.useState)(()=>new ep(e.editor)),i=(0,es.useSyncExternalStoreWithSelector)(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:en);return ed(()=>r.watch(e.editor),[e.editor,r]),(0,n.useDebugValue)(i),i}var em=!1,eg="u"<typeof window,e_=eg||!!("u">typeof window&&window.next),ey=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender){if(eg||e_){if(em)throw Error("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches.");return null}return this.createEditor()}if(this.options.current.immediatelyRender&&eg&&em)throw Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBeforeCreate)?void 0:r.call(t,...e)},onBlur:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBlur)?void 0:r.call(t,...e)},onCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onCreate)?void 0:r.call(t,...e)},onDestroy:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDestroy)?void 0:r.call(t,...e)},onFocus:(...e)=>{var t,r;return null==(r=(t=this.options.current).onFocus)?void 0:r.call(t,...e)},onSelectionUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onSelectionUpdate)?void 0:r.call(t,...e)},onTransaction:(...e)=>{var t,r;return null==(r=(t=this.options.current).onTransaction)?void 0:r.call(t,...e)},onUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onUpdate)?void 0:r.call(t,...e)},onContentError:(...e)=>{var t,r;return null==(r=(t=this.options.current).onContentError)?void 0:r.call(t,...e)},onDrop:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDrop)?void 0:r.call(t,...e)},onPaste:(...e)=>{var t,r;return null==(r=(t=this.options.current).onPaste)?void 0:r.call(t,...e)},onDelete:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDelete)?void 0:r.call(t,...e)}};return new l.KE(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(r=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)||("extensions"===r&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,r)=>{var n;return e===(null==(n=t.extensions)?void 0:n[r])}):e[r]===t[r]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,r)=>t===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function ek(e={},t=[]){let r=(0,n.useRef)(e);r.current=e;let[i]=(0,n.useState)(()=>new ey(r)),o=(0,s.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,n.useDebugValue)(o),(0,n.useEffect)(i.onRender(t)),ef({editor:o,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),o}var eb=(0,n.createContext)({editor:null});eb.Consumer;var ew=(0,n.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),ex=()=>(0,n.useContext)(ew);n.forwardRef((e,t)=>{let{onDragStart:r}=ex(),n=e.as||"div";return(0,o.jsx)(n,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...e.style}})}),n.createContext({markViewContentRef:()=>{}}),l.Db,l.Yv;var ev=(0,n.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});ev.displayName="TiptapContext";var eC=()=>(0,n.useContext)(ev);function eA({editor:e,instance:t,children:r}){let i=null!=e?e:t;if(!i)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let s=(0,n.useMemo)(()=>({editor:i}),[i]),l=(0,n.useMemo)(()=>({editor:i}),[i]);return(0,o.jsx)(eb.Provider,{value:l,children:(0,o.jsx)(ev.Provider,{value:s,children:r})})}function eE({...e}){let{editor:t}=eC();return(0,o.jsx)(eh,{editor:t,...e})}eA.displayName="Tiptap",eE.displayName="Tiptap.Content",Object.assign(eA,{Content:eE})},14066:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{TM:()=>Language,iX:()=>Parser});var C,TRANSFER_BUFFER,LANGUAGE_VERSION,MIN_COMPATIBLE_VERSION,process=__webpack_require__(41463),__defProp=Object.defineProperty,__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),Edit=class{static{__name(this,"Edit")}startPosition;oldEndPosition;newEndPosition;startIndex;oldEndIndex;newEndIndex;constructor({startIndex:e,oldEndIndex:t,newEndIndex:r,startPosition:n,oldEndPosition:i,newEndPosition:s}){this.startIndex=e>>>0,this.oldEndIndex=t>>>0,this.newEndIndex=r>>>0,this.startPosition=n,this.oldEndPosition=i,this.newEndPosition=s}editPoint(e,t){let r=t,n={...e};if(t>=this.oldEndIndex){r=this.newEndIndex+(t-this.oldEndIndex);let i=e.row;n.row=this.newEndPosition.row+(e.row-this.oldEndPosition.row),n.column=i===this.oldEndPosition.row?this.newEndPosition.column+(e.column-this.oldEndPosition.column):e.column}else t>this.startIndex&&(r=this.newEndIndex,n.row=this.newEndPosition.row,n.column=this.newEndPosition.column);return{point:n,index:r}}editRange(e){let t={startIndex:e.startIndex,startPosition:{...e.startPosition},endIndex:e.endIndex,endPosition:{...e.endPosition}};return e.endIndex>=this.oldEndIndex?e.endIndex!==Number.MAX_SAFE_INTEGER&&(t.endIndex=this.newEndIndex+(e.endIndex-this.oldEndIndex),t.endPosition={row:this.newEndPosition.row+(e.endPosition.row-this.oldEndPosition.row),column:e.endPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.endPosition.column-this.oldEndPosition.column):e.endPosition.column},t.endIndex<this.newEndIndex&&(t.endIndex=Number.MAX_SAFE_INTEGER,t.endPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.endIndex>this.startIndex&&(t.endIndex=this.startIndex,t.endPosition={...this.startPosition}),e.startIndex>=this.oldEndIndex?(t.startIndex=this.newEndIndex+(e.startIndex-this.oldEndIndex),t.startPosition={row:this.newEndPosition.row+(e.startPosition.row-this.oldEndPosition.row),column:e.startPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.startPosition.column-this.oldEndPosition.column):e.startPosition.column},t.startIndex<this.newEndIndex&&(t.startIndex=Number.MAX_SAFE_INTEGER,t.startPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.startIndex>this.startIndex&&(t.startIndex=this.startIndex,t.startPosition={...this.startPosition}),t}},SIZE_OF_SHORT=2,SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},INTERNAL=Symbol("INTERNAL");function assertInternal(e){if(e!==INTERNAL)throw Error("Illegal constructor")}function isPoint(e){return!!e&&"number"==typeof e.row&&"number"==typeof e.column}function setModule(e){C=e}__name(assertInternal,"assertInternal"),__name(isPoint,"isPoint"),__name(setModule,"setModule");var LookaheadIterator=class{static{__name(this,"LookaheadIterator")}0=0;language;constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}resetState(e){return!!C._ts_lookahead_iterator_reset_state(this[0],e)}[Symbol.iterator](){return{next:__name(()=>C._ts_lookahead_iterator_next(this[0])?{done:!1,value:this.currentType}:{done:!0,value:""},"next")}}};function getText(e,t,r,n){let i=r-t,s=e.textCallback(t,n);if(s){for(t+=s.length;t<r;){let r=e.textCallback(t,n);if(r&&r.length>0)t+=r.length,s+=r;else break}t>r&&(s=s.slice(0,i))}return s??""}__name(getText,"getText");var Tree=class _Tree{static{__name(this,"Tree")}0=0;textCallback;language;constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){return new _Tree(INTERNAL,C._ts_tree_copy(this[0]),this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}walk(){return this.rootNode.walk()}getChangedRanges(e){if(!(e instanceof _Tree))throw TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}},TreeCursor=class _TreeCursor{static{__name(this,"TreeCursor")}0=0;1=0;2=0;3=0;tree;constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}copy(){let e=new _TreeCursor(INTERNAL,this.tree);return C._ts_tree_cursor_copy_wasm(this.tree[0]),unmarshalTreeCursor(e),e}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);let e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);C._ts_tree_cursor_start_position_wasm(this.tree[0]);let r=unmarshalPoint(TRANSFER_BUFFER);return getText(this.tree,e,t,r)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoParent(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoFirstChildForIndex(e){marshalTreeCursor(this),C.setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");let t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);let t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}},Node=class{static{__name(this,"Node")}0=0;_children;_namedChildren;constructor(e,{id:t,tree:r,startIndex:n,startPosition:i,other:s}){assertInternal(e),this[0]=s,this.id=t,this.tree=r,this.startIndex=n,this.startPosition=i}id;startIndex;startPosition;tree;get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get text(){return getText(this.tree,this.startIndex,this.endIndex,this.startPosition)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}equals(e){return this.tree===e.tree&&this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){let t=this.tree.language.fields.indexOf(e);return -1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);let t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}fieldNameForNamedChild(e){marshalNode(this);let t=C._ts_node_field_name_for_named_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}childrenForFieldName(e){let t=this.tree.language.fields.indexOf(e);return -1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return n}firstChildForIndex(e){marshalNode(this);let t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);let t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t=ZERO_POINT,r=ZERO_POINT){Array.isArray(e)||(e=[e]);let n=[],i=this.tree.language.types;for(let t of e)"ERROR"==t&&n.push(65535);for(let t=0,r=i.length;t<r;t++)e.includes(i[t])&&n.push(t);let s=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)C.setValue(s+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],s,n.length,t.row,t.column,r.row,r.column);let o=C.getValue(TRANSFER_BUFFER,"i32"),l=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),a=Array(o);if(o>0){let e=l;for(let t=0;t<o;t++)a[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(l),C._free(s),a}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}childWithDescendant(e){return marshalNode(this),marshalNode(e,1),C._ts_node_child_with_descendant_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),C.setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),C.setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}edit(e){if(this.startIndex>=e.oldEndIndex){let t,r;this.startIndex=e.newEndIndex+(this.startIndex-e.oldEndIndex),this.startPosition.row>e.oldEndPosition.row?(t=this.startPosition.row-e.oldEndPosition.row,r=this.startPosition.column):(t=0,r=this.startPosition.column,this.startPosition.column>=e.oldEndPosition.column&&(r=this.startPosition.column-e.oldEndPosition.column)),t>0?(this.startPosition.row+=t,this.startPosition.column=r):this.startPosition.column+=r}else this.startIndex>e.startIndex&&(this.startIndex=e.newEndIndex,this.startPosition.row=e.newEndPosition.row,this.startPosition.column=e.newEndPosition.column)}toString(){marshalNode(this);let e=C._ts_node_to_string_wasm(this.tree[0]),t=C.AsciiToString(e);return C._free(e),t}};function unmarshalCaptures(e,t,r,n,i){for(let s=0,o=i.length;s<o;s++){let o=C.getValue(r,"i32"),l=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,i[s]={patternIndex:n,name:e.captureNames[o],node:l}}return r}function marshalNode(e,t=0){let r=TRANSFER_BUFFER+t*SIZE_OF_NODE;C.setValue(r,e.id,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startIndex,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startPosition.row,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startPosition.column,"i32"),r+=SIZE_OF_INT,C.setValue(r,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){let r=C.getValue(t,"i32");if(t+=SIZE_OF_INT,0===r)return null;let n=C.getValue(t,"i32");t+=SIZE_OF_INT;let i=C.getValue(t,"i32");t+=SIZE_OF_INT;let s=C.getValue(t,"i32");return t+=SIZE_OF_INT,new Node(INTERNAL,{id:r,tree:e,startIndex:n,startPosition:{row:i,column:s},other:C.getValue(t,"i32")})}function marshalTreeCursor(e,t=TRANSFER_BUFFER){C.setValue(t+0*SIZE_OF_INT,e[0],"i32"),C.setValue(t+ +SIZE_OF_INT,e[1],"i32"),C.setValue(t+2*SIZE_OF_INT,e[2],"i32"),C.setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=C.getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=C.getValue(TRANSFER_BUFFER+ +SIZE_OF_INT,"i32"),e[2]=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=C.getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){C.setValue(e,t.row,"i32"),C.setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:C.getValue(e,"i32")>>>0,column:C.getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),e+=SIZE_OF_POINT,C.setValue(e,t.startIndex,"i32"),e+=SIZE_OF_INT,C.setValue(e,t.endIndex,"i32")}function unmarshalRange(e){let t={};return t.startPosition=unmarshalPoint(e),t.endPosition=unmarshalPoint(e+=SIZE_OF_POINT),e+=SIZE_OF_POINT,t.startIndex=C.getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=C.getValue(e,"i32")>>>0,t}function marshalEdit(e,t=TRANSFER_BUFFER){marshalPoint(t,e.startPosition),marshalPoint(t+=SIZE_OF_POINT,e.oldEndPosition),marshalPoint(t+=SIZE_OF_POINT,e.newEndPosition),t+=SIZE_OF_POINT,C.setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.newEndIndex,"i32")}function unmarshalLanguageMetadata(e){let t=C.getValue(e,"i32");return{major_version:t,minor_version:C.getValue(e+=SIZE_OF_INT,"i32"),patch_version:C.getValue(e+=SIZE_OF_INT,"i32")}}__name(unmarshalCaptures,"unmarshalCaptures"),__name(marshalNode,"marshalNode"),__name(unmarshalNode,"unmarshalNode"),__name(marshalTreeCursor,"marshalTreeCursor"),__name(unmarshalTreeCursor,"unmarshalTreeCursor"),__name(marshalPoint,"marshalPoint"),__name(unmarshalPoint,"unmarshalPoint"),__name(marshalRange,"marshalRange"),__name(unmarshalRange,"unmarshalRange"),__name(marshalEdit,"marshalEdit"),__name(unmarshalLanguageMetadata,"unmarshalLanguageMetadata");var LANGUAGE_FUNCTION_REGEX=/^tree_sitter_\w+$/,Language=class _Language{static{__name(this,"Language")}0=0;types;fields;constructor(e,t){assertInternal(e),this[0]=t,this.types=Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)2>C._ts_language_symbol_type(this[0],e)&&(this.types[e]=C.UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);0!==t?this.fields[e]=C.UTF8ToString(t):this.fields[e]=null}}get name(){let e=C._ts_language_name(this[0]);return 0===e?null:C.UTF8ToString(e)}get abiVersion(){return C._ts_language_abi_version(this[0])}get metadata(){return(C._ts_language_metadata_wasm(this[0]),0===C.getValue(TRANSFER_BUFFER,"i32"))?null:unmarshalLanguageMetadata(TRANSFER_BUFFER+SIZE_OF_INT)}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){let t=this.fields.indexOf(e);return -1!==t?t:null}fieldNameForId(e){return this.fields[e]??null}idForNodeType(e,t){let r=C.lengthBytesUTF8(e),n=C._malloc(r+1);C.stringToUTF8(e,n,r+1);let i=C._ts_language_symbol_for_name(this[0],n,r,+!!t);return C._free(n),i||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){let t=C._ts_language_symbol_name(this[0],e);return t?C.UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}get supertypes(){C._ts_language_supertypes_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=C.getValue(n,"i16"),n+=SIZE_OF_SHORT}return r}subtypes(e){C._ts_language_subtypes_wasm(this[0],e);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=C.getValue(e,"i16"),e+=SIZE_OF_SHORT}return n}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){let t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterator(INTERNAL,t,this):null}static async load(e){let t;if(e instanceof Uint8Array)t=e;else if(globalThis.process?.versions.node){let r=await __webpack_require__.e(480).then(__webpack_require__.t.bind(__webpack_require__,80480,19));t=await r.readFile(e)}else{let r=await fetch(e);if(!r.ok){let e=await r.text();throw Error(`Language.load failed with status ${r.status}.
|
|
4
|
+
`}),d},tn=s.bP.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:e3,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:r,tableWidth:n,tableMinWidth:i}=e5(e,this.options.cellMinWidth),o=t.style;function l(){return o||(n?`width: ${n}`:`min-width: ${i}`)}let a=["table",(0,s.KV)(this.options.HTMLAttributes,t,{style:l()}),r,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},a]:a},parseMarkdown:(e,t)=>{let r=[],n=Array.isArray(e.align)?e.align:[];if(e.header){let i=[];e.header.forEach((e,r)=>{var s;let o=eK(null!=(s=n[r])?s:e.align),l=o?{align:o}:{};i.push(t.createNode("tableHeader",l,[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),r.push(t.createNode("tableRow",{},i))}return e.rows&&e.rows.forEach(e=>{let i=[];e.forEach((e,r)=>{var s;let o=eK(null!=(s=n[r])?s:e.align),l=o?{align:o}:{};i.push(t.createNode("tableCell",l,[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),r.push(t.createNode("tableRow",{},i))}),t.createNode("table",void 0,r)},renderMarkdown:(e,t)=>tr(e,t),addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:r=!0}={})=>({tr:n,dispatch:i,editor:s})=>{let l=e8(s.schema,e,t,r);if(i){let e=n.selection.from+1;n.replaceSelectionWith(l).scrollIntoView().setSelection(o.U3.near(n.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>j(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>H(e,t),deleteColumn:()=>({state:e,dispatch:t})=>V(e,t),addRowBefore:()=>({state:e,dispatch:t})=>K(e,t),addRowAfter:()=>({state:e,dispatch:t})=>G(e,t),deleteRow:()=>({state:e,dispatch:t})=>X(e,t),deleteTable:()=>({state:e,dispatch:t})=>ec(e,t),mergeCells:()=>({state:e,dispatch:t})=>ee(e,t),splitCell:()=>({state:e,dispatch:t})=>et(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>eo("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>eo("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>el(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!ee(e,t)||et(e,t),setCellAttribute:(e,t)=>({state:r,dispatch:n})=>en(e,t)(r,n),goToNextCell:()=>({state:e,dispatch:t})=>eu(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>eu(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&P(e),!0),setCellSelection:e=>({tr:t,dispatch:r})=>{if(r){let r=D.create(t.doc,e.anchorCell,e.headCell);t.setSelection(r)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:e7,"Mod-Backspace":e7,Delete:e7,"Mod-Delete":e7}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[eL({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],eJ({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:(0,s.gk)((0,s.iI)(e,"tableRole",t))}}});s.YY.create({name:"tableKit",addExtensions(){let e=[];return!1!==this.options.table&&e.push(tn.configure(this.options.table)),!1!==this.options.tableCell&&e.push(eY.configure(this.options.tableCell)),!1!==this.options.tableHeader&&e.push(eQ.configure(this.options.tableHeader)),!1!==this.options.tableRow&&e.push(e0.configure(this.options.tableRow)),e}})},6268:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A0});var n=r(5989)},8242:(e,t,r)=>{"use strict";r.d(t,{$L:()=>Y,Ln:()=>C,N0:()=>K,Um:()=>X,Wg:()=>A,X9:()=>m,Ys:()=>w,dL:()=>eg,jP:()=>F,n9:()=>V,oM:()=>L,zy:()=>H});var n=r(27050);let i=65535,s=65536;function o(e,t){return e+t*s}function l(e){return e&i}function a(e){return(e-(e&i))/s}let u=1,c=2,h=4,d=8;class p{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&d)>0}get deletedBefore(){return(this.delInfo&(u|h))>0}get deletedAfter(){return(this.delInfo&(c|h))>0}get deletedAcross(){return(this.delInfo&h)>0}}class f{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&f.empty)return f.empty}recover(e){let t=0,r=l(e);if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+a(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?n:0);if(a>e)break;let f=this.ranges[l+i],m=this.ranges[l+s],g=a+f;if(e<=g){let i=f?e==a?-1:e==g?1:t:t,s=a+n+(i<0?0:m);if(r)return s;let _=e==(t<0?a:g)?null:o(l/3,e-a),y=e==a?c:e==g?u:h;return(t<0?e!=a:e!=g)&&(y|=d),new p(s,y,_)}n+=m-f}return r?e+n:new p(e+n,0,null)}touches(e,t){let r=0,n=l(t),i=this.inverted?2:1,s=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?r:0);if(o>e)break;let l=this.ranges[t+i];if(e<=o+l&&t==3*n)return!0;r+=this.ranges[t+s]-l}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let s=this.ranges[n],o=s-(this.inverted?i:0),l=s+(this.inverted?0:i),a=this.ranges[n+t],u=this.ranges[n+r];e(o,o+a,l,l+u),i+=u-a}}invert(){return new f(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?f.empty:new f(e<0?[0,-e,0]:[0,0,e])}}f.empty=new f([]);class m{constructor(e,t,r=0,n=e?e.length:0){this.mirror=t,this.from=r,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new m(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new m;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this._maps[t].recover(i.recover);continue}}n|=i.delInfo,e=i.pos}return r?e:new p(e,n,null)}}let g=Object.create(null);class _{getMap(){return f.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=g[t.stepType];if(!r)throw RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in g)throw RangeError("Duplicate use of step JSON ID "+e);return g[e]=t,t.prototype.jsonID=e,t}}class y{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new y(e,null)}static fail(e){return new y(null,e)}static fromReplace(e,t,r,i){try{return y.ok(e.replace(t,r,i))}catch(e){if(e instanceof n.vI)return y.fail(e.message);throw e}}}function k(e,t,r){let i=[];for(let n=0;n<e.childCount;n++){let s=e.child(n);s.content.size&&(s=s.copy(k(s.content,t,s))),s.isInline&&(s=t(s,r,n)),i.push(s)}return n.FK.fromArray(i)}class b extends _{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new n.Ji(k(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return y.fromReplace(e,this.from,this.to,s)}invert(){return new w(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new b(t.pos,r.pos,this.mark)}merge(e){return e instanceof b&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new b(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new b(t.from,t.to,e.markFromJSON(t.mark))}}_.jsonID("addMark",b);class w extends _{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new n.Ji(k(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return y.fromReplace(e,this.from,this.to,r)}invert(){return new b(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new w(t.pos,r.pos,this.mark)}merge(e){return e instanceof w&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new w(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new w(t.from,t.to,e.markFromJSON(t.mark))}}_.jsonID("removeMark",w);class x extends _{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new x(this.pos,t.marks[r]);return new x(this.pos,this.mark)}}return new v(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new x(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new x(t.pos,e.markFromJSON(t.mark))}}_.jsonID("addNodeMark",x);class v extends _{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new x(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new v(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new v(t.pos,e.markFromJSON(t.mark))}}_.jsonID("removeNodeMark",v);class C extends _{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&E(e,this.from,this.to)?y.fail("Structure replace would overwrite content"):y.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new f([this.from,this.to-this.from,this.slice.size])}invert(e){return new C(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&C.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new C(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof C)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new C(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new C(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new C(t.from,t.to,n.Ji.fromJSON(e,t.slice),!!t.structure)}}C.MAP_BIAS=1,_.jsonID("replace",C);class A extends _{constructor(e,t,r,n,i,s,o=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=s,this.structure=o}apply(e){if(this.structure&&(E(e,this.from,this.gapFrom)||E(e,this.gapTo,this.to)))return y.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return y.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?y.fromReplace(e,this.from,this.to,r):y.fail("Content does not fit in gap")}getMap(){return new f([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new A(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||i>r.pos?null:new A(t.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new A(t.from,t.to,t.gapFrom,t.gapTo,n.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function E(e,t,r){let n=e.resolve(t),i=r-t,s=n.depth;for(;i>0&&s>0&&n.indexAfter(s)==n.node(s).childCount;)s--,i--;if(i>0){let e=n.node(s).maybeChild(n.indexAfter(s));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function S(e,t,r,n){let i,s,o=[],l=[];e.doc.nodesBetween(t,r,(e,a,u)=>{if(!e.isInline)return;let c=e.marks;if(!n.isInSet(c)&&u.type.allowsMarkType(n.type)){let u=Math.max(a,t),h=Math.min(a+e.nodeSize,r),d=n.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(d)||(i&&i.to==u&&i.mark.eq(c[e])?i.to=h:o.push(i=new w(u,h,c[e])));s&&s.to==u?s.to=h:l.push(s=new b(u,h,n))}}),o.forEach(t=>e.step(t)),l.forEach(t=>e.step(t))}function M(e,t,r,i){let s=[],o=0;e.doc.nodesBetween(t,r,(e,l)=>{if(!e.isInline)return;o++;let a=null;if(i instanceof n.sX){let t=e.marks,r;for(;r=i.isInSet(t);)(a||(a=[])).push(r),t=r.removeFromSet(t)}else i?i.isInSet(e.marks)&&(a=[i]):a=e.marks;if(a&&a.length){let n=Math.min(l+e.nodeSize,r);for(let e=0;e<a.length;e++){let r=a[e],i;for(let e=0;e<s.length;e++){let t=s[e];t.step==o-1&&r.eq(s[e].style)&&(i=t)}i?(i.to=n,i.step=o):s.push({style:r,from:Math.max(l,t),to:n,step:o})}}}),s.forEach(t=>e.step(new w(t.from,t.to,t.style)))}function T(e,t,r,i=r.contentMatch,s=!0){let o=e.doc.nodeAt(t),l=[],a=t+1;for(let t=0;t<o.childCount;t++){let u=o.child(t),c=a+u.nodeSize,h=i.matchType(u.type);if(h){i=h;for(let t=0;t<u.marks.length;t++)r.allowsMarkType(u.marks[t].type)||e.step(new w(a,c,u.marks[t]));if(s&&u.isText&&"pre"!=r.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(u.text);)i||(i=new n.Ji(n.FK.from(r.schema.text(" ",r.allowedMarks(u.marks))),0,0)),l.push(new C(a+e.index,a+e.index+e[0].length,i))}}else l.push(new C(a,c,n.Ji.empty));a=c}if(!i.validEnd){let t=i.fillBefore(n.FK.empty,!0);e.replace(a,a,new n.Ji(t,0,0))}for(let t=l.length-1;t>=0;t--)e.step(l[t])}function D(e,t,r){return(0==t||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function F(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,n=0,i=0;;--r){let s=e.$from.node(r),o=e.$from.index(r)+n,l=e.$to.indexAfter(r)-i;if(r<e.depth&&s.canReplace(o,l,t))return r;if(0==r||s.type.spec.isolating||!D(s,o,l))break;o&&(n=1),l<s.childCount&&(i=1)}return null}function I(e,t,r){let{$from:i,$to:s,depth:o}=t,l=i.before(o+1),a=s.after(o+1),u=l,c=a,h=n.FK.empty,d=0;for(let e=o,t=!1;e>r;e--)t||i.index(e)>0?(t=!0,h=n.FK.from(i.node(e).copy(h)),d++):u--;let p=n.FK.empty,f=0;for(let e=o,t=!1;e>r;e--)t||s.after(e+1)<s.end(e)?(t=!0,p=n.FK.from(s.node(e).copy(p)),f++):c++;e.step(new A(u,c,l,a,new n.Ji(h.append(p),d,f),h.size-d,!0))}function L(e,t,r=null,n=e){let i=N(e,t),s=i&&O(n,t);return s?i.map(R).concat({type:t,attrs:r}).concat(s.map(R)):null}function R(e){return{type:e,attrs:null}}function N(e,t){let{parent:r,startIndex:n,endIndex:i}=e,s=r.contentMatchAt(n).findWrapping(t);if(!s)return null;let o=s.length?s[0]:t;return r.canReplaceWith(n,i,o)?s:null}function O(e,t){let{parent:r,startIndex:n,endIndex:i}=e,s=r.child(n),o=t.contentMatch.findWrapping(s.type);if(!o)return null;let l=(o.length?o[o.length-1]:t).contentMatch;for(let e=n;l&&e<i;e++)l=l.matchType(r.child(e).type);return l&&l.validEnd?o:null}function z(e,t,r){let i=n.FK.empty;for(let e=r.length-1;e>=0;e--){if(i.size){let t=r[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[e].type.create(r[e].attrs,i))}let s=t.start,o=t.end;e.step(new A(s,o,s,o,new n.Ji(i,0,0),r.length,!0))}function P(e,t,r,i,s){if(!i.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,r,(t,r)=>{let l="function"==typeof s?s(t):s;if(t.isTextblock&&!t.hasMarkup(i,l)&&q(e.doc,e.mapping.slice(o).map(r),i)){let s=null;if(i.schema.linebreakReplacement){let e="pre"==i.whitespace,t=!!i.contentMatch.matchType(i.schema.linebreakReplacement);e&&!t?s=!1:!e&&t&&(s=!0)}!1===s&&B(e,t,r,o),T(e,e.mapping.slice(o).map(r,1),i,void 0,null===s);let a=e.mapping.slice(o),u=a.map(r,1),c=a.map(r+t.nodeSize,1);return e.step(new A(u,c,u+1,c-1,new n.Ji(n.FK.from(i.create(l,null,t.marks)),0,0),1,!0)),!0===s&&$(e,t,r,o),!1}})}function $(e,t,r,n){t.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let i=e.mapping.slice(n).map(r+1+s+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function B(e,t,r,n){t.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(n).map(r+1+s);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function q(e,t,r){let n=e.resolve(t),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}function j(e,t,r,i,s){let o=e.doc.nodeAt(t);if(!o)throw RangeError("No node at given position");r||(r=o.type);let l=r.create(i,null,s||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,l);if(!r.validContent(o.content))throw RangeError("Invalid content for node type "+r.name);e.step(new A(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new n.Ji(n.FK.from(l),0,0),1,!0))}function H(e,t,r=1,n){let i=e.resolve(t),s=i.depth-r,o=n&&n[n.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=r-2;e>s;e--,t--){let r=i.node(e),s=i.index(e);if(r.type.spec.isolating)return!1;let o=r.content.cutByIndex(s,r.childCount),l=n&&n[t+1];l&&(o=o.replaceChild(0,l.type.create(l.attrs)));let a=n&&n[t]||r;if(!r.canReplace(s+1,r.childCount)||!a.type.validContent(o))return!1}let l=i.indexAfter(s),a=n&&n[0];return i.node(s).canReplaceWith(l,l,a?a.type:i.node(s+1).type)}function U(e,t,r=1,i){let s=e.doc.resolve(t),o=n.FK.empty,l=n.FK.empty;for(let e=s.depth,t=s.depth-r,a=r-1;e>t;e--,a--){o=n.FK.from(s.node(e).copy(o));let t=i&&i[a];l=n.FK.from(t?t.type.create(t.attrs,l):s.node(e).copy(l))}e.step(new C(t,t,new n.Ji(o.append(l),r,r),!0))}function V(e,t){let r=e.resolve(t),n=r.index();return J(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function W(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<t.childCount;i++){let s=t.child(i),o=s.type==n?e.type.schema.nodes.text:s.type;if(!(r=r.matchType(o))||!e.type.allowsMarks(s.marks))return!1}return r.validEnd}function J(e,t){return!!(e&&t&&!e.isLeaf&&W(e,t))}function K(e,t,r=-1){let n=e.resolve(t);for(let e=n.depth;;e--){let i,s,o=n.index(e);if(e==n.depth?(i=n.nodeBefore,s=n.nodeAfter):r>0?(i=n.node(e+1),o++,s=n.node(e).maybeChild(o)):(i=n.node(e).maybeChild(o-1),s=n.node(e+1)),i&&!i.isTextblock&&J(i,s)&&n.node(e).canReplace(o,o+1))return t;if(0==e)break;t=r<0?n.before(e):n.after(e)}}function G(e,t,r){let i=null,{linebreakReplacement:s}=e.doc.type.schema,o=e.doc.resolve(t-r),l=o.node().type;if(s&&l.inlineContent){let e="pre"==l.whitespace,t=!!l.contentMatch.matchType(s);e&&!t?i=!1:!e&&t&&(i=!0)}let a=e.steps.length;if(!1===i){let n=e.doc.resolve(t+r);B(e,n.node(),n.before(),a)}l.inlineContent&&T(e,t+r-1,l,o.node().contentMatchAt(o.index()),null==i);let u=e.mapping.slice(a),c=u.map(t-r);if(e.step(new C(c,u.map(t+r,-1),n.Ji.empty,!0)),!0===i){let t=e.doc.resolve(c);$(e,t.node(),t.before(),e.steps.length)}return e}function Z(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)break}return null}function X(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,s=n.index(t)+ +(r>0),o=n.node(t),l=!1;if(1==e)l=o.canReplace(s,s,i);else{let e=o.contentMatchAt(s).findWrapping(i.firstChild.type);l=e&&o.canReplaceWith(s,s,e[0])}if(l)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}function Y(e,t,r=t,i=n.Ji.empty){if(t==r&&!i.size)return null;let s=e.resolve(t),o=e.resolve(r);return Q(s,o,i)?new C(t,r,i):new ee(s,o,i).fit()}function Q(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}_.jsonID("replaceAround",A);class ee{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=n.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let s=this.placed,o=r.depth,l=i.depth;for(;o&&l&&1==s.childCount;)s=s.firstChild.content,o--,l--;let a=new n.Ji(s,o,l);return e>-1?new A(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new C(r.pos,i.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e,i=null,s=(e=r?(i=en(this.unplaced.content,r-1).firstChild).content:this.unplaced.content).firstChild;for(let e=this.depth;e>=0;e--){let{type:o,match:l}=this.frontier[e],a,u=null;if(1==t&&(s?l.matchType(s.type)||(u=l.fillBefore(n.FK.from(s),!1)):i&&o.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:e,parent:i,inject:u};if(2==t&&s&&(a=l.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:e,parent:i,wrap:a};if(i&&l.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);if(i.childCount<=1&&t>0){let s=e.size-t<=t+i.size;this.unplaced=new n.Ji(et(e,t-1,1),t-1,s?t-1:r)}else this.unplaced=new n.Ji(et(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:s}){for(;this.depth>t;)this.closeFrontierNode();if(s)for(let e=0;e<s.length;e++)this.openFrontierNode(s[e]);let o=this.unplaced,l=r?r.content:o.content,a=o.openStart-e,u=0,c=[],{match:h,type:d}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)c.push(i.child(e));h=h.matchFragment(i)}let p=l.size+e-(o.content.size-o.openEnd);for(;u<l.childCount;){let e=l.child(u),t=h.matchType(e.type);if(!t)break;(++u>1||0==a||e.content.size)&&(h=t,c.push(ei(e.mark(d.allowedMarks(e.marks)),1==u?a:0,u==l.childCount?p:-1)))}let f=u==l.childCount;f||(p=-1),this.placed=er(this.placed,t,n.FK.from(c)),this.frontier[t].match=h,f&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=l;e<p;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=f?0==e?n.Ji.empty:new n.Ji(et(o.content,e-1,1),e-1,p<0?o.openEnd:e-1):new n.Ji(et(o.content,e,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!es(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){t:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=es(e,t,n,r,i);if(s){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],i=es(e,r,n,t,!0);if(!i||i.childCount)continue t}return{depth:t,fit:s,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=er(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=er(this.placed,this.depth,n.FK.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(n.FK.empty,!0);e.childCount&&(this.placed=er(this.placed,this.frontier.length,e))}}function et(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(et(e.firstChild.content,t-1,r)))}function er(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(er(e.lastChild.content,t-1,r)))}function en(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function ei(e,t,r){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,ei(i.firstChild,t-1,1==i.childCount?r-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),r<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(n.FK.empty,!0)))),e.copy(i)}function es(e,t,r,n,i){let s=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==s.childCount&&!r.compatibleContent(s.type))return null;let l=n.fillBefore(s.content,!0,o);return l&&!eo(r,s.content,o)?l:null}function eo(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}function el(e){return e.spec.defining||e.spec.definingForContent}function ea(e,t,r,i){if(!i.size)return e.deleteRange(t,r);let s=e.doc.resolve(t),o=e.doc.resolve(r);if(Q(s,o,i))return e.step(new C(t,r,i));let l=ed(s,o);0==l[l.length-1]&&l.pop();let a=-(s.depth+1);l.unshift(a);for(let e=s.depth,t=s.pos-1;e>0;e--,t--){let r=s.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;l.indexOf(e)>-1?a=e:s.before(e)==t&&l.splice(1,0,-e)}let u=l.indexOf(a),c=[],h=i.openStart;for(let e=i.content,t=0;;t++){let r=e.firstChild;if(c.push(r),t==i.openStart)break;e=r.content}for(let e=h-1;e>=0;e--){let t=c[e],r=el(t.type);if(r&&!t.sameMarkup(s.node(Math.abs(a)-1)))h=e;else if(r||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let a=(t+h+1)%(i.openStart+1),d=c[a];if(d)for(let t=0;t<l.length;t++){let c=l[(t+u)%l.length],h=!0;c<0&&(h=!1,c=-c);let p=s.node(c-1),f=s.index(c-1);if(p.canReplaceWith(f,f,d.type,d.marks))return e.replace(s.before(c),h?o.after(c):r,new n.Ji(eu(i.content,0,i.openStart,a),a,i.openEnd))}}let d=e.steps.length;for(let n=l.length-1;n>=0&&(e.replace(t,r,i),!(e.steps.length>d));n--){let e=l[n];e<0||(t=s.before(e),r=o.after(e))}}function eu(e,t,r,i,s){if(t<r){let n=e.firstChild;e=e.replaceChild(0,n.copy(eu(n.content,t+1,r,i,n)))}if(t>i){let t=s.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(n.FK.empty,!0))}return e}function ec(e,t,r,i){if(!i.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let n=Z(e.doc,t,i.type);null!=n&&(t=r=n)}e.replaceRange(t,r,new n.Ji(n.FK.from(i),0,0))}function eh(e,t,r){let n=e.doc.resolve(t),i=e.doc.resolve(r);if(n.parent.isTextblock&&i.parent.isTextblock&&n.start()!=i.start()&&0==n.parentOffset&&0==i.parentOffset){let s=n.sharedDepth(r),o=!1;for(let e=n.depth;e>s;e--)n.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>s;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=n.depth;e>0&&t==n.start(e);e--)t=n.before(e);for(let e=i.depth;e>0&&r==i.start(e);e--)r=i.before(e);n=e.doc.resolve(t),i=e.doc.resolve(r)}}let s=ed(n,i);for(let t=0;t<s.length;t++){let r=s[t],o=t==s.length-1;if(o&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),i.end(r));if(r>0&&(o||n.node(r-1).canReplace(n.index(r-1),i.indexAfter(r-1))))return e.delete(n.before(r),i.after(r))}for(let s=1;s<=n.depth&&s<=i.depth;s++)if(t-n.start(s)==n.depth-s&&r>n.end(s)&&i.end(s)-r!=i.depth-s&&n.start(s-1)==i.start(s-1)&&n.node(s-1).canReplace(n.index(s-1),i.index(s-1)))return e.delete(n.before(s),r);e.delete(t,r)}function ed(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let i=n;i>=0;i--){let n=e.start(i);if(n<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(n==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==n-1)&&r.push(i)}return r}class ep extends _{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!t.isLeaf))}getMap(){return f.empty}invert(e){return new ep(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ep(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new ep(t.pos,t.attr,t.value)}}_.jsonID("attr",ep);class ef extends _{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return y.ok(r)}getMap(){return f.empty}invert(e){return new ef(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new ef(t.attr,t.value)}}_.jsonID("docAttr",ef);let em=class extends Error{};(em=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r}).prototype=Object.create(Error.prototype),em.prototype.constructor=em,em.prototype.name="TransformError";class eg{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new m}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new em(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(e=n.map(e,1),t=n.map(t,-1)),n.forEach((r,n,i,s)=>{e=Math.min(e,i),t=Math.max(t,s)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=n.Ji.empty){let i=Y(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new n.Ji(n.FK.from(r),0,0))}delete(e,t){return this.replace(e,t,n.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return ea(this,e,t,r),this}replaceRangeWith(e,t,r){return ec(this,e,t,r),this}deleteRange(e,t){return eh(this,e,t),this}lift(e,t){return I(this,e,t),this}join(e,t=1){return G(this,e,t),this}wrap(e,t){return z(this,e,t),this}setBlockType(e,t=e,r,n=null){return P(this,e,t,r,n),this}setNodeMarkup(e,t,r=null,n){return j(this,e,t,r,n),this}setNodeAttribute(e,t,r){return this.step(new ep(e,t,r)),this}setDocAttribute(e,t){return this.step(new ef(e,t)),this}addNodeMark(e,t){return this.step(new x(e,t)),this}removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(t instanceof n.CU)t.isInSet(r.marks)&&this.step(new v(e,t));else{let n=r.marks,i,s=[];for(;i=t.isInSet(n);)s.push(new v(e,i)),n=i.removeFromSet(n);for(let e=s.length-1;e>=0;e--)this.step(s[e])}return this}split(e,t=1,r){return U(this,e,t,r),this}addMark(e,t,r){return S(this,e,t,r),this}removeMark(e,t,r){return M(this,e,t,r),this}clearIncompatible(e,t,r){return T(this,e,t,r),this}}},9921:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],s=(0,n.A)("chevron-up",i)},10762:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],s=(0,n.A)("terminal",i)},12894:(e,t,r)=>{"use strict";r.d(t,{K:()=>_,w:()=>g});for(var n={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:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="u">typeof navigator&&/Mac/.test(navigator.platform),o="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)n[48+l]=n[96+l]=String(l);for(var l=1;l<=24;l++)n[l+111]="F"+l;for(var l=65;l<=90;l++)n[l]=String.fromCharCode(l+32),i[l]=String.fromCharCode(l);for(var a in n)i.hasOwnProperty(a)||(i[a]=n[a]);function u(e){var t=!(s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||o&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}var c=r(76865);let h="u">typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),d="u">typeof navigator&&/Win/.test(navigator.platform);function p(e){let t,r,n,i,s=e.split(/-(?!$)/),o=s[s.length-1];"Space"==o&&(o=" ");for(let e=0;e<s.length-1;e++){let o=s[e];if(/^(cmd|meta|m)$/i.test(o))i=!0;else if(/^a(lt)?$/i.test(o))t=!0;else if(/^(c|ctrl|control)$/i.test(o))r=!0;else if(/^s(hift)?$/i.test(o))n=!0;else if(/^mod$/i.test(o))h?i=!0:r=!0;else throw Error("Unrecognized modifier name: "+o)}return t&&(o="Alt-"+o),r&&(o="Ctrl-"+o),i&&(o="Meta-"+o),n&&(o="Shift-"+o),o}function f(e){let t=Object.create(null);for(let r in e)t[p(r)]=e[r];return t}function m(e,t,r=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function g(e){return new c.k_({props:{handleKeyDown:_(e)}})}function _(e){let t=f(e);return function(e,r){let i=u(r),s,o=t[m(i,r)];if(o&&o(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(r.shiftKey){let n=t[m(i,r,!1)];if(n&&n(e.state,e.dispatch,e))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(d&&r.ctrlKey&&r.altKey)&&(s=n[r.keyCode])&&s!=i){let n=t[m(s,r)];if(n&&n(e.state,e.dispatch,e))return!0}}return!1}}},13439:(e,t,r)=>{"use strict";r.d(t,{$Z:()=>eh,hG:()=>ek});var n=r(12115),i=r(47650),s=r(8039),o=r(95155),l=r(82159);let{getOwnPropertyNames:a,getOwnPropertySymbols:u}=Object,{hasOwnProperty:c}=Object.prototype;function h(e,t){return function(r,n,i){return e(r,n,i)&&t(r,n,i)}}function d(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);let{cache:i}=n,s=i.get(t),o=i.get(r);if(s&&o)return s===r&&o===t;i.set(t,r),i.set(r,t);let l=e(t,r,n);return i.delete(t),i.delete(r),l}}function p(e){return null!=e?e[Symbol.toStringTag]:void 0}function f(e){return a(e).concat(u(e))}let m=Object.hasOwn||((e,t)=>c.call(e,t));function g(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let _="__v",y="__o",k="_owner",{getOwnPropertyDescriptor:b,keys:w}=Object;function x(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e),new Uint8Array(t))}function v(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function C(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function A(e,t){return g(e.getTime(),t.getTime())}function E(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function S(e,t){return e===t}function M(e,t,r){let n,i,s=e.size;if(s!==t.size)return!1;if(!s)return!0;let o=Array(s),l=e.entries(),a=0;for(;(n=l.next())&&!n.done;){let s=t.entries(),l=!1,u=0;for(;(i=s.next())&&!i.done;){if(o[u]){u++;continue}let s=n.value,c=i.value;if(r.equals(s[0],c[0],a,u,e,t,r)&&r.equals(s[1],c[1],s[0],c[0],e,t,r)){l=o[u]=!0;break}u++}if(!l)return!1;a++}return!0}let T=g;function D(e,t,r){let n=w(e),i=n.length;if(w(t).length!==i)return!1;for(;i-- >0;)if(!z(e,t,r,n[i]))return!1;return!0}function F(e,t,r){let n,i,s,o=f(e),l=o.length;if(f(t).length!==l)return!1;for(;l-- >0;)if(!z(e,t,r,n=o[l])||(i=b(e,n),s=b(t,n),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function I(e,t){return g(e.valueOf(),t.valueOf())}function L(e,t){return e.source===t.source&&e.flags===t.flags}function R(e,t,r){let n,i,s=e.size;if(s!==t.size)return!1;if(!s)return!0;let o=Array(s),l=e.values();for(;(n=l.next())&&!n.done;){let s=t.values(),l=!1,a=0;for(;(i=s.next())&&!i.done;){if(!o[a]&&r.equals(n.value,i.value,n.value,i.value,e,t,r)){l=o[a]=!0;break}a++}if(!l)return!1}return!0}function N(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function O(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function z(e,t,r,n){return(n===k||n===y||n===_)&&(!!e.$$typeof||!!t.$$typeof)||m(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}let P="[object ArrayBuffer]",$="[object Arguments]",B="[object Boolean]",q="[object DataView]",j="[object Date]",H="[object Error]",U="[object Map]",V="[object Number]",W="[object Object]",J="[object RegExp]",K="[object Set]",G="[object String]",Z={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},X="[object URL]",Y=Object.prototype.toString;function Q({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:a,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:h,areTypedArraysEqual:d,areUrlsEqual:f,unknownTagComparators:m}){return function(g,_,y){if(g===_)return!0;if(null==g||null==_)return!1;let k=typeof g;if(k!==typeof _)return!1;if("object"!==k)return"number"===k?l(g,_,y):"function"===k&&s(g,_,y);let b=g.constructor;if(b!==_.constructor)return!1;if(b===Object)return a(g,_,y);if(Array.isArray(g))return t(g,_,y);if(b===Date)return n(g,_,y);if(b===RegExp)return c(g,_,y);if(b===Map)return o(g,_,y);if(b===Set)return h(g,_,y);let w=Y.call(g);if(w===j)return n(g,_,y);if(w===J)return c(g,_,y);if(w===U)return o(g,_,y);if(w===K)return h(g,_,y);if(w===W)return"function"!=typeof g.then&&"function"!=typeof _.then&&a(g,_,y);if(w===X)return f(g,_,y);if(w===H)return i(g,_,y);if(w===$)return a(g,_,y);if(Z[w])return d(g,_,y);if(w===P)return e(g,_,y);if(w===q)return r(g,_,y);if(w===B||w===V||w===G)return u(g,_,y);if(m){let e=m[w];if(!e){let t=p(g);t&&(e=m[t])}if(e)return e(g,_,y)}return!1}}function ee({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:x,areArraysEqual:r?F:v,areDataViewsEqual:C,areDatesEqual:A,areErrorsEqual:E,areFunctionsEqual:S,areMapsEqual:r?h(M,F):M,areNumbersEqual:T,areObjectsEqual:r?F:D,arePrimitiveWrappersEqual:I,areRegExpsEqual:L,areSetsEqual:r?h(R,F):R,areTypedArraysEqual:r?h(N,F):N,areUrlsEqual:O,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){let e=d(n.areArraysEqual),t=d(n.areMapsEqual),r=d(n.areObjectsEqual),i=d(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:r,areSetsEqual:i})}return n}function et(e){return function(t,r,n,i,s,o,l){return e(t,r,l)}}function er({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,o){let{cache:l=e?new WeakMap:void 0,meta:a}=r();return t(s,o,{cache:l,equals:n,meta:a,strict:i})};if(e)return function(e,r){return t(e,r,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};let s={cache:void 0,equals:n,meta:void 0,strict:i};return function(e,r){return t(e,r,s)}}let en=ei();function ei(e={}){let{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,s=Q(ee(e)),o=r?r(s):et(s);return er({circular:t,comparator:s,createState:n,equals:o,strict:i})}ei({strict:!0}),ei({circular:!0}),ei({circular:!0,strict:!0}),ei({createInternalComparator:()=>g}),ei({strict:!0,createInternalComparator:()=>g}),ei({circular:!0,createInternalComparator:()=>g}),ei({circular:!0,createInternalComparator:()=>g,strict:!0});var es=r(94577),eo=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},el=({contentComponent:e})=>{let t=(0,s.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,o.jsx)(o.Fragment,{children:Object.values(t)})};function ea(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(r,n){t={...t,[r]:i.createPortal(n.reactElement,n.element,r)},e.forEach(e=>e())},removeRenderer(r){let n={...t};delete n[r],t=n,e.forEach(e=>e())}}}var eu=class extends n.Component{constructor(e){super(e),this.editorContentRef=n.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;let t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){if(t.contentComponent)return;let e=this.editorContentRef.current;e.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:e}),t.contentComponent=ea(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;let t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.parentNode))return;let r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){let{editor:e,innerRef:t,...r}=this.props;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:eo(t,this.editorContentRef),...r}),(null==e?void 0:e.contentComponent)&&(0,o.jsx)(el,{contentComponent:e.contentComponent})]})}},ec=(0,n.forwardRef)((e,t)=>{let r=n.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return n.createElement(eu,{key:r,innerRef:t,...e})}),eh=n.memo(ec),ed="u">typeof window?n.useLayoutEffect:n.useEffect,ep=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}};function ef(e){var t;let[r]=(0,n.useState)(()=>new ep(e.editor)),i=(0,es.useSyncExternalStoreWithSelector)(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:en);return ed(()=>r.watch(e.editor),[e.editor,r]),(0,n.useDebugValue)(i),i}var em=!1,eg="u"<typeof window,e_=eg||!!("u">typeof window&&window.next),ey=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender){if(eg||e_){if(em)throw Error("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches.");return null}return this.createEditor()}if(this.options.current.immediatelyRender&&eg&&em)throw Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBeforeCreate)?void 0:r.call(t,...e)},onBlur:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBlur)?void 0:r.call(t,...e)},onCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onCreate)?void 0:r.call(t,...e)},onDestroy:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDestroy)?void 0:r.call(t,...e)},onFocus:(...e)=>{var t,r;return null==(r=(t=this.options.current).onFocus)?void 0:r.call(t,...e)},onSelectionUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onSelectionUpdate)?void 0:r.call(t,...e)},onTransaction:(...e)=>{var t,r;return null==(r=(t=this.options.current).onTransaction)?void 0:r.call(t,...e)},onUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onUpdate)?void 0:r.call(t,...e)},onContentError:(...e)=>{var t,r;return null==(r=(t=this.options.current).onContentError)?void 0:r.call(t,...e)},onDrop:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDrop)?void 0:r.call(t,...e)},onPaste:(...e)=>{var t,r;return null==(r=(t=this.options.current).onPaste)?void 0:r.call(t,...e)},onDelete:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDelete)?void 0:r.call(t,...e)}};return new l.KE(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(r=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)||("extensions"===r&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,r)=>{var n;return e===(null==(n=t.extensions)?void 0:n[r])}):e[r]===t[r]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,r)=>t===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function ek(e={},t=[]){let r=(0,n.useRef)(e);r.current=e;let[i]=(0,n.useState)(()=>new ey(r)),o=(0,s.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,n.useDebugValue)(o),(0,n.useEffect)(i.onRender(t)),ef({editor:o,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),o}var eb=(0,n.createContext)({editor:null});eb.Consumer;var ew=(0,n.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),ex=()=>(0,n.useContext)(ew);n.forwardRef((e,t)=>{let{onDragStart:r}=ex(),n=e.as||"div";return(0,o.jsx)(n,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...e.style}})}),n.createContext({markViewContentRef:()=>{}}),l.Db,l.Yv;var ev=(0,n.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});ev.displayName="TiptapContext";var eC=()=>(0,n.useContext)(ev);function eA({editor:e,instance:t,children:r}){let i=null!=e?e:t;if(!i)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let s=(0,n.useMemo)(()=>({editor:i}),[i]),l=(0,n.useMemo)(()=>({editor:i}),[i]);return(0,o.jsx)(eb.Provider,{value:l,children:(0,o.jsx)(ev.Provider,{value:s,children:r})})}function eE({...e}){let{editor:t}=eC();return(0,o.jsx)(eh,{editor:t,...e})}eA.displayName="Tiptap",eE.displayName="Tiptap.Content",Object.assign(eA,{Content:eE})},14066:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{TM:()=>Language,iX:()=>Parser});var C,TRANSFER_BUFFER,LANGUAGE_VERSION,MIN_COMPATIBLE_VERSION,process=__webpack_require__(41463),__defProp=Object.defineProperty,__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),Edit=class{static{__name(this,"Edit")}startPosition;oldEndPosition;newEndPosition;startIndex;oldEndIndex;newEndIndex;constructor({startIndex:e,oldEndIndex:t,newEndIndex:r,startPosition:n,oldEndPosition:i,newEndPosition:s}){this.startIndex=e>>>0,this.oldEndIndex=t>>>0,this.newEndIndex=r>>>0,this.startPosition=n,this.oldEndPosition=i,this.newEndPosition=s}editPoint(e,t){let r=t,n={...e};if(t>=this.oldEndIndex){r=this.newEndIndex+(t-this.oldEndIndex);let i=e.row;n.row=this.newEndPosition.row+(e.row-this.oldEndPosition.row),n.column=i===this.oldEndPosition.row?this.newEndPosition.column+(e.column-this.oldEndPosition.column):e.column}else t>this.startIndex&&(r=this.newEndIndex,n.row=this.newEndPosition.row,n.column=this.newEndPosition.column);return{point:n,index:r}}editRange(e){let t={startIndex:e.startIndex,startPosition:{...e.startPosition},endIndex:e.endIndex,endPosition:{...e.endPosition}};return e.endIndex>=this.oldEndIndex?e.endIndex!==Number.MAX_SAFE_INTEGER&&(t.endIndex=this.newEndIndex+(e.endIndex-this.oldEndIndex),t.endPosition={row:this.newEndPosition.row+(e.endPosition.row-this.oldEndPosition.row),column:e.endPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.endPosition.column-this.oldEndPosition.column):e.endPosition.column},t.endIndex<this.newEndIndex&&(t.endIndex=Number.MAX_SAFE_INTEGER,t.endPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.endIndex>this.startIndex&&(t.endIndex=this.startIndex,t.endPosition={...this.startPosition}),e.startIndex>=this.oldEndIndex?(t.startIndex=this.newEndIndex+(e.startIndex-this.oldEndIndex),t.startPosition={row:this.newEndPosition.row+(e.startPosition.row-this.oldEndPosition.row),column:e.startPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.startPosition.column-this.oldEndPosition.column):e.startPosition.column},t.startIndex<this.newEndIndex&&(t.startIndex=Number.MAX_SAFE_INTEGER,t.startPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.startIndex>this.startIndex&&(t.startIndex=this.startIndex,t.startPosition={...this.startPosition}),t}},SIZE_OF_SHORT=2,SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},INTERNAL=Symbol("INTERNAL");function assertInternal(e){if(e!==INTERNAL)throw Error("Illegal constructor")}function isPoint(e){return!!e&&"number"==typeof e.row&&"number"==typeof e.column}function setModule(e){C=e}__name(assertInternal,"assertInternal"),__name(isPoint,"isPoint"),__name(setModule,"setModule");var LookaheadIterator=class{static{__name(this,"LookaheadIterator")}0=0;language;constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}resetState(e){return!!C._ts_lookahead_iterator_reset_state(this[0],e)}[Symbol.iterator](){return{next:__name(()=>C._ts_lookahead_iterator_next(this[0])?{done:!1,value:this.currentType}:{done:!0,value:""},"next")}}};function getText(e,t,r,n){let i=r-t,s=e.textCallback(t,n);if(s){for(t+=s.length;t<r;){let r=e.textCallback(t,n);if(r&&r.length>0)t+=r.length,s+=r;else break}t>r&&(s=s.slice(0,i))}return s??""}__name(getText,"getText");var Tree=class _Tree{static{__name(this,"Tree")}0=0;textCallback;language;constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){return new _Tree(INTERNAL,C._ts_tree_copy(this[0]),this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}walk(){return this.rootNode.walk()}getChangedRanges(e){if(!(e instanceof _Tree))throw TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}},TreeCursor=class _TreeCursor{static{__name(this,"TreeCursor")}0=0;1=0;2=0;3=0;tree;constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}copy(){let e=new _TreeCursor(INTERNAL,this.tree);return C._ts_tree_cursor_copy_wasm(this.tree[0]),unmarshalTreeCursor(e),e}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);let e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);C._ts_tree_cursor_start_position_wasm(this.tree[0]);let r=unmarshalPoint(TRANSFER_BUFFER);return getText(this.tree,e,t,r)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoParent(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoFirstChildForIndex(e){marshalTreeCursor(this),C.setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");let t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);let t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}},Node=class{static{__name(this,"Node")}0=0;_children;_namedChildren;constructor(e,{id:t,tree:r,startIndex:n,startPosition:i,other:s}){assertInternal(e),this[0]=s,this.id=t,this.tree=r,this.startIndex=n,this.startPosition=i}id;startIndex;startPosition;tree;get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get text(){return getText(this.tree,this.startIndex,this.endIndex,this.startPosition)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}equals(e){return this.tree===e.tree&&this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){let t=this.tree.language.fields.indexOf(e);return -1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);let t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}fieldNameForNamedChild(e){marshalNode(this);let t=C._ts_node_field_name_for_named_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}childrenForFieldName(e){let t=this.tree.language.fields.indexOf(e);return -1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return n}firstChildForIndex(e){marshalNode(this);let t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);let t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t=ZERO_POINT,r=ZERO_POINT){Array.isArray(e)||(e=[e]);let n=[],i=this.tree.language.types;for(let t of e)"ERROR"==t&&n.push(65535);for(let t=0,r=i.length;t<r;t++)e.includes(i[t])&&n.push(t);let s=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)C.setValue(s+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],s,n.length,t.row,t.column,r.row,r.column);let o=C.getValue(TRANSFER_BUFFER,"i32"),l=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),a=Array(o);if(o>0){let e=l;for(let t=0;t<o;t++)a[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(l),C._free(s),a}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}childWithDescendant(e){return marshalNode(this),marshalNode(e,1),C._ts_node_child_with_descendant_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),C.setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),C.setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}edit(e){if(this.startIndex>=e.oldEndIndex){let t,r;this.startIndex=e.newEndIndex+(this.startIndex-e.oldEndIndex),this.startPosition.row>e.oldEndPosition.row?(t=this.startPosition.row-e.oldEndPosition.row,r=this.startPosition.column):(t=0,r=this.startPosition.column,this.startPosition.column>=e.oldEndPosition.column&&(r=this.startPosition.column-e.oldEndPosition.column)),t>0?(this.startPosition.row+=t,this.startPosition.column=r):this.startPosition.column+=r}else this.startIndex>e.startIndex&&(this.startIndex=e.newEndIndex,this.startPosition.row=e.newEndPosition.row,this.startPosition.column=e.newEndPosition.column)}toString(){marshalNode(this);let e=C._ts_node_to_string_wasm(this.tree[0]),t=C.AsciiToString(e);return C._free(e),t}};function unmarshalCaptures(e,t,r,n,i){for(let s=0,o=i.length;s<o;s++){let o=C.getValue(r,"i32"),l=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,i[s]={patternIndex:n,name:e.captureNames[o],node:l}}return r}function marshalNode(e,t=0){let r=TRANSFER_BUFFER+t*SIZE_OF_NODE;C.setValue(r,e.id,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startIndex,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startPosition.row,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startPosition.column,"i32"),r+=SIZE_OF_INT,C.setValue(r,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){let r=C.getValue(t,"i32");if(t+=SIZE_OF_INT,0===r)return null;let n=C.getValue(t,"i32");t+=SIZE_OF_INT;let i=C.getValue(t,"i32");t+=SIZE_OF_INT;let s=C.getValue(t,"i32");return t+=SIZE_OF_INT,new Node(INTERNAL,{id:r,tree:e,startIndex:n,startPosition:{row:i,column:s},other:C.getValue(t,"i32")})}function marshalTreeCursor(e,t=TRANSFER_BUFFER){C.setValue(t+0*SIZE_OF_INT,e[0],"i32"),C.setValue(t+ +SIZE_OF_INT,e[1],"i32"),C.setValue(t+2*SIZE_OF_INT,e[2],"i32"),C.setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=C.getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=C.getValue(TRANSFER_BUFFER+ +SIZE_OF_INT,"i32"),e[2]=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=C.getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){C.setValue(e,t.row,"i32"),C.setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:C.getValue(e,"i32")>>>0,column:C.getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),e+=SIZE_OF_POINT,C.setValue(e,t.startIndex,"i32"),e+=SIZE_OF_INT,C.setValue(e,t.endIndex,"i32")}function unmarshalRange(e){let t={};return t.startPosition=unmarshalPoint(e),t.endPosition=unmarshalPoint(e+=SIZE_OF_POINT),e+=SIZE_OF_POINT,t.startIndex=C.getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=C.getValue(e,"i32")>>>0,t}function marshalEdit(e,t=TRANSFER_BUFFER){marshalPoint(t,e.startPosition),marshalPoint(t+=SIZE_OF_POINT,e.oldEndPosition),marshalPoint(t+=SIZE_OF_POINT,e.newEndPosition),t+=SIZE_OF_POINT,C.setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.newEndIndex,"i32")}function unmarshalLanguageMetadata(e){let t=C.getValue(e,"i32");return{major_version:t,minor_version:C.getValue(e+=SIZE_OF_INT,"i32"),patch_version:C.getValue(e+=SIZE_OF_INT,"i32")}}__name(unmarshalCaptures,"unmarshalCaptures"),__name(marshalNode,"marshalNode"),__name(unmarshalNode,"unmarshalNode"),__name(marshalTreeCursor,"marshalTreeCursor"),__name(unmarshalTreeCursor,"unmarshalTreeCursor"),__name(marshalPoint,"marshalPoint"),__name(unmarshalPoint,"unmarshalPoint"),__name(marshalRange,"marshalRange"),__name(unmarshalRange,"unmarshalRange"),__name(marshalEdit,"marshalEdit"),__name(unmarshalLanguageMetadata,"unmarshalLanguageMetadata");var LANGUAGE_FUNCTION_REGEX=/^tree_sitter_\w+$/,Language=class _Language{static{__name(this,"Language")}0=0;types;fields;constructor(e,t){assertInternal(e),this[0]=t,this.types=Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)2>C._ts_language_symbol_type(this[0],e)&&(this.types[e]=C.UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);0!==t?this.fields[e]=C.UTF8ToString(t):this.fields[e]=null}}get name(){let e=C._ts_language_name(this[0]);return 0===e?null:C.UTF8ToString(e)}get abiVersion(){return C._ts_language_abi_version(this[0])}get metadata(){return(C._ts_language_metadata_wasm(this[0]),0===C.getValue(TRANSFER_BUFFER,"i32"))?null:unmarshalLanguageMetadata(TRANSFER_BUFFER+SIZE_OF_INT)}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){let t=this.fields.indexOf(e);return -1!==t?t:null}fieldNameForId(e){return this.fields[e]??null}idForNodeType(e,t){let r=C.lengthBytesUTF8(e),n=C._malloc(r+1);C.stringToUTF8(e,n,r+1);let i=C._ts_language_symbol_for_name(this[0],n,r,+!!t);return C._free(n),i||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){let t=C._ts_language_symbol_name(this[0],e);return t?C.UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}get supertypes(){C._ts_language_supertypes_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=C.getValue(n,"i16"),n+=SIZE_OF_SHORT}return r}subtypes(e){C._ts_language_subtypes_wasm(this[0],e);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=C.getValue(e,"i16"),e+=SIZE_OF_SHORT}return n}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){let t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterator(INTERNAL,t,this):null}static async load(e){let t;if(e instanceof Uint8Array)t=e;else if(globalThis.process?.versions.node){let r=await __webpack_require__.e(480).then(__webpack_require__.t.bind(__webpack_require__,80480,19));t=await r.readFile(e)}else{let r=await fetch(e);if(!r.ok){let e=await r.text();throw Error(`Language.load failed with status ${r.status}.
|
|
5
5
|
|
|
6
6
|
${e}`)}let n=r.clone();try{t=await WebAssembly.compileStreaming(r)}catch(e){console.error("wasm streaming compile failed:",e),console.error("falling back to ArrayBuffer instantiation"),t=new Uint8Array(await n.arrayBuffer())}}let r=await C.loadWebAssemblyModule(t,{loadAsync:!0}),n=Object.keys(r),i=n.find(e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_"));if(!i)throw console.log(`Couldn't find language function in Wasm file. Symbols:
|
|
7
|
-
${JSON.stringify(n,null,2)}`),Error("Language.load failed: no language function found in Wasm file");return new _Language(INTERNAL,r[i]())}};async function Module2(moduleArg={}){var moduleRtn,readAsync,readBinary,wasmBinary,EXITSTATUS,readyPromiseResolve,readyPromiseReject,wasmMemory,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP64,HEAPU64,HEAP_DATA_VIEW,wasmBinaryFile,functionsInTableMap,_malloc,_calloc,_realloc,_free,_ts_range_edit,_memcmp,_ts_language_symbol_count,_ts_language_state_count,_ts_language_abi_version,_ts_language_name,_ts_language_field_count,_ts_language_next_state,_ts_language_symbol_name,_ts_language_symbol_for_name,_strncmp,_ts_language_symbol_type,_ts_language_field_name_for_id,_ts_lookahead_iterator_new,_ts_lookahead_iterator_delete,_ts_lookahead_iterator_reset_state,_ts_lookahead_iterator_reset,_ts_lookahead_iterator_next,_ts_lookahead_iterator_current_symbol,_ts_point_edit,_ts_parser_delete,_ts_parser_reset,_ts_parser_set_language,_ts_parser_set_included_ranges,_ts_query_new,_ts_query_delete,_iswspace,_iswalnum,_ts_query_pattern_count,_ts_query_capture_count,_ts_query_string_count,_ts_query_capture_name_for_id,_ts_query_capture_quantifier_for_id,_ts_query_string_value_for_id,_ts_query_predicates_for_pattern,_ts_query_start_byte_for_pattern,_ts_query_end_byte_for_pattern,_ts_query_is_pattern_rooted,_ts_query_is_pattern_non_local,_ts_query_is_pattern_guaranteed_at_step,_ts_query_disable_capture,_ts_query_disable_pattern,_ts_tree_copy,_ts_tree_delete,_ts_init,_ts_parser_new_wasm,_ts_parser_enable_logger_wasm,_ts_parser_parse_wasm,_ts_parser_included_ranges_wasm,_ts_language_type_is_named_wasm,_ts_language_type_is_visible_wasm,_ts_language_metadata_wasm,_ts_language_supertypes_wasm,_ts_language_subtypes_wasm,_ts_tree_root_node_wasm,_ts_tree_root_node_with_offset_wasm,_ts_tree_edit_wasm,_ts_tree_included_ranges_wasm,_ts_tree_get_changed_ranges_wasm,_ts_tree_cursor_new_wasm,_ts_tree_cursor_copy_wasm,_ts_tree_cursor_delete_wasm,_ts_tree_cursor_reset_wasm,_ts_tree_cursor_reset_to_wasm,_ts_tree_cursor_goto_first_child_wasm,_ts_tree_cursor_goto_last_child_wasm,_ts_tree_cursor_goto_first_child_for_index_wasm,_ts_tree_cursor_goto_first_child_for_position_wasm,_ts_tree_cursor_goto_next_sibling_wasm,_ts_tree_cursor_goto_previous_sibling_wasm,_ts_tree_cursor_goto_descendant_wasm,_ts_tree_cursor_goto_parent_wasm,_ts_tree_cursor_current_node_type_id_wasm,_ts_tree_cursor_current_node_state_id_wasm,_ts_tree_cursor_current_node_is_named_wasm,_ts_tree_cursor_current_node_is_missing_wasm,_ts_tree_cursor_current_node_id_wasm,_ts_tree_cursor_start_position_wasm,_ts_tree_cursor_end_position_wasm,_ts_tree_cursor_start_index_wasm,_ts_tree_cursor_end_index_wasm,_ts_tree_cursor_current_field_id_wasm,_ts_tree_cursor_current_depth_wasm,_ts_tree_cursor_current_descendant_index_wasm,_ts_tree_cursor_current_node_wasm,_ts_node_symbol_wasm,_ts_node_field_name_for_child_wasm,_ts_node_field_name_for_named_child_wasm,_ts_node_children_by_field_id_wasm,_ts_node_first_child_for_byte_wasm,_ts_node_first_named_child_for_byte_wasm,_ts_node_grammar_symbol_wasm,_ts_node_child_count_wasm,_ts_node_named_child_count_wasm,_ts_node_child_wasm,_ts_node_named_child_wasm,_ts_node_child_by_field_id_wasm,_ts_node_next_sibling_wasm,_ts_node_prev_sibling_wasm,_ts_node_next_named_sibling_wasm,_ts_node_prev_named_sibling_wasm,_ts_node_descendant_count_wasm,_ts_node_parent_wasm,_ts_node_child_with_descendant_wasm,_ts_node_descendant_for_index_wasm,_ts_node_named_descendant_for_index_wasm,_ts_node_descendant_for_position_wasm,_ts_node_named_descendant_for_position_wasm,_ts_node_start_point_wasm,_ts_node_end_point_wasm,_ts_node_start_index_wasm,_ts_node_end_index_wasm,_ts_node_to_string_wasm,_ts_node_children_wasm,_ts_node_named_children_wasm,_ts_node_descendants_of_type_wasm,_ts_node_is_named_wasm,_ts_node_has_changes_wasm,_ts_node_has_error_wasm,_ts_node_is_error_wasm,_ts_node_is_missing_wasm,_ts_node_is_extra_wasm,_ts_node_parse_state_wasm,_ts_node_next_parse_state_wasm,_ts_query_matches_wasm,_ts_query_captures_wasm,_memset,_memcpy,_memmove,_iswalpha,_iswblank,_iswdigit,_iswlower,_iswupper,_iswxdigit,_memchr,_strlen,_strcmp,_strncat,_strncpy,_towlower,_towupper,_setThrew,__emscripten_stack_restore,__emscripten_stack_alloc,_emscripten_stack_get_current,___wasm_apply_data_relocs,wasmExports,Module=moduleArg,ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="u">typeof WorkerGlobalScope,ENVIRONMENT_IS_NODE="object"==typeof process&&void 0;if(ENVIRONMENT_IS_NODE){let{createRequire}=await __webpack_require__.e(6358).then(__webpack_require__.t.bind(__webpack_require__,86358,19));var require=createRequire("file:///home/runner/work/cockpit/cockpit/node_modules/web-tree-sitter/web-tree-sitter.js")}Module.currentQueryProgressCallback=null,Module.currentProgressCallback=null,Module.currentLogCallback=null,Module.currentParseCallback=null;var arguments_=[],thisProgram="./this.program",quit_=__name((e,t)=>{throw t},"quit_"),_scriptName="file:///home/runner/work/cockpit/cockpit/node_modules/web-tree-sitter/web-tree-sitter.js",scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(__name(locateFile,"locateFile"),ENVIRONMENT_IS_NODE){var fs=require("fs");_scriptName.startsWith("file:")&&(scriptDirectory=require("path").dirname(require("url").fileURLToPath(_scriptName))+"/"),readBinary=__name(e=>(e=isFileURI(e)?new URL(e):e,fs.readFileSync(e)),"readBinary"),readAsync=__name(async(e,t=!0)=>(e=isFileURI(e)?new URL(e):e,fs.readFileSync(e,t?void 0:"utf8")),"readAsync"),process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=__name((e,t)=>{throw process.exitCode=e,t},"quit_")}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){try{scriptDirectory=new URL(".",_scriptName).href}catch{}ENVIRONMENT_IS_WORKER&&(readBinary=__name(e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)},"readBinary")),readAsync=__name(async e=>{if(isFileURI(e))return new Promise((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r(n.status)},n.onerror=r,n.send(null)});var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw Error(t.status+" : "+t.url)},"readAsync")}var out=console.log.bind(console),err=console.error.bind(console),dynamicLibraries=[],ABORT=!1,isFileURI=__name(e=>e.startsWith("file://"),"isFileURI"),runtimeInitialized=!1;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e),Module.HEAP64=HEAP64=new BigInt64Array(e),Module.HEAPU64=HEAPU64=new BigUint64Array(e),Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),LE_HEAP_UPDATE()}function initMemory(){if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var e=Module.INITIAL_MEMORY||0x2000000;wasmMemory=new WebAssembly.Memory({initial:e/65536,maximum:32768})}updateMemoryViews()}__name(updateMemoryViews,"updateMemoryViews"),__name(initMemory,"initMemory");var __RELOC_FUNCS__=[];function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(onPreRuns)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),wasmExports.__wasm_call_ctors(),callRuntimeCallbacks(onPostCtors)}function preMain(){}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(onPostRuns)}function abort(e){Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw readyPromiseReject?.(t),t}function findWasmBinary(){return Module.locateFile?locateFile("web-tree-sitter.wasm"):new __webpack_require__.U(__webpack_require__(76022)).href}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}async function getWasmBinary(e){if(!wasmBinary)try{var t=await readAsync(e);return new Uint8Array(t)}catch{}return getBinarySync(e)}async function instantiateArrayBuffer(e,t){try{var r=await getWasmBinary(e);return await WebAssembly.instantiate(r,t)}catch(e){err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}}async function instantiateAsync(e,t,r){if(!e&&!isFileURI(t)&&!ENVIRONMENT_IS_NODE)try{var n=fetch(t,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,r)}catch(e){err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation")}return instantiateArrayBuffer(t,r)}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}async function createWasm(){function e(e,t){wasmExports=relocateExports(wasmExports=e.exports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),assignWasmExports(wasmExports),wasmExports}function t(t){return e(t.instance,t.module)}__name(e,"receiveInstance"),__name(t,"receiveInstantiationResult");var r=getWasmImports();return Module.instantiateWasm?new Promise((t,n)=>{Module.instantiateWasm(r,(r,n)=>{t(e(r,n))})}):(wasmBinaryFile??=findWasmBinary(),t(await instantiateAsync(wasmBinary,wasmBinaryFile,r)))}__name(preRun,"preRun"),__name(initRuntime,"initRuntime"),__name(preMain,"preMain"),__name(postRun,"postRun"),__name(abort,"abort"),__name(findWasmBinary,"findWasmBinary"),__name(getBinarySync,"getBinarySync"),__name(getWasmBinary,"getWasmBinary"),__name(instantiateArrayBuffer,"instantiateArrayBuffer"),__name(instantiateAsync,"instantiateAsync"),__name(getWasmImports,"getWasmImports"),__name(createWasm,"createWasm");class ExitStatus{static{__name(this,"ExitStatus")}name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_ATOMICS_NATIVE_BYTE_ORDER=[],LE_HEAP_LOAD_F32=__name(e=>HEAP_DATA_VIEW.getFloat32(e,!0),"LE_HEAP_LOAD_F32"),LE_HEAP_LOAD_F64=__name(e=>HEAP_DATA_VIEW.getFloat64(e,!0),"LE_HEAP_LOAD_F64"),LE_HEAP_LOAD_I16=__name(e=>HEAP_DATA_VIEW.getInt16(e,!0),"LE_HEAP_LOAD_I16"),LE_HEAP_LOAD_I32=__name(e=>HEAP_DATA_VIEW.getInt32(e,!0),"LE_HEAP_LOAD_I32"),LE_HEAP_LOAD_I64=__name(e=>HEAP_DATA_VIEW.getBigInt64(e,!0),"LE_HEAP_LOAD_I64"),LE_HEAP_LOAD_U32=__name(e=>HEAP_DATA_VIEW.getUint32(e,!0),"LE_HEAP_LOAD_U32"),LE_HEAP_STORE_F32=__name((e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),"LE_HEAP_STORE_F32"),LE_HEAP_STORE_F64=__name((e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),"LE_HEAP_STORE_F64"),LE_HEAP_STORE_I16=__name((e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),"LE_HEAP_STORE_I16"),LE_HEAP_STORE_I32=__name((e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),"LE_HEAP_STORE_I32"),LE_HEAP_STORE_I64=__name((e,t)=>HEAP_DATA_VIEW.setBigInt64(e,t,!0),"LE_HEAP_STORE_I64"),LE_HEAP_STORE_U32=__name((e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),"LE_HEAP_STORE_U32"),callRuntimeCallbacks=__name(e=>{for(;e.length>0;)e.shift()(Module)},"callRuntimeCallbacks"),onPostRuns=[],addOnPostRun=__name(e=>onPostRuns.push(e),"addOnPostRun"),onPreRuns=[],addOnPreRun=__name(e=>onPreRuns.push(e),"addOnPreRun"),UTF8Decoder="u">typeof TextDecoder?new TextDecoder:void 0,findStringEnd=__name((e,t,r,n)=>{var i=t+r;if(n)return i;for(;e[t]&&!(t>=i);)++t;return t},"findStringEnd"),UTF8ArrayToString=__name((e,t=0,r,n)=>{var i=findStringEnd(e,t,r,n);if(i-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,i));for(var s="";t<i;){var o=e[t++];if(!(128&o)){s+=String.fromCharCode(o);continue}var l=63&e[t++];if((224&o)==192){s+=String.fromCharCode((31&o)<<6|l);continue}var a=63&e[t++];if((o=(240&o)==224?(15&o)<<12|l<<6|a:(7&o)<<18|l<<12|a<<6|63&e[t++])<65536)s+=String.fromCharCode(o);else{var u=o-65536;s+=String.fromCharCode(55296|u>>10,56320|1023&u)}}return s},"UTF8ArrayToString"),getDylinkMetadata=__name(e=>{var t=0,r=0;function n(){return e[t++]}function i(){for(var r=0,n=1;;){var i=e[t++];if(r+=(127&i)*n,n*=128,!(128&i))break}return r}function s(){var r=i();return t+=r,UTF8ArrayToString(e,t-r,r)}function o(){for(var e=i(),t=[];e--;)t.push(s());return t}function l(e,t){if(e)throw Error(t)}if(__name(n,"getU8"),__name(i,"getLEB"),__name(s,"getString"),__name(o,"getStringList"),__name(l,"failIf"),e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,"dylink.0");l(0===a.length,"need dylink section"),r=(e=new Uint8Array(a[0])).length}else{var u=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);l(0x6d736100!=u[0]&&6386541!=u[0],"need to see wasm magic number"),l(0!==e[8],"need the dylink section to be first"),t=9;var c=i();r=t+c,l("dylink.0"!==s())}for(var h={neededDynlibs:[],tlsExports:new Set,weakImports:new Set,runtimePaths:[]},d=1,p=2,f=3,m=4,g=5,_=256,y=3,k=1;t<r;){var b=n(),w=i();if(b===d)h.memorySize=i(),h.memoryAlign=i(),h.tableSize=i(),h.tableAlign=i();else if(b===p)h.neededDynlibs=o();else if(b===f)for(var x=i();x--;){var v=s(),C=i();C&_&&h.tlsExports.add(v)}else if(b===m)for(var x=i();x--;){s();var v=s(),C=i();(C&y)==k&&h.weakImports.add(v)}else b===g?h.runtimePaths=o():t+=w}return h},"getDylinkMetadata");function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16((e>>1)*2);case"i32":return LE_HEAP_LOAD_I32((e>>2)*4);case"i64":return LE_HEAP_LOAD_I64((e>>3)*8);case"float":return LE_HEAP_LOAD_F32((e>>2)*4);case"double":return LE_HEAP_LOAD_F64((e>>3)*8);case"*":return LE_HEAP_LOAD_U32((e>>2)*4);default:abort(`invalid type for getValue: ${t}`)}}__name(getValue,"getValue");var newDSO=__name((e,t,r)=>{var n={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=n,void 0!=t&&(LDSO.loadedLibsByHandle[t]=n),n},"newDSO"),LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78240,alignMemory=__name((e,t)=>Math.ceil(e/t)*t,"alignMemory"),getMemory=__name(e=>{if(runtimeInitialized)return _calloc(e,1);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},"getMemory"),isInternalSym=__name(e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),"isInternalSym"),uleb128EncodeWithLen=__name(e=>{let t=e.length;return[t%128|128,t>>7,...e]},"uleb128EncodeWithLen"),wasmTypeCodes={i:127,p:127,j:126,f:125,d:124,e:111},generateTypePack=__name(e=>uleb128EncodeWithLen(Array.from(e,e=>wasmTypeCodes[e])),"generateTypePack"),convertJsFunctionToWasm=__name((e,t)=>{var r=Uint8Array.of(0,97,115,109,1,0,0,0,1,...uleb128EncodeWithLen([1,96,...generateTypePack(t.slice(1)),...generateTypePack("v"===t[0]?"":t[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),n=new WebAssembly.Module(r);return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},"convertJsFunctionToWasm"),wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:31,element:"anyfunc"}),getWasmTableEntry=__name(e=>{var t=wasmTableMirror[e];return t||(wasmTableMirror[e]=t=wasmTable.get(e)),t},"getWasmTableEntry"),updateTableMap=__name((e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},"updateTableMap"),getFunctionAddress=__name(e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),"getFunctionAddress"),freeTableIndexes=[],getEmptyTableSlot=__name(()=>freeTableIndexes.length?freeTableIndexes.pop():wasmTable.grow(1),"getEmptyTableSlot"),setWasmTableEntry=__name((e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},"setWasmTableEntry"),addFunction=__name((e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;setWasmTableEntry(n,convertJsFunctionToWasm(e,t))}return functionsInTableMap.set(e,n),n},"addFunction"),updateGOT=__name((e,t)=>{for(var r in e)if(!isInternalSym(r)){var n=e[r];GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err(`unhandled export type for '${r}': ${typeof n}`))}},"updateGOT"),relocateExports=__name((e,t,r)=>{var n={};for(var i in e){var s=e[i];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[i]=s}return updateGOT(n,r),n},"relocateExports"),isSymbolDefined=__name(e=>{var t=wasmImports[e];return!!t&&!t.stub},"isSymbolDefined"),dynCall=__name((e,t,r=[],n=!1)=>{var i=getWasmTableEntry(t)(...r);function s(e){return e}return __name(s,"convert"),s(i)},"dynCall"),stackSave=__name(()=>_emscripten_stack_get_current(),"stackSave"),stackRestore=__name(e=>__emscripten_stack_restore(e),"stackRestore"),createInvokeFunction=__name(e=>(t,...r)=>{var n=stackSave();try{return dynCall(e,t,r)}catch(t){if(stackRestore(n),t!==t+0)throw t;if(_setThrew(1,0),"j"==e[0])return 0n}},"createInvokeFunction"),resolveGlobalSymbol=__name((e,t=!1)=>{var r;return isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},"resolveGlobalSymbol"),onPostCtors=[],addOnPostCtor=__name(e=>onPostCtors.push(e),"addOnPostCtor"),UTF8ToString=__name((e,t,r)=>e?UTF8ArrayToString(HEAPU8,e,t,r):"","UTF8ToString"),loadWebAssemblyModule=__name((binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var moduleExports,memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32((handle+12>>2)*4,memoryBase),LE_HEAP_STORE_I32((handle+16>>2)*4,metadata.memorySize),LE_HEAP_STORE_U32((handle+20>>2)*4,tableBase),LE_HEAP_STORE_I32((handle+24>>2)*4,metadata.tableSize)),metadata.tableSize&&wasmTable.grow(metadata.tableSize),__name(resolveSymbol,"resolveSymbol");var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub){var r;return wasmImports[t]}return t in e||(e[t]=(...e)=>(r||=resolveSymbol(t))(...e)),e[t]}},proxy=new Proxy({},proxyHandler);currentModuleWeakSymbols=metadata.weakImports;var info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16;arity++)if(-1!=body.indexOf("$"+arity))args.push("$"+arity);else break;args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),__name(addEmAsm,"addEmAsm"),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(",")){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in __name(addEmJs,"addEmJs"),moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():addOnPostCtor(init)),moduleExports}if(__name(postInstantiation,"postInstantiation"),flags.loadAsync)return(async()=>{var e;return binary instanceof WebAssembly.Module?e=new WebAssembly.Instance(binary,info):{module:binary,instance:e}=await WebAssembly.instantiate(binary,info),postInstantiation(binary,e)})();var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return(__name(loadModule,"loadModule"),flags={...flags,rpath:{parentLibPath:libName,paths:metadata.runtimePaths}},flags.loadAsync)?metadata.neededDynlibs.reduce((e,t)=>e.then(()=>loadDynamicLibrary(t,flags,localScope)),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach(e=>loadDynamicLibrary(e,flags,localScope)),loadModule())},"loadWebAssemblyModule"),mergeLibSymbols=__name((e,t)=>{for(var[r,n]of Object.entries(e)){let e=__name(e=>{isSymbolDefined(e)||(wasmImports[e]=n)},"setImport");e(r);let t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main")}},"mergeLibSymbols"),asyncLoad=__name(async e=>new Uint8Array(await readAsync(e)),"asyncLoad");function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,n){var i=LDSO.loadedLibsByName[e];if(i)return t.global?i.global||(i.global=!0,mergeLibSymbols(i.exports,e)):r&&Object.assign(r,i.exports),t.nodelete&&i.refcount!==1/0&&(i.refcount=1/0),i.refcount++,n&&(LDSO.loadedLibsByHandle[n]=i),!t.loadAsync||Promise.resolve(!0);function s(){if(n){var r=LE_HEAP_LOAD_U32((n+28>>2)*4),i=LE_HEAP_LOAD_U32((n+32>>2)*4);if(r&&i){var s=HEAP8.slice(r,r+i);return t.loadAsync?Promise.resolve(s):s}}var o=locateFile(e);if(t.loadAsync)return asyncLoad(o);if(!readBinary)throw Error(`${o}: file not found, and synchronous loading of external files is not available`);return readBinary(o)}function o(){return t.loadAsync?s().then(i=>loadWebAssemblyModule(i,t,e,r,n)):loadWebAssemblyModule(s(),t,e,r,n)}function l(t){i.global?mergeLibSymbols(t,e):r&&Object.assign(r,t),i.exports=t}return((i=newDSO(e,n,"loading")).refcount=t.nodelete?1/0:1,i.global=t.global,__name(s,"loadLibData"),__name(o,"getExports"),__name(l,"moduleLoaded"),t.loadAsync)?o().then(e=>(l(e),!0)):(l(o()),!0)}__name(loadDynamicLibrary,"loadDynamicLibrary");var reportUndefinedSymbols=__name(()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else if("number"==typeof r)t.value=r;else throw Error(`bad export type for '${e}': ${typeof r}`)}},"reportUndefinedSymbols"),runDependencies=0,dependenciesFulfilled=null,removeRunDependency=__name(e=>{if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&dependenciesFulfilled){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}},"removeRunDependency"),addRunDependency=__name(e=>{runDependencies++,Module.monitorRunDependencies?.(runDependencies)},"addRunDependency"),loadDylibs=__name(async()=>{if(!dynamicLibraries.length)return void reportUndefinedSymbols();for(var e of(addRunDependency("loadDylibs"),dynamicLibraries))await loadDynamicLibrary(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0});reportUndefinedSymbols(),removeRunDependency("loadDylibs")},"loadDylibs"),noExitRuntime=!0;function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16((e>>1)*2,t);break;case"i32":LE_HEAP_STORE_I32((e>>2)*4,t);break;case"i64":LE_HEAP_STORE_I64((e>>3)*8,BigInt(t));break;case"float":LE_HEAP_STORE_F32((e>>2)*4,t);break;case"double":LE_HEAP_STORE_F64((e>>3)*8,t);break;case"*":LE_HEAP_STORE_U32((e>>2)*4,t);break;default:abort(`invalid type for setValue: ${r}`)}}__name(setValue,"setValue");var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_high=78240,___stack_low=12704,___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78240),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=__name(()=>abort(""),"__abort_js");__abort_js.sig="v";var getHeapMax=__name(()=>0x80000000,"getHeapMax"),growMemory=__name(e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536|0;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},"growMemory"),_emscripten_resize_heap=__name(e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var n=1;n<=4;n*=2){var i=t*(1+.2/n);if(i=Math.min(i,e+0x6000000),growMemory(Math.min(r,alignMemory(Math.max(e,i),65536))))return!0}return!1},"_emscripten_resize_heap");_emscripten_resize_heap.sig="ip";var _fd_close=__name(e=>52,"_fd_close");_fd_close.sig="ii";var INT53_MAX=0x20000000000000,INT53_MIN=-0x20000000000000,bigintToI53Checked=__name(e=>e<INT53_MIN||e>INT53_MAX?NaN:Number(e),"bigintToI53Checked");function _fd_seek(e,t,r,n){return t=bigintToI53Checked(t),70}__name(_fd_seek,"_fd_seek"),_fd_seek.sig="iijip";var printCharBuffers=[null,[],[]],printChar=__name((e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r)),r.length=0):r.push(t)},"printChar"),_fd_write=__name((e,t,r,n)=>{for(var i=0,s=0;s<r;s++){var o=LE_HEAP_LOAD_U32((t>>2)*4),l=LE_HEAP_LOAD_U32((t+4>>2)*4);t+=8;for(var a=0;a<l;a++)printChar(e,HEAPU8[o+a]);i+=l}return LE_HEAP_STORE_U32((n>>2)*4,i),0},"_fd_write");function _tree_sitter_log_callback(e,t){if(Module.currentLogCallback){let r=UTF8ToString(t);Module.currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,n,i){let s=10240,o=Module.currentParseCallback(t,{row:r,column:n});"string"==typeof o?(setValue(i,o.length,"i32"),stringToUTF16(o,e,s)):setValue(i,0,"i32")}function _tree_sitter_progress_callback(e,t){return!!Module.currentProgressCallback&&Module.currentProgressCallback({currentOffset:e,hasError:t})}function _tree_sitter_query_progress_callback(e){return!!Module.currentQueryProgressCallback&&Module.currentQueryProgressCallback({currentOffset:e})}_fd_write.sig="iippp",__name(_tree_sitter_log_callback,"_tree_sitter_log_callback"),__name(_tree_sitter_parse_callback,"_tree_sitter_parse_callback"),__name(_tree_sitter_progress_callback,"_tree_sitter_progress_callback"),__name(_tree_sitter_query_progress_callback,"_tree_sitter_query_progress_callback");var runtimeKeepaliveCounter=0,keepRuntimeAlive=__name(()=>noExitRuntime||runtimeKeepaliveCounter>0,"keepRuntimeAlive"),_proc_exit=__name(e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))},"_proc_exit");_proc_exit.sig="vi";var exitJS=__name((e,t)=>{EXITSTATUS=e,_proc_exit(e)},"exitJS"),handleException=__name(e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},"handleException"),lengthBytesUTF8=__name(e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},"lengthBytesUTF8"),stringToUTF8Array=__name((e,t,r,n)=>{if(!(n>0))return 0;for(var i=r,s=r+n-1,o=0;o<e.length;++o){var l=e.codePointAt(o);if(l<=127){if(r>=s)break;t[r++]=l}else if(l<=2047){if(r+1>=s)break;t[r++]=192|l>>6,t[r++]=128|63&l}else if(l<=65535){if(r+2>=s)break;t[r++]=224|l>>12,t[r++]=128|l>>6&63,t[r++]=128|63&l}else{if(r+3>=s)break;t[r++]=240|l>>18,t[r++]=128|l>>12&63,t[r++]=128|l>>6&63,t[r++]=128|63&l,o++}}return t[r]=0,r-i},"stringToUTF8Array"),stringToUTF8=__name((e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),"stringToUTF8"),stackAlloc=__name(e=>__emscripten_stack_alloc(e),"stackAlloc"),stringToUTF8OnStack=__name(e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},"stringToUTF8OnStack"),AsciiToString=__name(e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},"AsciiToString"),stringToUTF16=__name((e,t,r)=>{if((r??=0x7fffffff)<2)return 0;for(var n=t,i=(r-=2)<2*e.length?r/2:e.length,s=0;s<i;++s)LE_HEAP_STORE_I16((t>>1)*2,e.charCodeAt(s)),t+=2;return LE_HEAP_STORE_I16((t>>1)*2,0),t-n},"stringToUTF16");function LE_HEAP_UPDATE(){HEAPU16.unsigned=e=>65535&e,HEAPU32.unsigned=e=>e>>>0}if(LE_ATOMICS_NATIVE_BYTE_ORDER=1===new Int8Array(new Int16Array([1]).buffer)[0]?[e=>e,e=>e,void 0,e=>e]:[e=>e,e=>((65280&e)<<8|(255&e)<<24)>>16,void 0,e=>e>>24&255|e>>8&65280|(65280&e)<<8|(255&e)<<24],__name(LE_HEAP_UPDATE,"LE_HEAP_UPDATE"),initMemory(),Module.noExitRuntime&&(noExitRuntime=Module.noExitRuntime),Module.print&&(out=Module.print),Module.printErr&&(err=Module.printErr),Module.dynamicLibraries&&(dynamicLibraries=Module.dynamicLibraries),Module.wasmBinary&&(wasmBinary=Module.wasmBinary),Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.shift()();Module.setValue=setValue,Module.getValue=getValue,Module.UTF8ToString=UTF8ToString,Module.stringToUTF8=stringToUTF8,Module.lengthBytesUTF8=lengthBytesUTF8,Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,Module.loadWebAssemblyModule=loadWebAssemblyModule,Module.LE_HEAP_STORE_I64=LE_HEAP_STORE_I64;var ASM_CONSTS={};function assignWasmExports(e){Module._malloc=_malloc=e.malloc,Module._calloc=_calloc=e.calloc,Module._realloc=_realloc=e.realloc,Module._free=_free=e.free,Module._ts_range_edit=_ts_range_edit=e.ts_range_edit,Module._memcmp=_memcmp=e.memcmp,Module._ts_language_symbol_count=_ts_language_symbol_count=e.ts_language_symbol_count,Module._ts_language_state_count=_ts_language_state_count=e.ts_language_state_count,Module._ts_language_abi_version=_ts_language_abi_version=e.ts_language_abi_version,Module._ts_language_name=_ts_language_name=e.ts_language_name,Module._ts_language_field_count=_ts_language_field_count=e.ts_language_field_count,Module._ts_language_next_state=_ts_language_next_state=e.ts_language_next_state,Module._ts_language_symbol_name=_ts_language_symbol_name=e.ts_language_symbol_name,Module._ts_language_symbol_for_name=_ts_language_symbol_for_name=e.ts_language_symbol_for_name,Module._strncmp=_strncmp=e.strncmp,Module._ts_language_symbol_type=_ts_language_symbol_type=e.ts_language_symbol_type,Module._ts_language_field_name_for_id=_ts_language_field_name_for_id=e.ts_language_field_name_for_id,Module._ts_lookahead_iterator_new=_ts_lookahead_iterator_new=e.ts_lookahead_iterator_new,Module._ts_lookahead_iterator_delete=_ts_lookahead_iterator_delete=e.ts_lookahead_iterator_delete,Module._ts_lookahead_iterator_reset_state=_ts_lookahead_iterator_reset_state=e.ts_lookahead_iterator_reset_state,Module._ts_lookahead_iterator_reset=_ts_lookahead_iterator_reset=e.ts_lookahead_iterator_reset,Module._ts_lookahead_iterator_next=_ts_lookahead_iterator_next=e.ts_lookahead_iterator_next,Module._ts_lookahead_iterator_current_symbol=_ts_lookahead_iterator_current_symbol=e.ts_lookahead_iterator_current_symbol,Module._ts_point_edit=_ts_point_edit=e.ts_point_edit,Module._ts_parser_delete=_ts_parser_delete=e.ts_parser_delete,Module._ts_parser_reset=_ts_parser_reset=e.ts_parser_reset,Module._ts_parser_set_language=_ts_parser_set_language=e.ts_parser_set_language,Module._ts_parser_set_included_ranges=_ts_parser_set_included_ranges=e.ts_parser_set_included_ranges,Module._ts_query_new=_ts_query_new=e.ts_query_new,Module._ts_query_delete=_ts_query_delete=e.ts_query_delete,Module._iswspace=_iswspace=e.iswspace,Module._iswalnum=_iswalnum=e.iswalnum,Module._ts_query_pattern_count=_ts_query_pattern_count=e.ts_query_pattern_count,Module._ts_query_capture_count=_ts_query_capture_count=e.ts_query_capture_count,Module._ts_query_string_count=_ts_query_string_count=e.ts_query_string_count,Module._ts_query_capture_name_for_id=_ts_query_capture_name_for_id=e.ts_query_capture_name_for_id,Module._ts_query_capture_quantifier_for_id=_ts_query_capture_quantifier_for_id=e.ts_query_capture_quantifier_for_id,Module._ts_query_string_value_for_id=_ts_query_string_value_for_id=e.ts_query_string_value_for_id,Module._ts_query_predicates_for_pattern=_ts_query_predicates_for_pattern=e.ts_query_predicates_for_pattern,Module._ts_query_start_byte_for_pattern=_ts_query_start_byte_for_pattern=e.ts_query_start_byte_for_pattern,Module._ts_query_end_byte_for_pattern=_ts_query_end_byte_for_pattern=e.ts_query_end_byte_for_pattern,Module._ts_query_is_pattern_rooted=_ts_query_is_pattern_rooted=e.ts_query_is_pattern_rooted,Module._ts_query_is_pattern_non_local=_ts_query_is_pattern_non_local=e.ts_query_is_pattern_non_local,Module._ts_query_is_pattern_guaranteed_at_step=_ts_query_is_pattern_guaranteed_at_step=e.ts_query_is_pattern_guaranteed_at_step,Module._ts_query_disable_capture=_ts_query_disable_capture=e.ts_query_disable_capture,Module._ts_query_disable_pattern=_ts_query_disable_pattern=e.ts_query_disable_pattern,Module._ts_tree_copy=_ts_tree_copy=e.ts_tree_copy,Module._ts_tree_delete=_ts_tree_delete=e.ts_tree_delete,Module._ts_init=_ts_init=e.ts_init,Module._ts_parser_new_wasm=_ts_parser_new_wasm=e.ts_parser_new_wasm,Module._ts_parser_enable_logger_wasm=_ts_parser_enable_logger_wasm=e.ts_parser_enable_logger_wasm,Module._ts_parser_parse_wasm=_ts_parser_parse_wasm=e.ts_parser_parse_wasm,Module._ts_parser_included_ranges_wasm=_ts_parser_included_ranges_wasm=e.ts_parser_included_ranges_wasm,Module._ts_language_type_is_named_wasm=_ts_language_type_is_named_wasm=e.ts_language_type_is_named_wasm,Module._ts_language_type_is_visible_wasm=_ts_language_type_is_visible_wasm=e.ts_language_type_is_visible_wasm,Module._ts_language_metadata_wasm=_ts_language_metadata_wasm=e.ts_language_metadata_wasm,Module._ts_language_supertypes_wasm=_ts_language_supertypes_wasm=e.ts_language_supertypes_wasm,Module._ts_language_subtypes_wasm=_ts_language_subtypes_wasm=e.ts_language_subtypes_wasm,Module._ts_tree_root_node_wasm=_ts_tree_root_node_wasm=e.ts_tree_root_node_wasm,Module._ts_tree_root_node_with_offset_wasm=_ts_tree_root_node_with_offset_wasm=e.ts_tree_root_node_with_offset_wasm,Module._ts_tree_edit_wasm=_ts_tree_edit_wasm=e.ts_tree_edit_wasm,Module._ts_tree_included_ranges_wasm=_ts_tree_included_ranges_wasm=e.ts_tree_included_ranges_wasm,Module._ts_tree_get_changed_ranges_wasm=_ts_tree_get_changed_ranges_wasm=e.ts_tree_get_changed_ranges_wasm,Module._ts_tree_cursor_new_wasm=_ts_tree_cursor_new_wasm=e.ts_tree_cursor_new_wasm,Module._ts_tree_cursor_copy_wasm=_ts_tree_cursor_copy_wasm=e.ts_tree_cursor_copy_wasm,Module._ts_tree_cursor_delete_wasm=_ts_tree_cursor_delete_wasm=e.ts_tree_cursor_delete_wasm,Module._ts_tree_cursor_reset_wasm=_ts_tree_cursor_reset_wasm=e.ts_tree_cursor_reset_wasm,Module._ts_tree_cursor_reset_to_wasm=_ts_tree_cursor_reset_to_wasm=e.ts_tree_cursor_reset_to_wasm,Module._ts_tree_cursor_goto_first_child_wasm=_ts_tree_cursor_goto_first_child_wasm=e.ts_tree_cursor_goto_first_child_wasm,Module._ts_tree_cursor_goto_last_child_wasm=_ts_tree_cursor_goto_last_child_wasm=e.ts_tree_cursor_goto_last_child_wasm,Module._ts_tree_cursor_goto_first_child_for_index_wasm=_ts_tree_cursor_goto_first_child_for_index_wasm=e.ts_tree_cursor_goto_first_child_for_index_wasm,Module._ts_tree_cursor_goto_first_child_for_position_wasm=_ts_tree_cursor_goto_first_child_for_position_wasm=e.ts_tree_cursor_goto_first_child_for_position_wasm,Module._ts_tree_cursor_goto_next_sibling_wasm=_ts_tree_cursor_goto_next_sibling_wasm=e.ts_tree_cursor_goto_next_sibling_wasm,Module._ts_tree_cursor_goto_previous_sibling_wasm=_ts_tree_cursor_goto_previous_sibling_wasm=e.ts_tree_cursor_goto_previous_sibling_wasm,Module._ts_tree_cursor_goto_descendant_wasm=_ts_tree_cursor_goto_descendant_wasm=e.ts_tree_cursor_goto_descendant_wasm,Module._ts_tree_cursor_goto_parent_wasm=_ts_tree_cursor_goto_parent_wasm=e.ts_tree_cursor_goto_parent_wasm,Module._ts_tree_cursor_current_node_type_id_wasm=_ts_tree_cursor_current_node_type_id_wasm=e.ts_tree_cursor_current_node_type_id_wasm,Module._ts_tree_cursor_current_node_state_id_wasm=_ts_tree_cursor_current_node_state_id_wasm=e.ts_tree_cursor_current_node_state_id_wasm,Module._ts_tree_cursor_current_node_is_named_wasm=_ts_tree_cursor_current_node_is_named_wasm=e.ts_tree_cursor_current_node_is_named_wasm,Module._ts_tree_cursor_current_node_is_missing_wasm=_ts_tree_cursor_current_node_is_missing_wasm=e.ts_tree_cursor_current_node_is_missing_wasm,Module._ts_tree_cursor_current_node_id_wasm=_ts_tree_cursor_current_node_id_wasm=e.ts_tree_cursor_current_node_id_wasm,Module._ts_tree_cursor_start_position_wasm=_ts_tree_cursor_start_position_wasm=e.ts_tree_cursor_start_position_wasm,Module._ts_tree_cursor_end_position_wasm=_ts_tree_cursor_end_position_wasm=e.ts_tree_cursor_end_position_wasm,Module._ts_tree_cursor_start_index_wasm=_ts_tree_cursor_start_index_wasm=e.ts_tree_cursor_start_index_wasm,Module._ts_tree_cursor_end_index_wasm=_ts_tree_cursor_end_index_wasm=e.ts_tree_cursor_end_index_wasm,Module._ts_tree_cursor_current_field_id_wasm=_ts_tree_cursor_current_field_id_wasm=e.ts_tree_cursor_current_field_id_wasm,Module._ts_tree_cursor_current_depth_wasm=_ts_tree_cursor_current_depth_wasm=e.ts_tree_cursor_current_depth_wasm,Module._ts_tree_cursor_current_descendant_index_wasm=_ts_tree_cursor_current_descendant_index_wasm=e.ts_tree_cursor_current_descendant_index_wasm,Module._ts_tree_cursor_current_node_wasm=_ts_tree_cursor_current_node_wasm=e.ts_tree_cursor_current_node_wasm,Module._ts_node_symbol_wasm=_ts_node_symbol_wasm=e.ts_node_symbol_wasm,Module._ts_node_field_name_for_child_wasm=_ts_node_field_name_for_child_wasm=e.ts_node_field_name_for_child_wasm,Module._ts_node_field_name_for_named_child_wasm=_ts_node_field_name_for_named_child_wasm=e.ts_node_field_name_for_named_child_wasm,Module._ts_node_children_by_field_id_wasm=_ts_node_children_by_field_id_wasm=e.ts_node_children_by_field_id_wasm,Module._ts_node_first_child_for_byte_wasm=_ts_node_first_child_for_byte_wasm=e.ts_node_first_child_for_byte_wasm,Module._ts_node_first_named_child_for_byte_wasm=_ts_node_first_named_child_for_byte_wasm=e.ts_node_first_named_child_for_byte_wasm,Module._ts_node_grammar_symbol_wasm=_ts_node_grammar_symbol_wasm=e.ts_node_grammar_symbol_wasm,Module._ts_node_child_count_wasm=_ts_node_child_count_wasm=e.ts_node_child_count_wasm,Module._ts_node_named_child_count_wasm=_ts_node_named_child_count_wasm=e.ts_node_named_child_count_wasm,Module._ts_node_child_wasm=_ts_node_child_wasm=e.ts_node_child_wasm,Module._ts_node_named_child_wasm=_ts_node_named_child_wasm=e.ts_node_named_child_wasm,Module._ts_node_child_by_field_id_wasm=_ts_node_child_by_field_id_wasm=e.ts_node_child_by_field_id_wasm,Module._ts_node_next_sibling_wasm=_ts_node_next_sibling_wasm=e.ts_node_next_sibling_wasm,Module._ts_node_prev_sibling_wasm=_ts_node_prev_sibling_wasm=e.ts_node_prev_sibling_wasm,Module._ts_node_next_named_sibling_wasm=_ts_node_next_named_sibling_wasm=e.ts_node_next_named_sibling_wasm,Module._ts_node_prev_named_sibling_wasm=_ts_node_prev_named_sibling_wasm=e.ts_node_prev_named_sibling_wasm,Module._ts_node_descendant_count_wasm=_ts_node_descendant_count_wasm=e.ts_node_descendant_count_wasm,Module._ts_node_parent_wasm=_ts_node_parent_wasm=e.ts_node_parent_wasm,Module._ts_node_child_with_descendant_wasm=_ts_node_child_with_descendant_wasm=e.ts_node_child_with_descendant_wasm,Module._ts_node_descendant_for_index_wasm=_ts_node_descendant_for_index_wasm=e.ts_node_descendant_for_index_wasm,Module._ts_node_named_descendant_for_index_wasm=_ts_node_named_descendant_for_index_wasm=e.ts_node_named_descendant_for_index_wasm,Module._ts_node_descendant_for_position_wasm=_ts_node_descendant_for_position_wasm=e.ts_node_descendant_for_position_wasm,Module._ts_node_named_descendant_for_position_wasm=_ts_node_named_descendant_for_position_wasm=e.ts_node_named_descendant_for_position_wasm,Module._ts_node_start_point_wasm=_ts_node_start_point_wasm=e.ts_node_start_point_wasm,Module._ts_node_end_point_wasm=_ts_node_end_point_wasm=e.ts_node_end_point_wasm,Module._ts_node_start_index_wasm=_ts_node_start_index_wasm=e.ts_node_start_index_wasm,Module._ts_node_end_index_wasm=_ts_node_end_index_wasm=e.ts_node_end_index_wasm,Module._ts_node_to_string_wasm=_ts_node_to_string_wasm=e.ts_node_to_string_wasm,Module._ts_node_children_wasm=_ts_node_children_wasm=e.ts_node_children_wasm,Module._ts_node_named_children_wasm=_ts_node_named_children_wasm=e.ts_node_named_children_wasm,Module._ts_node_descendants_of_type_wasm=_ts_node_descendants_of_type_wasm=e.ts_node_descendants_of_type_wasm,Module._ts_node_is_named_wasm=_ts_node_is_named_wasm=e.ts_node_is_named_wasm,Module._ts_node_has_changes_wasm=_ts_node_has_changes_wasm=e.ts_node_has_changes_wasm,Module._ts_node_has_error_wasm=_ts_node_has_error_wasm=e.ts_node_has_error_wasm,Module._ts_node_is_error_wasm=_ts_node_is_error_wasm=e.ts_node_is_error_wasm,Module._ts_node_is_missing_wasm=_ts_node_is_missing_wasm=e.ts_node_is_missing_wasm,Module._ts_node_is_extra_wasm=_ts_node_is_extra_wasm=e.ts_node_is_extra_wasm,Module._ts_node_parse_state_wasm=_ts_node_parse_state_wasm=e.ts_node_parse_state_wasm,Module._ts_node_next_parse_state_wasm=_ts_node_next_parse_state_wasm=e.ts_node_next_parse_state_wasm,Module._ts_query_matches_wasm=_ts_query_matches_wasm=e.ts_query_matches_wasm,Module._ts_query_captures_wasm=_ts_query_captures_wasm=e.ts_query_captures_wasm,Module._memset=_memset=e.memset,Module._memcpy=_memcpy=e.memcpy,Module._memmove=_memmove=e.memmove,Module._iswalpha=_iswalpha=e.iswalpha,Module._iswblank=_iswblank=e.iswblank,Module._iswdigit=_iswdigit=e.iswdigit,Module._iswlower=_iswlower=e.iswlower,Module._iswupper=_iswupper=e.iswupper,Module._iswxdigit=_iswxdigit=e.iswxdigit,Module._memchr=_memchr=e.memchr,Module._strlen=_strlen=e.strlen,Module._strcmp=_strcmp=e.strcmp,Module._strncat=_strncat=e.strncat,Module._strncpy=_strncpy=e.strncpy,Module._towlower=_towlower=e.towlower,Module._towupper=_towupper=e.towupper,_setThrew=e.setThrew,__emscripten_stack_restore=e._emscripten_stack_restore,__emscripten_stack_alloc=e._emscripten_stack_alloc,_emscripten_stack_get_current=e.emscripten_stack_get_current,___wasm_apply_data_relocs=e.__wasm_apply_data_relocs}__name(assignWasmExports,"assignWasmExports");var wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_high:___stack_high,__stack_low:___stack_low,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback,tree_sitter_progress_callback:_tree_sitter_progress_callback,tree_sitter_query_progress_callback:_tree_sitter_query_progress_callback};function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,n=stackAlloc((r+1)*4),i=n;e.forEach(e=>{LE_HEAP_STORE_U32((i>>2)*4,stringToUTF8OnStack(e)),i+=4}),LE_HEAP_STORE_U32((i>>2)*4,0);try{var s=t(r,n);return exitJS(s,!0),s}catch(e){return handleException(e)}}}function run(e=arguments_){if(runDependencies>0||(preRun(),runDependencies>0)){dependenciesFulfilled=run;return}function t(){if(Module.calledRun=!0,!ABORT){initRuntime(),readyPromiseResolve?.(Module),Module.onRuntimeInitialized?.();var t=Module.noInitialRun||!1;t||callMain(e),postRun()}}__name(t,"doRun"),Module.setStatus?(Module.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>Module.setStatus(""),1),t()},1)):t()}return __name(callMain,"callMain"),__name(run,"run"),wasmExports=await createWasm(),run(),moduleRtn=runtimeInitialized?Module:new Promise((e,t)=>{readyPromiseResolve=e,readyPromiseReject=t})}__name(Module2,"Module");var web_tree_sitter_default=Module2,Module3=null;async function initializeBinding(e){return Module3??=await web_tree_sitter_default(e)}function checkModule(){return!!Module3}__name(initializeBinding,"initializeBinding"),__name(checkModule,"checkModule");var Parser=class{static{__name(this,"Parser")}0=0;1=0;logCallback=null;language=null;static async init(e){setModule(await initializeBinding(e)),TRANSFER_BUFFER=C._ts_init(),LANGUAGE_VERSION=C.getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}constructor(){this.initialize()}initialize(){if(!checkModule())throw Error("cannot construct a Parser before calling `init()`");C._ts_parser_new_wasm(),this[0]=C.getValue(TRANSFER_BUFFER,"i32"),this[1]=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e)if(e.constructor===Language){t=e[0];let r=C._ts_language_abi_version(t);if(r<MIN_COMPATIBLE_VERSION||LANGUAGE_VERSION<r)throw Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${LANGUAGE_VERSION}.`);this.language=e}else throw Error("Argument must be a Language");else t=0,this.language=null;return C._ts_parser_set_language(this[0],t),this}parse(e,t,r){if("string"==typeof e)C.currentParseCallback=t=>e.slice(t);else if("function"==typeof e)C.currentParseCallback=e;else throw Error("Argument must be a string or a function");r?.progressCallback?C.currentProgressCallback=r.progressCallback:C.currentProgressCallback=null,this.logCallback?(C.currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(C.currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let n=0,i=0;if(r?.includedRanges){n=r.includedRanges.length;let e=i=C._calloc(n,SIZE_OF_RANGE);for(let t=0;t<n;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}let s=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,i,n);if(!s)return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,null;if(!this.language)throw Error("Parser must have a language to parse");let o=new Tree(INTERNAL,s,this.language,C.currentParseCallback);return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,o}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}setLogger(e){if(e)if("function"!=typeof e)throw Error("Logger callback must be a function");else this.logCallback=e;else this.logCallback=null;return this}getLogger(){return this.logCallback}},PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,QUERY_WORD_REGEX=/[\w-]+/g,CaptureQuantifier={},isCaptureStep=__name(e=>"capture"===e.type,"isCaptureStep"),isStringStep=__name(e=>"string"===e.type,"isStringStep"),QueryErrorKind={Syntax:1,NodeName:2,FieldName:3,CaptureName:4,PatternStructure:5},QueryError=class _QueryError extends Error{constructor(e,t,r,n){super(_QueryError.formatMessage(e,t)),this.kind=e,this.info=t,this.index=r,this.length=n,this.name="QueryError"}static{__name(this,"QueryError")}static formatMessage(e,t){switch(e){case QueryErrorKind.NodeName:return`Bad node name '${t.word}'`;case QueryErrorKind.FieldName:return`Bad field name '${t.word}'`;case QueryErrorKind.CaptureName:return`Bad capture name @${t.word}`;case QueryErrorKind.PatternStructure:return`Bad pattern structure at offset ${t.suffix}`;case QueryErrorKind.Syntax:return`Bad syntax at offset ${t.suffix}`}}};function parseAnyPredicate(e,t,r,n){if(3!==e.length)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected 2, got ${e.length-1}`);if(!isCaptureStep(e[1]))throw Error(`First argument of \`#${r}\` predicate must be a capture. Got "${e[1].value}"`);let i="eq?"===r||"any-eq?"===r,s=!r.startsWith("any-");if(isCaptureStep(e[2])){let r=e[1].name,o=e[2].name;n[t].push(e=>{let t=[],n=[];for(let i of e)i.name===r&&t.push(i.node),i.name===o&&n.push(i.node);let l=__name((e,t,r)=>r?e.text===t.text:e.text!==t.text,"compare");return s?t.every(e=>n.some(t=>l(e,t,i))):t.some(e=>n.some(t=>l(e,t,i)))})}else{let r=e[1].name,o=e[2].value,l=__name(e=>e.text===o,"matches"),a=__name(e=>e.text!==o,"doesNotMatch");n[t].push(e=>{let t=[];for(let n of e)n.name===r&&t.push(n.node);let n=i?l:a;return s?t.every(n):t.some(n)})}}function parseMatchPredicate(e,t,r,n){if(3!==e.length)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected 2, got ${e.length-1}.`);if("capture"!==e[1].type)throw Error(`First argument of \`#${r}\` predicate must be a capture. Got "${e[1].value}".`);if("string"!==e[2].type)throw Error(`Second argument of \`#${r}\` predicate must be a string. Got @${e[2].name}.`);let i="match?"===r||"any-match?"===r,s=!r.startsWith("any-"),o=e[1].name,l=new RegExp(e[2].value);n[t].push(e=>{let t=[];for(let r of e)r.name===o&&t.push(r.node.text);let r=__name((e,t)=>t?l.test(e):!l.test(e),"test");return 0===t.length?!i:s?t.every(e=>r(e,i)):t.some(e=>r(e,i))})}function parseAnyOfPredicate(e,t,r,n){if(e.length<2)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected at least 1. Got ${e.length-1}.`);if("capture"!==e[1].type)throw Error(`First argument of \`#${r}\` predicate must be a capture. Got "${e[1].value}".`);let i="any-of?"===r,s=e[1].name,o=e.slice(2);if(!o.every(isStringStep))throw Error(`Arguments to \`#${r}\` predicate must be strings.".`);let l=o.map(e=>e.value);n[t].push(e=>{let t=[];for(let r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!i:t.every(e=>l.includes(e))===i})}function parseIsPredicate(e,t,r,n,i){if(e.length<2||e.length>3)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected 1 or 2. Got ${e.length-1}.`);if(!e.every(isStringStep))throw Error(`Arguments to \`#${r}\` predicate must be strings.".`);let s="is?"===r?n:i;s[t]||(s[t]={}),s[t][e[1].value]=e[2]?.value??null}function parseSetDirective(e,t,r){if(e.length<2||e.length>3)throw Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${e.length-1}.`);if(!e.every(isStringStep))throw Error('Arguments to `#set!` predicate must be strings.".');r[t]||(r[t]={}),r[t][e[1].value]=e[2]?.value??null}function parsePattern(e,t,r,n,i,s,o,l,a,u,c){if(t===PREDICATE_STEP_TYPE_CAPTURE){let e=n[r];s.push({type:"capture",name:e})}else if(t===PREDICATE_STEP_TYPE_STRING)s.push({type:"string",value:i[r]});else if(s.length>0){if("string"!==s[0].type)throw Error("Predicates must begin with a literal value");let t=s[0].value;switch(t){case"any-not-eq?":case"not-eq?":case"any-eq?":case"eq?":parseAnyPredicate(s,e,t,o);break;case"any-not-match?":case"not-match?":case"any-match?":case"match?":parseMatchPredicate(s,e,t,o);break;case"not-any-of?":case"any-of?":parseAnyOfPredicate(s,e,t,o);break;case"is?":case"is-not?":parseIsPredicate(s,e,t,u,c);break;case"set!":parseSetDirective(s,e,a);break;default:l[e].push({operator:t,operands:s.slice(1)})}s.length=0}}__name(parseAnyPredicate,"parseAnyPredicate"),__name(parseMatchPredicate,"parseMatchPredicate"),__name(parseAnyOfPredicate,"parseAnyOfPredicate"),__name(parseIsPredicate,"parseIsPredicate"),__name(parseSetDirective,"parseSetDirective"),__name(parsePattern,"parsePattern");var Query=class{static{__name(this,"Query")}0=0;exceededMatchLimit;textPredicates;captureNames;captureQuantifiers;predicates;setProperties;assertedProperties;refutedProperties;matchLimit;constructor(e,t){const r=C.lengthBytesUTF8(t),n=C._malloc(r+1);C.stringToUTF8(t,n,r+1);const i=C._ts_query_new(e[0],n,r,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!i){const e=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=C.getValue(TRANSFER_BUFFER,"i32"),i=C.UTF8ToString(n,r).length,s=t.slice(i,i+100).split("\n")[0],o=s.match(QUERY_WORD_REGEX)?.[0]??"";switch(C._free(n),e){case QueryErrorKind.Syntax:throw new QueryError(QueryErrorKind.Syntax,{suffix:`${i}: '${s}'...`},i,0);case QueryErrorKind.NodeName:case QueryErrorKind.FieldName:case QueryErrorKind.CaptureName:throw new QueryError(e,{word:o},i,o.length);case QueryErrorKind.PatternStructure:throw new QueryError(e,{suffix:`${i}: '${s}'...`},i,0)}}const s=C._ts_query_string_count(i),o=C._ts_query_capture_count(i),l=C._ts_query_pattern_count(i),a=Array(o),u=Array(l),c=Array(s);for(let e=0;e<o;e++){const t=C._ts_query_capture_name_for_id(i,e,TRANSFER_BUFFER),r=C.getValue(TRANSFER_BUFFER,"i32");a[e]=C.UTF8ToString(t,r)}for(let e=0;e<l;e++){const t=Array(o);for(let r=0;r<o;r++){const n=C._ts_query_capture_quantifier_for_id(i,e,r);t[r]=n}u[e]=t}for(let e=0;e<s;e++){const t=C._ts_query_string_value_for_id(i,e,TRANSFER_BUFFER),r=C.getValue(TRANSFER_BUFFER,"i32");c[e]=C.UTF8ToString(t,r)}const h=Array(l),d=Array(l),p=Array(l),f=Array(l),m=Array(l);for(let e=0;e<l;e++){const t=C._ts_query_predicates_for_pattern(i,e,TRANSFER_BUFFER),r=C.getValue(TRANSFER_BUFFER,"i32");f[e]=[],m[e]=[];const n=[];let s=t;for(let t=0;t<r;t++){const t=C.getValue(s,"i32");s+=SIZE_OF_INT;const r=C.getValue(s,"i32");s+=SIZE_OF_INT,parsePattern(e,t,r,a,c,n,m,f,h,d,p)}Object.freeze(m[e]),Object.freeze(f[e]),Object.freeze(h[e]),Object.freeze(d[e]),Object.freeze(p[e])}C._free(n),this[0]=i,this.captureNames=a,this.captureQuantifiers=u,this.textPredicates=m,this.predicates=f,this.setProperties=h,this.assertedProperties=d,this.refutedProperties=p,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,t={}){let r=t.startPosition??ZERO_POINT,n=t.endPosition??ZERO_POINT,i=t.startIndex??0,s=t.endIndex??0,o=t.startContainingPosition??ZERO_POINT,l=t.endContainingPosition??ZERO_POINT,a=t.startContainingIndex??0,u=t.endContainingIndex??0,c=t.matchLimit??0xffffffff,h=t.maxStartDepth??0xffffffff,d=t.progressCallback;if("number"!=typeof c)throw Error("Arguments must be numbers");if(this.matchLimit=c,0!==s&&i>s)throw Error("`startIndex` cannot be greater than `endIndex`");if(n!==ZERO_POINT&&(r.row>n.row||r.row===n.row&&r.column>n.column))throw Error("`startPosition` cannot be greater than `endPosition`");if(0!==u&&a>u)throw Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(l!==ZERO_POINT&&(o.row>l.row||o.row===l.row&&o.column>l.column))throw Error("`startContainingPosition` cannot be greater than `endContainingPosition`");d&&(C.currentQueryProgressCallback=d),marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],r.row,r.column,n.row,n.column,i,s,o.row,o.column,l.row,l.column,a,u,c,h);let p=C.getValue(TRANSFER_BUFFER,"i32"),f=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),m=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),g=Array(p);this.exceededMatchLimit=!!m;let _=0,y=f;for(let t=0;t<p;t++){let t=C.getValue(y,"i32");y+=SIZE_OF_INT;let r=C.getValue(y,"i32");y+=SIZE_OF_INT;let n=Array(r);if(y=unmarshalCaptures(this,e.tree,y,t,n),this.textPredicates[t].every(e=>e(n))){g[_]={patternIndex:t,captures:n};let e=this.setProperties[t];g[_].setProperties=e;let r=this.assertedProperties[t];g[_].assertedProperties=r;let i=this.refutedProperties[t];g[_].refutedProperties=i,_++}}return g.length=_,C._free(f),C.currentQueryProgressCallback=null,g}captures(e,t={}){let r=t.startPosition??ZERO_POINT,n=t.endPosition??ZERO_POINT,i=t.startIndex??0,s=t.endIndex??0,o=t.startContainingPosition??ZERO_POINT,l=t.endContainingPosition??ZERO_POINT,a=t.startContainingIndex??0,u=t.endContainingIndex??0,c=t.matchLimit??0xffffffff,h=t.maxStartDepth??0xffffffff,d=t.progressCallback;if("number"!=typeof c)throw Error("Arguments must be numbers");if(this.matchLimit=c,0!==s&&i>s)throw Error("`startIndex` cannot be greater than `endIndex`");if(n!==ZERO_POINT&&(r.row>n.row||r.row===n.row&&r.column>n.column))throw Error("`startPosition` cannot be greater than `endPosition`");if(0!==u&&a>u)throw Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(l!==ZERO_POINT&&(o.row>l.row||o.row===l.row&&o.column>l.column))throw Error("`startContainingPosition` cannot be greater than `endContainingPosition`");d&&(C.currentQueryProgressCallback=d),marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],r.row,r.column,n.row,n.column,i,s,o.row,o.column,l.row,l.column,a,u,c,h);let p=C.getValue(TRANSFER_BUFFER,"i32"),f=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),m=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),g=[];this.exceededMatchLimit=!!m;let _=[],y=f;for(let t=0;t<p;t++){let t=C.getValue(y,"i32");y+=SIZE_OF_INT;let r=C.getValue(y,"i32");y+=SIZE_OF_INT;let n=C.getValue(y,"i32");if(y+=SIZE_OF_INT,_.length=r,y=unmarshalCaptures(this,e.tree,y,t,_),this.textPredicates[t].every(e=>e(_))){let e=_[n];e.setProperties=this.setProperties[t],e.assertedProperties=this.assertedProperties[t],e.refutedProperties=this.refutedProperties[t],g.push(e)}}return C._free(f),C.currentQueryProgressCallback=null,g}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){let t=C.lengthBytesUTF8(e),r=C._malloc(t+1);C.stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}disablePattern(e){if(e>=this.predicates.length)throw Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);C._ts_query_disable_pattern(this[0],e)}didExceedMatchLimit(){return this.exceededMatchLimit}startIndexForPattern(e){if(e>=this.predicates.length)throw Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);return C._ts_query_start_byte_for_pattern(this[0],e)}endIndexForPattern(e){if(e>=this.predicates.length)throw Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);return C._ts_query_end_byte_for_pattern(this[0],e)}patternCount(){return C._ts_query_pattern_count(this[0])}captureIndexForName(e){return this.captureNames.indexOf(e)}isPatternRooted(e){return 1===C._ts_query_is_pattern_rooted(this[0],e)}isPatternNonLocal(e){return 1===C._ts_query_is_pattern_non_local(this[0],e)}isPatternGuaranteedAtStep(e){return 1===C._ts_query_is_pattern_guaranteed_at_step(this[0],e)}}},15813:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],s=(0,n.A)("list",i)},20232:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],s=(0,n.A)("play",i)},20986:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],s=(0,n.A)("rotate-cw",i)},26932:(e,t,r)=>{"use strict";r.d(t,{o:()=>nz});var n,i,s,o,l,a,u,c={};r.r(c),r.d(c,{decode:()=>k,encode:()=>v,format:()=>C,parse:()=>z});var h={};r.r(h),r.d(h,{Any:()=>B,Cc:()=>q,Cf:()=>j,P:()=>P,S:()=>$,Z:()=>H});var d={};r.r(d),r.d(d,{arrayReplaceAt:()=>ed,assign:()=>eh,escapeHtml:()=>eE,escapeRE:()=>eM,fromCodePoint:()=>ef,has:()=>ec,isMdAsciiPunct:()=>eI,isPunctChar:()=>eF,isSpace:()=>eT,isString:()=>ea,isValidEntityCode:()=>ep,isWhiteSpace:()=>eD,lib:()=>eN,normalizeReference:()=>eL,unescapeAll:()=>ew,unescapeMd:()=>eb});var p={};r.r(p),r.d(p,{parseLinkDestination:()=>eO,parseLinkLabel:()=>eR,parseLinkTitle:()=>ez});var f=r(82159),m=r(27050);let g={};function _(e){let t=g[e];if(t)return t;t=g[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);t.push(r)}for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function y(e,t){"string"!=typeof t&&(t=y.defaultChars);let r=_(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let n=0,i=e.length;n<i;n+=3){let s=parseInt(e.slice(n+1,n+3),16);if(s<128){t+=r[s];continue}if((224&s)==192&&n+3<i){let r=parseInt(e.slice(n+4,n+6),16);if((192&r)==128){let e=s<<6&1984|63&r;e<128?t+="��":t+=String.fromCharCode(e),n+=3;continue}}if((240&s)==224&&n+6<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16);if((192&r)==128&&(192&i)==128){let e=s<<12&61440|r<<6&4032|63&i;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),n+=6;continue}}if((248&s)==240&&n+9<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16),o=parseInt(e.slice(n+10,n+12),16);if((192&r)==128&&(192&i)==128&&(192&o)==128){let e=s<<18&1835008|r<<12&258048|i<<6&4032|63&o;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}t+="�"}return t})}y.defaultChars=";/?:@&=+$,#",y.componentChars="";let k=y,b={};function w(e){let t=b[e];if(t)return t;t=b[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}function x(e,t,r){"string"!=typeof t&&(r=t,t=x.defaultChars),void 0===r&&(r=!0);let n=w(t),i="";for(let t=0,s=e.length;t<s;t++){let o=e.charCodeAt(t);if(r&&37===o&&t+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=n[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<s){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[t])}return i}x.defaultChars=";/?:@&=+$,-_.!~*'()#",x.componentChars="-_.!~*'()";let v=x;function C(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}function A(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}let E=/^([a-z0-9.+-]+:)/i,S=/:[0-9]*$/,M=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,T=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "]))),D=["/","?","#"],F=255,I=/^[+a-z0-9A-Z_-]{0,63}$/,L=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,N={javascript:!0,"javascript:":!0},R={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function O(e,t){if(e&&e instanceof A)return e;let r=new A;return r.parse(e,t),r}A.prototype.parse=function(e,t){let r,n,i,s=e;if(s=s.trim(),!t&&1===e.split("#").length){let e=M.exec(s);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=E.exec(s);if(o&&(r=(o=o[0]).toLowerCase(),this.protocol=o,s=s.substr(o.length)),(t||o||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===s.substr(0,2))&&!(o&&N[o])&&(s=s.substr(2),this.slashes=!0),!N[o]&&(i||o&&!R[o])){let e,t,r=-1;for(let e=0;e<D.length;e++)-1!==(n=s.indexOf(D[e]))&&(-1===r||n<r)&&(r=n);-1!==(t=-1===r?s.lastIndexOf("@"):s.lastIndexOf("@",r))&&(e=s.slice(0,t),s=s.slice(t+1),this.auth=e),r=-1;for(let e=0;e<T.length;e++)-1!==(n=s.indexOf(T[e]))&&(-1===r||n<r)&&(r=n);-1===r&&(r=s.length),":"===s[r-1]&&r--;let i=s.slice(0,r);s=s.slice(r),this.parseHost(i),this.hostname=this.hostname||"";let o="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!o){let e=this.hostname.split(/\./);for(let t=0,r=e.length;t<r;t++){let r=e[t];if(r&&!r.match(I)){let n="";for(let e=0,t=r.length;e<t;e++)r.charCodeAt(e)>127?n+="x":n+=r[e];if(!n.match(I)){let n=e.slice(0,t),i=e.slice(t+1),o=r.match(L);o&&(n.push(o[1]),i.unshift(o[2])),i.length&&(s=i.join(".")+s),this.hostname=n.join(".");break}}}}this.hostname.length>F&&(this.hostname=""),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let l=s.indexOf("#");-1!==l&&(this.hash=s.substr(l),s=s.slice(0,l));let a=s.indexOf("?");return -1!==a&&(this.search=s.substr(a),s=s.slice(0,a)),s&&(this.pathname=s),R[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},A.prototype.parseHost=function(e){let t=S.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};let z=O,P=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,$=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,B=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,q=/[\0-\x1F\x7F-\x9F]/,j=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,H=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,U=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\uD835\uDD04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\uD835\uDC9Cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegra\xecȹoɴ\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀\uD835\uDD09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱c\xf2JTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\0ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦\xeberyThi\xeetedĀGLଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\uD835\uDCA9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻\xd3䃓Āiyීrc耻\xd4䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻\xd2䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻\xd8䃘iŬืde耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCACBEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbbpArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\uD835\uDD17ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8a;䎖r;愨pf;愤cr;쀀\uD835\uDCB5ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\uD835\uDD1Erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;eᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fgcostuvwឍឝឳេ៕៛ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom\xbbᏌtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t\xbbpƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ\0\0aĀ;t䀬;䁀ƀ;fl戁\xeeᅠeĀmxent\xbbe\xf3ɍǧ\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\uD835\uDD54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍r\xf2ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\uD835\uDD21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴo\xf4ĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0pro\xf8r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\uD835\uDD5Aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\0⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\uD835\uDD29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xedistĀ;sடr;쀀\uD835\uDD2BȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lan\xf4i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\uD835\uDD5F膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lle\xecl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5;쀀\uD835\uDCC3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;cⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀\uD835\uDD2Cͯ\0\0\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨr\xf2᪀Āirⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀\xb6;l䂶le\xecЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴\xefrel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⋢⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀaeo⿸〉〓tĀei々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\uD835\uDD2FĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2a\xf2Ց;怏oustĀ;a㈞掱che\xbbmid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫwar;椪lig耻\xdf䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xebƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8im\xbbኬs\xf0ኞĀas㚺㚮\xf0rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\uD835\uDD33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\uD835\uDD67ro\xf0tr\xe9㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦at\xe8ᑹcr;쀀\uD835\uDCCCૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtr\xe9៑r;쀀\uD835\uDD35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),V=new Uint16Array("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),W=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),J=null!=(n=String.fromCodePoint)?n:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function K(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!=(t=W.get(e))?t:e}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(i||(i={}));let G=32;function Z(e){return e>=i.ZERO&&e<=i.NINE}function X(e){return e>=i.UPPER_A&&e<=i.UPPER_F||e>=i.LOWER_A&&e<=i.LOWER_F}function Y(e){return e>=i.UPPER_A&&e<=i.UPPER_Z||e>=i.LOWER_A&&e<=i.LOWER_Z||Z(e)}function Q(e){return e===i.EQUALS||Y(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(s||(s={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(o||(o={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(l||(l={}));class ee{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=o.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l.Strict}startEntity(e){this.decodeMode=e,this.state=o.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case o.EntityStart:if(e.charCodeAt(t)===i.NUM)return this.state=o.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=o.NamedEntity,this.stateNamedEntity(e,t);case o.NumericStart:return this.stateNumericStart(e,t);case o.NumericDecimal:return this.stateNumericDecimal(e,t);case o.NumericHex:return this.stateNumericHex(e,t);case o.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|G)===i.LOWER_X?(this.state=o.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=o.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let i=r-t;this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!(Z(n)||X(n)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(n,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!Z(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===i.SEMI)this.consumed+=1;else if(this.decodeMode===l.Strict)return 0;return this.emitCodePoint(K(this.result),this.consumed),this.errors&&(e!==i.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],o=(n&s.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=er(r,n,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return 0===this.result||this.decodeMode===l.Attribute&&(0===o||Q(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(o=((n=r[this.treeIndex])&s.VALUE_LENGTH)>>14)){if(a===i.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==l.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&s.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~s.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case o.NamedEntity:return 0!==this.result&&(this.decodeMode!==l.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case o.NumericDecimal:return this.emitNumericEntity(0,2);case o.NumericHex:return this.emitNumericEntity(0,3);case o.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case o.EntityStart:return 0}}}function et(e){let t="",r=new ee(e,e=>t+=J(e));return function(e,n){let i=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(i,s),r.startEntity(n);let o=r.write(e,s+1);if(o<0){i=s+r.end();break}i=s+o,s=0===o?i+1:i}let o=t+e.slice(i);return t="",o}}function er(e,t,r,n){let i=(t&s.BRANCH_LENGTH)>>7,o=t&s.JUMP_TABLE;if(0===i)return 0!==o&&n===o?r:-1;if(o){let t=n-o;return t<0||t>=i?-1:e[r+t]-1}let l=r,a=l+i-1;for(;l<=a;){let t=l+a>>>1,r=e[t];if(r<n)l=t+1;else{if(!(r>n))return e[t+i];a=t-1}}return -1}let en=et(U);function ei(e,t=l.Legacy){return en(e,t)}et(V);let es=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function eo(e,t){return function(r){let n,i=0,s="";for(;n=e.exec(r);)i!==n.index&&(s+=r.substring(i,n.index)),s+=t.get(n[0].charCodeAt(0)),i=n.index+1;return s+r.substring(i)}}function el(e){return Object.prototype.toString.call(e)}function ea(e){return"[object String]"===el(e)}String.prototype.codePointAt,eo(/[&<>'"]/g,es),eo(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),eo(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(a||(a={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(u||(u={}));let eu=Object.prototype.hasOwnProperty;function ec(e,t){return eu.call(e,t)}function eh(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(r){e[r]=t[r]})}}),e}function ed(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function ep(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)&&!0}function ef(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}let em=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,eg=/&([a-z#][a-z0-9]{1,31});/gi,e_=RegExp(em.source+"|"+eg.source,"gi"),ey=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ek(e,t){if(35===t.charCodeAt(0)&&ey.test(t)){let r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ep(r)?ef(r):e}let r=ei(e);return r!==e?r:e}function eb(e){return 0>e.indexOf("\\")?e:e.replace(em,"$1")}function ew(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(e_,function(e,t,r){return t||ek(e,r)})}let ex=/[&<>"]/,ev=/[&<>"]/g,eC={"&":"&","<":"<",">":">",'"':"""};function eA(e){return eC[e]}function eE(e){return ex.test(e)?e.replace(ev,eA):e}let eS=/[.?*+^$[\]\\(){}|-]/g;function eM(e){return e.replace(eS,"\\$&")}function eT(e){switch(e){case 9:case 32:return!0}return!1}function eD(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function eF(e){return P.test(e)||$.test(e)}function eI(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function eL(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}let eN={mdurl:c,ucmicro:h};function eR(e,t,r){let n,i,s,o,l=e.posMax,a=e.pos;for(e.pos=t+1,n=1;e.pos<l;){if(93===(s=e.src.charCodeAt(e.pos))&&0==--n){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===s){if(o===e.pos-1)n++;else if(r)return e.pos=a,-1}}let u=-1;return i&&(u=e.pos),e.pos=a,u}function eO(e,t,r){let n,i=t,s={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<r&&10!==(n=e.charCodeAt(i))&&60!==n;){if(62===n){s.pos=i+1,s.str=ew(e.slice(t+1,i)),s.ok=!0;break}if(92===n&&i+1<r){i+=2;continue}i++}return s}let o=0;for(;i<r&&32!==(n=e.charCodeAt(i))&&!(n<32)&&127!==n;){if(92===n&&i+1<r){if(32===e.charCodeAt(i+1))break;i+=2;continue}if(40===n&&++o>32)return s;if(41===n){if(0===o)break;o--}i++}return t===i||0!==o||(s.str=ew(e.slice(t,i)),s.pos=i,s.ok=!0),s}function ez(e,t,r,n){let i,s=t,o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(s>=r)return o;let n=e.charCodeAt(s);if(34!==n&&39!==n&&40!==n)return o;t++,s++,40===n&&(n=41),o.marker=n}for(;s<r;){if((i=e.charCodeAt(s))===o.marker)return o.pos=s+1,o.str+=ew(e.slice(t,s)),o.ok=!0,o;if(40===i&&41===o.marker)return o;92===i&&s+1<r&&s++,s++}return o.can_continue=!0,o.str+=ew(e.slice(t,s)),o}let eP={};function e$(){this.rules=eh({},eP)}eP.code_inline=function(e,t,r,n,i){let s=e[t];return"<code"+i.renderAttrs(s)+">"+eE(s.content)+"</code>"},eP.code_block=function(e,t,r,n,i){let s=e[t];return"<pre"+i.renderAttrs(s)+"><code>"+eE(e[t].content)+"</code></pre>\n"},eP.fence=function(e,t,r,n,i){let s,o=e[t],l=o.info?ew(o.info).trim():"",a="",u="";if(l){let e=l.split(/(\s+)/g);a=e[0],u=e.slice(2).join("")}if(0===(s=r.highlight&&r.highlight(o.content,a,u)||eE(o.content)).indexOf("<pre"))return s+"\n";if(l){let e=o.attrIndex("class"),t=o.attrs?o.attrs.slice():[];e<0?t.push(["class",r.langPrefix+a]):(t[e]=t[e].slice(),t[e][1]+=" "+r.langPrefix+a);let n={attrs:t};return`<pre><code${i.renderAttrs(n)}>${s}</code></pre>
|
|
7
|
+
${JSON.stringify(n,null,2)}`),Error("Language.load failed: no language function found in Wasm file");return new _Language(INTERNAL,r[i]())}};async function Module2(moduleArg={}){var moduleRtn,readAsync,readBinary,wasmBinary,EXITSTATUS,readyPromiseResolve,readyPromiseReject,wasmMemory,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP64,HEAPU64,HEAP_DATA_VIEW,wasmBinaryFile,functionsInTableMap,_malloc,_calloc,_realloc,_free,_ts_range_edit,_memcmp,_ts_language_symbol_count,_ts_language_state_count,_ts_language_abi_version,_ts_language_name,_ts_language_field_count,_ts_language_next_state,_ts_language_symbol_name,_ts_language_symbol_for_name,_strncmp,_ts_language_symbol_type,_ts_language_field_name_for_id,_ts_lookahead_iterator_new,_ts_lookahead_iterator_delete,_ts_lookahead_iterator_reset_state,_ts_lookahead_iterator_reset,_ts_lookahead_iterator_next,_ts_lookahead_iterator_current_symbol,_ts_point_edit,_ts_parser_delete,_ts_parser_reset,_ts_parser_set_language,_ts_parser_set_included_ranges,_ts_query_new,_ts_query_delete,_iswspace,_iswalnum,_ts_query_pattern_count,_ts_query_capture_count,_ts_query_string_count,_ts_query_capture_name_for_id,_ts_query_capture_quantifier_for_id,_ts_query_string_value_for_id,_ts_query_predicates_for_pattern,_ts_query_start_byte_for_pattern,_ts_query_end_byte_for_pattern,_ts_query_is_pattern_rooted,_ts_query_is_pattern_non_local,_ts_query_is_pattern_guaranteed_at_step,_ts_query_disable_capture,_ts_query_disable_pattern,_ts_tree_copy,_ts_tree_delete,_ts_init,_ts_parser_new_wasm,_ts_parser_enable_logger_wasm,_ts_parser_parse_wasm,_ts_parser_included_ranges_wasm,_ts_language_type_is_named_wasm,_ts_language_type_is_visible_wasm,_ts_language_metadata_wasm,_ts_language_supertypes_wasm,_ts_language_subtypes_wasm,_ts_tree_root_node_wasm,_ts_tree_root_node_with_offset_wasm,_ts_tree_edit_wasm,_ts_tree_included_ranges_wasm,_ts_tree_get_changed_ranges_wasm,_ts_tree_cursor_new_wasm,_ts_tree_cursor_copy_wasm,_ts_tree_cursor_delete_wasm,_ts_tree_cursor_reset_wasm,_ts_tree_cursor_reset_to_wasm,_ts_tree_cursor_goto_first_child_wasm,_ts_tree_cursor_goto_last_child_wasm,_ts_tree_cursor_goto_first_child_for_index_wasm,_ts_tree_cursor_goto_first_child_for_position_wasm,_ts_tree_cursor_goto_next_sibling_wasm,_ts_tree_cursor_goto_previous_sibling_wasm,_ts_tree_cursor_goto_descendant_wasm,_ts_tree_cursor_goto_parent_wasm,_ts_tree_cursor_current_node_type_id_wasm,_ts_tree_cursor_current_node_state_id_wasm,_ts_tree_cursor_current_node_is_named_wasm,_ts_tree_cursor_current_node_is_missing_wasm,_ts_tree_cursor_current_node_id_wasm,_ts_tree_cursor_start_position_wasm,_ts_tree_cursor_end_position_wasm,_ts_tree_cursor_start_index_wasm,_ts_tree_cursor_end_index_wasm,_ts_tree_cursor_current_field_id_wasm,_ts_tree_cursor_current_depth_wasm,_ts_tree_cursor_current_descendant_index_wasm,_ts_tree_cursor_current_node_wasm,_ts_node_symbol_wasm,_ts_node_field_name_for_child_wasm,_ts_node_field_name_for_named_child_wasm,_ts_node_children_by_field_id_wasm,_ts_node_first_child_for_byte_wasm,_ts_node_first_named_child_for_byte_wasm,_ts_node_grammar_symbol_wasm,_ts_node_child_count_wasm,_ts_node_named_child_count_wasm,_ts_node_child_wasm,_ts_node_named_child_wasm,_ts_node_child_by_field_id_wasm,_ts_node_next_sibling_wasm,_ts_node_prev_sibling_wasm,_ts_node_next_named_sibling_wasm,_ts_node_prev_named_sibling_wasm,_ts_node_descendant_count_wasm,_ts_node_parent_wasm,_ts_node_child_with_descendant_wasm,_ts_node_descendant_for_index_wasm,_ts_node_named_descendant_for_index_wasm,_ts_node_descendant_for_position_wasm,_ts_node_named_descendant_for_position_wasm,_ts_node_start_point_wasm,_ts_node_end_point_wasm,_ts_node_start_index_wasm,_ts_node_end_index_wasm,_ts_node_to_string_wasm,_ts_node_children_wasm,_ts_node_named_children_wasm,_ts_node_descendants_of_type_wasm,_ts_node_is_named_wasm,_ts_node_has_changes_wasm,_ts_node_has_error_wasm,_ts_node_is_error_wasm,_ts_node_is_missing_wasm,_ts_node_is_extra_wasm,_ts_node_parse_state_wasm,_ts_node_next_parse_state_wasm,_ts_query_matches_wasm,_ts_query_captures_wasm,_memset,_memcpy,_memmove,_iswalpha,_iswblank,_iswdigit,_iswlower,_iswupper,_iswxdigit,_memchr,_strlen,_strcmp,_strncat,_strncpy,_towlower,_towupper,_setThrew,__emscripten_stack_restore,__emscripten_stack_alloc,_emscripten_stack_get_current,___wasm_apply_data_relocs,wasmExports,Module=moduleArg,ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="u">typeof WorkerGlobalScope,ENVIRONMENT_IS_NODE="object"==typeof process&&void 0;if(ENVIRONMENT_IS_NODE){let{createRequire}=await __webpack_require__.e(6358).then(__webpack_require__.t.bind(__webpack_require__,86358,19));var require=createRequire("file:///home/runner/work/cockpit/cockpit/node_modules/web-tree-sitter/web-tree-sitter.js")}Module.currentQueryProgressCallback=null,Module.currentProgressCallback=null,Module.currentLogCallback=null,Module.currentParseCallback=null;var arguments_=[],thisProgram="./this.program",quit_=__name((e,t)=>{throw t},"quit_"),_scriptName="file:///home/runner/work/cockpit/cockpit/node_modules/web-tree-sitter/web-tree-sitter.js",scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(__name(locateFile,"locateFile"),ENVIRONMENT_IS_NODE){var fs=require("fs");_scriptName.startsWith("file:")&&(scriptDirectory=require("path").dirname(require("url").fileURLToPath(_scriptName))+"/"),readBinary=__name(e=>(e=isFileURI(e)?new URL(e):e,fs.readFileSync(e)),"readBinary"),readAsync=__name(async(e,t=!0)=>(e=isFileURI(e)?new URL(e):e,fs.readFileSync(e,t?void 0:"utf8")),"readAsync"),process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=__name((e,t)=>{throw process.exitCode=e,t},"quit_")}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){try{scriptDirectory=new URL(".",_scriptName).href}catch{}ENVIRONMENT_IS_WORKER&&(readBinary=__name(e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)},"readBinary")),readAsync=__name(async e=>{if(isFileURI(e))return new Promise((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r(n.status)},n.onerror=r,n.send(null)});var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw Error(t.status+" : "+t.url)},"readAsync")}var out=console.log.bind(console),err=console.error.bind(console),dynamicLibraries=[],ABORT=!1,isFileURI=__name(e=>e.startsWith("file://"),"isFileURI"),runtimeInitialized=!1;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e),Module.HEAP64=HEAP64=new BigInt64Array(e),Module.HEAPU64=HEAPU64=new BigUint64Array(e),Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),LE_HEAP_UPDATE()}function initMemory(){if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var e=Module.INITIAL_MEMORY||0x2000000;wasmMemory=new WebAssembly.Memory({initial:e/65536,maximum:32768})}updateMemoryViews()}__name(updateMemoryViews,"updateMemoryViews"),__name(initMemory,"initMemory");var __RELOC_FUNCS__=[];function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(onPreRuns)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),wasmExports.__wasm_call_ctors(),callRuntimeCallbacks(onPostCtors)}function preMain(){}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(onPostRuns)}function abort(e){Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw readyPromiseReject?.(t),t}function findWasmBinary(){return Module.locateFile?locateFile("web-tree-sitter.wasm"):new __webpack_require__.U(__webpack_require__(76022)).href}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}async function getWasmBinary(e){if(!wasmBinary)try{var t=await readAsync(e);return new Uint8Array(t)}catch{}return getBinarySync(e)}async function instantiateArrayBuffer(e,t){try{var r=await getWasmBinary(e);return await WebAssembly.instantiate(r,t)}catch(e){err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}}async function instantiateAsync(e,t,r){if(!e&&!isFileURI(t)&&!ENVIRONMENT_IS_NODE)try{var n=fetch(t,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,r)}catch(e){err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation")}return instantiateArrayBuffer(t,r)}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}async function createWasm(){function e(e,t){wasmExports=relocateExports(wasmExports=e.exports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),assignWasmExports(wasmExports),wasmExports}function t(t){return e(t.instance,t.module)}__name(e,"receiveInstance"),__name(t,"receiveInstantiationResult");var r=getWasmImports();return Module.instantiateWasm?new Promise((t,n)=>{Module.instantiateWasm(r,(r,n)=>{t(e(r,n))})}):(wasmBinaryFile??=findWasmBinary(),t(await instantiateAsync(wasmBinary,wasmBinaryFile,r)))}__name(preRun,"preRun"),__name(initRuntime,"initRuntime"),__name(preMain,"preMain"),__name(postRun,"postRun"),__name(abort,"abort"),__name(findWasmBinary,"findWasmBinary"),__name(getBinarySync,"getBinarySync"),__name(getWasmBinary,"getWasmBinary"),__name(instantiateArrayBuffer,"instantiateArrayBuffer"),__name(instantiateAsync,"instantiateAsync"),__name(getWasmImports,"getWasmImports"),__name(createWasm,"createWasm");class ExitStatus{static{__name(this,"ExitStatus")}name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_ATOMICS_NATIVE_BYTE_ORDER=[],LE_HEAP_LOAD_F32=__name(e=>HEAP_DATA_VIEW.getFloat32(e,!0),"LE_HEAP_LOAD_F32"),LE_HEAP_LOAD_F64=__name(e=>HEAP_DATA_VIEW.getFloat64(e,!0),"LE_HEAP_LOAD_F64"),LE_HEAP_LOAD_I16=__name(e=>HEAP_DATA_VIEW.getInt16(e,!0),"LE_HEAP_LOAD_I16"),LE_HEAP_LOAD_I32=__name(e=>HEAP_DATA_VIEW.getInt32(e,!0),"LE_HEAP_LOAD_I32"),LE_HEAP_LOAD_I64=__name(e=>HEAP_DATA_VIEW.getBigInt64(e,!0),"LE_HEAP_LOAD_I64"),LE_HEAP_LOAD_U32=__name(e=>HEAP_DATA_VIEW.getUint32(e,!0),"LE_HEAP_LOAD_U32"),LE_HEAP_STORE_F32=__name((e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),"LE_HEAP_STORE_F32"),LE_HEAP_STORE_F64=__name((e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),"LE_HEAP_STORE_F64"),LE_HEAP_STORE_I16=__name((e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),"LE_HEAP_STORE_I16"),LE_HEAP_STORE_I32=__name((e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),"LE_HEAP_STORE_I32"),LE_HEAP_STORE_I64=__name((e,t)=>HEAP_DATA_VIEW.setBigInt64(e,t,!0),"LE_HEAP_STORE_I64"),LE_HEAP_STORE_U32=__name((e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),"LE_HEAP_STORE_U32"),callRuntimeCallbacks=__name(e=>{for(;e.length>0;)e.shift()(Module)},"callRuntimeCallbacks"),onPostRuns=[],addOnPostRun=__name(e=>onPostRuns.push(e),"addOnPostRun"),onPreRuns=[],addOnPreRun=__name(e=>onPreRuns.push(e),"addOnPreRun"),UTF8Decoder="u">typeof TextDecoder?new TextDecoder:void 0,findStringEnd=__name((e,t,r,n)=>{var i=t+r;if(n)return i;for(;e[t]&&!(t>=i);)++t;return t},"findStringEnd"),UTF8ArrayToString=__name((e,t=0,r,n)=>{var i=findStringEnd(e,t,r,n);if(i-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,i));for(var s="";t<i;){var o=e[t++];if(!(128&o)){s+=String.fromCharCode(o);continue}var l=63&e[t++];if((224&o)==192){s+=String.fromCharCode((31&o)<<6|l);continue}var a=63&e[t++];if((o=(240&o)==224?(15&o)<<12|l<<6|a:(7&o)<<18|l<<12|a<<6|63&e[t++])<65536)s+=String.fromCharCode(o);else{var u=o-65536;s+=String.fromCharCode(55296|u>>10,56320|1023&u)}}return s},"UTF8ArrayToString"),getDylinkMetadata=__name(e=>{var t=0,r=0;function n(){return e[t++]}function i(){for(var r=0,n=1;;){var i=e[t++];if(r+=(127&i)*n,n*=128,!(128&i))break}return r}function s(){var r=i();return t+=r,UTF8ArrayToString(e,t-r,r)}function o(){for(var e=i(),t=[];e--;)t.push(s());return t}function l(e,t){if(e)throw Error(t)}if(__name(n,"getU8"),__name(i,"getLEB"),__name(s,"getString"),__name(o,"getStringList"),__name(l,"failIf"),e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,"dylink.0");l(0===a.length,"need dylink section"),r=(e=new Uint8Array(a[0])).length}else{var u=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);l(0x6d736100!=u[0]&&6386541!=u[0],"need to see wasm magic number"),l(0!==e[8],"need the dylink section to be first"),t=9;var c=i();r=t+c,l("dylink.0"!==s())}for(var h={neededDynlibs:[],tlsExports:new Set,weakImports:new Set,runtimePaths:[]},d=1,p=2,f=3,m=4,g=5,_=256,y=3,k=1;t<r;){var b=n(),w=i();if(b===d)h.memorySize=i(),h.memoryAlign=i(),h.tableSize=i(),h.tableAlign=i();else if(b===p)h.neededDynlibs=o();else if(b===f)for(var x=i();x--;){var v=s(),C=i();C&_&&h.tlsExports.add(v)}else if(b===m)for(var x=i();x--;){s();var v=s(),C=i();(C&y)==k&&h.weakImports.add(v)}else b===g?h.runtimePaths=o():t+=w}return h},"getDylinkMetadata");function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16((e>>1)*2);case"i32":return LE_HEAP_LOAD_I32((e>>2)*4);case"i64":return LE_HEAP_LOAD_I64((e>>3)*8);case"float":return LE_HEAP_LOAD_F32((e>>2)*4);case"double":return LE_HEAP_LOAD_F64((e>>3)*8);case"*":return LE_HEAP_LOAD_U32((e>>2)*4);default:abort(`invalid type for getValue: ${t}`)}}__name(getValue,"getValue");var newDSO=__name((e,t,r)=>{var n={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=n,void 0!=t&&(LDSO.loadedLibsByHandle[t]=n),n},"newDSO"),LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78240,alignMemory=__name((e,t)=>Math.ceil(e/t)*t,"alignMemory"),getMemory=__name(e=>{if(runtimeInitialized)return _calloc(e,1);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},"getMemory"),isInternalSym=__name(e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),"isInternalSym"),uleb128EncodeWithLen=__name(e=>{let t=e.length;return[t%128|128,t>>7,...e]},"uleb128EncodeWithLen"),wasmTypeCodes={i:127,p:127,j:126,f:125,d:124,e:111},generateTypePack=__name(e=>uleb128EncodeWithLen(Array.from(e,e=>wasmTypeCodes[e])),"generateTypePack"),convertJsFunctionToWasm=__name((e,t)=>{var r=Uint8Array.of(0,97,115,109,1,0,0,0,1,...uleb128EncodeWithLen([1,96,...generateTypePack(t.slice(1)),...generateTypePack("v"===t[0]?"":t[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),n=new WebAssembly.Module(r);return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},"convertJsFunctionToWasm"),wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:31,element:"anyfunc"}),getWasmTableEntry=__name(e=>{var t=wasmTableMirror[e];return t||(wasmTableMirror[e]=t=wasmTable.get(e)),t},"getWasmTableEntry"),updateTableMap=__name((e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},"updateTableMap"),getFunctionAddress=__name(e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),"getFunctionAddress"),freeTableIndexes=[],getEmptyTableSlot=__name(()=>freeTableIndexes.length?freeTableIndexes.pop():wasmTable.grow(1),"getEmptyTableSlot"),setWasmTableEntry=__name((e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},"setWasmTableEntry"),addFunction=__name((e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;setWasmTableEntry(n,convertJsFunctionToWasm(e,t))}return functionsInTableMap.set(e,n),n},"addFunction"),updateGOT=__name((e,t)=>{for(var r in e)if(!isInternalSym(r)){var n=e[r];GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err(`unhandled export type for '${r}': ${typeof n}`))}},"updateGOT"),relocateExports=__name((e,t,r)=>{var n={};for(var i in e){var s=e[i];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[i]=s}return updateGOT(n,r),n},"relocateExports"),isSymbolDefined=__name(e=>{var t=wasmImports[e];return!!t&&!t.stub},"isSymbolDefined"),dynCall=__name((e,t,r=[],n=!1)=>{var i=getWasmTableEntry(t)(...r);function s(e){return e}return __name(s,"convert"),s(i)},"dynCall"),stackSave=__name(()=>_emscripten_stack_get_current(),"stackSave"),stackRestore=__name(e=>__emscripten_stack_restore(e),"stackRestore"),createInvokeFunction=__name(e=>(t,...r)=>{var n=stackSave();try{return dynCall(e,t,r)}catch(t){if(stackRestore(n),t!==t+0)throw t;if(_setThrew(1,0),"j"==e[0])return 0n}},"createInvokeFunction"),resolveGlobalSymbol=__name((e,t=!1)=>{var r;return isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},"resolveGlobalSymbol"),onPostCtors=[],addOnPostCtor=__name(e=>onPostCtors.push(e),"addOnPostCtor"),UTF8ToString=__name((e,t,r)=>e?UTF8ArrayToString(HEAPU8,e,t,r):"","UTF8ToString"),loadWebAssemblyModule=__name((binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var moduleExports,memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32((handle+12>>2)*4,memoryBase),LE_HEAP_STORE_I32((handle+16>>2)*4,metadata.memorySize),LE_HEAP_STORE_U32((handle+20>>2)*4,tableBase),LE_HEAP_STORE_I32((handle+24>>2)*4,metadata.tableSize)),metadata.tableSize&&wasmTable.grow(metadata.tableSize),__name(resolveSymbol,"resolveSymbol");var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub){var r;return wasmImports[t]}return t in e||(e[t]=(...e)=>(r||=resolveSymbol(t))(...e)),e[t]}},proxy=new Proxy({},proxyHandler);currentModuleWeakSymbols=metadata.weakImports;var info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16;arity++)if(-1!=body.indexOf("$"+arity))args.push("$"+arity);else break;args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),__name(addEmAsm,"addEmAsm"),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(",")){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in __name(addEmJs,"addEmJs"),moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():addOnPostCtor(init)),moduleExports}if(__name(postInstantiation,"postInstantiation"),flags.loadAsync)return(async()=>{var e;return binary instanceof WebAssembly.Module?e=new WebAssembly.Instance(binary,info):{module:binary,instance:e}=await WebAssembly.instantiate(binary,info),postInstantiation(binary,e)})();var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return(__name(loadModule,"loadModule"),flags={...flags,rpath:{parentLibPath:libName,paths:metadata.runtimePaths}},flags.loadAsync)?metadata.neededDynlibs.reduce((e,t)=>e.then(()=>loadDynamicLibrary(t,flags,localScope)),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach(e=>loadDynamicLibrary(e,flags,localScope)),loadModule())},"loadWebAssemblyModule"),mergeLibSymbols=__name((e,t)=>{for(var[r,n]of Object.entries(e)){let e=__name(e=>{isSymbolDefined(e)||(wasmImports[e]=n)},"setImport");e(r);let t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main")}},"mergeLibSymbols"),asyncLoad=__name(async e=>new Uint8Array(await readAsync(e)),"asyncLoad");function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,n){var i=LDSO.loadedLibsByName[e];if(i)return t.global?i.global||(i.global=!0,mergeLibSymbols(i.exports,e)):r&&Object.assign(r,i.exports),t.nodelete&&i.refcount!==1/0&&(i.refcount=1/0),i.refcount++,n&&(LDSO.loadedLibsByHandle[n]=i),!t.loadAsync||Promise.resolve(!0);function s(){if(n){var r=LE_HEAP_LOAD_U32((n+28>>2)*4),i=LE_HEAP_LOAD_U32((n+32>>2)*4);if(r&&i){var s=HEAP8.slice(r,r+i);return t.loadAsync?Promise.resolve(s):s}}var o=locateFile(e);if(t.loadAsync)return asyncLoad(o);if(!readBinary)throw Error(`${o}: file not found, and synchronous loading of external files is not available`);return readBinary(o)}function o(){return t.loadAsync?s().then(i=>loadWebAssemblyModule(i,t,e,r,n)):loadWebAssemblyModule(s(),t,e,r,n)}function l(t){i.global?mergeLibSymbols(t,e):r&&Object.assign(r,t),i.exports=t}return((i=newDSO(e,n,"loading")).refcount=t.nodelete?1/0:1,i.global=t.global,__name(s,"loadLibData"),__name(o,"getExports"),__name(l,"moduleLoaded"),t.loadAsync)?o().then(e=>(l(e),!0)):(l(o()),!0)}__name(loadDynamicLibrary,"loadDynamicLibrary");var reportUndefinedSymbols=__name(()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else if("number"==typeof r)t.value=r;else throw Error(`bad export type for '${e}': ${typeof r}`)}},"reportUndefinedSymbols"),runDependencies=0,dependenciesFulfilled=null,removeRunDependency=__name(e=>{if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&dependenciesFulfilled){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}},"removeRunDependency"),addRunDependency=__name(e=>{runDependencies++,Module.monitorRunDependencies?.(runDependencies)},"addRunDependency"),loadDylibs=__name(async()=>{if(!dynamicLibraries.length)return void reportUndefinedSymbols();for(var e of(addRunDependency("loadDylibs"),dynamicLibraries))await loadDynamicLibrary(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0});reportUndefinedSymbols(),removeRunDependency("loadDylibs")},"loadDylibs"),noExitRuntime=!0;function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16((e>>1)*2,t);break;case"i32":LE_HEAP_STORE_I32((e>>2)*4,t);break;case"i64":LE_HEAP_STORE_I64((e>>3)*8,BigInt(t));break;case"float":LE_HEAP_STORE_F32((e>>2)*4,t);break;case"double":LE_HEAP_STORE_F64((e>>3)*8,t);break;case"*":LE_HEAP_STORE_U32((e>>2)*4,t);break;default:abort(`invalid type for setValue: ${r}`)}}__name(setValue,"setValue");var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_high=78240,___stack_low=12704,___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78240),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=__name(()=>abort(""),"__abort_js");__abort_js.sig="v";var getHeapMax=__name(()=>0x80000000,"getHeapMax"),growMemory=__name(e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536|0;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},"growMemory"),_emscripten_resize_heap=__name(e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var n=1;n<=4;n*=2){var i=t*(1+.2/n);if(i=Math.min(i,e+0x6000000),growMemory(Math.min(r,alignMemory(Math.max(e,i),65536))))return!0}return!1},"_emscripten_resize_heap");_emscripten_resize_heap.sig="ip";var _fd_close=__name(e=>52,"_fd_close");_fd_close.sig="ii";var INT53_MAX=0x20000000000000,INT53_MIN=-0x20000000000000,bigintToI53Checked=__name(e=>e<INT53_MIN||e>INT53_MAX?NaN:Number(e),"bigintToI53Checked");function _fd_seek(e,t,r,n){return t=bigintToI53Checked(t),70}__name(_fd_seek,"_fd_seek"),_fd_seek.sig="iijip";var printCharBuffers=[null,[],[]],printChar=__name((e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r)),r.length=0):r.push(t)},"printChar"),_fd_write=__name((e,t,r,n)=>{for(var i=0,s=0;s<r;s++){var o=LE_HEAP_LOAD_U32((t>>2)*4),l=LE_HEAP_LOAD_U32((t+4>>2)*4);t+=8;for(var a=0;a<l;a++)printChar(e,HEAPU8[o+a]);i+=l}return LE_HEAP_STORE_U32((n>>2)*4,i),0},"_fd_write");function _tree_sitter_log_callback(e,t){if(Module.currentLogCallback){let r=UTF8ToString(t);Module.currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,n,i){let s=10240,o=Module.currentParseCallback(t,{row:r,column:n});"string"==typeof o?(setValue(i,o.length,"i32"),stringToUTF16(o,e,s)):setValue(i,0,"i32")}function _tree_sitter_progress_callback(e,t){return!!Module.currentProgressCallback&&Module.currentProgressCallback({currentOffset:e,hasError:t})}function _tree_sitter_query_progress_callback(e){return!!Module.currentQueryProgressCallback&&Module.currentQueryProgressCallback({currentOffset:e})}_fd_write.sig="iippp",__name(_tree_sitter_log_callback,"_tree_sitter_log_callback"),__name(_tree_sitter_parse_callback,"_tree_sitter_parse_callback"),__name(_tree_sitter_progress_callback,"_tree_sitter_progress_callback"),__name(_tree_sitter_query_progress_callback,"_tree_sitter_query_progress_callback");var runtimeKeepaliveCounter=0,keepRuntimeAlive=__name(()=>noExitRuntime||runtimeKeepaliveCounter>0,"keepRuntimeAlive"),_proc_exit=__name(e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))},"_proc_exit");_proc_exit.sig="vi";var exitJS=__name((e,t)=>{EXITSTATUS=e,_proc_exit(e)},"exitJS"),handleException=__name(e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},"handleException"),lengthBytesUTF8=__name(e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},"lengthBytesUTF8"),stringToUTF8Array=__name((e,t,r,n)=>{if(!(n>0))return 0;for(var i=r,s=r+n-1,o=0;o<e.length;++o){var l=e.codePointAt(o);if(l<=127){if(r>=s)break;t[r++]=l}else if(l<=2047){if(r+1>=s)break;t[r++]=192|l>>6,t[r++]=128|63&l}else if(l<=65535){if(r+2>=s)break;t[r++]=224|l>>12,t[r++]=128|l>>6&63,t[r++]=128|63&l}else{if(r+3>=s)break;t[r++]=240|l>>18,t[r++]=128|l>>12&63,t[r++]=128|l>>6&63,t[r++]=128|63&l,o++}}return t[r]=0,r-i},"stringToUTF8Array"),stringToUTF8=__name((e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),"stringToUTF8"),stackAlloc=__name(e=>__emscripten_stack_alloc(e),"stackAlloc"),stringToUTF8OnStack=__name(e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},"stringToUTF8OnStack"),AsciiToString=__name(e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},"AsciiToString"),stringToUTF16=__name((e,t,r)=>{if((r??=0x7fffffff)<2)return 0;for(var n=t,i=(r-=2)<2*e.length?r/2:e.length,s=0;s<i;++s)LE_HEAP_STORE_I16((t>>1)*2,e.charCodeAt(s)),t+=2;return LE_HEAP_STORE_I16((t>>1)*2,0),t-n},"stringToUTF16");function LE_HEAP_UPDATE(){HEAPU16.unsigned=e=>65535&e,HEAPU32.unsigned=e=>e>>>0}if(LE_ATOMICS_NATIVE_BYTE_ORDER=1===new Int8Array(new Int16Array([1]).buffer)[0]?[e=>e,e=>e,void 0,e=>e]:[e=>e,e=>((65280&e)<<8|(255&e)<<24)>>16,void 0,e=>e>>24&255|e>>8&65280|(65280&e)<<8|(255&e)<<24],__name(LE_HEAP_UPDATE,"LE_HEAP_UPDATE"),initMemory(),Module.noExitRuntime&&(noExitRuntime=Module.noExitRuntime),Module.print&&(out=Module.print),Module.printErr&&(err=Module.printErr),Module.dynamicLibraries&&(dynamicLibraries=Module.dynamicLibraries),Module.wasmBinary&&(wasmBinary=Module.wasmBinary),Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.shift()();Module.setValue=setValue,Module.getValue=getValue,Module.UTF8ToString=UTF8ToString,Module.stringToUTF8=stringToUTF8,Module.lengthBytesUTF8=lengthBytesUTF8,Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,Module.loadWebAssemblyModule=loadWebAssemblyModule,Module.LE_HEAP_STORE_I64=LE_HEAP_STORE_I64;var ASM_CONSTS={};function assignWasmExports(e){Module._malloc=_malloc=e.malloc,Module._calloc=_calloc=e.calloc,Module._realloc=_realloc=e.realloc,Module._free=_free=e.free,Module._ts_range_edit=_ts_range_edit=e.ts_range_edit,Module._memcmp=_memcmp=e.memcmp,Module._ts_language_symbol_count=_ts_language_symbol_count=e.ts_language_symbol_count,Module._ts_language_state_count=_ts_language_state_count=e.ts_language_state_count,Module._ts_language_abi_version=_ts_language_abi_version=e.ts_language_abi_version,Module._ts_language_name=_ts_language_name=e.ts_language_name,Module._ts_language_field_count=_ts_language_field_count=e.ts_language_field_count,Module._ts_language_next_state=_ts_language_next_state=e.ts_language_next_state,Module._ts_language_symbol_name=_ts_language_symbol_name=e.ts_language_symbol_name,Module._ts_language_symbol_for_name=_ts_language_symbol_for_name=e.ts_language_symbol_for_name,Module._strncmp=_strncmp=e.strncmp,Module._ts_language_symbol_type=_ts_language_symbol_type=e.ts_language_symbol_type,Module._ts_language_field_name_for_id=_ts_language_field_name_for_id=e.ts_language_field_name_for_id,Module._ts_lookahead_iterator_new=_ts_lookahead_iterator_new=e.ts_lookahead_iterator_new,Module._ts_lookahead_iterator_delete=_ts_lookahead_iterator_delete=e.ts_lookahead_iterator_delete,Module._ts_lookahead_iterator_reset_state=_ts_lookahead_iterator_reset_state=e.ts_lookahead_iterator_reset_state,Module._ts_lookahead_iterator_reset=_ts_lookahead_iterator_reset=e.ts_lookahead_iterator_reset,Module._ts_lookahead_iterator_next=_ts_lookahead_iterator_next=e.ts_lookahead_iterator_next,Module._ts_lookahead_iterator_current_symbol=_ts_lookahead_iterator_current_symbol=e.ts_lookahead_iterator_current_symbol,Module._ts_point_edit=_ts_point_edit=e.ts_point_edit,Module._ts_parser_delete=_ts_parser_delete=e.ts_parser_delete,Module._ts_parser_reset=_ts_parser_reset=e.ts_parser_reset,Module._ts_parser_set_language=_ts_parser_set_language=e.ts_parser_set_language,Module._ts_parser_set_included_ranges=_ts_parser_set_included_ranges=e.ts_parser_set_included_ranges,Module._ts_query_new=_ts_query_new=e.ts_query_new,Module._ts_query_delete=_ts_query_delete=e.ts_query_delete,Module._iswspace=_iswspace=e.iswspace,Module._iswalnum=_iswalnum=e.iswalnum,Module._ts_query_pattern_count=_ts_query_pattern_count=e.ts_query_pattern_count,Module._ts_query_capture_count=_ts_query_capture_count=e.ts_query_capture_count,Module._ts_query_string_count=_ts_query_string_count=e.ts_query_string_count,Module._ts_query_capture_name_for_id=_ts_query_capture_name_for_id=e.ts_query_capture_name_for_id,Module._ts_query_capture_quantifier_for_id=_ts_query_capture_quantifier_for_id=e.ts_query_capture_quantifier_for_id,Module._ts_query_string_value_for_id=_ts_query_string_value_for_id=e.ts_query_string_value_for_id,Module._ts_query_predicates_for_pattern=_ts_query_predicates_for_pattern=e.ts_query_predicates_for_pattern,Module._ts_query_start_byte_for_pattern=_ts_query_start_byte_for_pattern=e.ts_query_start_byte_for_pattern,Module._ts_query_end_byte_for_pattern=_ts_query_end_byte_for_pattern=e.ts_query_end_byte_for_pattern,Module._ts_query_is_pattern_rooted=_ts_query_is_pattern_rooted=e.ts_query_is_pattern_rooted,Module._ts_query_is_pattern_non_local=_ts_query_is_pattern_non_local=e.ts_query_is_pattern_non_local,Module._ts_query_is_pattern_guaranteed_at_step=_ts_query_is_pattern_guaranteed_at_step=e.ts_query_is_pattern_guaranteed_at_step,Module._ts_query_disable_capture=_ts_query_disable_capture=e.ts_query_disable_capture,Module._ts_query_disable_pattern=_ts_query_disable_pattern=e.ts_query_disable_pattern,Module._ts_tree_copy=_ts_tree_copy=e.ts_tree_copy,Module._ts_tree_delete=_ts_tree_delete=e.ts_tree_delete,Module._ts_init=_ts_init=e.ts_init,Module._ts_parser_new_wasm=_ts_parser_new_wasm=e.ts_parser_new_wasm,Module._ts_parser_enable_logger_wasm=_ts_parser_enable_logger_wasm=e.ts_parser_enable_logger_wasm,Module._ts_parser_parse_wasm=_ts_parser_parse_wasm=e.ts_parser_parse_wasm,Module._ts_parser_included_ranges_wasm=_ts_parser_included_ranges_wasm=e.ts_parser_included_ranges_wasm,Module._ts_language_type_is_named_wasm=_ts_language_type_is_named_wasm=e.ts_language_type_is_named_wasm,Module._ts_language_type_is_visible_wasm=_ts_language_type_is_visible_wasm=e.ts_language_type_is_visible_wasm,Module._ts_language_metadata_wasm=_ts_language_metadata_wasm=e.ts_language_metadata_wasm,Module._ts_language_supertypes_wasm=_ts_language_supertypes_wasm=e.ts_language_supertypes_wasm,Module._ts_language_subtypes_wasm=_ts_language_subtypes_wasm=e.ts_language_subtypes_wasm,Module._ts_tree_root_node_wasm=_ts_tree_root_node_wasm=e.ts_tree_root_node_wasm,Module._ts_tree_root_node_with_offset_wasm=_ts_tree_root_node_with_offset_wasm=e.ts_tree_root_node_with_offset_wasm,Module._ts_tree_edit_wasm=_ts_tree_edit_wasm=e.ts_tree_edit_wasm,Module._ts_tree_included_ranges_wasm=_ts_tree_included_ranges_wasm=e.ts_tree_included_ranges_wasm,Module._ts_tree_get_changed_ranges_wasm=_ts_tree_get_changed_ranges_wasm=e.ts_tree_get_changed_ranges_wasm,Module._ts_tree_cursor_new_wasm=_ts_tree_cursor_new_wasm=e.ts_tree_cursor_new_wasm,Module._ts_tree_cursor_copy_wasm=_ts_tree_cursor_copy_wasm=e.ts_tree_cursor_copy_wasm,Module._ts_tree_cursor_delete_wasm=_ts_tree_cursor_delete_wasm=e.ts_tree_cursor_delete_wasm,Module._ts_tree_cursor_reset_wasm=_ts_tree_cursor_reset_wasm=e.ts_tree_cursor_reset_wasm,Module._ts_tree_cursor_reset_to_wasm=_ts_tree_cursor_reset_to_wasm=e.ts_tree_cursor_reset_to_wasm,Module._ts_tree_cursor_goto_first_child_wasm=_ts_tree_cursor_goto_first_child_wasm=e.ts_tree_cursor_goto_first_child_wasm,Module._ts_tree_cursor_goto_last_child_wasm=_ts_tree_cursor_goto_last_child_wasm=e.ts_tree_cursor_goto_last_child_wasm,Module._ts_tree_cursor_goto_first_child_for_index_wasm=_ts_tree_cursor_goto_first_child_for_index_wasm=e.ts_tree_cursor_goto_first_child_for_index_wasm,Module._ts_tree_cursor_goto_first_child_for_position_wasm=_ts_tree_cursor_goto_first_child_for_position_wasm=e.ts_tree_cursor_goto_first_child_for_position_wasm,Module._ts_tree_cursor_goto_next_sibling_wasm=_ts_tree_cursor_goto_next_sibling_wasm=e.ts_tree_cursor_goto_next_sibling_wasm,Module._ts_tree_cursor_goto_previous_sibling_wasm=_ts_tree_cursor_goto_previous_sibling_wasm=e.ts_tree_cursor_goto_previous_sibling_wasm,Module._ts_tree_cursor_goto_descendant_wasm=_ts_tree_cursor_goto_descendant_wasm=e.ts_tree_cursor_goto_descendant_wasm,Module._ts_tree_cursor_goto_parent_wasm=_ts_tree_cursor_goto_parent_wasm=e.ts_tree_cursor_goto_parent_wasm,Module._ts_tree_cursor_current_node_type_id_wasm=_ts_tree_cursor_current_node_type_id_wasm=e.ts_tree_cursor_current_node_type_id_wasm,Module._ts_tree_cursor_current_node_state_id_wasm=_ts_tree_cursor_current_node_state_id_wasm=e.ts_tree_cursor_current_node_state_id_wasm,Module._ts_tree_cursor_current_node_is_named_wasm=_ts_tree_cursor_current_node_is_named_wasm=e.ts_tree_cursor_current_node_is_named_wasm,Module._ts_tree_cursor_current_node_is_missing_wasm=_ts_tree_cursor_current_node_is_missing_wasm=e.ts_tree_cursor_current_node_is_missing_wasm,Module._ts_tree_cursor_current_node_id_wasm=_ts_tree_cursor_current_node_id_wasm=e.ts_tree_cursor_current_node_id_wasm,Module._ts_tree_cursor_start_position_wasm=_ts_tree_cursor_start_position_wasm=e.ts_tree_cursor_start_position_wasm,Module._ts_tree_cursor_end_position_wasm=_ts_tree_cursor_end_position_wasm=e.ts_tree_cursor_end_position_wasm,Module._ts_tree_cursor_start_index_wasm=_ts_tree_cursor_start_index_wasm=e.ts_tree_cursor_start_index_wasm,Module._ts_tree_cursor_end_index_wasm=_ts_tree_cursor_end_index_wasm=e.ts_tree_cursor_end_index_wasm,Module._ts_tree_cursor_current_field_id_wasm=_ts_tree_cursor_current_field_id_wasm=e.ts_tree_cursor_current_field_id_wasm,Module._ts_tree_cursor_current_depth_wasm=_ts_tree_cursor_current_depth_wasm=e.ts_tree_cursor_current_depth_wasm,Module._ts_tree_cursor_current_descendant_index_wasm=_ts_tree_cursor_current_descendant_index_wasm=e.ts_tree_cursor_current_descendant_index_wasm,Module._ts_tree_cursor_current_node_wasm=_ts_tree_cursor_current_node_wasm=e.ts_tree_cursor_current_node_wasm,Module._ts_node_symbol_wasm=_ts_node_symbol_wasm=e.ts_node_symbol_wasm,Module._ts_node_field_name_for_child_wasm=_ts_node_field_name_for_child_wasm=e.ts_node_field_name_for_child_wasm,Module._ts_node_field_name_for_named_child_wasm=_ts_node_field_name_for_named_child_wasm=e.ts_node_field_name_for_named_child_wasm,Module._ts_node_children_by_field_id_wasm=_ts_node_children_by_field_id_wasm=e.ts_node_children_by_field_id_wasm,Module._ts_node_first_child_for_byte_wasm=_ts_node_first_child_for_byte_wasm=e.ts_node_first_child_for_byte_wasm,Module._ts_node_first_named_child_for_byte_wasm=_ts_node_first_named_child_for_byte_wasm=e.ts_node_first_named_child_for_byte_wasm,Module._ts_node_grammar_symbol_wasm=_ts_node_grammar_symbol_wasm=e.ts_node_grammar_symbol_wasm,Module._ts_node_child_count_wasm=_ts_node_child_count_wasm=e.ts_node_child_count_wasm,Module._ts_node_named_child_count_wasm=_ts_node_named_child_count_wasm=e.ts_node_named_child_count_wasm,Module._ts_node_child_wasm=_ts_node_child_wasm=e.ts_node_child_wasm,Module._ts_node_named_child_wasm=_ts_node_named_child_wasm=e.ts_node_named_child_wasm,Module._ts_node_child_by_field_id_wasm=_ts_node_child_by_field_id_wasm=e.ts_node_child_by_field_id_wasm,Module._ts_node_next_sibling_wasm=_ts_node_next_sibling_wasm=e.ts_node_next_sibling_wasm,Module._ts_node_prev_sibling_wasm=_ts_node_prev_sibling_wasm=e.ts_node_prev_sibling_wasm,Module._ts_node_next_named_sibling_wasm=_ts_node_next_named_sibling_wasm=e.ts_node_next_named_sibling_wasm,Module._ts_node_prev_named_sibling_wasm=_ts_node_prev_named_sibling_wasm=e.ts_node_prev_named_sibling_wasm,Module._ts_node_descendant_count_wasm=_ts_node_descendant_count_wasm=e.ts_node_descendant_count_wasm,Module._ts_node_parent_wasm=_ts_node_parent_wasm=e.ts_node_parent_wasm,Module._ts_node_child_with_descendant_wasm=_ts_node_child_with_descendant_wasm=e.ts_node_child_with_descendant_wasm,Module._ts_node_descendant_for_index_wasm=_ts_node_descendant_for_index_wasm=e.ts_node_descendant_for_index_wasm,Module._ts_node_named_descendant_for_index_wasm=_ts_node_named_descendant_for_index_wasm=e.ts_node_named_descendant_for_index_wasm,Module._ts_node_descendant_for_position_wasm=_ts_node_descendant_for_position_wasm=e.ts_node_descendant_for_position_wasm,Module._ts_node_named_descendant_for_position_wasm=_ts_node_named_descendant_for_position_wasm=e.ts_node_named_descendant_for_position_wasm,Module._ts_node_start_point_wasm=_ts_node_start_point_wasm=e.ts_node_start_point_wasm,Module._ts_node_end_point_wasm=_ts_node_end_point_wasm=e.ts_node_end_point_wasm,Module._ts_node_start_index_wasm=_ts_node_start_index_wasm=e.ts_node_start_index_wasm,Module._ts_node_end_index_wasm=_ts_node_end_index_wasm=e.ts_node_end_index_wasm,Module._ts_node_to_string_wasm=_ts_node_to_string_wasm=e.ts_node_to_string_wasm,Module._ts_node_children_wasm=_ts_node_children_wasm=e.ts_node_children_wasm,Module._ts_node_named_children_wasm=_ts_node_named_children_wasm=e.ts_node_named_children_wasm,Module._ts_node_descendants_of_type_wasm=_ts_node_descendants_of_type_wasm=e.ts_node_descendants_of_type_wasm,Module._ts_node_is_named_wasm=_ts_node_is_named_wasm=e.ts_node_is_named_wasm,Module._ts_node_has_changes_wasm=_ts_node_has_changes_wasm=e.ts_node_has_changes_wasm,Module._ts_node_has_error_wasm=_ts_node_has_error_wasm=e.ts_node_has_error_wasm,Module._ts_node_is_error_wasm=_ts_node_is_error_wasm=e.ts_node_is_error_wasm,Module._ts_node_is_missing_wasm=_ts_node_is_missing_wasm=e.ts_node_is_missing_wasm,Module._ts_node_is_extra_wasm=_ts_node_is_extra_wasm=e.ts_node_is_extra_wasm,Module._ts_node_parse_state_wasm=_ts_node_parse_state_wasm=e.ts_node_parse_state_wasm,Module._ts_node_next_parse_state_wasm=_ts_node_next_parse_state_wasm=e.ts_node_next_parse_state_wasm,Module._ts_query_matches_wasm=_ts_query_matches_wasm=e.ts_query_matches_wasm,Module._ts_query_captures_wasm=_ts_query_captures_wasm=e.ts_query_captures_wasm,Module._memset=_memset=e.memset,Module._memcpy=_memcpy=e.memcpy,Module._memmove=_memmove=e.memmove,Module._iswalpha=_iswalpha=e.iswalpha,Module._iswblank=_iswblank=e.iswblank,Module._iswdigit=_iswdigit=e.iswdigit,Module._iswlower=_iswlower=e.iswlower,Module._iswupper=_iswupper=e.iswupper,Module._iswxdigit=_iswxdigit=e.iswxdigit,Module._memchr=_memchr=e.memchr,Module._strlen=_strlen=e.strlen,Module._strcmp=_strcmp=e.strcmp,Module._strncat=_strncat=e.strncat,Module._strncpy=_strncpy=e.strncpy,Module._towlower=_towlower=e.towlower,Module._towupper=_towupper=e.towupper,_setThrew=e.setThrew,__emscripten_stack_restore=e._emscripten_stack_restore,__emscripten_stack_alloc=e._emscripten_stack_alloc,_emscripten_stack_get_current=e.emscripten_stack_get_current,___wasm_apply_data_relocs=e.__wasm_apply_data_relocs}__name(assignWasmExports,"assignWasmExports");var wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_high:___stack_high,__stack_low:___stack_low,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback,tree_sitter_progress_callback:_tree_sitter_progress_callback,tree_sitter_query_progress_callback:_tree_sitter_query_progress_callback};function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,n=stackAlloc((r+1)*4),i=n;e.forEach(e=>{LE_HEAP_STORE_U32((i>>2)*4,stringToUTF8OnStack(e)),i+=4}),LE_HEAP_STORE_U32((i>>2)*4,0);try{var s=t(r,n);return exitJS(s,!0),s}catch(e){return handleException(e)}}}function run(e=arguments_){if(runDependencies>0||(preRun(),runDependencies>0)){dependenciesFulfilled=run;return}function t(){if(Module.calledRun=!0,!ABORT){initRuntime(),readyPromiseResolve?.(Module),Module.onRuntimeInitialized?.();var t=Module.noInitialRun||!1;t||callMain(e),postRun()}}__name(t,"doRun"),Module.setStatus?(Module.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>Module.setStatus(""),1),t()},1)):t()}return __name(callMain,"callMain"),__name(run,"run"),wasmExports=await createWasm(),run(),moduleRtn=runtimeInitialized?Module:new Promise((e,t)=>{readyPromiseResolve=e,readyPromiseReject=t})}__name(Module2,"Module");var web_tree_sitter_default=Module2,Module3=null;async function initializeBinding(e){return Module3??=await web_tree_sitter_default(e)}function checkModule(){return!!Module3}__name(initializeBinding,"initializeBinding"),__name(checkModule,"checkModule");var Parser=class{static{__name(this,"Parser")}0=0;1=0;logCallback=null;language=null;static async init(e){setModule(await initializeBinding(e)),TRANSFER_BUFFER=C._ts_init(),LANGUAGE_VERSION=C.getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}constructor(){this.initialize()}initialize(){if(!checkModule())throw Error("cannot construct a Parser before calling `init()`");C._ts_parser_new_wasm(),this[0]=C.getValue(TRANSFER_BUFFER,"i32"),this[1]=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e)if(e.constructor===Language){t=e[0];let r=C._ts_language_abi_version(t);if(r<MIN_COMPATIBLE_VERSION||LANGUAGE_VERSION<r)throw Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${LANGUAGE_VERSION}.`);this.language=e}else throw Error("Argument must be a Language");else t=0,this.language=null;return C._ts_parser_set_language(this[0],t),this}parse(e,t,r){if("string"==typeof e)C.currentParseCallback=t=>e.slice(t);else if("function"==typeof e)C.currentParseCallback=e;else throw Error("Argument must be a string or a function");r?.progressCallback?C.currentProgressCallback=r.progressCallback:C.currentProgressCallback=null,this.logCallback?(C.currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(C.currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let n=0,i=0;if(r?.includedRanges){n=r.includedRanges.length;let e=i=C._calloc(n,SIZE_OF_RANGE);for(let t=0;t<n;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}let s=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,i,n);if(!s)return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,null;if(!this.language)throw Error("Parser must have a language to parse");let o=new Tree(INTERNAL,s,this.language,C.currentParseCallback);return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,o}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}setLogger(e){if(e)if("function"!=typeof e)throw Error("Logger callback must be a function");else this.logCallback=e;else this.logCallback=null;return this}getLogger(){return this.logCallback}},PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,QUERY_WORD_REGEX=/[\w-]+/g,CaptureQuantifier={},isCaptureStep=__name(e=>"capture"===e.type,"isCaptureStep"),isStringStep=__name(e=>"string"===e.type,"isStringStep"),QueryErrorKind={Syntax:1,NodeName:2,FieldName:3,CaptureName:4,PatternStructure:5},QueryError=class _QueryError extends Error{constructor(e,t,r,n){super(_QueryError.formatMessage(e,t)),this.kind=e,this.info=t,this.index=r,this.length=n,this.name="QueryError"}static{__name(this,"QueryError")}static formatMessage(e,t){switch(e){case QueryErrorKind.NodeName:return`Bad node name '${t.word}'`;case QueryErrorKind.FieldName:return`Bad field name '${t.word}'`;case QueryErrorKind.CaptureName:return`Bad capture name @${t.word}`;case QueryErrorKind.PatternStructure:return`Bad pattern structure at offset ${t.suffix}`;case QueryErrorKind.Syntax:return`Bad syntax at offset ${t.suffix}`}}};function parseAnyPredicate(e,t,r,n){if(3!==e.length)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected 2, got ${e.length-1}`);if(!isCaptureStep(e[1]))throw Error(`First argument of \`#${r}\` predicate must be a capture. Got "${e[1].value}"`);let i="eq?"===r||"any-eq?"===r,s=!r.startsWith("any-");if(isCaptureStep(e[2])){let r=e[1].name,o=e[2].name;n[t].push(e=>{let t=[],n=[];for(let i of e)i.name===r&&t.push(i.node),i.name===o&&n.push(i.node);let l=__name((e,t,r)=>r?e.text===t.text:e.text!==t.text,"compare");return s?t.every(e=>n.some(t=>l(e,t,i))):t.some(e=>n.some(t=>l(e,t,i)))})}else{let r=e[1].name,o=e[2].value,l=__name(e=>e.text===o,"matches"),a=__name(e=>e.text!==o,"doesNotMatch");n[t].push(e=>{let t=[];for(let n of e)n.name===r&&t.push(n.node);let n=i?l:a;return s?t.every(n):t.some(n)})}}function parseMatchPredicate(e,t,r,n){if(3!==e.length)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected 2, got ${e.length-1}.`);if("capture"!==e[1].type)throw Error(`First argument of \`#${r}\` predicate must be a capture. Got "${e[1].value}".`);if("string"!==e[2].type)throw Error(`Second argument of \`#${r}\` predicate must be a string. Got @${e[2].name}.`);let i="match?"===r||"any-match?"===r,s=!r.startsWith("any-"),o=e[1].name,l=new RegExp(e[2].value);n[t].push(e=>{let t=[];for(let r of e)r.name===o&&t.push(r.node.text);let r=__name((e,t)=>t?l.test(e):!l.test(e),"test");return 0===t.length?!i:s?t.every(e=>r(e,i)):t.some(e=>r(e,i))})}function parseAnyOfPredicate(e,t,r,n){if(e.length<2)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected at least 1. Got ${e.length-1}.`);if("capture"!==e[1].type)throw Error(`First argument of \`#${r}\` predicate must be a capture. Got "${e[1].value}".`);let i="any-of?"===r,s=e[1].name,o=e.slice(2);if(!o.every(isStringStep))throw Error(`Arguments to \`#${r}\` predicate must be strings.".`);let l=o.map(e=>e.value);n[t].push(e=>{let t=[];for(let r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!i:t.every(e=>l.includes(e))===i})}function parseIsPredicate(e,t,r,n,i){if(e.length<2||e.length>3)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected 1 or 2. Got ${e.length-1}.`);if(!e.every(isStringStep))throw Error(`Arguments to \`#${r}\` predicate must be strings.".`);let s="is?"===r?n:i;s[t]||(s[t]={}),s[t][e[1].value]=e[2]?.value??null}function parseSetDirective(e,t,r){if(e.length<2||e.length>3)throw Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${e.length-1}.`);if(!e.every(isStringStep))throw Error('Arguments to `#set!` predicate must be strings.".');r[t]||(r[t]={}),r[t][e[1].value]=e[2]?.value??null}function parsePattern(e,t,r,n,i,s,o,l,a,u,c){if(t===PREDICATE_STEP_TYPE_CAPTURE){let e=n[r];s.push({type:"capture",name:e})}else if(t===PREDICATE_STEP_TYPE_STRING)s.push({type:"string",value:i[r]});else if(s.length>0){if("string"!==s[0].type)throw Error("Predicates must begin with a literal value");let t=s[0].value;switch(t){case"any-not-eq?":case"not-eq?":case"any-eq?":case"eq?":parseAnyPredicate(s,e,t,o);break;case"any-not-match?":case"not-match?":case"any-match?":case"match?":parseMatchPredicate(s,e,t,o);break;case"not-any-of?":case"any-of?":parseAnyOfPredicate(s,e,t,o);break;case"is?":case"is-not?":parseIsPredicate(s,e,t,u,c);break;case"set!":parseSetDirective(s,e,a);break;default:l[e].push({operator:t,operands:s.slice(1)})}s.length=0}}__name(parseAnyPredicate,"parseAnyPredicate"),__name(parseMatchPredicate,"parseMatchPredicate"),__name(parseAnyOfPredicate,"parseAnyOfPredicate"),__name(parseIsPredicate,"parseIsPredicate"),__name(parseSetDirective,"parseSetDirective"),__name(parsePattern,"parsePattern");var Query=class{static{__name(this,"Query")}0=0;exceededMatchLimit;textPredicates;captureNames;captureQuantifiers;predicates;setProperties;assertedProperties;refutedProperties;matchLimit;constructor(e,t){const r=C.lengthBytesUTF8(t),n=C._malloc(r+1);C.stringToUTF8(t,n,r+1);const i=C._ts_query_new(e[0],n,r,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!i){const e=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=C.getValue(TRANSFER_BUFFER,"i32"),i=C.UTF8ToString(n,r).length,s=t.slice(i,i+100).split("\n")[0],o=s.match(QUERY_WORD_REGEX)?.[0]??"";switch(C._free(n),e){case QueryErrorKind.Syntax:throw new QueryError(QueryErrorKind.Syntax,{suffix:`${i}: '${s}'...`},i,0);case QueryErrorKind.NodeName:case QueryErrorKind.FieldName:case QueryErrorKind.CaptureName:throw new QueryError(e,{word:o},i,o.length);case QueryErrorKind.PatternStructure:throw new QueryError(e,{suffix:`${i}: '${s}'...`},i,0)}}const s=C._ts_query_string_count(i),o=C._ts_query_capture_count(i),l=C._ts_query_pattern_count(i),a=Array(o),u=Array(l),c=Array(s);for(let e=0;e<o;e++){const t=C._ts_query_capture_name_for_id(i,e,TRANSFER_BUFFER),r=C.getValue(TRANSFER_BUFFER,"i32");a[e]=C.UTF8ToString(t,r)}for(let e=0;e<l;e++){const t=Array(o);for(let r=0;r<o;r++){const n=C._ts_query_capture_quantifier_for_id(i,e,r);t[r]=n}u[e]=t}for(let e=0;e<s;e++){const t=C._ts_query_string_value_for_id(i,e,TRANSFER_BUFFER),r=C.getValue(TRANSFER_BUFFER,"i32");c[e]=C.UTF8ToString(t,r)}const h=Array(l),d=Array(l),p=Array(l),f=Array(l),m=Array(l);for(let e=0;e<l;e++){const t=C._ts_query_predicates_for_pattern(i,e,TRANSFER_BUFFER),r=C.getValue(TRANSFER_BUFFER,"i32");f[e]=[],m[e]=[];const n=[];let s=t;for(let t=0;t<r;t++){const t=C.getValue(s,"i32");s+=SIZE_OF_INT;const r=C.getValue(s,"i32");s+=SIZE_OF_INT,parsePattern(e,t,r,a,c,n,m,f,h,d,p)}Object.freeze(m[e]),Object.freeze(f[e]),Object.freeze(h[e]),Object.freeze(d[e]),Object.freeze(p[e])}C._free(n),this[0]=i,this.captureNames=a,this.captureQuantifiers=u,this.textPredicates=m,this.predicates=f,this.setProperties=h,this.assertedProperties=d,this.refutedProperties=p,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,t={}){let r=t.startPosition??ZERO_POINT,n=t.endPosition??ZERO_POINT,i=t.startIndex??0,s=t.endIndex??0,o=t.startContainingPosition??ZERO_POINT,l=t.endContainingPosition??ZERO_POINT,a=t.startContainingIndex??0,u=t.endContainingIndex??0,c=t.matchLimit??0xffffffff,h=t.maxStartDepth??0xffffffff,d=t.progressCallback;if("number"!=typeof c)throw Error("Arguments must be numbers");if(this.matchLimit=c,0!==s&&i>s)throw Error("`startIndex` cannot be greater than `endIndex`");if(n!==ZERO_POINT&&(r.row>n.row||r.row===n.row&&r.column>n.column))throw Error("`startPosition` cannot be greater than `endPosition`");if(0!==u&&a>u)throw Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(l!==ZERO_POINT&&(o.row>l.row||o.row===l.row&&o.column>l.column))throw Error("`startContainingPosition` cannot be greater than `endContainingPosition`");d&&(C.currentQueryProgressCallback=d),marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],r.row,r.column,n.row,n.column,i,s,o.row,o.column,l.row,l.column,a,u,c,h);let p=C.getValue(TRANSFER_BUFFER,"i32"),f=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),m=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),g=Array(p);this.exceededMatchLimit=!!m;let _=0,y=f;for(let t=0;t<p;t++){let t=C.getValue(y,"i32");y+=SIZE_OF_INT;let r=C.getValue(y,"i32");y+=SIZE_OF_INT;let n=Array(r);if(y=unmarshalCaptures(this,e.tree,y,t,n),this.textPredicates[t].every(e=>e(n))){g[_]={patternIndex:t,captures:n};let e=this.setProperties[t];g[_].setProperties=e;let r=this.assertedProperties[t];g[_].assertedProperties=r;let i=this.refutedProperties[t];g[_].refutedProperties=i,_++}}return g.length=_,C._free(f),C.currentQueryProgressCallback=null,g}captures(e,t={}){let r=t.startPosition??ZERO_POINT,n=t.endPosition??ZERO_POINT,i=t.startIndex??0,s=t.endIndex??0,o=t.startContainingPosition??ZERO_POINT,l=t.endContainingPosition??ZERO_POINT,a=t.startContainingIndex??0,u=t.endContainingIndex??0,c=t.matchLimit??0xffffffff,h=t.maxStartDepth??0xffffffff,d=t.progressCallback;if("number"!=typeof c)throw Error("Arguments must be numbers");if(this.matchLimit=c,0!==s&&i>s)throw Error("`startIndex` cannot be greater than `endIndex`");if(n!==ZERO_POINT&&(r.row>n.row||r.row===n.row&&r.column>n.column))throw Error("`startPosition` cannot be greater than `endPosition`");if(0!==u&&a>u)throw Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(l!==ZERO_POINT&&(o.row>l.row||o.row===l.row&&o.column>l.column))throw Error("`startContainingPosition` cannot be greater than `endContainingPosition`");d&&(C.currentQueryProgressCallback=d),marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],r.row,r.column,n.row,n.column,i,s,o.row,o.column,l.row,l.column,a,u,c,h);let p=C.getValue(TRANSFER_BUFFER,"i32"),f=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),m=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),g=[];this.exceededMatchLimit=!!m;let _=[],y=f;for(let t=0;t<p;t++){let t=C.getValue(y,"i32");y+=SIZE_OF_INT;let r=C.getValue(y,"i32");y+=SIZE_OF_INT;let n=C.getValue(y,"i32");if(y+=SIZE_OF_INT,_.length=r,y=unmarshalCaptures(this,e.tree,y,t,_),this.textPredicates[t].every(e=>e(_))){let e=_[n];e.setProperties=this.setProperties[t],e.assertedProperties=this.assertedProperties[t],e.refutedProperties=this.refutedProperties[t],g.push(e)}}return C._free(f),C.currentQueryProgressCallback=null,g}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){let t=C.lengthBytesUTF8(e),r=C._malloc(t+1);C.stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}disablePattern(e){if(e>=this.predicates.length)throw Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);C._ts_query_disable_pattern(this[0],e)}didExceedMatchLimit(){return this.exceededMatchLimit}startIndexForPattern(e){if(e>=this.predicates.length)throw Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);return C._ts_query_start_byte_for_pattern(this[0],e)}endIndexForPattern(e){if(e>=this.predicates.length)throw Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);return C._ts_query_end_byte_for_pattern(this[0],e)}patternCount(){return C._ts_query_pattern_count(this[0])}captureIndexForName(e){return this.captureNames.indexOf(e)}isPatternRooted(e){return 1===C._ts_query_is_pattern_rooted(this[0],e)}isPatternNonLocal(e){return 1===C._ts_query_is_pattern_non_local(this[0],e)}isPatternGuaranteedAtStep(e){return 1===C._ts_query_is_pattern_guaranteed_at_step(this[0],e)}}},15813:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],s=(0,n.A)("list",i)},20232:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],s=(0,n.A)("play",i)},20986:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],s=(0,n.A)("rotate-cw",i)},26932:(e,t,r)=>{"use strict";r.d(t,{o:()=>nB});var n,i,s,o,l,a,u,c={};r.r(c),r.d(c,{decode:()=>k,encode:()=>v,format:()=>C,parse:()=>z});var h={};r.r(h),r.d(h,{Any:()=>B,Cc:()=>q,Cf:()=>j,P:()=>P,S:()=>$,Z:()=>H});var d={};r.r(d),r.d(d,{arrayReplaceAt:()=>ep,asciiTrim:()=>ez,assign:()=>ed,escapeHtml:()=>eS,escapeRE:()=>eT,fromCodePoint:()=>em,has:()=>eh,isMdAsciiPunct:()=>eR,isPunctChar:()=>eI,isPunctCharCode:()=>eL,isSpace:()=>eD,isString:()=>eu,isValidEntityCode:()=>ef,isWhiteSpace:()=>eF,lib:()=>eP,normalizeReference:()=>eN,unescapeAll:()=>ex,unescapeMd:()=>ew});var p={};r.r(p),r.d(p,{parseLinkDestination:()=>eB,parseLinkLabel:()=>e$,parseLinkTitle:()=>eq});var f=r(82159),m=r(27050);let g={};function _(e){let t=g[e];if(t)return t;t=g[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);t.push(r)}for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function y(e,t){"string"!=typeof t&&(t=y.defaultChars);let r=_(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let n=0,i=e.length;n<i;n+=3){let s=parseInt(e.slice(n+1,n+3),16);if(s<128){t+=r[s];continue}if((224&s)==192&&n+3<i){let r=parseInt(e.slice(n+4,n+6),16);if((192&r)==128){let e=s<<6&1984|63&r;e<128?t+="��":t+=String.fromCharCode(e),n+=3;continue}}if((240&s)==224&&n+6<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16);if((192&r)==128&&(192&i)==128){let e=s<<12&61440|r<<6&4032|63&i;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),n+=6;continue}}if((248&s)==240&&n+9<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16),o=parseInt(e.slice(n+10,n+12),16);if((192&r)==128&&(192&i)==128&&(192&o)==128){let e=s<<18&1835008|r<<12&258048|i<<6&4032|63&o;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}t+="�"}return t})}y.defaultChars=";/?:@&=+$,#",y.componentChars="";let k=y,b={};function w(e){let t=b[e];if(t)return t;t=b[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}function x(e,t,r){"string"!=typeof t&&(r=t,t=x.defaultChars),void 0===r&&(r=!0);let n=w(t),i="";for(let t=0,s=e.length;t<s;t++){let o=e.charCodeAt(t);if(r&&37===o&&t+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=n[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<s){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[t])}return i}x.defaultChars=";/?:@&=+$,-_.!~*'()#",x.componentChars="-_.!~*'()";let v=x;function C(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}function A(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}let E=/^([a-z0-9.+-]+:)/i,S=/:[0-9]*$/,M=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,T=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "]))),D=["/","?","#"],F=255,I=/^[+a-z0-9A-Z_-]{0,63}$/,L=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,R={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function O(e,t){if(e&&e instanceof A)return e;let r=new A;return r.parse(e,t),r}A.prototype.parse=function(e,t){let r,n,i,s=e;if(s=s.trim(),!t&&1===e.split("#").length){let e=M.exec(s);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=E.exec(s);if(o&&(r=(o=o[0]).toLowerCase(),this.protocol=o,s=s.substr(o.length)),(t||o||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===s.substr(0,2))&&!(o&&R[o])&&(s=s.substr(2),this.slashes=!0),!R[o]&&(i||o&&!N[o])){let e,t,r=-1;for(let e=0;e<D.length;e++)-1!==(n=s.indexOf(D[e]))&&(-1===r||n<r)&&(r=n);-1!==(t=-1===r?s.lastIndexOf("@"):s.lastIndexOf("@",r))&&(e=s.slice(0,t),s=s.slice(t+1),this.auth=e),r=-1;for(let e=0;e<T.length;e++)-1!==(n=s.indexOf(T[e]))&&(-1===r||n<r)&&(r=n);-1===r&&(r=s.length),":"===s[r-1]&&r--;let i=s.slice(0,r);s=s.slice(r),this.parseHost(i),this.hostname=this.hostname||"";let o="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!o){let e=this.hostname.split(/\./);for(let t=0,r=e.length;t<r;t++){let r=e[t];if(r&&!r.match(I)){let n="";for(let e=0,t=r.length;e<t;e++)r.charCodeAt(e)>127?n+="x":n+=r[e];if(!n.match(I)){let n=e.slice(0,t),i=e.slice(t+1),o=r.match(L);o&&(n.push(o[1]),i.unshift(o[2])),i.length&&(s=i.join(".")+s),this.hostname=n.join(".");break}}}}this.hostname.length>F&&(this.hostname=""),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let l=s.indexOf("#");-1!==l&&(this.hash=s.substr(l),s=s.slice(0,l));let a=s.indexOf("?");return -1!==a&&(this.search=s.substr(a),s=s.slice(0,a)),s&&(this.pathname=s),N[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},A.prototype.parseHost=function(e){let t=S.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};let z=O,P=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,$=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,B=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,q=/[\0-\x1F\x7F-\x9F]/,j=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,H=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,U=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\uD835\uDD04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\uD835\uDC9Cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegra\xecȹoɴ\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀\uD835\uDD09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱c\xf2JTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\0ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦\xeberyThi\xeetedĀGLଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\uD835\uDCA9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻\xd3䃓Āiyීrc耻\xd4䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻\xd2䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻\xd8䃘iŬืde耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCACBEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbbpArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\uD835\uDD17ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8a;䎖r;愨pf;愤cr;쀀\uD835\uDCB5ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\uD835\uDD1Erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;eᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fgcostuvwឍឝឳេ៕៛ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom\xbbᏌtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t\xbbpƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ\0\0aĀ;t䀬;䁀ƀ;fl戁\xeeᅠeĀmxent\xbbe\xf3ɍǧ\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\uD835\uDD54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍r\xf2ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\uD835\uDD21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴo\xf4ĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0pro\xf8r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\uD835\uDD5Aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\0⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\uD835\uDD29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xedistĀ;sடr;쀀\uD835\uDD2BȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lan\xf4i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\uD835\uDD5F膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lle\xecl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5;쀀\uD835\uDCC3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;cⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀\uD835\uDD2Cͯ\0\0\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨr\xf2᪀Āirⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀\xb6;l䂶le\xecЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴\xefrel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⋢⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀaeo⿸〉〓tĀei々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\uD835\uDD2FĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2a\xf2Ց;怏oustĀ;a㈞掱che\xbbmid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫwar;椪lig耻\xdf䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xebƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8im\xbbኬs\xf0ኞĀas㚺㚮\xf0rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\uD835\uDD33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\uD835\uDD67ro\xf0tr\xe9㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦at\xe8ᑹcr;쀀\uD835\uDCCCૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtr\xe9៑r;쀀\uD835\uDD35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),V=new Uint16Array("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),W=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),J=null!=(n=String.fromCodePoint)?n:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function K(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!=(t=W.get(e))?t:e}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(i||(i={}));let G=32;function Z(e){return e>=i.ZERO&&e<=i.NINE}function X(e){return e>=i.UPPER_A&&e<=i.UPPER_F||e>=i.LOWER_A&&e<=i.LOWER_F}function Y(e){return e>=i.UPPER_A&&e<=i.UPPER_Z||e>=i.LOWER_A&&e<=i.LOWER_Z||Z(e)}function Q(e){return e===i.EQUALS||Y(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(s||(s={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(o||(o={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(l||(l={}));class ee{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=o.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l.Strict}startEntity(e){this.decodeMode=e,this.state=o.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case o.EntityStart:if(e.charCodeAt(t)===i.NUM)return this.state=o.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=o.NamedEntity,this.stateNamedEntity(e,t);case o.NumericStart:return this.stateNumericStart(e,t);case o.NumericDecimal:return this.stateNumericDecimal(e,t);case o.NumericHex:return this.stateNumericHex(e,t);case o.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|G)===i.LOWER_X?(this.state=o.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=o.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let i=r-t;this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!(Z(n)||X(n)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(n,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!Z(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===i.SEMI)this.consumed+=1;else if(this.decodeMode===l.Strict)return 0;return this.emitCodePoint(K(this.result),this.consumed),this.errors&&(e!==i.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],o=(n&s.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=er(r,n,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return 0===this.result||this.decodeMode===l.Attribute&&(0===o||Q(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(o=((n=r[this.treeIndex])&s.VALUE_LENGTH)>>14)){if(a===i.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==l.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&s.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~s.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case o.NamedEntity:return 0!==this.result&&(this.decodeMode!==l.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case o.NumericDecimal:return this.emitNumericEntity(0,2);case o.NumericHex:return this.emitNumericEntity(0,3);case o.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case o.EntityStart:return 0}}}function et(e){let t="",r=new ee(e,e=>t+=J(e));return function(e,n){let i=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(i,s),r.startEntity(n);let o=r.write(e,s+1);if(o<0){i=s+r.end();break}i=s+o,s=0===o?i+1:i}let o=t+e.slice(i);return t="",o}}function er(e,t,r,n){let i=(t&s.BRANCH_LENGTH)>>7,o=t&s.JUMP_TABLE;if(0===i)return 0!==o&&n===o?r:-1;if(o){let t=n-o;return t<0||t>=i?-1:e[r+t]-1}let l=r,a=l+i-1;for(;l<=a;){let t=l+a>>>1,r=e[t];if(r<n)l=t+1;else{if(!(r>n))return e[t+i];a=t-1}}return -1}let en=et(U);function ei(e,t=l.Legacy){return en(e,t)}function es(e){return en(e,l.Strict)}et(V);let eo=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function el(e,t){return function(r){let n,i=0,s="";for(;n=e.exec(r);)i!==n.index&&(s+=r.substring(i,n.index)),s+=t.get(n[0].charCodeAt(0)),i=n.index+1;return s+r.substring(i)}}function ea(e){return Object.prototype.toString.call(e)}function eu(e){return"[object String]"===ea(e)}String.prototype.codePointAt,el(/[&<>'"]/g,eo),el(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),el(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(a||(a={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(u||(u={}));let ec=Object.prototype.hasOwnProperty;function eh(e,t){return ec.call(e,t)}function ed(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(r){e[r]=t[r]})}}),e}function ep(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function ef(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)&&!0}function em(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}let eg=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,e_=/&([a-z#][a-z0-9]{1,31});/gi,ey=RegExp(eg.source+"|"+e_.source,"gi"),ek=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function eb(e,t){if(35===t.charCodeAt(0)&&ek.test(t)){let r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ef(r)?em(r):e}let r=ei(e);return r!==e?r:e}function ew(e){return 0>e.indexOf("\\")?e:e.replace(eg,"$1")}function ex(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(ey,function(e,t,r){return t||eb(e,r)})}let ev=/[&<>"]/,eC=/[&<>"]/g,eA={"&":"&","<":"<",">":">",'"':"""};function eE(e){return eA[e]}function eS(e){return ev.test(e)?e.replace(eC,eE):e}let eM=/[.?*+^$[\]\\(){}|-]/g;function eT(e){return e.replace(eM,"\\$&")}function eD(e){switch(e){case 9:case 32:return!0}return!1}function eF(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function eI(e){return P.test(e)||$.test(e)}function eL(e){return eI(em(e))}function eR(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function eN(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}function eO(e){return 32===e||9===e||10===e||13===e}function ez(e){let t=0;for(;t<e.length&&eO(e.charCodeAt(t));t++);let r=e.length-1;for(;r>=t&&eO(e.charCodeAt(r));r--);return e.slice(t,r+1)}let eP={mdurl:c,ucmicro:h};function e$(e,t,r){let n,i,s,o,l=e.posMax,a=e.pos;for(e.pos=t+1,n=1;e.pos<l;){if(93===(s=e.src.charCodeAt(e.pos))&&0==--n){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===s){if(o===e.pos-1)n++;else if(r)return e.pos=a,-1}}let u=-1;return i&&(u=e.pos),e.pos=a,u}function eB(e,t,r){let n,i=t,s={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<r&&10!==(n=e.charCodeAt(i))&&60!==n;){if(62===n){s.pos=i+1,s.str=ex(e.slice(t+1,i)),s.ok=!0;break}if(92===n&&i+1<r){i+=2;continue}i++}return s}let o=0;for(;i<r&&32!==(n=e.charCodeAt(i))&&!(n<32)&&127!==n;){if(92===n&&i+1<r){if(32===e.charCodeAt(i+1))break;i+=2;continue}if(40===n&&++o>32)return s;if(41===n){if(0===o)break;o--}i++}return t===i||0!==o||(s.str=ex(e.slice(t,i)),s.pos=i,s.ok=!0),s}function eq(e,t,r,n){let i,s=t,o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(s>=r)return o;let n=e.charCodeAt(s);if(34!==n&&39!==n&&40!==n)return o;t++,s++,40===n&&(n=41),o.marker=n}for(;s<r;){if((i=e.charCodeAt(s))===o.marker)return o.pos=s+1,o.str+=ex(e.slice(t,s)),o.ok=!0,o;if(40===i&&41===o.marker)return o;92===i&&s+1<r&&s++,s++}return o.can_continue=!0,o.str+=ex(e.slice(t,s)),o}let ej={};function eH(){this.rules=ed({},ej)}ej.code_inline=function(e,t,r,n,i){let s=e[t];return"<code"+i.renderAttrs(s)+">"+eS(s.content)+"</code>"},ej.code_block=function(e,t,r,n,i){let s=e[t];return"<pre"+i.renderAttrs(s)+"><code>"+eS(e[t].content)+"</code></pre>\n"},ej.fence=function(e,t,r,n,i){let s,o=e[t],l=o.info?ex(o.info).trim():"",a="",u="";if(l){let e=l.split(/(\s+)/g);a=e[0],u=e.slice(2).join("")}if(0===(s=r.highlight&&r.highlight(o.content,a,u)||eS(o.content)).indexOf("<pre"))return s+"\n";if(l){let e=o.attrIndex("class"),t=o.attrs?o.attrs.slice():[];e<0?t.push(["class",r.langPrefix+a]):(t[e]=t[e].slice(),t[e][1]+=" "+r.langPrefix+a);let n={attrs:t};return`<pre><code${i.renderAttrs(n)}>${s}</code></pre>
|
|
8
8
|
`}return`<pre><code${i.renderAttrs(o)}>${s}</code></pre>
|
|
9
|
-
`},eP.image=function(e,t,r,n,i){let s=e[t];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,r,n),i.renderToken(e,t,r)},eP.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},eP.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},eP.text=function(e,t){return eE(e[t].content)},eP.html_block=function(e,t){return e[t].content},eP.html_inline=function(e,t){return e[t].content},e$.prototype.renderAttrs=function(e){let t,r,n;if(!e.attrs)return"";for(t=0,n="",r=e.attrs.length;t<r;t++)n+=" "+eE(e.attrs[t][0])+'="'+eE(e.attrs[t][1])+'"';return n},e$.prototype.renderToken=function(e,t,r){let n=e[t],i="";if(n.hidden)return"";n.block&&-1!==n.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===n.nesting?"</":"<")+n.tag,i+=this.renderAttrs(n),0===n.nesting&&r.xhtmlOut&&(i+=" /");let s=!1;if(n.block&&(s=!0,1===n.nesting&&t+1<e.length)){let r=e[t+1];"inline"===r.type||r.hidden?s=!1:-1===r.nesting&&r.tag===n.tag&&(s=!1)}return i+(s?">\n":">")},e$.prototype.renderInline=function(e,t,r){let n="",i=this.rules;for(let s=0,o=e.length;s<o;s++){let o=e[s].type;void 0!==i[o]?n+=i[o](e,s,t,r,this):n+=this.renderToken(e,s,t)}return n},e$.prototype.renderInlineAsText=function(e,t,r){let n="";for(let i=0,s=e.length;i<s;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":n+=e[i].content;break;case"image":n+=this.renderInlineAsText(e[i].children,t,r);break;case"softbreak":case"hardbreak":n+="\n"}return n},e$.prototype.render=function(e,t,r){let n="",i=this.rules;for(let s=0,o=e.length;s<o;s++){let o=e[s].type;"inline"===o?n+=this.renderInline(e[s].children,t,r):void 0!==i[o]?n+=i[o](e,s,t,r,this):n+=this.renderToken(e,s,t,r)}return n};let eB=e$;function eq(){this.__rules__=[],this.__cache__=null}eq.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return -1},eq.prototype.__compile__=function(){let e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(r){!r.enabled||t&&0>r.alt.indexOf(t)||e.__cache__[t].push(r.fn)})})},eq.prototype.at=function(e,t,r){let n=this.__find__(e),i=r||{};if(-1===n)throw Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=i.alt||[],this.__cache__=null},eq.prototype.before=function(e,t,r,n){let i=this.__find__(e),s=n||{};if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null},eq.prototype.after=function(e,t,r,n){let i=this.__find__(e),s=n||{};if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null},eq.prototype.push=function(e,t,r){let n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null},eq.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(e){let n=this.__find__(e);if(n<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,r.push(e)},this),this.__cache__=null,r},eq.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},eq.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(e){let n=this.__find__(e);if(n<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,r.push(e)},this),this.__cache__=null,r},eq.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};let ej=eq;function eH(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}eH.prototype.attrIndex=function(e){if(!this.attrs)return -1;let t=this.attrs;for(let r=0,n=t.length;r<n;r++)if(t[r][0]===e)return r;return -1},eH.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},eH.prototype.attrSet=function(e,t){let r=this.attrIndex(e),n=[e,t];r<0?this.attrPush(n):this.attrs[r]=n},eH.prototype.attrGet=function(e){let t=this.attrIndex(e),r=null;return t>=0&&(r=this.attrs[t][1]),r},eH.prototype.attrJoin=function(e,t){let r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t};let eU=eH;function eV(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}eV.prototype.Token=eU;let eW=eV,eJ=/\r\n?|\n/g,eK=/\0/g;function eG(e){return/^<a[>\s]/i.test(e)}function eZ(e){return/^<\/a\s*>/i.test(e)}let eX=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,eY=/\((c|tm|r)\)/i,eQ=/\((c|tm|r)\)/ig,e0={c:"\xa9",r:"\xae",tm:"™"};function e1(e,t){return e0[t.toLowerCase()]}function e2(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"!==n.type||t||(n.content=n.content.replace(eQ,e1)),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}function e3(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"===n.type&&!t&&eX.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}let e5=/['"]/,e4=/['"]/g,e6="’";function e8(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function e9(e,t){let r,n=[];for(let i=0;i<e.length;i++){let s=e[i],o=e[i].level;for(r=n.length-1;r>=0&&!(n[r].level<=o);r--);if(n.length=r+1,"text"!==s.type)continue;let l=s.content,a=0,u=l.length;r:for(;a<u;){e4.lastIndex=a;let c=e4.exec(l);if(!c)break;let h=!0,d=!0;a=c.index+1;let p="'"===c[0],f=32;if(c.index-1>=0)f=l.charCodeAt(c.index-1);else for(r=i-1;r>=0&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r--)if(e[r].content){f=e[r].content.charCodeAt(e[r].content.length-1);break}let m=32;if(a<u)m=l.charCodeAt(a);else for(r=i+1;r<e.length&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r++)if(e[r].content){m=e[r].content.charCodeAt(0);break}let g=eI(f)||eF(String.fromCharCode(f)),_=eI(m)||eF(String.fromCharCode(m)),y=eD(f),k=eD(m);if(k?h=!1:_&&!(y||g)&&(h=!1),y?d=!1:g&&!(k||_)&&(d=!1),34===m&&'"'===c[0]&&f>=48&&f<=57&&(d=h=!1),h&&d&&(h=g,d=_),!h&&!d){p&&(s.content=e8(s.content,c.index,e6));continue}if(d)for(r=n.length-1;r>=0;r--){let h=n[r];if(n[r].level<o)break;if(h.single===p&&n[r].level===o){let o,d;h=n[r],p?(o=t.md.options.quotes[2],d=t.md.options.quotes[3]):(o=t.md.options.quotes[0],d=t.md.options.quotes[1]),s.content=e8(s.content,c.index,d),e[h.token].content=e8(e[h.token].content,h.pos,o),a+=d.length-1,h.token===i&&(a+=o.length-1),u=(l=s.content).length,n.length=r;continue r}}h?n.push({token:i,pos:c.index,single:p,level:o}):d&&p&&(s.content=e8(s.content,c.index,e6))}}}let e7=[["normalize",function(e){let t;t=(t=e.src.replace(eJ,"\n")).replace(eK,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){let t=e.tokens;for(let r=0,n=t.length;r<n;r++){let n=t[r];"inline"===n.type&&e.md.inline.parse(n.content,e.md,e.env,n.children)}}],["linkify",function(e){let t=e.tokens;if(e.md.options.linkify)for(let r=0,n=t.length;r<n;r++){if("inline"!==t[r].type||!e.md.linkify.pretest(t[r].content))continue;let n=t[r].children,i=0;for(let s=n.length-1;s>=0;s--){let o=n[s];if("link_close"===o.type){for(s--;n[s].level!==o.level&&"link_open"!==n[s].type;)s--;continue}if("html_inline"===o.type&&(eG(o.content)&&i>0&&i--,eZ(o.content)&&i++),!(i>0)&&"text"===o.type&&e.md.linkify.test(o.content)){let i=o.content,l=e.md.linkify.match(i),a=[],u=o.level,c=0;l.length>0&&0===l[0].index&&s>0&&"text_special"===n[s-1].type&&(l=l.slice(1));for(let t=0;t<l.length;t++){let r=l[t].url,n=e.md.normalizeLink(r);if(!e.md.validateLink(n))continue;let s=l[t].text;s=l[t].schema?"mailto:"!==l[t].schema||/^mailto:/i.test(s)?e.md.normalizeLinkText(s):e.md.normalizeLinkText("mailto:"+s).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+s).replace(/^http:\/\//,"");let o=l[t].index;if(o>c){let t=new e.Token("text","",0);t.content=i.slice(c,o),t.level=u,a.push(t)}let h=new e.Token("link_open","a",1);h.attrs=[["href",n]],h.level=u++,h.markup="linkify",h.info="auto",a.push(h);let d=new e.Token("text","",0);d.content=s,d.level=u,a.push(d);let p=new e.Token("link_close","a",-1);p.level=--u,p.markup="linkify",p.info="auto",a.push(p),c=l[t].lastIndex}if(c<i.length){let t=new e.Token("text","",0);t.content=i.slice(c),t.level=u,a.push(t)}t[r].children=n=ed(n,s,a)}}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(eY.test(e.tokens[t].content)&&e2(e.tokens[t].children),eX.test(e.tokens[t].content)&&e3(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&e5.test(e.tokens[t].content)&&e9(e.tokens[t].children,e)}],["text_join",function(e){let t,r,n=e.tokens,i=n.length;for(let e=0;e<i;e++){if("inline"!==n[e].type)continue;let i=n[e].children,s=i.length;for(t=0;t<s;t++)"text_special"===i[t].type&&(i[t].type="text");for(t=r=0;t<s;t++)"text"===i[t].type&&t+1<s&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}}]];function te(){this.ruler=new ej;for(let e=0;e<e7.length;e++)this.ruler.push(e7[e][0],e7[e][1])}te.prototype.process=function(e){let t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)},te.prototype.State=eW;let tt=te;function tr(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let i=this.src;for(let e=0,t=0,r=0,n=0,s=i.length,o=!1;t<s;t++){let l=i.charCodeAt(t);if(!o)if(eT(l)){r++,9===l?n+=4-n%4:n++;continue}else o=!0;(10===l||t===s-1)&&(10!==l&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),o=!1,r=0,n=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}tr.prototype.push=function(e,t,r){let n=new eU(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},tr.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},tr.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},tr.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&eT(this.src.charCodeAt(e));e++);return e},tr.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!eT(this.src.charCodeAt(--e)))return e+1;return e},tr.prototype.skipChars=function(e,t){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e},tr.prototype.skipCharsBack=function(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e},tr.prototype.getLines=function(e,t,r,n){if(e>=t)return"";let i=Array(t-e);for(let s=0,o=e;o<t;o++,s++){let e,l=0,a=this.bMarks[o],u=a;for(e=o+1<t||n?this.eMarks[o]+1:this.eMarks[o];u<e&&l<r;){let e=this.src.charCodeAt(u);if(eT(e))9===e?l+=4-(l+this.bsCount[o])%4:l++;else if(u-a<this.tShift[o])l++;else break;u++}l>r?i[s]=Array(l-r+1).join(" ")+this.src.slice(u,e):i[s]=this.src.slice(u,e)}return i.join("")},tr.prototype.Token=eU;let tn=tr,ti=65536;function ts(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function to(e){let t=[],r=e.length,n=0,i=e.charCodeAt(n),s=!1,o=0,l="";for(;n<r;)124===i&&(s?(l+=e.substring(o,n-1),o=n):(t.push(l+e.substring(o,n)),l="",o=n+1)),s=92===i,n++,i=e.charCodeAt(n);return t.push(l+e.substring(o)),t}function tl(e,t,r,n){let i;if(t+2>r)return!1;let s=t+1;if(e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)return!1;let o=e.bMarks[s]+e.tShift[s];if(o>=e.eMarks[s])return!1;let l=e.src.charCodeAt(o++);if(124!==l&&45!==l&&58!==l||o>=e.eMarks[s])return!1;let a=e.src.charCodeAt(o++);if(124!==a&&45!==a&&58!==a&&!eT(a)||45===l&&eT(a))return!1;for(;o<e.eMarks[s];){let t=e.src.charCodeAt(o);if(124!==t&&45!==t&&58!==t&&!eT(t))return!1;o++}let u=ts(e,t+1),c=u.split("|"),h=[];for(let e=0;e<c.length;e++){let t=c[e].trim();if(!t)if(0===e||e===c.length-1)continue;else return!1;if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?h.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?h.push("left"):h.push("")}if(-1===(u=ts(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4)return!1;(c=to(u)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();let d=c.length;if(0===d||d!==h.length)return!1;if(n)return!0;let p=e.parentType;e.parentType="table";let f=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){let r=e.push("th_open","th",1);h[t]&&(r.attrs=[["style","text-align:"+h[t]]]);let n=e.push("inline","",0);n.content=c[t].trim(),n.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let _=0;for(s=t+2;s<r&&!(e.sCount[s]<e.blkIndent);s++){let n=!1;for(let t=0,i=f.length;t<i;t++)if(f[t](e,s,r,!0)){n=!0;break}if(n||!(u=ts(e,s).trim())||e.sCount[s]-e.blkIndent>=4||((c=to(u)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),(_+=d-c.length)>ti))break;s===t+2&&(e.push("tbody_open","tbody",1).map=i=[t+2,0]),e.push("tr_open","tr",1).map=[s,s+1];for(let t=0;t<d;t++){let r=e.push("td_open","td",1);h[t]&&(r.attrs=[["style","text-align:"+h[t]]]);let n=e.push("inline","",0);n.content=c[t]?c[t].trim():"",n.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return i&&(e.push("tbody_close","tbody",-1),i[1]=s),e.push("table_close","table",-1),g[1]=s,e.parentType=p,e.line=s,!0}function ta(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,i=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){i=++n;continue}break}e.line=i;let s=e.push("code_block","code",0);return s.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",s.map=[t,e.line],!0}function tu(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>s)return!1;let o=e.src.charCodeAt(i);if(126!==o&&96!==o)return!1;let l=i,a=(i=e.skipChars(i,o))-l;if(a<3)return!1;let u=e.src.slice(l,i),c=e.src.slice(i,s);if(96===o&&c.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let h=t,d=!1;for(;!(++h>=r)&&(!((i=l=e.bMarks[h]+e.tShift[h])<(s=e.eMarks[h]))||!(e.sCount[h]<e.blkIndent));){;if(!(e.src.charCodeAt(i)!==o||e.sCount[h]-e.blkIndent>=4||(i=e.skipChars(i,o))-l<a)&&!((i=e.skipSpaces(i))<s)){d=!0;break}}a=e.sCount[t],e.line=h+ +!!d;let p=e.push("fence","code",0);return p.info=c,p.content=e.getLines(t+1,h,a,!0),p.markup=u,p.map=[t,e.line],!0}function tc(e,t,r,n){let i,s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],l=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(s))return!1;if(n)return!0;let a=[],u=[],c=[],h=[],d=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let f=!1;for(i=t;i<r;i++){let t=e.sCount[i]<e.blkIndent;if((s=e.bMarks[i]+e.tShift[i])>=(o=e.eMarks[i]))break;if(62===e.src.charCodeAt(s++)&&!t){let t,r,n=e.sCount[i]+1;32===e.src.charCodeAt(s)?(s++,n++,r=!1,t=!0):9===e.src.charCodeAt(s)?(t=!0,(e.bsCount[i]+n)%4==3?(s++,n++,r=!1):r=!0):t=!1;let l=n;for(a.push(e.bMarks[i]),e.bMarks[i]=s;s<o;){let t=e.src.charCodeAt(s);if(eT(t))9===t?l+=4-(l+e.bsCount[i]+ +!!r)%4:l++;else break;s++}f=s>=o,u.push(e.bsCount[i]),e.bsCount[i]=e.sCount[i]+1+ +!!t,c.push(e.sCount[i]),e.sCount[i]=l-n,h.push(e.tShift[i]),e.tShift[i]=s-e.bMarks[i];continue}if(f)break;let n=!1;for(let t=0,s=d.length;t<s;t++)if(d[t](e,i,r,!0)){n=!0;break}if(n){e.lineMax=i,0!==e.blkIndent&&(a.push(e.bMarks[i]),u.push(e.bsCount[i]),h.push(e.tShift[i]),c.push(e.sCount[i]),e.sCount[i]-=e.blkIndent);break}a.push(e.bMarks[i]),u.push(e.bsCount[i]),h.push(e.tShift[i]),c.push(e.sCount[i]),e.sCount[i]=-1}let m=e.blkIndent;e.blkIndent=0;let g=e.push("blockquote_open","blockquote",1);g.markup=">";let _=[t,0];g.map=_,e.md.block.tokenize(e,t,i),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=l,e.parentType=p,_[1]=e.line;for(let r=0;r<h.length;r++)e.bMarks[r+t]=a[r],e.tShift[r+t]=h[r],e.sCount[r+t]=c[r],e.bsCount[r+t]=u[r];return e.blkIndent=m,!0}function th(e,t,r,n){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(s++);if(42!==o&&45!==o&&95!==o)return!1;let l=1;for(;s<i;){let t=e.src.charCodeAt(s++);if(t!==o&&!eT(t))return!1;t===o&&l++}if(l<3)return!1;if(n)return!0;e.line=t+1;let a=e.push("hr","hr",0);return a.map=[t,e.line],a.markup=Array(l+1).join(String.fromCharCode(o)),!0}function td(e,t){let r=e.eMarks[t],n=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(n++);return 42!==i&&45!==i&&43!==i||n<r&&!eT(e.src.charCodeAt(n))?-1:n}function tp(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t],i=r;if(i+1>=n)return -1;let s=e.src.charCodeAt(i++);if(s<48||s>57)return -1;for(;;){if(i>=n)return -1;if((s=e.src.charCodeAt(i++))>=48&&s<=57){if(i-r>=10)return -1;continue}if(41===s||46===s)break;return -1}return i<n&&!eT(s=e.src.charCodeAt(i))?-1:i}function tf(e,t){let r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function tm(e,t,r,n){let i,s,o,l,a,u,c,h=t,d=!0;if(e.sCount[h]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[h]-e.listIndent>=4&&e.sCount[h]<e.blkIndent)return!1;let p=!1;if(n&&"paragraph"===e.parentType&&e.sCount[h]>=e.blkIndent&&(p=!0),(c=tp(e,h))>=0){if(a=!0,o=e.bMarks[h]+e.tShift[h],u=Number(e.src.slice(o,c-1)),p&&1!==u)return!1}else{if(!((c=td(e,h))>=0))return!1;a=!1}if(p&&e.skipSpaces(c)>=e.eMarks[h])return!1;if(n)return!0;let f=e.src.charCodeAt(c-1),m=e.tokens.length;a?(l=e.push("ordered_list_open","ol",1),1!==u&&(l.attrs=[["start",u]])):l=e.push("bullet_list_open","ul",1);let g=[h,0];l.map=g,l.markup=String.fromCharCode(f);let _=!1,y=e.md.block.ruler.getRules("list"),k=e.parentType;for(e.parentType="list";h<r;){let t;s=c,i=e.eMarks[h];let n=e.sCount[h]+c-(e.bMarks[h]+e.tShift[h]),u=n;for(;s<i;){let t=e.src.charCodeAt(s);if(9===t)u+=4-(u+e.bsCount[h])%4;else if(32===t)u++;else break;s++}let p=s;(t=p>=i?1:u-n)>4&&(t=1);let m=n+t;(l=e.push("list_item_open","li",1)).markup=String.fromCharCode(f);let g=[h,0];l.map=g,a&&(l.info=e.src.slice(o,c-1));let k=e.tight,b=e.tShift[h],w=e.sCount[h],x=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[h]=p-e.bMarks[h],e.sCount[h]=u,p>=i&&e.isEmpty(h+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,h,r,!0),(!e.tight||_)&&(d=!1),_=e.line-h>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[h]=b,e.sCount[h]=w,e.tight=k,(l=e.push("list_item_close","li",-1)).markup=String.fromCharCode(f),h=e.line,g[1]=h,h>=r||e.sCount[h]<e.blkIndent||e.sCount[h]-e.blkIndent>=4)break;let v=!1;for(let t=0,n=y.length;t<n;t++)if(y[t](e,h,r,!0)){v=!0;break}if(v)break;if(a){if((c=tp(e,h))<0)break;o=e.bMarks[h]+e.tShift[h]}else if((c=td(e,h))<0)break;if(f!==e.src.charCodeAt(c-1))break}return(l=a?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(f),g[1]=h,e.line=h,e.parentType=k,d&&tf(e,m),!0}function tg(e,t,r,n){let i,s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],l=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(s))return!1;function a(t){let r=e.lineMax;if(t>=r||e.isEmpty(t))return null;let n=!1;if(e.sCount[t]-e.blkIndent>3&&(n=!0),e.sCount[t]<0&&(n=!0),!n){let n=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let s=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,t,r,!0)){s=!0;break}if(e.parentType=i,s)return null}let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return e.src.slice(i,s+1)}let u=e.src.slice(s,o+1);o=u.length;let c=-1;for(s=1;s<o;s++){let e=u.charCodeAt(s);if(91===e)return!1;if(93===e){c=s;break}if(10===e){let e=a(l);null!==e&&(u+=e,o=u.length,l++)}else if(92===e&&++s<o&&10===u.charCodeAt(s)){let e=a(l);null!==e&&(u+=e,o=u.length,l++)}}if(c<0||58!==u.charCodeAt(c+1))return!1;for(s=c+2;s<o;s++){let e=u.charCodeAt(s);if(10===e){let e=a(l);null!==e&&(u+=e,o=u.length,l++)}else if(eT(e));else break}let h=e.md.helpers.parseLinkDestination(u,s,o);if(!h.ok)return!1;let d=e.md.normalizeLink(h.str);if(!e.md.validateLink(d))return!1;let p=s=h.pos,f=l,m=s;for(;s<o;s++){let e=u.charCodeAt(s);if(10===e){let e=a(l);null!==e&&(u+=e,o=u.length,l++)}else if(eT(e));else break}let g=e.md.helpers.parseLinkTitle(u,s,o);for(;g.can_continue;){let t=a(l);if(null===t)break;u+=t,s=o,o=u.length,l++,g=e.md.helpers.parseLinkTitle(u,s,o,g)}for(s<o&&m!==s&&g.ok?(i=g.str,s=g.pos):(i="",s=p,l=f);s<o&&eT(u.charCodeAt(s));)s++;if(s<o&&10!==u.charCodeAt(s)&&i)for(i="",s=p,l=f;s<o&&eT(u.charCodeAt(s));)s++;if(s<o&&10!==u.charCodeAt(s))return!1;let _=eL(u.slice(1,c));return!!_&&(!!n||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[_]&&(e.env.references[_]={title:i,href:d}),e.line=l,!0))}let t_=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ty="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",tk="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",tb=RegExp("^(?:"+ty+"|"+tk+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),tw=RegExp("^(?:"+ty+"|"+tk+")"),tx=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?("+t_.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(tw.source+"\\s*$"),/^$/,!1]],tv=[["table",tl,["paragraph","reference"]],["code",ta],["fence",tu,["paragraph","reference","blockquote","list"]],["blockquote",tc,["paragraph","reference","blockquote","list"]],["hr",th,["paragraph","reference","blockquote","list"]],["list",tm,["paragraph","reference","blockquote"]],["reference",tg],["html_block",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(i))return!1;let o=e.src.slice(i,s),l=0;for(;l<tx.length&&!tx[l][0].test(o);l++);if(l===tx.length)return!1;if(n)return tx[l][2];let a=t+1;if(!tx[l][1].test(o)){for(;a<r&&!(e.sCount[a]<e.blkIndent);a++)if(i=e.bMarks[a]+e.tShift[a],s=e.eMarks[a],o=e.src.slice(i,s),tx[l][1].test(o)){0!==o.length&&a++;break}}e.line=a;let u=e.push("html_block","",0);return u.map=[t,a],u.content=e.getLines(t,a,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(35!==o||i>=s)return!1;let l=1;for(o=e.src.charCodeAt(++i);35===o&&i<s&&l<=6;)l++,o=e.src.charCodeAt(++i);if(l>6||i<s&&!eT(o))return!1;if(n)return!0;s=e.skipSpacesBack(s,i);let a=e.skipCharsBack(s,35,i);a>i&&eT(e.src.charCodeAt(a-1))&&(s=a),e.line=t+1;let u=e.push("heading_open","h"+String(l),1);u.markup="########".slice(0,l),u.map=[t,e.line];let c=e.push("inline","",0);return c.content=e.src.slice(i,s).trim(),c.map=[t,e.line],c.children=[],e.push("heading_close","h"+String(l),-1).markup="########".slice(0,l),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,r){let n,i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.parentType;e.parentType="paragraph";let o=0,l=t+1;for(;l<r&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]>=e.blkIndent){let t=e.bMarks[l]+e.tShift[l],r=e.eMarks[l];if(t<r&&(45===(n=e.src.charCodeAt(t))||61===n)&&(t=e.skipChars(t,n),(t=e.skipSpaces(t))>=r)){o=61===n?1:2;break}}if(e.sCount[l]<0)continue;let t=!1;for(let n=0,s=i.length;n<s;n++)if(i[n](e,l,r,!0)){t=!0;break}if(t)break}if(!o)return!1;let a=e.getLines(t,l,e.blkIndent,!1).trim();e.line=l+1;let u=e.push("heading_open","h"+String(o),1);u.markup=String.fromCharCode(n),u.map=[t,e.line];let c=e.push("inline","",0);return c.content=a,c.map=[t,e.line-1],c.children=[],e.push("heading_close","h"+String(o),-1).markup=String.fromCharCode(n),e.parentType=s,!0}],["paragraph",function(e,t,r){let n=e.md.block.ruler.getRules("paragraph"),i=e.parentType,s=t+1;for(e.parentType="paragraph";s<r&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)continue;let t=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,s,r,!0)){t=!0;break}if(t)break}let o=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s,e.push("paragraph_open","p",1).map=[t,e.line];let l=e.push("inline","",0);return l.content=o,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function tC(){this.ruler=new ej;for(let e=0;e<tv.length;e++)this.ruler.push(tv[e][0],tv[e][1],{alt:(tv[e][2]||[]).slice()})}tC.prototype.tokenize=function(e,t,r){let n=this.ruler.getRules(""),i=n.length,s=e.md.options.maxNesting,o=t,l=!1;for(;o<r&&(e.line=o=e.skipEmptyLines(o),!(o>=r)&&!(e.sCount[o]<e.blkIndent));){if(e.level>=s){e.line=r;break}let t=e.line,a=!1;for(let s=0;s<i;s++)if(a=n[s](e,o,r,!1)){if(t>=e.line)throw Error("block rule didn't increment state.line");break}if(!a)throw Error("none of the block rules matched");e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),(o=e.line)<r&&e.isEmpty(o)&&(l=!0,e.line=++o)}},tC.prototype.parse=function(e,t,r,n){if(!e)return;let i=new this.State(e,t,r,n);this.tokenize(i,i.line,i.lineMax)},tC.prototype.State=tn;let tA=tC;function tE(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}tE.prototype.pushPending=function(){let e=new eU("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},tE.prototype.push=function(e,t,r){this.pending&&this.pushPending();let n=new eU(e,t,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n},tE.prototype.scanDelims=function(e,t){let r=this.posMax,n=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32,s=e;for(;s<r&&this.src.charCodeAt(s)===n;)s++;let o=s-e,l=s<r?this.src.charCodeAt(s):32,a=eI(i)||eF(String.fromCharCode(i)),u=eI(l)||eF(String.fromCharCode(l)),c=eD(i),h=eD(l),d=!h&&(!u||c||a),p=!c&&(!a||h||u);return{can_open:d&&(t||!p||a),can_close:p&&(t||!d||u),length:o}},tE.prototype.Token=eU;let tS=tE;function tM(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function tT(e,t){let r=e.pos;for(;r<e.posMax&&!tM(e.src.charCodeAt(r));)r++;return r!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}let tD=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function tF(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let r=e.pos;if(r+3>e.posMax||58!==e.src.charCodeAt(r)||47!==e.src.charCodeAt(r+1)||47!==e.src.charCodeAt(r+2))return!1;let n=e.pending.match(tD);if(!n)return!1;let i=n[1],s=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!s)return!1;let o=s.url;if(o.length<=i.length)return!1;let l=o.length;for(;l>0&&42===o.charCodeAt(l-1);)l--;l!==o.length&&(o=o.slice(0,l));let a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);let t=e.push("link_open","a",1);t.attrs=[["href",a]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);let r=e.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return e.pos+=o.length-i.length,!0}function tI(e,t){let r=e.pos;if(10!==e.src.charCodeAt(r))return!1;let n=e.pending.length-1,i=e.posMax;if(!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){let t=n-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<i&&eT(e.src.charCodeAt(r));)r++;return e.pos=r,!0}let tL=[];for(let e=0;e<256;e++)tL.push(0);function tN(e,t){let r,n=[],i=t.length;for(let s=0;s<i;s++){let i=t[s];if(126!==i.marker||-1===i.end)continue;let o=t[i.end];(r=e.tokens[i.token]).type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",(r=e.tokens[o.token]).type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&n.push(o.token-1)}for(;n.length;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;t!==--i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}}function tR(e,t){let r=t.length;for(let n=r-1;n>=0;n--){let r=t[n];if(95!==r.marker&&42!==r.marker||-1===r.end)continue;let i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),l=e.tokens[r.token];l.type=s?"strong_open":"em_open",l.tag=s?"strong":"em",l.nesting=1,l.markup=s?o+o:o,l.content="";let a=e.tokens[i.token];a.type=s?"strong_close":"em_close",a.tag=s?"strong":"em",a.nesting=-1,a.markup=s?o+o:o,a.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){tL[e.charCodeAt(0)]=1});let tO=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,tz=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function tP(e){return/^<a[>\s]/i.test(e)}function t$(e){return/^<\/a\s*>/i.test(e)}function tB(e){let t=32|e;return t>=97&&t<=122}let tq=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,tj=/^&([a-z][a-z0-9]{1,31});/i;function tH(e){let t={},r=e.length;if(!r)return;let n=0,i=-2,s=[];for(let o=0;o<r;o++){let r=e[o];if(s.push(0),(e[n].marker!==r.marker||i!==r.token-1)&&(n=o),i=r.token,r.length=r.length||0,!r.close)continue;t.hasOwnProperty(r.marker)||(t[r.marker]=[-1,-1,-1,-1,-1,-1]);let l=t[r.marker][3*!!r.open+r.length%3],a=n-s[n]-1,u=a;for(;a>l;a-=s[a]+1){let t=e[a];if(t.marker===r.marker&&t.open&&t.end<0){let n=!1;if((t.close||r.open)&&(t.length+r.length)%3==0&&(t.length%3!=0||r.length%3!=0)&&(n=!0),!n){let n=a>0&&!e[a-1].open?s[a-1]+1:0;s[o]=o-a+n,s[a]=n,r.open=!1,t.end=o,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[r.marker][3*!!r.open+(r.length||0)%3]=u)}}let tU=[["text",tT],["linkify",tF],["newline",tI],["escape",function(e,t){let r=e.pos,n=e.posMax;if(92!==e.src.charCodeAt(r)||++r>=n)return!1;let i=e.src.charCodeAt(r);if(10===i){for(t||e.push("hardbreak","br",0),r++;r<n&&eT(i=e.src.charCodeAt(r));)r++;return e.pos=r,!0}let s=e.src[r];if(i>=55296&&i<=56319&&r+1<n){let t=e.src.charCodeAt(r+1);t>=56320&&t<=57343&&(s+=e.src[r+1],r++)}let o="\\"+s;if(!t){let t=e.push("text_special","",0);i<256&&0!==tL[i]?t.content=s:t.content=o,t.markup=o,t.info="escape"}return e.pos=r+1,!0}],["backticks",function(e,t){let r,n=e.pos;if(96!==e.src.charCodeAt(n))return!1;let i=n;n++;let s=e.posMax;for(;n<s&&96===e.src.charCodeAt(n);)n++;let o=e.src.slice(i,n),l=o.length;if(e.backticksScanned&&(e.backticks[l]||0)<=i)return t||(e.pending+=o),e.pos+=l,!0;let a=n;for(;-1!==(r=e.src.indexOf("`",a));){for(a=r+1;a<s&&96===e.src.charCodeAt(a);)a++;let i=a-r;if(i===l){if(!t){let t=e.push("code_inline","code",0);t.markup=o,t.content=e.src.slice(n,r).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=a,!0}e.backticks[i]=r}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=l,!0}],["strikethrough",function(e,t){let r,n=e.pos,i=e.src.charCodeAt(n);if(t||126!==i)return!1;let s=e.scanDelims(e.pos,!0),o=s.length,l=String.fromCharCode(i);if(o<2)return!1;o%2&&((r=e.push("text","",0)).content=l,o--);for(let t=0;t<o;t+=2)(r=e.push("text","",0)).content=l+l,e.delimiters.push({marker:i,length:0,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0}],["emphasis",function(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||95!==n&&42!==n)return!1;let i=e.scanDelims(e.pos,42===n);for(let t=0;t<i.length;t++)e.push("text","",0).content=String.fromCharCode(n),e.delimiters.push({marker:n,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["link",function e(e,t){let r,n,i,s,o="",l="",a=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;let c=e.pos,h=e.posMax,d=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let f=p+1;if(f<h&&40===e.src.charCodeAt(f)){for(u=!1,f++;f<h&&(eT(r=e.src.charCodeAt(f))||10===r);f++);if(f>=h)return!1;if(a=f,(i=e.md.helpers.parseLinkDestination(e.src,f,e.posMax)).ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?f=i.pos:o="",a=f;f<h&&(eT(r=e.src.charCodeAt(f))||10===r);f++);if(i=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<h&&a!==f&&i.ok)for(l=i.str,f=i.pos;f<h&&(eT(r=e.src.charCodeAt(f))||10===r);f++);}(f>=h||41!==e.src.charCodeAt(f))&&(u=!0),f++}if(u){if(void 0===e.env.references)return!1;if(f<h&&91===e.src.charCodeAt(f)?(a=f+1,(f=e.md.helpers.parseLinkLabel(e,f))>=0?n=e.src.slice(a,f++):f=p+1):f=p+1,n||(n=e.src.slice(d,p)),!(s=e.env.references[eL(n)]))return e.pos=c,!1;o=s.href,l=s.title}if(!t){e.pos=d,e.posMax=p;let t=e.push("link_open","a",1),r=[["href",o]];t.attrs=r,l&&r.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=h,!0}],["image",function e(e,t){let r,n,i,s,o,l,a,u,c="",h=e.pos,d=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let p=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if((s=f+1)<d&&40===e.src.charCodeAt(s)){for(s++;s<d&&(eT(r=e.src.charCodeAt(s))||10===r);s++);if(s>=d)return!1;for(u=s,(l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok&&(c=e.md.normalizeLink(l.str),e.md.validateLink(c)?s=l.pos:c=""),u=s;s<d&&(eT(r=e.src.charCodeAt(s))||10===r);s++);if(l=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<d&&u!==s&&l.ok)for(a=l.str,s=l.pos;s<d&&(eT(r=e.src.charCodeAt(s))||10===r);s++);else a="";if(s>=d||41!==e.src.charCodeAt(s))return e.pos=h,!1;s++}else{if(void 0===e.env.references)return!1;if(s<d&&91===e.src.charCodeAt(s)?(u=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?i=e.src.slice(u,s++):s=f+1):s=f+1,i||(i=e.src.slice(p,f)),!(o=e.env.references[eL(i)]))return e.pos=h,!1;c=o.href,a=o.title}if(!t){n=e.src.slice(p,f);let t=[];e.md.inline.parse(n,e.md,e.env,t);let r=e.push("image","img",0),i=[["src",c],["alt",""]];r.attrs=i,r.children=t,r.content=n,a&&i.push(["title",a])}return e.pos=s,e.posMax=d,!0}],["autolink",function e(e,t){let r=e.pos;if(60!==e.src.charCodeAt(r))return!1;let n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;let t=e.src.charCodeAt(r);if(60===t)return!1;if(62===t)break}let s=e.src.slice(n+1,r);if(tz.test(s)){let r=e.md.normalizeLink(s);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=s.length+2,!0}if(tO.test(s)){let r=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=s.length+2,!0}return!1}],["html_inline",function e(e,t){if(!e.md.options.html)return!1;let r=e.posMax,n=e.pos;if(60!==e.src.charCodeAt(n)||n+2>=r)return!1;let i=e.src.charCodeAt(n+1);if(33!==i&&63!==i&&47!==i&&!tB(i))return!1;let s=e.src.slice(n).match(tb);if(!s)return!1;if(!t){let t=e.push("html_inline","",0);t.content=s[0],tP(t.content)&&e.linkLevel++,t$(t.content)&&e.linkLevel--}return e.pos+=s[0].length,!0}],["entity",function e(e,t){let r=e.pos,n=e.posMax;if(38!==e.src.charCodeAt(r)||r+1>=n)return!1;if(35===e.src.charCodeAt(r+1)){let n=e.src.slice(r).match(tq);if(n){if(!t){let t="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=e.push("text_special","",0);r.content=ep(t)?ef(t):ef(65533),r.markup=n[0],r.info="entity"}return e.pos+=n[0].length,!0}}else{let n=e.src.slice(r).match(tj);if(n){let r=ei(n[0]);if(r!==n[0]){if(!t){let t=e.push("text_special","",0);t.content=r,t.markup=n[0],t.info="entity"}return e.pos+=n[0].length,!0}}}return!1}]],tV=[["balance_pairs",function e(e){let t=e.tokens_meta,r=e.tokens_meta.length;tH(e.delimiters);for(let e=0;e<r;e++)t[e]&&t[e].delimiters&&tH(t[e].delimiters)}],["strikethrough",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;tN(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&tN(e,t[n].delimiters)}],["emphasis",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;tR(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&tR(e,t[n].delimiters)}],["fragments_join",function e(e){let t,r,n=0,i=e.tokens,s=e.tokens.length;for(t=r=0;t<s;t++)i[t].nesting<0&&n--,i[t].level=n,i[t].nesting>0&&n++,"text"===i[t].type&&t+1<s&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}]];function tW(){this.ruler=new ej;for(let e=0;e<tU.length;e++)this.ruler.push(tU[e][0],tU[e][1]);this.ruler2=new ej;for(let e=0;e<tV.length;e++)this.ruler2.push(tV[e][0],tV[e][1])}tW.prototype.skipToken=function(e){let t=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,s=e.cache;if(void 0!==s[t]){e.pos=s[t];return}let o=!1;if(e.level<i){for(let i=0;i<n;i++)if(e.level++,o=r[i](e,!0),e.level--,o){if(t>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!o&&e.pos++,s[t]=e.pos},tW.prototype.tokenize=function(e){let t=this.ruler.getRules(""),r=t.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos<n;){let s=e.pos,o=!1;if(e.level<i){for(let n=0;n<r;n++)if(o=t[n](e,!1)){if(s>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},tW.prototype.parse=function(e,t,r,n){let i=new this.State(e,t,r,n);this.tokenize(i);let s=this.ruler2.getRules(""),o=s.length;for(let e=0;e<o;e++)s[e](i)},tW.prototype.State=tS;let tJ=tW;function tK(e){let t={};e=e||{},t.src_Any=B.source,t.src_Cc=q.source,t.src_Z=H.source,t.src_P=P.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");let r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function tG(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function tZ(e){return Object.prototype.toString.call(e)}function tX(e){return"[object String]"===tZ(e)}function tY(e){return"[object Object]"===tZ(e)}function tQ(e){return"[object RegExp]"===tZ(e)}function t0(e){return"[object Function]"===tZ(e)}function t1(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}let t2={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function t3(e){return Object.keys(e||{}).reduce(function(e,t){return e||t2.hasOwnProperty(t)},!1)}let t5={"http:":{validate:function(e,t,r){let n=e.slice(t);return(r.re.http||(r.re.http=RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n))?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){let n=e.slice(t);return(r.re.no_http||(r.re.no_http=RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){let n=e.slice(t);return(r.re.mailto||(r.re.mailto=RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n))?n.match(r.re.mailto)[0].length:0}}},t4="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",t6="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function t8(e){e.__index__=-1,e.__text_cache__=""}function t9(e){return function(t,r){let n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function t7(){return function(e,t){t.normalize(e)}}function re(e){let t=e.re=tK(e.__opts__),r=e.__tlds__.slice();function n(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(t4),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");let i=[];function s(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){let r=e.__schemas__[t];if(null===r)return;let n={validate:null,link:null};if(e.__compiled__[t]=n,tY(r)){tQ(r.validate)?n.validate=t9(r.validate):t0(r.validate)?n.validate=r.validate:s(t,r),t0(r.normalize)?n.normalize=r.normalize:r.normalize?s(t,r):n.normalize=t7();return}tX(r)?i.push(t):s(t,r)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:t7()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(t1).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),t8(e)}function rt(e,t){let r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=i,this.text=i,this.url=i}function rr(e,t){let r=new rt(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function rn(e,t){if(!(this instanceof rn))return new rn(e,t);!t&&t3(e)&&(t=e,e={}),this.__opts__=tG({},t2,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=tG({},t5,e),this.__compiled__={},this.__tlds__=t6,this.__tlds_replaced__=!1,this.re={},re(this)}rn.prototype.add=function(e,t){return this.__schemas__[e]=t,re(this),this},rn.prototype.set=function(e){return this.__opts__=tG(this.__opts__,e),this},rn.prototype.test=function(e){let t,r,n,i,s,o,l,a;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((l=this.re.schema_search).lastIndex=0;null!==(t=l.exec(e));)if(i=this.testSchemaAt(e,t[2],l.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||a<this.__index__)&&null!==(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(n=e.match(this.re.email_fuzzy))&&(s=n.index+n[1].length,o=n.index+n[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=o)),this.__index__>=0},rn.prototype.pretest=function(e){return this.re.pretest.test(e)},rn.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},rn.prototype.match=function(e){let t=[],r=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(rr(this,r)),r=this.__last_index__);let n=r?e.slice(r):e;for(;this.test(n);)t.push(rr(this,r)),n=n.slice(this.__last_index__),r+=this.__last_index__;return t.length?t:null},rn.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,rr(this,0)):null},rn.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,r){return e!==r[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),re(this),this},rn.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},rn.prototype.onCompile=function(){};let ri=rn,rs=0x7fffffff,ro=36,rl=1,ra=26,ru=38,rc=700,rh=72,rd=128,rp="-",rf=/^xn--/,rm=/[^\0-\x7F]/,rg=/[\x2E\u3002\uFF0E\uFF61]/g,r_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ry=35,rk=Math.floor,rb=String.fromCharCode;function rw(e){throw RangeError(r_[e])}function rx(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r}function rv(e,t){let r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+rx((e=e.replace(rg,".")).split("."),t).join(".")}function rC(e){let t=[],r=0,n=e.length;for(;r<n;){let i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){let n=e.charCodeAt(r++);(64512&n)==56320?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}let rA=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:ro},rE=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},rS=function(e,t,r){let n=0;for(e=r?rk(e/rc):e>>1,e+=rk(e/t);e>ry*ra>>1;n+=ro)e=rk(e/ry);return rk(n+(ry+1)*e/(e+ru))},rM=function(e){let t=[],r=e.length,n=0,i=rd,s=rh,o=e.lastIndexOf(rp);o<0&&(o=0);for(let r=0;r<o;++r)e.charCodeAt(r)>=128&&rw("not-basic"),t.push(e.charCodeAt(r));for(let l=o>0?o+1:0;l<r;){let o=n;for(let t=1,i=ro;;i+=ro){l>=r&&rw("invalid-input");let o=rA(e.charCodeAt(l++));o>=ro&&rw("invalid-input"),o>rk((rs-n)/t)&&rw("overflow"),n+=o*t;let a=i<=s?rl:i>=s+ra?ra:i-s;if(o<a)break;let u=ro-a;t>rk(rs/u)&&rw("overflow"),t*=u}let a=t.length+1;s=rS(n-o,a,0==o),rk(n/a)>rs-i&&rw("overflow"),i+=rk(n/a),n%=a,t.splice(n++,0,i)}return String.fromCodePoint(...t)},rT=function(e){let t=[],r=(e=rC(e)).length,n=rd,i=0,s=rh;for(let r of e)r<128&&t.push(rb(r));let o=t.length,l=o;for(o&&t.push(rp);l<r;){let r=rs;for(let t of e)t>=n&&t<r&&(r=t);let a=l+1;for(let u of(r-n>rk((rs-i)/a)&&rw("overflow"),i+=(r-n)*a,n=r,e))if(u<n&&++i>rs&&rw("overflow"),u===n){let e=i;for(let r=ro;;r+=ro){let n=r<=s?rl:r>=s+ra?ra:r-s;if(e<n)break;let i=e-n,o=ro-n;t.push(rb(rE(n+i%o,0))),e=rk(i/o)}t.push(rb(rE(e,0))),s=rS(i,a,l===o),i=0,++l}++i,++n}return t.join("")},rD=function(e){return rv(e,function(e){return rm.test(e)?"xn--"+rT(e):e})},rF=function(e){return rv(e,function(e){return rf.test(e)?rM(e.slice(4).toLowerCase()):e})},rI={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},rL=/^(vbscript|javascript|file|data):/,rN=/^data:image\/(gif|png|jpeg|webp);/;function rR(e){let t=e.trim().toLowerCase();return!rL.test(t)||rN.test(t)}let rO=["http:","https:","mailto:"];function rz(e){let t=z(e,!0);if(t.hostname&&(!t.protocol||rO.indexOf(t.protocol)>=0))try{t.hostname=rD(t.hostname)}catch(e){}return v(C(t))}function rP(e){let t=z(e,!0);if(t.hostname&&(!t.protocol||rO.indexOf(t.protocol)>=0))try{t.hostname=rF(t.hostname)}catch(e){}return k(C(t),k.defaultChars+"%")}function r$(e,t){if(!(this instanceof r$))return new r$(e,t);t||ea(e)||(t=e||{},e="default"),this.inline=new tJ,this.block=new tA,this.core=new tt,this.renderer=new eB,this.linkify=new ri,this.validateLink=rR,this.normalizeLink=rz,this.normalizeLinkText=rP,this.utils=d,this.helpers=eh({},p),this.options={},this.configure(e),t&&this.set(t)}r$.prototype.set=function(e){return eh(this.options,e),this},r$.prototype.configure=function(e){let t=this;if(ea(e)){let t=e;if(!(e=rI[t]))throw Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this},r$.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));let n=e.filter(function(e){return 0>r.indexOf(e)});if(n.length&&!t)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},r$.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));let n=e.filter(function(e){return 0>r.indexOf(e)});if(n.length&&!t)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},r$.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},r$.prototype.parse=function(e,t){if("string"!=typeof e)throw Error("Input data should be a String");let r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},r$.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},r$.prototype.parseInline=function(e,t){let r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},r$.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};let rB=r$,rq=new m.Sj({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>["p",0]},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["div",["hr"]]},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>({params:e.getAttribute("data-params")||""})}],toDOM:e=>["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ol",{start:1==e.attrs.order?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>({tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ul",{"data-tight":e.attrs.tight?"true":null},0]},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM:e=>["img",e.attrs]},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>"em"==e.type.name}],toDOM:()=>["em"]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>["strong"]},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM:e=>["a",e.attrs]},code:{code:!0,parseDOM:[{tag:"code"}],toDOM:()=>["code"]}}});function rj(e,t){if(e.isText&&t.isText&&m.CU.sameSet(e.marks,t.marks))return e.withText(e.text+t.text)}class rH{constructor(e,t){this.schema=e,this.tokenHandlers=t,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:m.CU.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;let t=this.top(),r=t.content,n=r[r.length-1],i=this.schema.text(e,t.marks),s;n&&(s=rj(n,i))?r[r.length-1]=s:r.push(i)}openMark(e){let t=this.top();t.marks=e.addToSet(t.marks)}closeMark(e){let t=this.top();t.marks=e.removeFromSet(t.marks)}parseTokens(e){for(let t=0;t<e.length;t++){let r=e[t],n=this.tokenHandlers[r.type];if(!n)throw Error("Token type `"+r.type+"` not supported by Markdown parser");n(this,r,e,t)}}addNode(e,t,r){let n=this.top(),i=e.createAndFill(t,r,n?n.marks:[]);return i?(this.push(i),i):null}openNode(e,t){this.stack.push({type:e,attrs:t,content:[],marks:m.CU.none})}closeNode(){let e=this.stack.pop();return this.addNode(e.type,e.attrs,e.content)}}function rU(e,t,r,n){return e.getAttrs?e.getAttrs(t,r,n):e.attrs instanceof Function?e.attrs(t):e.attrs}function rV(e,t){return e.noCloseToken||"code_inline"==t||"code_block"==t||"fence"==t}function rW(e){return"\n"==e[e.length-1]?e.slice(0,e.length-1):e}function rJ(){}function rK(e,t){let r=Object.create(null);for(let n in t){let i=t[n];if(i.block){let t=e.nodeType(i.block);rV(i,n)?r[n]=(e,r,n,s)=>{e.openNode(t,rU(i,r,n,s)),e.addText(rW(r.content)),e.closeNode()}:(r[n+"_open"]=(e,r,n,s)=>e.openNode(t,rU(i,r,n,s)),r[n+"_close"]=e=>e.closeNode())}else if(i.node){let t=e.nodeType(i.node);r[n]=(e,r,n,s)=>e.addNode(t,rU(i,r,n,s))}else if(i.mark){let t=e.marks[i.mark];rV(i,n)?r[n]=(e,r,n,s)=>{e.openMark(t.create(rU(i,r,n,s))),e.addText(rW(r.content)),e.closeMark(t)}:(r[n+"_open"]=(e,r,n,s)=>e.openMark(t.create(rU(i,r,n,s))),r[n+"_close"]=e=>e.closeMark(t))}else if(i.ignore)rV(i,n)?r[n]=rJ:(r[n+"_open"]=rJ,r[n+"_close"]=rJ);else throw RangeError("Unrecognized parsing spec "+JSON.stringify(i))}return r.text=(e,t)=>e.addText(t.content),r.inline=(e,t)=>e.parseTokens(t.children),r.softbreak=r.softbreak||(e=>e.addText(" ")),r}class rG{constructor(e,t,r){this.schema=e,this.tokenizer=t,this.tokens=r,this.tokenHandlers=rK(e,r)}parse(e,t={}){let r=new rH(this.schema,this.tokenHandlers),n;r.parseTokens(this.tokenizer.parse(e,t));do n=r.closeNode();while(r.stack.length);return n||this.schema.topNodeType.createAndFill()}}function rZ(e,t){for(;++t<e.length;)if("list_item_open"!=e[t].type)return e[t].hidden;return!1}new rG(rq,rB("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(e,t,r)=>({tight:rZ(t,r)})},ordered_list:{block:"ordered_list",getAttrs:(e,t,r)=>({order:+e.attrGet("start")||1,tight:rZ(t,r)})},heading:{block:"heading",getAttrs:e=>({level:+e.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:e=>({params:e.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:e=>({src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:e=>({href:e.attrGet("href"),title:e.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}});let rX={open:"",close:"",mixable:!0};class rY{constructor(e,t,r={}){this.nodes=e,this.marks=t,this.options=r}serialize(e,t={}){t=Object.assign({},this.options,t);let r=new r2(this.nodes,this.marks,t);return r.renderContent(e),r.out}}let rQ=new rY({blockquote(e,t){e.wrapBlock("> ",null,t,()=>e.renderContent(t))},code_block(e,t){let r=t.textContent.match(/`{3,}/gm),n=r?r.sort().slice(-1)[0]+"`":"```";e.write(n+(t.attrs.params||"")+"\n"),e.text(t.textContent,!1),e.write("\n"),e.write(n),e.closeBlock(t)},heading(e,t){e.write(e.repeat("#",t.attrs.level)+" "),e.renderInline(t,!1),e.closeBlock(t)},horizontal_rule(e,t){e.write(t.attrs.markup||"---"),e.closeBlock(t)},bullet_list(e,t){e.renderList(t," ",()=>(t.attrs.bullet||"*")+" ")},ordered_list(e,t){let r=t.attrs.order||1,n=String(r+t.childCount-1).length,i=e.repeat(" ",n+2);e.renderList(t,i,t=>{let i=String(r+t);return e.repeat(" ",n-i.length)+i+". "})},list_item(e,t){e.renderContent(t)},paragraph(e,t){e.renderInline(t),e.closeBlock(t)},image(e,t){e.write("]/g,"\\$&")+(t.attrs.title?' "'+t.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(e,t,r,n){for(let i=n+1;i<r.childCount;i++)if(r.child(i).type!=t.type)return void e.write("\\\n")},text(e,t){e.text(t.text,!e.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open:(e,t,r,n)=>(e.inAutolink=r1(t,r,n),e.inAutolink?"<":"["),close(e,t,r,n){let{inAutolink:i}=e;return e.inAutolink=void 0,i?">":"]("+t.attrs.href.replace(/[\(\)"]/g,"\\$&")+(t.attrs.title?` "${t.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open:(e,t,r,n)=>r0(r.child(n),-1),close:(e,t,r,n)=>r0(r.child(n-1),1),escape:!1}});function r0(e,t){let r=/`+/g,n,i=0;if(e.isText)for(;n=r.exec(e.text);)i=Math.max(i,n[0].length);let s=i>0&&t>0?" `":"`";for(let e=0;e<i;e++)s+="`";return i>0&&t<0&&(s+=" "),s}function r1(e,t,r){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1;let n=t.child(r);return!!n.isText&&n.text==e.attrs.href&&n.marks[n.marks.length-1]==e&&(r==t.childCount-1||!e.isInSet(t.child(r+1).marks))}class r2{constructor(e,t,r){this.nodes=e,this.marks=t,this.options=r,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,void 0===this.options.tightLists&&(this.options.tightLists=!1),void 0===this.options.hardBreakNodeName&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+="\n"),e>1){let t=this.delim,r=/\s+$/.exec(t);r&&(t=t.slice(0,t.length-r[0].length));for(let r=1;r<e;r++)this.out+=t+"\n"}this.closed=null}}getMark(e){let t=this.marks[e];if(!t){if(!1!==this.options.strict)throw Error(`Mark type \`${e}\` not supported by Markdown renderer`);t=rX}return t}wrapBlock(e,t,r,n){let i=this.delim;this.write(null!=t?t:e),this.delim+=e,n(),this.delim=i,this.closeBlock(r)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+="\n")}write(e){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,t=!0){let r=e.split("\n");for(let e=0;e<r.length;e++)this.write(),!t&&"["==r[e][0]&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=t?this.esc(r[e],this.atBlockStart):r[e],e!=r.length-1&&(this.out+="\n")}render(e,t,r){if(this.nodes[e.type.name])this.nodes[e.type.name](this,e,t,r);else if(!1!==this.options.strict)throw Error("Token type `"+e.type.name+"` not supported by Markdown renderer");else!e.type.isLeaf&&(e.type.inlineContent?this.renderInline(e):this.renderContent(e),e.isBlock&&this.closeBlock(e))}renderContent(e){e.forEach((t,r,n)=>this.render(t,e,n))}renderInline(e,t=!0){this.atBlockStart=t;let r=[],n="",i=(t,i,s)=>{let o=t?t.marks:[];t&&t.type.name===this.options.hardBreakNodeName&&(o=o.filter(t=>{if(s+1==e.childCount)return!1;let r=e.child(s+1);return t.isInSet(r.marks)&&(!r.isText||/\S/.test(r.text))}));let l=n;if(n="",t&&t.isText&&o.some(e=>{let t=this.getMark(e.type.name);return t&&t.expelEnclosingWhitespace&&!e.isInSet(r)})){let[e,n,i]=/^(\s*)(.*)$/m.exec(t.text);n&&(l+=n,(t=i?t.withText(i):null)||(o=r))}if(t&&t.isText&&o.some(t=>{let r=this.getMark(t.type.name);return r&&r.expelEnclosingWhitespace&&!this.isMarkAhead(e,s+1,t)})){let[e,i,s]=/^(.*?)(\s*)$/m.exec(t.text);s&&(n=s,(t=i?t.withText(i):null)||(o=r))}let a=o.length?o[o.length-1]:null,u=a&&!1===this.getMark(a.type.name).escape,c=o.length-!!u;e:for(let e=0;e<c;e++){let t=o[e];if(!this.getMark(t.type.name).mixable)break;for(let n=0;n<r.length;n++){let i=r[n];if(!this.getMark(i.type.name).mixable)break;if(t.eq(i)){e>n?o=o.slice(0,n).concat(t).concat(o.slice(n,e)).concat(o.slice(e+1,c)):n>e&&(o=o.slice(0,e).concat(o.slice(e+1,n)).concat(t).concat(o.slice(n,c)));continue e}}}let h=0;for(;h<Math.min(r.length,c)&&o[h].eq(r[h]);)++h;for(;h<r.length;)this.text(this.markString(r.pop(),!1,e,s),!1);if(l&&this.text(l),t){for(;r.length<c;){let t=o[r.length];r.push(t),this.text(this.markString(t,!0,e,s),!1),this.atBlockStart=!1}u&&t.isText?this.text(this.markString(a,!0,e,s)+t.text+this.markString(a,!1,e,s+1),!1):this.render(t,e,s),this.atBlockStart=!1}(null==t?void 0:t.isText)&&t.nodeSize>0&&(this.atBlockStart=!1)};e.forEach(i),i(null,0,e.childCount),this.atBlockStart=!1}renderList(e,t,r){this.closed&&this.closed.type==e.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let n=void 0!==e.attrs.tight?e.attrs.tight:this.options.tightLists,i=this.inTightList;this.inTightList=n,e.forEach((i,s,o)=>{o&&n&&this.flushClose(1),this.wrapBlock(t,r(o),e,()=>this.render(i,e,o))}),this.inTightList=i}esc(e,t=!1){return e=e.replace(/[`*\\~\[\]_]/g,(t,r)=>"_"==t&&r>0&&r+1<e.length&&e[r-1].match(/\w/)&&e[r+1].match(/\w/)?t:"\\"+t),t&&(e=e.replace(/^(\+[ ]|[\-*>])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(e=e.replace(this.options.escapeExtraCharacters,"\\$&")),e}quote(e){let t=-1==e.indexOf('"')?'""':-1==e.indexOf("'")?"''":"()";return t[0]+e+t[1]}repeat(e,t){let r="";for(let n=0;n<t;n++)r+=e;return r}markString(e,t,r,n){let i=this.getMark(e.type.name),s=t?i.open:i.close;return"string"==typeof s?s:s(this,e,r,n)}getEnclosingWhitespace(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}isMarkAhead(e,t,r){for(;;t++){if(t>=e.childCount)return!1;let n=e.child(t);if(n.type.name!=this.options.hardBreakNodeName)return r.isInSet(n.marks);t++}}}var r3=r(65915),r5=r(76865),r4=Object.defineProperty,r6=(e,t,r)=>t in e?r4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,r8=(e,t,r)=>(r6(e,"symbol"!=typeof t?t+"":t,r),r);let r9=f.YY.create({name:"markdownTightLists",addOptions:()=>({tight:!0,tightClass:"tight",listTypes:["bulletList","orderedList"]}),addGlobalAttributes(){return[{types:this.options.listTypes,attributes:{tight:{default:this.options.tight,parseHTML:e=>"true"===e.getAttribute("data-tight")||!e.querySelector("p"),renderHTML:e=>({class:e.tight?this.options.tightClass:null,"data-tight":e.tight?"true":null})}}}]},addCommands(){var e=this;return{toggleTight:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return r=>{let{editor:n,commands:i}=r;function s(e){if(!n.isActive(e))return!1;let r=n.getAttributes(e);return i.updateAttributes(e,{tight:null!=t?t:!(null!=r&&r.tight)})}return e.options.listTypes.some(e=>s(e))}}}}}),r7=rB();function ne(e,t){return r7.inline.State.prototype.scanDelims.call({src:e,posMax:e.length}),new r7.inline.State(e,null,null,[]).scanDelims(t,!0)}function nt(e,t,r,n){let i=e.substring(0,r)+e.substring(r+t.length);return i.substring(0,r+n)+t+i.substring(r+n)}function nr(e,t,r,n){let i=r,s=e;for(;i<n&&!ne(s,i).can_open;)s=nt(s,t,i,1),i++;return{text:s,from:i,to:n}}function nn(e,t,r,n){let i=n,s=e;for(;i>r&&!ne(s,i).can_close;)s=nt(s,t,i,-1),i--;return{text:s,from:r,to:i}}function ni(e,t,r,n){let i={text:e,from:r,to:n};return(i=nn((i=nr(i.text,t,i.from,i.to)).text,t,i.from,i.to)).to-i.from<t.length+1&&(i.text=i.text.substring(0,i.from)+i.text.substring(i.to+t.length)),i.text}class ns extends r2{constructor(e,t,r){super(e,t,null!=r?r:{}),r8(this,"inTable",!1),this.inlines=[]}render(e,t,r){super.render(e,t,r);let n=this.inlines[this.inlines.length-1];if(null!=n&&n.start&&null!=n&&n.end){let{delimiter:e,start:t,end:r}=this.normalizeInline(n);this.out=ni(this.out,e,t,r),this.inlines.pop()}}markString(e,t,r,n){let i=this.marks[e.type.name];if(i.expelEnclosingWhitespace)if(t)this.inlines.push({start:this.out.length,delimiter:i.open});else{let e=this.inlines.pop();this.inlines.push({...e,end:this.out.length})}return super.markString(e,t,r,n)}normalizeInline(e){let{start:t,end:r}=e;for(;this.out.charAt(t).match(/\s/);)t++;return{...e,start:t}}}let no=f.CU.create({name:"markdownHTMLMark",addStorage:()=>({markdown:{serialize:{open(e,t){var r,n;return this.editor.storage.markdown.options.html?null!=(r=null==(n=nl(t))?void 0:n[0])?r:"":(console.warn(`Tiptap Markdown: "${t.type.name}" mark is only available in html mode`),"")},close(e,t){var r,n;return this.editor.storage.markdown.options.html&&null!=(r=null==(n=nl(t))?void 0:n[1])?r:""}},parse:{}}})});function nl(e){let t=e.type.schema,r=t.text(" ",[e]),n=(0,f.su)(m.FK.from(r),t).match(/^(<.*?>) (<\/.*?>)$/);return n?[n[1],n[2]]:null}function na(e){let t=`<body>${e}</body>`;return new window.DOMParser().parseFromString(t,"text/html").body}function nu(e){return null==e?void 0:e.replace(/</g,"<").replace(/>/g,">")}function nc(e){let t=e.parentElement,r=t.cloneNode();for(;t.firstChild&&t.firstChild!==e;)r.appendChild(t.firstChild);r.childNodes.length>0&&t.parentElement.insertBefore(r,t),t.parentElement.insertBefore(e,t),0===t.childNodes.length&&t.remove()}function nh(e){let t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}let nd=f.bP.create({name:"markdownHTMLNode",addStorage:()=>({markdown:{serialize(e,t,r){this.editor.storage.markdown.options.html?e.write(np(t,r)):(console.warn(`Tiptap Markdown: "${t.type.name}" node is only available in html mode`),e.write(`[${t.type.name}]`)),t.isBlock&&e.closeBlock(t)},parse:{}}})});function np(e,t){let r=e.type.schema,n=(0,f.su)(m.FK.from(e),r);return e.isBlock&&(t instanceof m.FK||t.type.name===r.topNodeType.name)?nf(n):n}function nf(e){let t=na(e).firstElementChild;return t.innerHTML=t.innerHTML.trim()?`
|
|
9
|
+
`},ej.image=function(e,t,r,n,i){let s=e[t];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,r,n),i.renderToken(e,t,r)},ej.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},ej.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},ej.text=function(e,t){return eS(e[t].content)},ej.html_block=function(e,t){return e[t].content},ej.html_inline=function(e,t){return e[t].content},eH.prototype.renderAttrs=function(e){let t,r,n;if(!e.attrs)return"";for(t=0,n="",r=e.attrs.length;t<r;t++)n+=" "+eS(e.attrs[t][0])+'="'+eS(e.attrs[t][1])+'"';return n},eH.prototype.renderToken=function(e,t,r){let n=e[t],i="";if(n.hidden)return"";n.block&&-1!==n.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===n.nesting?"</":"<")+n.tag,i+=this.renderAttrs(n),0===n.nesting&&r.xhtmlOut&&(i+=" /");let s=!1;if(n.block&&(s=!0,1===n.nesting&&t+1<e.length)){let r=e[t+1];"inline"===r.type||r.hidden?s=!1:-1===r.nesting&&r.tag===n.tag&&(s=!1)}return i+(s?">\n":">")},eH.prototype.renderInline=function(e,t,r){let n="",i=this.rules;for(let s=0,o=e.length;s<o;s++){let o=e[s].type;void 0!==i[o]?n+=i[o](e,s,t,r,this):n+=this.renderToken(e,s,t)}return n},eH.prototype.renderInlineAsText=function(e,t,r){let n="";for(let i=0,s=e.length;i<s;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":n+=e[i].content;break;case"image":n+=this.renderInlineAsText(e[i].children,t,r);break;case"softbreak":case"hardbreak":n+="\n"}return n},eH.prototype.render=function(e,t,r){let n="",i=this.rules;for(let s=0,o=e.length;s<o;s++){let o=e[s].type;"inline"===o?n+=this.renderInline(e[s].children,t,r):void 0!==i[o]?n+=i[o](e,s,t,r,this):n+=this.renderToken(e,s,t,r)}return n};let eU=eH;function eV(){this.__rules__=[],this.__cache__=null}eV.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return -1},eV.prototype.__compile__=function(){let e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(r){!r.enabled||t&&0>r.alt.indexOf(t)||e.__cache__[t].push(r.fn)})})},eV.prototype.at=function(e,t,r){let n=this.__find__(e),i=r||{};if(-1===n)throw Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=i.alt||[],this.__cache__=null},eV.prototype.before=function(e,t,r,n){let i=this.__find__(e),s=n||{};if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null},eV.prototype.after=function(e,t,r,n){let i=this.__find__(e),s=n||{};if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null},eV.prototype.push=function(e,t,r){let n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null},eV.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(e){let n=this.__find__(e);if(n<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,r.push(e)},this),this.__cache__=null,r},eV.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},eV.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(e){let n=this.__find__(e);if(n<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,r.push(e)},this),this.__cache__=null,r},eV.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};let eW=eV;function eJ(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}eJ.prototype.attrIndex=function(e){if(!this.attrs)return -1;let t=this.attrs;for(let r=0,n=t.length;r<n;r++)if(t[r][0]===e)return r;return -1},eJ.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},eJ.prototype.attrSet=function(e,t){let r=this.attrIndex(e),n=[e,t];r<0?this.attrPush(n):this.attrs[r]=n},eJ.prototype.attrGet=function(e){let t=this.attrIndex(e),r=null;return t>=0&&(r=this.attrs[t][1]),r},eJ.prototype.attrJoin=function(e,t){let r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t};let eK=eJ;function eG(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}eG.prototype.Token=eK;let eZ=eG,eX=/\r\n?|\n/g,eY=/\0/g;function eQ(e){return/^<a[>\s]/i.test(e)}function e0(e){return/^<\/a\s*>/i.test(e)}let e1=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,e2=/\((c|tm|r)\)/i,e3=/\((c|tm|r)\)/ig,e5={c:"\xa9",r:"\xae",tm:"™"};function e4(e,t){return e5[t.toLowerCase()]}function e6(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"!==n.type||t||(n.content=n.content.replace(e3,e4)),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}function e8(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"===n.type&&!t&&e1.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}let e9=/['"]/,e7=/['"]/g,te="’";function tt(e,t,r,n){e[t]||(e[t]=[]),e[t].push({pos:r,ch:n})}function tr(e,t){let r="",n=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let s=t[i];r+=e.slice(n,s.pos)+s.ch,n=s.pos+1}return r+e.slice(n)}function tn(e,t){let r,n=[],i={};for(let s=0;s<e.length;s++){let o=e[s],l=e[s].level;for(r=n.length-1;r>=0&&!(n[r].level<=l);r--);if(n.length=r+1,"text"!==o.type)continue;let a=o.content,u=0,c=a.length;r:for(;u<c;){e7.lastIndex=u;let o=e7.exec(a);if(!o)break;let h=!0,d=!0;u=o.index+1;let p="'"===o[0],f=32;if(o.index-1>=0)f=a.charCodeAt(o.index-1);else for(r=s-1;r>=0&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r--)if(e[r].content){f=e[r].content.charCodeAt(e[r].content.length-1);break}let m=32;if(u<c)m=a.charCodeAt(u);else for(r=s+1;r<e.length&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r++)if(e[r].content){m=e[r].content.charCodeAt(0);break}let g=eR(f)||eL(f),_=eR(m)||eL(m),y=eF(f),k=eF(m);if(k?h=!1:_&&!(y||g)&&(h=!1),y?d=!1:g&&!(k||_)&&(d=!1),34===m&&'"'===o[0]&&f>=48&&f<=57&&(d=h=!1),h&&d&&(h=g,d=_),!h&&!d){p&&tt(i,s,o.index,te);continue}if(d)for(r=n.length-1;r>=0;r--){let e=n[r];if(n[r].level<l)break;if(e.single===p&&n[r].level===l){let l,a;e=n[r],p?(l=t.md.options.quotes[2],a=t.md.options.quotes[3]):(l=t.md.options.quotes[0],a=t.md.options.quotes[1]),tt(i,s,o.index,a),tt(i,e.token,e.pos,l),n.length=r;continue r}}h?n.push({token:s,pos:o.index,single:p,level:l}):d&&p&&tt(i,s,o.index,te)}}Object.keys(i).forEach(function(t){e[t].content=tr(e[t].content,i[t])})}let ti=[["normalize",function(e){let t;t=(t=e.src.replace(eX,"\n")).replace(eY,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){let t=e.tokens;for(let r=0,n=t.length;r<n;r++){let n=t[r];"inline"===n.type&&e.md.inline.parse(n.content,e.md,e.env,n.children)}}],["linkify",function(e){let t=e.tokens;if(e.md.options.linkify)for(let r=0,n=t.length;r<n;r++){if("inline"!==t[r].type||!e.md.linkify.pretest(t[r].content))continue;let n=t[r].children,i=0;for(let s=n.length-1;s>=0;s--){let o=n[s];if("link_close"===o.type){for(s--;n[s].level!==o.level&&"link_open"!==n[s].type;)s--;continue}if("html_inline"===o.type&&(eQ(o.content)&&i>0&&i--,e0(o.content)&&i++),!(i>0)&&"text"===o.type&&e.md.linkify.test(o.content)){let i=o.content,l=e.md.linkify.match(i),a=[],u=o.level,c=0;l.length>0&&0===l[0].index&&s>0&&"text_special"===n[s-1].type&&(l=l.slice(1));for(let t=0;t<l.length;t++){let r=l[t].url,n=e.md.normalizeLink(r);if(!e.md.validateLink(n))continue;let s=l[t].text;s=l[t].schema?"mailto:"!==l[t].schema||/^mailto:/i.test(s)?e.md.normalizeLinkText(s):e.md.normalizeLinkText("mailto:"+s).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+s).replace(/^http:\/\//,"");let o=l[t].index;if(o>c){let t=new e.Token("text","",0);t.content=i.slice(c,o),t.level=u,a.push(t)}let h=new e.Token("link_open","a",1);h.attrs=[["href",n]],h.level=u++,h.markup="linkify",h.info="auto",a.push(h);let d=new e.Token("text","",0);d.content=s,d.level=u,a.push(d);let p=new e.Token("link_close","a",-1);p.level=--u,p.markup="linkify",p.info="auto",a.push(p),c=l[t].lastIndex}if(c<i.length){let t=new e.Token("text","",0);t.content=i.slice(c),t.level=u,a.push(t)}t[r].children=n=ep(n,s,a)}}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(e2.test(e.tokens[t].content)&&e6(e.tokens[t].children),e1.test(e.tokens[t].content)&&e8(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&e9.test(e.tokens[t].content)&&tn(e.tokens[t].children,e)}],["text_join",function(e){let t,r,n=e.tokens,i=n.length;for(let e=0;e<i;e++){if("inline"!==n[e].type)continue;let i=n[e].children,s=i.length;for(t=0;t<s;t++)"text_special"===i[t].type&&(i[t].type="text");for(t=r=0;t<s;t++)"text"===i[t].type&&t+1<s&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}}]];function ts(){this.ruler=new eW;for(let e=0;e<ti.length;e++)this.ruler.push(ti[e][0],ti[e][1])}ts.prototype.process=function(e){let t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)},ts.prototype.State=eZ;let to=ts;function tl(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let i=this.src;for(let e=0,t=0,r=0,n=0,s=i.length,o=!1;t<s;t++){let l=i.charCodeAt(t);if(!o)if(eD(l)){r++,9===l?n+=4-n%4:n++;continue}else o=!0;(10===l||t===s-1)&&(10!==l&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),o=!1,r=0,n=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}tl.prototype.push=function(e,t,r){let n=new eK(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},tl.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},tl.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},tl.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&eD(this.src.charCodeAt(e));e++);return e},tl.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!eD(this.src.charCodeAt(--e)))return e+1;return e},tl.prototype.skipChars=function(e,t){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e},tl.prototype.skipCharsBack=function(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e},tl.prototype.getLines=function(e,t,r,n){if(e>=t)return"";let i=Array(t-e);for(let s=0,o=e;o<t;o++,s++){let e,l=0,a=this.bMarks[o],u=a;for(e=o+1<t||n?this.eMarks[o]+1:this.eMarks[o];u<e&&l<r;){let e=this.src.charCodeAt(u);if(eD(e))9===e?l+=4-(l+this.bsCount[o])%4:l++;else if(u-a<this.tShift[o])l++;else break;u++}l>r?i[s]=Array(l-r+1).join(" ")+this.src.slice(u,e):i[s]=this.src.slice(u,e)}return i.join("")},tl.prototype.Token=eK;let ta=tl,tu=65536;function tc(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function th(e){let t=[],r=e.length,n=0,i=e.charCodeAt(n),s=!1,o=0,l="";for(;n<r;)124===i&&(s?(l+=e.substring(o,n-1),o=n):(t.push(l+e.substring(o,n)),l="",o=n+1)),s=92===i,n++,i=e.charCodeAt(n);return t.push(l+e.substring(o)),t}function td(e,t,r,n){let i;if(t+2>r)return!1;let s=t+1;if(e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)return!1;let o=e.bMarks[s]+e.tShift[s];if(o>=e.eMarks[s])return!1;let l=e.src.charCodeAt(o++);if(124!==l&&45!==l&&58!==l||o>=e.eMarks[s])return!1;let a=e.src.charCodeAt(o++);if(124!==a&&45!==a&&58!==a&&!eD(a)||45===l&&eD(a))return!1;for(;o<e.eMarks[s];){let t=e.src.charCodeAt(o);if(124!==t&&45!==t&&58!==t&&!eD(t))return!1;o++}let u=tc(e,t+1),c=u.split("|"),h=[];for(let e=0;e<c.length;e++){let t=c[e].trim();if(!t)if(0===e||e===c.length-1)continue;else return!1;if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?h.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?h.push("left"):h.push("")}if(-1===(u=tc(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4)return!1;(c=th(u)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();let d=c.length;if(0===d||d!==h.length)return!1;if(n)return!0;let p=e.parentType;e.parentType="table";let f=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){let r=e.push("th_open","th",1);h[t]&&(r.attrs=[["style","text-align:"+h[t]]]);let n=e.push("inline","",0);n.content=c[t].trim(),n.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let _=0;for(s=t+2;s<r&&!(e.sCount[s]<e.blkIndent);s++){let n=!1;for(let t=0,i=f.length;t<i;t++)if(f[t](e,s,r,!0)){n=!0;break}if(n||!(u=tc(e,s).trim())||e.sCount[s]-e.blkIndent>=4||((c=th(u)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),(_+=d-c.length)>tu))break;s===t+2&&(e.push("tbody_open","tbody",1).map=i=[t+2,0]),e.push("tr_open","tr",1).map=[s,s+1];for(let t=0;t<d;t++){let r=e.push("td_open","td",1);h[t]&&(r.attrs=[["style","text-align:"+h[t]]]);let n=e.push("inline","",0);n.content=c[t]?c[t].trim():"",n.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return i&&(e.push("tbody_close","tbody",-1),i[1]=s),e.push("table_close","table",-1),g[1]=s,e.parentType=p,e.line=s,!0}function tp(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,i=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){i=++n;continue}break}e.line=i;let s=e.push("code_block","code",0);return s.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",s.map=[t,e.line],!0}function tf(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>s)return!1;let o=e.src.charCodeAt(i);if(126!==o&&96!==o)return!1;let l=i,a=(i=e.skipChars(i,o))-l;if(a<3)return!1;let u=e.src.slice(l,i),c=e.src.slice(i,s);if(96===o&&c.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let h=t,d=!1;for(;!(++h>=r)&&(!((i=l=e.bMarks[h]+e.tShift[h])<(s=e.eMarks[h]))||!(e.sCount[h]<e.blkIndent));){;if(!(e.src.charCodeAt(i)!==o||e.sCount[h]-e.blkIndent>=4||(i=e.skipChars(i,o))-l<a)&&!((i=e.skipSpaces(i))<s)){d=!0;break}}a=e.sCount[t],e.line=h+ +!!d;let p=e.push("fence","code",0);return p.info=c,p.content=e.getLines(t+1,h,a,!0),p.markup=u,p.map=[t,e.line],!0}function tm(e,t,r,n){let i,s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],l=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(s))return!1;if(n)return!0;let a=[],u=[],c=[],h=[],d=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let f=!1;for(i=t;i<r;i++){let t=e.sCount[i]<e.blkIndent;if((s=e.bMarks[i]+e.tShift[i])>=(o=e.eMarks[i]))break;if(62===e.src.charCodeAt(s++)&&!t){let t,r,n=e.sCount[i]+1;32===e.src.charCodeAt(s)?(s++,n++,r=!1,t=!0):9===e.src.charCodeAt(s)?(t=!0,(e.bsCount[i]+n)%4==3?(s++,n++,r=!1):r=!0):t=!1;let l=n;for(a.push(e.bMarks[i]),e.bMarks[i]=s;s<o;){let t=e.src.charCodeAt(s);if(eD(t))9===t?l+=4-(l+e.bsCount[i]+ +!!r)%4:l++;else break;s++}f=s>=o,u.push(e.bsCount[i]),e.bsCount[i]=e.sCount[i]+1+ +!!t,c.push(e.sCount[i]),e.sCount[i]=l-n,h.push(e.tShift[i]),e.tShift[i]=s-e.bMarks[i];continue}if(f)break;let n=!1;for(let t=0,s=d.length;t<s;t++)if(d[t](e,i,r,!0)){n=!0;break}if(n){e.lineMax=i,0!==e.blkIndent&&(a.push(e.bMarks[i]),u.push(e.bsCount[i]),h.push(e.tShift[i]),c.push(e.sCount[i]),e.sCount[i]-=e.blkIndent);break}a.push(e.bMarks[i]),u.push(e.bsCount[i]),h.push(e.tShift[i]),c.push(e.sCount[i]),e.sCount[i]=-1}let m=e.blkIndent;e.blkIndent=0;let g=e.push("blockquote_open","blockquote",1);g.markup=">";let _=[t,0];g.map=_,e.md.block.tokenize(e,t,i),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=l,e.parentType=p,_[1]=e.line;for(let r=0;r<h.length;r++)e.bMarks[r+t]=a[r],e.tShift[r+t]=h[r],e.sCount[r+t]=c[r],e.bsCount[r+t]=u[r];return e.blkIndent=m,!0}function tg(e,t,r,n){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(s++);if(42!==o&&45!==o&&95!==o)return!1;let l=1;for(;s<i;){let t=e.src.charCodeAt(s++);if(t!==o&&!eD(t))return!1;t===o&&l++}if(l<3)return!1;if(n)return!0;e.line=t+1;let a=e.push("hr","hr",0);return a.map=[t,e.line],a.markup=Array(l+1).join(String.fromCharCode(o)),!0}function t_(e,t){let r=e.eMarks[t],n=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(n++);return 42!==i&&45!==i&&43!==i||n<r&&!eD(e.src.charCodeAt(n))?-1:n}function ty(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t],i=r;if(i+1>=n)return -1;let s=e.src.charCodeAt(i++);if(s<48||s>57)return -1;for(;;){if(i>=n)return -1;if((s=e.src.charCodeAt(i++))>=48&&s<=57){if(i-r>=10)return -1;continue}if(41===s||46===s)break;return -1}return i<n&&!eD(s=e.src.charCodeAt(i))?-1:i}function tk(e,t){let r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function tb(e,t,r,n){let i,s,o,l,a,u,c,h=t,d=!0;if(e.sCount[h]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[h]-e.listIndent>=4&&e.sCount[h]<e.blkIndent)return!1;let p=!1;if(n&&"paragraph"===e.parentType&&e.sCount[h]>=e.blkIndent&&(p=!0),(c=ty(e,h))>=0){if(a=!0,o=e.bMarks[h]+e.tShift[h],u=Number(e.src.slice(o,c-1)),p&&1!==u)return!1}else{if(!((c=t_(e,h))>=0))return!1;a=!1}if(p&&e.skipSpaces(c)>=e.eMarks[h])return!1;if(n)return!0;let f=e.src.charCodeAt(c-1),m=e.tokens.length;a?(l=e.push("ordered_list_open","ol",1),1!==u&&(l.attrs=[["start",u]])):l=e.push("bullet_list_open","ul",1);let g=[h,0];l.map=g,l.markup=String.fromCharCode(f);let _=!1,y=e.md.block.ruler.getRules("list"),k=e.parentType;for(e.parentType="list";h<r;){let t;s=c,i=e.eMarks[h];let n=e.sCount[h]+c-(e.bMarks[h]+e.tShift[h]),u=n;for(;s<i;){let t=e.src.charCodeAt(s);if(9===t)u+=4-(u+e.bsCount[h])%4;else if(32===t)u++;else break;s++}let p=s;(t=p>=i?1:u-n)>4&&(t=1);let m=n+t;(l=e.push("list_item_open","li",1)).markup=String.fromCharCode(f);let g=[h,0];l.map=g,a&&(l.info=e.src.slice(o,c-1));let k=e.tight,b=e.tShift[h],w=e.sCount[h],x=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[h]=p-e.bMarks[h],e.sCount[h]=u,p>=i&&e.isEmpty(h+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,h,r,!0),(!e.tight||_)&&(d=!1),_=e.line-h>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[h]=b,e.sCount[h]=w,e.tight=k,(l=e.push("list_item_close","li",-1)).markup=String.fromCharCode(f),h=e.line,g[1]=h,h>=r||e.sCount[h]<e.blkIndent||e.sCount[h]-e.blkIndent>=4)break;let v=!1;for(let t=0,n=y.length;t<n;t++)if(y[t](e,h,r,!0)){v=!0;break}if(v)break;if(a){if((c=ty(e,h))<0)break;o=e.bMarks[h]+e.tShift[h]}else if((c=t_(e,h))<0)break;if(f!==e.src.charCodeAt(c-1))break}return(l=a?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(f),g[1]=h,e.line=h,e.parentType=k,d&&tk(e,m),!0}function tw(e,t,r,n){let i,s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],l=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(s))return!1;function a(t){let r=e.lineMax;if(t>=r||e.isEmpty(t))return null;let n=!1;if(e.sCount[t]-e.blkIndent>3&&(n=!0),e.sCount[t]<0&&(n=!0),!n){let n=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let s=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,t,r,!0)){s=!0;break}if(e.parentType=i,s)return null}let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return e.src.slice(i,s+1)}let u=e.src.slice(s,o+1);o=u.length;let c=-1;for(s=1;s<o;s++){let e=u.charCodeAt(s);if(91===e)return!1;if(93===e){c=s;break}if(10===e){let e=a(l);null!==e&&(u+=e,o=u.length,l++)}else if(92===e&&++s<o&&10===u.charCodeAt(s)){let e=a(l);null!==e&&(u+=e,o=u.length,l++)}}if(c<0||58!==u.charCodeAt(c+1))return!1;for(s=c+2;s<o;s++){let e=u.charCodeAt(s);if(10===e){let e=a(l);null!==e&&(u+=e,o=u.length,l++)}else if(eD(e));else break}let h=e.md.helpers.parseLinkDestination(u,s,o);if(!h.ok)return!1;let d=e.md.normalizeLink(h.str);if(!e.md.validateLink(d))return!1;let p=s=h.pos,f=l,m=s;for(;s<o;s++){let e=u.charCodeAt(s);if(10===e){let e=a(l);null!==e&&(u+=e,o=u.length,l++)}else if(eD(e));else break}let g=e.md.helpers.parseLinkTitle(u,s,o);for(;g.can_continue;){let t=a(l);if(null===t)break;u+=t,s=o,o=u.length,l++,g=e.md.helpers.parseLinkTitle(u,s,o,g)}for(s<o&&m!==s&&g.ok?(i=g.str,s=g.pos):(i="",s=p,l=f);s<o&&eD(u.charCodeAt(s));)s++;if(s<o&&10!==u.charCodeAt(s)&&i)for(i="",s=p,l=f;s<o&&eD(u.charCodeAt(s));)s++;if(s<o&&10!==u.charCodeAt(s))return!1;let _=eN(u.slice(1,c));return!!_&&(!!n||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[_]&&(e.env.references[_]={title:i,href:d}),e.line=l,!0))}let tx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tv="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",tC="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",tA=RegExp("^(?:"+tv+"|"+tC+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),tE=RegExp("^(?:"+tv+"|"+tC+")"),tS=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?("+tx.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(tE.source+"\\s*$"),/^$/,!1]],tM=[["table",td,["paragraph","reference"]],["code",tp],["fence",tf,["paragraph","reference","blockquote","list"]],["blockquote",tm,["paragraph","reference","blockquote","list"]],["hr",tg,["paragraph","reference","blockquote","list"]],["list",tb,["paragraph","reference","blockquote"]],["reference",tw],["html_block",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(i))return!1;let o=e.src.slice(i,s),l=0;for(;l<tS.length&&!tS[l][0].test(o);l++);if(l===tS.length)return!1;if(n)return tS[l][2];let a=t+1,u=tS[l][1].test("");if(!tS[l][1].test(o)){for(;a<r&&(!(e.sCount[a]<e.blkIndent)||!u&&e.isEmpty(a));a++)if(i=e.bMarks[a]+e.tShift[a],s=e.eMarks[a],o=e.src.slice(i,s),tS[l][1].test(o)){0!==o.length&&a++;break}}e.line=a;let c=e.push("html_block","",0);return c.map=[t,a],c.content=e.getLines(t,a,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(35!==o||i>=s)return!1;let l=1;for(o=e.src.charCodeAt(++i);35===o&&i<s&&l<=6;)l++,o=e.src.charCodeAt(++i);if(l>6||i<s&&!eD(o))return!1;if(n)return!0;s=e.skipSpacesBack(s,i);let a=e.skipCharsBack(s,35,i);a>i&&eD(e.src.charCodeAt(a-1))&&(s=a),e.line=t+1;let u=e.push("heading_open","h"+String(l),1);u.markup="########".slice(0,l),u.map=[t,e.line];let c=e.push("inline","",0);return c.content=ez(e.src.slice(i,s)),c.map=[t,e.line],c.children=[],e.push("heading_close","h"+String(l),-1).markup="########".slice(0,l),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,r){let n,i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.parentType;e.parentType="paragraph";let o=0,l=t+1;for(;l<r&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]>=e.blkIndent){let t=e.bMarks[l]+e.tShift[l],r=e.eMarks[l];if(t<r&&(45===(n=e.src.charCodeAt(t))||61===n)&&(t=e.skipChars(t,n),(t=e.skipSpaces(t))>=r)){o=61===n?1:2;break}}if(e.sCount[l]<0)continue;let t=!1;for(let n=0,s=i.length;n<s;n++)if(i[n](e,l,r,!0)){t=!0;break}if(t)break}if(!o)return e.parentType=s,!1;let a=ez(e.getLines(t,l,e.blkIndent,!1));e.line=l+1;let u=e.push("heading_open","h"+String(o),1);u.markup=String.fromCharCode(n),u.map=[t,e.line];let c=e.push("inline","",0);return c.content=a,c.map=[t,e.line-1],c.children=[],e.push("heading_close","h"+String(o),-1).markup=String.fromCharCode(n),e.parentType=s,!0}],["paragraph",function(e,t,r){let n=e.md.block.ruler.getRules("paragraph"),i=e.parentType,s=t+1;for(e.parentType="paragraph";s<r&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)continue;let t=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,s,r,!0)){t=!0;break}if(t)break}let o=ez(e.getLines(t,s,e.blkIndent,!1));e.line=s,e.push("paragraph_open","p",1).map=[t,e.line];let l=e.push("inline","",0);return l.content=o,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function tT(){this.ruler=new eW;for(let e=0;e<tM.length;e++)this.ruler.push(tM[e][0],tM[e][1],{alt:(tM[e][2]||[]).slice()})}tT.prototype.tokenize=function(e,t,r){let n=this.ruler.getRules(""),i=n.length,s=e.md.options.maxNesting,o=t,l=!1;for(;o<r&&(e.line=o=e.skipEmptyLines(o),!(o>=r)&&!(e.sCount[o]<e.blkIndent));){if(e.level>=s){e.line=r;break}let t=e.line,a=!1;for(let s=0;s<i;s++)if(a=n[s](e,o,r,!1)){if(t>=e.line)throw Error("block rule didn't increment state.line");break}if(!a)throw Error("none of the block rules matched");e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),(o=e.line)<r&&e.isEmpty(o)&&(l=!0,e.line=++o)}},tT.prototype.parse=function(e,t,r,n){if(!e)return;let i=new this.State(e,t,r,n);this.tokenize(i,i.line,i.lineMax)},tT.prototype.State=ta;let tD=tT;function tF(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}tF.prototype.pushPending=function(){let e=new eK("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},tF.prototype.push=function(e,t,r){this.pending&&this.pushPending();let n=new eK(e,t,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n},tF.prototype.scanDelims=function(e,t){let r,n=this.posMax,i=this.src.charCodeAt(e);if(0===e)r=32;else if(1===e)(63488&(r=this.src.charCodeAt(0)))==55296&&(r=65533);else if((64512&(r=this.src.charCodeAt(e-1)))==56320){let t=this.src.charCodeAt(e-2);r=(64512&t)==55296?65536+(t-55296<<10)+(r-56320):65533}else(64512&r)==55296&&(r=65533);let s=e;for(;s<n&&this.src.charCodeAt(s)===i;)s++;let o=s-e,l=s<n?this.src.charCodeAt(s):32;if((64512&l)==55296){let e=this.src.charCodeAt(s+1);l=(64512&e)==56320?65536+(l-55296<<10)+(e-56320):65533}else(64512&l)==56320&&(l=65533);let a=eR(r)||eL(r),u=eR(l)||eL(l),c=eF(r),h=eF(l),d=!h&&(!u||c||a),p=!c&&(!a||h||u);return{can_open:d&&(t||!p||a),can_close:p&&(t||!d||u),length:o}},tF.prototype.Token=eK;let tI=tF;function tL(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function tR(e,t){let r=e.pos;for(;r<e.posMax&&!tL(e.src.charCodeAt(r));)r++;return r!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}let tN=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function tO(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let r=e.pos;if(r+3>e.posMax||58!==e.src.charCodeAt(r)||47!==e.src.charCodeAt(r+1)||47!==e.src.charCodeAt(r+2))return!1;let n=e.pending.match(tN);if(!n)return!1;let i=n[1],s=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!s)return!1;let o=s.url;if(o.length<=i.length)return!1;let l=o.length;for(;l>0&&42===o.charCodeAt(l-1);)l--;l!==o.length&&(o=o.slice(0,l));let a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);let t=e.push("link_open","a",1);t.attrs=[["href",a]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);let r=e.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return e.pos+=o.length-i.length,!0}function tz(e,t){let r=e.pos;if(10!==e.src.charCodeAt(r))return!1;let n=e.pending.length-1,i=e.posMax;if(!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){let t=n-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<i&&eD(e.src.charCodeAt(r));)r++;return e.pos=r,!0}let tP=[];for(let e=0;e<256;e++)tP.push(0);function t$(e,t){let r,n=[],i=t.length;for(let s=0;s<i;s++){let i=t[s];if(126!==i.marker||-1===i.end)continue;let o=t[i.end];(r=e.tokens[i.token]).type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",(r=e.tokens[o.token]).type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&n.push(o.token-1)}for(;n.length;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;t!==--i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}}function tB(e,t){let r=t.length;for(let n=r-1;n>=0;n--){let r=t[n];if(95!==r.marker&&42!==r.marker||-1===r.end)continue;let i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),l=e.tokens[r.token];l.type=s?"strong_open":"em_open",l.tag=s?"strong":"em",l.nesting=1,l.markup=s?o+o:o,l.content="";let a=e.tokens[i.token];a.type=s?"strong_close":"em_close",a.tag=s?"strong":"em",a.nesting=-1,a.markup=s?o+o:o,a.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){tP[e.charCodeAt(0)]=1});let tq=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,tj=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function tH(e){return/^<a[>\s]/i.test(e)}function tU(e){return/^<\/a\s*>/i.test(e)}function tV(e){let t=32|e;return t>=97&&t<=122}let tW=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,tJ=/^&([a-z][a-z0-9]{1,31});/i;function tK(e){let t={},r=e.length;if(!r)return;let n=0,i=-2,s=[];for(let o=0;o<r;o++){let r=e[o];if(s.push(0),(e[n].marker!==r.marker||i!==r.token-1)&&(n=o),i=r.token,r.length=r.length||0,!r.close)continue;t.hasOwnProperty(r.marker)||(t[r.marker]=[-1,-1,-1,-1,-1,-1]);let l=t[r.marker][3*!!r.open+r.length%3],a=n-s[n]-1,u=a;for(;a>l;a-=s[a]+1){let t=e[a];if(t.marker===r.marker&&t.open&&t.end<0){let n=!1;if((t.close||r.open)&&(t.length+r.length)%3==0&&(t.length%3!=0||r.length%3!=0)&&(n=!0),!n){let n=a>0&&!e[a-1].open?s[a-1]+1:0;s[o]=o-a+n,s[a]=n,r.open=!1,t.end=o,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[r.marker][3*!!r.open+(r.length||0)%3]=u)}}let tG=[["text",tR],["linkify",tO],["newline",tz],["escape",function(e,t){let r=e.pos,n=e.posMax;if(92!==e.src.charCodeAt(r)||++r>=n)return!1;let i=e.src.charCodeAt(r);if(10===i){for(t||e.push("hardbreak","br",0),r++;r<n&&eD(i=e.src.charCodeAt(r));)r++;return e.pos=r,!0}let s=e.src[r];if(i>=55296&&i<=56319&&r+1<n){let t=e.src.charCodeAt(r+1);t>=56320&&t<=57343&&(s+=e.src[r+1],r++)}let o="\\"+s;if(!t){let t=e.push("text_special","",0);i<256&&0!==tP[i]?t.content=s:t.content=o,t.markup=o,t.info="escape"}return e.pos=r+1,!0}],["backticks",function(e,t){let r,n=e.pos;if(96!==e.src.charCodeAt(n))return!1;let i=n;n++;let s=e.posMax;for(;n<s&&96===e.src.charCodeAt(n);)n++;let o=e.src.slice(i,n),l=o.length;if(e.backticksScanned&&(e.backticks[l]||0)<=i)return t||(e.pending+=o),e.pos+=l,!0;let a=n;for(;-1!==(r=e.src.indexOf("`",a));){for(a=r+1;a<s&&96===e.src.charCodeAt(a);)a++;let i=a-r;if(i===l){if(!t){let t=e.push("code_inline","code",0);t.markup=o,t.content=e.src.slice(n,r).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=a,!0}e.backticks[i]=r}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=l,!0}],["strikethrough",function(e,t){let r,n=e.pos,i=e.src.charCodeAt(n);if(t||126!==i)return!1;let s=e.scanDelims(e.pos,!0),o=s.length,l=String.fromCharCode(i);if(o<2)return!1;o%2&&((r=e.push("text","",0)).content=l,o--);for(let t=0;t<o;t+=2)(r=e.push("text","",0)).content=l+l,e.delimiters.push({marker:i,length:0,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0}],["emphasis",function(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||95!==n&&42!==n)return!1;let i=e.scanDelims(e.pos,42===n);for(let t=0;t<i.length;t++)e.push("text","",0).content=String.fromCharCode(n),e.delimiters.push({marker:n,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["link",function e(e,t){let r,n,i,s,o="",l="",a=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;let c=e.pos,h=e.posMax,d=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let f=p+1;if(f<h&&40===e.src.charCodeAt(f)){for(u=!1,f++;f<h&&(eD(r=e.src.charCodeAt(f))||10===r);f++);if(f>=h)return!1;if(a=f,(i=e.md.helpers.parseLinkDestination(e.src,f,e.posMax)).ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?f=i.pos:o="",a=f;f<h&&(eD(r=e.src.charCodeAt(f))||10===r);f++);if(i=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<h&&a!==f&&i.ok)for(l=i.str,f=i.pos;f<h&&(eD(r=e.src.charCodeAt(f))||10===r);f++);}(f>=h||41!==e.src.charCodeAt(f))&&(u=!0),f++}if(u){if(void 0===e.env.references)return!1;if(f<h&&91===e.src.charCodeAt(f)?(a=f+1,(f=e.md.helpers.parseLinkLabel(e,f))>=0?n=e.src.slice(a,f++):f=p+1):f=p+1,n||(n=e.src.slice(d,p)),!(s=e.env.references[eN(n)]))return e.pos=c,!1;o=s.href,l=s.title}if(!t){e.pos=d,e.posMax=p;let t=e.push("link_open","a",1),r=[["href",o]];t.attrs=r,l&&r.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=h,!0}],["image",function e(e,t){let r,n,i,s,o,l,a,u,c="",h=e.pos,d=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let p=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if((s=f+1)<d&&40===e.src.charCodeAt(s)){for(s++;s<d&&(eD(r=e.src.charCodeAt(s))||10===r);s++);if(s>=d)return!1;for(u=s,(l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok&&(c=e.md.normalizeLink(l.str),e.md.validateLink(c)?s=l.pos:c=""),u=s;s<d&&(eD(r=e.src.charCodeAt(s))||10===r);s++);if(l=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<d&&u!==s&&l.ok)for(a=l.str,s=l.pos;s<d&&(eD(r=e.src.charCodeAt(s))||10===r);s++);else a="";if(s>=d||41!==e.src.charCodeAt(s))return e.pos=h,!1;s++}else{if(void 0===e.env.references)return!1;if(s<d&&91===e.src.charCodeAt(s)?(u=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?i=e.src.slice(u,s++):s=f+1):s=f+1,i||(i=e.src.slice(p,f)),!(o=e.env.references[eN(i)]))return e.pos=h,!1;c=o.href,a=o.title}if(!t){n=e.src.slice(p,f);let t=[];e.md.inline.parse(n,e.md,e.env,t);let r=e.push("image","img",0),i=[["src",c],["alt",""]];r.attrs=i,r.children=t,r.content=n,a&&i.push(["title",a])}return e.pos=s,e.posMax=d,!0}],["autolink",function e(e,t){let r=e.pos;if(60!==e.src.charCodeAt(r))return!1;let n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;let t=e.src.charCodeAt(r);if(60===t)return!1;if(62===t)break}let s=e.src.slice(n+1,r);if(tj.test(s)){let r=e.md.normalizeLink(s);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=s.length+2,!0}if(tq.test(s)){let r=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=s.length+2,!0}return!1}],["html_inline",function e(e,t){if(!e.md.options.html)return!1;let r=e.posMax,n=e.pos;if(60!==e.src.charCodeAt(n)||n+2>=r)return!1;let i=e.src.charCodeAt(n+1);if(33!==i&&63!==i&&47!==i&&!tV(i))return!1;let s=e.src.slice(n).match(tA);if(!s)return!1;if(!t){let t=e.push("html_inline","",0);t.content=s[0],tH(t.content)&&e.linkLevel++,tU(t.content)&&e.linkLevel--}return e.pos+=s[0].length,!0}],["entity",function e(e,t){let r=e.pos,n=e.posMax;if(38!==e.src.charCodeAt(r)||r+1>=n)return!1;if(35===e.src.charCodeAt(r+1)){let n=e.src.slice(r).match(tW);if(n){if(!t){let t="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=e.push("text_special","",0);r.content=ef(t)?em(t):em(65533),r.markup=n[0],r.info="entity"}return e.pos+=n[0].length,!0}}else{let n=e.src.slice(r).match(tJ);if(n){let r=es(n[0]);if(r!==n[0]){if(!t){let t=e.push("text_special","",0);t.content=r,t.markup=n[0],t.info="entity"}return e.pos+=n[0].length,!0}}}return!1}]],tZ=[["balance_pairs",function e(e){let t=e.tokens_meta,r=e.tokens_meta.length;tK(e.delimiters);for(let e=0;e<r;e++)t[e]&&t[e].delimiters&&tK(t[e].delimiters)}],["strikethrough",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;t$(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&t$(e,t[n].delimiters)}],["emphasis",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;tB(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&tB(e,t[n].delimiters)}],["fragments_join",function e(e){let t,r,n=0,i=e.tokens,s=e.tokens.length;for(t=r=0;t<s;t++)i[t].nesting<0&&n--,i[t].level=n,i[t].nesting>0&&n++,"text"===i[t].type&&t+1<s&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}]];function tX(){this.ruler=new eW;for(let e=0;e<tG.length;e++)this.ruler.push(tG[e][0],tG[e][1]);this.ruler2=new eW;for(let e=0;e<tZ.length;e++)this.ruler2.push(tZ[e][0],tZ[e][1])}tX.prototype.skipToken=function(e){let t=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,s=e.cache;if(void 0!==s[t]){e.pos=s[t];return}let o=!1;if(e.level<i){for(let i=0;i<n;i++)if(e.level++,o=r[i](e,!0),e.level--,o){if(t>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!o&&e.pos++,s[t]=e.pos},tX.prototype.tokenize=function(e){let t=this.ruler.getRules(""),r=t.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos<n;){let s=e.pos,o=!1;if(e.level<i){for(let n=0;n<r;n++)if(o=t[n](e,!1)){if(s>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},tX.prototype.parse=function(e,t,r,n){let i=new this.State(e,t,r,n);this.tokenize(i);let s=this.ruler2.getRules(""),o=s.length;for(let e=0;e<o;e++)s[e](i)},tX.prototype.State=tI;let tY=tX;function tQ(e){let t={};e=e||{},t.src_Any=B.source,t.src_Cc=q.source,t.src_Z=H.source,t.src_P=P.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");let r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function t0(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function t1(e){return Object.prototype.toString.call(e)}function t2(e){return"[object String]"===t1(e)}function t3(e){return"[object Object]"===t1(e)}function t5(e){return"[object RegExp]"===t1(e)}function t4(e){return"[object Function]"===t1(e)}function t6(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}let t8={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function t9(e){return Object.keys(e||{}).reduce(function(e,t){return e||t8.hasOwnProperty(t)},!1)}let t7={"http:":{validate:function(e,t,r){let n=e.slice(t);return(r.re.http||(r.re.http=RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n))?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){let n=e.slice(t);return(r.re.no_http||(r.re.no_http=RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){let n=e.slice(t);return(r.re.mailto||(r.re.mailto=RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n))?n.match(r.re.mailto)[0].length:0}}},re="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",rt="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function rr(e){return function(t,r){let n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function rn(){return function(e,t){t.normalize(e)}}function ri(e){let t=e.re=tQ(e.__opts__),r=e.__tlds__.slice();function n(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(re),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(n(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(n(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(n(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");let i=[];function s(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){let r=e.__schemas__[t];if(null===r)return;let n={validate:null,link:null};if(e.__compiled__[t]=n,t3(r)){t5(r.validate)?n.validate=rr(r.validate):t4(r.validate)?n.validate=r.validate:s(t,r),t4(r.normalize)?n.normalize=r.normalize:r.normalize?s(t,r):n.normalize=rn();return}t2(r)?i.push(t):s(t,r)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:rn()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(t6).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i")}function rs(e,t,r,n){let i=e.slice(r,n);this.schema=t.toLowerCase(),this.index=r,this.lastIndex=n,this.raw=i,this.text=i,this.url=i}function ro(e,t){if(!(this instanceof ro))return new ro(e,t);!t&&t9(e)&&(t=e,e={}),this.__opts__=t0({},t8,t),this.__schemas__=t0({},t7,e),this.__compiled__={},this.__tlds__=rt,this.__tlds_replaced__=!1,this.re={},ri(this)}ro.prototype.add=function(e,t){return this.__schemas__[e]=t,ri(this),this},ro.prototype.set=function(e){return this.__opts__=t0(this.__opts__,e),this},ro.prototype.test=function(e){let t,r;if(!e.length)return!1;if(this.re.schema_test.test(e)){for((r=this.re.schema_search).lastIndex=0;null!==(t=r.exec(e));)if(this.testSchemaAt(e,t[2],r.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&e.search(this.re.host_fuzzy_test)>=0&&null!==e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==e.match(this.re.email_fuzzy))},ro.prototype.pretest=function(e){return this.re.pretest.test(e)},ro.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},ro.prototype.match=function(e){let t,r,n,i=[],s=[],o=[],l=[];function a(e,t){return e?t?e.index!==t.index?e.index<t.index?e:t:e.lastIndex>=t.lastIndex?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for((n=this.re.schema_search).lastIndex=0;null!==(t=n.exec(e));)(r=this.testSchemaAt(e,t[2],n.lastIndex))&&s.push({schema:t[2],index:t.index+t[1].length,lastIndex:t.index+t[0].length+r});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for((n=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global).lastIndex=0;null!==(t=n.exec(e));)o.push({schema:"",index:t.index+t[1].length,lastIndex:t.index+t[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for((n=this.re.email_fuzzy_global).lastIndex=0;null!==(t=n.exec(e));)l.push({schema:"mailto:",index:t.index+t[1].length,lastIndex:t.index+t[0].length});let u=[0,0,0],c=0;for(;;){let t=[s[u[0]],l[u[1]],o[u[2]]],r=a(a(t[0],t[1]),t[2]);if(!r)break;if(r===t[0]?u[0]++:r===t[1]?u[1]++:u[2]++,r.index<c)continue;let n=new rs(e,r.schema,r.index,r.lastIndex);this.__compiled__[n.schema].normalize(n,this),i.push(n),c=r.lastIndex}return i.length?i:null},ro.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let r=this.testSchemaAt(e,t[2],t[0].length);if(!r)return null;let n=new rs(e,t[2],t.index+t[1].length,t.index+t[0].length+r);return this.__compiled__[n.schema].normalize(n,this),n},ro.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,r){return e!==r[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),ri(this),this},ro.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},ro.prototype.onCompile=function(){};let rl=ro,ra=0x7fffffff,ru=36,rc=1,rh=26,rd=38,rp=700,rf=72,rm=128,rg="-",r_=/^xn--/,ry=/[^\0-\x7F]/,rk=/[\x2E\u3002\uFF0E\uFF61]/g,rb={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},rw=35,rx=Math.floor,rv=String.fromCharCode;function rC(e){throw RangeError(rb[e])}function rA(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r}function rE(e,t){let r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+rA((e=e.replace(rk,".")).split("."),t).join(".")}function rS(e){let t=[],r=0,n=e.length;for(;r<n;){let i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){let n=e.charCodeAt(r++);(64512&n)==56320?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}let rM=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:ru},rT=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},rD=function(e,t,r){let n=0;for(e=r?rx(e/rp):e>>1,e+=rx(e/t);e>rw*rh>>1;n+=ru)e=rx(e/rw);return rx(n+(rw+1)*e/(e+rd))},rF=function(e){let t=[],r=e.length,n=0,i=rm,s=rf,o=e.lastIndexOf(rg);o<0&&(o=0);for(let r=0;r<o;++r)e.charCodeAt(r)>=128&&rC("not-basic"),t.push(e.charCodeAt(r));for(let l=o>0?o+1:0;l<r;){let o=n;for(let t=1,i=ru;;i+=ru){l>=r&&rC("invalid-input");let o=rM(e.charCodeAt(l++));o>=ru&&rC("invalid-input"),o>rx((ra-n)/t)&&rC("overflow"),n+=o*t;let a=i<=s?rc:i>=s+rh?rh:i-s;if(o<a)break;let u=ru-a;t>rx(ra/u)&&rC("overflow"),t*=u}let a=t.length+1;s=rD(n-o,a,0==o),rx(n/a)>ra-i&&rC("overflow"),i+=rx(n/a),n%=a,t.splice(n++,0,i)}return String.fromCodePoint(...t)},rI=function(e){let t=[],r=(e=rS(e)).length,n=rm,i=0,s=rf;for(let r of e)r<128&&t.push(rv(r));let o=t.length,l=o;for(o&&t.push(rg);l<r;){let r=ra;for(let t of e)t>=n&&t<r&&(r=t);let a=l+1;for(let u of(r-n>rx((ra-i)/a)&&rC("overflow"),i+=(r-n)*a,n=r,e))if(u<n&&++i>ra&&rC("overflow"),u===n){let e=i;for(let r=ru;;r+=ru){let n=r<=s?rc:r>=s+rh?rh:r-s;if(e<n)break;let i=e-n,o=ru-n;t.push(rv(rT(n+i%o,0))),e=rx(i/o)}t.push(rv(rT(e,0))),s=rD(i,a,l===o),i=0,++l}++i,++n}return t.join("")},rL=function(e){return rE(e,function(e){return ry.test(e)?"xn--"+rI(e):e})},rR=function(e){return rE(e,function(e){return r_.test(e)?rF(e.slice(4).toLowerCase()):e})},rN={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},rO=/^(vbscript|javascript|file|data):/,rz=/^data:image\/(gif|png|jpeg|webp);/;function rP(e){let t=e.trim().toLowerCase();return!rO.test(t)||rz.test(t)}let r$=["http:","https:","mailto:"];function rB(e){let t=z(e,!0);if(t.hostname&&(!t.protocol||r$.indexOf(t.protocol)>=0))try{t.hostname=rL(t.hostname)}catch(e){}return v(C(t))}function rq(e){let t=z(e,!0);if(t.hostname&&(!t.protocol||r$.indexOf(t.protocol)>=0))try{t.hostname=rR(t.hostname)}catch(e){}return k(C(t),k.defaultChars+"%")}function rj(e,t){if(!(this instanceof rj))return new rj(e,t);t||eu(e)||(t=e||{},e="default"),this.inline=new tY,this.block=new tD,this.core=new to,this.renderer=new eU,this.linkify=new rl,this.validateLink=rP,this.normalizeLink=rB,this.normalizeLinkText=rq,this.utils=d,this.helpers=ed({},p),this.options={},this.configure(e),t&&this.set(t)}rj.prototype.set=function(e){return ed(this.options,e),this},rj.prototype.configure=function(e){let t=this;if(eu(e)){let t=e;if(!(e=rN[t]))throw Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this},rj.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));let n=e.filter(function(e){return 0>r.indexOf(e)});if(n.length&&!t)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},rj.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));let n=e.filter(function(e){return 0>r.indexOf(e)});if(n.length&&!t)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},rj.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},rj.prototype.parse=function(e,t){if("string"!=typeof e)throw Error("Input data should be a String");let r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},rj.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},rj.prototype.parseInline=function(e,t){let r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},rj.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};let rH=rj,rU=new m.Sj({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>["p",0]},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["div",["hr"]]},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>({params:e.getAttribute("data-params")||""})}],toDOM:e=>["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ol",{start:1==e.attrs.order?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>({tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ul",{"data-tight":e.attrs.tight?"true":null},0]},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM:e=>["img",e.attrs]},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>"em"==e.type.name}],toDOM:()=>["em"]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>["strong"]},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM:e=>["a",e.attrs]},code:{code:!0,parseDOM:[{tag:"code"}],toDOM:()=>["code"]}}});function rV(e,t){if(e.isText&&t.isText&&m.CU.sameSet(e.marks,t.marks))return e.withText(e.text+t.text)}class rW{constructor(e,t){this.schema=e,this.tokenHandlers=t,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:m.CU.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;let t=this.top(),r=t.content,n=r[r.length-1],i=this.schema.text(e,t.marks),s;n&&(s=rV(n,i))?r[r.length-1]=s:r.push(i)}openMark(e){let t=this.top();t.marks=e.addToSet(t.marks)}closeMark(e){let t=this.top();t.marks=e.removeFromSet(t.marks)}parseTokens(e){for(let t=0;t<e.length;t++){let r=e[t],n=this.tokenHandlers[r.type];if(!n)throw Error("Token type `"+r.type+"` not supported by Markdown parser");n(this,r,e,t)}}addNode(e,t,r){let n=this.top(),i=e.createAndFill(t,r,n?n.marks:[]);return i?(this.push(i),i):null}openNode(e,t){this.stack.push({type:e,attrs:t,content:[],marks:m.CU.none})}closeNode(){let e=this.stack.pop();return this.addNode(e.type,e.attrs,e.content)}}function rJ(e,t,r,n){return e.getAttrs?e.getAttrs(t,r,n):e.attrs instanceof Function?e.attrs(t):e.attrs}function rK(e,t){return e.noCloseToken||"code_inline"==t||"code_block"==t||"fence"==t}function rG(e){return"\n"==e[e.length-1]?e.slice(0,e.length-1):e}function rZ(){}function rX(e,t){let r=Object.create(null);for(let n in t){let i=t[n];if(i.block){let t=e.nodeType(i.block);rK(i,n)?r[n]=(e,r,n,s)=>{e.openNode(t,rJ(i,r,n,s)),e.addText(rG(r.content)),e.closeNode()}:(r[n+"_open"]=(e,r,n,s)=>e.openNode(t,rJ(i,r,n,s)),r[n+"_close"]=e=>e.closeNode())}else if(i.node){let t=e.nodeType(i.node);r[n]=(e,r,n,s)=>e.addNode(t,rJ(i,r,n,s))}else if(i.mark){let t=e.marks[i.mark];rK(i,n)?r[n]=(e,r,n,s)=>{e.openMark(t.create(rJ(i,r,n,s))),e.addText(rG(r.content)),e.closeMark(t)}:(r[n+"_open"]=(e,r,n,s)=>e.openMark(t.create(rJ(i,r,n,s))),r[n+"_close"]=e=>e.closeMark(t))}else if(i.ignore)rK(i,n)?r[n]=rZ:(r[n+"_open"]=rZ,r[n+"_close"]=rZ);else throw RangeError("Unrecognized parsing spec "+JSON.stringify(i))}return r.text=(e,t)=>e.addText(t.content),r.inline=(e,t)=>e.parseTokens(t.children),r.softbreak=r.softbreak||(e=>e.addText(" ")),r}class rY{constructor(e,t,r){this.schema=e,this.tokenizer=t,this.tokens=r,this.tokenHandlers=rX(e,r)}parse(e,t={}){let r=new rW(this.schema,this.tokenHandlers),n;r.parseTokens(this.tokenizer.parse(e,t));do n=r.closeNode();while(r.stack.length);return n||this.schema.topNodeType.createAndFill()}}function rQ(e,t){for(;++t<e.length;)if("list_item_open"!=e[t].type)return e[t].hidden;return!1}new rY(rU,rH("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(e,t,r)=>({tight:rQ(t,r)})},ordered_list:{block:"ordered_list",getAttrs:(e,t,r)=>({order:+e.attrGet("start")||1,tight:rQ(t,r)})},heading:{block:"heading",getAttrs:e=>({level:+e.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:e=>({params:e.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:e=>({src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:e=>({href:e.attrGet("href"),title:e.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}});let r0={open:"",close:"",mixable:!0};class r1{constructor(e,t,r={}){this.nodes=e,this.marks=t,this.options=r}serialize(e,t={}){t=Object.assign({},this.options,t);let r=new r4(this.nodes,this.marks,t);return r.renderContent(e),r.out}}let r2=new r1({blockquote(e,t){e.wrapBlock("> ",null,t,()=>e.renderContent(t))},code_block(e,t){let r=t.textContent.match(/`{3,}/gm),n=r?r.sort().slice(-1)[0]+"`":"```";e.write(n+(t.attrs.params||"")+"\n"),e.text(t.textContent,!1),e.write("\n"),e.write(n),e.closeBlock(t)},heading(e,t){e.write(e.repeat("#",t.attrs.level)+" "),e.renderInline(t,!1),e.closeBlock(t)},horizontal_rule(e,t){e.write(t.attrs.markup||"---"),e.closeBlock(t)},bullet_list(e,t){e.renderList(t," ",()=>(t.attrs.bullet||"*")+" ")},ordered_list(e,t){let r=t.attrs.order||1,n=String(r+t.childCount-1).length,i=e.repeat(" ",n+2);e.renderList(t,i,t=>{let i=String(r+t);return e.repeat(" ",n-i.length)+i+". "})},list_item(e,t){e.renderContent(t)},paragraph(e,t){e.renderInline(t),e.closeBlock(t)},image(e,t){e.write("]/g,"\\$&")+(t.attrs.title?' "'+t.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(e,t,r,n){for(let i=n+1;i<r.childCount;i++)if(r.child(i).type!=t.type)return void e.write("\\\n")},text(e,t){e.text(t.text,!e.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open:(e,t,r,n)=>(e.inAutolink=r5(t,r,n),e.inAutolink?"<":"["),close(e,t,r,n){let{inAutolink:i}=e;return e.inAutolink=void 0,i?">":"]("+t.attrs.href.replace(/[\(\)"]/g,"\\$&")+(t.attrs.title?` "${t.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open:(e,t,r,n)=>r3(r.child(n),-1),close:(e,t,r,n)=>r3(r.child(n-1),1),escape:!1}});function r3(e,t){let r=/`+/g,n,i=0;if(e.isText)for(;n=r.exec(e.text);)i=Math.max(i,n[0].length);let s=i>0&&t>0?" `":"`";for(let e=0;e<i;e++)s+="`";return i>0&&t<0&&(s+=" "),s}function r5(e,t,r){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1;let n=t.child(r);return!!n.isText&&n.text==e.attrs.href&&n.marks[n.marks.length-1]==e&&(r==t.childCount-1||!e.isInSet(t.child(r+1).marks))}class r4{constructor(e,t,r){this.nodes=e,this.marks=t,this.options=r,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,void 0===this.options.tightLists&&(this.options.tightLists=!1),void 0===this.options.hardBreakNodeName&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+="\n"),e>1){let t=this.delim,r=/\s+$/.exec(t);r&&(t=t.slice(0,t.length-r[0].length));for(let r=1;r<e;r++)this.out+=t+"\n"}this.closed=null}}getMark(e){let t=this.marks[e];if(!t){if(!1!==this.options.strict)throw Error(`Mark type \`${e}\` not supported by Markdown renderer`);t=r0}return t}wrapBlock(e,t,r,n){let i=this.delim;this.write(null!=t?t:e),this.delim+=e,n(),this.delim=i,this.closeBlock(r)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+="\n")}write(e){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,t=!0){let r=e.split("\n");for(let e=0;e<r.length;e++)this.write(),!t&&"["==r[e][0]&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=t?this.esc(r[e],this.atBlockStart):r[e],e!=r.length-1&&(this.out+="\n")}render(e,t,r){if(this.nodes[e.type.name])this.nodes[e.type.name](this,e,t,r);else if(!1!==this.options.strict)throw Error("Token type `"+e.type.name+"` not supported by Markdown renderer");else!e.type.isLeaf&&(e.type.inlineContent?this.renderInline(e):this.renderContent(e),e.isBlock&&this.closeBlock(e))}renderContent(e){e.forEach((t,r,n)=>this.render(t,e,n))}renderInline(e,t=!0){this.atBlockStart=t;let r=[],n="",i=(t,i,s)=>{let o=t?t.marks:[];t&&t.type.name===this.options.hardBreakNodeName&&(o=o.filter(t=>{if(s+1==e.childCount)return!1;let r=e.child(s+1);return t.isInSet(r.marks)&&(!r.isText||/\S/.test(r.text))}));let l=n;if(n="",t&&t.isText&&o.some(e=>{let t=this.getMark(e.type.name);return t&&t.expelEnclosingWhitespace&&!e.isInSet(r)})){let[e,n,i]=/^(\s*)(.*)$/m.exec(t.text);n&&(l+=n,(t=i?t.withText(i):null)||(o=r))}if(t&&t.isText&&o.some(t=>{let r=this.getMark(t.type.name);return r&&r.expelEnclosingWhitespace&&!this.isMarkAhead(e,s+1,t)})){let[e,i,s]=/^(.*?)(\s*)$/m.exec(t.text);s&&(n=s,(t=i?t.withText(i):null)||(o=r))}let a=o.length?o[o.length-1]:null,u=a&&!1===this.getMark(a.type.name).escape,c=o.length-!!u;e:for(let e=0;e<c;e++){let t=o[e];if(!this.getMark(t.type.name).mixable)break;for(let n=0;n<r.length;n++){let i=r[n];if(!this.getMark(i.type.name).mixable)break;if(t.eq(i)){e>n?o=o.slice(0,n).concat(t).concat(o.slice(n,e)).concat(o.slice(e+1,c)):n>e&&(o=o.slice(0,e).concat(o.slice(e+1,n)).concat(t).concat(o.slice(n,c)));continue e}}}let h=0;for(;h<Math.min(r.length,c)&&o[h].eq(r[h]);)++h;for(;h<r.length;)this.text(this.markString(r.pop(),!1,e,s),!1);if(l&&this.text(l),t){for(;r.length<c;){let t=o[r.length];r.push(t),this.text(this.markString(t,!0,e,s),!1),this.atBlockStart=!1}u&&t.isText?this.text(this.markString(a,!0,e,s)+t.text+this.markString(a,!1,e,s+1),!1):this.render(t,e,s),this.atBlockStart=!1}(null==t?void 0:t.isText)&&t.nodeSize>0&&(this.atBlockStart=!1)};e.forEach(i),i(null,0,e.childCount),this.atBlockStart=!1}renderList(e,t,r){this.closed&&this.closed.type==e.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let n=void 0!==e.attrs.tight?e.attrs.tight:this.options.tightLists,i=this.inTightList;this.inTightList=n,e.forEach((i,s,o)=>{o&&n&&this.flushClose(1),this.wrapBlock(t,r(o),e,()=>this.render(i,e,o))}),this.inTightList=i}esc(e,t=!1){return e=e.replace(/[`*\\~\[\]_]/g,(t,r)=>"_"==t&&r>0&&r+1<e.length&&e[r-1].match(/\w/)&&e[r+1].match(/\w/)?t:"\\"+t),t&&(e=e.replace(/^(\+[ ]|[\-*>])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(e=e.replace(this.options.escapeExtraCharacters,"\\$&")),e}quote(e){let t=-1==e.indexOf('"')?'""':-1==e.indexOf("'")?"''":"()";return t[0]+e+t[1]}repeat(e,t){let r="";for(let n=0;n<t;n++)r+=e;return r}markString(e,t,r,n){let i=this.getMark(e.type.name),s=t?i.open:i.close;return"string"==typeof s?s:s(this,e,r,n)}getEnclosingWhitespace(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}isMarkAhead(e,t,r){for(;;t++){if(t>=e.childCount)return!1;let n=e.child(t);if(n.type.name!=this.options.hardBreakNodeName)return r.isInSet(n.marks);t++}}}var r6=r(65915),r8=r(76865),r9=Object.defineProperty,r7=(e,t,r)=>t in e?r9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ne=(e,t,r)=>(r7(e,"symbol"!=typeof t?t+"":t,r),r);let nt=f.YY.create({name:"markdownTightLists",addOptions:()=>({tight:!0,tightClass:"tight",listTypes:["bulletList","orderedList"]}),addGlobalAttributes(){return[{types:this.options.listTypes,attributes:{tight:{default:this.options.tight,parseHTML:e=>"true"===e.getAttribute("data-tight")||!e.querySelector("p"),renderHTML:e=>({class:e.tight?this.options.tightClass:null,"data-tight":e.tight?"true":null})}}}]},addCommands(){var e=this;return{toggleTight:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return r=>{let{editor:n,commands:i}=r;function s(e){if(!n.isActive(e))return!1;let r=n.getAttributes(e);return i.updateAttributes(e,{tight:null!=t?t:!(null!=r&&r.tight)})}return e.options.listTypes.some(e=>s(e))}}}}}),nr=rH();function nn(e,t){return nr.inline.State.prototype.scanDelims.call({src:e,posMax:e.length}),new nr.inline.State(e,null,null,[]).scanDelims(t,!0)}function ni(e,t,r,n){let i=e.substring(0,r)+e.substring(r+t.length);return i.substring(0,r+n)+t+i.substring(r+n)}function ns(e,t,r,n){let i=r,s=e;for(;i<n&&!nn(s,i).can_open;)s=ni(s,t,i,1),i++;return{text:s,from:i,to:n}}function no(e,t,r,n){let i=n,s=e;for(;i>r&&!nn(s,i).can_close;)s=ni(s,t,i,-1),i--;return{text:s,from:r,to:i}}function nl(e,t,r,n){let i={text:e,from:r,to:n};return(i=no((i=ns(i.text,t,i.from,i.to)).text,t,i.from,i.to)).to-i.from<t.length+1&&(i.text=i.text.substring(0,i.from)+i.text.substring(i.to+t.length)),i.text}class na extends r4{constructor(e,t,r){super(e,t,null!=r?r:{}),ne(this,"inTable",!1),this.inlines=[]}render(e,t,r){super.render(e,t,r);let n=this.inlines[this.inlines.length-1];if(null!=n&&n.start&&null!=n&&n.end){let{delimiter:e,start:t,end:r}=this.normalizeInline(n);this.out=nl(this.out,e,t,r),this.inlines.pop()}}markString(e,t,r,n){let i=this.marks[e.type.name];if(i.expelEnclosingWhitespace)if(t)this.inlines.push({start:this.out.length,delimiter:i.open});else{let e=this.inlines.pop();this.inlines.push({...e,end:this.out.length})}return super.markString(e,t,r,n)}normalizeInline(e){let{start:t,end:r}=e;for(;this.out.charAt(t).match(/\s/);)t++;return{...e,start:t}}}let nu=f.CU.create({name:"markdownHTMLMark",addStorage:()=>({markdown:{serialize:{open(e,t){var r,n;return this.editor.storage.markdown.options.html?null!=(r=null==(n=nc(t))?void 0:n[0])?r:"":(console.warn(`Tiptap Markdown: "${t.type.name}" mark is only available in html mode`),"")},close(e,t){var r,n;return this.editor.storage.markdown.options.html&&null!=(r=null==(n=nc(t))?void 0:n[1])?r:""}},parse:{}}})});function nc(e){let t=e.type.schema,r=t.text(" ",[e]),n=(0,f.su)(m.FK.from(r),t).match(/^(<.*?>) (<\/.*?>)$/);return n?[n[1],n[2]]:null}function nh(e){let t=`<body>${e}</body>`;return new window.DOMParser().parseFromString(t,"text/html").body}function nd(e){return null==e?void 0:e.replace(/</g,"<").replace(/>/g,">")}function np(e){let t=e.parentElement,r=t.cloneNode();for(;t.firstChild&&t.firstChild!==e;)r.appendChild(t.firstChild);r.childNodes.length>0&&t.parentElement.insertBefore(r,t),t.parentElement.insertBefore(e,t),0===t.childNodes.length&&t.remove()}function nf(e){let t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}let nm=f.bP.create({name:"markdownHTMLNode",addStorage:()=>({markdown:{serialize(e,t,r){this.editor.storage.markdown.options.html?e.write(ng(t,r)):(console.warn(`Tiptap Markdown: "${t.type.name}" node is only available in html mode`),e.write(`[${t.type.name}]`)),t.isBlock&&e.closeBlock(t)},parse:{}}})});function ng(e,t){let r=e.type.schema,n=(0,f.su)(m.FK.from(e),r);return e.isBlock&&(t instanceof m.FK||t.type.name===r.topNodeType.name)?n_(n):n}function n_(e){let t=nh(e).firstElementChild;return t.innerHTML=t.innerHTML.trim()?`
|
|
10
10
|
${t.innerHTML}
|
|
11
11
|
`:`
|
|
12
|
-
`,t.outerHTML}let nm=f.bP.create({name:"blockquote"}).extend({addStorage:()=>({markdown:{serialize:rQ.nodes.blockquote,parse:{}}})}),ng=f.bP.create({name:"bulletList"}).extend({addStorage:()=>({markdown:{serialize(e,t){return e.renderList(t," ",()=>(this.editor.storage.markdown.options.bulletListMarker||"-")+" ")},parse:{}}})}),n_=f.bP.create({name:"codeBlock"}).extend({addStorage:()=>({markdown:{serialize(e,t){e.write("```"+(t.attrs.language||"")+"\n"),e.text(t.textContent,!1),e.ensureNewLine(),e.write("```"),e.closeBlock(t)},parse:{setup(e){var t;e.set({langPrefix:null!=(t=this.options.languageClassPrefix)?t:"language-"})},updateDOM(e){e.innerHTML=e.innerHTML.replace(/\n<\/code><\/pre>/g,"</code></pre>")}}}})}),ny=f.bP.create({name:"hardBreak"}).extend({addStorage:()=>({markdown:{serialize(e,t,r,n){for(let i=n+1;i<r.childCount;i++)if(r.child(i).type!=t.type)return void e.write(e.inTable?nd.storage.markdown.serialize.call(this,e,t,r):"\\\n")},parse:{}}})}),nk=f.bP.create({name:"heading"}).extend({addStorage:()=>({markdown:{serialize:rQ.nodes.heading,parse:{}}})}),nb=f.bP.create({name:"horizontalRule"}).extend({addStorage:()=>({markdown:{serialize:rQ.nodes.horizontal_rule,parse:{}}})}),nw=f.bP.create({name:"image"}).extend({addStorage:()=>({markdown:{serialize:rQ.nodes.image,parse:{}}})}),nx=f.bP.create({name:"listItem"}).extend({addStorage:()=>({markdown:{serialize:rQ.nodes.list_item,parse:{}}})});function nv(e,t,r){let n=0;for(;r-n>0&&t.child(r-n-1).type.name===e.type.name;n++);return n}let nC=f.bP.create({name:"orderedList"}).extend({addStorage:()=>({markdown:{serialize(e,t,r,n){let i=t.attrs.start||1,s=String(i+t.childCount-1).length,o=e.repeat(" ",s+2),l=nv(t,r,n)%2?") ":". ";e.renderList(t,o,t=>{let r=String(i+t);return e.repeat(" ",s-r.length)+r+l})},parse:{}}})}),nA=f.bP.create({name:"paragraph"}).extend({addStorage:()=>({markdown:{serialize:rQ.nodes.paragraph,parse:{}}})});function nE(e){var t,r;return null!=(t=null==e||null==(r=e.content)?void 0:r.content)?t:[]}let nS=f.bP.create({name:"table"}).extend({addStorage:()=>({markdown:{serialize(e,t,r){nT(t)?(e.inTable=!0,t.forEach((t,r,n)=>{if(e.write("| "),t.forEach((t,r,n)=>{n&&e.write(" | ");let i=t.firstChild;i.textContent.trim()&&e.renderInline(i)}),e.write(" |"),e.ensureNewLine(),!n){let r=Array.from({length:t.childCount}).map(()=>"---").join(" | ");e.write(`| ${r} |`),e.ensureNewLine()}}),e.closeBlock(t),e.inTable=!1):nd.storage.markdown.serialize.call(this,e,t,r)},parse:{}}})});function nM(e){return e.attrs.colspan>1||e.attrs.rowspan>1}function nT(e){let t=nE(e),r=t[0],n=t.slice(1);return!(nE(r).some(e=>"tableHeader"!==e.type.name||nM(e)||e.childCount>1)||n.some(e=>nE(e).some(e=>"tableHeader"===e.type.name||nM(e)||e.childCount>1)))}let nD=f.bP.create({name:"taskItem"}).extend({addStorage:()=>({markdown:{serialize(e,t){let r=t.attrs.checked?"[x]":"[ ]";e.write(`${r} `),e.renderContent(t)},parse:{updateDOM(e){[...e.querySelectorAll(".task-list-item")].forEach(e=>{let t=e.querySelector("input");e.setAttribute("data-type","taskItem"),t&&(e.setAttribute("data-checked",t.checked),t.remove())})}}}})}),nF=f.bP.create({name:"taskList"}).extend({addStorage:()=>({markdown:{serialize:ng.storage.markdown.serialize,parse:{setup(e){e.use(r3)},updateDOM(e){[...e.querySelectorAll(".contains-task-list")].forEach(e=>{e.setAttribute("data-type","taskList")})}}}})}),nI=[nm,ng,n_,ny,nk,nb,nd,nw,nx,nC,nA,nS,nD,nF,f.bP.create({name:"text"}).extend({addStorage:()=>({markdown:{serialize(e,t){e.text(nu(t.text))},parse:{}}})}),f.CU.create({name:"bold"}).extend({addStorage:()=>({markdown:{serialize:rQ.marks.strong,parse:{}}})}),f.CU.create({name:"code"}).extend({addStorage:()=>({markdown:{serialize:rQ.marks.code,parse:{}}})}),no,f.CU.create({name:"italic"}).extend({addStorage:()=>({markdown:{serialize:rQ.marks.em,parse:{}}})}),f.CU.create({name:"link"}).extend({addStorage:()=>({markdown:{serialize:rQ.marks.link,parse:{}}})}),f.CU.create({name:"strike"}).extend({addStorage:()=>({markdown:{serialize:{open:"~~",close:"~~",expelEnclosingWhitespace:!0},parse:{}}})})];function nL(e){var t,r;let n=null==(t=e.storage)?void 0:t.markdown,i=null==(r=nI.find(t=>t.name===e.name))?void 0:r.storage.markdown;return n||i?{...i,...n}:null}class nN{constructor(e){r8(this,"editor",null),this.editor=e}serialize(e){let t=new ns(this.nodes,this.marks,{hardBreakNodeName:ny.name});return t.renderContent(e),t.out}get nodes(){var e;return{...Object.fromEntries(Object.keys(this.editor.schema.nodes).map(e=>[e,this.serializeNode(nd)])),...Object.fromEntries(null!=(e=this.editor.extensionManager.extensions.filter(e=>"node"===e.type&&this.serializeNode(e)).map(e=>[e.name,this.serializeNode(e)]))?e:[])}}get marks(){var e;return{...Object.fromEntries(Object.keys(this.editor.schema.marks).map(e=>[e,this.serializeMark(no)])),...Object.fromEntries(null!=(e=this.editor.extensionManager.extensions.filter(e=>"mark"===e.type&&this.serializeMark(e)).map(e=>[e.name,this.serializeMark(e)]))?e:[])}}serializeNode(e){var t;return null==(t=nL(e))||null==(t=t.serialize)?void 0:t.bind({editor:this.editor,options:e.options})}serializeMark(e){var t;let r=null==(t=nL(e))?void 0:t.serialize;return r?{...r,open:"function"==typeof r.open?r.open.bind({editor:this.editor,options:e.options}):r.open,close:"function"==typeof r.close?r.close.bind({editor:this.editor,options:e.options}):r.close}:null}}class nR{constructor(e,t){r8(this,"editor",null),r8(this,"md",null);let{html:r,linkify:n,breaks:i}=t;this.editor=e,this.md=this.withPatchedRenderer(rB({html:r,linkify:n,breaks:i}))}parse(e){let{inline:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e){this.editor.extensionManager.extensions.forEach(e=>{var t;return null==(t=nL(e))||null==(t=t.parse)||null==(t=t.setup)?void 0:t.call({editor:this.editor,options:e.options},this.md)});let r=na(this.md.render(e));return this.editor.extensionManager.extensions.forEach(e=>{var t;return null==(t=nL(e))||null==(t=t.parse)||null==(t=t.updateDOM)?void 0:t.call({editor:this.editor,options:e.options},r)}),this.normalizeDOM(r,{inline:t,content:e}),r.innerHTML}return e}normalizeDOM(e,t){let{inline:r,content:n}=t;return this.normalizeBlocks(e),e.querySelectorAll("*").forEach(e=>{var t;(null==(t=e.nextSibling)?void 0:t.nodeType)!==Node.TEXT_NODE||e.closest("pre")||(e.nextSibling.textContent=e.nextSibling.textContent.replace(/^\n/,""))}),r&&this.normalizeInline(e,n),e}normalizeBlocks(e){let t=Object.values(this.editor.schema.nodes).filter(e=>e.isBlock).map(e=>{var t;return null==(t=e.spec.parseDOM)?void 0:t.map(e=>e.tag)}).flat().filter(Boolean).join(",");t&&[...e.querySelectorAll(t)].forEach(e=>{e.parentElement.matches("p")&&nc(e)})}normalizeInline(e,t){var r,n,i,s,o;if(null!=(r=e.firstElementChild)&&r.matches("p")){let r=e.firstElementChild,{nextElementSibling:l}=r,a=null!=(n=null==(i=t.match(/^\s+/))?void 0:i[0])?n:"",u=l?"":null!=(s=null==(o=t.match(/\s+$/))?void 0:o[0])?s:"";if(t.match(/^\n\n/)){r.innerHTML=`${r.innerHTML}${u}`;return}nh(r),e.innerHTML=`${a}${e.innerHTML}${u}`}}withPatchedRenderer(e){let t=e=>function(){let t=e(...arguments);return"\n"===t?t:"\n"===t[t.length-1]?t.slice(0,-1):t};return e.renderer.rules.hardbreak=t(e.renderer.rules.hardbreak),e.renderer.rules.softbreak=t(e.renderer.rules.softbreak),e.renderer.rules.fence=t(e.renderer.rules.fence),e.renderer.rules.code_block=t(e.renderer.rules.code_block),e.renderer.renderToken=t(e.renderer.renderToken.bind(e.renderer)),e}}let nO=f.YY.create({name:"markdownClipboard",addOptions:()=>({transformPastedText:!1,transformCopiedText:!1}),addProseMirrorPlugins(){return[new r5.k_({key:new r5.hs("markdownClipboard"),props:{clipboardTextParser:(e,t,r)=>{if(r||!this.options.transformPastedText)return null;let n=this.editor.storage.markdown.parser.parse(e,{inline:!0});return m.S4.fromSchema(this.editor.schema).parseSlice(na(n),{preserveWhitespace:!0,context:t})},clipboardTextSerializer:e=>this.options.transformCopiedText?this.editor.storage.markdown.serializer.serialize(e.content):null}})]}}),nz=f.YY.create({name:"markdown",priority:50,addOptions:()=>({html:!0,tightLists:!0,tightListClass:"tight",bulletListMarker:"-",linkify:!1,breaks:!1,transformPastedText:!1,transformCopiedText:!1}),addCommands(){let e=f.XO.Commands.config.addCommands();return{setContent:(t,r)=>n=>e.setContent(n.editor.storage.markdown.parser.parse(t),r)(n),insertContentAt:(t,r,n)=>i=>e.insertContentAt(t,i.editor.storage.markdown.parser.parse(r,{inline:!0}),n)(i)}},onBeforeCreate(){this.editor.storage.markdown={options:{...this.options},parser:new nR(this.editor,this.options),serializer:new nN(this.editor),getMarkdown:()=>this.editor.storage.markdown.serializer.serialize(this.editor.state.doc)},this.editor.options.initialContent=this.editor.options.content,this.editor.options.content=this.editor.storage.markdown.parser.parse(this.editor.options.content)},onCreate(){this.editor.options.content=this.editor.options.initialContent,delete this.editor.options.initialContent},addStorage:()=>({}),addExtensions(){return[r9.configure({tight:this.options.tightLists,tightClass:this.options.tightListClass}),nO.configure({transformPastedText:this.options.transformPastedText,transformCopiedText:this.options.transformCopiedText})]}})},27050:(e,t,r)=>{"use strict";function n(e){this.content=e}r.d(t,{S4:()=>el,ZF:()=>ew,FK:()=>l,CU:()=>h,sX:()=>er,bP:()=>I,u$:()=>D,vI:()=>d,Sj:()=>en,Ji:()=>p}),n.prototype={constructor:n,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,r){var i=r&&r!=e?this.remove(r):this,s=i.find(e),o=i.content.slice();return -1==s?o.push(r||e,t):(o[s+1]=t,r&&(o[s]=r)),new n(o)},remove:function(e){var t=this.find(e);if(-1==t)return this;var r=this.content.slice();return r.splice(t,2),new n(r)},addToStart:function(e,t){return new n([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var r=this.remove(e).content.slice();return r.push(e,t),new n(r)},addBefore:function(e,t,r){var i=this.remove(t),s=i.content.slice(),o=i.find(e);return s.splice(-1==o?s.length:o,0,t,r),new n(s)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=n.from(e)).size?new n(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=n.from(e)).size?new n(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=n.from(e);for(var r=0;r<e.content.length;r+=2)t=t.remove(e.content[r]);return t},toObject:function(){var e={};return this.forEach(function(t,r){e[t]=r}),e},get size(){return this.content.length>>1}},n.from=function(e){if(e instanceof n)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new n(t)};let i=n;function s(e,t,r){for(let n=0;;n++){if(n==e.childCount||n==t.childCount)return e.childCount==t.childCount?null:r;let i=e.child(n),o=t.child(n);if(i==o){r+=i.nodeSize;continue}if(!i.sameMarkup(o))return r;if(i.isText&&i.text!=o.text){for(let e=0;i.text[e]==o.text[e];e++)r++;return r}if(i.content.size||o.content.size){let e=s(i.content,o.content,r+1);if(null!=e)return e}r+=i.nodeSize}}function o(e,t,r,n){for(let i=e.childCount,s=t.childCount;;){if(0==i||0==s)return i==s?null:{a:r,b:n};let l=e.child(--i),a=t.child(--s),u=l.nodeSize;if(l==a){r-=u,n-=u;continue}if(!l.sameMarkup(a))return{a:r,b:n};if(l.isText&&l.text!=a.text){let e=0,t=Math.min(l.text.length,a.text.length);for(;e<t&&l.text[l.text.length-e-1]==a.text[a.text.length-e-1];)e++,r--,n--;return{a:r,b:n}}if(l.content.size||a.content.size){let e=o(l.content,a.content,r-1,n-1);if(e)return e}r-=u,n-=u}}class l{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,r,n=0,i){for(let s=0,o=0;o<t;s++){let l=this.content[s],a=o+l.nodeSize;if(a>e&&!1!==r(l,n+o,i||null,s)&&l.content.size){let i=o+1;l.nodesBetween(Math.max(0,e-i),Math.min(l.content.size,t-i),r,n+i)}o=a}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,n){let i="",s=!0;return this.nodesBetween(e,t,(o,l)=>{let a=o.isText?o.text.slice(Math.max(e,l)-l,t-l):o.isLeaf?n?"function"==typeof n?n(o):n:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&a||o.isTextblock)&&r&&(s?s=!1:i+=r),i+=a},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,n=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(n[n.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new l(n,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let r=[],n=0;if(t>e)for(let i=0,s=0;s<t;i++){let o=this.content[i],l=s+o.nodeSize;l>e&&((s<e||l>t)&&(o=o.isText?o.cut(Math.max(0,e-s),Math.min(o.text.length,t-s)):o.cut(Math.max(0,e-s-1),Math.min(o.content.size,t-s-1))),r.push(o),n+=o.nodeSize),s=l}return new l(r,n)}cutByIndex(e,t){return e==t?l.empty:0==e&&t==this.content.length?this:new l(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let n=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return n[e]=t,new l(n,i)}addToStart(e){return new l([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new l(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let n=this.content[t];e(n,r,t),r+=n.nodeSize}}findDiffStart(e,t=0){return s(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return o(this,e,t,r)}findIndex(e){if(0==e)return u(0,e);if(e==this.size)return u(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let n=r+this.child(t).nodeSize;if(n>=e){if(n==e)return u(t+1,n);return u(t,r)}r=n}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return l.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new l(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return l.empty;let t,r=0;for(let n=0;n<e.length;n++){let i=e[n];r+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(t||(t=e.slice(0,n)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new l(t||e,r)}static from(e){if(!e)return l.empty;if(e instanceof l)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new l([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}l.empty=new l([],0);let a={index:0,offset:0};function u(e,t){return a.index=e,a.offset=t,a}function c(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!c(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!c(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}class h{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&c(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw RangeError(`There is no mark type ${t.type} in this schema`);let n=r.create(t.attrs);return r.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return h.none;if(e instanceof h)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}h.none=[];class d extends Error{}class p{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=m(this.content,e+this.openStart,t);return r&&new p(r,this.openStart,this.openEnd)}removeBetween(e,t){return new p(f(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return p.empty;let r=t.openStart||0,n=t.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw RangeError("Invalid input for Slice.fromJSON");return new p(l.fromJSON(e,t.content),r,n)}static maxOpen(e,t=!0){let r=0,n=0;for(let n=e.firstChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)n++;return new p(e,r,n)}}function f(e,t,r){let{index:n,offset:i}=e.findIndex(t),s=e.maybeChild(n),{index:o,offset:l}=e.findIndex(r);if(i==t||s.isText){if(l!=r&&!e.child(o).isText)throw RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(r))}if(n!=o)throw RangeError("Removing non-flat range");return e.replaceChild(n,s.copy(f(s.content,t-i-1,r-i-1)))}function m(e,t,r,n){let{index:i,offset:s}=e.findIndex(t),o=e.maybeChild(i);if(s==t||o.isText)return n&&!n.canReplace(i,i,r)?null:e.cut(0,t).append(r).append(e.cut(t));let l=m(o.content,t-s-1,r,o);return l&&e.replaceChild(i,o.copy(l))}function g(e,t,r){if(r.openStart>e.depth)throw new d("Inserted content deeper than insertion position");if(e.depth-r.openStart!=t.depth-r.openEnd)throw new d("Inconsistent open depths");return _(e,t,r,0)}function _(e,t,r,n){let i=e.index(n),s=e.node(n);if(i==t.index(n)&&n<e.depth-r.openStart){let o=_(e,t,r,n+1);return s.copy(s.content.replaceChild(i,o))}if(!r.content.size)return x(s,C(e,t,n));if(r.openStart||r.openEnd||e.depth!=n||t.depth!=n){let{start:i,end:o}=A(r,e);return x(s,v(e,i,o,t,n))}{let n=e.parent,i=n.content;return x(n,i.cut(0,e.parentOffset).append(r.content).append(i.cut(t.parentOffset)))}}function y(e,t){if(!t.type.compatibleContent(e.type))throw new d("Cannot join "+t.type.name+" onto "+e.type.name)}function k(e,t,r){let n=e.node(r);return y(n,t.node(r)),n}function b(e,t){let r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function w(e,t,r,n){let i=(t||e).node(r),s=0,o=t?t.index(r):i.childCount;e&&(s=e.index(r),e.depth>r?s++:e.textOffset&&(b(e.nodeAfter,n),s++));for(let e=s;e<o;e++)b(i.child(e),n);t&&t.depth==r&&t.textOffset&&b(t.nodeBefore,n)}function x(e,t){return e.type.checkContent(t),e.copy(t)}function v(e,t,r,n,i){let s=e.depth>i&&k(e,t,i+1),o=n.depth>i&&k(r,n,i+1),a=[];return w(null,e,i,a),s&&o&&t.index(i)==r.index(i)?(y(s,o),b(x(s,v(e,t,r,n,i+1)),a)):(s&&b(x(s,C(e,t,i+1)),a),w(t,r,i,a),o&&b(x(o,C(r,n,i+1)),a)),w(n,null,i,a),new l(a)}function C(e,t,r){let n=[];return w(null,e,r,n),e.depth>r&&b(x(k(e,t,r+1),C(e,t,r+1)),n),w(t,null,r,n),new l(n)}function A(e,t){let r=t.depth-e.openStart,n=t.node(r).copy(e.content);for(let e=r-1;e>=0;e--)n=t.node(e).copy(l.from(n));return{start:n.resolveNoCache(e.openStart+r),end:n.resolveNoCache(n.content.size-e.openEnd-r)}}p.empty=new p(l.empty,0,0);class E{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=e.child(t);return r?e.child(t).cut(r):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[3*t],n=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)n+=r.child(t).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return h.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),n=e.maybeChild(t);if(!r){let e=r;r=n,n=e}let i=r.marks;for(var s=0;s<i.length;s++)!1!==i[s].type.spec.inclusive||n&&i[s].isInSet(n.marks)||(i=i[s--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)!1!==r[i].type.spec.inclusive||n&&r[i].isInSet(n.marks)||(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new D(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let r=[],n=0,i=t;for(let t=e;;){let{index:e,offset:s}=t.content.findIndex(i),o=i-s;if(r.push(t,e,n+s),!o||(t=t.child(e)).isText)break;i=o-1,n+=s+1}return new E(t,r,i)}static resolveCached(e,t){let r=T.get(e);if(r)for(let e=0;e<r.elts.length;e++){let n=r.elts[e];if(n.pos==t)return n}else T.set(e,r=new S);let n=r.elts[r.i]=E.resolve(e,t);return r.i=(r.i+1)%M,n}}class S{constructor(){this.elts=[],this.i=0}}let M=12,T=new WeakMap;class D{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let F=Object.create(null);class I{constructor(e,t,r,n=h.none){this.type=e,this.attrs=t,this.marks=n,this.content=r||l.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,n=0){this.content.nodesBetween(e,t,r,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,n){return this.content.textBetween(e,t,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&c(this.attrs,t||e.defaultAttrs||F)&&h.sameSet(this.marks,r||h.none)}copy(e=null){return e==this.content?this:new I(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new I(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return p.empty;let n=this.resolve(e),i=this.resolve(t),s=r?0:n.sharedDepth(t),o=n.start(s);return new p(n.node(s).content.cut(n.pos-o,i.pos-o),n.depth-s,i.depth-s)}replace(e,t,r){return g(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:n}=t.content.findIndex(e);if(!(t=t.maybeChild(r)))return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let n=this.content.child(t-1);return{node:n,index:t-1,offset:r-n.nodeSize}}resolve(e){return E.resolveCached(this,e)}resolveNoCache(e){return E.resolve(this,e)}rangeHasMark(e,t,r){let n=!1;return t>e&&this.nodesBetween(e,t,e=>(r.isInSet(e.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),N(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=l.empty,n=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,n,i),o=s&&s.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=n;e<i;e++)if(!this.type.allowsMarks(r.child(e).marks))return!1;return!0}canReplaceWith(e,t,r,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,t);return!!s&&s.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=h.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!h.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let r;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,r)}let n=l.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,n,r);return i.type.checkAttrs(i.attrs),i}}I.prototype.text=void 0;class L extends I{constructor(e,t,r,n){if(super(e,t,null,n),!r)throw RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):N(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new L(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new L(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function N(e,t){for(let r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}class R{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new O(e,t);if(null==r.next)return R.empty;let n=z(r);r.next&&r.err("Unexpected trailing text");let i=J(U(n));return K(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let n=this;for(let i=t;n&&i<r;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let n=[this];function i(s,o){let a=s.matchFragment(e,r);if(a&&(!t||a.validEnd))return l.from(o.map(e=>e.createAndFill()));for(let e=0;e<s.next.length;e++){let{type:t,next:r}=s.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==n.indexOf(r)){n.push(r);let e=i(r,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(e)){let e=[];for(let t=n;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:s,next:o}=i.next[e];s.isLeaf||s.hasRequiredAttrs()||s.name in t||n.type&&!o.validEnd||(r.push({match:s.contentMatch,type:s,via:n}),t[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let n=0;n<r.next.length;n++)-1==e.indexOf(r.next[n].next)&&t(r.next[n].next)}return t(this),e.map((t,r)=>{let n=r+(t.validEnd?"*":" ")+" ";for(let r=0;r<t.next.length;r++)n+=(r?", ":"")+t.next[r].type.name+"->"+e.indexOf(t.next[r].next);return n}).join("\n")}}R.empty=new R(!0);class O{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function z(e){let t=[];do t.push(P(e));while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function P(e){let t=[];do t.push($(e));while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function $(e){let t=H(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=q(e,t);else break;return t}function B(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function q(e,t){let r=B(e),n=r;return e.eat(",")&&(n="}"!=e.next?B(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:t}}function j(e,t){let r=e.nodeTypes,n=r[t];if(n)return[n];let i=[];for(let e in r){let n=r[e];n.isInGroup(t)&&i.push(n)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i}function H(e){if(e.eat("(")){let t=z(e);return e.eat(")")||e.err("Missing closing paren"),t}if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=j(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}}function U(e){let t=[[]];return i(s(e,0),r()),t;function r(){return t.push([])-1}function n(e,r,n){let i={term:n,to:r};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function s(e,t){if("choice"==e.type)return e.exprs.reduce((e,r)=>e.concat(s(r,t)),[]);if("seq"==e.type)for(let n=0;;n++){let o=s(e.exprs[n],t);if(n==e.exprs.length-1)return o;i(o,t=r())}else if("star"==e.type){let o=r();return n(t,o),i(s(e.expr,o),o),[n(o)]}else if("plus"==e.type){let o=r();return i(s(e.expr,t),o),i(s(e.expr,o),o),[n(o)]}else if("opt"==e.type)return[n(t)].concat(s(e.expr,t));else if("range"==e.type){let o=t;for(let t=0;t<e.min;t++){let t=r();i(s(e.expr,o),t),o=t}if(-1==e.max)i(s(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=r();n(o,t),i(s(e.expr,o),t),o=t}return[n(o)]}else if("name"==e.type)return[n(t,void 0,e.value)];else throw Error("Unknown expr type")}}function V(e,t){return t-e}function W(e,t){let r=[];return n(t),r.sort(V);function n(t){let i=e[t];if(1==i.length&&!i[0].term)return n(i[0].to);r.push(t);for(let e=0;e<i.length;e++){let{term:t,to:s}=i[e];t||-1!=r.indexOf(s)||n(s)}}}function J(e){let t=Object.create(null);return r(W(e,0));function r(n){let i=[];n.forEach(t=>{e[t].forEach(({term:t,to:r})=>{let n;if(t){for(let e=0;e<i.length;e++)i[e][0]==t&&(n=i[e][1]);W(e,r).forEach(e=>{n||i.push([t,n=[]]),-1==n.indexOf(e)&&n.push(e)})}})});let s=t[n.join(",")]=new R(n.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let n=i[e][1].sort(V);s.next.push({type:i[e][0],next:t[n.join(",")]||r(n)})}return s}}function K(e,t){for(let r=0,n=[e];r<n.length;r++){let e=n[r],i=!e.validEnd,s=[];for(let t=0;t<e.next.length;t++){let{type:r,next:o}=e.next[t];s.push(r.name),i&&!(r.isText||r.hasRequiredAttrs())&&(i=!1),-1==n.indexOf(o)&&n.push(o)}i&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function G(e){let t=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;t[r]=n.default}return t}function Z(e,t){let r=Object.create(null);for(let n in e){let i=t&&t[n];if(void 0===i){let t=e[n];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+n)}r[n]=i}return r}function X(e,t,r,n){for(let n in t)if(!(n in e))throw RangeError(`Unsupported attribute ${n} for ${r} of type ${n}`);for(let r in e){let n=e[r];n.validate&&n.validate(t[r])}}function Y(e,t){let r=Object.create(null);if(t)for(let n in t)r[n]=new et(e,n,t[n]);return r}class Q{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Y(e,r.attrs),this.defaultAttrs=G(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==R.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Z(this.attrs,e)}create(e=null,t,r){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new I(this,this.computeAttrs(e),l.from(t),h.setFrom(r))}createChecked(e=null,t,r){return t=l.from(t),this.checkContent(t),new I(this,this.computeAttrs(e),t,h.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),(t=l.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let n=this.contentMatch.matchFragment(t),i=n&&n.fillBefore(l.empty,!0);return i?new I(this,e,t.append(i),h.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){X(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:h.none:e}static compile(e,t){let r=Object.create(null);e.forEach((e,n)=>r[e]=new Q(e,t,n));let n=t.spec.topNode||"doc";if(!r[n])throw RangeError("Schema is missing its top node type ('"+n+"')");if(!r.text)throw RangeError("Every schema needs a 'text' type");for(let e in r.text.attrs)throw RangeError("The text node type should not have attributes");return r}}function ee(e,t,r){let n=r.split("|");return r=>{let i=null===r?"null":typeof r;if(0>n.indexOf(i))throw RangeError(`Expected value of type ${n} for attribute ${t} on type ${e}, got ${i}`)}}class et{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?ee(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class er{constructor(e,t,r,n){this.name=e,this.rank=t,this.schema=r,this.spec=n,this.attrs=Y(e,n.attrs),this.excluded=null;let i=G(this.attrs);this.instance=i?new h(this,i):null}create(e=null){return!e&&this.instance?this.instance:new h(this,Z(this.attrs,e))}static compile(e,t){let r=Object.create(null),n=0;return e.forEach((e,i)=>r[e]=new er(e,n++,t,i)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){X(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class en{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=i.from(e.nodes),t.marks=i.from(e.marks||{}),this.nodes=Q.compile(this.spec.nodes,this),this.marks=er.compile(this.spec.marks,this);let r=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],n=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=r[n]||(r[n]=R.parse(n,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?ei(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],r=t.spec.excludes;t.excluded=null==r?[t]:""==r?[]:ei(this,r.split(" "))}this.nodeFromJSON=e=>I.fromJSON(this,e),this.markFromJSON=e=>h.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,n){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof Q){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,r,n)}text(e,t){let r=this.nodes.text;return new L(r,r.defaultAttrs,e,h.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function ei(e,t){let r=[];for(let n=0;n<t.length;n++){let i=t[n],s=e.marks[i],o=s;if(s)r.push(s);else for(let t in e.marks){let n=e.marks[t];("_"==i||n.spec.group&&n.spec.group.split(" ").indexOf(i)>-1)&&r.push(o=n)}if(!o)throw SyntaxError("Unknown mark type: '"+t[n]+"'")}return r}function es(e){return null!=e.tag}function eo(e){return null!=e.style}class el{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(e=>{if(es(e))this.tags.push(e);else if(eo(e)){let t=/[^=]*/.exec(e.style)[0];0>r.indexOf(t)&&r.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let r=e.nodes[t.node];return r.contentMatch.matchType(r)})}parse(e,t={}){let r=new eg(this,t,!1);return r.addAll(e,h.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new eg(this,t,!0);return r.addAll(e,h.none,t.from,t.to),p.maxOpen(r.finish())}matchTag(e,t,r){for(let n=r?this.tags.indexOf(r)+1:0;n<this.tags.length;n++){let r=this.tags[n];if(ey(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}matchStyle(e,t,r,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let n=this.styles[i],s=n.style;if(0==s.indexOf(e)&&(!n.context||r.matchesContext(n.context))&&(!(s.length>e.length)||61==s.charCodeAt(e.length)&&s.slice(e.length+1)==t)){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let t=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n<t.length;n++){let e=t[n];if((null==e.priority?50:e.priority)<r)break}t.splice(n,0,e)}for(let t in e.marks){let n=e.marks[t].spec.parseDOM;n&&n.forEach(e=>{r(e=ek(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let n=e.nodes[t].spec.parseDOM;n&&n.forEach(e=>{r(e=ek(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new el(e,el.schemaRules(e)))}}let ea={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},eu={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ec={ol:!0,ul:!0},eh=1,ed=2,ep=4;function ef(e,t,r){return null!=t?(t?eh:0)|("full"===t?ed:0):e&&"pre"==e.whitespace?eh|ed:r&~ep}class em{constructor(e,t,r,n,i,s){this.type=e,this.attrs=t,this.marks=r,this.solid=n,this.options=s,this.content=[],this.activeMarks=h.none,this.match=i||(s&ep?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(l.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,r;return(r=t.findWrapping(e.type))?(this.match=t,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&eh)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let r=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-t[0].length))}}let t=l.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(l.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ea.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class eg{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n=t.topNode,i,s=ef(null,t.preserveWhitespace,0)|(r?ep:0);i=n?new em(n.type,n.attrs,h.none,!0,t.topMatch||n.type.contentMatch,s):r?new em(null,null,h.none,!0,null,s):new em(e.schema.topNodeType,null,h.none,!0,null,s),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,n=this.top,i=n.options&ed?"full":this.localPreserveWS||(n.options&eh)>0,{schema:s}=this.parser;if("full"===i||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if("full"===i)r=r.replace(/\r\n?/g,"\n");else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let e=r.split(/\r?\n|\r/);for(let r=0;r<e.length;r++)r&&this.insertNode(s.linebreakReplacement.create(),t,!0),e[r]&&this.insertNode(s.text(e[r]),t,!/\S/.test(e[r]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let t=n.content[n.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let n=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),o;ec.hasOwnProperty(s)&&this.parser.normalizeLists&&e_(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,r));n:if(l?l.ignore:eu.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,t);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let r,n=this.needsBlock;if(ea.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),r=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break n}let o=l&&l.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),r&&this.sync(i),this.needsBlock=n}else{let r=this.readStyles(e,t);r&&this.addElementByRule(e,l,r,!1===l.consuming?o:void 0)}this.localPreserveWS=n}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let n=this.parser.matchedStyles[e],i=r.getPropertyValue(n);if(i)for(let e;;){let r=this.parser.matchStyle(n,i,this,e);if(!r)break;if(r.ignore)return null;if(t=r.clearMark?t.filter(e=>!r.clearMark(e)):t.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1===r.consuming)e=r;else break}}return t}addElementByRule(e,t,r,n){let i,s;if(t.node)if((s=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(s.create(t.attrs),r,"BR"==e.nodeName)||this.leafFallback(e,r);else{let e=this.enter(s,t.attrs||null,r,t.preserveWhitespace);e&&(i=!0,r=e)}else{let e=this.parser.schema.marks[t.mark];r=r.concat(e.create(t.attrs))}let o=this.top;if(s&&s.isLeaf)this.findInside(e);else if(n)this.addElement(e,r,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,r,!1));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n,r),this.findAround(e,n,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,r,n){let i=r||0;for(let s=r?e.childNodes[r]:e.firstChild,o=null==n?null:e.childNodes[n];s!=o;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,t);this.findAtPoint(e,i)}findPlace(e,t,r){let n,i;for(let t=this.open,s=0;t>=0;t--){let o=this.nodes[t],l=o.findWrapping(e);if(l&&(!n||n.length>l.length+s)&&(n=l,i=o,!l.length))break;if(o.solid){if(r)break;s+=2}}if(!n)return null;this.sync(i);for(let e=0;e<n.length;e++)t=this.enterInner(n[e],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let n=this.findPlace(e,t,r);if(n){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let r=h.none;for(let i of n.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):eb(i.type,e.type))&&(r=i.addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r,n){let i=this.findPlace(e.create(t),r,!1);return i&&(i=this.enterInner(e,t,r,!0,n)),i}enterInner(e,t,r,n=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let o=ef(e,i,s.options);s.options&ep&&0==s.content.length&&(o|=ep);let l=h.none;return r=r.filter(t=>(s.type?!s.type.allowsMarkType(t.type):!eb(t.type,e))||(l=t.addToSet(l),!1)),this.nodes.push(new em(e,t,l,n,null,o)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=eh);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let t=r.length-1;t>=0;t--)e+=r[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)null==this.find[n].pos&&1==e.nodeType&&e.contains(this.find[n].node)&&t.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+ +!n,s=(e,o)=>{for(;e>=0;e--){let l=t[e];if(""==l){if(e==t.length-1||0==e)continue;for(;o>=i;o--)if(s(e-1,o))return!0;return!1}{let e=o>0||0==o&&n?this.nodes[o].type:r&&o>=i?r.node(o-i).type:null;if(!e||e.name!=l&&!e.isInGroup(l))return!1;o--}}return!0};return s(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}}function e_(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&ec.hasOwnProperty(e)&&r?(r.appendChild(t),t=r):"li"==e?r=t:e&&(r=null)}}function ey(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ek(e){let t={};for(let r in e)t[r]=e[r];return t}function eb(e,t){let r=t.schema.nodes;for(let n in r){let i=r[n];if(!i.allowsMarkType(e))continue;let s=[],o=e=>{s.push(e);for(let r=0;r<e.edgeCount;r++){let{type:n,next:i}=e.edge(r);if(n==t||0>s.indexOf(i)&&o(i))return!0}};if(o(i.contentMatch))return!0}}class ew{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=ev(t).createDocumentFragment());let n=r,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let r=0,s=0;for(;r<i.length&&s<e.marks.length;){let t=e.marks[s];if(!this.marks[t.type.name]){s++;continue}if(!t.eq(i[r][0])||!1===t.type.spec.spanning)break;r++,s++}for(;r<i.length;)n=i.pop()[1];for(;s<e.marks.length;){let r=e.marks[s++],o=this.serializeMark(r,e.isInline,t);o&&(i.push([r,n]),n.appendChild(o.dom),n=o.contentDOM||o.dom)}}n.appendChild(this.serializeNodeInner(e,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:n}=eS(ev(t),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let n=this.marks[e.type.name];return n&&eS(ev(r),n(e,t),null,e.attrs)}static renderSpec(e,t,r=null,n){return eS(e,t,r,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ew(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=ex(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return ex(e.marks)}}function ex(e){let t={};for(let r in e){let n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function ev(e){return e.document||window.document}let eC=new WeakMap;function eA(e){let t=eC.get(e);return void 0===t&&eC.set(e,t=eE(e)),t}function eE(e){let t=null;function r(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(let t=0;t<e.length;t++)r(e[t]);else for(let t in e)r(e[t])}return r(e),t}function eS(e,t,r,n){let i;if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let s=t[0],o;if("string"!=typeof s)throw RangeError("Invalid array passed to renderSpec");if(n&&(o=eA(n))&&o.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let l=s.indexOf(" ");l>0&&(r=s.slice(0,l),s=s.slice(l+1));let a=r?e.createElementNS(r,s):e.createElement(s),u=t[1],c=1;if(u&&"object"==typeof u&&null==u.nodeType&&!Array.isArray(u)){for(let e in c=2,u)if(null!=u[e]){let t=e.indexOf(" ");t>0?a.setAttributeNS(e.slice(0,t),e.slice(t+1),u[e]):"style"==e&&a.style?a.style.cssText=u[e]:a.setAttribute(e,u[e])}}for(let s=c;s<t.length;s++){let o=t[s];if(0===o){if(s<t.length-1||s>c)throw RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:t,contentDOM:s}=eS(e,o,r,n);if(a.appendChild(t),s){if(i)throw RangeError("Multiple content holes");i=s}}}return{dom:a,contentDOM:i}}},31794:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]],s=(0,n.A)("heading-1",i)},37595:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],s=(0,n.A)("layout-grid",i)},37795:(e,t,r)=>{"use strict";r.d(t,{A:()=>B});var n=r(82159),i=(e,t)=>{if("slot"===e)return 0;if(e instanceof Function)return e(t);let{children:r,...n}=null!=t?t:{};if("svg"===e)throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,n,r]},s=/^\s*>\s$/,o=n.bP.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return i("blockquote",{...(0,n.KV)(this.options.HTMLAttributes,e),children:i("slot",{})})},parseMarkdown:(e,t)=>{var r;let n=null!=(r=t.parseBlockChildren)?r:t.parseChildren;return t.createNode("blockquote",void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return"";let r=">",n=[];return e.content.forEach((e,i)=>{var s,o;let l=(null!=(o=null==(s=t.renderChild)?void 0:s.call(t,e,i))?o:t.renderChildren([e])).split("\n").map(e=>""===e.trim()?r:`${r} ${e}`);n.push(l.join("\n"))}),n.join(`
|
|
12
|
+
`,t.outerHTML}let ny=f.bP.create({name:"blockquote"}).extend({addStorage:()=>({markdown:{serialize:r2.nodes.blockquote,parse:{}}})}),nk=f.bP.create({name:"bulletList"}).extend({addStorage:()=>({markdown:{serialize(e,t){return e.renderList(t," ",()=>(this.editor.storage.markdown.options.bulletListMarker||"-")+" ")},parse:{}}})}),nb=f.bP.create({name:"codeBlock"}).extend({addStorage:()=>({markdown:{serialize(e,t){e.write("```"+(t.attrs.language||"")+"\n"),e.text(t.textContent,!1),e.ensureNewLine(),e.write("```"),e.closeBlock(t)},parse:{setup(e){var t;e.set({langPrefix:null!=(t=this.options.languageClassPrefix)?t:"language-"})},updateDOM(e){e.innerHTML=e.innerHTML.replace(/\n<\/code><\/pre>/g,"</code></pre>")}}}})}),nw=f.bP.create({name:"hardBreak"}).extend({addStorage:()=>({markdown:{serialize(e,t,r,n){for(let i=n+1;i<r.childCount;i++)if(r.child(i).type!=t.type)return void e.write(e.inTable?nm.storage.markdown.serialize.call(this,e,t,r):"\\\n")},parse:{}}})}),nx=f.bP.create({name:"heading"}).extend({addStorage:()=>({markdown:{serialize:r2.nodes.heading,parse:{}}})}),nv=f.bP.create({name:"horizontalRule"}).extend({addStorage:()=>({markdown:{serialize:r2.nodes.horizontal_rule,parse:{}}})}),nC=f.bP.create({name:"image"}).extend({addStorage:()=>({markdown:{serialize:r2.nodes.image,parse:{}}})}),nA=f.bP.create({name:"listItem"}).extend({addStorage:()=>({markdown:{serialize:r2.nodes.list_item,parse:{}}})});function nE(e,t,r){let n=0;for(;r-n>0&&t.child(r-n-1).type.name===e.type.name;n++);return n}let nS=f.bP.create({name:"orderedList"}).extend({addStorage:()=>({markdown:{serialize(e,t,r,n){let i=t.attrs.start||1,s=String(i+t.childCount-1).length,o=e.repeat(" ",s+2),l=nE(t,r,n)%2?") ":". ";e.renderList(t,o,t=>{let r=String(i+t);return e.repeat(" ",s-r.length)+r+l})},parse:{}}})}),nM=f.bP.create({name:"paragraph"}).extend({addStorage:()=>({markdown:{serialize:r2.nodes.paragraph,parse:{}}})});function nT(e){var t,r;return null!=(t=null==e||null==(r=e.content)?void 0:r.content)?t:[]}let nD=f.bP.create({name:"table"}).extend({addStorage:()=>({markdown:{serialize(e,t,r){nI(t)?(e.inTable=!0,t.forEach((t,r,n)=>{if(e.write("| "),t.forEach((t,r,n)=>{n&&e.write(" | ");let i=t.firstChild;i.textContent.trim()&&e.renderInline(i)}),e.write(" |"),e.ensureNewLine(),!n){let r=Array.from({length:t.childCount}).map(()=>"---").join(" | ");e.write(`| ${r} |`),e.ensureNewLine()}}),e.closeBlock(t),e.inTable=!1):nm.storage.markdown.serialize.call(this,e,t,r)},parse:{}}})});function nF(e){return e.attrs.colspan>1||e.attrs.rowspan>1}function nI(e){let t=nT(e),r=t[0],n=t.slice(1);return!(nT(r).some(e=>"tableHeader"!==e.type.name||nF(e)||e.childCount>1)||n.some(e=>nT(e).some(e=>"tableHeader"===e.type.name||nF(e)||e.childCount>1)))}let nL=f.bP.create({name:"taskItem"}).extend({addStorage:()=>({markdown:{serialize(e,t){let r=t.attrs.checked?"[x]":"[ ]";e.write(`${r} `),e.renderContent(t)},parse:{updateDOM(e){[...e.querySelectorAll(".task-list-item")].forEach(e=>{let t=e.querySelector("input");e.setAttribute("data-type","taskItem"),t&&(e.setAttribute("data-checked",t.checked),t.remove())})}}}})}),nR=f.bP.create({name:"taskList"}).extend({addStorage:()=>({markdown:{serialize:nk.storage.markdown.serialize,parse:{setup(e){e.use(r6)},updateDOM(e){[...e.querySelectorAll(".contains-task-list")].forEach(e=>{e.setAttribute("data-type","taskList")})}}}})}),nN=[ny,nk,nb,nw,nx,nv,nm,nC,nA,nS,nM,nD,nL,nR,f.bP.create({name:"text"}).extend({addStorage:()=>({markdown:{serialize(e,t){e.text(nd(t.text))},parse:{}}})}),f.CU.create({name:"bold"}).extend({addStorage:()=>({markdown:{serialize:r2.marks.strong,parse:{}}})}),f.CU.create({name:"code"}).extend({addStorage:()=>({markdown:{serialize:r2.marks.code,parse:{}}})}),nu,f.CU.create({name:"italic"}).extend({addStorage:()=>({markdown:{serialize:r2.marks.em,parse:{}}})}),f.CU.create({name:"link"}).extend({addStorage:()=>({markdown:{serialize:r2.marks.link,parse:{}}})}),f.CU.create({name:"strike"}).extend({addStorage:()=>({markdown:{serialize:{open:"~~",close:"~~",expelEnclosingWhitespace:!0},parse:{}}})})];function nO(e){var t,r;let n=null==(t=e.storage)?void 0:t.markdown,i=null==(r=nN.find(t=>t.name===e.name))?void 0:r.storage.markdown;return n||i?{...i,...n}:null}class nz{constructor(e){ne(this,"editor",null),this.editor=e}serialize(e){let t=new na(this.nodes,this.marks,{hardBreakNodeName:nw.name});return t.renderContent(e),t.out}get nodes(){var e;return{...Object.fromEntries(Object.keys(this.editor.schema.nodes).map(e=>[e,this.serializeNode(nm)])),...Object.fromEntries(null!=(e=this.editor.extensionManager.extensions.filter(e=>"node"===e.type&&this.serializeNode(e)).map(e=>[e.name,this.serializeNode(e)]))?e:[])}}get marks(){var e;return{...Object.fromEntries(Object.keys(this.editor.schema.marks).map(e=>[e,this.serializeMark(nu)])),...Object.fromEntries(null!=(e=this.editor.extensionManager.extensions.filter(e=>"mark"===e.type&&this.serializeMark(e)).map(e=>[e.name,this.serializeMark(e)]))?e:[])}}serializeNode(e){var t;return null==(t=nO(e))||null==(t=t.serialize)?void 0:t.bind({editor:this.editor,options:e.options})}serializeMark(e){var t;let r=null==(t=nO(e))?void 0:t.serialize;return r?{...r,open:"function"==typeof r.open?r.open.bind({editor:this.editor,options:e.options}):r.open,close:"function"==typeof r.close?r.close.bind({editor:this.editor,options:e.options}):r.close}:null}}class nP{constructor(e,t){ne(this,"editor",null),ne(this,"md",null);let{html:r,linkify:n,breaks:i}=t;this.editor=e,this.md=this.withPatchedRenderer(rH({html:r,linkify:n,breaks:i}))}parse(e){let{inline:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e){this.editor.extensionManager.extensions.forEach(e=>{var t;return null==(t=nO(e))||null==(t=t.parse)||null==(t=t.setup)?void 0:t.call({editor:this.editor,options:e.options},this.md)});let r=nh(this.md.render(e));return this.editor.extensionManager.extensions.forEach(e=>{var t;return null==(t=nO(e))||null==(t=t.parse)||null==(t=t.updateDOM)?void 0:t.call({editor:this.editor,options:e.options},r)}),this.normalizeDOM(r,{inline:t,content:e}),r.innerHTML}return e}normalizeDOM(e,t){let{inline:r,content:n}=t;return this.normalizeBlocks(e),e.querySelectorAll("*").forEach(e=>{var t;(null==(t=e.nextSibling)?void 0:t.nodeType)!==Node.TEXT_NODE||e.closest("pre")||(e.nextSibling.textContent=e.nextSibling.textContent.replace(/^\n/,""))}),r&&this.normalizeInline(e,n),e}normalizeBlocks(e){let t=Object.values(this.editor.schema.nodes).filter(e=>e.isBlock).map(e=>{var t;return null==(t=e.spec.parseDOM)?void 0:t.map(e=>e.tag)}).flat().filter(Boolean).join(",");t&&[...e.querySelectorAll(t)].forEach(e=>{e.parentElement.matches("p")&&np(e)})}normalizeInline(e,t){var r,n,i,s,o;if(null!=(r=e.firstElementChild)&&r.matches("p")){let r=e.firstElementChild,{nextElementSibling:l}=r,a=null!=(n=null==(i=t.match(/^\s+/))?void 0:i[0])?n:"",u=l?"":null!=(s=null==(o=t.match(/\s+$/))?void 0:o[0])?s:"";if(t.match(/^\n\n/)){r.innerHTML=`${r.innerHTML}${u}`;return}nf(r),e.innerHTML=`${a}${e.innerHTML}${u}`}}withPatchedRenderer(e){let t=e=>function(){let t=e(...arguments);return"\n"===t?t:"\n"===t[t.length-1]?t.slice(0,-1):t};return e.renderer.rules.hardbreak=t(e.renderer.rules.hardbreak),e.renderer.rules.softbreak=t(e.renderer.rules.softbreak),e.renderer.rules.fence=t(e.renderer.rules.fence),e.renderer.rules.code_block=t(e.renderer.rules.code_block),e.renderer.renderToken=t(e.renderer.renderToken.bind(e.renderer)),e}}let n$=f.YY.create({name:"markdownClipboard",addOptions:()=>({transformPastedText:!1,transformCopiedText:!1}),addProseMirrorPlugins(){return[new r8.k_({key:new r8.hs("markdownClipboard"),props:{clipboardTextParser:(e,t,r)=>{if(r||!this.options.transformPastedText)return null;let n=this.editor.storage.markdown.parser.parse(e,{inline:!0});return m.S4.fromSchema(this.editor.schema).parseSlice(nh(n),{preserveWhitespace:!0,context:t})},clipboardTextSerializer:e=>this.options.transformCopiedText?this.editor.storage.markdown.serializer.serialize(e.content):null}})]}}),nB=f.YY.create({name:"markdown",priority:50,addOptions:()=>({html:!0,tightLists:!0,tightListClass:"tight",bulletListMarker:"-",linkify:!1,breaks:!1,transformPastedText:!1,transformCopiedText:!1}),addCommands(){let e=f.XO.Commands.config.addCommands();return{setContent:(t,r)=>n=>e.setContent(n.editor.storage.markdown.parser.parse(t),r)(n),insertContentAt:(t,r,n)=>i=>e.insertContentAt(t,i.editor.storage.markdown.parser.parse(r,{inline:!0}),n)(i)}},onBeforeCreate(){this.editor.storage.markdown={options:{...this.options},parser:new nP(this.editor,this.options),serializer:new nz(this.editor),getMarkdown:()=>this.editor.storage.markdown.serializer.serialize(this.editor.state.doc)},this.editor.options.initialContent=this.editor.options.content,this.editor.options.content=this.editor.storage.markdown.parser.parse(this.editor.options.content)},onCreate(){this.editor.options.content=this.editor.options.initialContent,delete this.editor.options.initialContent},addStorage:()=>({}),addExtensions(){return[nt.configure({tight:this.options.tightLists,tightClass:this.options.tightListClass}),n$.configure({transformPastedText:this.options.transformPastedText,transformCopiedText:this.options.transformCopiedText})]}})},27050:(e,t,r)=>{"use strict";function n(e){this.content=e}r.d(t,{S4:()=>el,ZF:()=>ew,FK:()=>l,CU:()=>h,sX:()=>er,bP:()=>I,u$:()=>D,vI:()=>d,Sj:()=>en,Ji:()=>p}),n.prototype={constructor:n,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,r){var i=r&&r!=e?this.remove(r):this,s=i.find(e),o=i.content.slice();return -1==s?o.push(r||e,t):(o[s+1]=t,r&&(o[s]=r)),new n(o)},remove:function(e){var t=this.find(e);if(-1==t)return this;var r=this.content.slice();return r.splice(t,2),new n(r)},addToStart:function(e,t){return new n([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var r=this.remove(e).content.slice();return r.push(e,t),new n(r)},addBefore:function(e,t,r){var i=this.remove(t),s=i.content.slice(),o=i.find(e);return s.splice(-1==o?s.length:o,0,t,r),new n(s)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=n.from(e)).size?new n(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=n.from(e)).size?new n(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=n.from(e);for(var r=0;r<e.content.length;r+=2)t=t.remove(e.content[r]);return t},toObject:function(){var e={};return this.forEach(function(t,r){e[t]=r}),e},get size(){return this.content.length>>1}},n.from=function(e){if(e instanceof n)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new n(t)};let i=n;function s(e,t,r){for(let n=0;;n++){if(n==e.childCount||n==t.childCount)return e.childCount==t.childCount?null:r;let i=e.child(n),o=t.child(n);if(i==o){r+=i.nodeSize;continue}if(!i.sameMarkup(o))return r;if(i.isText&&i.text!=o.text){for(let e=0;i.text[e]==o.text[e];e++)r++;return r}if(i.content.size||o.content.size){let e=s(i.content,o.content,r+1);if(null!=e)return e}r+=i.nodeSize}}function o(e,t,r,n){for(let i=e.childCount,s=t.childCount;;){if(0==i||0==s)return i==s?null:{a:r,b:n};let l=e.child(--i),a=t.child(--s),u=l.nodeSize;if(l==a){r-=u,n-=u;continue}if(!l.sameMarkup(a))return{a:r,b:n};if(l.isText&&l.text!=a.text){let e=0,t=Math.min(l.text.length,a.text.length);for(;e<t&&l.text[l.text.length-e-1]==a.text[a.text.length-e-1];)e++,r--,n--;return{a:r,b:n}}if(l.content.size||a.content.size){let e=o(l.content,a.content,r-1,n-1);if(e)return e}r-=u,n-=u}}class l{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,r,n=0,i){for(let s=0,o=0;o<t;s++){let l=this.content[s],a=o+l.nodeSize;if(a>e&&!1!==r(l,n+o,i||null,s)&&l.content.size){let i=o+1;l.nodesBetween(Math.max(0,e-i),Math.min(l.content.size,t-i),r,n+i)}o=a}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,n){let i="",s=!0;return this.nodesBetween(e,t,(o,l)=>{let a=o.isText?o.text.slice(Math.max(e,l)-l,t-l):o.isLeaf?n?"function"==typeof n?n(o):n:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&a||o.isTextblock)&&r&&(s?s=!1:i+=r),i+=a},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,n=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(n[n.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new l(n,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let r=[],n=0;if(t>e)for(let i=0,s=0;s<t;i++){let o=this.content[i],l=s+o.nodeSize;l>e&&((s<e||l>t)&&(o=o.isText?o.cut(Math.max(0,e-s),Math.min(o.text.length,t-s)):o.cut(Math.max(0,e-s-1),Math.min(o.content.size,t-s-1))),r.push(o),n+=o.nodeSize),s=l}return new l(r,n)}cutByIndex(e,t){return e==t?l.empty:0==e&&t==this.content.length?this:new l(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let n=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return n[e]=t,new l(n,i)}addToStart(e){return new l([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new l(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let n=this.content[t];e(n,r,t),r+=n.nodeSize}}findDiffStart(e,t=0){return s(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return o(this,e,t,r)}findIndex(e){if(0==e)return u(0,e);if(e==this.size)return u(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let n=r+this.child(t).nodeSize;if(n>=e){if(n==e)return u(t+1,n);return u(t,r)}r=n}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return l.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new l(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return l.empty;let t,r=0;for(let n=0;n<e.length;n++){let i=e[n];r+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(t||(t=e.slice(0,n)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new l(t||e,r)}static from(e){if(!e)return l.empty;if(e instanceof l)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new l([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}l.empty=new l([],0);let a={index:0,offset:0};function u(e,t){return a.index=e,a.offset=t,a}function c(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!c(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!c(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}class h{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&c(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw RangeError(`There is no mark type ${t.type} in this schema`);let n=r.create(t.attrs);return r.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return h.none;if(e instanceof h)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}h.none=[];class d extends Error{}class p{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=m(this.content,e+this.openStart,t);return r&&new p(r,this.openStart,this.openEnd)}removeBetween(e,t){return new p(f(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return p.empty;let r=t.openStart||0,n=t.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw RangeError("Invalid input for Slice.fromJSON");return new p(l.fromJSON(e,t.content),r,n)}static maxOpen(e,t=!0){let r=0,n=0;for(let n=e.firstChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)n++;return new p(e,r,n)}}function f(e,t,r){let{index:n,offset:i}=e.findIndex(t),s=e.maybeChild(n),{index:o,offset:l}=e.findIndex(r);if(i==t||s.isText){if(l!=r&&!e.child(o).isText)throw RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(r))}if(n!=o)throw RangeError("Removing non-flat range");return e.replaceChild(n,s.copy(f(s.content,t-i-1,r-i-1)))}function m(e,t,r,n){let{index:i,offset:s}=e.findIndex(t),o=e.maybeChild(i);if(s==t||o.isText)return n&&!n.canReplace(i,i,r)?null:e.cut(0,t).append(r).append(e.cut(t));let l=m(o.content,t-s-1,r,o);return l&&e.replaceChild(i,o.copy(l))}function g(e,t,r){if(r.openStart>e.depth)throw new d("Inserted content deeper than insertion position");if(e.depth-r.openStart!=t.depth-r.openEnd)throw new d("Inconsistent open depths");return _(e,t,r,0)}function _(e,t,r,n){let i=e.index(n),s=e.node(n);if(i==t.index(n)&&n<e.depth-r.openStart){let o=_(e,t,r,n+1);return s.copy(s.content.replaceChild(i,o))}if(!r.content.size)return x(s,C(e,t,n));if(r.openStart||r.openEnd||e.depth!=n||t.depth!=n){let{start:i,end:o}=A(r,e);return x(s,v(e,i,o,t,n))}{let n=e.parent,i=n.content;return x(n,i.cut(0,e.parentOffset).append(r.content).append(i.cut(t.parentOffset)))}}function y(e,t){if(!t.type.compatibleContent(e.type))throw new d("Cannot join "+t.type.name+" onto "+e.type.name)}function k(e,t,r){let n=e.node(r);return y(n,t.node(r)),n}function b(e,t){let r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function w(e,t,r,n){let i=(t||e).node(r),s=0,o=t?t.index(r):i.childCount;e&&(s=e.index(r),e.depth>r?s++:e.textOffset&&(b(e.nodeAfter,n),s++));for(let e=s;e<o;e++)b(i.child(e),n);t&&t.depth==r&&t.textOffset&&b(t.nodeBefore,n)}function x(e,t){return e.type.checkContent(t),e.copy(t)}function v(e,t,r,n,i){let s=e.depth>i&&k(e,t,i+1),o=n.depth>i&&k(r,n,i+1),a=[];return w(null,e,i,a),s&&o&&t.index(i)==r.index(i)?(y(s,o),b(x(s,v(e,t,r,n,i+1)),a)):(s&&b(x(s,C(e,t,i+1)),a),w(t,r,i,a),o&&b(x(o,C(r,n,i+1)),a)),w(n,null,i,a),new l(a)}function C(e,t,r){let n=[];return w(null,e,r,n),e.depth>r&&b(x(k(e,t,r+1),C(e,t,r+1)),n),w(t,null,r,n),new l(n)}function A(e,t){let r=t.depth-e.openStart,n=t.node(r).copy(e.content);for(let e=r-1;e>=0;e--)n=t.node(e).copy(l.from(n));return{start:n.resolveNoCache(e.openStart+r),end:n.resolveNoCache(n.content.size-e.openEnd-r)}}p.empty=new p(l.empty,0,0);class E{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=e.child(t);return r?e.child(t).cut(r):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[3*t],n=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)n+=r.child(t).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return h.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),n=e.maybeChild(t);if(!r){let e=r;r=n,n=e}let i=r.marks;for(var s=0;s<i.length;s++)!1!==i[s].type.spec.inclusive||n&&i[s].isInSet(n.marks)||(i=i[s--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)!1!==r[i].type.spec.inclusive||n&&r[i].isInSet(n.marks)||(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new D(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let r=[],n=0,i=t;for(let t=e;;){let{index:e,offset:s}=t.content.findIndex(i),o=i-s;if(r.push(t,e,n+s),!o||(t=t.child(e)).isText)break;i=o-1,n+=s+1}return new E(t,r,i)}static resolveCached(e,t){let r=T.get(e);if(r)for(let e=0;e<r.elts.length;e++){let n=r.elts[e];if(n.pos==t)return n}else T.set(e,r=new S);let n=r.elts[r.i]=E.resolve(e,t);return r.i=(r.i+1)%M,n}}class S{constructor(){this.elts=[],this.i=0}}let M=12,T=new WeakMap;class D{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let F=Object.create(null);class I{constructor(e,t,r,n=h.none){this.type=e,this.attrs=t,this.marks=n,this.content=r||l.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,n=0){this.content.nodesBetween(e,t,r,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,n){return this.content.textBetween(e,t,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&c(this.attrs,t||e.defaultAttrs||F)&&h.sameSet(this.marks,r||h.none)}copy(e=null){return e==this.content?this:new I(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new I(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return p.empty;let n=this.resolve(e),i=this.resolve(t),s=r?0:n.sharedDepth(t),o=n.start(s);return new p(n.node(s).content.cut(n.pos-o,i.pos-o),n.depth-s,i.depth-s)}replace(e,t,r){return g(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:n}=t.content.findIndex(e);if(!(t=t.maybeChild(r)))return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let n=this.content.child(t-1);return{node:n,index:t-1,offset:r-n.nodeSize}}resolve(e){return E.resolveCached(this,e)}resolveNoCache(e){return E.resolve(this,e)}rangeHasMark(e,t,r){let n=!1;return t>e&&this.nodesBetween(e,t,e=>(r.isInSet(e.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),R(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=l.empty,n=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,n,i),o=s&&s.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=n;e<i;e++)if(!this.type.allowsMarks(r.child(e).marks))return!1;return!0}canReplaceWith(e,t,r,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,t);return!!s&&s.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=h.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!h.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let r;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,r)}let n=l.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,n,r);return i.type.checkAttrs(i.attrs),i}}I.prototype.text=void 0;class L extends I{constructor(e,t,r,n){if(super(e,t,null,n),!r)throw RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):R(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new L(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new L(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function R(e,t){for(let r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}class N{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new O(e,t);if(null==r.next)return N.empty;let n=z(r);r.next&&r.err("Unexpected trailing text");let i=J(U(n));return K(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let n=this;for(let i=t;n&&i<r;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let n=[this];function i(s,o){let a=s.matchFragment(e,r);if(a&&(!t||a.validEnd))return l.from(o.map(e=>e.createAndFill()));for(let e=0;e<s.next.length;e++){let{type:t,next:r}=s.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==n.indexOf(r)){n.push(r);let e=i(r,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(e)){let e=[];for(let t=n;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:s,next:o}=i.next[e];s.isLeaf||s.hasRequiredAttrs()||s.name in t||n.type&&!o.validEnd||(r.push({match:s.contentMatch,type:s,via:n}),t[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let n=0;n<r.next.length;n++)-1==e.indexOf(r.next[n].next)&&t(r.next[n].next)}return t(this),e.map((t,r)=>{let n=r+(t.validEnd?"*":" ")+" ";for(let r=0;r<t.next.length;r++)n+=(r?", ":"")+t.next[r].type.name+"->"+e.indexOf(t.next[r].next);return n}).join("\n")}}N.empty=new N(!0);class O{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function z(e){let t=[];do t.push(P(e));while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function P(e){let t=[];do t.push($(e));while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function $(e){let t=H(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=q(e,t);else break;return t}function B(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function q(e,t){let r=B(e),n=r;return e.eat(",")&&(n="}"!=e.next?B(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:t}}function j(e,t){let r=e.nodeTypes,n=r[t];if(n)return[n];let i=[];for(let e in r){let n=r[e];n.isInGroup(t)&&i.push(n)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i}function H(e){if(e.eat("(")){let t=z(e);return e.eat(")")||e.err("Missing closing paren"),t}if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=j(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}}function U(e){let t=[[]];return i(s(e,0),r()),t;function r(){return t.push([])-1}function n(e,r,n){let i={term:n,to:r};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function s(e,t){if("choice"==e.type)return e.exprs.reduce((e,r)=>e.concat(s(r,t)),[]);if("seq"==e.type)for(let n=0;;n++){let o=s(e.exprs[n],t);if(n==e.exprs.length-1)return o;i(o,t=r())}else if("star"==e.type){let o=r();return n(t,o),i(s(e.expr,o),o),[n(o)]}else if("plus"==e.type){let o=r();return i(s(e.expr,t),o),i(s(e.expr,o),o),[n(o)]}else if("opt"==e.type)return[n(t)].concat(s(e.expr,t));else if("range"==e.type){let o=t;for(let t=0;t<e.min;t++){let t=r();i(s(e.expr,o),t),o=t}if(-1==e.max)i(s(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=r();n(o,t),i(s(e.expr,o),t),o=t}return[n(o)]}else if("name"==e.type)return[n(t,void 0,e.value)];else throw Error("Unknown expr type")}}function V(e,t){return t-e}function W(e,t){let r=[];return n(t),r.sort(V);function n(t){let i=e[t];if(1==i.length&&!i[0].term)return n(i[0].to);r.push(t);for(let e=0;e<i.length;e++){let{term:t,to:s}=i[e];t||-1!=r.indexOf(s)||n(s)}}}function J(e){let t=Object.create(null);return r(W(e,0));function r(n){let i=[];n.forEach(t=>{e[t].forEach(({term:t,to:r})=>{let n;if(t){for(let e=0;e<i.length;e++)i[e][0]==t&&(n=i[e][1]);W(e,r).forEach(e=>{n||i.push([t,n=[]]),-1==n.indexOf(e)&&n.push(e)})}})});let s=t[n.join(",")]=new N(n.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let n=i[e][1].sort(V);s.next.push({type:i[e][0],next:t[n.join(",")]||r(n)})}return s}}function K(e,t){for(let r=0,n=[e];r<n.length;r++){let e=n[r],i=!e.validEnd,s=[];for(let t=0;t<e.next.length;t++){let{type:r,next:o}=e.next[t];s.push(r.name),i&&!(r.isText||r.hasRequiredAttrs())&&(i=!1),-1==n.indexOf(o)&&n.push(o)}i&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function G(e){let t=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;t[r]=n.default}return t}function Z(e,t){let r=Object.create(null);for(let n in e){let i=t&&t[n];if(void 0===i){let t=e[n];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+n)}r[n]=i}return r}function X(e,t,r,n){for(let n in t)if(!(n in e))throw RangeError(`Unsupported attribute ${n} for ${r} of type ${n}`);for(let r in e){let n=e[r];n.validate&&n.validate(t[r])}}function Y(e,t){let r=Object.create(null);if(t)for(let n in t)r[n]=new et(e,n,t[n]);return r}class Q{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Y(e,r.attrs),this.defaultAttrs=G(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==N.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Z(this.attrs,e)}create(e=null,t,r){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new I(this,this.computeAttrs(e),l.from(t),h.setFrom(r))}createChecked(e=null,t,r){return t=l.from(t),this.checkContent(t),new I(this,this.computeAttrs(e),t,h.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),(t=l.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let n=this.contentMatch.matchFragment(t),i=n&&n.fillBefore(l.empty,!0);return i?new I(this,e,t.append(i),h.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){X(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:h.none:e}static compile(e,t){let r=Object.create(null);e.forEach((e,n)=>r[e]=new Q(e,t,n));let n=t.spec.topNode||"doc";if(!r[n])throw RangeError("Schema is missing its top node type ('"+n+"')");if(!r.text)throw RangeError("Every schema needs a 'text' type");for(let e in r.text.attrs)throw RangeError("The text node type should not have attributes");return r}}function ee(e,t,r){let n=r.split("|");return r=>{let i=null===r?"null":typeof r;if(0>n.indexOf(i))throw RangeError(`Expected value of type ${n} for attribute ${t} on type ${e}, got ${i}`)}}class et{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?ee(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class er{constructor(e,t,r,n){this.name=e,this.rank=t,this.schema=r,this.spec=n,this.attrs=Y(e,n.attrs),this.excluded=null;let i=G(this.attrs);this.instance=i?new h(this,i):null}create(e=null){return!e&&this.instance?this.instance:new h(this,Z(this.attrs,e))}static compile(e,t){let r=Object.create(null),n=0;return e.forEach((e,i)=>r[e]=new er(e,n++,t,i)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){X(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class en{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=i.from(e.nodes),t.marks=i.from(e.marks||{}),this.nodes=Q.compile(this.spec.nodes,this),this.marks=er.compile(this.spec.marks,this);let r=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],n=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=r[n]||(r[n]=N.parse(n,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?ei(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],r=t.spec.excludes;t.excluded=null==r?[t]:""==r?[]:ei(this,r.split(" "))}this.nodeFromJSON=e=>I.fromJSON(this,e),this.markFromJSON=e=>h.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,n){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof Q){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,r,n)}text(e,t){let r=this.nodes.text;return new L(r,r.defaultAttrs,e,h.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function ei(e,t){let r=[];for(let n=0;n<t.length;n++){let i=t[n],s=e.marks[i],o=s;if(s)r.push(s);else for(let t in e.marks){let n=e.marks[t];("_"==i||n.spec.group&&n.spec.group.split(" ").indexOf(i)>-1)&&r.push(o=n)}if(!o)throw SyntaxError("Unknown mark type: '"+t[n]+"'")}return r}function es(e){return null!=e.tag}function eo(e){return null!=e.style}class el{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(e=>{if(es(e))this.tags.push(e);else if(eo(e)){let t=/[^=]*/.exec(e.style)[0];0>r.indexOf(t)&&r.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let r=e.nodes[t.node];return r.contentMatch.matchType(r)})}parse(e,t={}){let r=new eg(this,t,!1);return r.addAll(e,h.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new eg(this,t,!0);return r.addAll(e,h.none,t.from,t.to),p.maxOpen(r.finish())}matchTag(e,t,r){for(let n=r?this.tags.indexOf(r)+1:0;n<this.tags.length;n++){let r=this.tags[n];if(ey(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}matchStyle(e,t,r,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let n=this.styles[i],s=n.style;if(0==s.indexOf(e)&&(!n.context||r.matchesContext(n.context))&&(!(s.length>e.length)||61==s.charCodeAt(e.length)&&s.slice(e.length+1)==t)){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let t=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n<t.length;n++){let e=t[n];if((null==e.priority?50:e.priority)<r)break}t.splice(n,0,e)}for(let t in e.marks){let n=e.marks[t].spec.parseDOM;n&&n.forEach(e=>{r(e=ek(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let n=e.nodes[t].spec.parseDOM;n&&n.forEach(e=>{r(e=ek(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new el(e,el.schemaRules(e)))}}let ea={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},eu={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ec={ol:!0,ul:!0},eh=1,ed=2,ep=4;function ef(e,t,r){return null!=t?(t?eh:0)|("full"===t?ed:0):e&&"pre"==e.whitespace?eh|ed:r&~ep}class em{constructor(e,t,r,n,i,s){this.type=e,this.attrs=t,this.marks=r,this.solid=n,this.options=s,this.content=[],this.activeMarks=h.none,this.match=i||(s&ep?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(l.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,r;return(r=t.findWrapping(e.type))?(this.match=t,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&eh)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let r=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-t[0].length))}}let t=l.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(l.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ea.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class eg{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n=t.topNode,i,s=ef(null,t.preserveWhitespace,0)|(r?ep:0);i=n?new em(n.type,n.attrs,h.none,!0,t.topMatch||n.type.contentMatch,s):r?new em(null,null,h.none,!0,null,s):new em(e.schema.topNodeType,null,h.none,!0,null,s),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,n=this.top,i=n.options&ed?"full":this.localPreserveWS||(n.options&eh)>0,{schema:s}=this.parser;if("full"===i||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if("full"===i)r=r.replace(/\r\n?/g,"\n");else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let e=r.split(/\r?\n|\r/);for(let r=0;r<e.length;r++)r&&this.insertNode(s.linebreakReplacement.create(),t,!0),e[r]&&this.insertNode(s.text(e[r]),t,!/\S/.test(e[r]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let t=n.content[n.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let n=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),o;ec.hasOwnProperty(s)&&this.parser.normalizeLists&&e_(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,r));n:if(l?l.ignore:eu.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,t);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let r,n=this.needsBlock;if(ea.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),r=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break n}let o=l&&l.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),r&&this.sync(i),this.needsBlock=n}else{let r=this.readStyles(e,t);r&&this.addElementByRule(e,l,r,!1===l.consuming?o:void 0)}this.localPreserveWS=n}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let n=this.parser.matchedStyles[e],i=r.getPropertyValue(n);if(i)for(let e;;){let r=this.parser.matchStyle(n,i,this,e);if(!r)break;if(r.ignore)return null;if(t=r.clearMark?t.filter(e=>!r.clearMark(e)):t.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1===r.consuming)e=r;else break}}return t}addElementByRule(e,t,r,n){let i,s;if(t.node)if((s=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(s.create(t.attrs),r,"BR"==e.nodeName)||this.leafFallback(e,r);else{let e=this.enter(s,t.attrs||null,r,t.preserveWhitespace);e&&(i=!0,r=e)}else{let e=this.parser.schema.marks[t.mark];r=r.concat(e.create(t.attrs))}let o=this.top;if(s&&s.isLeaf)this.findInside(e);else if(n)this.addElement(e,r,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,r,!1));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n,r),this.findAround(e,n,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,r,n){let i=r||0;for(let s=r?e.childNodes[r]:e.firstChild,o=null==n?null:e.childNodes[n];s!=o;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,t);this.findAtPoint(e,i)}findPlace(e,t,r){let n,i;for(let t=this.open,s=0;t>=0;t--){let o=this.nodes[t],l=o.findWrapping(e);if(l&&(!n||n.length>l.length+s)&&(n=l,i=o,!l.length))break;if(o.solid){if(r)break;s+=2}}if(!n)return null;this.sync(i);for(let e=0;e<n.length;e++)t=this.enterInner(n[e],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let n=this.findPlace(e,t,r);if(n){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let r=h.none;for(let i of n.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):eb(i.type,e.type))&&(r=i.addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r,n){let i=this.findPlace(e.create(t),r,!1);return i&&(i=this.enterInner(e,t,r,!0,n)),i}enterInner(e,t,r,n=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let o=ef(e,i,s.options);s.options&ep&&0==s.content.length&&(o|=ep);let l=h.none;return r=r.filter(t=>(s.type?!s.type.allowsMarkType(t.type):!eb(t.type,e))||(l=t.addToSet(l),!1)),this.nodes.push(new em(e,t,l,n,null,o)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=eh);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let t=r.length-1;t>=0;t--)e+=r[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)null==this.find[n].pos&&1==e.nodeType&&e.contains(this.find[n].node)&&t.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+ +!n,s=(e,o)=>{for(;e>=0;e--){let l=t[e];if(""==l){if(e==t.length-1||0==e)continue;for(;o>=i;o--)if(s(e-1,o))return!0;return!1}{let e=o>0||0==o&&n?this.nodes[o].type:r&&o>=i?r.node(o-i).type:null;if(!e||e.name!=l&&!e.isInGroup(l))return!1;o--}}return!0};return s(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}}function e_(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&ec.hasOwnProperty(e)&&r?(r.appendChild(t),t=r):"li"==e?r=t:e&&(r=null)}}function ey(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ek(e){let t={};for(let r in e)t[r]=e[r];return t}function eb(e,t){let r=t.schema.nodes;for(let n in r){let i=r[n];if(!i.allowsMarkType(e))continue;let s=[],o=e=>{s.push(e);for(let r=0;r<e.edgeCount;r++){let{type:n,next:i}=e.edge(r);if(n==t||0>s.indexOf(i)&&o(i))return!0}};if(o(i.contentMatch))return!0}}class ew{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=ev(t).createDocumentFragment());let n=r,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let r=0,s=0;for(;r<i.length&&s<e.marks.length;){let t=e.marks[s];if(!this.marks[t.type.name]){s++;continue}if(!t.eq(i[r][0])||!1===t.type.spec.spanning)break;r++,s++}for(;r<i.length;)n=i.pop()[1];for(;s<e.marks.length;){let r=e.marks[s++],o=this.serializeMark(r,e.isInline,t);o&&(i.push([r,n]),n.appendChild(o.dom),n=o.contentDOM||o.dom)}}n.appendChild(this.serializeNodeInner(e,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:n}=eS(ev(t),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let n=this.marks[e.type.name];return n&&eS(ev(r),n(e,t),null,e.attrs)}static renderSpec(e,t,r=null,n){return eS(e,t,r,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ew(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=ex(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return ex(e.marks)}}function ex(e){let t={};for(let r in e){let n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function ev(e){return e.document||window.document}let eC=new WeakMap;function eA(e){let t=eC.get(e);return void 0===t&&eC.set(e,t=eE(e)),t}function eE(e){let t=null;function r(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(let t=0;t<e.length;t++)r(e[t]);else for(let t in e)r(e[t])}return r(e),t}function eS(e,t,r,n){let i;if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let s=t[0],o;if("string"!=typeof s)throw RangeError("Invalid array passed to renderSpec");if(n&&(o=eA(n))&&o.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let l=s.indexOf(" ");l>0&&(r=s.slice(0,l),s=s.slice(l+1));let a=r?e.createElementNS(r,s):e.createElement(s),u=t[1],c=1;if(u&&"object"==typeof u&&null==u.nodeType&&!Array.isArray(u)){for(let e in c=2,u)if(null!=u[e]){let t=e.indexOf(" ");t>0?a.setAttributeNS(e.slice(0,t),e.slice(t+1),u[e]):"style"==e&&a.style?a.style.cssText=u[e]:a.setAttribute(e,u[e])}}for(let s=c;s<t.length;s++){let o=t[s];if(0===o){if(s<t.length-1||s>c)throw RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:t,contentDOM:s}=eS(e,o,r,n);if(a.appendChild(t),s){if(i)throw RangeError("Multiple content holes");i=s}}}return{dom:a,contentDOM:i}}},31794:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]],s=(0,n.A)("heading-1",i)},37595:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],s=(0,n.A)("layout-grid",i)},37795:(e,t,r)=>{"use strict";r.d(t,{A:()=>B});var n=r(82159),i=(e,t)=>{if("slot"===e)return 0;if(e instanceof Function)return e(t);let{children:r,...n}=null!=t?t:{};if("svg"===e)throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,n,r]},s=/^\s*>\s$/,o=n.bP.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return i("blockquote",{...(0,n.KV)(this.options.HTMLAttributes,e),children:i("slot",{})})},parseMarkdown:(e,t)=>{var r;let n=null!=(r=t.parseBlockChildren)?r:t.parseChildren;return t.createNode("blockquote",void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return"";let r=">",n=[];return e.content.forEach((e,i)=>{var s,o;let l=(null!=(o=null==(s=t.renderChild)?void 0:s.call(t,e,i))?o:t.renderChildren([e])).split("\n").map(e=>""===e.trim()?r:`${r} ${e}`);n.push(l.join("\n"))}),n.join(`
|
|
13
13
|
${r}
|
|
14
14
|
`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,n.tG)({find:s,type:this.type})]}}),l=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,a=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,u=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,c=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,h=n.CU.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return i("strong",{...(0,n.KV)(this.options.HTMLAttributes,e),children:i("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,n.OX)({find:l,type:this.type}),(0,n.OX)({find:u,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:a,type:this.type}),(0,n.Zc)({find:c,type:this.type})]}}),d=/(^|[^`])`([^`]+)`(?!`)$/,p=/(^|[^`])`([^`]+)`(?!`)/g,f=n.CU.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,n.OX)({find:d,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:p,type:this.type})]}}),m=r(76865),g=4,_=/^```([a-z]+)?[\s\n]$/,y=/^~~~([a-z]+)?[\s\n]$/,k=n.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:g,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;let{languageClassPrefix:r}=this.options;if(!r)return null;let n=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(r)).map(e=>e.replace(r,""))[0];return n||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,n.KV)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var r,n;return(null==(r=e.raw)?void 0:r.startsWith("```"))===!1&&(null==(n=e.raw)?void 0:n.startsWith("~~~"))===!1&&"indented"!==e.codeBlockStyle?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var r;let n=(null==(r=e.attrs)?void 0:r.language)||"";return e.content?[`\`\`\`${n}`,t.renderChildren(e.content),"```"].join("\n"):`\`\`\`${n}
|
|
15
15
|
|
|
16
16
|
\`\`\``},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,r=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!r||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let r=null!=(t=this.options.tabSize)?t:g,{state:n}=e,{selection:i}=n,{$from:s,empty:o}=i;if(s.parent.type!==this.type)return!1;let l=" ".repeat(r);return o?e.commands.insertContent(l):e.commands.command(({tr:e})=>{let{from:t,to:r}=i,s=n.doc.textBetween(t,r,"\n","\n").split("\n").map(e=>l+e).join("\n");return e.replaceWith(t,r,n.schema.text(s)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let r=null!=(t=this.options.tabSize)?t:g,{state:n}=e,{selection:i}=n,{$from:s,empty:o}=i;return s.parent.type===this.type&&(o?e.commands.command(({tr:e})=>{var t;let{pos:i}=s,o=s.start(),l=s.end(),a=n.doc.textBetween(o,l,"\n","\n").split("\n"),u=0,c=0,h=i-o;for(let e=0;e<a.length;e+=1){if(c+a[e].length>=h){u=e;break}c+=a[e].length+1}let d=Math.min(((null==(t=a[u].match(/^ */))?void 0:t[0])||"").length,r);if(0===d)return!0;let p=o;for(let e=0;e<u;e+=1)p+=a[e].length+1;return e.delete(p,p+d),i-p<=d&&e.setSelection(m.U3.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:t,to:s}=i,o=n.doc.textBetween(t,s,"\n","\n").split("\n").map(e=>{var t;let n=Math.min(((null==(t=e.match(/^ */))?void 0:t[0])||"").length,r);return e.slice(n)}).join("\n");return e.replaceWith(t,s,n.schema.text(o)),!0}))},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:r}=t,{$from:n,empty:i}=r;if(!i||n.parent.type!==this.type)return!1;let s=n.parentOffset===n.parent.nodeSize-2,o=n.parent.textContent.endsWith("\n\n");return!!s&&!!o&&e.chain().command(({tr:e})=>(e.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:r,doc:n}=t,{$from:i,empty:s}=r;if(!s||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let o=i.after();return void 0!==o&&(n.nodeAt(o)?e.commands.command(({tr:e})=>(e.setSelection(m.LN.near(n.resolve(o))),!0)):e.commands.exitCode())}}},addInputRules(){return[(0,n.JJ)({find:_,type:this.type,getAttributes:e=>({language:e[1]})}),(0,n.JJ)({find:y,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new m.k_({key:new m.hs("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let r=t.clipboardData.getData("text/plain"),n=t.clipboardData.getData("vscode-editor-data"),i=n?JSON.parse(n):void 0,s=null==i?void 0:i.mode;if(!r||!s)return!1;let{tr:o,schema:l}=e.state,a=l.text(r.replace(/\r\n?/g,"\n"));return o.replaceSelectionWith(this.type.create({language:s},a)),o.selection.$from.parent.type!==this.type&&o.setSelection(m.U3.near(o.doc.resolve(Math.max(0,o.selection.from-2)))),o.setMeta("paste",!0),e.dispatch(o),!0}}})]}}),b=n.bP.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n\n"):""}),w=n.bP.create({name:"hardBreak",markdownTokenName:"br",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,n.KV)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",renderMarkdown:()=>`
|
|
17
|
-
`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:r,editor:n})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=r;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:s}=this.options,{splittableMarks:o}=n.extensionManager,l=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&l&&s){let t=l.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),x=n.bP.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let r=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${r}`,(0,n.KV)(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var r;let n=(null==(r=e.attrs)?void 0:r.level)?parseInt(e.attrs.level,10):1,i="#".repeat(n);return e.content?`${i} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,...{[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}}),{})},addInputRules(){return this.options.levels.map(e=>(0,n.JJ)({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),v=n.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{},nextNodeType:"paragraph"}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,n.KV)(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!(0,n.AB)(t,t.schema.nodes[this.name]))return!1;let{selection:r}=t,{$to:i}=r,s=e();return(0,n.BQ)(r)?s.insertContentAt(i.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({state:e,tr:t,dispatch:r})=>{if(r){let{$to:r}=t.selection,n=r.end();if(r.nodeAfter)r.nodeAfter.isTextblock?t.setSelection(m.U3.create(t.doc,r.pos+1)):r.nodeAfter.isBlock?t.setSelection(m.nh.create(t.doc,r.pos)):t.setSelection(m.U3.create(t.doc,r.pos));else{let i=e.schema.nodes[this.options.nextNodeType]||r.parent.type.contentMatch.defaultType,s=null==i?void 0:i.create();s&&(t.insert(n,s),t.setSelection(m.U3.create(t.doc,n+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,n.Ce)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),C=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,A=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,E=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,S=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,M=n.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,n.OX)({find:C,type:this.type}),(0,n.OX)({find:E,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:A,type:this.type}),(0,n.Zc)({find:S,type:this.type})]}}),T=r(59265),D=r(82150),F=" ",I="\xa0",L=n.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,n.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let r=e.tokens||[];if(1===r.length&&"image"===r[0].type)return t.parseChildren([r[0]]);let n=t.parseInline(r);return 1===r.length&&"text"===r[0].type&&(r[0].raw===F||r[0].text===F||r[0].raw===I||r[0].text===I)&&1===n.length&&"text"===n[0].type&&(n[0].text===F||n[0].text===I)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,n)},renderMarkdown:(e,t,r)=>{var n,i;if(!e)return"";let s=Array.isArray(e.content)?e.content:[];if(0===s.length){let e=Array.isArray(null==(n=null==r?void 0:r.previousNode)?void 0:n.content)?r.previousNode.content:[];return(null==(i=null==r?void 0:r.previousNode)?void 0:i.type)==="paragraph"&&0===e.length?F:""}return t.renderChildren(s)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),N=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,R=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,O=n.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,n.OX)({find:N,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:R,type:this.type})]}}),z=n.bP.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),P=n.CU.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,n.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown:(e,t)=>`++${t.renderChildren(e)}++`,markdownTokenizer:{name:"underline",level:"inline",start:e=>e.indexOf("++"),tokenize(e,t,r){let n=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!n)return;let i=n[2].trim();return{type:"underline",raw:n[0],text:i,tokens:r.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),$=r(62678),B=n.YY.create({name:"starterKit",addExtensions(){var e,t,r,n;let i=[];return!1!==this.options.bold&&i.push(h.configure(this.options.bold)),!1!==this.options.blockquote&&i.push(o.configure(this.options.blockquote)),!1!==this.options.bulletList&&i.push(D.Rg.configure(this.options.bulletList)),!1!==this.options.code&&i.push(f.configure(this.options.code)),!1!==this.options.codeBlock&&i.push(k.configure(this.options.codeBlock)),!1!==this.options.document&&i.push(b.configure(this.options.document)),!1!==this.options.dropcursor&&i.push($.QO.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&i.push($.vR.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&i.push(w.configure(this.options.hardBreak)),!1!==this.options.heading&&i.push(x.configure(this.options.heading)),!1!==this.options.undoRedo&&i.push($.lb.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&i.push(v.configure(this.options.horizontalRule)),!1!==this.options.italic&&i.push(M.configure(this.options.italic)),!1!==this.options.listItem&&i.push(D.ck.configure(this.options.listItem)),!1!==this.options.listKeymap&&i.push(D.it.configure(null==(e=this.options)?void 0:e.listKeymap)),!1!==this.options.link&&i.push(T.N_.configure(null==(t=this.options)?void 0:t.link)),!1!==this.options.orderedList&&i.push(D._J.configure(this.options.orderedList)),!1!==this.options.paragraph&&i.push(L.configure(this.options.paragraph)),!1!==this.options.strike&&i.push(O.configure(this.options.strike)),!1!==this.options.text&&i.push(z.configure(this.options.text)),!1!==this.options.underline&&i.push(P.configure(null==(r=this.options)?void 0:r.underline)),!1!==this.options.trailingNode&&i.push($.JU.configure(null==(n=this.options)?void 0:n.trailingNode)),i}})},42080:(e,t,r)=>{"use strict";r.d(t,{$B:()=>h,Sd:()=>s,T2:()=>a});var n=r(8242),i=r(27050);function s(e,t=null){return function(r,n){let{$from:i,$to:s}=r.selection,l=i.blockRange(s);if(!l)return!1;let a=n?r.tr:null;return!!o(a,l,e,t)&&(n&&n(a.scrollIntoView()),!0)}}function o(e,t,r,s=null){let a=!1,u=t,c=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(r)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=c.resolve(t.start-2);u=new i.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new i.u$(t.$from,c.resolve(t.$to.end(t.depth)),t.depth)),a=!0}let h=(0,n.oM)(u,r,s,t);return!!h&&(e&&l(e,t,h,a,r),!0)}function l(e,t,r,s,o){let l=i.FK.empty;for(let e=r.length-1;e>=0;e--)l=i.FK.from(r[e].type.create(r[e].attrs,l));e.step(new n.Wg(t.start-2*!!s,t.end,t.start,t.end,new i.Ji(l,0,0),r.length,!0));let a=0;for(let e=0;e<r.length;e++)r[e].type==o&&(a=e+1);let u=r.length-a,c=t.start+r.length-2*!!s,h=t.parent;for(let r=t.startIndex,i=t.endIndex,s=!0;r<i;r++,s=!1)!s&&(0,n.zy)(e.doc,c,u)&&(e.split(c,u),c+=2*u),c+=h.child(r).nodeSize;return e}function a(e){return function(t,r){let{$from:n,$to:i}=t.selection,s=n.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return!!s&&(!r||(n.node(s.depth-1).type==e?u(t,r,e,s):c(t,r,s)))}}function u(e,t,r,s){let o=e.tr,l=s.end,a=s.$to.end(s.depth);l<a&&(o.step(new n.Wg(l-1,a,l,a,new i.Ji(i.FK.from(r.create(null,s.parent.copy())),1,0),1,!0)),s=new i.u$(o.doc.resolve(s.$from.pos),o.doc.resolve(a),s.depth));let u=(0,n.jP)(s);if(null==u)return!1;o.lift(s,u);let c=o.doc.resolve(o.mapping.map(l,-1)-1);return(0,n.n9)(o.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&o.join(c.pos),t(o.scrollIntoView()),!0}function c(e,t,r){let s=e.tr,o=r.parent;for(let e=r.end,t=r.endIndex-1,n=r.startIndex;t>n;t--)e-=o.child(t).nodeSize,s.delete(e-1,e+1);let l=s.doc.resolve(r.start),a=l.nodeAfter;if(s.mapping.map(r.end)!=r.start+l.nodeAfter.nodeSize)return!1;let u=0==r.startIndex,c=r.endIndex==o.childCount,h=l.node(-1),d=l.index(-1);if(!h.canReplace(d+ +!u,d+1,a.content.append(c?i.FK.empty:i.FK.from(o))))return!1;let p=l.pos,f=p+a.nodeSize;return s.step(new n.Wg(p-!!u,f+ +!!c,p+1,f-1,new i.Ji((u?i.FK.empty:i.FK.from(o.copy(i.FK.empty))).append(c?i.FK.empty:i.FK.from(o.copy(i.FK.empty))),+!u,+!c),+!u)),t(s.scrollIntoView()),!0}function h(e){return function(t,r){let{$from:s,$to:o}=t.selection,l=s.blockRange(o,t=>t.childCount>0&&t.firstChild.type==e);if(!l)return!1;let a=l.startIndex;if(0==a)return!1;let u=l.parent,c=u.child(a-1);if(c.type!=e)return!1;if(r){let s=c.lastChild&&c.lastChild.type==u.type,o=i.FK.from(s?e.create():null),a=new i.Ji(i.FK.from(e.create(null,i.FK.from(u.type.create(null,o)))),s?3:1,0),h=l.start,d=l.end;r(t.tr.step(new n.Wg(h-(s?3:1),d,h,d,a,1,!0)).scrollIntoView())}return!0}}},42790:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n,i,s,o,l=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};!function(e){e[e.EOS=0]="EOS",e[e.Text=1]="Text",e[e.Incomplete=2]="Incomplete",e[e.ESC=3]="ESC",e[e.Unknown=4]="Unknown",e[e.SGR=5]="SGR",e[e.OSCURL=6]="OSCURL"}(n||(n={}));class a{constructor(){this.VERSION="6.0.6",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1,this.fg=this.bg=null,this._buffer="",this._url_allowlist={http:1,https:1},this._escape_html=!0,this.boldStyle="font-weight:bold",this.faintStyle="opacity:0.7",this.italicStyle="font-style:italic",this.underlineStyle="text-decoration:underline"}set use_classes(e){this._use_classes=e}get use_classes(){return this._use_classes}set url_allowlist(e){this._url_allowlist=e}get url_allowlist(){return this._url_allowlist}set escape_html(e){this._escape_html=e}get escape_html(){return this._escape_html}set boldStyle(e){this._boldStyle=e}get boldStyle(){return this._boldStyle}set faintStyle(e){this._faintStyle=e}get faintStyle(){return this._faintStyle}set italicStyle(e){this._italicStyle=e}get italicStyle(){return this._italicStyle}set underlineStyle(e){this._underlineStyle=e}get underlineStyle(){return this._underlineStyle}setup_palettes(){this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach(e=>{e.forEach(e=>{this.palette_256.push(e)})});let e=[0,95,135,175,215,255];for(let t=0;t<6;++t)for(let r=0;r<6;++r)for(let n=0;n<6;++n){let i={rgb:[e[t],e[r],e[n]],class_name:"truecolor"};this.palette_256.push(i)}let t=8;for(let e=0;e<24;++e,t+=10){let e={rgb:[t,t,t],class_name:"truecolor"};this.palette_256.push(e)}}escape_txt_for_html(e){return this._escape_html?e.replace(/[&<>"']/gm,e=>"&"===e?"&":"<"===e?"<":">"===e?">":'"'===e?""":"'"===e?"'":void 0):e}append_buffer(e){var t=this._buffer+e;this._buffer=t}get_next_packet(){var e={kind:n.EOS,text:"",url:""},t=this._buffer.length;if(0==t)return e;var r=this._buffer.indexOf("\x1b");if(-1==r)return e.kind=n.Text,e.text=this._buffer,this._buffer="",e;if(r>0)return e.kind=n.Text,e.text=this._buffer.slice(0,r),this._buffer=this._buffer.slice(r),e;if(0==r){if(t<3)return e.kind=n.Incomplete,e;var a=this._buffer.charAt(1);if("["!=a&&"]"!=a&&"("!=a)return e.kind=n.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if("["==a){this._csi_regex||(this._csi_regex=u(i||(i=l(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \x1b[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \x1b[ # CSI\n [ -~]* # anything legal\n ([\0-\x1f:]) # anything illegal\n )\n "],["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]))));let t=this._buffer.match(this._csi_regex);if(null===t)return e.kind=n.Incomplete,e;if(t[4])return e.kind=n.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;""!=t[1]||"m"!=t[3]?e.kind=n.Unknown:e.kind=n.SGR,e.text=t[2];var h=t[0].length;return this._buffer=this._buffer.slice(h),e}if("]"==a){if(t<4)return e.kind=n.Incomplete,e;if("8"!=this._buffer.charAt(2)||";"!=this._buffer.charAt(3))return e.kind=n.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;this._osc_st||(this._osc_st=c(s||(s=l(["\n (?: # legal sequence\n (\x1b\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-\x06] # anything illegal\n | # alternate\n [\b-\x1a] # anything illegal\n | # alternate\n [\x1c-\x1f] # anything illegal\n )\n "],["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "])))),this._osc_st.lastIndex=0;{let t=this._osc_st.exec(this._buffer);if(null===t)return e.kind=n.Incomplete,e;if(t[3])return e.kind=n.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e}{let t=this._osc_st.exec(this._buffer);if(null===t)return e.kind=n.Incomplete,e;if(t[3])return e.kind=n.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e}this._osc_regex||(this._osc_regex=u(o||(o=l(["\n ^ # beginning of line\n #\n \x1b]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\x1b\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \x1b]8;; # OSC Hyperlink End\n (?: # ST\n (?:\x1b\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "],["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]))));let r=this._buffer.match(this._osc_regex);if(null===r)return e.kind=n.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;e.kind=n.OSCURL,e.url=r[1],e.text=r[2];var h=r[0].length;return this._buffer=this._buffer.slice(h),e}if("("==a)return e.kind=n.Unknown,this._buffer=this._buffer.slice(3),e}}ansi_to_html(e){this.append_buffer(e);for(var t=[];;){var r=this.get_next_packet();if(r.kind==n.EOS||r.kind==n.Incomplete)break;r.kind!=n.ESC&&r.kind!=n.Unknown&&(r.kind==n.Text?t.push(this.transform_to_html(this.with_state(r))):r.kind==n.SGR?this.process_ansi(r):r.kind==n.OSCURL&&t.push(this.process_hyperlink(r)))}return t.join("")}with_state(e){return{bold:this.bold,faint:this.faint,italic:this.italic,underline:this.underline,fg:this.fg,bg:this.bg,text:e.text}}process_ansi(e){let t=e.text.split(";");for(;t.length>0;){let e=parseInt(t.shift(),10);if(isNaN(e)||0===e)this.fg=null,this.bg=null,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1;else if(1===e)this.bold=!0;else if(2===e)this.faint=!0;else if(3===e)this.italic=!0;else if(4===e)this.underline=!0;else if(21===e)this.bold=!1;else if(22===e)this.faint=!1,this.bold=!1;else if(23===e)this.italic=!1;else if(24===e)this.underline=!1;else if(39===e)this.fg=null;else if(49===e)this.bg=null;else if(e>=30&&e<38)this.fg=this.ansi_colors[0][e-30];else if(e>=40&&e<48)this.bg=this.ansi_colors[0][e-40];else if(e>=90&&e<98)this.fg=this.ansi_colors[1][e-90];else if(e>=100&&e<108)this.bg=this.ansi_colors[1][e-100];else if((38===e||48===e)&&t.length>0){let r=38===e,n=t.shift();if("5"===n&&t.length>0){let e=parseInt(t.shift(),10);e>=0&&e<=255&&(r?this.fg=this.palette_256[e]:this.bg=this.palette_256[e])}if("2"===n&&t.length>2){let e=parseInt(t.shift(),10),n=parseInt(t.shift(),10),i=parseInt(t.shift(),10);if(e>=0&&e<=255&&n>=0&&n<=255&&i>=0&&i<=255){let t={rgb:[e,n,i],class_name:"truecolor"};r?this.fg=t:this.bg=t}}}}}transform_to_html(e){let t=e.text;if(0===t.length||(t=this.escape_txt_for_html(t),!e.bold&&!e.italic&&!e.faint&&!e.underline&&null===e.fg&&null===e.bg))return t;let r=[],n=[],i=e.fg,s=e.bg;e.bold&&r.push(this._boldStyle),e.faint&&r.push(this._faintStyle),e.italic&&r.push(this._italicStyle),e.underline&&r.push(this._underlineStyle),this._use_classes?(i&&("truecolor"!==i.class_name?n.push(`${i.class_name}-fg`):r.push(`color:rgb(${i.rgb.join(",")})`)),s&&("truecolor"!==s.class_name?n.push(`${s.class_name}-bg`):r.push(`background-color:rgb(${s.rgb.join(",")})`))):(i&&r.push(`color:rgb(${i.rgb.join(",")})`),s&&r.push(`background-color:rgb(${s.rgb})`));let o="",l="";return n.length&&(o=` class="${n.join(" ")}"`),r.length&&(l=` style="${r.join(";")}"`),`<span${l}${o}>${t}</span>`}process_hyperlink(e){let t=e.url.split(":");return t.length<1||!this._url_allowlist[t[0]]?"":`<a href="${this.escape_txt_for_html(e.url)}">${this.escape_txt_for_html(e.text)}</a>`}}function u(e){let t=e.raw[0],r=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm;return new RegExp(t.replace(r,""))}function c(e){let t=e.raw[0],r=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm;return RegExp(t.replace(r,""),"g")}},43203:(e,t,r)=>{"use strict";r.d(t,{n:()=>n.nA});var n=r(5989)},43561:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=r(62678).Or},44695:(e,t,r)=>{"use strict";r.d(t,{L:()=>n.L2});var n=r(82150)},45916:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],s=(0,n.A)("text-align-start",i)},48434:(e,t,r)=>{"use strict";r.d(t,{_:()=>n._0});var n=r(82150)},49698:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]],s=(0,n.A)("variable",i)},50538:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],s=(0,n.A)("history",i)},51914:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],s=(0,n.A)("plus",i)},52475:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],s=(0,n.A)("code",i)},53961:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],s=(0,n.A)("zap",i)},59265:(e,t,r)=>{"use strict";r.d(t,{N_:()=>tc,Ay:()=>th});var n=r(82159);let i="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",s="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",o="numeric",l="ascii",a="alpha",u="asciinumeric",c="alphanumeric",h="domain",d="emoji",p="scheme",f="slashscheme",m="whitespace";function g(e,t){return e in t||(t[e]=[]),t[e]}function _(e,t,r){for(let n in t[o]&&(t[u]=!0,t[c]=!0),t[l]&&(t[u]=!0,t[a]=!0),t[u]&&(t[c]=!0),t[a]&&(t[c]=!0),t[c]&&(t[h]=!0),t[d]&&(t[h]=!0),t){let t=g(n,r);0>t.indexOf(e)&&t.push(e)}}function y(e,t){let r={};for(let n in t)t[n].indexOf(e)>=0&&(r[n]=!0);return r}function k(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}k.groups={},k.prototype={accepts(){return!!this.t},go(e){let t=this,r=t.j[e];if(r)return r;for(let r=0;r<t.jr.length;r++){let n=t.jr[r][0],i=t.jr[r][1];if(i&&n.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,r,n){for(let i=0;i<e.length;i++)this.tt(e[i],t,r,n)},tr(e,t,r,n){let i;return n=n||k.groups,t&&t.j?i=t:(i=new k(t),r&&n&&_(t,r,n)),this.jr.push([e,i]),i},ts(e,t,r,n){let i=this,s=e.length;if(!s)return i;for(let t=0;t<s-1;t++)i=i.tt(e[t]);return i.tt(e[s-1],t,r,n)},tt(e,t,r,n){n=n||k.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let s=t,o,l=i.go(e);return l?(Object.assign((o=new k).j,l.j),o.jr.push.apply(o.jr,l.jr),o.jd=l.jd,o.t=l.t):o=new k,s&&(n&&(o.t&&"string"==typeof o.t?_(s,Object.assign(y(o.t,n),r),n):r&&_(s,r,n)),o.t=s),i.j[e]=o,o}};let b=(e,t,r,n,i)=>e.ta(t,r,n,i),w=(e,t,r,n,i)=>e.tr(t,r,n,i),x=(e,t,r,n,i)=>e.ts(t,r,n,i),v=(e,t,r,n,i)=>e.tt(t,r,n,i),C="WORD",A="UWORD",E="ASCIINUMERICAL",S="ALPHANUMERICAL",M="LOCALHOST",T="TLD",D="UTLD",F="SCHEME",I="SLASH_SCHEME",L="NUM",N="WS",R="NL",O="OPENBRACE",z="CLOSEBRACE",P="OPENBRACKET",$="CLOSEBRACKET",B="OPENPAREN",q="CLOSEPAREN",j="OPENANGLEBRACKET",H="CLOSEANGLEBRACKET",U="FULLWIDTHLEFTPAREN",V="FULLWIDTHRIGHTPAREN",W="LEFTCORNERBRACKET",J="RIGHTCORNERBRACKET",K="LEFTWHITECORNERBRACKET",G="RIGHTWHITECORNERBRACKET",Z="FULLWIDTHLESSTHAN",X="FULLWIDTHGREATERTHAN",Y="AMPERSAND",Q="APOSTROPHE",ee="ASTERISK",et="AT",er="BACKSLASH",en="BACKTICK",ei="CARET",es="COLON",eo="COMMA",el="DOLLAR",ea="DOT",eu="EQUALS",ec="EXCLAMATION",eh="HYPHEN",ed="PERCENT",ep="PIPE",ef="PLUS",em="POUND",eg="QUERY",e_="QUOTE",ey="FULLWIDTHMIDDLEDOT",ek="SEMI",eb="SLASH",ew="TILDE",ex="UNDERSCORE",ev="EMOJI",eC="SYM";var eA=Object.freeze({__proto__:null,ALPHANUMERICAL:S,AMPERSAND:Y,APOSTROPHE:Q,ASCIINUMERICAL:E,ASTERISK:ee,AT:et,BACKSLASH:er,BACKTICK:en,CARET:ei,CLOSEANGLEBRACKET:H,CLOSEBRACE:z,CLOSEBRACKET:$,CLOSEPAREN:q,COLON:es,COMMA:eo,DOLLAR:el,DOT:ea,EMOJI:ev,EQUALS:eu,EXCLAMATION:ec,FULLWIDTHGREATERTHAN:X,FULLWIDTHLEFTPAREN:U,FULLWIDTHLESSTHAN:Z,FULLWIDTHMIDDLEDOT:ey,FULLWIDTHRIGHTPAREN:V,HYPHEN:eh,LEFTCORNERBRACKET:W,LEFTWHITECORNERBRACKET:K,LOCALHOST:M,NL:R,NUM:L,OPENANGLEBRACKET:j,OPENBRACE:O,OPENBRACKET:P,OPENPAREN:B,PERCENT:ed,PIPE:ep,PLUS:ef,POUND:em,QUERY:eg,QUOTE:e_,RIGHTCORNERBRACKET:J,RIGHTWHITECORNERBRACKET:G,SCHEME:F,SEMI:ek,SLASH:eb,SLASH_SCHEME:I,SYM:eC,TILDE:ew,TLD:T,UNDERSCORE:ex,UTLD:D,UWORD:A,WORD:C,WS:N});let eE=/[a-z]/,eS=/\p{L}/u,eM=/\p{Emoji}/u,eT=/\d/,eD=/\s/,eF="\r",eI="\n",eL="️",eN="",eR="",eO=null,ez=null;function eP(e=[]){let t={};k.groups=t;let r=new k;null==eO&&(eO=ej(i)),null==ez&&(ez=ej(s)),v(r,"'",Q),v(r,"{",O),v(r,"}",z),v(r,"[",P),v(r,"]",$),v(r,"(",B),v(r,")",q),v(r,"<",j),v(r,">",H),v(r,"(",U),v(r,")",V),v(r,"「",W),v(r,"」",J),v(r,"『",K),v(r,"』",G),v(r,"<",Z),v(r,">",X),v(r,"&",Y),v(r,"*",ee),v(r,"@",et),v(r,"`",en),v(r,"^",ei),v(r,":",es),v(r,",",eo),v(r,"$",el),v(r,".",ea),v(r,"=",eu),v(r,"!",ec),v(r,"-",eh),v(r,"%",ed),v(r,"|",ep),v(r,"+",ef),v(r,"#",em),v(r,"?",eg),v(r,'"',e_),v(r,"/",eb),v(r,";",ek),v(r,"~",ew),v(r,"_",ex),v(r,"\\",er),v(r,"・",ey);let n=w(r,eT,L,{[o]:!0});w(n,eT,n);let g=w(n,eE,E,{[u]:!0}),y=w(n,eS,S,{[c]:!0}),b=w(r,eE,C,{[l]:!0});w(b,eT,g),w(b,eE,b),w(g,eT,g),w(g,eE,g);let e$=w(r,eS,A,{[a]:!0});w(e$,eE),w(e$,eT,y),w(e$,eS,e$),w(y,eT,y),w(y,eE),w(y,eS,y);let eB=v(r,eI,R,{[m]:!0}),eH=v(r,eF,N,{[m]:!0}),eU=w(r,eD,N,{[m]:!0});v(r,eR,eU),v(eH,eI,eB),v(eH,eR,eU),w(eH,eD,eU),v(eU,eF),v(eU,eI),w(eU,eD,eU),v(eU,eR,eU);let eV=w(r,eM,ev,{[d]:!0});v(eV,"#"),w(eV,eM,eV),v(eV,eL,eV);let eW=v(eV,eN);v(eW,"#"),w(eW,eM,eV);let eJ=[[eE,b],[eT,g]],eK=[[eE,null],[eS,e$],[eT,y]];for(let e=0;e<eO.length;e++)eq(r,eO[e],T,C,eJ);for(let e=0;e<ez.length;e++)eq(r,ez[e],D,A,eK);_(T,{tld:!0,ascii:!0},t),_(D,{utld:!0,alpha:!0},t),eq(r,"file",F,C,eJ),eq(r,"mailto",F,C,eJ),eq(r,"http",I,C,eJ),eq(r,"https",I,C,eJ),eq(r,"ftp",I,C,eJ),eq(r,"ftps",I,C,eJ),_(F,{scheme:!0,ascii:!0},t),_(I,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let n=e[t][0],i=e[t][1]?{[p]:!0}:{[f]:!0};n.indexOf("-")>=0?i[h]=!0:eE.test(n)?eT.test(n)?i[u]=!0:i[l]=!0:i[o]=!0,x(r,n,n,i)}return x(r,"localhost",M,{ascii:!0}),r.jd=new k(eC),{start:r,tokens:Object.assign({groups:t},eA)}}function e$(e,t){let r=eB(t.replace(/[A-Z]/g,e=>e.toLowerCase())),n=r.length,i=[],s=0,o=0;for(;o<n;){let l=e,a=null,u=0,c=null,h=-1,d=-1;for(;o<n&&(a=l.go(r[o]));)(l=a).accepts()?(h=0,d=0,c=l):h>=0&&(h+=r[o].length,d++),u+=r[o].length,s+=r[o].length,o++;s-=h,o-=d,u-=h,i.push({t:c.t,v:t.slice(s-u,s),s:s-u,e:s})}return i}function eB(e){let t=[],r=e.length,n=0;for(;n<r;){let i,s=e.charCodeAt(n),o=s<55296||s>56319||n+1===r||(i=e.charCodeAt(n+1))<56320||i>57343?e[n]:e.slice(n,n+2);t.push(o),n+=o.length}return t}function eq(e,t,r,n,i){let s,o=t.length;for(let r=0;r<o-1;r++){let o=t[r];e.j[o]?s=e.j[o]:((s=new k(n)).jr=i.slice(),e.j[o]=s),e=s}return(s=new k(r)).jr=i.slice(),e.j[t[o-1]]=s,s}function ej(e){let t=[],r=[],n=0,i="0123456789";for(;n<e.length;){let s=0;for(;i.indexOf(e[n+s])>=0;)s++;if(s>0){t.push(r.join(""));for(let t=parseInt(e.substring(n,n+s),10);t>0;t--)r.pop();n+=s}else r.push(e[n]),n++}return t}let eH={defaultProtocol:"http",events:null,format:eV,formatHref:eV,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function eU(e,t=null){let r=Object.assign({},eH);e&&(r=Object.assign(r,e instanceof eU?e.o:e));let n=r.ignoreTags,i=[];for(let e=0;e<n.length;e++)i.push(n[e].toUpperCase());this.o=r,t&&(this.defaultRender=t),this.ignoreTags=i}function eV(e){return e}function eW(e,t){this.t="token",this.v=e,this.tk=t}function eJ(e,t){class r extends eW{constructor(t,r){super(t,r),this.t=e}}for(let e in t)r.prototype[e]=t[e];return r.t=e,r}eU.prototype={o:eH,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,r){let n=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=r.t in i?i[r.t]:eH[e])&&n&&(i=i(t,r)):"function"==typeof i&&n&&(i=i(t,r.t,r))),i},getObj(e,t,r){let n=this.o[e];return"function"==typeof n&&null!=t&&(n=n(t,r.t,r)),n},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},eW.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),r=e.get("truncate",t,this),n=e.get("format",t,this);return r&&n.length>r?n.substring(0,r)+"…":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=eH.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this,r=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",r,this),i=e.get("tagName",r,t),s=this.toFormattedString(e),o={},l=e.get("className",r,t),a=e.get("target",r,t),u=e.get("rel",r,t),c=e.getObj("attributes",r,t),h=e.getObj("events",r,t);return o.href=n,l&&(o.class=l),a&&(o.target=a),u&&(o.rel=u),c&&Object.assign(o,c),{tagName:i,attributes:o,content:s,eventListeners:h}}};let eK=eJ("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eG=eJ("text"),eZ=eJ("nl"),eX=eJ("url",{isLink:!0,toHref(e=eH.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==M&&e[1].t===es}}),eY=e=>new k(e);function eQ({groups:e}){let t=e.domain.concat([Y,ee,et,er,en,ei,el,eu,eh,L,ed,ep,ef,em,eb,eC,ew,ex]),r=[Q,es,eo,ea,ec,ed,eg,e_,ek,j,H,O,z,$,P,B,q,U,V,W,J,K,G,Z,X],n=[Y,Q,ee,er,en,ei,el,eu,eh,O,z,ed,ep,ef,em,eg,eb,eC,ew,ex],i=eY(),s=v(i,ew);b(s,n,s),b(s,e.domain,s);let o=eY(),l=eY(),a=eY();b(i,e.domain,o),b(i,e.scheme,l),b(i,e.slashscheme,a),b(o,n,s),b(o,e.domain,o);let u=v(o,et);v(s,et,u),v(l,et,u),v(a,et,u);let c=v(s,ea);b(c,n,s),b(c,e.domain,s);let h=eY();b(u,e.domain,h),b(h,e.domain,h);let d=v(h,ea);b(d,e.domain,h);let p=eY(eK);b(d,e.tld,p),b(d,e.utld,p),v(u,M,p);let f=v(h,eh);v(f,eh,f),b(f,e.domain,h),b(p,e.domain,h),v(p,ea,d),v(p,eh,f),b(v(p,es),e.numeric,eK);let m=v(o,eh),g=v(o,ea);v(m,eh,m),b(m,e.domain,o),b(g,n,s),b(g,e.domain,o);let _=eY(eX);b(g,e.tld,_),b(g,e.utld,_),b(_,e.domain,o),b(_,n,s),v(_,ea,g),v(_,eh,m),v(_,et,u);let y=v(_,es),k=eY(eX);b(y,e.numeric,k);let w=eY(eX),x=eY();b(w,t,w),b(w,r,x),b(x,t,w),b(x,r,x),v(_,eb,w),v(k,eb,w);let C=v(l,es),A=v(a,es),E=v(A,eb),S=v(E,eb);b(l,e.domain,o),v(l,ea,g),v(l,eh,m),b(a,e.domain,o),v(a,ea,g),v(a,eh,m),b(C,e.domain,w),v(C,eb,w),v(C,eg,w),b(S,e.domain,w),b(S,t,w),v(S,eb,w);let T=[[O,z],[P,$],[B,q],[j,H],[U,V],[W,J],[K,G],[Z,X]];for(let e=0;e<T.length;e++){let[n,i]=T[e],s=v(w,n);v(x,n,s),v(s,i,w);let o=eY(eX);b(s,t,o);let l=eY();b(s,r),b(o,t,o),b(o,r,l),b(l,t,o),b(l,r,l),v(o,i,w),v(l,i,w)}return v(i,M,_),v(i,R,eZ),{start:i,tokens:eA}}function e0(e,t,r){let n=r.length,i=0,s=[],o=[];for(;i<n;){let l=e,a=null,u=null,c=0,h=null,d=-1;for(;i<n&&!(a=l.go(r[i].t));)o.push(r[i++]);for(;i<n&&(u=a||l.go(r[i].t));)a=null,(l=u).accepts()?(d=0,h=l):d>=0&&d++,i++,c++;if(d<0)(i-=c)<n&&(o.push(r[i]),i++);else{o.length>0&&(s.push(e1(eG,t,o)),o=[]),i-=d,c-=d;let e=h.t,n=r.slice(i-c,i);s.push(e1(e,t,n))}}return o.length>0&&s.push(e1(eG,t,o)),s}function e1(e,t,r){let n=r[0].s,i=r[r.length-1].e;return new e(t.slice(n,i),r)}let e2="u">typeof console&&console&&console.warn||(()=>{}),e3="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",e5={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function e4(){return k.groups={},e5.scanner=null,e5.parser=null,e5.tokenQueue=[],e5.pluginQueue=[],e5.customSchemes=[],e5.initialized=!1,e5}function e6(e,t=!1){if(e5.initialized&&e2(`linkifyjs: already initialized - will not register custom scheme "${e}" ${e3}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
|
|
17
|
+
`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:r,editor:n})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=r;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:s}=this.options,{splittableMarks:o}=n.extensionManager,l=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&l&&s){let t=l.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),x=n.bP.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let r=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${r}`,(0,n.KV)(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var r;let n=(null==(r=e.attrs)?void 0:r.level)?parseInt(e.attrs.level,10):1,i="#".repeat(n);return e.content?`${i} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,...{[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}}),{})},addInputRules(){return this.options.levels.map(e=>(0,n.JJ)({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),v=n.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{},nextNodeType:"paragraph"}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,n.KV)(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!(0,n.AB)(t,t.schema.nodes[this.name]))return!1;let{selection:r}=t,{$to:i}=r,s=e();return(0,n.BQ)(r)?s.insertContentAt(i.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({state:e,tr:t,dispatch:r})=>{if(r){let{$to:r}=t.selection,n=r.end();if(r.nodeAfter)r.nodeAfter.isTextblock?t.setSelection(m.U3.create(t.doc,r.pos+1)):r.nodeAfter.isBlock?t.setSelection(m.nh.create(t.doc,r.pos)):t.setSelection(m.U3.create(t.doc,r.pos));else{let i=e.schema.nodes[this.options.nextNodeType]||r.parent.type.contentMatch.defaultType,s=null==i?void 0:i.create();s&&(t.insert(n,s),t.setSelection(m.U3.create(t.doc,n+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,n.Ce)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),C=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,A=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,E=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,S=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,M=n.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,n.OX)({find:C,type:this.type}),(0,n.OX)({find:E,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:A,type:this.type}),(0,n.Zc)({find:S,type:this.type})]}}),T=r(59265),D=r(82150),F=" ",I="\xa0",L=n.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,n.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let r=e.tokens||[];if(1===r.length&&"image"===r[0].type)return t.parseChildren([r[0]]);let n=t.parseInline(r);return 1===r.length&&"text"===r[0].type&&(r[0].raw===F||r[0].text===F||r[0].raw===I||r[0].text===I)&&1===n.length&&"text"===n[0].type&&(n[0].text===F||n[0].text===I)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,n)},renderMarkdown:(e,t,r)=>{var n,i;if(!e)return"";let s=Array.isArray(e.content)?e.content:[];if(0===s.length){let e=Array.isArray(null==(n=null==r?void 0:r.previousNode)?void 0:n.content)?r.previousNode.content:[];return(null==(i=null==r?void 0:r.previousNode)?void 0:i.type)==="paragraph"&&0===e.length?F:""}return t.renderChildren(s)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),R=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,N=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,O=n.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,n.OX)({find:R,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:N,type:this.type})]}}),z=n.bP.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),P=n.CU.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,n.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown:(e,t)=>`++${t.renderChildren(e)}++`,markdownTokenizer:{name:"underline",level:"inline",start:e=>e.indexOf("++"),tokenize(e,t,r){let n=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!n)return;let i=n[2].trim();return{type:"underline",raw:n[0],text:i,tokens:r.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),$=r(62678),B=n.YY.create({name:"starterKit",addExtensions(){var e,t,r,n;let i=[];return!1!==this.options.bold&&i.push(h.configure(this.options.bold)),!1!==this.options.blockquote&&i.push(o.configure(this.options.blockquote)),!1!==this.options.bulletList&&i.push(D.Rg.configure(this.options.bulletList)),!1!==this.options.code&&i.push(f.configure(this.options.code)),!1!==this.options.codeBlock&&i.push(k.configure(this.options.codeBlock)),!1!==this.options.document&&i.push(b.configure(this.options.document)),!1!==this.options.dropcursor&&i.push($.QO.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&i.push($.vR.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&i.push(w.configure(this.options.hardBreak)),!1!==this.options.heading&&i.push(x.configure(this.options.heading)),!1!==this.options.undoRedo&&i.push($.lb.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&i.push(v.configure(this.options.horizontalRule)),!1!==this.options.italic&&i.push(M.configure(this.options.italic)),!1!==this.options.listItem&&i.push(D.ck.configure(this.options.listItem)),!1!==this.options.listKeymap&&i.push(D.it.configure(null==(e=this.options)?void 0:e.listKeymap)),!1!==this.options.link&&i.push(T.N_.configure(null==(t=this.options)?void 0:t.link)),!1!==this.options.orderedList&&i.push(D._J.configure(this.options.orderedList)),!1!==this.options.paragraph&&i.push(L.configure(this.options.paragraph)),!1!==this.options.strike&&i.push(O.configure(this.options.strike)),!1!==this.options.text&&i.push(z.configure(this.options.text)),!1!==this.options.underline&&i.push(P.configure(null==(r=this.options)?void 0:r.underline)),!1!==this.options.trailingNode&&i.push($.JU.configure(null==(n=this.options)?void 0:n.trailingNode)),i}})},42080:(e,t,r)=>{"use strict";r.d(t,{$B:()=>h,Sd:()=>s,T2:()=>a});var n=r(8242),i=r(27050);function s(e,t=null){return function(r,n){let{$from:i,$to:s}=r.selection,l=i.blockRange(s);if(!l)return!1;let a=n?r.tr:null;return!!o(a,l,e,t)&&(n&&n(a.scrollIntoView()),!0)}}function o(e,t,r,s=null){let a=!1,u=t,c=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(r)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=c.resolve(t.start-2);u=new i.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new i.u$(t.$from,c.resolve(t.$to.end(t.depth)),t.depth)),a=!0}let h=(0,n.oM)(u,r,s,t);return!!h&&(e&&l(e,t,h,a,r),!0)}function l(e,t,r,s,o){let l=i.FK.empty;for(let e=r.length-1;e>=0;e--)l=i.FK.from(r[e].type.create(r[e].attrs,l));e.step(new n.Wg(t.start-2*!!s,t.end,t.start,t.end,new i.Ji(l,0,0),r.length,!0));let a=0;for(let e=0;e<r.length;e++)r[e].type==o&&(a=e+1);let u=r.length-a,c=t.start+r.length-2*!!s,h=t.parent;for(let r=t.startIndex,i=t.endIndex,s=!0;r<i;r++,s=!1)!s&&(0,n.zy)(e.doc,c,u)&&(e.split(c,u),c+=2*u),c+=h.child(r).nodeSize;return e}function a(e){return function(t,r){let{$from:n,$to:i}=t.selection,s=n.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return!!s&&(!r||(n.node(s.depth-1).type==e?u(t,r,e,s):c(t,r,s)))}}function u(e,t,r,s){let o=e.tr,l=s.end,a=s.$to.end(s.depth);l<a&&(o.step(new n.Wg(l-1,a,l,a,new i.Ji(i.FK.from(r.create(null,s.parent.copy())),1,0),1,!0)),s=new i.u$(o.doc.resolve(s.$from.pos),o.doc.resolve(a),s.depth));let u=(0,n.jP)(s);if(null==u)return!1;o.lift(s,u);let c=o.doc.resolve(o.mapping.map(l,-1)-1);return(0,n.n9)(o.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&o.join(c.pos),t(o.scrollIntoView()),!0}function c(e,t,r){let s=e.tr,o=r.parent;for(let e=r.end,t=r.endIndex-1,n=r.startIndex;t>n;t--)e-=o.child(t).nodeSize,s.delete(e-1,e+1);let l=s.doc.resolve(r.start),a=l.nodeAfter;if(s.mapping.map(r.end)!=r.start+l.nodeAfter.nodeSize)return!1;let u=0==r.startIndex,c=r.endIndex==o.childCount,h=l.node(-1),d=l.index(-1);if(!h.canReplace(d+ +!u,d+1,a.content.append(c?i.FK.empty:i.FK.from(o))))return!1;let p=l.pos,f=p+a.nodeSize;return s.step(new n.Wg(p-!!u,f+ +!!c,p+1,f-1,new i.Ji((u?i.FK.empty:i.FK.from(o.copy(i.FK.empty))).append(c?i.FK.empty:i.FK.from(o.copy(i.FK.empty))),+!u,+!c),+!u)),t(s.scrollIntoView()),!0}function h(e){return function(t,r){let{$from:s,$to:o}=t.selection,l=s.blockRange(o,t=>t.childCount>0&&t.firstChild.type==e);if(!l)return!1;let a=l.startIndex;if(0==a)return!1;let u=l.parent,c=u.child(a-1);if(c.type!=e)return!1;if(r){let s=c.lastChild&&c.lastChild.type==u.type,o=i.FK.from(s?e.create():null),a=new i.Ji(i.FK.from(e.create(null,i.FK.from(u.type.create(null,o)))),s?3:1,0),h=l.start,d=l.end;r(t.tr.step(new n.Wg(h-(s?3:1),d,h,d,a,1,!0)).scrollIntoView())}return!0}}},42790:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n,i,s,o,l=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};!function(e){e[e.EOS=0]="EOS",e[e.Text=1]="Text",e[e.Incomplete=2]="Incomplete",e[e.ESC=3]="ESC",e[e.Unknown=4]="Unknown",e[e.SGR=5]="SGR",e[e.OSCURL=6]="OSCURL"}(n||(n={}));class a{constructor(){this.VERSION="6.0.6",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1,this.fg=this.bg=null,this._buffer="",this._url_allowlist={http:1,https:1},this._escape_html=!0,this.boldStyle="font-weight:bold",this.faintStyle="opacity:0.7",this.italicStyle="font-style:italic",this.underlineStyle="text-decoration:underline"}set use_classes(e){this._use_classes=e}get use_classes(){return this._use_classes}set url_allowlist(e){this._url_allowlist=e}get url_allowlist(){return this._url_allowlist}set escape_html(e){this._escape_html=e}get escape_html(){return this._escape_html}set boldStyle(e){this._boldStyle=e}get boldStyle(){return this._boldStyle}set faintStyle(e){this._faintStyle=e}get faintStyle(){return this._faintStyle}set italicStyle(e){this._italicStyle=e}get italicStyle(){return this._italicStyle}set underlineStyle(e){this._underlineStyle=e}get underlineStyle(){return this._underlineStyle}setup_palettes(){this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach(e=>{e.forEach(e=>{this.palette_256.push(e)})});let e=[0,95,135,175,215,255];for(let t=0;t<6;++t)for(let r=0;r<6;++r)for(let n=0;n<6;++n){let i={rgb:[e[t],e[r],e[n]],class_name:"truecolor"};this.palette_256.push(i)}let t=8;for(let e=0;e<24;++e,t+=10){let e={rgb:[t,t,t],class_name:"truecolor"};this.palette_256.push(e)}}escape_txt_for_html(e){return this._escape_html?e.replace(/[&<>"']/gm,e=>"&"===e?"&":"<"===e?"<":">"===e?">":'"'===e?""":"'"===e?"'":void 0):e}append_buffer(e){var t=this._buffer+e;this._buffer=t}get_next_packet(){var e={kind:n.EOS,text:"",url:""},t=this._buffer.length;if(0==t)return e;var r=this._buffer.indexOf("\x1b");if(-1==r)return e.kind=n.Text,e.text=this._buffer,this._buffer="",e;if(r>0)return e.kind=n.Text,e.text=this._buffer.slice(0,r),this._buffer=this._buffer.slice(r),e;if(0==r){if(t<3)return e.kind=n.Incomplete,e;var a=this._buffer.charAt(1);if("["!=a&&"]"!=a&&"("!=a)return e.kind=n.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if("["==a){this._csi_regex||(this._csi_regex=u(i||(i=l(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \x1b[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \x1b[ # CSI\n [ -~]* # anything legal\n ([\0-\x1f:]) # anything illegal\n )\n "],["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]))));let t=this._buffer.match(this._csi_regex);if(null===t)return e.kind=n.Incomplete,e;if(t[4])return e.kind=n.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;""!=t[1]||"m"!=t[3]?e.kind=n.Unknown:e.kind=n.SGR,e.text=t[2];var h=t[0].length;return this._buffer=this._buffer.slice(h),e}if("]"==a){if(t<4)return e.kind=n.Incomplete,e;if("8"!=this._buffer.charAt(2)||";"!=this._buffer.charAt(3))return e.kind=n.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;this._osc_st||(this._osc_st=c(s||(s=l(["\n (?: # legal sequence\n (\x1b\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-\x06] # anything illegal\n | # alternate\n [\b-\x1a] # anything illegal\n | # alternate\n [\x1c-\x1f] # anything illegal\n )\n "],["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "])))),this._osc_st.lastIndex=0;{let t=this._osc_st.exec(this._buffer);if(null===t)return e.kind=n.Incomplete,e;if(t[3])return e.kind=n.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e}{let t=this._osc_st.exec(this._buffer);if(null===t)return e.kind=n.Incomplete,e;if(t[3])return e.kind=n.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e}this._osc_regex||(this._osc_regex=u(o||(o=l(["\n ^ # beginning of line\n #\n \x1b]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\x1b\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \x1b]8;; # OSC Hyperlink End\n (?: # ST\n (?:\x1b\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "],["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]))));let r=this._buffer.match(this._osc_regex);if(null===r)return e.kind=n.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;e.kind=n.OSCURL,e.url=r[1],e.text=r[2];var h=r[0].length;return this._buffer=this._buffer.slice(h),e}if("("==a)return e.kind=n.Unknown,this._buffer=this._buffer.slice(3),e}}ansi_to_html(e){this.append_buffer(e);for(var t=[];;){var r=this.get_next_packet();if(r.kind==n.EOS||r.kind==n.Incomplete)break;r.kind!=n.ESC&&r.kind!=n.Unknown&&(r.kind==n.Text?t.push(this.transform_to_html(this.with_state(r))):r.kind==n.SGR?this.process_ansi(r):r.kind==n.OSCURL&&t.push(this.process_hyperlink(r)))}return t.join("")}with_state(e){return{bold:this.bold,faint:this.faint,italic:this.italic,underline:this.underline,fg:this.fg,bg:this.bg,text:e.text}}process_ansi(e){let t=e.text.split(";");for(;t.length>0;){let e=parseInt(t.shift(),10);if(isNaN(e)||0===e)this.fg=null,this.bg=null,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1;else if(1===e)this.bold=!0;else if(2===e)this.faint=!0;else if(3===e)this.italic=!0;else if(4===e)this.underline=!0;else if(21===e)this.bold=!1;else if(22===e)this.faint=!1,this.bold=!1;else if(23===e)this.italic=!1;else if(24===e)this.underline=!1;else if(39===e)this.fg=null;else if(49===e)this.bg=null;else if(e>=30&&e<38)this.fg=this.ansi_colors[0][e-30];else if(e>=40&&e<48)this.bg=this.ansi_colors[0][e-40];else if(e>=90&&e<98)this.fg=this.ansi_colors[1][e-90];else if(e>=100&&e<108)this.bg=this.ansi_colors[1][e-100];else if((38===e||48===e)&&t.length>0){let r=38===e,n=t.shift();if("5"===n&&t.length>0){let e=parseInt(t.shift(),10);e>=0&&e<=255&&(r?this.fg=this.palette_256[e]:this.bg=this.palette_256[e])}if("2"===n&&t.length>2){let e=parseInt(t.shift(),10),n=parseInt(t.shift(),10),i=parseInt(t.shift(),10);if(e>=0&&e<=255&&n>=0&&n<=255&&i>=0&&i<=255){let t={rgb:[e,n,i],class_name:"truecolor"};r?this.fg=t:this.bg=t}}}}}transform_to_html(e){let t=e.text;if(0===t.length||(t=this.escape_txt_for_html(t),!e.bold&&!e.italic&&!e.faint&&!e.underline&&null===e.fg&&null===e.bg))return t;let r=[],n=[],i=e.fg,s=e.bg;e.bold&&r.push(this._boldStyle),e.faint&&r.push(this._faintStyle),e.italic&&r.push(this._italicStyle),e.underline&&r.push(this._underlineStyle),this._use_classes?(i&&("truecolor"!==i.class_name?n.push(`${i.class_name}-fg`):r.push(`color:rgb(${i.rgb.join(",")})`)),s&&("truecolor"!==s.class_name?n.push(`${s.class_name}-bg`):r.push(`background-color:rgb(${s.rgb.join(",")})`))):(i&&r.push(`color:rgb(${i.rgb.join(",")})`),s&&r.push(`background-color:rgb(${s.rgb})`));let o="",l="";return n.length&&(o=` class="${n.join(" ")}"`),r.length&&(l=` style="${r.join(";")}"`),`<span${l}${o}>${t}</span>`}process_hyperlink(e){let t=e.url.split(":");return t.length<1||!this._url_allowlist[t[0]]?"":`<a href="${this.escape_txt_for_html(e.url)}">${this.escape_txt_for_html(e.text)}</a>`}}function u(e){let t=e.raw[0],r=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm;return new RegExp(t.replace(r,""))}function c(e){let t=e.raw[0],r=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm;return RegExp(t.replace(r,""),"g")}},43203:(e,t,r)=>{"use strict";r.d(t,{n:()=>n.nA});var n=r(5989)},43561:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=r(62678).Or},44695:(e,t,r)=>{"use strict";r.d(t,{L:()=>n.L2});var n=r(82150)},45916:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],s=(0,n.A)("text-align-start",i)},48434:(e,t,r)=>{"use strict";r.d(t,{_:()=>n._0});var n=r(82150)},49698:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]],s=(0,n.A)("variable",i)},50538:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],s=(0,n.A)("history",i)},51914:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],s=(0,n.A)("plus",i)},52475:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],s=(0,n.A)("code",i)},53961:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],s=(0,n.A)("zap",i)},59265:(e,t,r)=>{"use strict";r.d(t,{N_:()=>tc,Ay:()=>th});var n=r(82159);let i="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",s="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",o="numeric",l="ascii",a="alpha",u="asciinumeric",c="alphanumeric",h="domain",d="emoji",p="scheme",f="slashscheme",m="whitespace";function g(e,t){return e in t||(t[e]=[]),t[e]}function _(e,t,r){for(let n in t[o]&&(t[u]=!0,t[c]=!0),t[l]&&(t[u]=!0,t[a]=!0),t[u]&&(t[c]=!0),t[a]&&(t[c]=!0),t[c]&&(t[h]=!0),t[d]&&(t[h]=!0),t){let t=g(n,r);0>t.indexOf(e)&&t.push(e)}}function y(e,t){let r={};for(let n in t)t[n].indexOf(e)>=0&&(r[n]=!0);return r}function k(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}k.groups={},k.prototype={accepts(){return!!this.t},go(e){let t=this,r=t.j[e];if(r)return r;for(let r=0;r<t.jr.length;r++){let n=t.jr[r][0],i=t.jr[r][1];if(i&&n.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,r,n){for(let i=0;i<e.length;i++)this.tt(e[i],t,r,n)},tr(e,t,r,n){let i;return n=n||k.groups,t&&t.j?i=t:(i=new k(t),r&&n&&_(t,r,n)),this.jr.push([e,i]),i},ts(e,t,r,n){let i=this,s=e.length;if(!s)return i;for(let t=0;t<s-1;t++)i=i.tt(e[t]);return i.tt(e[s-1],t,r,n)},tt(e,t,r,n){n=n||k.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let s=t,o,l=i.go(e);return l?(Object.assign((o=new k).j,l.j),o.jr.push.apply(o.jr,l.jr),o.jd=l.jd,o.t=l.t):o=new k,s&&(n&&(o.t&&"string"==typeof o.t?_(s,Object.assign(y(o.t,n),r),n):r&&_(s,r,n)),o.t=s),i.j[e]=o,o}};let b=(e,t,r,n,i)=>e.ta(t,r,n,i),w=(e,t,r,n,i)=>e.tr(t,r,n,i),x=(e,t,r,n,i)=>e.ts(t,r,n,i),v=(e,t,r,n,i)=>e.tt(t,r,n,i),C="WORD",A="UWORD",E="ASCIINUMERICAL",S="ALPHANUMERICAL",M="LOCALHOST",T="TLD",D="UTLD",F="SCHEME",I="SLASH_SCHEME",L="NUM",R="WS",N="NL",O="OPENBRACE",z="CLOSEBRACE",P="OPENBRACKET",$="CLOSEBRACKET",B="OPENPAREN",q="CLOSEPAREN",j="OPENANGLEBRACKET",H="CLOSEANGLEBRACKET",U="FULLWIDTHLEFTPAREN",V="FULLWIDTHRIGHTPAREN",W="LEFTCORNERBRACKET",J="RIGHTCORNERBRACKET",K="LEFTWHITECORNERBRACKET",G="RIGHTWHITECORNERBRACKET",Z="FULLWIDTHLESSTHAN",X="FULLWIDTHGREATERTHAN",Y="AMPERSAND",Q="APOSTROPHE",ee="ASTERISK",et="AT",er="BACKSLASH",en="BACKTICK",ei="CARET",es="COLON",eo="COMMA",el="DOLLAR",ea="DOT",eu="EQUALS",ec="EXCLAMATION",eh="HYPHEN",ed="PERCENT",ep="PIPE",ef="PLUS",em="POUND",eg="QUERY",e_="QUOTE",ey="FULLWIDTHMIDDLEDOT",ek="SEMI",eb="SLASH",ew="TILDE",ex="UNDERSCORE",ev="EMOJI",eC="SYM";var eA=Object.freeze({__proto__:null,ALPHANUMERICAL:S,AMPERSAND:Y,APOSTROPHE:Q,ASCIINUMERICAL:E,ASTERISK:ee,AT:et,BACKSLASH:er,BACKTICK:en,CARET:ei,CLOSEANGLEBRACKET:H,CLOSEBRACE:z,CLOSEBRACKET:$,CLOSEPAREN:q,COLON:es,COMMA:eo,DOLLAR:el,DOT:ea,EMOJI:ev,EQUALS:eu,EXCLAMATION:ec,FULLWIDTHGREATERTHAN:X,FULLWIDTHLEFTPAREN:U,FULLWIDTHLESSTHAN:Z,FULLWIDTHMIDDLEDOT:ey,FULLWIDTHRIGHTPAREN:V,HYPHEN:eh,LEFTCORNERBRACKET:W,LEFTWHITECORNERBRACKET:K,LOCALHOST:M,NL:N,NUM:L,OPENANGLEBRACKET:j,OPENBRACE:O,OPENBRACKET:P,OPENPAREN:B,PERCENT:ed,PIPE:ep,PLUS:ef,POUND:em,QUERY:eg,QUOTE:e_,RIGHTCORNERBRACKET:J,RIGHTWHITECORNERBRACKET:G,SCHEME:F,SEMI:ek,SLASH:eb,SLASH_SCHEME:I,SYM:eC,TILDE:ew,TLD:T,UNDERSCORE:ex,UTLD:D,UWORD:A,WORD:C,WS:R});let eE=/[a-z]/,eS=/\p{L}/u,eM=/\p{Emoji}/u,eT=/\d/,eD=/\s/,eF="\r",eI="\n",eL="️",eR="",eN="",eO=null,ez=null;function eP(e=[]){let t={};k.groups=t;let r=new k;null==eO&&(eO=ej(i)),null==ez&&(ez=ej(s)),v(r,"'",Q),v(r,"{",O),v(r,"}",z),v(r,"[",P),v(r,"]",$),v(r,"(",B),v(r,")",q),v(r,"<",j),v(r,">",H),v(r,"(",U),v(r,")",V),v(r,"「",W),v(r,"」",J),v(r,"『",K),v(r,"』",G),v(r,"<",Z),v(r,">",X),v(r,"&",Y),v(r,"*",ee),v(r,"@",et),v(r,"`",en),v(r,"^",ei),v(r,":",es),v(r,",",eo),v(r,"$",el),v(r,".",ea),v(r,"=",eu),v(r,"!",ec),v(r,"-",eh),v(r,"%",ed),v(r,"|",ep),v(r,"+",ef),v(r,"#",em),v(r,"?",eg),v(r,'"',e_),v(r,"/",eb),v(r,";",ek),v(r,"~",ew),v(r,"_",ex),v(r,"\\",er),v(r,"・",ey);let n=w(r,eT,L,{[o]:!0});w(n,eT,n);let g=w(n,eE,E,{[u]:!0}),y=w(n,eS,S,{[c]:!0}),b=w(r,eE,C,{[l]:!0});w(b,eT,g),w(b,eE,b),w(g,eT,g),w(g,eE,g);let e$=w(r,eS,A,{[a]:!0});w(e$,eE),w(e$,eT,y),w(e$,eS,e$),w(y,eT,y),w(y,eE),w(y,eS,y);let eB=v(r,eI,N,{[m]:!0}),eH=v(r,eF,R,{[m]:!0}),eU=w(r,eD,R,{[m]:!0});v(r,eN,eU),v(eH,eI,eB),v(eH,eN,eU),w(eH,eD,eU),v(eU,eF),v(eU,eI),w(eU,eD,eU),v(eU,eN,eU);let eV=w(r,eM,ev,{[d]:!0});v(eV,"#"),w(eV,eM,eV),v(eV,eL,eV);let eW=v(eV,eR);v(eW,"#"),w(eW,eM,eV);let eJ=[[eE,b],[eT,g]],eK=[[eE,null],[eS,e$],[eT,y]];for(let e=0;e<eO.length;e++)eq(r,eO[e],T,C,eJ);for(let e=0;e<ez.length;e++)eq(r,ez[e],D,A,eK);_(T,{tld:!0,ascii:!0},t),_(D,{utld:!0,alpha:!0},t),eq(r,"file",F,C,eJ),eq(r,"mailto",F,C,eJ),eq(r,"http",I,C,eJ),eq(r,"https",I,C,eJ),eq(r,"ftp",I,C,eJ),eq(r,"ftps",I,C,eJ),_(F,{scheme:!0,ascii:!0},t),_(I,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let n=e[t][0],i=e[t][1]?{[p]:!0}:{[f]:!0};n.indexOf("-")>=0?i[h]=!0:eE.test(n)?eT.test(n)?i[u]=!0:i[l]=!0:i[o]=!0,x(r,n,n,i)}return x(r,"localhost",M,{ascii:!0}),r.jd=new k(eC),{start:r,tokens:Object.assign({groups:t},eA)}}function e$(e,t){let r=eB(t.replace(/[A-Z]/g,e=>e.toLowerCase())),n=r.length,i=[],s=0,o=0;for(;o<n;){let l=e,a=null,u=0,c=null,h=-1,d=-1;for(;o<n&&(a=l.go(r[o]));)(l=a).accepts()?(h=0,d=0,c=l):h>=0&&(h+=r[o].length,d++),u+=r[o].length,s+=r[o].length,o++;s-=h,o-=d,u-=h,i.push({t:c.t,v:t.slice(s-u,s),s:s-u,e:s})}return i}function eB(e){let t=[],r=e.length,n=0;for(;n<r;){let i,s=e.charCodeAt(n),o=s<55296||s>56319||n+1===r||(i=e.charCodeAt(n+1))<56320||i>57343?e[n]:e.slice(n,n+2);t.push(o),n+=o.length}return t}function eq(e,t,r,n,i){let s,o=t.length;for(let r=0;r<o-1;r++){let o=t[r];e.j[o]?s=e.j[o]:((s=new k(n)).jr=i.slice(),e.j[o]=s),e=s}return(s=new k(r)).jr=i.slice(),e.j[t[o-1]]=s,s}function ej(e){let t=[],r=[],n=0,i="0123456789";for(;n<e.length;){let s=0;for(;i.indexOf(e[n+s])>=0;)s++;if(s>0){t.push(r.join(""));for(let t=parseInt(e.substring(n,n+s),10);t>0;t--)r.pop();n+=s}else r.push(e[n]),n++}return t}let eH={defaultProtocol:"http",events:null,format:eV,formatHref:eV,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function eU(e,t=null){let r=Object.assign({},eH);e&&(r=Object.assign(r,e instanceof eU?e.o:e));let n=r.ignoreTags,i=[];for(let e=0;e<n.length;e++)i.push(n[e].toUpperCase());this.o=r,t&&(this.defaultRender=t),this.ignoreTags=i}function eV(e){return e}function eW(e,t){this.t="token",this.v=e,this.tk=t}function eJ(e,t){class r extends eW{constructor(t,r){super(t,r),this.t=e}}for(let e in t)r.prototype[e]=t[e];return r.t=e,r}eU.prototype={o:eH,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,r){let n=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=r.t in i?i[r.t]:eH[e])&&n&&(i=i(t,r)):"function"==typeof i&&n&&(i=i(t,r.t,r))),i},getObj(e,t,r){let n=this.o[e];return"function"==typeof n&&null!=t&&(n=n(t,r.t,r)),n},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},eW.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),r=e.get("truncate",t,this),n=e.get("format",t,this);return r&&n.length>r?n.substring(0,r)+"…":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=eH.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this,r=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",r,this),i=e.get("tagName",r,t),s=this.toFormattedString(e),o={},l=e.get("className",r,t),a=e.get("target",r,t),u=e.get("rel",r,t),c=e.getObj("attributes",r,t),h=e.getObj("events",r,t);return o.href=n,l&&(o.class=l),a&&(o.target=a),u&&(o.rel=u),c&&Object.assign(o,c),{tagName:i,attributes:o,content:s,eventListeners:h}}};let eK=eJ("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eG=eJ("text"),eZ=eJ("nl"),eX=eJ("url",{isLink:!0,toHref(e=eH.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==M&&e[1].t===es}}),eY=e=>new k(e);function eQ({groups:e}){let t=e.domain.concat([Y,ee,et,er,en,ei,el,eu,eh,L,ed,ep,ef,em,eb,eC,ew,ex]),r=[Q,es,eo,ea,ec,ed,eg,e_,ek,j,H,O,z,$,P,B,q,U,V,W,J,K,G,Z,X],n=[Y,Q,ee,er,en,ei,el,eu,eh,O,z,ed,ep,ef,em,eg,eb,eC,ew,ex],i=eY(),s=v(i,ew);b(s,n,s),b(s,e.domain,s);let o=eY(),l=eY(),a=eY();b(i,e.domain,o),b(i,e.scheme,l),b(i,e.slashscheme,a),b(o,n,s),b(o,e.domain,o);let u=v(o,et);v(s,et,u),v(l,et,u),v(a,et,u);let c=v(s,ea);b(c,n,s),b(c,e.domain,s);let h=eY();b(u,e.domain,h),b(h,e.domain,h);let d=v(h,ea);b(d,e.domain,h);let p=eY(eK);b(d,e.tld,p),b(d,e.utld,p),v(u,M,p);let f=v(h,eh);v(f,eh,f),b(f,e.domain,h),b(p,e.domain,h),v(p,ea,d),v(p,eh,f),b(v(p,es),e.numeric,eK);let m=v(o,eh),g=v(o,ea);v(m,eh,m),b(m,e.domain,o),b(g,n,s),b(g,e.domain,o);let _=eY(eX);b(g,e.tld,_),b(g,e.utld,_),b(_,e.domain,o),b(_,n,s),v(_,ea,g),v(_,eh,m),v(_,et,u);let y=v(_,es),k=eY(eX);b(y,e.numeric,k);let w=eY(eX),x=eY();b(w,t,w),b(w,r,x),b(x,t,w),b(x,r,x),v(_,eb,w),v(k,eb,w);let C=v(l,es),A=v(a,es),E=v(A,eb),S=v(E,eb);b(l,e.domain,o),v(l,ea,g),v(l,eh,m),b(a,e.domain,o),v(a,ea,g),v(a,eh,m),b(C,e.domain,w),v(C,eb,w),v(C,eg,w),b(S,e.domain,w),b(S,t,w),v(S,eb,w);let T=[[O,z],[P,$],[B,q],[j,H],[U,V],[W,J],[K,G],[Z,X]];for(let e=0;e<T.length;e++){let[n,i]=T[e],s=v(w,n);v(x,n,s),v(s,i,w);let o=eY(eX);b(s,t,o);let l=eY();b(s,r),b(o,t,o),b(o,r,l),b(l,t,o),b(l,r,l),v(o,i,w),v(l,i,w)}return v(i,M,_),v(i,N,eZ),{start:i,tokens:eA}}function e0(e,t,r){let n=r.length,i=0,s=[],o=[];for(;i<n;){let l=e,a=null,u=null,c=0,h=null,d=-1;for(;i<n&&!(a=l.go(r[i].t));)o.push(r[i++]);for(;i<n&&(u=a||l.go(r[i].t));)a=null,(l=u).accepts()?(d=0,h=l):d>=0&&d++,i++,c++;if(d<0)(i-=c)<n&&(o.push(r[i]),i++);else{o.length>0&&(s.push(e1(eG,t,o)),o=[]),i-=d,c-=d;let e=h.t,n=r.slice(i-c,i);s.push(e1(e,t,n))}}return o.length>0&&s.push(e1(eG,t,o)),s}function e1(e,t,r){let n=r[0].s,i=r[r.length-1].e;return new e(t.slice(n,i),r)}let e2="u">typeof console&&console&&console.warn||(()=>{}),e3="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",e5={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function e4(){return k.groups={},e5.scanner=null,e5.parser=null,e5.tokenQueue=[],e5.pluginQueue=[],e5.customSchemes=[],e5.initialized=!1,e5}function e6(e,t=!1){if(e5.initialized&&e2(`linkifyjs: already initialized - will not register custom scheme "${e}" ${e3}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
|
|
18
18
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
19
19
|
2. Cannot start or end with "-"
|
|
20
|
-
3. "-" cannot repeat`);e5.customSchemes.push([e,t])}function e8(){e5.scanner=eP(e5.customSchemes);for(let e=0;e<e5.tokenQueue.length;e++)e5.tokenQueue[e][1]({scanner:e5.scanner});e5.parser=eQ(e5.scanner.tokens);for(let e=0;e<e5.pluginQueue.length;e++)e5.pluginQueue[e][1]({scanner:e5.scanner,parser:e5.parser});return e5.initialized=!0,e5}function e9(e){return e5.initialized||e8(),e0(e5.parser.start,e,e$(e5.scanner.start,e))}function e7(e,t=null,r=null){if(t&&"object"==typeof t){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}let n=new eU(r),i=e9(e),s=[];for(let e=0;e<i.length;e++){let r=i[e];r.isLink&&(!t||r.t===t)&&n.check(r)&&s.push(r.toFormattedObject(n))}return s}e9.scan=e$;var te=r(76865),tt="[\0- \xa0 -\u2029 ]",tr=new RegExp(tt),tn=RegExp(`${tt}$`),ti=RegExp(tt,"g");function ts(e){return 1===e.length?e[0].isLink:3===e.length&&!!e[1].isLink&&["()","[]"].includes(e[0].value+e[2].value)}function to(e){return new te.k_({key:new te.hs("autolink"),appendTransaction:(t,r,i)=>{let s=t.some(e=>e.docChanged)&&!r.doc.eq(i.doc),o=t.some(e=>e.getMeta("preventAutolink"));if(!s||o)return;let{tr:l}=i,a=(0,n.T7)(r.doc,[...t]);if((0,n.FF)(a).forEach(({newRange:t})=>{let r,s,o=(0,n.Nx)(i.doc,t,e=>e.isTextblock);if(o.length>1)r=o[0],s=i.doc.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," ");else if(o.length){let e=i.doc.textBetween(t.from,t.to," "," ");if(!tn.test(e))return;r=o[0],s=i.doc.textBetween(r.pos,t.to,void 0," ")}if(r&&s){let t=s.split(tr).filter(Boolean);if(t.length<=0)return!1;let o=t[t.length-1],a=r.pos+s.lastIndexOf(o);if(!o)return!1;let u=e9(o).map(t=>t.toObject(e.defaultProtocol));if(!ts(u))return!1;u.filter(e=>e.isLink).map(e=>({...e,from:a+e.start+1,to:a+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,n.hO)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||l.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),l.steps.length)return l}})}function tl(e){return new te.k_({key:new te.hs("handleClickLink"),props:{handleClick:(t,r,i)=>{var s,o;if(0!==i.button||!t.editable)return!1;let l=null;if(i.target instanceof HTMLAnchorElement)l=i.target;else{let t=i.target;if(!t)return!1;let r=e.editor.view.dom;(l=t.closest("a"))&&!r.contains(l)&&(l=null)}if(!l)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let r=(0,n.gu)(t.state,e.type.name),i=null!=(s=l.href)?s:r.href,u=null!=(o=l.target)?o:r.target;i&&(window.open(i,u),a=!0)}return a}}})}function ta(e){return new te.k_({key:new te.hs("handlePasteLink"),props:{handlePaste:(t,r,n)=>{let{shouldAutoLink:i}=e,{state:s}=t,{selection:o}=s,{empty:l}=o;if(l)return!1;let a="";n.content.forEach(e=>{a+=e.textContent});let u=e7(a,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===a);return!!a&&!!u&&(void 0===i||!!i(u.value))&&e.editor.commands.setMark(e.type,{href:u.href})}}})}function tu(e,t){let r=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&r.push(t)}),!e||e.replace(ti,"").match(RegExp(`^(?:(?:${r.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var tc=n.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{"string"==typeof e?e6(e):e6(e.scheme,e.optionalSlashes)})},onDestroy(){e4()},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!tu(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),r=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||r&&!e.includes("@"))return!0;let n=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!/^\d{1,3}(\.\d{1,3}){3}$/.test(n)&&!!/\./.test(n)}}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!t&&!!this.options.isAllowedUri(t,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,n.KV)(this.options.HTMLAttributes,e),0]:["a",(0,n.KV)(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var r,n,i,s;let o=null!=(n=null==(r=e.attrs)?void 0:r.href)?n:"",l=null!=(s=null==(i=e.attrs)?void 0:i.title)?s:"",a=t.renderChildren(e);return l?`[${a}](${o} "${l}")`:`[${a}](${o})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:r}=e;return!!this.options.isAllowedUri(r,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{let{href:r}=e||{};return(!r||!!this.options.isAllowedUri(r,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,n.Zc)({find:e=>{let t=[];if(e){let{protocols:r,defaultProtocol:n}=this.options,i=e7(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!tu(e,r),protocols:r,defaultProtocol:n}));i.length&&i.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t},type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:r}=this.options;return this.options.autolink&&e.push(to({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!tu(e,t),protocols:t,defaultProtocol:r}),shouldAutoLink:this.options.shouldAutoLink})),e.push(tl({type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(ta({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),th=tc},61878:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],s=(0,n.A)("search",i)},62678:(e,t,r)=>{"use strict";r.d(t,{QO:()=>J,vR:()=>K,Or:()=>X,JU:()=>ee,lb:()=>et});var n=r(82159),i=r(76865),s=r(8242);function o(e={}){return new i.k_({view:t=>new l(t,e)})}class l{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(r=t.width)?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,r=this.editorView.state.doc.resolve(this.cursorPos),n=!r.parent.inlineContent,i,s=this.editorView.dom,o=s.getBoundingClientRect(),l=o.width/s.offsetWidth,a=o.height/s.offsetHeight;if(n){let e=r.nodeBefore,t=r.nodeAfter;if(e||t){let r=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(r){let n=r.getBoundingClientRect(),s=e?n.bottom:n.top;e&&t&&(s=(s+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let o=this.width/2*a;i={left:n.left,right:n.right,top:s-o,bottom:s+o}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*l;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let u=this.editorView.dom.offsetParent;if(!this.element&&(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),u&&(u!=document.body||"static"!=getComputedStyle(u).position)){let r=u.getBoundingClientRect(),n=r.width/u.offsetWidth,i=r.height/u.offsetHeight;e=r.left-u.scrollLeft*n,t=r.top-u.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/l+"px",this.element.style.top=(i.top-t)/a+"px",this.element.style.width=(i.right-i.left)/l+"px",this.element.style.height=(i.bottom-i.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,i="function"==typeof n?n(this.editorView,t,e):n;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,s.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var a=r(63197),u=r(12894),c=r(27050);class h extends i.LN{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return h.valid(r)?new h(r):i.LN.near(r)}content(){return c.Ji.empty}eq(e){return e instanceof h&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new h(e.resolve(t.pos))}getBookmark(){return new d(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!f(e)||!m(e))return!1;let r=t.type.spec.allowGapCursor;if(null!=r)return r;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,r=!1){i:for(;;){if(!r&&h.valid(e))return e;let n=e.pos,s=null;for(let r=e.depth;;r--){let i=e.node(r);if(t>0?e.indexAfter(r)<i.childCount:e.index(r)>0){s=i.child(t>0?e.indexAfter(r):e.index(r)-1);break}if(0==r)return null;n+=t;let o=e.doc.resolve(n);if(h.valid(o))return o}for(;;){let o=t>0?s.firstChild:s.lastChild;if(!o){if(s.isAtom&&!s.isText&&!i.nh.isSelectable(s)){e=e.doc.resolve(n+s.nodeSize*t),r=!1;continue i}break}s=o,n+=t;let l=e.doc.resolve(n);if(h.valid(l))return l}return null}}}h.prototype.visible=!1,h.findFrom=h.findGapCursorFrom,i.LN.jsonID("gapcursor",h);class d{constructor(e){this.pos=e}map(e){return new d(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return h.valid(t)?new h(t):i.LN.near(t)}}function p(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function f(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),n=e.node(t);if(0==r){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||p(e.type))return!0;if(e.inlineContent)return!1}}return!0}function m(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),n=e.node(t);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||p(e.type))return!0;if(e.inlineContent)return!1}}return!0}function g(){return new i.k_({props:{decorations:w,createSelectionBetween:(e,t,r)=>t.pos==r.pos&&h.valid(r)?new h(r):null,handleClick:k,handleKeyDown:_,handleDOMEvents:{beforeinput:b}}})}let _=(0,u.K)({ArrowLeft:y("horiz",-1),ArrowRight:y("horiz",1),ArrowUp:y("vert",-1),ArrowDown:y("vert",1)});function y(e,t){let r="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,n,s){let o=e.selection,l=t>0?o.$to:o.$from,a=o.empty;if(o instanceof i.U3){if(!s.endOfTextblock(r)||0==l.depth)return!1;a=!1,l=e.doc.resolve(t>0?l.after():l.before())}let u=h.findGapCursorFrom(l,t,a);return!!u&&(n&&n(e.tr.setSelection(new h(u))),!0)}}function k(e,t,r){if(!e||!e.editable)return!1;let n=e.state.doc.resolve(t);if(!h.valid(n))return!1;let s=e.posAtCoords({left:r.clientX,top:r.clientY});return!(s&&s.inside>-1&&i.nh.isSelectable(e.state.doc.nodeAt(s.inside)))&&(e.dispatch(e.state.tr.setSelection(new h(n))),!0)}function b(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof h))return!1;let{$from:r}=e.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!n)return!1;let s=c.FK.empty;for(let e=n.length-1;e>=0;e--)s=c.FK.from(n[e].createAndFill(null,s));let o=e.state.tr.replace(r.pos,r.pos,new c.Ji(s,0,0));return o.setSelection(i.U3.near(o.doc.resolve(r.pos+1))),e.dispatch(o),!1}function w(e){if(!(e.selection instanceof h))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",a.zF.create(e.doc,[a.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}var x=200,v=function(){};v.prototype.append=function(e){return e.length?(e=v.from(e),!this.length&&e||e.length<x&&this.leafAppend(e)||this.length<x&&e.leafPrepend(this)||this.appendInner(e)):this},v.prototype.prepend=function(e){return e.length?v.from(e).append(this):this},v.prototype.appendInner=function(e){return new A(this,e)},v.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?v.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},v.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},v.prototype.forEach=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},v.prototype.map=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(t,r){return n.push(e(t,r))},t,r),n},v.from=function(e){return e instanceof v?e:e&&e.length?new C(e):v.empty};var C=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,r){return 0==e&&r==this.length?this:new t(this.values.slice(e,r))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,r,n){for(var i=t;i<r;i++)if(!1===e(this.values[i],n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){for(var i=t-1;i>=r;i--)if(!1===e(this.values[i],n+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=x)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=x)return new t(e.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(v);v.empty=new C([]);var A=function(e){function t(t,r){e.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,r,n){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(r,i),n)||r>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,r)-i,n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(r,i)-i,n+i)||r<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),r,n))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var r=this.left.length;return t<=r?this.left.slice(e,t):e>=r?this.right.slice(e-r,t-r):this.left.slice(e,r).append(this.right.slice(0,t-r))},t.prototype.leafAppend=function(e){var r=this.right.leafAppend(e);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(e){var r=this.left.leafPrepend(e);if(r)return new t(r,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(v);let E=v,S=500;class M{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let r,n,i,s;if(0==this.eventCount)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}t&&(n=(r=this.remapping(o,this.items.length)).maps.length);let l=e.tr,a=[],u=[];return this.items.forEach((e,t)=>{if(!e.step){r||(n=(r=this.remapping(o,t+1)).maps.length),n--,u.push(e);return}if(r){u.push(new D(e.map));let t=e.step.map(r.slice(n)),i;t&&l.maybeStep(t).doc&&(i=l.mapping.maps[l.mapping.maps.length-1],a.push(new D(i,void 0,void 0,a.length+u.length))),n--,i&&r.appendMap(i,n)}else l.maybeStep(e.step);if(e.selection)return i=r?e.selection.map(r.slice(n)):e.selection,s=new M(this.items.slice(0,o).append(u.reverse().concat(a)),this.eventCount-1),!1},this.items.length,0),{remaining:s,transform:l,selection:i}}addTransform(e,t,r,n){let i=[],s=this.eventCount,o=this.items,l=!n&&o.length?o.get(o.length-1):null;for(let r=0;r<e.steps.length;r++){let a=e.steps[r].invert(e.docs[r]),u=new D(e.mapping.maps[r],a,t),c;(c=l&&l.merge(u))&&(u=c,r?i.pop():o=o.slice(0,o.length-1)),i.push(u),t&&(s++,t=void 0),n||(l=u)}let a=s-r.depth;return a>I&&(o=T(o,a),s-=a),new M(o.append(i),s)}remapping(e,t){let r=new s.X9;return this.items.forEach((t,n)=>{let i=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?r.maps.length-t.mirrorOffset:void 0;r.appendMap(t.map,i)},e,t),r}addMaps(e){return 0==this.eventCount?this:new M(this.items.append(e.map(e=>new D(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-t),i=e.mapping,s=e.steps.length,o=this.eventCount;this.items.forEach(e=>{e.selection&&o--},n);let l=t;this.items.forEach(t=>{let n=i.getMirror(--l);if(null==n)return;s=Math.min(s,n);let a=i.maps[n];if(t.step){let s=e.steps[n].invert(e.docs[n]),u=t.selection&&t.selection.map(i.slice(l+1,n));u&&o++,r.push(new D(a,s,u))}else r.push(new D(a))},n);let a=[];for(let e=t;e<s;e++)a.push(new D(i.maps[e]));let u=new M(this.items.slice(0,n).append(a).append(r),o);return u.emptyItemCount()>S&&(u=u.compress(this.items.length-r.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,n=[],i=0;return this.items.forEach((s,o)=>{if(o>=e)n.push(s),s.selection&&i++;else if(s.step){let e=s.step.map(t.slice(r)),o=e&&e.getMap();if(r--,o&&t.appendMap(o,r),e){let l=s.selection&&s.selection.map(t.slice(r));l&&i++;let a=new D(o.invert(),e,l),u,c=n.length-1;(u=n.length&&n[c].merge(a))?n[c]=u:n.push(a)}}else s.map&&r--},this.items.length,0),new M(E.from(n.reverse()),i)}}function T(e,t){let r;return e.forEach((e,n)=>{if(e.selection&&0==t--)return r=n,!1}),e.slice(r)}M.empty=new M(E.empty,0);class D{constructor(e,t,r,n){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new D(t.getMap().invert(),t,this.selection)}}}class F{constructor(e,t,r,n,i){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}let I=20;function L(e,t,r,n){let i=r.getMeta(q),s;if(i)return i.historyState;r.getMeta(j)&&(e=new F(e.done,e.undone,null,0,-1));let o=r.getMeta("appendedTransaction");if(0==r.steps.length)return e;if(o&&o.getMeta(q))if(o.getMeta(q).redo)return new F(e.done.addTransform(r,void 0,n,B(t)),e.undone,R(r.mapping.maps),e.prevTime,e.prevComposition);else return new F(e.done,e.undone.addTransform(r,void 0,n,B(t)),null,e.prevTime,e.prevComposition);if(!1===r.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))if(s=r.getMeta("rebased"))return new F(e.done.rebased(r,s),e.undone.rebased(r,s),O(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);else return new F(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),O(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);{let i=r.getMeta("composition"),s=0==e.prevTime||!o&&e.prevComposition!=i&&(e.prevTime<(r.time||0)-n.newGroupDelay||!N(r,e.prevRanges)),l=o?O(e.prevRanges,r.mapping):R(r.mapping.maps);return new F(e.done.addTransform(r,s?t.selection.getBookmark():void 0,n,B(t)),M.empty,l,r.time,null==i?e.prevComposition:i)}}function N(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;return e.mapping.maps[0].forEach((e,n)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&n>=t[i]&&(r=!0)}),r}function R(e){let t=[];for(let r=e.length-1;r>=0&&0==t.length;r--)e[r].forEach((e,r,n,i)=>t.push(n,i));return t}function O(e,t){if(!e)return null;let r=[];for(let n=0;n<e.length;n+=2){let i=t.map(e[n],1),s=t.map(e[n+1],-1);i<=s&&r.push(i,s)}return r}function z(e,t,r){let n=B(t),i=q.get(t).spec.config,s=(r?e.undone:e.done).popEvent(t,n);if(!s)return null;let o=s.selection.resolve(s.transform.doc),l=(r?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),i,n),a=new F(r?l:s.remaining,r?s.remaining:l,null,0,-1);return s.transform.setSelection(o).setMeta(q,{redo:r,historyState:a})}let P=!1,$=null;function B(e){let t=e.plugins;if($!=t){P=!1,$=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){P=!0;break}}return P}let q=new i.hs("history"),j=new i.hs("closeHistory");function H(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new i.k_({key:q,state:{init:()=>new F(M.empty,M.empty,null,0,-1),apply:(t,r,n)=>L(r,n,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,n="historyUndo"==r?V:"historyRedo"==r?W:null;return!!n&&!!e.editable&&(t.preventDefault(),n(e.state,e.dispatch))}}}})}function U(e,t){return(r,n)=>{let i=q.getState(r);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(n){let s=z(i,r,e);s&&n(t?s.scrollIntoView():s)}return!0}}let V=U(!1,!0),W=U(!0,!0);U(!1,!1),U(!0,!1),n.YY.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){let e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc,r=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(r)}},addProseMirrorPlugins(){let e=!1;return[new i.k_({key:new i.hs("characterCount"),appendTransaction:(t,r,n)=>{if(e)return;let i=this.options.limit;if(null==i||0===i){e=!0;return}let s=this.storage.characters({node:n.doc});if(s>i){let t=0,r=s-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let o=n.tr.deleteRange(t,r);return e=!0,o}e=!0},filterTransaction:(e,t)=>{let r=this.options.limit;if(!e.docChanged||0===r||null==r)return!0;let n=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=r||n>r&&i>r&&i<=n)return!0;if(n>r&&i>r&&i>n||!e.getMeta("paste"))return!1;let s=e.selection.$head.pos,o=s-(i-r),l=s;return e.deleteRange(o,l),!(this.storage.characters({node:e.doc})>r)}})]}});var J=n.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[o(this.options)]}});n.YY.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new i.k_({key:new i.hs("focus"),props:{decorations:({doc:e,selection:t})=>{let{isEditable:r,isFocused:n}=this.editor,{anchor:i}=t,s=[];if(!r||!n)return a.zF.create(e,[]);let o=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let l=0;return e.descendants((e,t)=>!e.isText&&!!(i>=t&&i<=t+e.nodeSize-1)&&((l+=1,"deepest"===this.options.mode&&o-l>0||"shallowest"===this.options.mode&&l>1)?"deepest"===this.options.mode:void s.push(a.NZ.node(t,t+e.nodeSize,{class:this.options.className})))),a.zF.create(e,s)}}})]}});var K=n.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[g()],extendNodeSchema(e){var t;let r={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,n.gk)((0,n.iI)(e,"allowGapCursor",r)))?t:null}}}),G="placeholder";function Z(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var X=n.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:G,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){let e=this.options.dataAttribute?`data-${Z(this.options.dataAttribute)}`:`data-${G}`;return[new i.k_({key:new i.hs("placeholder"),props:{decorations:({doc:t,selection:r})=>{let i=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:s}=r,o=[];if(!i)return null;let l=this.editor.isEmpty;return t.descendants((t,r)=>{let i=s>=r&&s<=r+t.nodeSize,u=!t.isLeaf&&(0,n.Op)(t);if(!t.type.isTextblock)return this.options.includeChildren;if((i||!this.options.showOnlyCurrent)&&u){let n=[this.options.emptyNodeClass];l&&n.push(this.options.emptyEditorClass);let s=a.NZ.node(r,r+t.nodeSize,{class:n.join(" "),[e]:"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:t,pos:r,hasAnchor:i}):this.options.placeholder});o.push(s)}return this.options.includeChildren}),a.zF.create(t,o)}}})]}});n.YY.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new i.k_({key:new i.hs("selection"),props:{decorations:r=>r.selection.empty||e.isFocused||!e.isEditable||(0,n.BQ)(r.selection)||e.view.dragging?null:a.zF.create(r.doc,[a.NZ.inline(r.selection.from,r.selection.to,{class:t.className})])}})]}});var Y="skipTrailingNode";function Q({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(null==t?void 0:t.type)===e}var ee=n.YY.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var e;let t=new i.hs(this.name),r=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(r).includes(e.name));return[new i.k_({key:t,appendTransaction:(e,n,i)=>{let{doc:s,tr:o,schema:l}=i,a=t.getState(i),u=s.content.size,c=l.nodes[r];if(!e.some(e=>e.getMeta(Y))&&a)return o.insert(u,c.create())},state:{init:(e,t)=>!Q({node:t.tr.doc.lastChild,types:n}),apply:(e,t)=>!e.docChanged||e.getMeta("__uniqueIDTransaction")?t:!Q({node:e.doc.lastChild,types:n})}})]}}),et=n.YY.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>V(e,t),redo:()=>({state:e,dispatch:t})=>W(e,t)}),addProseMirrorPlugins(){return[H(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}})},65915:e=>{var t=!0,r=!1,n=!1;function i(e,t,r){var n=e.attrIndex(t),i=[t,r];n<0?e.attrPush(i):e.attrs[n]=i}function s(e,t){for(var r=e[t].level-1,n=t-1;n>=0;n--)if(e[n].level===r)return n;return -1}function o(e,t){return d(e[t])&&p(e[t-1])&&f(e[t-2])&&m(e[t])}function l(e,t){if(e.children.unshift(a(e,t)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),r)if(n){e.children.pop();var i="task-item-"+Math.ceil(1e7*Math.random()-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+i+'">',e.children.push(h(e.content,i,t))}else e.children.unshift(u(t)),e.children.push(c(t))}function a(e,r){var n=new r("html_inline","",0),i=t?' disabled="" ':"";return 0===e.content.indexOf("[ ] ")?n.content='<input class="task-list-item-checkbox"'+i+'type="checkbox">':(0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] "))&&(n.content='<input class="task-list-item-checkbox" checked=""'+i+'type="checkbox">'),n}function u(e){var t=new e("html_inline","",0);return t.content="<label>",t}function c(e){var t=new e("html_inline","",0);return t.content="</label>",t}function h(e,t,r){var n=new r("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",n.attrs=[{for:t}],n}function d(e){return"inline"===e.type}function p(e){return"paragraph_open"===e.type}function f(e){return"list_item_open"===e.type}function m(e){return 0===e.content.indexOf("[ ] ")||0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] ")}e.exports=function(e,a){a&&(t=!a.enabled,r=!!a.label,n=!!a.labelAfter),e.core.ruler.after("inline","github-task-lists",function(e){for(var r=e.tokens,n=2;n<r.length;n++)o(r,n)&&(l(r[n],e.Token),i(r[n-2],"class","task-list-item"+(t?"":" enabled")),i(r[s(r,n-2)],"class","contains-task-list"))})}},68459:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],s=(0,n.A)("trash-2",i)},68806:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],s=(0,n.A)("plug",i)},69048:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]],s=(0,n.A)("square-function",i)},73300:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],s=(0,n.A)("clipboard",i)},76022:(e,t,r)=>{"use strict";e.exports=r.p+"static/media/web-tree-sitter.f7f7244f.wasm"},76065:(e,t,r)=>{"use strict";r.d(t,{H:()=>n.Hj});var n=r(5989)},76865:(e,t,r)=>{"use strict";r.d(t,{$t:()=>E,LN:()=>o,U3:()=>c,hs:()=>F,i5:()=>f,k_:()=>M,nh:()=>d,yn:()=>l});var n=r(27050),i=r(8242);let s=Object.create(null);class o{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new l(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=n.Ji.empty){let r=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=r,r=r.lastChild;let s=e.steps.length,o=this.ranges;for(let l=0;l<o.length;l++){let{$from:a,$to:u}=o[l],c=e.mapping.slice(s);e.replaceRange(c.map(a.pos),c.map(u.pos),l?n.Ji.empty:t),0==l&&_(e,s,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:o}=n[i],l=e.mapping.slice(r),a=l.map(s.pos),u=l.map(o.pos);i?e.deleteRange(a,u):(e.replaceRangeWith(a,u,t),_(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let n=e.parent.inlineContent?new c(e):g(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let i=t<0?g(e.node(0),e.node(n),e.before(n+1),e.index(n),t,r):g(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,t,r);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new f(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new f(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let r=s[t.type];if(!r)throw RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in s)throw RangeError("Duplicate use of selection JSON ID "+e);return s[e]=t,t.prototype.jsonID=e,t}getBookmark(){return c.between(this.$anchor,this.$head).getBookmark()}}o.prototype.visible=!0;class l{constructor(e,t){this.$from=e,this.$to=t}}let a=!1;function u(e){a||e.parent.inlineContent||(a=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class c extends o{constructor(e,t=e){u(e),u(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return o.near(r);let n=e.resolve(t.map(this.anchor));return new c(n.parent.inlineContent?n:r,r)}replace(e,t=n.Ji.empty){if(super.replace(e,t),t==n.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof c&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new h(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new c(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let n=e.pos-t.pos;if((!r||n)&&(r=n>=0?1:-1),!t.parent.inlineContent){let e=o.findFrom(t,r,!0)||o.findFrom(t,-r,!0);if(!e)return o.near(t,r);t=e.$head}return e.parent.inlineContent||(0==n?e=t:(e=(o.findFrom(e,-r,!0)||o.findFrom(e,r,!0)).$anchor).pos<t.pos!=n<0&&(e=t)),new c(e,t)}}o.jsonID("text",c);class h{constructor(e,t){this.anchor=e,this.head=t}map(e){return new h(e.map(this.anchor),e.map(this.head))}resolve(e){return c.between(e.resolve(this.anchor),e.resolve(this.head))}}class d extends o{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return r?o.near(i):new d(i)}content(){return new n.Ji(n.FK.from(this.node),0,0)}eq(e){return e instanceof d&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new p(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new d(e.resolve(t.anchor))}static create(e,t){return new d(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}d.prototype.visible=!1,o.jsonID("node",d);class p{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new h(r,r):new p(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&d.isSelectable(r)?new d(t):o.near(t)}}class f extends o{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=n.Ji.empty){if(t==n.Ji.empty){e.delete(0,e.doc.content.size);let t=o.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new f(e)}map(e){return new f(e)}eq(e){return e instanceof f}getBookmark(){return m}}o.jsonID("all",f);let m={map(){return this},resolve:e=>new f(e)};function g(e,t,r,n,i,s=!1){if(t.inlineContent)return c.create(e,r);for(let o=n-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let n=t.child(o);if(n.isAtom){if(!s&&d.isSelectable(n))return d.create(e,r-(i<0?n.nodeSize:0))}else{let t=g(e,n,r+i,i<0?n.childCount:0,i,s);if(t)return t}r+=n.nodeSize*i}return null}function _(e,t,r){let n,s=e.steps.length-1;if(s<t)return;let l=e.steps[s];(l instanceof i.Ln||l instanceof i.Wg)&&(e.mapping.maps[s].forEach((e,t,r,i)=>{null==n&&(n=i)}),e.setSelection(o.near(e.doc.resolve(n),r)))}let y=1,k=2,b=4;class w extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|y)&~k,this.storedMarks=null,this}get selectionSet(){return(this.updated&y)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=k,this}ensureMarks(e){return n.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&k)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~k,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||n.CU.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let n=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(null==r&&(r=t),!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=r==t?e.marks():e.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,n.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(o.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=b,this}get scrolledIntoView(){return(this.updated&b)>0}}function x(e,t){return t&&e?e.bind(t):e}class v{constructor(e,t,r){this.name=e,this.init=x(t.init,r),this.apply=x(t.apply,r)}}let C=[new v("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new v("selection",{init:(e,t)=>e.selection||o.atStart(t.doc),apply:e=>e.selection}),new v("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new v("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class A{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=C.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new v(e.key,e.spec.state,e))})}}class E{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let t=this.config.plugins[r];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),n=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let o=this.config.plugins[s];if(o.spec.appendTransaction){let l=n?n[s].n:0,a=n?n[s].state:this,u=l<t.length&&o.spec.appendTransaction.call(o,l?t.slice(l):t,a,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!n){n=[];for(let e=0;e<this.config.plugins.length;e++)n.push(e<s?{state:r,n:t.length}:{state:this,n:0})}t.push(u),r=r.applyInner(u),i=!0}n&&(n[s]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new E(this.config),r=this.config.fields;for(let n=0;n<r.length;n++){let i=r[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new w(this)}static create(e){let t=new A(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new E(t);for(let n=0;n<t.fields.length;n++)r[t.fields[n].name]=t.fields[n].init(e,r);return r}reconfigure(e){let t=new A(this.schema,e.plugins),r=t.fields,n=new E(t);for(let t=0;t<r.length;t++){let i=r[t].name;n[i]=this.hasOwnProperty(i)?this[i]:r[t].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let r in e){if("doc"==r||"selection"==r)throw RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[r],i=n.spec.state;i&&i.toJSON&&(t[r]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,r){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new A(e.schema,e.plugins),s=new E(i);return i.fields.forEach(i=>{if("doc"==i.name)s.doc=n.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)s.selection=o.fromJSON(s.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(s.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let n in r){let o=r[n],l=o.spec.state;if(o.key==i.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(t,n)){s[i.name]=l.fromJSON.call(o,e,t[n],s);return}}s[i.name]=i.init(e,s)}}),s}}function S(e,t,r){for(let n in e){let i=e[n];i instanceof Function?i=i.bind(t):"handleDOMEvents"==n&&(i=S(i,t,{})),r[n]=i}return r}class M{constructor(e){this.spec=e,this.props={},e.props&&S(e.props,this,this.props),this.key=e.key?e.key.key:D("plugin")}getState(e){return e[this.key]}}let T=Object.create(null);function D(e){return e in T?e+"$"+ ++T[e]:(T[e]=0,e+"$")}class F{constructor(e="key"){this.key=D(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},82150:(e,t,r)=>{"use strict";r.d(t,{L2:()=>N,Rg:()=>u,_0:()=>R,_J:()=>I,ck:()=>c,it:()=>w});var n=r(82159),i=Object.defineProperty,s=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},o="listItem",l="textStyle",a=/^\s*([-+*])\s$/,u=n.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(o,this.editor.getAttributes(l)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,n.tG)({find:a,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:a,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(l),editor:this.editor})),[e]}}),c=n.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var r;if("list_item"!==e.type)return[];let n=null!=(r=t.parseBlockChildren)?r:t.parseChildren,i=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(e=>"paragraph"===e.type))i=n(e.tokens);else{let r=e.tokens[0];if(r&&"text"===r.type&&r.tokens&&r.tokens.length>0){if(i=[{type:"paragraph",content:t.parseInline(r.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));i.push(...t)}}else i=n(e.tokens)}return 0===i.length&&(i=[{type:"paragraph",content:[]}]),{type:"listItem",content:i}},renderMarkdown:(e,t,r)=>(0,n.kj)(e,t,e=>{var t,r;if("bulletList"===e.parentType)return"- ";if("orderedList"===e.parentType){let n=(null==(r=null==(t=e.meta)?void 0:t.parentAttrs)?void 0:r.start)||1;return`${n+e.index}. `}return"- "},r),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});s({},{findListItemPos:()=>h,getNextListDepth:()=>d,handleBackspace:()=>g,handleDelete:()=>k,hasListBefore:()=>p,hasListItemAfter:()=>b,hasListItemBefore:()=>f,listItemHasSubList:()=>m,nextListIsDeeper:()=>_,nextListIsHigher:()=>y});var h=(e,t)=>{let{$from:r}=t.selection,i=(0,n.Pg)(e,t.schema),s=null,o=r.depth,l=r.pos,a=null;for(;o>0&&null===a;)(s=r.node(o)).type===i?a=o:(o-=1,l-=1);return null===a?null:{$pos:t.doc.resolve(l),depth:a}},d=(e,t)=>{let r=h(e,t);if(!r)return!1;let[,i]=(0,n.fl)(t,e,r.$pos.pos+4);return i},p=(e,t,r)=>{let{$anchor:n}=e.selection,i=Math.max(0,n.pos-2),s=e.doc.resolve(i).node();return!!s&&!!r.includes(s.type.name)},f=(e,t)=>{var r;let{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-2);return 0!==i.index()&&(null==(r=i.nodeBefore)?void 0:r.type.name)===e},m=(e,t,r)=>{if(!r)return!1;let i=(0,n.Pg)(e,t.schema),s=!1;return r.descendants(e=>{e.type===i&&(s=!0)}),s},g=(e,t,r)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!(0,n.rU)(e.state,t)&&p(e.state,t,r)){let{$anchor:r}=e.state.selection,n=e.state.doc.resolve(r.before()-1),i=[];n.node().descendants((e,r)=>{e.type.name===t&&i.push({node:e,pos:r})});let s=i.at(-1);if(!s)return!1;let o=e.state.doc.resolve(n.start()+s.pos+1);return e.chain().cut({from:r.start()-1,to:r.end()+1},o.end()).joinForward().run()}if(!(0,n.rU)(e.state,t)||!(0,n.J_)(e.state))return!1;let i=h(t,e.state);if(!i)return!1;let s=e.state.doc.resolve(i.$pos.pos-2).node(i.depth),o=m(t,e.state,s);return f(t,e.state)&&!o?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},_=(e,t)=>{let r=d(e,t),n=h(e,t);return!!n&&!!r&&r>n.depth},y=(e,t)=>{let r=d(e,t),n=h(e,t);return!!n&&!!r&&r<n.depth},k=(e,t)=>{if(!(0,n.rU)(e.state,t)||!(0,n.QN)(e.state,t))return!1;let{selection:r}=e.state,{$from:i,$to:s}=r;return!(!r.empty&&i.sameParent(s))&&(_(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():y(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},b=(e,t)=>{var r;let{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-n.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null==(r=i.nodeAfter)?void 0:r.type.name)===e},w=n.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r})=>{void 0!==e.state.schema.nodes[r]&&k(e,r)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r})=>{void 0!==e.state.schema.nodes[r]&&k(e,r)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{void 0!==e.state.schema.nodes[r]&&g(e,r,n)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{void 0!==e.state.schema.nodes[r]&&g(e,r,n)&&(t=!0)}),t}}}}),x=/^(\s*)(\d+)\.\s+(.*)$/,v=/^\s/;function C(e){let t=e.trimStart();return/^[-+*]\s+/.test(t)||/^\d+\.\s+/.test(t)||/^>\s?/.test(t)||/^```/.test(t)||/^~~~/.test(t)}function A(e){let t=[],r=[],n=!1;return e.forEach(e=>{if(n)return void r.push(e);if(""===e.trim()||t.length>0&&C(e)){n=!0,r.push(e);return}t.push(e)}),{paragraphLines:t,blockLines:r}}function E(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r],s=i.match(x);if(!s)break;let[,o,l,a]=s,u=o.length,c=[a],h=r+1,d=[i],p=!1;for(;h<e.length;){let t=e[h];if(t.match(x))break;if(""===t.trim())d.push(t),c.push(""),p=!0,h+=1;else if(t.match(v))d.push(t),c.push(t.slice(u+2)),h+=1;else{if(p)break;d.push(t),c.push(t),h+=1}}t.push({indent:u,number:parseInt(l,10),content:c.join("\n").trim(),contentLines:c,raw:d.join("\n")}),n=h,r=h}return[t,n]}function S(e,t,r){let n=[],i=0;for(;i<e.length;){let s=e[i];if(s.indent===t){let{paragraphLines:o,blockLines:l}=A(s.contentLines),a=o.join("\n").trim(),u=[];a&&u.push({type:"paragraph",raw:a,tokens:r.inlineTokens(a)});let c=l.join("\n").trim();if(c){let e=r.blockTokens(c);u.push(...e)}let h=i+1,d=[];for(;h<e.length&&e[h].indent>t;)d.push(e[h]),h+=1;if(d.length>0){let e=Math.min(...d.map(e=>e.indent)),t=S(d,e,r);u.push({type:"list",ordered:!0,start:d[0].number,items:t,raw:d.map(e=>e.raw).join("\n")})}n.push({type:"list_item",raw:s.raw,tokens:u}),i=h}else i+=1}return n}function M(e,t){return e.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];let r=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)r.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){let n=t.parseChildren([e]);r.push({type:"paragraph",content:n})}else{let n=t.parseChildren([e]);n.length>0&&r.push(...n)}}),{type:"listItem",content:r}})}var T="listItem",D="textStyle",F=/^(\d+)\.\s$/,I=n.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...r}=e;return 1===t?["ol",(0,n.KV)(this.options.HTMLAttributes,r),0]:["ol",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if("list"!==e.type||!e.ordered)return[];let r=e.start||1,n=e.items?M(e.items,t):[];return 1!==r?{type:"orderedList",attrs:{start:r},content:n}:{type:"orderedList",content:n}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{let t=e.match(/^(\s*)(\d+)\.\s+/),r=null==t?void 0:t.index;return void 0!==r?r:-1},tokenize:(e,t,r)=>{var n;let i=e.split("\n"),[s,o]=E(i);if(0===s.length)return;let l=S(s,0,r);if(0!==l.length)return{type:"list",ordered:!0,start:(null==(n=s[0])?void 0:n.number)||1,items:l,raw:i.slice(0,o).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(T,this.editor.getAttributes(D)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,n.tG)({find:F,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:F,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(D)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),L=/^\s*(\[([( |x])?\])\s$/,N=n.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,n.KV)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{let r=[];if(e.tokens&&e.tokens.length>0?r.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?r.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):r.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){let n=t.parseChildren(e.nestedTokens);r.push(...n)}return t.createNode("taskItem",{checked:e.checked||!1},r)},renderMarkdown:(e,t)=>{var r;let i=(null==(r=e.attrs)?void 0:r.checked)?"x":" ",s=`- [${i}] `;return(0,n.kj)(e,t,s)},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:r,editor:i})=>{let s=document.createElement("li"),o=document.createElement("label"),l=document.createElement("span"),a=document.createElement("input"),u=document.createElement("div"),c=e=>{var t,r;a.ariaLabel=(null==(r=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:r.call(t,e,a.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};c(e),o.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",e=>e.preventDefault()),a.addEventListener("change",t=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}let{checked:n}=t.target;i.isEditable&&"function"==typeof r&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=r();if("number"!=typeof t)return!1;let i=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==i?void 0:i.attrs,checked:n}),!0}).run(),i.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,n)||(a.checked=!a.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{s.setAttribute(e,t)}),s.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,o.append(a,l),s.append(o,u),Object.entries(t).forEach(([e,t])=>{s.setAttribute(e,t)});let h=new Set(Object.keys(t));return{dom:s,contentDOM:u,update:e=>{if(e.type!==this.type)return!1;s.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,c(e);let t=i.extensionManager.attributes,r=(0,n.zU)(e,t),o=new Set(Object.keys(r)),l=this.options.HTMLAttributes;return h.forEach(e=>{o.has(e)||(e in l?s.setAttribute(e,l[e]):s.removeAttribute(e))}),Object.entries(r).forEach(([e,t])=>{null==t?e in l?s.setAttribute(e,l[e]):s.removeAttribute(e):s.setAttribute(e,t)}),h=o,!0}}}},addInputRules(){return[(0,n.tG)({find:L,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),R=n.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;let r=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==r?r:-1},tokenize(e,t,r){let i=e=>{let t=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);return t?[{type:"taskList",raw:t.raw,items:t.items}]:r.blockTokens(e)},s=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);if(s)return{type:"taskList",raw:s.raw,items:s.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});n.YY.create({name:"listKit",addExtensions(){let e=[];return!1!==this.options.bulletList&&e.push(u.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(c.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(w.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(I.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(N.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(R.configure(this.options.taskList)),e}})},91958:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],s=(0,n.A)("refresh-cw",i)},94577:(e,t,r)=>{"use strict";e.exports=r(99617)},96035:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],s=(0,n.A)("message-square",i)},97144:(e,t,r)=>{"use strict";r.d(t,{$f:()=>L,G2:()=>k,I$:()=>C,Im:()=>R,Qv:()=>a,Sd:()=>_,Z1:()=>A,_G:()=>c,_e:()=>p,bh:()=>b,eB:()=>u,eT:()=>g,ec:()=>N,hy:()=>M,ic:()=>o,iz:()=>E,pC:()=>x,yY:()=>w,y_:()=>O});var n=r(8242),i=r(27050),s=r(76865);let o=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function l(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("backward",e):!(r.parentOffset>0))?r:null}let a=(e,t,r)=>{let o=l(e,r);if(!o)return!1;let a=f(o);if(!a){let r=o.blockRange(),i=r&&(0,n.jP)(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)}let u=a.nodeBefore;if(F(e,a,t,-1))return!0;if(0==o.parent.content.size&&(d(u,"end")||s.nh.isSelectable(u)))for(let r=o.depth;;r--){let l=(0,n.$L)(e.doc,o.before(r),o.after(r),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(t){let r=e.tr.step(l);r.setSelection(d(u,"end")?s.LN.findFrom(r.doc.resolve(r.mapping.map(a.pos,-1)),-1):s.nh.create(r.doc,a.pos-u.nodeSize)),t(r.scrollIntoView())}return!0}if(1==r||o.node(r-1).childCount>1)break}return!!u.isAtom&&a.depth==o.depth-1&&(t&&t(e.tr.delete(a.pos-u.nodeSize,a.pos).scrollIntoView()),!0)},u=(e,t,r)=>{let n=l(e,r);if(!n)return!1;let i=f(n);return!!i&&h(e,i,t)},c=(e,t,r)=>{let n=m(e,r);if(!n)return!1;let i=y(n);return!!i&&h(e,i,t)};function h(e,t,r){let o=t.nodeBefore,l=t.pos-1;for(;!o.isTextblock;l--){if(o.type.spec.isolating)return!1;let e=o.lastChild;if(!e)return!1;o=e}let a=t.nodeAfter,u=t.pos+1;for(;!a.isTextblock;u++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let c=(0,n.$L)(e.doc,l,u,i.Ji.empty);if(!c||c.from!=l||c instanceof n.Ln&&c.slice.size>=u-l)return!1;if(r){let t=e.tr.step(c);t.setSelection(s.U3.create(t.doc,l)),r(t.scrollIntoView())}return!0}function d(e,t,r=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)break}return!1}let p=(e,t,r)=>{let{$head:n,empty:i}=e.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;o=f(n)}let l=o&&o.nodeBefore;return!!l&&!!s.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(s.nh.create(e.doc,o.pos-l.nodeSize)).scrollIntoView()),!0)};function f(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function m(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("forward",e):!(r.parentOffset<r.parent.content.size))?r:null}let g=(e,t,r)=>{let o=m(e,r);if(!o)return!1;let l=y(o);if(!l)return!1;let a=l.nodeAfter;if(F(e,l,t,1))return!0;if(0==o.parent.content.size&&(d(a,"start")||s.nh.isSelectable(a))){let r=(0,n.$L)(e.doc,o.before(),o.after(),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(d(a,"start")?s.LN.findFrom(n.doc.resolve(n.mapping.map(l.pos)),1):s.nh.create(n.doc,n.mapping.map(l.pos))),t(n.scrollIntoView())}return!0}}return!!a.isAtom&&l.depth==o.depth-1&&(t&&t(e.tr.delete(l.pos,l.pos+a.nodeSize).scrollIntoView()),!0)},_=(e,t,r)=>{let{$head:n,empty:i}=e.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;o=y(n)}let l=o&&o.nodeAfter;return!!l&&!!s.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(s.nh.create(e.doc,o.pos)).scrollIntoView()),!0)};function y(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}let k=(e,t)=>{let r=e.selection,i=r instanceof s.nh,o;if(i){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.from))return!1;o=r.from}else if(null==(o=(0,n.N0)(e.doc,r.from,-1)))return!1;if(t){let r=e.tr.join(o);i&&r.setSelection(s.nh.create(r.doc,o-e.doc.resolve(o).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0},b=(e,t)=>{let r=e.selection,i;if(r instanceof s.nh){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.to))return!1;i=r.to}else if(null==(i=(0,n.N0)(e.doc,r.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},w=(e,t)=>{let{$from:r,$to:i}=e.selection,s=r.blockRange(i),o=s&&(0,n.jP)(s);return null!=o&&(t&&t(e.tr.lift(s,o).scrollIntoView()),!0)},x=(e,t)=>{let{$head:r,$anchor:n}=e.selection;return!!r.parent.type.spec.code&&!!r.sameParent(n)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function v(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}let C=(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),o=r.indexAfter(-1),l=v(i.contentMatchAt(o));if(!l||!i.canReplaceWith(o,o,l))return!1;if(t){let n=r.after(),i=e.tr.replaceWith(n,n,l.createAndFill());i.setSelection(s.LN.near(i.doc.resolve(n),1)),t(i.scrollIntoView())}return!0},A=(e,t)=>{let r=e.selection,{$from:n,$to:i}=r;if(r instanceof s.i5||n.parent.inlineContent||i.parent.inlineContent)return!1;let o=v(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,l=e.tr.insert(r,o.createAndFill());l.setSelection(s.U3.create(l.doc,r+1)),t(l.scrollIntoView())}return!0},E=(e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if((0,n.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=r.blockRange(),s=i&&(0,n.jP)(i);return null!=s&&(t&&t(e.tr.lift(i,s).scrollIntoView()),!0)},S=function(){return(e,t)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof s.nh&&e.selection.node.isBlock)return!!r.parentOffset&&!!(0,n.zy)(e.doc,r.pos)&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],l,a,u=!1,c=!1;for(let e=r.depth;;e--){if(r.node(e).isBlock){u=r.end(e)==r.pos+(r.depth-e),c=r.start(e)==r.pos-(r.depth-e),a=v(r.node(e-1).contentMatchAt(r.indexAfter(e-1)));let t=void 0;o.unshift(t||(u&&a?{type:a}:null)),l=e;break}if(1==e)return!1;o.unshift(null)}let h=e.tr;(e.selection instanceof s.U3||e.selection instanceof s.i5)&&h.deleteSelection();let d=h.mapping.map(r.pos),p=(0,n.zy)(h.doc,d,o.length,o);if(p||(o[0]=a?{type:a}:null,p=(0,n.zy)(h.doc,d,o.length,o)),!p)return!1;if(h.split(d,o.length,o),!u&&c&&r.node(l).type!=a){let e=h.mapping.map(r.before(l)),t=h.doc.resolve(e);a&&r.node(l-1).canReplaceWith(t.index(),t.index()+1,a)&&h.setNodeMarkup(h.mapping.map(r.before(l)),a)}return t&&t(h.scrollIntoView()),!0}}(),M=(e,t)=>{let{$from:r,to:n}=e.selection,i,o=r.sharedDepth(n);return 0!=o&&(i=r.before(o),t&&t(e.tr.setSelection(s.nh.create(e.doc,i))),!0)},T=(e,t)=>(t&&t(e.tr.setSelection(new s.i5(e.doc))),!0);function D(e,t,r){let i=t.nodeBefore,s=t.nodeAfter,o=t.index();return!!i&&!!s&&!!i.type.compatibleContent(s.type)&&(!i.content.size&&t.parent.canReplace(o-1,o)?(r&&r(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(o,o+1)&&!!(s.isTextblock||(0,n.n9)(e.doc,t.pos))&&(r&&r(e.tr.join(t.pos).scrollIntoView()),!0))}function F(e,t,r,o){let l=t.nodeBefore,a=t.nodeAfter,u,c,h=l.type.spec.isolating||a.type.spec.isolating;if(!h&&D(e,t,r))return!0;let p=!h&&t.parent.canReplace(t.index(),t.index()+1);if(p&&(u=(c=l.contentMatchAt(l.childCount)).findWrapping(a.type))&&c.matchType(u[0]||a.type).validEnd){if(r){let s=t.pos+a.nodeSize,o=i.FK.empty;for(let e=u.length-1;e>=0;e--)o=i.FK.from(u[e].create(null,o));o=i.FK.from(l.copy(o));let c=e.tr.step(new n.Wg(t.pos-1,s,t.pos,s,new i.Ji(o,1,0),u.length,!0)),h=c.doc.resolve(s+2*u.length);h.nodeAfter&&h.nodeAfter.type==l.type&&(0,n.n9)(c.doc,h.pos)&&c.join(h.pos),r(c.scrollIntoView())}return!0}let f=a.type.spec.isolating||o>0&&h?null:s.LN.findFrom(t,1),m=f&&f.$from.blockRange(f.$to),g=m&&(0,n.jP)(m);if(null!=g&&g>=t.depth)return r&&r(e.tr.lift(m,g).scrollIntoView()),!0;if(p&&d(a,"start",!0)&&d(l,"end")){let s=l,o=[];for(;o.push(s),!s.isTextblock;)s=s.lastChild;let u=a,c=1;for(;!u.isTextblock;u=u.firstChild)c++;if(s.canReplace(s.childCount,s.childCount,u.content)){if(r){let s=i.FK.empty;for(let e=o.length-1;e>=0;e--)s=i.FK.from(o[e].copy(s));r(e.tr.step(new n.Wg(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new i.Ji(s,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function I(e){return function(t,r){let n=t.selection,i=e<0?n.$from:n.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return!!i.node(o).isTextblock&&(r&&r(t.tr.setSelection(s.U3.create(t.doc,e<0?i.start(o):i.end(o)))),!0)}}let L=I(-1),N=I(1);function R(e,t=null){return function(r,i){let{$from:s,$to:o}=r.selection,l=s.blockRange(o),a=l&&(0,n.oM)(l,e,t);return!!a&&(i&&i(r.tr.wrap(l,a).scrollIntoView()),!0)}}function O(e,t=null){return function(r,n){let i=!1;for(let n=0;n<r.selection.ranges.length&&!i;n++){let{$from:{pos:s},$to:{pos:o}}=r.selection.ranges[n];r.doc.nodesBetween(s,o,(n,s)=>{if(i)return!1;if(!(!n.isTextblock||n.hasMarkup(e,t)))if(n.type==e)i=!0;else{let t=r.doc.resolve(s),n=t.index();i=t.parent.canReplaceWith(n,n+1,e)}})}if(!i)return!1;if(n){let i=r.tr;for(let n=0;n<r.selection.ranges.length;n++){let{$from:{pos:s},$to:{pos:o}}=r.selection.ranges[n];i.setBlockType(s,o,e,t)}n(i.scrollIntoView())}return!0}}function z(...e){return function(t,r,n){for(let i=0;i<e.length;i++)if(e[i](t,r,n))return!0;return!1}}let P=z(o,a,p),$=z(o,g,_),B={Enter:z(x,A,E,S),"Mod-Enter":C,Backspace:P,"Mod-Backspace":P,"Shift-Backspace":P,Delete:$,"Mod-Delete":$,"Mod-a":T},q={"Ctrl-h":B.Backspace,"Alt-Backspace":B["Mod-Backspace"],"Ctrl-d":B.Delete,"Ctrl-Alt-Backspace":B["Mod-Delete"],"Alt-Delete":B["Mod-Delete"],"Alt-d":B["Mod-Delete"],"Ctrl-a":L,"Ctrl-e":N};for(let e in B)q[e]=B[e];"u">typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"u">typeof os&&os.platform&&os.platform()},97567:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],s=(0,n.A)("box",i)},98307:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],s=(0,n.A)("clipboard-list",i)},99617:(e,t,r)=>{"use strict";var n=r(12115),i=r(8039);function s(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var o="function"==typeof Object.is?Object.is:s,l=i.useSyncExternalStore,a=n.useRef,u=n.useEffect,c=n.useMemo,h=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var s=a(null);if(null===s.current){var d={hasValue:!1,value:null};s.current=d}else d=s.current;var p=l(e,(s=c(function(){function e(e){if(!a){if(a=!0,s=e,e=n(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return l=t}return l=e}if(t=l,o(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(s=e,t):(s=e,l=r)}var s,l,a=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],s[1]);return u(function(){d.hasValue=!0,d.value=p},[p]),h(p),p}}}]);
|
|
20
|
+
3. "-" cannot repeat`);e5.customSchemes.push([e,t])}function e8(){e5.scanner=eP(e5.customSchemes);for(let e=0;e<e5.tokenQueue.length;e++)e5.tokenQueue[e][1]({scanner:e5.scanner});e5.parser=eQ(e5.scanner.tokens);for(let e=0;e<e5.pluginQueue.length;e++)e5.pluginQueue[e][1]({scanner:e5.scanner,parser:e5.parser});return e5.initialized=!0,e5}function e9(e){return e5.initialized||e8(),e0(e5.parser.start,e,e$(e5.scanner.start,e))}function e7(e,t=null,r=null){if(t&&"object"==typeof t){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}let n=new eU(r),i=e9(e),s=[];for(let e=0;e<i.length;e++){let r=i[e];r.isLink&&(!t||r.t===t)&&n.check(r)&&s.push(r.toFormattedObject(n))}return s}e9.scan=e$;var te=r(76865),tt="[\0- \xa0 -\u2029 ]",tr=new RegExp(tt),tn=RegExp(`${tt}$`),ti=RegExp(tt,"g");function ts(e){return 1===e.length?e[0].isLink:3===e.length&&!!e[1].isLink&&["()","[]"].includes(e[0].value+e[2].value)}function to(e){return new te.k_({key:new te.hs("autolink"),appendTransaction:(t,r,i)=>{let s=t.some(e=>e.docChanged)&&!r.doc.eq(i.doc),o=t.some(e=>e.getMeta("preventAutolink"));if(!s||o)return;let{tr:l}=i,a=(0,n.T7)(r.doc,[...t]);if((0,n.FF)(a).forEach(({newRange:t})=>{let r,s,o=(0,n.Nx)(i.doc,t,e=>e.isTextblock);if(o.length>1)r=o[0],s=i.doc.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," ");else if(o.length){let e=i.doc.textBetween(t.from,t.to," "," ");if(!tn.test(e))return;r=o[0],s=i.doc.textBetween(r.pos,t.to,void 0," ")}if(r&&s){let t=s.split(tr).filter(Boolean);if(t.length<=0)return!1;let o=t[t.length-1],a=r.pos+s.lastIndexOf(o);if(!o)return!1;let u=e9(o).map(t=>t.toObject(e.defaultProtocol));if(!ts(u))return!1;u.filter(e=>e.isLink).map(e=>({...e,from:a+e.start+1,to:a+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,n.hO)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||l.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),l.steps.length)return l}})}function tl(e){return new te.k_({key:new te.hs("handleClickLink"),props:{handleClick:(t,r,i)=>{var s,o;if(0!==i.button||!t.editable)return!1;let l=null;if(i.target instanceof HTMLAnchorElement)l=i.target;else{let t=i.target;if(!t)return!1;let r=e.editor.view.dom;(l=t.closest("a"))&&!r.contains(l)&&(l=null)}if(!l)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let r=(0,n.gu)(t.state,e.type.name),i=null!=(s=l.href)?s:r.href,u=null!=(o=l.target)?o:r.target;i&&(window.open(i,u),a=!0)}return a}}})}function ta(e){return new te.k_({key:new te.hs("handlePasteLink"),props:{handlePaste:(t,r,n)=>{let{shouldAutoLink:i}=e,{state:s}=t,{selection:o}=s,{empty:l}=o;if(l)return!1;let a="";n.content.forEach(e=>{a+=e.textContent});let u=e7(a,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===a);return!!a&&!!u&&(void 0===i||!!i(u.value))&&e.editor.commands.setMark(e.type,{href:u.href})}}})}function tu(e,t){let r=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&r.push(t)}),!e||e.replace(ti,"").match(RegExp(`^(?:(?:${r.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var tc=n.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{"string"==typeof e?e6(e):e6(e.scheme,e.optionalSlashes)})},onDestroy(){e4()},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!tu(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),r=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||r&&!e.includes("@"))return!0;let n=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!/^\d{1,3}(\.\d{1,3}){3}$/.test(n)&&!!/\./.test(n)}}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!t&&!!this.options.isAllowedUri(t,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,n.KV)(this.options.HTMLAttributes,e),0]:["a",(0,n.KV)(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var r,n,i,s;let o=null!=(n=null==(r=e.attrs)?void 0:r.href)?n:"",l=null!=(s=null==(i=e.attrs)?void 0:i.title)?s:"",a=t.renderChildren(e);return l?`[${a}](${o} "${l}")`:`[${a}](${o})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:r}=e;return!!this.options.isAllowedUri(r,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{let{href:r}=e||{};return(!r||!!this.options.isAllowedUri(r,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,n.Zc)({find:e=>{let t=[];if(e){let{protocols:r,defaultProtocol:n}=this.options,i=e7(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!tu(e,r),protocols:r,defaultProtocol:n}));i.length&&i.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t},type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:r}=this.options;return this.options.autolink&&e.push(to({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!tu(e,t),protocols:t,defaultProtocol:r}),shouldAutoLink:this.options.shouldAutoLink})),e.push(tl({type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(ta({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),th=tc},61878:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],s=(0,n.A)("search",i)},62678:(e,t,r)=>{"use strict";r.d(t,{QO:()=>J,vR:()=>K,Or:()=>X,JU:()=>ee,lb:()=>et});var n=r(82159),i=r(76865),s=r(8242);function o(e={}){return new i.k_({view:t=>new l(t,e)})}class l{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(r=t.width)?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,r=this.editorView.state.doc.resolve(this.cursorPos),n=!r.parent.inlineContent,i,s=this.editorView.dom,o=s.getBoundingClientRect(),l=o.width/s.offsetWidth,a=o.height/s.offsetHeight;if(n){let e=r.nodeBefore,t=r.nodeAfter;if(e||t){let r=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(r){let n=r.getBoundingClientRect(),s=e?n.bottom:n.top;e&&t&&(s=(s+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let o=this.width/2*a;i={left:n.left,right:n.right,top:s-o,bottom:s+o}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*l;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let u=this.editorView.dom.offsetParent;if(!this.element&&(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),u&&(u!=document.body||"static"!=getComputedStyle(u).position)){let r=u.getBoundingClientRect(),n=r.width/u.offsetWidth,i=r.height/u.offsetHeight;e=r.left-u.scrollLeft*n,t=r.top-u.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/l+"px",this.element.style.top=(i.top-t)/a+"px",this.element.style.width=(i.right-i.left)/l+"px",this.element.style.height=(i.bottom-i.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,i="function"==typeof n?n(this.editorView,t,e):n;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,s.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var a=r(63197),u=r(12894),c=r(27050);class h extends i.LN{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return h.valid(r)?new h(r):i.LN.near(r)}content(){return c.Ji.empty}eq(e){return e instanceof h&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new h(e.resolve(t.pos))}getBookmark(){return new d(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!f(e)||!m(e))return!1;let r=t.type.spec.allowGapCursor;if(null!=r)return r;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,r=!1){i:for(;;){if(!r&&h.valid(e))return e;let n=e.pos,s=null;for(let r=e.depth;;r--){let i=e.node(r);if(t>0?e.indexAfter(r)<i.childCount:e.index(r)>0){s=i.child(t>0?e.indexAfter(r):e.index(r)-1);break}if(0==r)return null;n+=t;let o=e.doc.resolve(n);if(h.valid(o))return o}for(;;){let o=t>0?s.firstChild:s.lastChild;if(!o){if(s.isAtom&&!s.isText&&!i.nh.isSelectable(s)){e=e.doc.resolve(n+s.nodeSize*t),r=!1;continue i}break}s=o,n+=t;let l=e.doc.resolve(n);if(h.valid(l))return l}return null}}}h.prototype.visible=!1,h.findFrom=h.findGapCursorFrom,i.LN.jsonID("gapcursor",h);class d{constructor(e){this.pos=e}map(e){return new d(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return h.valid(t)?new h(t):i.LN.near(t)}}function p(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function f(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),n=e.node(t);if(0==r){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||p(e.type))return!0;if(e.inlineContent)return!1}}return!0}function m(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),n=e.node(t);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||p(e.type))return!0;if(e.inlineContent)return!1}}return!0}function g(){return new i.k_({props:{decorations:w,createSelectionBetween:(e,t,r)=>t.pos==r.pos&&h.valid(r)?new h(r):null,handleClick:k,handleKeyDown:_,handleDOMEvents:{beforeinput:b}}})}let _=(0,u.K)({ArrowLeft:y("horiz",-1),ArrowRight:y("horiz",1),ArrowUp:y("vert",-1),ArrowDown:y("vert",1)});function y(e,t){let r="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,n,s){let o=e.selection,l=t>0?o.$to:o.$from,a=o.empty;if(o instanceof i.U3){if(!s.endOfTextblock(r)||0==l.depth)return!1;a=!1,l=e.doc.resolve(t>0?l.after():l.before())}let u=h.findGapCursorFrom(l,t,a);return!!u&&(n&&n(e.tr.setSelection(new h(u))),!0)}}function k(e,t,r){if(!e||!e.editable)return!1;let n=e.state.doc.resolve(t);if(!h.valid(n))return!1;let s=e.posAtCoords({left:r.clientX,top:r.clientY});return!(s&&s.inside>-1&&i.nh.isSelectable(e.state.doc.nodeAt(s.inside)))&&(e.dispatch(e.state.tr.setSelection(new h(n))),!0)}function b(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof h))return!1;let{$from:r}=e.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!n)return!1;let s=c.FK.empty;for(let e=n.length-1;e>=0;e--)s=c.FK.from(n[e].createAndFill(null,s));let o=e.state.tr.replace(r.pos,r.pos,new c.Ji(s,0,0));return o.setSelection(i.U3.near(o.doc.resolve(r.pos+1))),e.dispatch(o),!1}function w(e){if(!(e.selection instanceof h))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",a.zF.create(e.doc,[a.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}var x=200,v=function(){};v.prototype.append=function(e){return e.length?(e=v.from(e),!this.length&&e||e.length<x&&this.leafAppend(e)||this.length<x&&e.leafPrepend(this)||this.appendInner(e)):this},v.prototype.prepend=function(e){return e.length?v.from(e).append(this):this},v.prototype.appendInner=function(e){return new A(this,e)},v.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?v.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},v.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},v.prototype.forEach=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},v.prototype.map=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(t,r){return n.push(e(t,r))},t,r),n},v.from=function(e){return e instanceof v?e:e&&e.length?new C(e):v.empty};var C=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,r){return 0==e&&r==this.length?this:new t(this.values.slice(e,r))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,r,n){for(var i=t;i<r;i++)if(!1===e(this.values[i],n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){for(var i=t-1;i>=r;i--)if(!1===e(this.values[i],n+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=x)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=x)return new t(e.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(v);v.empty=new C([]);var A=function(e){function t(t,r){e.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,r,n){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(r,i),n)||r>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,r)-i,n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(r,i)-i,n+i)||r<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),r,n))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var r=this.left.length;return t<=r?this.left.slice(e,t):e>=r?this.right.slice(e-r,t-r):this.left.slice(e,r).append(this.right.slice(0,t-r))},t.prototype.leafAppend=function(e){var r=this.right.leafAppend(e);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(e){var r=this.left.leafPrepend(e);if(r)return new t(r,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(v);let E=v,S=500;class M{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let r,n,i,s;if(0==this.eventCount)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}t&&(n=(r=this.remapping(o,this.items.length)).maps.length);let l=e.tr,a=[],u=[];return this.items.forEach((e,t)=>{if(!e.step){r||(n=(r=this.remapping(o,t+1)).maps.length),n--,u.push(e);return}if(r){u.push(new D(e.map));let t=e.step.map(r.slice(n)),i;t&&l.maybeStep(t).doc&&(i=l.mapping.maps[l.mapping.maps.length-1],a.push(new D(i,void 0,void 0,a.length+u.length))),n--,i&&r.appendMap(i,n)}else l.maybeStep(e.step);if(e.selection)return i=r?e.selection.map(r.slice(n)):e.selection,s=new M(this.items.slice(0,o).append(u.reverse().concat(a)),this.eventCount-1),!1},this.items.length,0),{remaining:s,transform:l,selection:i}}addTransform(e,t,r,n){let i=[],s=this.eventCount,o=this.items,l=!n&&o.length?o.get(o.length-1):null;for(let r=0;r<e.steps.length;r++){let a=e.steps[r].invert(e.docs[r]),u=new D(e.mapping.maps[r],a,t),c;(c=l&&l.merge(u))&&(u=c,r?i.pop():o=o.slice(0,o.length-1)),i.push(u),t&&(s++,t=void 0),n||(l=u)}let a=s-r.depth;return a>I&&(o=T(o,a),s-=a),new M(o.append(i),s)}remapping(e,t){let r=new s.X9;return this.items.forEach((t,n)=>{let i=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?r.maps.length-t.mirrorOffset:void 0;r.appendMap(t.map,i)},e,t),r}addMaps(e){return 0==this.eventCount?this:new M(this.items.append(e.map(e=>new D(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-t),i=e.mapping,s=e.steps.length,o=this.eventCount;this.items.forEach(e=>{e.selection&&o--},n);let l=t;this.items.forEach(t=>{let n=i.getMirror(--l);if(null==n)return;s=Math.min(s,n);let a=i.maps[n];if(t.step){let s=e.steps[n].invert(e.docs[n]),u=t.selection&&t.selection.map(i.slice(l+1,n));u&&o++,r.push(new D(a,s,u))}else r.push(new D(a))},n);let a=[];for(let e=t;e<s;e++)a.push(new D(i.maps[e]));let u=new M(this.items.slice(0,n).append(a).append(r),o);return u.emptyItemCount()>S&&(u=u.compress(this.items.length-r.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,n=[],i=0;return this.items.forEach((s,o)=>{if(o>=e)n.push(s),s.selection&&i++;else if(s.step){let e=s.step.map(t.slice(r)),o=e&&e.getMap();if(r--,o&&t.appendMap(o,r),e){let l=s.selection&&s.selection.map(t.slice(r));l&&i++;let a=new D(o.invert(),e,l),u,c=n.length-1;(u=n.length&&n[c].merge(a))?n[c]=u:n.push(a)}}else s.map&&r--},this.items.length,0),new M(E.from(n.reverse()),i)}}function T(e,t){let r;return e.forEach((e,n)=>{if(e.selection&&0==t--)return r=n,!1}),e.slice(r)}M.empty=new M(E.empty,0);class D{constructor(e,t,r,n){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new D(t.getMap().invert(),t,this.selection)}}}class F{constructor(e,t,r,n,i){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}let I=20;function L(e,t,r,n){let i=r.getMeta(q),s;if(i)return i.historyState;r.getMeta(j)&&(e=new F(e.done,e.undone,null,0,-1));let o=r.getMeta("appendedTransaction");if(0==r.steps.length)return e;if(o&&o.getMeta(q))if(o.getMeta(q).redo)return new F(e.done.addTransform(r,void 0,n,B(t)),e.undone,N(r.mapping.maps),e.prevTime,e.prevComposition);else return new F(e.done,e.undone.addTransform(r,void 0,n,B(t)),null,e.prevTime,e.prevComposition);if(!1===r.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))if(s=r.getMeta("rebased"))return new F(e.done.rebased(r,s),e.undone.rebased(r,s),O(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);else return new F(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),O(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);{let i=r.getMeta("composition"),s=0==e.prevTime||!o&&e.prevComposition!=i&&(e.prevTime<(r.time||0)-n.newGroupDelay||!R(r,e.prevRanges)),l=o?O(e.prevRanges,r.mapping):N(r.mapping.maps);return new F(e.done.addTransform(r,s?t.selection.getBookmark():void 0,n,B(t)),M.empty,l,r.time,null==i?e.prevComposition:i)}}function R(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;return e.mapping.maps[0].forEach((e,n)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&n>=t[i]&&(r=!0)}),r}function N(e){let t=[];for(let r=e.length-1;r>=0&&0==t.length;r--)e[r].forEach((e,r,n,i)=>t.push(n,i));return t}function O(e,t){if(!e)return null;let r=[];for(let n=0;n<e.length;n+=2){let i=t.map(e[n],1),s=t.map(e[n+1],-1);i<=s&&r.push(i,s)}return r}function z(e,t,r){let n=B(t),i=q.get(t).spec.config,s=(r?e.undone:e.done).popEvent(t,n);if(!s)return null;let o=s.selection.resolve(s.transform.doc),l=(r?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),i,n),a=new F(r?l:s.remaining,r?s.remaining:l,null,0,-1);return s.transform.setSelection(o).setMeta(q,{redo:r,historyState:a})}let P=!1,$=null;function B(e){let t=e.plugins;if($!=t){P=!1,$=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){P=!0;break}}return P}let q=new i.hs("history"),j=new i.hs("closeHistory");function H(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new i.k_({key:q,state:{init:()=>new F(M.empty,M.empty,null,0,-1),apply:(t,r,n)=>L(r,n,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,n="historyUndo"==r?V:"historyRedo"==r?W:null;return!!n&&!!e.editable&&(t.preventDefault(),n(e.state,e.dispatch))}}}})}function U(e,t){return(r,n)=>{let i=q.getState(r);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(n){let s=z(i,r,e);s&&n(t?s.scrollIntoView():s)}return!0}}let V=U(!1,!0),W=U(!0,!0);U(!1,!1),U(!0,!1),n.YY.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){let e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc,r=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(r)}},addProseMirrorPlugins(){let e=!1;return[new i.k_({key:new i.hs("characterCount"),appendTransaction:(t,r,n)=>{if(e)return;let i=this.options.limit;if(null==i||0===i){e=!0;return}let s=this.storage.characters({node:n.doc});if(s>i){let t=0,r=s-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let o=n.tr.deleteRange(t,r);return e=!0,o}e=!0},filterTransaction:(e,t)=>{let r=this.options.limit;if(!e.docChanged||0===r||null==r)return!0;let n=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=r||n>r&&i>r&&i<=n)return!0;if(n>r&&i>r&&i>n||!e.getMeta("paste"))return!1;let s=e.selection.$head.pos,o=s-(i-r),l=s;return e.deleteRange(o,l),!(this.storage.characters({node:e.doc})>r)}})]}});var J=n.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[o(this.options)]}});n.YY.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new i.k_({key:new i.hs("focus"),props:{decorations:({doc:e,selection:t})=>{let{isEditable:r,isFocused:n}=this.editor,{anchor:i}=t,s=[];if(!r||!n)return a.zF.create(e,[]);let o=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let l=0;return e.descendants((e,t)=>!e.isText&&!!(i>=t&&i<=t+e.nodeSize-1)&&((l+=1,"deepest"===this.options.mode&&o-l>0||"shallowest"===this.options.mode&&l>1)?"deepest"===this.options.mode:void s.push(a.NZ.node(t,t+e.nodeSize,{class:this.options.className})))),a.zF.create(e,s)}}})]}});var K=n.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[g()],extendNodeSchema(e){var t;let r={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,n.gk)((0,n.iI)(e,"allowGapCursor",r)))?t:null}}}),G="placeholder";function Z(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var X=n.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:G,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){let e=this.options.dataAttribute?`data-${Z(this.options.dataAttribute)}`:`data-${G}`;return[new i.k_({key:new i.hs("placeholder"),props:{decorations:({doc:t,selection:r})=>{let i=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:s}=r,o=[];if(!i)return null;let l=this.editor.isEmpty;return t.descendants((t,r)=>{let i=s>=r&&s<=r+t.nodeSize,u=!t.isLeaf&&(0,n.Op)(t);if(!t.type.isTextblock)return this.options.includeChildren;if((i||!this.options.showOnlyCurrent)&&u){let n=[this.options.emptyNodeClass];l&&n.push(this.options.emptyEditorClass);let s=a.NZ.node(r,r+t.nodeSize,{class:n.join(" "),[e]:"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:t,pos:r,hasAnchor:i}):this.options.placeholder});o.push(s)}return this.options.includeChildren}),a.zF.create(t,o)}}})]}});n.YY.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new i.k_({key:new i.hs("selection"),props:{decorations:r=>r.selection.empty||e.isFocused||!e.isEditable||(0,n.BQ)(r.selection)||e.view.dragging?null:a.zF.create(r.doc,[a.NZ.inline(r.selection.from,r.selection.to,{class:t.className})])}})]}});var Y="skipTrailingNode";function Q({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(null==t?void 0:t.type)===e}var ee=n.YY.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var e;let t=new i.hs(this.name),r=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(r).includes(e.name));return[new i.k_({key:t,appendTransaction:(e,n,i)=>{let{doc:s,tr:o,schema:l}=i,a=t.getState(i),u=s.content.size,c=l.nodes[r];if(!e.some(e=>e.getMeta(Y))&&a)return o.insert(u,c.create())},state:{init:(e,t)=>!Q({node:t.tr.doc.lastChild,types:n}),apply:(e,t)=>!e.docChanged||e.getMeta("__uniqueIDTransaction")?t:!Q({node:e.doc.lastChild,types:n})}})]}}),et=n.YY.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>V(e,t),redo:()=>({state:e,dispatch:t})=>W(e,t)}),addProseMirrorPlugins(){return[H(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}})},65915:e=>{var t=!0,r=!1,n=!1;function i(e,t,r){var n=e.attrIndex(t),i=[t,r];n<0?e.attrPush(i):e.attrs[n]=i}function s(e,t){for(var r=e[t].level-1,n=t-1;n>=0;n--)if(e[n].level===r)return n;return -1}function o(e,t){return d(e[t])&&p(e[t-1])&&f(e[t-2])&&m(e[t])}function l(e,t){if(e.children.unshift(a(e,t)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),r)if(n){e.children.pop();var i="task-item-"+Math.ceil(1e7*Math.random()-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+i+'">',e.children.push(h(e.content,i,t))}else e.children.unshift(u(t)),e.children.push(c(t))}function a(e,r){var n=new r("html_inline","",0),i=t?' disabled="" ':"";return 0===e.content.indexOf("[ ] ")?n.content='<input class="task-list-item-checkbox"'+i+'type="checkbox">':(0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] "))&&(n.content='<input class="task-list-item-checkbox" checked=""'+i+'type="checkbox">'),n}function u(e){var t=new e("html_inline","",0);return t.content="<label>",t}function c(e){var t=new e("html_inline","",0);return t.content="</label>",t}function h(e,t,r){var n=new r("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",n.attrs=[{for:t}],n}function d(e){return"inline"===e.type}function p(e){return"paragraph_open"===e.type}function f(e){return"list_item_open"===e.type}function m(e){return 0===e.content.indexOf("[ ] ")||0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] ")}e.exports=function(e,a){a&&(t=!a.enabled,r=!!a.label,n=!!a.labelAfter),e.core.ruler.after("inline","github-task-lists",function(e){for(var r=e.tokens,n=2;n<r.length;n++)o(r,n)&&(l(r[n],e.Token),i(r[n-2],"class","task-list-item"+(t?"":" enabled")),i(r[s(r,n-2)],"class","contains-task-list"))})}},68459:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],s=(0,n.A)("trash-2",i)},68806:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],s=(0,n.A)("plug",i)},69048:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]],s=(0,n.A)("square-function",i)},73300:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],s=(0,n.A)("clipboard",i)},76022:(e,t,r)=>{"use strict";e.exports=r.p+"static/media/web-tree-sitter.f7f7244f.wasm"},76065:(e,t,r)=>{"use strict";r.d(t,{H:()=>n.Hj});var n=r(5989)},76865:(e,t,r)=>{"use strict";r.d(t,{$t:()=>E,LN:()=>o,U3:()=>c,hs:()=>F,i5:()=>f,k_:()=>M,nh:()=>d,yn:()=>l});var n=r(27050),i=r(8242);let s=Object.create(null);class o{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new l(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=n.Ji.empty){let r=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=r,r=r.lastChild;let s=e.steps.length,o=this.ranges;for(let l=0;l<o.length;l++){let{$from:a,$to:u}=o[l],c=e.mapping.slice(s);e.replaceRange(c.map(a.pos),c.map(u.pos),l?n.Ji.empty:t),0==l&&_(e,s,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:o}=n[i],l=e.mapping.slice(r),a=l.map(s.pos),u=l.map(o.pos);i?e.deleteRange(a,u):(e.replaceRangeWith(a,u,t),_(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let n=e.parent.inlineContent?new c(e):g(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let i=t<0?g(e.node(0),e.node(n),e.before(n+1),e.index(n),t,r):g(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,t,r);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new f(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new f(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let r=s[t.type];if(!r)throw RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in s)throw RangeError("Duplicate use of selection JSON ID "+e);return s[e]=t,t.prototype.jsonID=e,t}getBookmark(){return c.between(this.$anchor,this.$head).getBookmark()}}o.prototype.visible=!0;class l{constructor(e,t){this.$from=e,this.$to=t}}let a=!1;function u(e){a||e.parent.inlineContent||(a=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class c extends o{constructor(e,t=e){u(e),u(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return o.near(r);let n=e.resolve(t.map(this.anchor));return new c(n.parent.inlineContent?n:r,r)}replace(e,t=n.Ji.empty){if(super.replace(e,t),t==n.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof c&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new h(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new c(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let n=e.pos-t.pos;if((!r||n)&&(r=n>=0?1:-1),!t.parent.inlineContent){let e=o.findFrom(t,r,!0)||o.findFrom(t,-r,!0);if(!e)return o.near(t,r);t=e.$head}return e.parent.inlineContent||(0==n?e=t:(e=(o.findFrom(e,-r,!0)||o.findFrom(e,r,!0)).$anchor).pos<t.pos!=n<0&&(e=t)),new c(e,t)}}o.jsonID("text",c);class h{constructor(e,t){this.anchor=e,this.head=t}map(e){return new h(e.map(this.anchor),e.map(this.head))}resolve(e){return c.between(e.resolve(this.anchor),e.resolve(this.head))}}class d extends o{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return r?o.near(i):new d(i)}content(){return new n.Ji(n.FK.from(this.node),0,0)}eq(e){return e instanceof d&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new p(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new d(e.resolve(t.anchor))}static create(e,t){return new d(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}d.prototype.visible=!1,o.jsonID("node",d);class p{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new h(r,r):new p(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&d.isSelectable(r)?new d(t):o.near(t)}}class f extends o{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=n.Ji.empty){if(t==n.Ji.empty){e.delete(0,e.doc.content.size);let t=o.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new f(e)}map(e){return new f(e)}eq(e){return e instanceof f}getBookmark(){return m}}o.jsonID("all",f);let m={map(){return this},resolve:e=>new f(e)};function g(e,t,r,n,i,s=!1){if(t.inlineContent)return c.create(e,r);for(let o=n-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let n=t.child(o);if(n.isAtom){if(!s&&d.isSelectable(n))return d.create(e,r-(i<0?n.nodeSize:0))}else{let t=g(e,n,r+i,i<0?n.childCount:0,i,s);if(t)return t}r+=n.nodeSize*i}return null}function _(e,t,r){let n,s=e.steps.length-1;if(s<t)return;let l=e.steps[s];(l instanceof i.Ln||l instanceof i.Wg)&&(e.mapping.maps[s].forEach((e,t,r,i)=>{null==n&&(n=i)}),e.setSelection(o.near(e.doc.resolve(n),r)))}let y=1,k=2,b=4;class w extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|y)&~k,this.storedMarks=null,this}get selectionSet(){return(this.updated&y)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=k,this}ensureMarks(e){return n.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&k)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~k,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||n.CU.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let n=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(null==r&&(r=t),!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=r==t?e.marks():e.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,n.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(o.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=b,this}get scrolledIntoView(){return(this.updated&b)>0}}function x(e,t){return t&&e?e.bind(t):e}class v{constructor(e,t,r){this.name=e,this.init=x(t.init,r),this.apply=x(t.apply,r)}}let C=[new v("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new v("selection",{init:(e,t)=>e.selection||o.atStart(t.doc),apply:e=>e.selection}),new v("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new v("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class A{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=C.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new v(e.key,e.spec.state,e))})}}class E{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let t=this.config.plugins[r];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),n=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let o=this.config.plugins[s];if(o.spec.appendTransaction){let l=n?n[s].n:0,a=n?n[s].state:this,u=l<t.length&&o.spec.appendTransaction.call(o,l?t.slice(l):t,a,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!n){n=[];for(let e=0;e<this.config.plugins.length;e++)n.push(e<s?{state:r,n:t.length}:{state:this,n:0})}t.push(u),r=r.applyInner(u),i=!0}n&&(n[s]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new E(this.config),r=this.config.fields;for(let n=0;n<r.length;n++){let i=r[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new w(this)}static create(e){let t=new A(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new E(t);for(let n=0;n<t.fields.length;n++)r[t.fields[n].name]=t.fields[n].init(e,r);return r}reconfigure(e){let t=new A(this.schema,e.plugins),r=t.fields,n=new E(t);for(let t=0;t<r.length;t++){let i=r[t].name;n[i]=this.hasOwnProperty(i)?this[i]:r[t].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let r in e){if("doc"==r||"selection"==r)throw RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[r],i=n.spec.state;i&&i.toJSON&&(t[r]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,r){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new A(e.schema,e.plugins),s=new E(i);return i.fields.forEach(i=>{if("doc"==i.name)s.doc=n.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)s.selection=o.fromJSON(s.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(s.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let n in r){let o=r[n],l=o.spec.state;if(o.key==i.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(t,n)){s[i.name]=l.fromJSON.call(o,e,t[n],s);return}}s[i.name]=i.init(e,s)}}),s}}function S(e,t,r){for(let n in e){let i=e[n];i instanceof Function?i=i.bind(t):"handleDOMEvents"==n&&(i=S(i,t,{})),r[n]=i}return r}class M{constructor(e){this.spec=e,this.props={},e.props&&S(e.props,this,this.props),this.key=e.key?e.key.key:D("plugin")}getState(e){return e[this.key]}}let T=Object.create(null);function D(e){return e in T?e+"$"+ ++T[e]:(T[e]=0,e+"$")}class F{constructor(e="key"){this.key=D(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},82150:(e,t,r)=>{"use strict";r.d(t,{L2:()=>R,Rg:()=>u,_0:()=>N,_J:()=>I,ck:()=>c,it:()=>w});var n=r(82159),i=Object.defineProperty,s=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},o="listItem",l="textStyle",a=/^\s*([-+*])\s$/,u=n.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(o,this.editor.getAttributes(l)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,n.tG)({find:a,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:a,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(l),editor:this.editor})),[e]}}),c=n.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var r;if("list_item"!==e.type)return[];let n=null!=(r=t.parseBlockChildren)?r:t.parseChildren,i=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(e=>"paragraph"===e.type))i=n(e.tokens);else{let r=e.tokens[0];if(r&&"text"===r.type&&r.tokens&&r.tokens.length>0){if(i=[{type:"paragraph",content:t.parseInline(r.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));i.push(...t)}}else i=n(e.tokens)}return 0===i.length&&(i=[{type:"paragraph",content:[]}]),{type:"listItem",content:i}},renderMarkdown:(e,t,r)=>(0,n.kj)(e,t,e=>{var t,r;if("bulletList"===e.parentType)return"- ";if("orderedList"===e.parentType){let n=(null==(r=null==(t=e.meta)?void 0:t.parentAttrs)?void 0:r.start)||1;return`${n+e.index}. `}return"- "},r),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});s({},{findListItemPos:()=>h,getNextListDepth:()=>d,handleBackspace:()=>g,handleDelete:()=>k,hasListBefore:()=>p,hasListItemAfter:()=>b,hasListItemBefore:()=>f,listItemHasSubList:()=>m,nextListIsDeeper:()=>_,nextListIsHigher:()=>y});var h=(e,t)=>{let{$from:r}=t.selection,i=(0,n.Pg)(e,t.schema),s=null,o=r.depth,l=r.pos,a=null;for(;o>0&&null===a;)(s=r.node(o)).type===i?a=o:(o-=1,l-=1);return null===a?null:{$pos:t.doc.resolve(l),depth:a}},d=(e,t)=>{let r=h(e,t);if(!r)return!1;let[,i]=(0,n.fl)(t,e,r.$pos.pos+4);return i},p=(e,t,r)=>{let{$anchor:n}=e.selection,i=Math.max(0,n.pos-2),s=e.doc.resolve(i).node();return!!s&&!!r.includes(s.type.name)},f=(e,t)=>{var r;let{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-2);return 0!==i.index()&&(null==(r=i.nodeBefore)?void 0:r.type.name)===e},m=(e,t,r)=>{if(!r)return!1;let i=(0,n.Pg)(e,t.schema),s=!1;return r.descendants(e=>{e.type===i&&(s=!0)}),s},g=(e,t,r)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!(0,n.rU)(e.state,t)&&p(e.state,t,r)){let{$anchor:r}=e.state.selection,n=e.state.doc.resolve(r.before()-1),i=[];n.node().descendants((e,r)=>{e.type.name===t&&i.push({node:e,pos:r})});let s=i.at(-1);if(!s)return!1;let o=e.state.doc.resolve(n.start()+s.pos+1);return e.chain().cut({from:r.start()-1,to:r.end()+1},o.end()).joinForward().run()}if(!(0,n.rU)(e.state,t)||!(0,n.J_)(e.state))return!1;let i=h(t,e.state);if(!i)return!1;let s=e.state.doc.resolve(i.$pos.pos-2).node(i.depth),o=m(t,e.state,s);return f(t,e.state)&&!o?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},_=(e,t)=>{let r=d(e,t),n=h(e,t);return!!n&&!!r&&r>n.depth},y=(e,t)=>{let r=d(e,t),n=h(e,t);return!!n&&!!r&&r<n.depth},k=(e,t)=>{if(!(0,n.rU)(e.state,t)||!(0,n.QN)(e.state,t))return!1;let{selection:r}=e.state,{$from:i,$to:s}=r;return!(!r.empty&&i.sameParent(s))&&(_(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():y(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},b=(e,t)=>{var r;let{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-n.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null==(r=i.nodeAfter)?void 0:r.type.name)===e},w=n.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r})=>{void 0!==e.state.schema.nodes[r]&&k(e,r)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r})=>{void 0!==e.state.schema.nodes[r]&&k(e,r)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{void 0!==e.state.schema.nodes[r]&&g(e,r,n)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{void 0!==e.state.schema.nodes[r]&&g(e,r,n)&&(t=!0)}),t}}}}),x=/^(\s*)(\d+)\.\s+(.*)$/,v=/^\s/;function C(e){let t=e.trimStart();return/^[-+*]\s+/.test(t)||/^\d+\.\s+/.test(t)||/^>\s?/.test(t)||/^```/.test(t)||/^~~~/.test(t)}function A(e){let t=[],r=[],n=!1;return e.forEach(e=>{if(n)return void r.push(e);if(""===e.trim()||t.length>0&&C(e)){n=!0,r.push(e);return}t.push(e)}),{paragraphLines:t,blockLines:r}}function E(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r],s=i.match(x);if(!s)break;let[,o,l,a]=s,u=o.length,c=[a],h=r+1,d=[i],p=!1;for(;h<e.length;){let t=e[h];if(t.match(x))break;if(""===t.trim())d.push(t),c.push(""),p=!0,h+=1;else if(t.match(v))d.push(t),c.push(t.slice(u+2)),h+=1;else{if(p)break;d.push(t),c.push(t),h+=1}}t.push({indent:u,number:parseInt(l,10),content:c.join("\n").trim(),contentLines:c,raw:d.join("\n")}),n=h,r=h}return[t,n]}function S(e,t,r){let n=[],i=0;for(;i<e.length;){let s=e[i];if(s.indent===t){let{paragraphLines:o,blockLines:l}=A(s.contentLines),a=o.join("\n").trim(),u=[];a&&u.push({type:"paragraph",raw:a,tokens:r.inlineTokens(a)});let c=l.join("\n").trim();if(c){let e=r.blockTokens(c);u.push(...e)}let h=i+1,d=[];for(;h<e.length&&e[h].indent>t;)d.push(e[h]),h+=1;if(d.length>0){let e=Math.min(...d.map(e=>e.indent)),t=S(d,e,r);u.push({type:"list",ordered:!0,start:d[0].number,items:t,raw:d.map(e=>e.raw).join("\n")})}n.push({type:"list_item",raw:s.raw,tokens:u}),i=h}else i+=1}return n}function M(e,t){return e.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];let r=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)r.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){let n=t.parseChildren([e]);r.push({type:"paragraph",content:n})}else{let n=t.parseChildren([e]);n.length>0&&r.push(...n)}}),{type:"listItem",content:r}})}var T="listItem",D="textStyle",F=/^(\d+)\.\s$/,I=n.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...r}=e;return 1===t?["ol",(0,n.KV)(this.options.HTMLAttributes,r),0]:["ol",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if("list"!==e.type||!e.ordered)return[];let r=e.start||1,n=e.items?M(e.items,t):[];return 1!==r?{type:"orderedList",attrs:{start:r},content:n}:{type:"orderedList",content:n}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{let t=e.match(/^(\s*)(\d+)\.\s+/),r=null==t?void 0:t.index;return void 0!==r?r:-1},tokenize:(e,t,r)=>{var n;let i=e.split("\n"),[s,o]=E(i);if(0===s.length)return;let l=S(s,0,r);if(0!==l.length)return{type:"list",ordered:!0,start:(null==(n=s[0])?void 0:n.number)||1,items:l,raw:i.slice(0,o).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(T,this.editor.getAttributes(D)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,n.tG)({find:F,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:F,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(D)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),L=/^\s*(\[([( |x])?\])\s$/,R=n.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,n.KV)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{let r=[];if(e.tokens&&e.tokens.length>0?r.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?r.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):r.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){let n=t.parseChildren(e.nestedTokens);r.push(...n)}return t.createNode("taskItem",{checked:e.checked||!1},r)},renderMarkdown:(e,t)=>{var r;let i=(null==(r=e.attrs)?void 0:r.checked)?"x":" ",s=`- [${i}] `;return(0,n.kj)(e,t,s)},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:r,editor:i})=>{let s=document.createElement("li"),o=document.createElement("label"),l=document.createElement("span"),a=document.createElement("input"),u=document.createElement("div"),c=e=>{var t,r;a.ariaLabel=(null==(r=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:r.call(t,e,a.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};c(e),o.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",e=>e.preventDefault()),a.addEventListener("change",t=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}let{checked:n}=t.target;i.isEditable&&"function"==typeof r&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=r();if("number"!=typeof t)return!1;let i=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==i?void 0:i.attrs,checked:n}),!0}).run(),i.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,n)||(a.checked=!a.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{s.setAttribute(e,t)}),s.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,o.append(a,l),s.append(o,u),Object.entries(t).forEach(([e,t])=>{s.setAttribute(e,t)});let h=new Set(Object.keys(t));return{dom:s,contentDOM:u,update:e=>{if(e.type!==this.type)return!1;s.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,c(e);let t=i.extensionManager.attributes,r=(0,n.zU)(e,t),o=new Set(Object.keys(r)),l=this.options.HTMLAttributes;return h.forEach(e=>{o.has(e)||(e in l?s.setAttribute(e,l[e]):s.removeAttribute(e))}),Object.entries(r).forEach(([e,t])=>{null==t?e in l?s.setAttribute(e,l[e]):s.removeAttribute(e):s.setAttribute(e,t)}),h=o,!0}}}},addInputRules(){return[(0,n.tG)({find:L,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),N=n.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;let r=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==r?r:-1},tokenize(e,t,r){let i=e=>{let t=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);return t?[{type:"taskList",raw:t.raw,items:t.items}]:r.blockTokens(e)},s=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);if(s)return{type:"taskList",raw:s.raw,items:s.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});n.YY.create({name:"listKit",addExtensions(){let e=[];return!1!==this.options.bulletList&&e.push(u.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(c.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(w.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(I.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(R.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(N.configure(this.options.taskList)),e}})},91958:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],s=(0,n.A)("refresh-cw",i)},94577:(e,t,r)=>{"use strict";e.exports=r(99617)},96035:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],s=(0,n.A)("message-square",i)},97144:(e,t,r)=>{"use strict";r.d(t,{$f:()=>L,G2:()=>k,I$:()=>C,Im:()=>N,Qv:()=>a,Sd:()=>_,Z1:()=>A,_G:()=>c,_e:()=>p,bh:()=>b,eB:()=>u,eT:()=>g,ec:()=>R,hy:()=>M,ic:()=>o,iz:()=>E,pC:()=>x,yY:()=>w,y_:()=>O});var n=r(8242),i=r(27050),s=r(76865);let o=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function l(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("backward",e):!(r.parentOffset>0))?r:null}let a=(e,t,r)=>{let o=l(e,r);if(!o)return!1;let a=f(o);if(!a){let r=o.blockRange(),i=r&&(0,n.jP)(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)}let u=a.nodeBefore;if(F(e,a,t,-1))return!0;if(0==o.parent.content.size&&(d(u,"end")||s.nh.isSelectable(u)))for(let r=o.depth;;r--){let l=(0,n.$L)(e.doc,o.before(r),o.after(r),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(t){let r=e.tr.step(l);r.setSelection(d(u,"end")?s.LN.findFrom(r.doc.resolve(r.mapping.map(a.pos,-1)),-1):s.nh.create(r.doc,a.pos-u.nodeSize)),t(r.scrollIntoView())}return!0}if(1==r||o.node(r-1).childCount>1)break}return!!u.isAtom&&a.depth==o.depth-1&&(t&&t(e.tr.delete(a.pos-u.nodeSize,a.pos).scrollIntoView()),!0)},u=(e,t,r)=>{let n=l(e,r);if(!n)return!1;let i=f(n);return!!i&&h(e,i,t)},c=(e,t,r)=>{let n=m(e,r);if(!n)return!1;let i=y(n);return!!i&&h(e,i,t)};function h(e,t,r){let o=t.nodeBefore,l=t.pos-1;for(;!o.isTextblock;l--){if(o.type.spec.isolating)return!1;let e=o.lastChild;if(!e)return!1;o=e}let a=t.nodeAfter,u=t.pos+1;for(;!a.isTextblock;u++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let c=(0,n.$L)(e.doc,l,u,i.Ji.empty);if(!c||c.from!=l||c instanceof n.Ln&&c.slice.size>=u-l)return!1;if(r){let t=e.tr.step(c);t.setSelection(s.U3.create(t.doc,l)),r(t.scrollIntoView())}return!0}function d(e,t,r=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)break}return!1}let p=(e,t,r)=>{let{$head:n,empty:i}=e.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;o=f(n)}let l=o&&o.nodeBefore;return!!l&&!!s.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(s.nh.create(e.doc,o.pos-l.nodeSize)).scrollIntoView()),!0)};function f(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function m(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("forward",e):!(r.parentOffset<r.parent.content.size))?r:null}let g=(e,t,r)=>{let o=m(e,r);if(!o)return!1;let l=y(o);if(!l)return!1;let a=l.nodeAfter;if(F(e,l,t,1))return!0;if(0==o.parent.content.size&&(d(a,"start")||s.nh.isSelectable(a))){let r=(0,n.$L)(e.doc,o.before(),o.after(),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(d(a,"start")?s.LN.findFrom(n.doc.resolve(n.mapping.map(l.pos)),1):s.nh.create(n.doc,n.mapping.map(l.pos))),t(n.scrollIntoView())}return!0}}return!!a.isAtom&&l.depth==o.depth-1&&(t&&t(e.tr.delete(l.pos,l.pos+a.nodeSize).scrollIntoView()),!0)},_=(e,t,r)=>{let{$head:n,empty:i}=e.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;o=y(n)}let l=o&&o.nodeAfter;return!!l&&!!s.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(s.nh.create(e.doc,o.pos)).scrollIntoView()),!0)};function y(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}let k=(e,t)=>{let r=e.selection,i=r instanceof s.nh,o;if(i){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.from))return!1;o=r.from}else if(null==(o=(0,n.N0)(e.doc,r.from,-1)))return!1;if(t){let r=e.tr.join(o);i&&r.setSelection(s.nh.create(r.doc,o-e.doc.resolve(o).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0},b=(e,t)=>{let r=e.selection,i;if(r instanceof s.nh){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.to))return!1;i=r.to}else if(null==(i=(0,n.N0)(e.doc,r.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},w=(e,t)=>{let{$from:r,$to:i}=e.selection,s=r.blockRange(i),o=s&&(0,n.jP)(s);return null!=o&&(t&&t(e.tr.lift(s,o).scrollIntoView()),!0)},x=(e,t)=>{let{$head:r,$anchor:n}=e.selection;return!!r.parent.type.spec.code&&!!r.sameParent(n)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function v(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}let C=(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),o=r.indexAfter(-1),l=v(i.contentMatchAt(o));if(!l||!i.canReplaceWith(o,o,l))return!1;if(t){let n=r.after(),i=e.tr.replaceWith(n,n,l.createAndFill());i.setSelection(s.LN.near(i.doc.resolve(n),1)),t(i.scrollIntoView())}return!0},A=(e,t)=>{let r=e.selection,{$from:n,$to:i}=r;if(r instanceof s.i5||n.parent.inlineContent||i.parent.inlineContent)return!1;let o=v(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,l=e.tr.insert(r,o.createAndFill());l.setSelection(s.U3.create(l.doc,r+1)),t(l.scrollIntoView())}return!0},E=(e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if((0,n.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=r.blockRange(),s=i&&(0,n.jP)(i);return null!=s&&(t&&t(e.tr.lift(i,s).scrollIntoView()),!0)},S=function(){return(e,t)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof s.nh&&e.selection.node.isBlock)return!!r.parentOffset&&!!(0,n.zy)(e.doc,r.pos)&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],l,a,u=!1,c=!1;for(let e=r.depth;;e--){if(r.node(e).isBlock){u=r.end(e)==r.pos+(r.depth-e),c=r.start(e)==r.pos-(r.depth-e),a=v(r.node(e-1).contentMatchAt(r.indexAfter(e-1)));let t=void 0;o.unshift(t||(u&&a?{type:a}:null)),l=e;break}if(1==e)return!1;o.unshift(null)}let h=e.tr;(e.selection instanceof s.U3||e.selection instanceof s.i5)&&h.deleteSelection();let d=h.mapping.map(r.pos),p=(0,n.zy)(h.doc,d,o.length,o);if(p||(o[0]=a?{type:a}:null,p=(0,n.zy)(h.doc,d,o.length,o)),!p)return!1;if(h.split(d,o.length,o),!u&&c&&r.node(l).type!=a){let e=h.mapping.map(r.before(l)),t=h.doc.resolve(e);a&&r.node(l-1).canReplaceWith(t.index(),t.index()+1,a)&&h.setNodeMarkup(h.mapping.map(r.before(l)),a)}return t&&t(h.scrollIntoView()),!0}}(),M=(e,t)=>{let{$from:r,to:n}=e.selection,i,o=r.sharedDepth(n);return 0!=o&&(i=r.before(o),t&&t(e.tr.setSelection(s.nh.create(e.doc,i))),!0)},T=(e,t)=>(t&&t(e.tr.setSelection(new s.i5(e.doc))),!0);function D(e,t,r){let i=t.nodeBefore,s=t.nodeAfter,o=t.index();return!!i&&!!s&&!!i.type.compatibleContent(s.type)&&(!i.content.size&&t.parent.canReplace(o-1,o)?(r&&r(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(o,o+1)&&!!(s.isTextblock||(0,n.n9)(e.doc,t.pos))&&(r&&r(e.tr.join(t.pos).scrollIntoView()),!0))}function F(e,t,r,o){let l=t.nodeBefore,a=t.nodeAfter,u,c,h=l.type.spec.isolating||a.type.spec.isolating;if(!h&&D(e,t,r))return!0;let p=!h&&t.parent.canReplace(t.index(),t.index()+1);if(p&&(u=(c=l.contentMatchAt(l.childCount)).findWrapping(a.type))&&c.matchType(u[0]||a.type).validEnd){if(r){let s=t.pos+a.nodeSize,o=i.FK.empty;for(let e=u.length-1;e>=0;e--)o=i.FK.from(u[e].create(null,o));o=i.FK.from(l.copy(o));let c=e.tr.step(new n.Wg(t.pos-1,s,t.pos,s,new i.Ji(o,1,0),u.length,!0)),h=c.doc.resolve(s+2*u.length);h.nodeAfter&&h.nodeAfter.type==l.type&&(0,n.n9)(c.doc,h.pos)&&c.join(h.pos),r(c.scrollIntoView())}return!0}let f=a.type.spec.isolating||o>0&&h?null:s.LN.findFrom(t,1),m=f&&f.$from.blockRange(f.$to),g=m&&(0,n.jP)(m);if(null!=g&&g>=t.depth)return r&&r(e.tr.lift(m,g).scrollIntoView()),!0;if(p&&d(a,"start",!0)&&d(l,"end")){let s=l,o=[];for(;o.push(s),!s.isTextblock;)s=s.lastChild;let u=a,c=1;for(;!u.isTextblock;u=u.firstChild)c++;if(s.canReplace(s.childCount,s.childCount,u.content)){if(r){let s=i.FK.empty;for(let e=o.length-1;e>=0;e--)s=i.FK.from(o[e].copy(s));r(e.tr.step(new n.Wg(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new i.Ji(s,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function I(e){return function(t,r){let n=t.selection,i=e<0?n.$from:n.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return!!i.node(o).isTextblock&&(r&&r(t.tr.setSelection(s.U3.create(t.doc,e<0?i.start(o):i.end(o)))),!0)}}let L=I(-1),R=I(1);function N(e,t=null){return function(r,i){let{$from:s,$to:o}=r.selection,l=s.blockRange(o),a=l&&(0,n.oM)(l,e,t);return!!a&&(i&&i(r.tr.wrap(l,a).scrollIntoView()),!0)}}function O(e,t=null){return function(r,n){let i=!1;for(let n=0;n<r.selection.ranges.length&&!i;n++){let{$from:{pos:s},$to:{pos:o}}=r.selection.ranges[n];r.doc.nodesBetween(s,o,(n,s)=>{if(i)return!1;if(!(!n.isTextblock||n.hasMarkup(e,t)))if(n.type==e)i=!0;else{let t=r.doc.resolve(s),n=t.index();i=t.parent.canReplaceWith(n,n+1,e)}})}if(!i)return!1;if(n){let i=r.tr;for(let n=0;n<r.selection.ranges.length;n++){let{$from:{pos:s},$to:{pos:o}}=r.selection.ranges[n];i.setBlockType(s,o,e,t)}n(i.scrollIntoView())}return!0}}function z(...e){return function(t,r,n){for(let i=0;i<e.length;i++)if(e[i](t,r,n))return!0;return!1}}let P=z(o,a,p),$=z(o,g,_),B={Enter:z(x,A,E,S),"Mod-Enter":C,Backspace:P,"Mod-Backspace":P,"Shift-Backspace":P,Delete:$,"Mod-Delete":$,"Mod-a":T},q={"Ctrl-h":B.Backspace,"Alt-Backspace":B["Mod-Backspace"],"Ctrl-d":B.Delete,"Ctrl-Alt-Backspace":B["Mod-Delete"],"Alt-Delete":B["Mod-Delete"],"Alt-d":B["Mod-Delete"],"Ctrl-a":L,"Ctrl-e":R};for(let e in B)q[e]=B[e];"u">typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"u">typeof os&&os.platform&&os.platform()},97567:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],s=(0,n.A)("box",i)},98307:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],s=(0,n.A)("clipboard-list",i)},99617:(e,t,r)=>{"use strict";var n=r(12115),i=r(8039);function s(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var o="function"==typeof Object.is?Object.is:s,l=i.useSyncExternalStore,a=n.useRef,u=n.useEffect,c=n.useMemo,h=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var s=a(null);if(null===s.current){var d={hasValue:!1,value:null};s.current=d}else d=s.current;var p=l(e,(s=c(function(){function e(e){if(!a){if(a=!0,s=e,e=n(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return l=t}return l=e}if(t=l,o(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(s=e,t):(s=e,l=r)}var s,l,a=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],s[1]);return u(function(){d.hasValue=!0,d.value=p},[p]),h(p),p}}}]);
|