vibeman 0.0.5 → 0.0.6
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/dist/api.js +49 -0
- package/dist/cli.js +135 -0
- package/dist/ui/index-gnk6rhxs.js +9 -0
- package/dist/ui/index.html +10 -0
- package/dist/ui/index.js +2 -0
- package/package.json +10 -46
- package/README.md +0 -12
- package/dist/index.js +0 -114
- package/dist/runtime/api/.tsbuildinfo +0 -1
- package/dist/runtime/api/agent/agent-service.d.ts +0 -229
- package/dist/runtime/api/agent/agent-service.js +0 -963
- package/dist/runtime/api/agent/ai-providers/amp-cli-provider.d.ts +0 -38
- package/dist/runtime/api/agent/ai-providers/amp-cli-provider.js +0 -268
- package/dist/runtime/api/agent/ai-providers/claude-code-adapter.d.ts +0 -61
- package/dist/runtime/api/agent/ai-providers/claude-code-adapter.js +0 -362
- package/dist/runtime/api/agent/ai-providers/codex-cli-provider.d.ts +0 -36
- package/dist/runtime/api/agent/ai-providers/codex-cli-provider.js +0 -375
- package/dist/runtime/api/agent/ai-providers/gemini-cli-provider.d.ts +0 -24
- package/dist/runtime/api/agent/ai-providers/gemini-cli-provider.js +0 -291
- package/dist/runtime/api/agent/ai-providers/index.d.ts +0 -9
- package/dist/runtime/api/agent/ai-providers/index.js +0 -9
- package/dist/runtime/api/agent/ai-providers/types.d.ts +0 -185
- package/dist/runtime/api/agent/ai-providers/types.js +0 -5
- package/dist/runtime/api/agent/amp-cli-provider.test.d.ts +0 -1
- package/dist/runtime/api/agent/amp-cli-provider.test.js +0 -99
- package/dist/runtime/api/agent/codex-cli-provider.test.d.ts +0 -1
- package/dist/runtime/api/agent/codex-cli-provider.test.js +0 -172
- package/dist/runtime/api/agent/core-agent-service.d.ts +0 -119
- package/dist/runtime/api/agent/core-agent-service.js +0 -267
- package/dist/runtime/api/agent/parsers.d.ts +0 -16
- package/dist/runtime/api/agent/parsers.js +0 -308
- package/dist/runtime/api/agent/prompt-service.d.ts +0 -30
- package/dist/runtime/api/agent/prompt-service.js +0 -452
- package/dist/runtime/api/agent/prompt-service.test.d.ts +0 -1
- package/dist/runtime/api/agent/prompt-service.test.js +0 -265
- package/dist/runtime/api/agent/routing-policy.d.ts +0 -171
- package/dist/runtime/api/agent/routing-policy.js +0 -196
- package/dist/runtime/api/agent/routing-policy.test.d.ts +0 -1
- package/dist/runtime/api/agent/routing-policy.test.js +0 -63
- package/dist/runtime/api/api/router-helpers.d.ts +0 -32
- package/dist/runtime/api/api/router-helpers.js +0 -31
- package/dist/runtime/api/api/routers/ai.d.ts +0 -200
- package/dist/runtime/api/api/routers/ai.js +0 -396
- package/dist/runtime/api/api/routers/executions.d.ts +0 -93
- package/dist/runtime/api/api/routers/executions.js +0 -94
- package/dist/runtime/api/api/routers/git.d.ts +0 -45
- package/dist/runtime/api/api/routers/git.js +0 -35
- package/dist/runtime/api/api/routers/provider-config.d.ts +0 -199
- package/dist/runtime/api/api/routers/provider-config.js +0 -252
- package/dist/runtime/api/api/routers/settings.d.ts +0 -158
- package/dist/runtime/api/api/routers/settings.js +0 -129
- package/dist/runtime/api/api/routers/tasks.d.ts +0 -141
- package/dist/runtime/api/api/routers/tasks.js +0 -238
- package/dist/runtime/api/api/routers/workflows.d.ts +0 -275
- package/dist/runtime/api/api/routers/workflows.js +0 -311
- package/dist/runtime/api/api/routers/worktrees.d.ts +0 -101
- package/dist/runtime/api/api/routers/worktrees.js +0 -80
- package/dist/runtime/api/api/trpc.d.ts +0 -118
- package/dist/runtime/api/api/trpc.js +0 -34
- package/dist/runtime/api/index.d.ts +0 -9
- package/dist/runtime/api/index.js +0 -117
- package/dist/runtime/api/lib/id-generator.d.ts +0 -70
- package/dist/runtime/api/lib/id-generator.js +0 -123
- package/dist/runtime/api/lib/local-config.d.ts +0 -335
- package/dist/runtime/api/lib/local-config.js +0 -304
- package/dist/runtime/api/lib/logger.d.ts +0 -11
- package/dist/runtime/api/lib/logger.js +0 -188
- package/dist/runtime/api/lib/provider-detection.d.ts +0 -61
- package/dist/runtime/api/lib/provider-detection.js +0 -326
- package/dist/runtime/api/lib/server/agent-service-singleton.d.ts +0 -6
- package/dist/runtime/api/lib/server/agent-service-singleton.js +0 -27
- package/dist/runtime/api/lib/server/bootstrap.d.ts +0 -38
- package/dist/runtime/api/lib/server/bootstrap.js +0 -197
- package/dist/runtime/api/lib/server/git-service-singleton.d.ts +0 -6
- package/dist/runtime/api/lib/server/git-service-singleton.js +0 -47
- package/dist/runtime/api/lib/server/project-root.d.ts +0 -2
- package/dist/runtime/api/lib/server/project-root.js +0 -61
- package/dist/runtime/api/lib/server/task-service-singleton.d.ts +0 -7
- package/dist/runtime/api/lib/server/task-service-singleton.js +0 -58
- package/dist/runtime/api/lib/server/vibeman-info.d.ts +0 -5
- package/dist/runtime/api/lib/server/vibeman-info.js +0 -85
- package/dist/runtime/api/lib/server/vibing-orchestrator-singleton.d.ts +0 -7
- package/dist/runtime/api/lib/server/vibing-orchestrator-singleton.js +0 -57
- package/dist/runtime/api/lib/trpc/server.d.ts +0 -965
- package/dist/runtime/api/lib/trpc/server.js +0 -11
- package/dist/runtime/api/lib/trpc/ws-server.d.ts +0 -8
- package/dist/runtime/api/lib/trpc/ws-server.js +0 -33
- package/dist/runtime/api/persistence/database-service.d.ts +0 -14
- package/dist/runtime/api/persistence/database-service.js +0 -74
- package/dist/runtime/api/persistence/execution-log-persistence.d.ts +0 -90
- package/dist/runtime/api/persistence/execution-log-persistence.js +0 -426
- package/dist/runtime/api/persistence/execution-log-persistence.test.d.ts +0 -1
- package/dist/runtime/api/persistence/execution-log-persistence.test.js +0 -170
- package/dist/runtime/api/router.d.ts +0 -968
- package/dist/runtime/api/router.js +0 -34
- package/dist/runtime/api/settings-service.d.ts +0 -110
- package/dist/runtime/api/settings-service.js +0 -678
- package/dist/runtime/api/tasks/file-watcher.d.ts +0 -23
- package/dist/runtime/api/tasks/file-watcher.js +0 -88
- package/dist/runtime/api/tasks/task-file-parser.d.ts +0 -14
- package/dist/runtime/api/tasks/task-file-parser.js +0 -180
- package/dist/runtime/api/tasks/task-service.d.ts +0 -36
- package/dist/runtime/api/tasks/task-service.js +0 -173
- package/dist/runtime/api/tasks/task-updater.d.ts +0 -62
- package/dist/runtime/api/tasks/task-updater.js +0 -260
- package/dist/runtime/api/tasks/task-updater.test.d.ts +0 -1
- package/dist/runtime/api/tasks/task-updater.test.js +0 -303
- package/dist/runtime/api/types/index.d.ts +0 -186
- package/dist/runtime/api/types/index.js +0 -1
- package/dist/runtime/api/types/settings.d.ts +0 -105
- package/dist/runtime/api/types/settings.js +0 -2
- package/dist/runtime/api/types.d.ts +0 -2
- package/dist/runtime/api/types.js +0 -1
- package/dist/runtime/api/utils/env.d.ts +0 -6
- package/dist/runtime/api/utils/env.js +0 -12
- package/dist/runtime/api/utils/stripNextEnv.d.ts +0 -7
- package/dist/runtime/api/utils/stripNextEnv.js +0 -22
- package/dist/runtime/api/utils/title-slug.d.ts +0 -6
- package/dist/runtime/api/utils/title-slug.js +0 -77
- package/dist/runtime/api/utils/url.d.ts +0 -2
- package/dist/runtime/api/utils/url.js +0 -19
- package/dist/runtime/api/vcs/git-history-service.d.ts +0 -57
- package/dist/runtime/api/vcs/git-history-service.js +0 -228
- package/dist/runtime/api/vcs/git-service.d.ts +0 -136
- package/dist/runtime/api/vcs/git-service.js +0 -307
- package/dist/runtime/api/vcs/worktree-service.d.ts +0 -93
- package/dist/runtime/api/vcs/worktree-service.js +0 -518
- package/dist/runtime/api/vcs/worktree-service.test.d.ts +0 -1
- package/dist/runtime/api/vcs/worktree-service.test.js +0 -20
- package/dist/runtime/api/workflows/quality-pipeline.d.ts +0 -58
- package/dist/runtime/api/workflows/quality-pipeline.js +0 -401
- package/dist/runtime/api/workflows/vibing-orchestrator.d.ts +0 -406
- package/dist/runtime/api/workflows/vibing-orchestrator.js +0 -2462
- package/dist/runtime/api/workflows/workflow-effects.d.ts +0 -45
- package/dist/runtime/api/workflows/workflow-effects.js +0 -49
- package/dist/runtime/api/workflows/workflow-reconciler.d.ts +0 -65
- package/dist/runtime/api/workflows/workflow-reconciler.js +0 -226
- package/dist/runtime/api/workflows/workflow-reducer.d.ts +0 -26
- package/dist/runtime/api/workflows/workflow-reducer.js +0 -288
- package/dist/runtime/api/workflows/workflow-reducer.test.d.ts +0 -1
- package/dist/runtime/api/workflows/workflow-reducer.test.js +0 -247
- package/dist/runtime/api/workflows/workflow-schema.d.ts +0 -546
- package/dist/runtime/api/workflows/workflow-schema.js +0 -256
- package/dist/runtime/web/.next/BUILD_ID +0 -1
- package/dist/runtime/web/.next/app-build-manifest.json +0 -66
- package/dist/runtime/web/.next/app-path-routes-manifest.json +0 -8
- package/dist/runtime/web/.next/build-manifest.json +0 -33
- package/dist/runtime/web/.next/package.json +0 -1
- package/dist/runtime/web/.next/prerender-manifest.json +0 -61
- package/dist/runtime/web/.next/react-loadable-manifest.json +0 -8
- package/dist/runtime/web/.next/required-server-files.json +0 -334
- package/dist/runtime/web/.next/routes-manifest.json +0 -70
- package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route.js +0 -1
- package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route_client-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/app/_not-found/page.js +0 -2
- package/dist/runtime/web/.next/server/app/_not-found/page.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/app/_not-found/page_client-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/app/_not-found.html +0 -7
- package/dist/runtime/web/.next/server/app/_not-found.meta +0 -8
- package/dist/runtime/web/.next/server/app/_not-found.rsc +0 -22
- package/dist/runtime/web/.next/server/app/api/health/route.js +0 -1
- package/dist/runtime/web/.next/server/app/api/health/route.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/app/api/health/route_client-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js +0 -1
- package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/app/api/images/[...path]/route_client-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/app/api/upload/route.js +0 -1
- package/dist/runtime/web/.next/server/app/api/upload/route.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/app/api/upload/route_client-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/app/index.html +0 -7
- package/dist/runtime/web/.next/server/app/index.meta +0 -7
- package/dist/runtime/web/.next/server/app/index.rsc +0 -27
- package/dist/runtime/web/.next/server/app/page.js +0 -112
- package/dist/runtime/web/.next/server/app/page.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/app/page_client-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/app-paths-manifest.json +0 -8
- package/dist/runtime/web/.next/server/chunks/210.js +0 -1
- package/dist/runtime/web/.next/server/chunks/291.js +0 -18
- package/dist/runtime/web/.next/server/chunks/552.js +0 -22
- package/dist/runtime/web/.next/server/chunks/780.js +0 -1
- package/dist/runtime/web/.next/server/chunks/905.js +0 -6
- package/dist/runtime/web/.next/server/chunks/98.js +0 -1
- package/dist/runtime/web/.next/server/functions-config-manifest.json +0 -4
- package/dist/runtime/web/.next/server/middleware-build-manifest.js +0 -1
- package/dist/runtime/web/.next/server/middleware-manifest.json +0 -6
- package/dist/runtime/web/.next/server/middleware-react-loadable-manifest.js +0 -1
- package/dist/runtime/web/.next/server/next-font-manifest.js +0 -1
- package/dist/runtime/web/.next/server/next-font-manifest.json +0 -1
- package/dist/runtime/web/.next/server/pages/404.html +0 -7
- package/dist/runtime/web/.next/server/pages/500.html +0 -1
- package/dist/runtime/web/.next/server/pages/_app.js +0 -1
- package/dist/runtime/web/.next/server/pages/_app.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/pages/_document.js +0 -1
- package/dist/runtime/web/.next/server/pages/_document.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/pages/_error.js +0 -19
- package/dist/runtime/web/.next/server/pages/_error.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/pages-manifest.json +0 -6
- package/dist/runtime/web/.next/server/server-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/server-reference-manifest.json +0 -1
- package/dist/runtime/web/.next/server/webpack-runtime.js +0 -1
- package/dist/runtime/web/.next/static/LJFZk_8tvKFN_Ee4HqUuM/_buildManifest.js +0 -1
- package/dist/runtime/web/.next/static/LJFZk_8tvKFN_Ee4HqUuM/_ssgManifest.js +0 -1
- package/dist/runtime/web/.next/static/chunks/05c91ade-7d09b2b280adffd1.js +0 -1
- package/dist/runtime/web/.next/static/chunks/201-51bef3fa8c832e2e.js +0 -1
- package/dist/runtime/web/.next/static/chunks/524-89747ed9b0294f8a.js +0 -1
- package/dist/runtime/web/.next/static/chunks/554-8bec6e9cca6acc67.js +0 -1
- package/dist/runtime/web/.next/static/chunks/764.86e9503a69d45a85.js +0 -1
- package/dist/runtime/web/.next/static/chunks/7ab4dc20-239138e0ae7af24a.js +0 -1
- package/dist/runtime/web/.next/static/chunks/905-342391e3d3a3678f.js +0 -20
- package/dist/runtime/web/.next/static/chunks/a8a5ce16-4edea7df2d9b544a.js +0 -79
- package/dist/runtime/web/.next/static/chunks/ad74d572-4c1b162e2c15acaa.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/.vibeman/assets/images/[...path]/route-7b752a8641f96c1f.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/_not-found/page-34e66b251c2b5044.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/api/health/route-7b752a8641f96c1f.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/api/images/[...path]/route-7b752a8641f96c1f.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/api/upload/route-7b752a8641f96c1f.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/layout-df9ac93cb02b2385.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/page-6610743f7de5f92a.js +0 -1
- package/dist/runtime/web/.next/static/chunks/c25e0690-e9b798b8de667da1.js +0 -1
- package/dist/runtime/web/.next/static/chunks/framework-57157ec4d37f64aa.js +0 -1
- package/dist/runtime/web/.next/static/chunks/main-app-156cc0c60371bd78.js +0 -1
- package/dist/runtime/web/.next/static/chunks/main-df25d367c47b1fec.js +0 -1
- package/dist/runtime/web/.next/static/chunks/pages/_app-9f629a5e1131d19f.js +0 -1
- package/dist/runtime/web/.next/static/chunks/pages/_error-9238238274c7efcd.js +0 -1
- package/dist/runtime/web/.next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/dist/runtime/web/.next/static/chunks/webpack-cd50e39b423d1808.js +0 -1
- package/dist/runtime/web/.next/static/css/2728291c68f99cb1.css +0 -3
- package/dist/runtime/web/.next/static/css/4fbf378a264bd4ea.css +0 -1
- package/dist/runtime/web/.next/static/css/521bd69cc298cd1a.css +0 -1
- package/dist/runtime/web/.next/static/css/537e22821e101b87.css +0 -1
- package/dist/runtime/web/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
- package/dist/runtime/web/package.json +0 -65
- package/dist/runtime/web/server.js +0 -44
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[147],{25874:(e,t,n)=>{n.d(t,{AB:()=>tF,BQ:()=>eG,CU:()=>tw,Db:()=>t2,Dd:()=>tG,FF:()=>e_,JJ:()=>t_,J_:()=>eJ,KE:()=>tB,KV:()=>eN,Nx:()=>eM,Nz:()=>tW,OX:()=>tH,Op:()=>eQ,Pg:()=>x,QN:()=>eY,T7:()=>ex,YY:()=>tS,Yv:()=>t9,Zc:()=>t8,bP:()=>t3,fl:()=>eW,gk:()=>e$,gu:()=>eU,hO:()=>eV,iI:()=>eS,jT:()=>tU,kj:()=>t0,rU:()=>ei,tG:()=>tV,zU:()=>eP});var r=n(14832),i=n(10986),o=n(63218),s=n(55156),a=n(90312),l=n(89841),d=n(81122),c=Object.defineProperty,h=(e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})};function u(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:i}=n,{storedMarks:o}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,o=n.storedMarks,n}}}var p=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,o=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(o);return i.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(i),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:o}=r,s=[],a=!!e,l=e||i.tr,d=()=>(a||!t||l.getMeta("preventDispatch")||this.hasCustomState||o.dispatch(l),s.every(e=>!0===e)),c={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(l,t),i=n(...e)(r);return s.push(i),c}])),run:d};return c}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,i=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:o}=r,s={tr:e,editor:r,view:o,state:u({state:i,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(s)]))}};return s}},m={};h(m,{blur:()=>f,clearContent:()=>g,clearNodes:()=>v,command:()=>y,createParagraphNear:()=>b,cut:()=>k,deleteCurrentNode:()=>w,deleteNode:()=>M,deleteRange:()=>E,deleteSelection:()=>S,enter:()=>C,exitCode:()=>T,extendMarkRange:()=>R,first:()=>D,focus:()=>U,forEach:()=>_,insertContent:()=>V,insertContentAt:()=>q,joinBackward:()=>X,joinDown:()=>J,joinForward:()=>Z,joinItemBackward:()=>Q,joinItemForward:()=>G,joinTextblockBackward:()=>ee,joinTextblockForward:()=>et,joinUp:()=>Y,keyboardShortcut:()=>er,lift:()=>eo,liftEmptyBlock:()=>es,liftListItem:()=>ea,newlineInCode:()=>el,resetAttributes:()=>eh,scrollIntoView:()=>eu,selectAll:()=>ep,selectNodeBackward:()=>em,selectNodeForward:()=>ef,selectParentNode:()=>eg,selectTextblockEnd:()=>ev,selectTextblockStart:()=>ey,setContent:()=>ek,setMark:()=>e3,setMeta:()=>e9,setNode:()=>e8,setNodeSelection:()=>e4,setTextDirection:()=>e5,setTextSelection:()=>e6,sinkListItem:()=>e7,splitBlock:()=>tt,splitListItem:()=>tn,toggleList:()=>to,toggleMark:()=>ts,toggleNode:()=>ta,toggleWrap:()=>tl,undoInputRule:()=>td,unsetAllMarks:()=>tc,unsetMark:()=>th,unsetTextDirection:()=>tu,updateAttributes:()=>tp,wrapIn:()=>tm,wrapInList:()=>tf});var f=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),null==(n=null==window?void 0:window.getSelection())||n.removeAllRanges())}),!0),g=(e=!0)=>({commands:t})=>t.setContent("",{emitUpdate:e}),v=()=>({state:e,tr:t,dispatch:n})=>{let{selection:i}=t,{ranges:o}=i;return!n||(o.forEach(({$from:n,$to:i})=>{e.doc.nodesBetween(n.pos,i.pos,(e,n)=>{if(e.type.isText)return;let{doc:i,mapping:o}=t,s=i.resolve(o.map(n)),a=i.resolve(o.map(n+e.nodeSize)),l=s.blockRange(a);if(!l)return;let d=(0,r.jP)(l);if(e.type.isTextblock){let{defaultType:e}=s.parent.contentMatchAt(s.index());t.setNodeMarkup(l.start,e)}(d||0===d)&&t.lift(l,d)})}),!0)},y=e=>t=>e(t),b=()=>({state:e,dispatch:t})=>(0,i.Z1)(e,t),k=(e,t)=>({editor:n,tr:r})=>{let{state:i}=n,s=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let a=r.mapping.map(t);return r.insert(a,s.content),r.setSelection(new o.U3(r.doc.resolve(Math.max(a-1,0)))),!0},w=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let i=e.selection.$anchor;for(let n=i.depth;n>0;n-=1)if(i.node(n).type===r.type){if(t){let t=i.before(n),r=i.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1};function x(e,t){if("string"==typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var M=e=>({tr:t,state:n,dispatch:r})=>{let i=x(e,n.schema),o=t.selection.$anchor;for(let e=o.depth;e>0;e-=1)if(o.node(e).type===i){if(r){let n=o.before(e),r=o.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},E=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},S=()=>({state:e,dispatch:t})=>(0,i.ic)(e,t),C=()=>({commands:e})=>e.keyboardShortcut("Enter"),T=()=>({state:e,dispatch:t})=>(0,i.I$)(e,t);function O(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function $(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:O(t[r])?t[r].test(e[r]):t[r]===e[r])}function z(e,t,n={}){return e.find(e=>e.type===t&&$(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function A(e,t,n={}){return!!z(e,t,n)}function N(e,t,n){var r;if(!e||!t)return;let i=e.parent.childAfter(e.parentOffset);if(i.node&&i.node.marks.some(e=>e.type===t)||(i=e.parent.childBefore(e.parentOffset)),!i.node||!i.node.marks.some(e=>e.type===t)||(n=n||(null==(r=i.node.marks[0])?void 0:r.attrs),!z([...i.node.marks],t,n)))return;let o=i.index,s=e.start()+i.offset,a=o+1,l=s+i.node.nodeSize;for(;o>0&&A([...e.parent.child(o-1).marks],t,n);)o-=1,s-=e.parent.child(o).nodeSize;for(;a<e.parent.childCount&&A([...e.parent.child(a).marks],t,n);)l+=e.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function P(e,t){if("string"==typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var R=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let s=P(e,r.schema),{doc:a,selection:l}=n,{$from:d,from:c,to:h}=l;if(i){let e=N(d,s,t);if(e&&e.from<=c&&e.to>=h){let t=o.U3.create(a,e.from,e.to);n.setSelection(t)}}return!0},D=e=>t=>{let n="function"==typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function j(e){return e instanceof o.U3}function I(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function L(e,t=null){if(!t)return null;let n=o.LN.atStart(e),r=o.LN.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return r;let i=n.from,s=r.to;return"all"===t?o.U3.create(e,I(0,i,s),I(e.content.size,i,s)):o.U3.create(e,I(t,i,s),I(t,i,s))}function B(){return"Android"===navigator.platform||/android/i.test(navigator.userAgent)}function H(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var U=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:o})=>{t={scrollIntoView:!0,...t};let s=()=>{(H()||B())&&r.dom.focus(),requestAnimationFrame(()=>{!n.isDestroyed&&(r.focus(),(null==t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())})};if(r.hasFocus()&&null===e||!1===e)return!0;if(o&&null===e&&!j(n.state.selection))return s(),!0;let a=L(i.doc,e)||n.state.selection,l=n.state.selection.eq(a);return o&&(l||i.setSelection(a),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},_=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),V=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),W=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){let r=t[n];3===r.nodeType&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):1===r.nodeType&&W(r)}return e};function F(e){if("undefined"==typeof window)throw Error("[tiptap error]: there is no window object available, so this function cannot be used");let t=`<body>${e}</body>`;return W(new window.DOMParser().parseFromString(t,"text/html").body)}function K(e,t,n){if(e instanceof s.bP||e instanceof s.FK)return e;n={slice:!0,parseOptions:{},...n};let r="object"==typeof e&&null!==e,i="string"==typeof e;if(r)try{if(Array.isArray(e)&&e.length>0)return s.FK.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error("[tiptap error]: Invalid JSON content",{cause:r});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),K("",t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i="",o=new s.Sj({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:e=>(r=!0,i="string"==typeof e?e:e.outerHTML,null)}]}})});if(n.slice?s.S4.fromSchema(o).parseSlice(F(e),n.parseOptions):s.S4.fromSchema(o).parse(F(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error("[tiptap error]: Invalid HTML content",{cause:Error(`Invalid element found: ${i}`)})}let r=s.S4.fromSchema(t);return n.slice?r.parseSlice(F(e),n.parseOptions).content:r.parse(F(e),n.parseOptions)}return K("",t,n)}var q=(e,t,n)=>({tr:i,dispatch:a,editor:l})=>{var d;if(a){let a,c;n={parseOptions:l.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let h=e=>{l.emit("contentError",{editor:l,error:e,disableCollaboration:()=>{"collaboration"in l.storage&&"object"==typeof l.storage.collaboration&&l.storage.collaboration&&(l.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!l.options.enableContentCheck&&l.options.emitContentError)try{K(t,l.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(e){h(e)}try{a=K(t,l.schema,{parseOptions:u,errorOnInvalidContent:null!=(d=n.errorOnInvalidContent)?d:l.options.enableContentCheck})}catch(e){return h(e),!1}let{from:p,to:m}="number"==typeof e?{from:e,to:e}:{from:e.from,to:e.to},f=!0,g=!0;if((!("type"in a)?a:[a]).forEach(e=>{e.check(),f=!!f&&e.isText&&0===e.marks.length,g=!!g&&e.isBlock}),p===m&&g){let{parent:e}=i.doc.resolve(p);!e.isTextblock||e.type.spec.code||e.childCount||(p-=1,m+=1)}if(f){if(Array.isArray(t))c=t.map(e=>e.text||"").join("");else if(t instanceof s.FK){let e="";t.forEach(t=>{t.text&&(e+=t.text)}),c=e}else c="object"==typeof t&&t&&t.text?t.text:t;i.insertText(c,p,m)}else{c=a;let e=i.doc.resolve(p),t=e.node(),n=0===e.parentOffset,r=t.isText||t.isTextblock,o=t.content.size>0;n&&r&&o&&(p=Math.max(0,p-1)),i.replaceWith(p,m,c)}n.updateSelection&&function(e,t,n){let i=e.steps.length-1;if(i<t)return;let s=e.steps[i];if(!(s instanceof r.Ln||s instanceof r.Wg))return;let a=e.mapping.maps[i],l=0;a.forEach((e,t,n,r)=>{0===l&&(l=r)}),e.setSelection(o.LN.near(e.doc.resolve(l),-1))}(i,i.steps.length-1,0),n.applyInputRules&&i.setMeta("applyInputRules",{from:p,text:c}),n.applyPasteRules&&i.setMeta("applyPasteRules",{from:p,text:c})}return!0},Y=()=>({state:e,dispatch:t})=>(0,i.G2)(e,t),J=()=>({state:e,dispatch:t})=>(0,i.bh)(e,t),X=()=>({state:e,dispatch:t})=>(0,i.Qv)(e,t),Z=()=>({state:e,dispatch:t})=>(0,i.eT)(e,t),Q=()=>({state:e,dispatch:t,tr:n})=>{try{let i=(0,r.N0)(e.doc,e.selection.$from.pos,-1);if(null==i)return!1;return n.join(i,2),t&&t(n),!0}catch{return!1}},G=()=>({state:e,dispatch:t,tr:n})=>{try{let i=(0,r.N0)(e.doc,e.selection.$from.pos,1);if(null==i)return!1;return n.join(i,2),t&&t(n),!0}catch{return!1}},ee=()=>({state:e,dispatch:t})=>(0,i.eB)(e,t),et=()=>({state:e,dispatch:t})=>(0,i._G)(e,t);function en(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}var er=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let o=(function(e){let t,n,r,i,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"===s&&(s=" ");for(let e=0;e<o.length-1;e+=1){let s=o[e];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else if(/^s(hift)?$/i.test(s))r=!0;else if(/^mod$/i.test(s))H()||en()?i=!0:n=!0;else throw Error(`Unrecognized modifier name: ${s}`)}return t&&(s=`Alt-${s}`),n&&(s=`Ctrl-${s}`),i&&(s=`Meta-${s}`),r&&(s=`Shift-${s}`),s})(e).split(/-(?!$)/),s=o.find(e=>!["Alt","Ctrl","Meta","Shift"].includes(e)),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",e=>e(n,a))});return null==l||l.steps.forEach(e=>{let t=e.map(r.mapping);t&&i&&r.maybeStep(t)}),!0};function ei(e,t,n={}){let{from:r,to:i,empty:o}=e.selection,s=t?x(t,e.schema):null,a=[];e.doc.nodesBetween(r,i,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),o=Math.min(i,t+e.nodeSize);a.push({node:e,from:n,to:o})});let l=i-r,d=a.filter(e=>!s||s.name===e.node.type.name).filter(e=>$(e.node.attrs,n,{strict:!1}));return o?!!d.length:d.reduce((e,t)=>e+t.to-t.from,0)>=l}var eo=(e,t={})=>({state:n,dispatch:r})=>{let o=x(e,n.schema);return!!ei(n,o,t)&&(0,i.yY)(n,r)},es=()=>({state:e,dispatch:t})=>(0,i.iz)(e,t),ea=e=>({state:t,dispatch:n})=>{let r=x(e,t.schema);return(0,a.T2)(r)(t,n)},el=()=>({state:e,dispatch:t})=>(0,i.pC)(e,t);function ed(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function ec(e,t){let n="string"==typeof t?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var eh=(e,t)=>({tr:n,state:r,dispatch:i})=>{let o=null,s=null,a=ed("string"==typeof e?e:e.name,r.schema);if(!a)return!1;"node"===a&&(o=x(e,r.schema)),"mark"===a&&(s=P(e,r.schema));let l=!1;return n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{o&&o===e.type&&(l=!0,i&&n.setNodeMarkup(r,void 0,ec(e.attrs,t))),s&&e.marks.length&&e.marks.forEach(o=>{s===o.type&&(l=!0,i&&n.addMark(r,r+e.nodeSize,s.create(ec(o.attrs,t))))})})}),l},eu=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),ep=()=>({tr:e,dispatch:t})=>{if(t){let t=new o.i5(e.doc);e.setSelection(t)}return!0},em=()=>({state:e,dispatch:t})=>(0,i._e)(e,t),ef=()=>({state:e,dispatch:t})=>(0,i.Sd)(e,t),eg=()=>({state:e,dispatch:t})=>(0,i.hy)(e,t),ev=()=>({state:e,dispatch:t})=>(0,i.ec)(e,t),ey=()=>({state:e,dispatch:t})=>(0,i.$f)(e,t);function eb(e,t,n={},r={}){return K(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var ek=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:o,dispatch:s,commands:a})=>{let{doc:l}=o;if("full"!==r.preserveWhitespace){let a=eb(e,i.schema,r,{errorOnInvalidContent:null!=t?t:i.options.enableContentCheck});return s&&o.replaceWith(0,l.content.size,a).setMeta("preventUpdate",!n),!0}return s&&o.setMeta("preventUpdate",!n),a.insertContentAt({from:0,to:l.content.size},e,{parseOptions:r,errorOnInvalidContent:null!=t?t:i.options.enableContentCheck})};function ew(e,t){let n=P(t,e.schema),{from:r,to:i,empty:o}=e.selection,s=[];o?(e.storedMarks&&s.push(...e.storedMarks),s.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,e=>{s.push(...e.marks)});let a=s.find(e=>e.type.name===n.name);return a?{...a.attrs}:{}}function ex(e,t){let n=new r.dL(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function eM(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function eE(e){return t=>(function(e,t){for(let n=e.depth;n>0;n-=1){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}})(t.$from,e)}function eS(e,t,n){return void 0===e.config[t]&&e.parent?eS(e.parent,t,n):"function"==typeof e.config[t]?e.config[t].bind({...n,parent:e.parent?eS(e.parent,t,n):null}):e.config[t]}function eC(e){return e.map(e=>{let t={name:e.name,options:e.options,storage:e.storage},n=eS(e,"addExtensions",t);return n?[e,...eC(n())]:e}).flat(10)}function eT(e,t){let n=s.ZF.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function eO(e){return"function"==typeof e}function e$(e,t,...n){return eO(e)?t?e.bind(t)(...n):e(...n):e}function ez(e){let t=e.filter(e=>"extension"===e.type);return{baseExtensions:t,nodeExtensions:e.filter(e=>"node"===e.type),markExtensions:e.filter(e=>"mark"===e.type)}}function eA(e){let t=[],{nodeExtensions:n,markExtensions:r}=ez(e),i=[...n,...r],o={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(e=>{let n={name:e.name,options:e.options,storage:e.storage,extensions:i},r=eS(e,"addGlobalAttributes",n);r&&r().forEach(e=>{e.types.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...o,...r}})})})})}),i.forEach(e=>{let n={name:e.name,options:e.options,storage:e.storage},r=eS(e,"addAttributes",n);r&&Object.entries(r()).forEach(([n,r])=>{let i={...o,...r};"function"==typeof(null==i?void 0:i.default)&&(i.default=i.default()),(null==i?void 0:i.isRequired)&&(null==i?void 0:i.default)===void 0&&delete i.default,t.push({type:e.name,name:n,attribute:i})})}),t}function eN(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(!n[e]){n[e]=t;return}if("class"===e){let r=t?String(t).split(" "):[],i=n[e]?n[e].split(" "):[],o=r.filter(e=>!i.includes(e));n[e]=[...i,...o].join(" ")}else if("style"===e){let r=t?t.split(";").map(e=>e.trim()).filter(Boolean):[],i=n[e]?n[e].split(";").map(e=>e.trim()).filter(Boolean):[],o=new Map;i.forEach(e=>{let[t,n]=e.split(":").map(e=>e.trim());o.set(t,n)}),r.forEach(e=>{let[t,n]=e.split(":").map(e=>e.trim());o.set(t,n)}),n[e]=Array.from(o.entries()).map(([e,t])=>`${e}: ${t}`).join("; ")}else n[e]=t}),n},{})}function eP(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>eN(e,t),{})}function eR(e,t){return"style"in e?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;let i=t.reduce((e,t)=>{var r;let i=t.attribute.parseHTML?t.attribute.parseHTML(n):"string"!=typeof(r=n.getAttribute(t.name))?r:r.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(r):"true"===r||"false"!==r&&r;return null==i?e:{...e,[t.name]:i}},{});return{...r,...i}}}}function eD(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>!("attrs"===e&&function(e={}){return 0===Object.keys(e).length&&e.constructor===Object}(t))&&null!=t))}function ej(e){var t,n;let r={};return!(null==(t=null==e?void 0:e.attribute)?void 0:t.isRequired)&&"default"in((null==e?void 0:e.attribute)||{})&&(r.default=e.attribute.default),(null==(n=null==e?void 0:e.attribute)?void 0:n.validate)!==void 0&&(r.validate=e.attribute.validate),[e.name,r]}function eI(e){return e.sort((e,t)=>{let n=eS(e,"priority")||100,r=eS(t,"priority")||100;return n>r?-1:+(n<r)})}function eL(e){var t;let n=eI(eC(e)),r=Array.from(new Set((t=n.map(e=>e.name)).filter((e,n)=>t.indexOf(e)!==n)));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(e=>`'${e}'`).join(", ")}]. This can lead to issues.`),n}function eB(e,t,n){let{from:r,to:i}=t,{blockSeparator:o="\n\n",textSerializers:s={}}=n||{},a="";return e.nodesBetween(r,i,(e,n,l,d)=>{var c;e.isBlock&&n>r&&(a+=o);let h=null==s?void 0:s[e.type.name];if(h)return l&&(a+=h({node:e,pos:n,parent:l,index:d,range:t})),!1;e.isText&&(a+=null==(c=null==e?void 0:e.text)?void 0:c.slice(Math.max(r,n)-n,i-n))}),a}function eH(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function eU(e,t){let n=ed("string"==typeof t?t:t.name,e.schema);if("node"===n){let n=x(t,e.schema),{from:r,to:i}=e.selection,o=[];e.doc.nodesBetween(r,i,e=>{o.push(e)});let s=o.reverse().find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}return"mark"===n?ew(e,t):{}}function e_(e){let{mapping:t,steps:n}=e,r=[];t.maps.forEach((e,i)=>{let o=[];if(e.ranges.length)e.forEach((e,t)=>{o.push({from:e,to:t})});else{let{from:e,to:t}=n[i];if(void 0===e||void 0===t)return;o.push({from:e,to:t})}o.forEach(({from:e,to:n})=>{let o=t.slice(i).map(e,-1),s=t.slice(i).map(n),a=t.invert().map(o,-1),l=t.invert().map(s);r.push({oldRange:{from:a,to:l},newRange:{from:o,to:s}})})});let i=function(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)})}(r);return 1===i.length?i:i.filter((e,t)=>!i.filter((e,n)=>n!==t).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function eV(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=N(n.resolve(e),t.type);i&&r.push({mark:t,...i})}):n.nodesBetween(e,t,(e,t)=>{e&&(null==e?void 0:e.nodeSize)!==void 0&&r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}var eW=(e,t,n,r=20)=>{let i=e.doc.resolve(n),o=r,s=null;for(;o>0&&null===s;){let e=i.node(o);(null==e?void 0:e.type.name)===t?s=e:o-=1}return[s,o]};function eF(e,t){return t.nodes[e]||t.marks[e]||null}function eK(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return!!r&&r.attribute.keepOnSplit}))}function eq(e,t,n={}){let{empty:r,ranges:i}=e.selection,o=t?P(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!o||o.name===e.type.name).find(e=>$(e.attrs,n,{strict:!1}));let s=0,a=[];if(i.forEach(({$from:t,$to:n})=>{let r=t.pos,i=n.pos;e.doc.nodesBetween(r,i,(e,t)=>{if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),o=Math.min(i,t+e.nodeSize);s+=o-n,a.push(...e.marks.map(e=>({mark:e,from:n,to:o})))})}),0===s)return!1;let l=a.filter(e=>!o||o.name===e.mark.type.name).filter(e=>$(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),d=a.filter(e=>!o||e.mark.type!==o&&e.mark.type.excludes(o)).reduce((e,t)=>e+t.to-t.from,0);return(l>0?l+d:l)>=s}var eY=(e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=eE(e=>e.type.name===t)(e.selection);if(!n)return!1;let r=e.doc.resolve(n.pos+1);return i.pos+1===r.end()}return!(r.parentOffset<r.parent.nodeSize-2)&&n.pos===r.pos},eJ=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0)&&t.pos===n.pos};function eX(e,t){return Array.isArray(t)?t.some(t=>("string"==typeof t?t:t.name)===e.name):t}function eZ(e,t){let{nodeExtensions:n}=ez(t),r=n.find(t=>t.name===e);if(!r)return!1;let i={name:r.name,options:r.options,storage:r.storage},o=e$(eS(r,"group",i));return"string"==typeof o&&o.split(" ").includes("list")}function eQ(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if("hardBreak"===e.type.name)return!0;if(e.isText)return/^\s*$/m.test(null!=(r=e.text)?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(0===e.content.childCount)return!0;if(t){let r=!0;return e.content.forEach(e=>{!1!==r&&(eQ(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function eG(e){return e instanceof o.nh}var e0=class e{constructor(e){this.position=e}static fromJSON(t){return new e(t.position)}toJSON(){return{position:this.position}}};function e1(e,t){let n=t.mapping.mapResult(e.position);return{position:new e0(n.pos),mapResult:n}}function e2(e){return new e0(e)}var e3=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:o}=n,{empty:s,ranges:a}=o,l=P(e,r.schema);if(i)if(s){let e=ew(r,l);n.addStoredMark(l.create({...e,...t}))}else a.forEach(e=>{let i=e.$from.pos,o=e.$to.pos;r.doc.nodesBetween(i,o,(e,r)=>{let s=Math.max(r,i),a=Math.min(r+e.nodeSize,o);e.marks.find(e=>e.type===l)?e.marks.forEach(e=>{l===e.type&&n.addMark(s,a,l.create({...e.attrs,...t}))}):n.addMark(s,a,l.create(t))})});return function(e,t,n){var r;let{selection:i}=t,o=null;if(j(i)&&(o=i.$cursor),o){let t=null!=(r=e.storedMarks)?r:o.marks();return o.parent.type.allowsMarkType(n)&&(!!n.isInSet(t)||!t.some(e=>e.type.excludes(n)))}let{ranges:s}=i;return s.some(({$from:t,$to:r})=>{let i=0===t.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(i)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),o=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));i=t&&o}return!i}),i})}(r,n,l)},e9=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),e8=(e,t={})=>({state:n,dispatch:r,chain:o})=>{let s,a=x(e,n.schema);return(n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),a.isTextblock)?o().command(({commands:e})=>!!(0,i.y_)(a,{...s,...t})(n)||e.clearNodes()).command(({state:e})=>(0,i.y_)(a,{...s,...t})(e,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},e4=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=I(e,0,n.content.size),i=o.nh.create(n,r);t.setSelection(i)}return!0},e5=(e,t)=>({tr:n,state:r,dispatch:i})=>{let o,s,{selection:a}=r;return"number"==typeof t?(o=t,s=t):t&&"from"in t&&"to"in t?(o=t.from,s=t.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},e6=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}="number"==typeof e?{from:e,to:e}:e,s=o.U3.atStart(n).from,a=o.U3.atEnd(n).to,l=I(r,s,a),d=I(i,s,a),c=o.U3.create(n,l,d);t.setSelection(c)}return!0},e7=e=>({state:t,dispatch:n})=>{let r=x(e,t.schema);return(0,a.$B)(r)(t,n)};function te(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>null==t?void 0:t.includes(e.type.name));e.tr.ensureMarks(r)}}var tt=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:i,editor:s})=>{let{selection:a,doc:l}=t,{$from:d,$to:c}=a,h=eK(s.extensionManager.attributes,d.node().type.name,d.node().attrs);if(a instanceof o.nh&&a.node.isBlock)return!!d.parentOffset&&!!(0,r.zy)(l,d.pos)&&(i&&(e&&te(n,s.extensionManager.splittableMarks),t.split(d.pos).scrollIntoView()),!0);if(!d.parent.isBlock)return!1;let u=c.parentOffset===c.parent.content.size,p=0===d.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(d.node(-1).contentMatchAt(d.indexAfter(-1))),m=u&&p?[{type:p,attrs:h}]:void 0,f=(0,r.zy)(t.doc,t.mapping.map(d.pos),1,m);if(!m&&!f&&(0,r.zy)(t.doc,t.mapping.map(d.pos),1,p?[{type:p}]:void 0)&&(f=!0,m=p?[{type:p,attrs:h}]:void 0),i){if(f&&(a instanceof o.U3&&t.deleteSelection(),t.split(t.mapping.map(d.pos),1,m),p&&!u&&!d.parentOffset&&d.parent.type!==p)){let e=t.mapping.map(d.before()),n=t.doc.resolve(e);d.node(-1).canReplaceWith(n.index(),n.index()+1,p)&&t.setNodeMarkup(t.mapping.map(d.before()),p)}e&&te(n,s.extensionManager.splittableMarks),t.scrollIntoView()}return f},tn=(e,t={})=>({tr:n,state:i,dispatch:a,editor:l})=>{var d;let c=x(e,i.schema),{$from:h,$to:u}=i.selection,p=i.selection.node;if(p&&p.isBlock||h.depth<2||!h.sameParent(u))return!1;let m=h.node(-1);if(m.type!==c)return!1;let f=l.extensionManager.attributes;if(0===h.parent.content.size&&h.node(-1).childCount===h.indexAfter(-1)){if(2===h.depth||h.node(-3).type!==c||h.index(-2)!==h.node(-2).childCount-1)return!1;if(a){let e=s.FK.empty,r=h.index(-1)?1:h.index(-2)?2:3;for(let t=h.depth-r;t>=h.depth-3;t-=1)e=s.FK.from(h.node(t).copy(e));let i=h.indexAfter(-1)<h.node(-2).childCount?1:h.indexAfter(-2)<h.node(-3).childCount?2:3,a={...eK(f,h.node().type.name,h.node().attrs),...t},l=(null==(d=c.contentMatch.defaultType)?void 0:d.createAndFill(a))||void 0;e=e.append(s.FK.from(c.createAndFill(null,l)||void 0));let u=h.before(h.depth-(r-1));n.replace(u,h.after(-i),new s.Ji(e,4-r,0));let p=-1;n.doc.nodesBetween(u,n.doc.content.size,(e,t)=>{if(p>-1)return!1;e.isTextblock&&0===e.content.size&&(p=t+1)}),p>-1&&n.setSelection(o.U3.near(n.doc.resolve(p))),n.scrollIntoView()}return!0}let g=u.pos===h.end()?m.contentMatchAt(0).defaultType:null,v={...eK(f,m.type.name,m.attrs),...t},y={...eK(f,h.node().type.name,h.node().attrs),...t};n.delete(h.pos,u.pos);let b=g?[{type:c,attrs:v},{type:g,attrs:y}]:[{type:c,attrs:v}];if(!(0,r.zy)(n.doc,h.pos,2))return!1;if(a){let{selection:e,storedMarks:t}=i,{splittableMarks:r}=l.extensionManager,o=t||e.$to.parentOffset&&e.$from.marks();if(n.split(h.pos,2,b).scrollIntoView(),!o||!a)return!0;let s=o.filter(e=>r.includes(e.type.name));n.ensureMarks(s)}return!0},tr=(e,t)=>{let n=eE(e=>e.type===t)(e.selection);if(!n)return!0;let i=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===i)return!0;let o=e.doc.nodeAt(i);return!(n.node.type===(null==o?void 0:o.type)&&(0,r.n9)(e.doc,n.pos))||(e.join(n.pos),!0)},ti=(e,t)=>{let n=eE(e=>e.type===t)(e.selection);if(!n)return!0;let i=e.doc.resolve(n.start).after(n.depth);if(void 0===i)return!0;let o=e.doc.nodeAt(i);return!(n.node.type===(null==o?void 0:o.type)&&(0,r.n9)(e.doc,i))||(e.join(i),!0)},to=(e,t,n,r={})=>({editor:i,tr:o,state:s,dispatch:a,chain:l,commands:d,can:c})=>{let{extensions:h,splittableMarks:u}=i.extensionManager,p=x(e,s.schema),m=x(t,s.schema),{selection:f,storedMarks:g}=s,{$from:v,$to:y}=f,b=v.blockRange(y),k=g||f.$to.parentOffset&&f.$from.marks();if(!b)return!1;let w=eE(e=>eZ(e.type.name,h))(f);if(b.depth>=1&&w&&b.depth-w.depth<=1){if(w.node.type===p)return d.liftListItem(m);if(eZ(w.node.type.name,h)&&p.validContent(w.node.content)&&a)return l().command(()=>(o.setNodeMarkup(w.pos,p),!0)).command(()=>tr(o,p)).command(()=>ti(o,p)).run()}return n&&k&&a?l().command(()=>{let e=c().wrapInList(p,r),t=k.filter(e=>u.includes(e.type.name));return o.ensureMarks(t),!!e||d.clearNodes()}).wrapInList(p,r).command(()=>tr(o,p)).command(()=>ti(o,p)).run():l().command(()=>!!c().wrapInList(p,r)||d.clearNodes()).wrapInList(p,r).command(()=>tr(o,p)).command(()=>ti(o,p)).run()},ts=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:o=!1}=n,s=P(e,r.schema);return eq(r,s,t)?i.unsetMark(s,{extendEmptyMarkRange:o}):i.setMark(s,t)},ta=(e,t,n={})=>({state:r,commands:i})=>{let o,s=x(e,r.schema),a=x(t,r.schema),l=ei(r,s,n);return(r.selection.$anchor.sameParent(r.selection.$head)&&(o=r.selection.$anchor.parent.attrs),l)?i.setNode(a,o):i.setNode(s,{...o,...n})},tl=(e,t={})=>({state:n,commands:r})=>{let i=x(e,n.schema);return ei(n,i,t)?r.lift(i):r.wrapIn(i,t)},td=()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let i,o=n[r];if(o.spec.isInputRules&&(i=o.getState(e))){if(t){let t=e.tr,n=i.transform;for(let e=n.steps.length-1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(i.text){let n=t.doc.resolve(i.from).marks();t.replaceWith(i.from,i.to,e.schema.text(i.text,n))}else t.delete(i.from,i.to)}return!0}}return!1},tc=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,{empty:r,ranges:i}=n;return!!r||(t&&i.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0)},th=(e,t={})=>({tr:n,state:r,dispatch:i})=>{var o;let{extendEmptyMarkRange:s=!1}=t,{selection:a}=n,l=P(e,r.schema),{$from:d,empty:c,ranges:h}=a;if(!i)return!0;if(c&&s){let{from:e,to:t}=a,r=null==(o=d.marks().find(e=>e.type===l))?void 0:o.attrs,i=N(d,l,r);i&&(e=i.from,t=i.to),n.removeMark(e,t,l)}else h.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,l)});return n.removeStoredMark(l),!0},tu=e=>({tr:t,state:n,dispatch:r})=>{let i,o,{selection:s}=n;return"number"==typeof e?(i=e,o=e):e&&"from"in e&&"to"in e?(i=e.from,o=e.to):(i=s.from,o=s.to),r&&t.doc.nodesBetween(i,o,(e,n)=>{if(e.isText)return;let r={...e.attrs};delete r.dir,t.setNodeMarkup(n,void 0,r)}),!0},tp=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let o=null,s=null,a=ed("string"==typeof e?e:e.name,r.schema);if(!a)return!1;"node"===a&&(o=x(e,r.schema)),"mark"===a&&(s=P(e,r.schema));let l=!1;return n.selection.ranges.forEach(e=>{let a,d,c,h,u=e.$from.pos,p=e.$to.pos;n.selection.empty?r.doc.nodesBetween(u,p,(e,t)=>{o&&o===e.type&&(l=!0,c=Math.max(t,u),h=Math.min(t+e.nodeSize,p),a=t,d=e)}):r.doc.nodesBetween(u,p,(e,r)=>{r<u&&o&&o===e.type&&(l=!0,c=Math.max(r,u),h=Math.min(r+e.nodeSize,p),a=r,d=e),r>=u&&r<=p&&(o&&o===e.type&&(l=!0,i&&n.setNodeMarkup(r,void 0,{...e.attrs,...t})),s&&e.marks.length&&e.marks.forEach(o=>{if(s===o.type&&(l=!0,i)){let i=Math.max(r,u),a=Math.min(r+e.nodeSize,p);n.addMark(i,a,s.create({...o.attrs,...t}))}}))}),d&&(void 0!==a&&i&&n.setNodeMarkup(a,void 0,{...d.attrs,...t}),s&&d.marks.length&&d.marks.forEach(e=>{s===e.type&&i&&n.addMark(c,h,s.create({...e.attrs,...t}))}))}),l},tm=(e,t={})=>({state:n,dispatch:r})=>{let o=x(e,n.schema);return(0,i.Im)(o,t)(n,r)},tf=(e,t={})=>({state:n,dispatch:r})=>{let i=x(e,n.schema);return(0,a.Sd)(i,t)(n,r)},tg=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){let n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){let n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){let n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},tv=class{constructor(e){var t;this.find=e.find,this.handler=e.handler,this.undoable=null==(t=e.undoable)||t}};function ty(e){var t;let{editor:n,from:r,to:i,text:o,rules:s,plugin:a}=e,{view:l}=n;if(l.composing)return!1;let d=l.state.doc.resolve(r);if(d.parent.type.spec.code||(null==(t=d.nodeBefore||d.nodeAfter)?void 0:t.marks.find(e=>e.type.spec.code)))return!1;let c=!1,h=((e,t=500)=>{let n="",r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,i,o)=>{var s,a;let l=(null==(a=(s=e.type.spec).toText)?void 0:a.call(s,{node:e,pos:t,parent:i,index:o}))||e.textContent||"%leaf%";n+=e.isAtom&&!e.isText?l:l.slice(0,Math.max(0,r-t))}),n})(d)+o;return s.forEach(e=>{if(c)return;let t=((e,t)=>{if(O(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r})(h,e.find);if(!t)return;let s=l.state.tr,d=u({state:l.state,transaction:s}),m={from:r-(t[0].length-o.length),to:i},{commands:f,chain:g,can:v}=new p({editor:n,state:d});null!==e.handler({state:d,range:m,match:t,commands:f,chain:g,can:v})&&s.steps.length&&(e.undoable&&s.setMeta(a,{transform:s,from:r,to:i,text:o}),l.dispatch(s),c=!0)}),c}function tb(e){return"Object"===Object.prototype.toString.call(e).slice(8,-1)&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}var tk=class{constructor(e={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...e$(eS(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...e$(eS(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>(function e(t,n){let r={...t};return tb(t)&&tb(n)&&Object.keys(n).forEach(i=>{tb(n[i])&&tb(t[i])?r[i]=e(t[i],n[i]):r[i]=n[i]}),r})(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){let t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name="name"in e?e.name:t.parent.name,t}},tw=class e extends tk{constructor(){super(...arguments),this.type="mark"}static create(t={}){return new e("function"==typeof t?t():t)}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let i=r.marks();if(!i.find(e=>(null==e?void 0:e.type.name)===t.name))return!1;let o=i.find(e=>(null==e?void 0:e.type.name)===t.name);return o&&n.removeStoredMark(o),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){let t="function"==typeof e?e():e;return super.extend(t)}},tx=class{constructor(e){this.find=e.find,this.handler=e.handler}},tM=null,tE=class{constructor(e,t){this.splittableMarks=[],this.editor=t,this.baseExtensions=e,this.extensions=eL(e),this.schema=function(e,t){var n;let r=eA(e),{nodeExtensions:i,markExtensions:o}=ez(e),a=null==(n=i.find(e=>eS(e,"topNode")))?void 0:n.name,l=Object.fromEntries(i.map(n=>{let i=r.filter(e=>e.type===n.name),o={name:n.name,options:n.options,storage:n.storage,editor:t},s=eD({...e.reduce((e,t)=>{let r=eS(t,"extendNodeSchema",o);return{...e,...r?r(n):{}}},{}),content:e$(eS(n,"content",o)),marks:e$(eS(n,"marks",o)),group:e$(eS(n,"group",o)),inline:e$(eS(n,"inline",o)),atom:e$(eS(n,"atom",o)),selectable:e$(eS(n,"selectable",o)),draggable:e$(eS(n,"draggable",o)),code:e$(eS(n,"code",o)),whitespace:e$(eS(n,"whitespace",o)),linebreakReplacement:e$(eS(n,"linebreakReplacement",o)),defining:e$(eS(n,"defining",o)),isolating:e$(eS(n,"isolating",o)),attrs:Object.fromEntries(i.map(ej))}),a=e$(eS(n,"parseHTML",o));a&&(s.parseDOM=a.map(e=>eR(e,i)));let l=eS(n,"renderHTML",o);l&&(s.toDOM=e=>l({node:e,HTMLAttributes:eP(e,i)}));let d=eS(n,"renderText",o);return d&&(s.toText=d),[n.name,s]})),d=Object.fromEntries(o.map(n=>{let i=r.filter(e=>e.type===n.name),o={name:n.name,options:n.options,storage:n.storage,editor:t},s=eD({...e.reduce((e,t)=>{let r=eS(t,"extendMarkSchema",o);return{...e,...r?r(n):{}}},{}),inclusive:e$(eS(n,"inclusive",o)),excludes:e$(eS(n,"excludes",o)),group:e$(eS(n,"group",o)),spanning:e$(eS(n,"spanning",o)),code:e$(eS(n,"code",o)),attrs:Object.fromEntries(i.map(ej))}),a=e$(eS(n,"parseHTML",o));a&&(s.parseDOM=a.map(e=>eR(e,i)));let l=eS(n,"renderHTML",o);return l&&(s.toDOM=e=>l({mark:e,HTMLAttributes:eP(e,i)})),[n.name,s]}));return new s.Sj({topNode:a,nodes:l,marks:d})}(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:eF(t.name,this.schema)},r=eS(t,"addCommands",n);return r?{...e,...r()}:e},{})}get plugins(){let{editor:e}=this;return eI([...this.extensions].reverse()).flatMap(t=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:eF(t.name,this.schema)},r=[],i=eS(t,"addKeyboardShortcuts",n),a={};if("mark"===t.type&&eS(t,"exitable",n)&&(a.ArrowRight=()=>tw.handleExit({editor:e,mark:t})),i){let t=Object.fromEntries(Object.entries(i()).map(([t,n])=>[t,()=>n({editor:e})]));a={...a,...t}}let l=(0,d.w)(a);r.push(l);let c=eS(t,"addInputRules",n);if(eX(t,e.options.enableInputRules)&&c){let t=c();if(t&&t.length){let n=function(e){let{editor:t,rules:n}=e,r=new o.k_({state:{init:()=>null,apply(e,i,o){let a=e.getMeta(r);if(a)return a;let l=e.getMeta("applyInputRules");return l&&setTimeout(()=>{let{text:e}=l;"string"==typeof e||(e=eT(s.FK.from(e),o.schema));let{from:i}=l,a=i+e.length;ty({editor:t,from:i,to:a,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput:(e,i,o,s)=>ty({editor:t,from:i,to:o,text:s,rules:n,plugin:r}),handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&ty({editor:t,from:i.pos,to:i.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(e,i){if("Enter"!==i.key)return!1;let{$cursor:o}=e.state.selection;return!!o&&ty({editor:t,from:o.pos,to:o.pos,text:"\n",rules:n,plugin:r})}},isInputRules:!0});return r}({editor:e,rules:t}),i=Array.isArray(n)?n:[n];r.push(...i)}}let h=eS(t,"addPasteRules",n);if(eX(t,e.options.enablePasteRules)&&h){let t=h();if(t&&t.length){let n=function(e){let t,{editor:n,rules:r}=e,i=null,a=!1,l=!1,d="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null;try{t="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{t=null}let c=({state:e,from:r,to:i,rule:o,pasteEvt:s})=>{let a=e.tr;if(function(e){let{editor:t,state:n,from:r,to:i,rule:o,pasteEvent:s,dropEvent:a}=e,{commands:l,chain:d,can:c}=new p({editor:t,state:n}),h=[];return n.doc.nodesBetween(r,i,(e,t)=>{var u,p,m,f,g;if((null==(p=null==(u=e.type)?void 0:u.spec)?void 0:p.code)||!(e.isText||e.isTextblock||e.isInline))return;let v=null!=(g=null!=(f=null==(m=e.content)?void 0:m.size)?f:e.nodeSize)?g:0,y=Math.max(r,t),b=Math.min(i,t+v);y>=b||((e,t,n)=>{if(O(t))return[...e.matchAll(t)];let r=t(e,n);return r?r.map(t=>{let n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(t.replaceWith)),n}):[]})(e.isText?e.text||"":e.textBetween(y-t,b-t,void 0,""),o.find,s).forEach(e=>{if(void 0===e.index)return;let t=y+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},u=o.handler({state:n,range:i,match:e,commands:l,chain:d,can:c,pasteEvent:s,dropEvent:a});h.push(u)})}),h.every(e=>null!==e)}({editor:n,state:u({state:e,transaction:a}),from:Math.max(r-1,0),to:i.b-1,rule:o,pasteEvent:s,dropEvent:t})&&a.steps.length){try{t="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{t=null}return d="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null,a}};return r.map(e=>new o.k_({view(e){let t=t=>{var r;(i=(null==(r=e.dom.parentElement)?void 0:r.contains(t.target))?e.dom.parentElement:null)&&(tM=n)},r=()=>{tM&&(tM=null)};return window.addEventListener("dragstart",t),window.addEventListener("dragend",r),{destroy(){window.removeEventListener("dragstart",t),window.removeEventListener("dragend",r)}}},props:{handleDOMEvents:{drop:(e,n)=>{if(l=i===e.dom.parentElement,t=n,!l){let e=tM;(null==e?void 0:e.isEditable)&&setTimeout(()=>{let t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{var n;let r=null==(n=t.clipboardData)?void 0:n.getData("text/html");return d=t,a=!!(null==r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(t,n,r)=>{let i=t[0],o="paste"===i.getMeta("uiEvent")&&!a,h="drop"===i.getMeta("uiEvent")&&!l,u=i.getMeta("applyPasteRules"),p=!!u;if(!o&&!h&&!p)return;if(p){let{text:t}=u;"string"==typeof t||(t=eT(s.FK.from(t),r.schema));let{from:n}=u,i=n+t.length;return c({rule:e,state:r,from:n,to:{b:i},pasteEvt:(e=>{var t;let n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return null==(t=n.clipboardData)||t.setData("text/html",e),n})(t)})}let m=n.doc.content.findDiffStart(r.doc.content),f=n.doc.content.findDiffEnd(r.doc.content);if("number"==typeof m&&f&&m!==f.b)return c({rule:e,state:r,from:m,to:f,pasteEvt:d})}}))}({editor:e,rules:t});r.push(...n)}}let m=eS(t,"addProseMirrorPlugins",n);if(m){let e=m();r.push(...e)}return r})}get attributes(){return eA(this.extensions)}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=ez(this.extensions);return Object.fromEntries(t.filter(e=>!!eS(e,"addNodeView")).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:x(t.name,this.schema)},i=eS(t,"addNodeView",r);if(!i)return[];let o=i();return o?[t.name,(r,i,s,a,l)=>{let d=eP(r,n);return o({node:r,view:i,getPos:s,decorations:a,innerDecorations:l,editor:e,extension:t,HTMLAttributes:d})}]:[]}))}get markViews(){let{editor:e}=this,{markExtensions:t}=ez(this.extensions);return Object.fromEntries(t.filter(e=>!!eS(e,"addMarkView")).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:P(t.name,this.schema)},i=eS(t,"addMarkView",r);return i?[t.name,(r,o,s)=>{let a=eP(r,n);return i()({mark:r,view:o,inline:s,editor:e,extension:t,HTMLAttributes:a,updateAttributes:t=>{t1(r,e,t)}})}]:[]}))}setupExtensions(){let e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(e=>[e.name,e.storage])),e.forEach(e=>{var t;let n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:eF(e.name,this.schema)};"mark"===e.type&&(null==(t=e$(eS(e,"keepOnSplit",n)))||t)&&this.splittableMarks.push(e.name);let r=eS(e,"onBeforeCreate",n),i=eS(e,"onCreate",n),o=eS(e,"onUpdate",n),s=eS(e,"onSelectionUpdate",n),a=eS(e,"onTransaction",n),l=eS(e,"onFocus",n),d=eS(e,"onBlur",n),c=eS(e,"onDestroy",n);r&&this.editor.on("beforeCreate",r),i&&this.editor.on("create",i),o&&this.editor.on("update",o),s&&this.editor.on("selectionUpdate",s),a&&this.editor.on("transaction",a),l&&this.editor.on("focus",l),d&&this.editor.on("blur",d),c&&this.editor.on("destroy",c)})}};tE.resolve=eL,tE.sort=eI,tE.flatten=eC,h({},{ClipboardTextSerializer:()=>tC,Commands:()=>tT,Delete:()=>tO,Drop:()=>t$,Editable:()=>tz,FocusEvents:()=>tN,Keymap:()=>tP,Paste:()=>tR,Tabindex:()=>tD,TextDirection:()=>tj,focusEventsPluginKey:()=>tA});var tS=class e extends tk{constructor(){super(...arguments),this.type="extension"}static create(t={}){return new e("function"==typeof t?t():t)}configure(e){return super.configure(e)}extend(e){let t="function"==typeof e?e():e;return super.extend(t)}},tC=tS.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new o.k_({key:new o.hs("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:o}=i,s=Math.min(...o.map(e=>e.$from.pos)),a=Math.max(...o.map(e=>e.$to.pos)),l=eH(n);return eB(r,{from:s,to:a},{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),tT=tS.create({name:"commands",addCommands:()=>({...m})}),tO=tS.create({name:"delete",onUpdate({transaction:e,appendedTransactions:t}){var n,i,o;let s=()=>{var n,i,o,s;if(null!=(s=null==(o=null==(i=null==(n=this.editor.options.coreExtensionOptions)?void 0:n.delete)?void 0:i.filterTransaction)?void 0:o.call(i,e))?s:e.getMeta("y-sync$"))return;let a=ex(e.before,[e,...t]);e_(a).forEach(t=>{a.mapping.mapResult(t.oldRange.from).deletedAfter&&a.mapping.mapResult(t.oldRange.to).deletedBefore&&a.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,r)=>{let i=r+n.nodeSize-2,o=t.oldRange.from<=r&&i<=t.oldRange.to;this.editor.emit("delete",{type:"node",node:n,from:r,to:i,newFrom:a.mapping.map(r),newTo:a.mapping.map(i),deletedRange:t.oldRange,newRange:t.newRange,partial:!o,editor:this.editor,transaction:e,combinedTransform:a})})});let l=a.mapping;a.steps.forEach((t,n)=>{var i,o;if(t instanceof r.Ys){let r=l.slice(n).map(t.from,-1),s=l.slice(n).map(t.to),d=l.invert().map(r,-1),c=l.invert().map(s),h=null==(i=a.doc.nodeAt(r-1))?void 0:i.marks.some(e=>e.eq(t.mark)),u=null==(o=a.doc.nodeAt(s))?void 0:o.marks.some(e=>e.eq(t.mark));this.editor.emit("delete",{type:"mark",mark:t.mark,from:t.from,to:t.to,deletedRange:{from:d,to:c},newRange:{from:r,to:s},partial:!!(u||h),editor:this.editor,transaction:e,combinedTransform:a})}})};null==(o=null==(i=null==(n=this.editor.options.coreExtensionOptions)?void 0:n.delete)?void 0:i.async)||o?setTimeout(s,0):s()}}),t$=tS.create({name:"drop",addProseMirrorPlugins(){return[new o.k_({key:new o.hs("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),tz=tS.create({name:"editable",addProseMirrorPlugins(){return[new o.k_({key:new o.hs("editable"),props:{editable:()=>this.editor.options.editable}})]}}),tA=new o.hs("focusEvents"),tN=tS.create({name:"focusEvents",addProseMirrorPlugins(){let{editor:e}=this;return[new o.k_({key:tA,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),tP=tS.create({name:"keymap",addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:i,$anchor:s}=n,{pos:a,parent:l}=s,d=s.parent.isTextblock&&a>0?t.doc.resolve(a-1):s,c=d.parent.type.spec.isolating,h=s.pos-s.parentOffset,u=c&&1===d.parent.childCount?h===s.pos:o.LN.atStart(r).from===a;return!!i&&!!l.type.isTextblock&&!l.textContent.length&&!!u&&(!u||"paragraph"!==s.parent.type.name)&&e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return H()||en()?i:r},addProseMirrorPlugins(){return[new o.k_({key:new o.hs("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta("composition")))return;let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),i=e.some(e=>e.getMeta("preventClearDocument"));if(!r||i)return;let{empty:s,from:a,to:l}=t.selection,d=o.LN.atStart(t.doc).from,c=o.LN.atEnd(t.doc).to;if(s||a!==d||l!==c||!eQ(n.doc))return;let h=n.tr,m=u({state:n,transaction:h}),{commands:f}=new p({editor:this.editor,state:m});if(f.clearNodes(),h.steps.length)return h}})]}}),tR=tS.create({name:"paste",addProseMirrorPlugins(){return[new o.k_({key:new o.hs("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),tD=tS.create({name:"tabindex",addProseMirrorPlugins(){return[new o.k_({key:new o.hs("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),tj=tS.create({name:"textDirection",addOptions:()=>({direction:void 0}),addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=ez(this.extensions);return[{types:e.filter(e=>"text"!==e.name).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{let t=e.getAttribute("dir");return t&&("ltr"===t||"rtl"===t||"auto"===t)?t:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new o.k_({key:new o.hs("textDirection"),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}}),tI=class e{constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return null!=(e=this.actualDepth)?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(0===this.content.size)return void console.error(`You can\u2019t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+ +!this.node.isText}get parent(){if(0===this.depth)return null;let t=this.resolvedPos.start(this.resolvedPos.depth-1);return new e(this.resolvedPos.doc.resolve(t),this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new e(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new e(t,this.editor)}get children(){let t=[];return this.node.content.forEach((n,r)=>{let i=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,s=this.pos+r+ +!o;if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;let a=this.resolvedPos.doc.resolve(s);if(!i&&a.depth<=this.depth)return;let l=new e(a,this.editor,i,i?n:null);i&&(l.actualDepth=this.depth+1),t.push(new e(a,this.editor,i,i?n:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){let e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e)if(Object.keys(t).length>0){let e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];if(e[i]!==t[i])break}}else n=r;r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||0===this.children.length)return r;let i=Object.keys(t);return this.children.forEach(o=>{(!n||!(r.length>0))&&(o.node.type.name===e&&i.every(e=>t[e]===o.node.attrs[e])&&r.push(o),n&&r.length>0||(r=r.concat(o.querySelectorAll(e,t,n))))}),r}setAttribute(e){let{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}},tL=`.ProseMirror {
|
|
2
|
-
position: relative;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.ProseMirror {
|
|
6
|
-
word-wrap: break-word;
|
|
7
|
-
white-space: pre-wrap;
|
|
8
|
-
white-space: break-spaces;
|
|
9
|
-
-webkit-font-variant-ligatures: none;
|
|
10
|
-
font-variant-ligatures: none;
|
|
11
|
-
font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.ProseMirror [contenteditable="false"] {
|
|
15
|
-
white-space: normal;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.ProseMirror [contenteditable="false"] [contenteditable="true"] {
|
|
19
|
-
white-space: pre-wrap;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ProseMirror pre {
|
|
23
|
-
white-space: pre-wrap;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
img.ProseMirror-separator {
|
|
27
|
-
display: inline !important;
|
|
28
|
-
border: none !important;
|
|
29
|
-
margin: 0 !important;
|
|
30
|
-
width: 0 !important;
|
|
31
|
-
height: 0 !important;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ProseMirror-gapcursor {
|
|
35
|
-
display: none;
|
|
36
|
-
pointer-events: none;
|
|
37
|
-
position: absolute;
|
|
38
|
-
margin: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.ProseMirror-gapcursor:after {
|
|
42
|
-
content: "";
|
|
43
|
-
display: block;
|
|
44
|
-
position: absolute;
|
|
45
|
-
top: -2px;
|
|
46
|
-
width: 20px;
|
|
47
|
-
border-top: 1px solid black;
|
|
48
|
-
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@keyframes ProseMirror-cursor-blink {
|
|
52
|
-
to {
|
|
53
|
-
visibility: hidden;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.ProseMirror-hideselection *::selection {
|
|
58
|
-
background: transparent;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.ProseMirror-hideselection *::-moz-selection {
|
|
62
|
-
background: transparent;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.ProseMirror-hideselection * {
|
|
66
|
-
caret-color: transparent;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.ProseMirror-focused .ProseMirror-gapcursor {
|
|
70
|
-
display: block;
|
|
71
|
-
}`,tB=class extends tg{constructor(e={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:"undefined"!=typeof document?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:e1,createMappablePosition:e2},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n)),this.on("paste",({event:e,slice:t})=>this.options.onPaste(e,t)),this.on("delete",this.options.onDelete);let t=this.createDoc(),n=L(t,this.options.autofocus);this.editorState=o.$t.create({doc:t,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(e){if("undefined"==typeof document)throw Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(!1!==this.options.autofocus&&null!==this.options.autofocus&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){let e=this.editorView.dom;(null==e?void 0:e.editor)&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{"function"==typeof this.css.remove?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&"undefined"!=typeof document&&(this.css=function(e,t,n){let r=document.querySelector("style[data-tiptap-style]");if(null!==r)return r;let i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}(tL,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.editorView&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if("state"===t)return this.editorState;if(t in e)return Reflect.get(e,t);throw Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){let n=eO(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;let t=this.state.plugins,n=t;if([].concat(e).forEach(e=>{let t="string"==typeof e?`${e}$`:e.key;n=n.filter(e=>!e.key.startsWith(t))}),t.length===n.length)return;let r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;let n=[...this.options.enableCoreExtensions?[tz,tC.configure({blockSeparator:null==(t=null==(e=this.options.coreExtensionOptions)?void 0:e.clipboardTextSerializer)?void 0:t.blockSeparator}),tT,tN,tP,tD,t$,tR,tO,tj.configure({direction:this.options.textDirection})].filter(e=>"object"!=typeof this.options.enableCoreExtensions||!1!==this.options.enableCoreExtensions[e.name]):[],...this.options.extensions].filter(e=>["extension","node","mark"].includes(null==e?void 0:e.type));this.extensionManager=new tE(n,this)}createCommandManager(){this.commandManager=new p({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=eb(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(t.message))throw t;this.emit("contentError",{editor:this,error:t,disableCollaboration:()=>{"collaboration"in this.storage&&"object"==typeof this.storage.collaboration&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>"collaboration"!==e.name),this.createExtensionManager()}}),e=eb(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}createView(e){var t;this.editorView=new l.Lz(e,{...this.options.editorProps,attributes:{role:"textbox",...null==(t=this.options.editorProps)?void 0:t.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});let n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.prependClass(),this.injectCSS(),this.view.dom.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;let t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(e=>{var t;return null==(t=this.capturedTransaction)?void 0:t.step(e)});return}let{state:t,transactions:n}=this.state.applyTransaction(e),r=!this.state.selection.eq(t.selection),i=n.includes(e),o=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),!i)return;this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:n.slice(1)}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});let s=n.findLast(e=>e.getMeta("focus")||e.getMeta("blur")),a=null==s?void 0:s.getMeta("focus"),l=null==s?void 0:s.getMeta("blur");a&&this.emit("focus",{editor:this,event:a.event,transaction:s}),l&&this.emit("blur",{editor:this,event:l.event,transaction:s}),e.getMeta("preventUpdate")||!n.some(e=>e.docChanged)||o.doc.eq(t.doc)||this.emit("update",{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return eU(this.state,e)}isActive(e,t){let n="string"==typeof e?e:null,r="string"==typeof e?t:e;return function(e,t,n={}){if(!t)return ei(e,null,n)||eq(e,null,n);let r=ed(t,e.schema);return"node"===r?ei(e,t,n):"mark"===r&&eq(e,t,n)}(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return eT(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t="\n\n",textSerializers:n={}}=e||{};return function(e,t){let n={from:0,to:e.content.size};return eB(e,n,t)}(this.state.doc,{blockSeparator:t,textSerializers:{...eH(this.schema),...n}})}get isEmpty(){return eQ(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var e,t;return null==(t=null==(e=this.editorView)?void 0:e.isDestroyed)||t}$node(e,t){var n;return(null==(n=this.$doc)?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return(null==(n=this.$doc)?void 0:n.querySelectorAll(e,t))||null}$pos(e){return new tI(this.state.doc.resolve(e),this)}get $doc(){return this.$pos(0)}};function tH(e){return new tv({find:e.find,handler:({state:t,range:n,match:r})=>{let i=e$(e.getAttributes,void 0,r);if(!1===i||null===i)return null;let{tr:o}=t,s=r[r.length-1],a=r[0];if(s){let r=a.search(/\S/),l=n.from+a.indexOf(s),d=l+s.length;if(eV(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>l).length)return null;d<n.to&&o.delete(d,n.to),l>n.from&&o.delete(n.from+r,l);let c=n.from+r+s.length;o.addMark(n.from+r,c,e.type.create(i||{})),o.removeStoredMark(e.type)}},undoable:e.undoable})}function tU(e){return new tv({find:e.find,handler:({state:t,range:n,match:r})=>{let i=e$(e.getAttributes,void 0,r)||{},{tr:o}=t,s=n.from,a=n.to,l=e.type.create(i);if(r[1]){let e=s+r[0].lastIndexOf(r[1]);e>a?e=a:a=e+r[1].length;let t=r[0][r[0].length-1];o.insertText(t,s+r[0].length-1),o.replaceWith(e,a,l)}else if(r[0]){let t=e.type.isInline?s:s-1;o.insert(t,e.type.create(i)).delete(o.mapping.map(s),o.mapping.map(a))}o.scrollIntoView()},undoable:e.undoable})}function t_(e){return new tv({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),o=e$(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,o)},undoable:e.undoable})}function tV(e){return new tv({find:e.find,handler:({state:t,range:n,match:i,chain:o})=>{let s=e$(e.getAttributes,void 0,i)||{},a=t.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),d=l&&(0,r.oM)(l,e.type,s);if(!d)return null;if(a.wrap(l,d),e.keepMarks&&e.editor){let{selection:n,storedMarks:r}=t,{splittableMarks:i}=e.editor.extensionManager,o=r||n.$to.parentOffset&&n.$from.marks();if(o){let e=o.filter(e=>i.includes(e.type.name));a.ensureMarks(e)}}if(e.keepAttributes){let t="bulletList"===e.type.name||"orderedList"===e.type.name?"listItem":"taskList";o().updateAttributes(t,s).run()}let c=a.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&(0,r.n9)(a.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(i,c))&&a.join(n.from-1)},undoable:e.undoable})}var tW=class{constructor(e){var t,n,r,i,o,s;this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=e=>{if(!this.isResizing||!this.activeHandle)return;let t=e.clientX-this.startX,n=e.clientY-this.startY;this.handleResize(t,n)},this.handleTouchMove=e=>{if(!this.isResizing||!this.activeHandle)return;let t=e.touches[0];if(!t)return;let n=t.clientX-this.startX,r=t.clientY-this.startY;this.handleResize(n,r)},this.handleMouseUp=()=>{if(!this.isResizing)return;let e=this.element.offsetWidth,t=this.element.offsetHeight;this.onCommit(e,t),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)},this.handleKeyDown=e=>{"Shift"===e.key&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=e=>{"Shift"===e.key&&(this.isShiftKeyPressed=!1)},this.node=e.node,this.editor=e.editor,this.element=e.element,this.contentElement=e.contentElement,this.getPos=e.getPos,this.onResize=e.onResize,this.onCommit=e.onCommit,this.onUpdate=e.onUpdate,(null==(t=e.options)?void 0:t.min)&&(this.minSize={...this.minSize,...e.options.min}),(null==(n=e.options)?void 0:n.max)&&(this.maxSize=e.options.max),(null==(r=null==e?void 0:e.options)?void 0:r.directions)&&(this.directions=e.options.directions),(null==(i=e.options)?void 0:i.preserveAspectRatio)&&(this.preserveAspectRatio=e.options.preserveAspectRatio),(null==(o=e.options)?void 0:o.className)&&(this.classNames={container:e.options.className.container||"",wrapper:e.options.className.wrapper||"",handle:e.options.className.handle||"",resizing:e.options.className.resizing||""}),(null==(s=e.options)?void 0:s.createCustomHandle)&&(this.createCustomHandle=e.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){return this.contentElement}handleEditorUpdate(){let e=this.editor.isEditable;e!==this.lastEditableState&&(this.lastEditableState=e,e?e&&0===this.handleMap.size&&this.attachHandles():this.removeHandles())}update(e,t,n){return e.type===this.node.type&&(this.node=e,!this.onUpdate||this.onUpdate(e,t,n))}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){let e=document.createElement("div");return e.dataset.resizeContainer="",e.dataset.node=this.node.type.name,e.style.display="flex",this.classNames.container&&(e.className=this.classNames.container),e.appendChild(this.wrapper),e}createWrapper(){let e=document.createElement("div");return e.style.position="relative",e.style.display="block",e.dataset.resizeWrapper="",this.classNames.wrapper&&(e.className=this.classNames.wrapper),e.appendChild(this.element),e}createHandle(e){let t=document.createElement("div");return t.dataset.resizeHandle=e,t.style.position="absolute",this.classNames.handle&&(t.className=this.classNames.handle),t}positionHandle(e,t){let n=t.includes("top"),r=t.includes("bottom"),i=t.includes("left"),o=t.includes("right");n&&(e.style.top="0"),r&&(e.style.bottom="0"),i&&(e.style.left="0"),o&&(e.style.right="0"),("top"===t||"bottom"===t)&&(e.style.left="0",e.style.right="0"),("left"===t||"right"===t)&&(e.style.top="0",e.style.bottom="0")}attachHandles(){this.directions.forEach(e=>{let t;(t=this.createCustomHandle?this.createCustomHandle(e):this.createHandle(e))instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${e}") did not return an HTMLElement. Falling back to default handle.`),t=this.createHandle(e)),this.createCustomHandle||this.positionHandle(t,e),t.addEventListener("mousedown",t=>this.handleResizeStart(t,e)),t.addEventListener("touchstart",t=>this.handleResizeStart(t,e)),this.handleMap.set(e,t),this.wrapper.appendChild(t)})}removeHandles(){this.handleMap.forEach(e=>e.remove()),this.handleMap.clear()}applyInitialSize(){let e=this.node.attrs.width,t=this.node.attrs.height;e?(this.element.style.width=`${e}px`,this.initialWidth=e):this.initialWidth=this.element.offsetWidth,t?(this.element.style.height=`${t}px`,this.initialHeight=t):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(e,t){e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.activeHandle=t,"touches"in e?(this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY):(this.startX=e.clientX,this.startY=e.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}handleResize(e,t){if(!this.activeHandle)return;let n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:r,height:i}=this.calculateNewDimensions(this.activeHandle,e,t),o=this.applyConstraints(r,i,n);this.element.style.width=`${o.width}px`,this.element.style.height=`${o.height}px`,this.onResize&&this.onResize(o.width,o.height)}calculateNewDimensions(e,t,n){let r=this.startWidth,i=this.startHeight,o=e.includes("right"),s=e.includes("left"),a=e.includes("bottom"),l=e.includes("top");return(o?r=this.startWidth+t:s&&(r=this.startWidth-t),a?i=this.startHeight+n:l&&(i=this.startHeight-n),("right"===e||"left"===e)&&(r=this.startWidth+(o?t:-t)),("top"===e||"bottom"===e)&&(i=this.startHeight+(a?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed)?this.applyAspectRatio(r,i,e):{width:r,height:i}}applyConstraints(e,t,n){var r,i,o,s;if(!n){let n=Math.max(this.minSize.width,e),o=Math.max(this.minSize.height,t);return(null==(r=this.maxSize)?void 0:r.width)&&(n=Math.min(this.maxSize.width,n)),(null==(i=this.maxSize)?void 0:i.height)&&(o=Math.min(this.maxSize.height,o)),{width:n,height:o}}let a=e,l=t;return a<this.minSize.width&&(l=(a=this.minSize.width)/this.aspectRatio),l<this.minSize.height&&(a=(l=this.minSize.height)*this.aspectRatio),(null==(o=this.maxSize)?void 0:o.width)&&a>this.maxSize.width&&(l=(a=this.maxSize.width)/this.aspectRatio),(null==(s=this.maxSize)?void 0:s.height)&&l>this.maxSize.height&&(a=(l=this.maxSize.height)*this.aspectRatio),{width:a,height:l}}applyAspectRatio(e,t,n){return"left"===n||"right"===n?{width:e,height:e/this.aspectRatio}:"top"===n||"bottom"===n?{width:t*this.aspectRatio,height:t}:{width:e,height:e/this.aspectRatio}}};function tF(e,t){let{selection:n}=e,{$from:r}=n;if(n instanceof o.nh){let e=r.index();return r.parent.canReplaceWith(e,e+1,t)}let i=r.depth;for(;i>=0;){let e=r.index(i);if(r.node(i).contentMatchAt(e).matchType(t))return!0;i-=1}return!1}function tK(e){if(!(null==e?void 0:e.trim()))return{};let t={},n=[],r=e.replace(/["']([^"']*)["']/g,e=>(n.push(e),`__QUOTED_${n.length-1}__`)),i=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);i&&(t.class=i.map(e=>e.trim().slice(1)).join(" "));let o=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);o&&(t.id=o[1]),Array.from(r.matchAll(/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g)).forEach(([,e,r])=>{var i;let o=n[parseInt((null==(i=r.match(/__QUOTED_(\d+)__/))?void 0:i[1])||"0",10)];o&&(t[e]=o.slice(1,-1))});let s=r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return s&&s.split(/\s+/).filter(Boolean).forEach(e=>{e.match(/^[a-zA-Z][\w-]*$/)&&(t[e]=!0)}),t}function tq(e){if(!e||0===Object.keys(e).length)return"";let t=[];return e.class&&String(e.class).split(/\s+/).filter(Boolean).forEach(e=>t.push(`.${e}`)),e.id&&t.push(`#${e.id}`),Object.entries(e).forEach(([e,n])=>{"class"!==e&&"id"!==e&&(!0===n?t.push(e):!1!==n&&null!=n&&t.push(`${e}="${String(n)}"`))}),t.join(" ")}function tY(e){let{nodeName:t,name:n,parseAttributes:r=tK,serializeAttributes:i=tq,defaultAttributes:o={},requiredAttributes:s=[],allowedAttributes:a}=e,l=n||t;return{parseMarkdown:(e,n)=>{let r={...o,...e.attributes};return n.createNode(t,r,[])},markdownTokenizer:{name:t,level:"block",start(e){var t;let n=RegExp(`^:::${l}(?:\\s|$)`,"m"),r=null==(t=e.match(n))?void 0:t.index;return void 0!==r?r:-1},tokenize(e,n,i){let o=RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),a=e.match(o);if(!a)return;let d=r(a[1]||"");if(!s.find(e=>!(e in d)))return{type:t,raw:a[0],attributes:d}}},renderMarkdown:e=>{let t=i((e=>{if(!a)return e;let t={};return a.forEach(n=>{n in e&&(t[n]=e[n])}),t})(e.attrs||{})),n=t?` {${t}}`:"";return`:::${l}${n} :::`}}}function tJ(e){let{nodeName:t,name:n,getContent:r,parseAttributes:i=tK,serializeAttributes:o=tq,defaultAttributes:s={},content:a="block",allowedAttributes:l}=e,d=n||t;return{parseMarkdown:(e,n)=>{let i;if(r){let t=r(e);i="string"==typeof t?[{type:"text",text:t}]:t}else i="block"===a?n.parseChildren(e.tokens||[]):n.parseInline(e.tokens||[]);let o={...s,...e.attributes};return n.createNode(t,o,i)},markdownTokenizer:{name:t,level:"block",start(e){var t;let n=RegExp(`^:::${d}`,"m"),r=null==(t=e.match(n))?void 0:t.index;return void 0!==r?r:-1},tokenize(e,n,r){var o;let s=RegExp(`^:::${d}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),l=e.match(s);if(!l)return;let[c,h=""]=l,u=i(h),p=1,m=c.length,f="",g=/^:::([\w-]*)(\s.*)?/gm,v=e.slice(m);for(g.lastIndex=0;;){let n=g.exec(v);if(null===n)break;let i=n.index,s=n[1];if(null==(o=n[2])||!o.endsWith(":::")){if(s)p+=1;else if(0==(p-=1)){let o=v.slice(0,i);f=o.trim();let s=e.slice(0,m+i+n[0].length),l=[];if(f)if("block"===a)for((l=r.blockTokens(o)).forEach(e=>{e.text&&(!e.tokens||0===e.tokens.length)&&(e.tokens=r.inlineTokens(e.text))});l.length>0;){let e=l[l.length-1];if("paragraph"!==e.type||e.text&&""!==e.text.trim())break;l.pop()}else l=r.inlineTokens(f);return{type:t,raw:s,attributes:u,content:f,tokens:l}}}}}},renderMarkdown:(e,t)=>{let n=o((e=>{if(!l)return e;let t={};return l.forEach(n=>{n in e&&(t[n]=e[n])}),t})(e.attrs||{})),r=n?` {${n}}`:"",i=t.renderChildren(e.content||[],"\n\n");return`:::${d}${r}
|
|
72
|
-
|
|
73
|
-
${i}
|
|
74
|
-
|
|
75
|
-
:::`}}}function tX(e){if(!e.trim())return{};let t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=n.exec(e);for(;null!==r;){let[,i,o,s]=r;t[i]=o||s,r=n.exec(e)}return t}function tZ(e){return Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${e}="${t}"`).join(" ")}function tQ(e){let{nodeName:t,name:n,getContent:r,parseAttributes:i=tX,serializeAttributes:o=tZ,defaultAttributes:s={},selfClosing:a=!1,allowedAttributes:l}=e,d=n||t,c=d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(e,n)=>{let i={...s,...e.attributes};if(a)return n.createNode(t,i);let o=r?r(e):e.content||"";return o?n.createNode(t,i,[n.createTextNode(o)]):n.createNode(t,i,[])},markdownTokenizer:{name:t,level:"inline",start(e){let t=a?RegExp(`\\[${c}\\s*[^\\]]*\\]`):RegExp(`\\[${c}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${c}\\]`),n=e.match(t),r=null==n?void 0:n.index;return void 0!==r?r:-1},tokenize(e,n,r){let o=a?RegExp(`^\\[${c}\\s*([^\\]]*)\\]`):RegExp(`^\\[${c}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${c}\\]`),s=e.match(o);if(!s)return;let l="",d="";if(a){let[,e]=s;d=e}else{let[,e,t]=s;d=e,l=t||""}let h=i(d.trim());return{type:t,raw:s[0],content:l.trim(),attributes:h}}},renderMarkdown:e=>{let t="";r?t=r(e):e.content&&e.content.length>0&&(t=e.content.filter(e=>"text"===e.type).map(e=>e.text).join(""));let n=o((e=>{if(!l)return e;let t={};return l.forEach(n=>{let r="string"==typeof n?n:n.name,i="string"==typeof n?void 0:n.skipIfDefault;if(r in e){let n=e[r];if(void 0!==i&&n===i)return;t[r]=n}}),t})(e.attrs||{})),i=n?` ${n}`:"";return a?`[${d}${i}]`:`[${d}${i}]${t}[/${d}]`}}}function tG(e,t,n){var r,i,o,s;let a=e.split("\n"),l=[],d="",c=0,h=t.baseIndentSize||2;for(;c<a.length;){let e,u=a[c],p=u.match(t.itemPattern);if(!p)if(l.length>0)break;else{if(""!==u.trim())return;c+=1,d=`${d}${u}
|
|
76
|
-
`;continue}let m=t.extractItemData(p),{indentLevel:f,mainContent:g}=m;d=`${d}${u}
|
|
77
|
-
`;let v=[g];for(c+=1;c<a.length;){let e=a[c];if(""===e.trim()){let t=a.slice(c+1).findIndex(e=>""!==e.trim());if(-1===t)break;if(((null==(i=null==(r=a[c+1+t].match(/^(\s*)/))?void 0:r[1])?void 0:i.length)||0)>f){v.push(e),d=`${d}${e}
|
|
78
|
-
`,c+=1;continue}break}if(((null==(s=null==(o=e.match(/^(\s*)/))?void 0:o[1])?void 0:s.length)||0)>f)v.push(e),d=`${d}${e}
|
|
79
|
-
`,c+=1;else break}let y=v.slice(1);if(y.length>0){let r=y.map(e=>e.slice(f+h)).join("\n");r.trim()&&(e=t.customNestedParser?t.customNestedParser(r):n.blockTokens(r))}let b=t.createToken(m,e);l.push(b)}if(0!==l.length)return{items:l,raw:d}}function t0(e,t,n,r){if(!e||!Array.isArray(e.content))return"";let i="function"==typeof n?n(r):n,[o,...s]=e.content,a=t.renderChildren([o]),l=[`${i}${a}`];return s&&s.length>0&&s.forEach(e=>{let n=t.renderChildren([e]);if(n){let e=n.split("\n").map(e=>e?t.indent(e):"").join("\n");l.push(e)}}),l.join("\n")}function t1(e,t,n={}){let{state:r}=t,{doc:i,tr:o}=r;i.descendants((t,r)=>{let i=o.mapping.map(r),s=o.mapping.map(r)+t.nodeSize,a=null;if(t.marks.forEach(t=>{if(t!==e)return!1;a=t}),!a)return;let l=!1;if(Object.keys(n).forEach(e=>{n[e]!==a.attrs[e]&&(l=!0)}),l){let t=e.type.create({...e.attrs,...n});o.removeMark(i,s,e.type),o.addMark(i,s,t)}}),o.docChanged&&t.view.dispatch(o)}h({},{createAtomBlockMarkdownSpec:()=>tY,createBlockMarkdownSpec:()=>tJ,createInlineMarkdownSpec:()=>tQ,parseAttributes:()=>tK,parseIndentedBlocks:()=>tG,renderNestedMarkdownContent:()=>t0,serializeAttributes:()=>tq});var t2=class{constructor(e,t,n){this.component=e,this.editor=t.editor,this.options={...n},this.mark=t.mark,this.HTMLAttributes=t.HTMLAttributes}get dom(){return this.editor.view.dom}get contentDOM(){return null}updateAttributes(e,t){t1(t||this.mark,this.editor,e)}ignoreMutation(e){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:e}):!("selection"===e.type||this.dom.contains(e.target)&&"childList"===e.type&&(H()||B())&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(e=>e.isContentEditable))&&(this.contentDOM===e.target&&"attributes"===e.type||!this.contentDOM.contains(e.target)))}},t3=class e extends tk{constructor(){super(...arguments),this.type="node"}static create(t={}){return new e("function"==typeof t?t():t)}configure(e){return super.configure(e)}extend(e){let t="function"==typeof e?e():e;return super.extend(t)}},t9=class{constructor(e,t,n){this.isDragging=!1,this.component=e,this.editor=t.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=t.extension,this.node=t.node,this.decorations=t.decorations,this.innerDecorations=t.innerDecorations,this.view=t.view,this.HTMLAttributes=t.HTMLAttributes,this.getPos=t.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var t,n,r,i,s,a,l;let{view:d}=this.editor,c=e.target,h=3===c.nodeType?null==(t=c.parentElement)?void 0:t.closest("[data-drag-handle]"):c.closest("[data-drag-handle]");if(!this.dom||(null==(n=this.contentDOM)?void 0:n.contains(c))||!h)return;let u=0,p=0;if(this.dom!==h){let t=this.dom.getBoundingClientRect(),n=h.getBoundingClientRect(),o=null!=(i=e.offsetX)?i:null==(r=e.nativeEvent)?void 0:r.offsetX,l=null!=(a=e.offsetY)?a:null==(s=e.nativeEvent)?void 0:s.offsetY;u=n.x-t.x+o,p=n.y-t.y+l}let m=this.dom.cloneNode(!0);try{let e=this.dom.getBoundingClientRect();m.style.width=`${Math.round(e.width)}px`,m.style.height=`${Math.round(e.height)}px`,m.style.boxSizing="border-box",m.style.pointerEvents="none"}catch{}let f=null;try{(f=document.createElement("div")).style.position="absolute",f.style.top="-9999px",f.style.left="-9999px",f.style.pointerEvents="none",f.appendChild(m),document.body.appendChild(f),null==(l=e.dataTransfer)||l.setDragImage(m,u,p)}finally{f&&setTimeout(()=>{try{null==f||f.remove()}catch{}},0)}let g=this.getPos();if("number"!=typeof g)return;let v=o.nh.create(d.state.doc,g),y=d.state.tr.setSelection(v);d.dispatch(y)}stopEvent(e){var t;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:e});let n=e.target;if(!(this.dom.contains(n)&&!(null==(t=this.contentDOM)?void 0:t.contains(n))))return!1;let r=e.type.startsWith("drag"),i="drop"===e.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!i&&!r)return!0;let{isEditable:s}=this.editor,{isDragging:a}=this,l=!!this.node.type.spec.draggable,d=o.nh.isSelectable(this.node),c="copy"===e.type,h="paste"===e.type,u="cut"===e.type,p="mousedown"===e.type;if(!l&&d&&r&&e.target===this.dom&&e.preventDefault(),l&&r&&!a&&e.target===this.dom)return e.preventDefault(),!1;if(l&&s&&!a&&p){let e=n.closest("[data-drag-handle]");e&&(this.dom===e||this.dom.contains(e))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!a&&!i&&!c&&!h&&!u&&(!p||!d)}ignoreMutation(e){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:e}):!!this.node.isLeaf||!!this.node.isAtom||!("selection"===e.type||this.dom.contains(e.target)&&"childList"===e.type&&(H()||B())&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(e=>e.isContentEditable))&&(this.contentDOM===e.target&&"attributes"===e.type||!this.contentDOM.contains(e.target)))}updateAttributes(e){this.editor.commands.command(({tr:t})=>{let n=this.getPos();return"number"==typeof n&&(t.setNodeMarkup(n,void 0,{...this.node.attrs,...e}),!0)})}deleteNode(){let e=this.getPos();if("number"!=typeof e)return;let t=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:t})}};function t8(e){return new tx({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let o=e$(e.getAttributes,void 0,r,i);if(!1===o||null===o)return null;let{tr:s}=t,a=r[r.length-1],l=r[0],d=n.to;if(a){let r=l.search(/\S/),i=n.from+l.indexOf(a),c=i+a.length;if(eV(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>i).length)return null;c<n.to&&s.delete(c,n.to),i>n.from&&s.delete(n.from+r,i),d=n.from+r+a.length,s.addMark(n.from+r,d,e.type.create(o||{})),s.removeStoredMark(e.type)}}})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[543],{37690:(e,t,n)=>{n.d(t,{It:()=>N,Mk:()=>k,SV:()=>f,T3:()=>I,XF:()=>W,bv:()=>V,iQ:()=>K,s9:()=>F,we:()=>X});var r,o=n(29139),u=n(45676),l=n(27123),i=n(5603),c=n(24930),s=n(44048);function f(e){let t=o.useRef(void 0),n=o.useCallback(t=>{let n=e.map(e=>{if(null!=e){if("function"==typeof e){let n=e(t);return"function"==typeof n?n:()=>{e(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return o.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}let a="active",d="selected",v={...r||(r=n.t(o,2))},m=!1,p=0,E=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+p++,g=v.useId||function(){let[e,t]=o.useState(()=>m?E():void 0);return(0,u.OS)(()=>{null==e&&t(E())},[]),o.useEffect(()=>{m=!0},[]),e},R=o.createContext(null),y=o.createContext(null),b=()=>{var e;return(null==(e=o.useContext(R))?void 0:e.id)||null},h=()=>o.useContext(y);function w(e){return"data-floating-ui-"+e}function x(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let C=w("safe-polygon");function L(e,t,n){if(n&&!(0,u.Go)(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){let n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function M(e){return"function"==typeof e?e():e}function k(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:l,events:c,elements:s}=e,{enabled:f=!0,delay:a=0,handleClose:d=null,mouseOnly:v=!1,restMs:m=0,move:p=!0}=t,E=h(),g=b(),R=(0,u.SE)(d),y=(0,u.SE)(a),w=(0,u.SE)(n),k=(0,u.SE)(m),S=o.useRef(),P=o.useRef(-1),I=o.useRef(),T=o.useRef(-1),O=o.useRef(!0),q=o.useRef(!1),_=o.useRef(()=>{}),W=o.useRef(!1),Y=(0,u.Jt)(()=>{var e;let t=null==(e=l.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});o.useEffect(()=>{if(f)return c.on("openchange",e),()=>{c.off("openchange",e)};function e(e){let{open:t}=e;t||(x(P),x(T),O.current=!0,W.current=!1)}},[f,c]),o.useEffect(()=>{if(!f||!R.current||!n)return;function e(e){Y()&&r(!1,e,"hover")}let t=(0,u.YE)(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s.floating,n,r,f,R,Y]);let D=o.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let o=L(y.current,"close",S.current);o&&!I.current?(x(P),P.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(x(P),r(!1,e,n))},[y,r]),J=(0,u.Jt)(()=>{_.current(),I.current=void 0}),A=(0,u.Jt)(()=>{if(q.current){let e=(0,u.YE)(s.floating).body;e.style.pointerEvents="",e.removeAttribute(C),q.current=!1}}),F=(0,u.Jt)(()=>!!l.current.openEvent&&["click","mousedown"].includes(l.current.openEvent.type));o.useEffect(()=>{if(f&&(0,i.vq)(s.domReference)){let r=s.domReference,u=s.floating;return n&&r.addEventListener("mouseleave",o),p&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),u&&(u.addEventListener("mouseleave",o),u.addEventListener("mouseenter",c),u.addEventListener("mouseleave",a)),()=>{n&&r.removeEventListener("mouseleave",o),p&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),u&&(u.removeEventListener("mouseleave",o),u.removeEventListener("mouseenter",c),u.removeEventListener("mouseleave",a))}}function e(e){if(x(P),O.current=!1,v&&!(0,u.Go)(S.current)||M(k.current)>0&&!L(y.current,"open"))return;let t=L(y.current,"open",S.current);t?P.current=window.setTimeout(()=>{w.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(F())return void A();_.current();let t=(0,u.YE)(s.floating);if(x(T),W.current=!1,R.current&&l.current.floatingContext){n||x(P),I.current=R.current({...l.current.floatingContext,tree:E,x:e.clientX,y:e.clientY,onClose(){A(),J(),F()||D(e,!0,"safe-polygon")}});let r=I.current;t.addEventListener("mousemove",r),_.current=()=>{t.removeEventListener("mousemove",r)};return}"touch"===S.current&&(0,u.gR)(s.floating,e.relatedTarget)||D(e)}function o(e){!F()&&l.current.floatingContext&&(null==R.current||R.current({...l.current.floatingContext,tree:E,x:e.clientX,y:e.clientY,onClose(){A(),J(),F()||D(e)}})(e))}function c(){x(P)}function a(e){F()||D(e,!1)}},[s,f,e,v,p,D,J,A,r,n,w,E,y,R,l,F,k]),(0,u.OS)(()=>{var e,t;if(f&&n&&null!=(e=R.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&Y()){q.current=!0;let e=s.floating;if((0,i.vq)(s.domReference)&&e){let n=(0,u.YE)(s.floating).body;n.setAttribute(C,"");let r=s.domReference,o=null==E||null==(t=E.nodesRef.current.find(e=>e.id===g))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[f,n,g,s,E,R,Y]),(0,u.OS)(()=>{n||(S.current=void 0,W.current=!1,J(),A())},[n,J,A]),o.useEffect(()=>()=>{J(),x(P),x(T),A()},[f,s.domReference,J,A]);let X=o.useMemo(()=>{function e(e){S.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function o(){O.current||w.current||r(!0,t,"hover")}(!v||(0,u.Go)(S.current))&&!n&&0!==M(k.current)&&(W.current&&e.movementX**2+e.movementY**2<2||(x(T),"touch"===S.current?o():(W.current=!0,T.current=window.setTimeout(o,M(k.current)))))}}},[v,r,n,w,k]);return o.useMemo(()=>f?{reference:X}:{},[f,X])}let S=()=>{},P=o.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:S,setState:S,isInstantPhase:!1});function I(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,c]=o.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),s=o.useRef(null),f=o.useCallback(e=>{c({currentId:e})},[]);return(0,u.OS)(()=>{i.currentId?null===s.current?s.current=i.currentId:i.isInstantPhase||c({isInstantPhase:!0}):(i.isInstantPhase&&c({isInstantPhase:!1}),s.current=null)},[i.currentId,i.isInstantPhase]),(0,l.jsx)(P.Provider,{value:o.useMemo(()=>({...i,setState:c,setCurrentId:f}),[i,f]),children:t})}let T={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},O=o.forwardRef(function(e,t){let[n,r]=o.useState();(0,u.OS)(()=>{(0,u.nr)()&&r("button")},[]);let i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[w("focus-guard")]:"",style:T};return(0,l.jsx)("span",{...e,...i})}),q=o.createContext(null),_=w("portal");function W(e){let{children:t,id:n,root:r,preserveTabOrder:s=!0}=e,f=function(e){void 0===e&&(e={});let{id:t,root:n}=e,r=g(),l=Y(),[c,s]=o.useState(null),f=o.useRef(null);return(0,u.OS)(()=>()=>{null==c||c.remove(),queueMicrotask(()=>{f.current=null})},[c]),(0,u.OS)(()=>{if(!r||f.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=r,n.setAttribute(_,""),e.appendChild(n),f.current=n,s(n)},[t,r]),(0,u.OS)(()=>{if(null===n||!r||f.current)return;let e=n||(null==l?void 0:l.portalNode);e&&!(0,i.Ll)(e)&&(e=e.current),e=e||document.body;let o=null;t&&((o=document.createElement("div")).id=t,e.appendChild(o));let u=document.createElement("div");u.id=r,u.setAttribute(_,""),(e=o||e).appendChild(u),f.current=u,s(u)},[t,n,r,l]),c}({id:n,root:r}),[a,d]=o.useState(null),v=o.useRef(null),m=o.useRef(null),p=o.useRef(null),E=o.useRef(null),R=null==a?void 0:a.modal,y=null==a?void 0:a.open,b=!!a&&!a.modal&&a.open&&s&&!!(r||f);return o.useEffect(()=>{if(f&&s&&!R)return f.addEventListener("focusin",e,!0),f.addEventListener("focusout",e,!0),()=>{f.removeEventListener("focusin",e,!0),f.removeEventListener("focusout",e,!0)};function e(e){f&&(0,u.Qp)(e)&&("focusin"===e.type?u.yV:u.N)(f)}},[f,s,R]),o.useEffect(()=>{f&&(y||(0,u.yV)(f))},[y,f]),(0,l.jsxs)(q.Provider,{value:o.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:v,afterOutsideRef:m,beforeInsideRef:p,afterInsideRef:E,portalNode:f,setFocusManagerState:d}),[s,f]),children:[b&&f&&(0,l.jsx)(O,{"data-type":"outside",ref:v,onFocus:e=>{if((0,u.Qp)(e,f)){var t;null==(t=p.current)||t.focus()}else{let e=a?a.domReference:null,t=(0,u.XJ)(e);null==t||t.focus()}}}),b&&f&&(0,l.jsx)("span",{"aria-owns":f.id,style:T}),f&&c.createPortal(t,f),b&&f&&(0,l.jsx)(O,{"data-type":"outside",ref:m,onFocus:e=>{if((0,u.Qp)(e,f)){var t;null==(t=E.current)||t.focus()}else{let t=a?a.domReference:null,n=(0,u.vF)(t);null==n||n.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}let Y=()=>o.useContext(q),D={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},J={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},A=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function F(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,elements:l,dataRef:c}=e,{enabled:s=!0,escapeKey:f=!0,outsidePress:a=!0,outsidePressEvent:d="pointerdown",referencePress:v=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:E,capture:g}=t,R=h(),y=(0,u.Jt)("function"==typeof a?a:()=>!1),b="function"==typeof a?y:a,x=o.useRef(!1),{escapeKey:C,outsidePress:L}=A(E),{escapeKey:M,outsidePress:k}=A(g),S=o.useRef(!1),P=(0,u.Jt)(e=>{var t;if(!n||!s||!f||"Escape"!==e.key||S.current)return;let o=null==(t=c.current.floatingContext)?void 0:t.nodeId,l=R?(0,u.CM)(R.nodesRef.current,o):[];if(!C&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,(0,u.O_)(e)?e.nativeEvent:e,"escape-key")}),I=(0,u.Jt)(e=>{var t;let n=()=>{var t;P(e),null==(t=(0,u.EW)(e))||t.removeEventListener("keydown",n)};null==(t=(0,u.EW)(e))||t.addEventListener("keydown",n)}),T=(0,u.Jt)(e=>{var t;let n=c.current.insideReactTree;c.current.insideReactTree=!1;let o=x.current;if(x.current=!1,"click"===d&&o||n||"function"==typeof b&&!b(e))return;let s=(0,u.EW)(e),f="["+w("inert")+"]",a=(0,u.YE)(l.floating).querySelectorAll(f),v=(0,i.vq)(s)?s:null;for(;v&&!(0,i.eu)(v);){let e=(0,i.$4)(v);if((0,i.eu)(e)||!(0,i.vq)(e))break;v=e}if(a.length&&(0,i.vq)(s)&&!(0,u.tZ)(s)&&!(0,u.gR)(s,l.floating)&&Array.from(a).every(e=>!(0,u.gR)(v,e)))return;if((0,i.sb)(s)&&_){let t=(0,i.eu)(s),n=(0,i.L9)(s),r=/auto|scroll/,o=t||r.test(n.overflowX),u=t||r.test(n.overflowY),l=o&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,c=u&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,f="rtl"===n.direction,a=c&&(f?e.offsetX<=s.offsetWidth-s.clientWidth:e.offsetX>s.clientWidth),d=l&&e.offsetY>s.clientHeight;if(a||d)return}let m=null==(t=c.current.floatingContext)?void 0:t.nodeId,p=R&&(0,u.CM)(R.nodesRef.current,m).some(t=>{var n;return(0,u.F2)(e,null==(n=t.context)?void 0:n.elements.floating)});if((0,u.F2)(e,l.floating)||(0,u.F2)(e,l.domReference)||p)return;let E=R?(0,u.CM)(R.nodesRef.current,m):[];if(E.length>0){let e=!0;if(E.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,"outside-press")}),O=(0,u.Jt)(e=>{var t;let n=()=>{var t;T(e),null==(t=(0,u.EW)(e))||t.removeEventListener(d,n)};null==(t=(0,u.EW)(e))||t.addEventListener(d,n)});o.useEffect(()=>{if(!n||!s)return;c.current.__escapeKeyBubbles=C,c.current.__outsidePressBubbles=L;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function o(){window.clearTimeout(e),S.current=!0}function a(){e=window.setTimeout(()=>{S.current=!1},5*!!(0,i.Tc)())}let v=(0,u.YE)(l.floating);f&&(v.addEventListener("keydown",M?I:P,M),v.addEventListener("compositionstart",o),v.addEventListener("compositionend",a)),b&&v.addEventListener(d,k?O:T,k);let m=[];return p&&((0,i.vq)(l.domReference)&&(m=(0,i.v9)(l.domReference)),(0,i.vq)(l.floating)&&(m=m.concat((0,i.v9)(l.floating))),!(0,i.vq)(l.reference)&&l.reference&&l.reference.contextElement&&(m=m.concat((0,i.v9)(l.reference.contextElement)))),(m=m.filter(e=>{var t;return e!==(null==(t=v.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{f&&(v.removeEventListener("keydown",M?I:P,M),v.removeEventListener("compositionstart",o),v.removeEventListener("compositionend",a)),b&&v.removeEventListener(d,k?O:T,k),m.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[c,l,f,b,d,n,r,p,s,C,L,P,M,I,T,k,O]),o.useEffect(()=>{c.current.insideReactTree=!1},[c,b,d]);let q=o.useMemo(()=>({onKeyDown:P,...v&&{[D[m]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==m&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[P,r,v,m]),_=o.useMemo(()=>({onKeyDown:P,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[J[d]]:()=>{c.current.insideReactTree=!0}}),[P,d,c]);return o.useMemo(()=>s?{reference:q,floating:_}:{},[s,q,_])}function X(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){let{open:t=!1,onOpenChange:n,elements:r}=e,l=g(),i=o.useRef({}),[c]=o.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}})()),s=null!=b(),[f,a]=o.useState(r.reference),d=(0,u.Jt)((e,t,r)=>{i.current.openEvent=e?t:void 0,c.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),v=o.useMemo(()=>({setPositionReference:a}),[]),m=o.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return o.useMemo(()=>({dataRef:i,open:t,onOpenChange:d,elements:m,events:c,floatingId:l,refs:v}),[t,d,m,c,l,v])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,l=r.elements,[c,f]=o.useState(null),[a,d]=o.useState(null),v=(null==l?void 0:l.domReference)||c,m=o.useRef(null),p=h();(0,u.OS)(()=>{v&&(m.current=v)},[v]);let E=(0,s.we)({...e,elements:{...l,...a&&{reference:a}}}),R=o.useCallback(e=>{let t=(0,i.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),E.refs.setReference(t)},[E.refs]),y=o.useCallback(e=>{((0,i.vq)(e)||null===e)&&(m.current=e,f(e)),((0,i.vq)(E.refs.reference.current)||null===E.refs.reference.current||null!==e&&!(0,i.vq)(e))&&E.refs.setReference(e)},[E.refs]),w=o.useMemo(()=>({...E.refs,setReference:y,setPositionReference:R,domReference:m}),[E.refs,y,R]),x=o.useMemo(()=>({...E.elements,domReference:v}),[E.elements,v]),C=o.useMemo(()=>({...E,...r,refs:w,elements:x,nodeId:t}),[E,w,x,t,r]);return(0,u.OS)(()=>{r.dataRef.current.floatingContext=C;let e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=C)}),o.useMemo(()=>({...E,context:C,refs:w,elements:x}),[E,w,x,C])}function B(){return(0,u.cX)()&&(0,u.nr)()}function K(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,events:l,dataRef:c,elements:s}=e,{enabled:f=!0,visibleOnly:a=!0}=t,d=o.useRef(!1),v=o.useRef(-1),m=o.useRef(!0);o.useEffect(()=>{if(!f)return;let e=(0,i.zk)(s.domReference);function t(){!n&&(0,i.sb)(s.domReference)&&s.domReference===(0,u.RS)((0,u.YE)(s.domReference))&&(d.current=!0)}function r(){m.current=!0}function o(){m.current=!1}return e.addEventListener("blur",t),B()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),B()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[s.domReference,n,f]),o.useEffect(()=>{if(f)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(d.current=!0)}},[l,f]),o.useEffect(()=>()=>{x(v)},[]);let p=o.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;let t=(0,u.EW)(e.nativeEvent);if(a&&(0,i.vq)(t)){if(B()&&!e.relatedTarget){if(!m.current&&!(0,u.$u)(t))return}else if(!(0,u.em)(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){d.current=!1;let t=e.relatedTarget,n=e.nativeEvent,o=(0,i.vq)(t)&&t.hasAttribute(w("focus-guard"))&&"outside"===t.getAttribute("data-type");v.current=window.setTimeout(()=>{var e;let l=(0,u.RS)(s.domReference?s.domReference.ownerDocument:document);(t||l!==s.domReference)&&((0,u.gR)(null==(e=c.current.floatingContext)?void 0:e.refs.floating.current,l)||(0,u.gR)(s.domReference,l)||o||r(!1,n,"focus"))})}}),[c,s.domReference,r,a]);return o.useMemo(()=>f?{reference:p}:{},[f,p])}function j(e,t,n){let r=new Map,o="item"===n,u=e;if(o&&e){let{[a]:t,[d]:n,...r}=e;u=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...u,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,u]=t;if(!(o&&[a,d].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof u){var l;null==(l=r.get(n))||l.push(u),e[n]=function(){for(var e,t=arguments.length,o=Array(t),u=0;u<t;u++)o[u]=arguments[u];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=u}),e),{})}}function V(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),u=o.useCallback(t=>j(t,e,"reference"),t),l=o.useCallback(t=>j(t,e,"floating"),n),i=o.useCallback(t=>j(t,e,"item"),r);return o.useMemo(()=>({getReferenceProps:u,getFloatingProps:l,getItemProps:i}),[u,l,i])}let H=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function N(e,t){var n,r;void 0===t&&(t={});let{open:l,elements:i,floatingId:c}=e,{enabled:s=!0,role:f="dialog"}=t,a=g(),d=(null==(n=i.domReference)?void 0:n.id)||a,v=o.useMemo(()=>{var e;return(null==(e=(0,u.nd)(i.floating))?void 0:e.id)||c},[i.floating,c]),m=null!=(r=H.get(f))?r:f,p=null!=b(),E=o.useMemo(()=>"tooltip"===m||"label"===f?{["aria-"+("label"===f?"labelledby":"describedby")]:l?v:void 0}:{"aria-expanded":l?"true":"false","aria-haspopup":"alertdialog"===m?"dialog":m,"aria-controls":l?v:void 0,..."listbox"===m&&{role:"combobox"},..."menu"===m&&{id:d},..."menu"===m&&p&&{role:"menuitem"},..."select"===f&&{"aria-autocomplete":"none"},..."combobox"===f&&{"aria-autocomplete":"list"}},[m,v,p,l,d,f]),R=o.useMemo(()=>{let e={id:v,...m&&{role:m}};return"tooltip"===m||"label"===f?e:{...e,..."menu"===m&&{"aria-labelledby":d}}},[m,v,d,f]),y=o.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:v+"-fui-option"}};switch(f){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[v,f]);return o.useMemo(()=>s?{reference:E,floating:R,item:y}:{},[s,E,R,y])}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[298,413,744,772],{94297:()=>{}},_=>{_.O(0,[224,201,358],()=>_(_.s=94297)),_N_E=_.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{40888:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=l(27123),n=l(41454),o=function(){return(0,r.jsx)("html",{children:(0,r.jsx)("body",{children:(0,r.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})})})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41454:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}});let r=l(27123),n=l(47201);function o(e){let{status:t,message:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:t+": "+l}),(0,r.jsx)("div",{style:n.styles.error,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,r.jsx)("h1",{className:"next-error-h1",style:n.styles.h1,children:t}),(0,r.jsx)("div",{style:n.styles.desc,children:(0,r.jsx)("h2",{style:n.styles.h2,children:l})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47201:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"styles",{enumerable:!0,get:function(){return l}});let l={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87415:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return l(40888)}])}},e=>{e.O(0,[224,201,358],()=>e(e.s=87415)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[298,413,744,772],{94297:()=>{}},_=>{_.O(0,[224,201,358],()=>_(_.s=94297)),_N_E=_.O()}]);
|
package/dist/runtime/web/.next/static/chunks/app/api/images/[...path]/route-7b752a8641f96c1f.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[298,413,744,772],{94297:()=>{}},_=>{_.O(0,[224,201,358],()=>_(_.s=94297)),_N_E=_.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[298,413,744,772],{94297:()=>{}},_=>{_.O(0,[224,201,358],()=>_(_.s=94297)),_N_E=_.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{1808:(e,r,n)=>{"use strict";n.d(r,{Providers:()=>c});var o=n(27123),i=n(29139),s=n(70255),t=n(74864),l=n(58039),d=n(46154),h=n(92342),v=n(95186),b=n(58391),m=n(97309),P=n(21596);function c(e){let{children:r}=e,[n]=(0,i.useState)(()=>new s.E),c=(0,i.useRef)(null),[u]=(0,i.useState)(()=>{let{http:e,ws:r}=function(){{let{protocol:e,hostname:r,port:n}=window.location,o=n?Number(n):"https:"===e?443:80,i=Number.isFinite(o)?o+1:void 0,s="number"==typeof i?":".concat(i):"";return{http:"".concat("https:"===e?"https":"http","://").concat(r).concat(s,"/trpc"),ws:"".concat("https:"===e?"wss":"ws","://").concat(r).concat(s,"/trpc")}}}(),n=(0,h.E)({url:r});return c.current=n,l.i.createClient({links:[(0,d.hf)({condition:e=>"subscription"===e.type,true:(0,h.X)({client:n,transformer:v.Ay}),false:(0,d.fu)({url:e,transformer:v.Ay})})]})});return(0,i.useEffect)(()=>()=>{try{var e,r;null==(r=c.current)||null==(e=r.close)||e.call(r)}catch(e){P.Rm.error("Error closing WS client",e,"providers")}c.current=null},[]),(0,o.jsx)(b.MantineProvider,{children:(0,o.jsx)(m.Y,{children:(0,o.jsx)(l.i.Provider,{client:u,queryClient:n,children:(0,o.jsx)(t.Ht,{client:n,children:r})})})})}},21596:(e,r,n)=>{"use strict";n.d(r,{Rm:()=>v});var o=n(90326),i=n.n(o),s=n(59184);let t="undefined"!=typeof globalThis&&"window"in globalThis,l={level:"true"===s.env.VERBOSE||void 0!==s&&s.argv&&(s.argv.includes("--verbose")||s.argv.includes("-v"))?"debug":"error",...t?{browser:{asObject:!1}}:{formatters:{level:e=>({level:e}),log:e=>e},transport:{target:"pino-pretty",options:{colorize:!0}}}},d=i()(l);function h(e){return d.child({context:e})}let v={error:(e,r,n)=>{let o=n?h(n):d;r instanceof Error?o.error({err:r},e):r?o.error({error:r},e):o.error(e)},warn:(e,r,n)=>{let o=n?h(n):d;r?o.warn({data:r},e):o.warn(e)},info:(e,r,n)=>{let o=n?h(n):d;r?o.info({data:r},e):o.info(e)},debug:(e,r,n)=>{let o=n?h(n):d;r?o.debug({data:r},e):o.debug(e)},trace:(e,r,n)=>{let o=n?h(n):d;r?o.trace({data:r},e):o.trace(e)}}},31884:(e,r,n)=>{Promise.resolve().then(n.t.bind(n,58677,23)),Promise.resolve().then(n.bind(n,1808)),Promise.resolve().then(n.bind(n,54131)),Promise.resolve().then(n.bind(n,96682)),Promise.resolve().then(n.bind(n,16928)),Promise.resolve().then(n.bind(n,93256)),Promise.resolve().then(n.bind(n,17410)),Promise.resolve().then(n.bind(n,1751)),Promise.resolve().then(n.bind(n,76137)),Promise.resolve().then(n.bind(n,25393)),Promise.resolve().then(n.bind(n,51010)),Promise.resolve().then(n.bind(n,16236)),Promise.resolve().then(n.bind(n,8762)),Promise.resolve().then(n.bind(n,17677)),Promise.resolve().then(n.bind(n,20299)),Promise.resolve().then(n.bind(n,34537)),Promise.resolve().then(n.bind(n,8667)),Promise.resolve().then(n.bind(n,43751)),Promise.resolve().then(n.bind(n,56415)),Promise.resolve().then(n.bind(n,89081)),Promise.resolve().then(n.bind(n,15837)),Promise.resolve().then(n.bind(n,6913)),Promise.resolve().then(n.bind(n,8161)),Promise.resolve().then(n.bind(n,12058)),Promise.resolve().then(n.bind(n,38655)),Promise.resolve().then(n.bind(n,59387)),Promise.resolve().then(n.bind(n,50074)),Promise.resolve().then(n.bind(n,62233)),Promise.resolve().then(n.bind(n,41357)),Promise.resolve().then(n.bind(n,30091)),Promise.resolve().then(n.bind(n,64437)),Promise.resolve().then(n.bind(n,68984)),Promise.resolve().then(n.bind(n,91002)),Promise.resolve().then(n.bind(n,36457)),Promise.resolve().then(n.bind(n,49894)),Promise.resolve().then(n.bind(n,61085)),Promise.resolve().then(n.bind(n,68881)),Promise.resolve().then(n.bind(n,20932)),Promise.resolve().then(n.bind(n,14959)),Promise.resolve().then(n.bind(n,17249)),Promise.resolve().then(n.bind(n,41311)),Promise.resolve().then(n.bind(n,1848)),Promise.resolve().then(n.bind(n,22161)),Promise.resolve().then(n.bind(n,48220)),Promise.resolve().then(n.bind(n,5742)),Promise.resolve().then(n.bind(n,35385)),Promise.resolve().then(n.bind(n,87656)),Promise.resolve().then(n.bind(n,22062)),Promise.resolve().then(n.bind(n,98470)),Promise.resolve().then(n.bind(n,17553)),Promise.resolve().then(n.bind(n,59621)),Promise.resolve().then(n.bind(n,68594)),Promise.resolve().then(n.bind(n,27293)),Promise.resolve().then(n.bind(n,16768)),Promise.resolve().then(n.bind(n,63685)),Promise.resolve().then(n.bind(n,74304)),Promise.resolve().then(n.bind(n,52839)),Promise.resolve().then(n.bind(n,56785)),Promise.resolve().then(n.bind(n,72177)),Promise.resolve().then(n.bind(n,50603)),Promise.resolve().then(n.bind(n,77889)),Promise.resolve().then(n.bind(n,98693)),Promise.resolve().then(n.bind(n,54377)),Promise.resolve().then(n.bind(n,6867)),Promise.resolve().then(n.bind(n,81853)),Promise.resolve().then(n.bind(n,24371)),Promise.resolve().then(n.bind(n,53697)),Promise.resolve().then(n.bind(n,91619)),Promise.resolve().then(n.bind(n,85209)),Promise.resolve().then(n.bind(n,97265)),Promise.resolve().then(n.bind(n,21567)),Promise.resolve().then(n.bind(n,2219)),Promise.resolve().then(n.bind(n,16585)),Promise.resolve().then(n.bind(n,35707)),Promise.resolve().then(n.bind(n,10721)),Promise.resolve().then(n.bind(n,49683)),Promise.resolve().then(n.bind(n,97653)),Promise.resolve().then(n.bind(n,30890)),Promise.resolve().then(n.bind(n,66673)),Promise.resolve().then(n.bind(n,19099)),Promise.resolve().then(n.bind(n,40523)),Promise.resolve().then(n.bind(n,2804)),Promise.resolve().then(n.bind(n,64838)),Promise.resolve().then(n.bind(n,73387)),Promise.resolve().then(n.bind(n,88559)),Promise.resolve().then(n.bind(n,85915)),Promise.resolve().then(n.bind(n,44060)),Promise.resolve().then(n.bind(n,57148)),Promise.resolve().then(n.bind(n,16411)),Promise.resolve().then(n.bind(n,79203)),Promise.resolve().then(n.bind(n,97539)),Promise.resolve().then(n.bind(n,18969)),Promise.resolve().then(n.bind(n,47505)),Promise.resolve().then(n.bind(n,8341)),Promise.resolve().then(n.bind(n,2515)),Promise.resolve().then(n.bind(n,28994)),Promise.resolve().then(n.bind(n,2591)),Promise.resolve().then(n.bind(n,8609)),Promise.resolve().then(n.bind(n,26242)),Promise.resolve().then(n.bind(n,43022)),Promise.resolve().then(n.bind(n,79073)),Promise.resolve().then(n.bind(n,1484)),Promise.resolve().then(n.bind(n,12843)),Promise.resolve().then(n.bind(n,373)),Promise.resolve().then(n.bind(n,23061)),Promise.resolve().then(n.bind(n,81486)),Promise.resolve().then(n.bind(n,50944)),Promise.resolve().then(n.bind(n,42723)),Promise.resolve().then(n.bind(n,74486)),Promise.resolve().then(n.bind(n,57618)),Promise.resolve().then(n.bind(n,24300)),Promise.resolve().then(n.bind(n,53339)),Promise.resolve().then(n.bind(n,64419)),Promise.resolve().then(n.bind(n,90390)),Promise.resolve().then(n.bind(n,12648)),Promise.resolve().then(n.bind(n,27276)),Promise.resolve().then(n.bind(n,2736)),Promise.resolve().then(n.bind(n,22662)),Promise.resolve().then(n.bind(n,90689)),Promise.resolve().then(n.bind(n,2530)),Promise.resolve().then(n.bind(n,14448)),Promise.resolve().then(n.bind(n,15951)),Promise.resolve().then(n.bind(n,29930)),Promise.resolve().then(n.bind(n,89909)),Promise.resolve().then(n.bind(n,29473)),Promise.resolve().then(n.bind(n,95352)),Promise.resolve().then(n.bind(n,11792)),Promise.resolve().then(n.bind(n,18415)),Promise.resolve().then(n.bind(n,28581)),Promise.resolve().then(n.bind(n,97395)),Promise.resolve().then(n.bind(n,97833)),Promise.resolve().then(n.bind(n,12375)),Promise.resolve().then(n.bind(n,11955)),Promise.resolve().then(n.bind(n,8741)),Promise.resolve().then(n.bind(n,26603)),Promise.resolve().then(n.bind(n,45519)),Promise.resolve().then(n.bind(n,47475)),Promise.resolve().then(n.bind(n,34231)),Promise.resolve().then(n.bind(n,42568)),Promise.resolve().then(n.bind(n,31672)),Promise.resolve().then(n.bind(n,66967)),Promise.resolve().then(n.bind(n,21695)),Promise.resolve().then(n.bind(n,76535)),Promise.resolve().then(n.bind(n,57605)),Promise.resolve().then(n.bind(n,6993)),Promise.resolve().then(n.bind(n,2937)),Promise.resolve().then(n.bind(n,62278)),Promise.resolve().then(n.bind(n,93739)),Promise.resolve().then(n.bind(n,30092)),Promise.resolve().then(n.bind(n,76908)),Promise.resolve().then(n.bind(n,64434)),Promise.resolve().then(n.bind(n,50736)),Promise.resolve().then(n.bind(n,85522)),Promise.resolve().then(n.bind(n,92454)),Promise.resolve().then(n.bind(n,77893)),Promise.resolve().then(n.bind(n,63445)),Promise.resolve().then(n.bind(n,17430)),Promise.resolve().then(n.bind(n,61991)),Promise.resolve().then(n.bind(n,9269)),Promise.resolve().then(n.bind(n,39159)),Promise.resolve().then(n.bind(n,19365)),Promise.resolve().then(n.bind(n,68516)),Promise.resolve().then(n.bind(n,7402)),Promise.resolve().then(n.bind(n,30976)),Promise.resolve().then(n.bind(n,52832)),Promise.resolve().then(n.bind(n,87562)),Promise.resolve().then(n.bind(n,93475)),Promise.resolve().then(n.bind(n,64514)),Promise.resolve().then(n.bind(n,56807)),Promise.resolve().then(n.bind(n,89253)),Promise.resolve().then(n.bind(n,26945)),Promise.resolve().then(n.bind(n,23821)),Promise.resolve().then(n.bind(n,61044)),Promise.resolve().then(n.bind(n,1982)),Promise.resolve().then(n.bind(n,15001)),Promise.resolve().then(n.bind(n,99857)),Promise.resolve().then(n.bind(n,57841)),Promise.resolve().then(n.bind(n,75533)),Promise.resolve().then(n.bind(n,87231)),Promise.resolve().then(n.bind(n,82017)),Promise.resolve().then(n.bind(n,2601)),Promise.resolve().then(n.bind(n,92077)),Promise.resolve().then(n.bind(n,23418)),Promise.resolve().then(n.bind(n,12456)),Promise.resolve().then(n.bind(n,8242)),Promise.resolve().then(n.bind(n,22121)),Promise.resolve().then(n.bind(n,15424)),Promise.resolve().then(n.bind(n,73468)),Promise.resolve().then(n.bind(n,96593)),Promise.resolve().then(n.bind(n,50220)),Promise.resolve().then(n.bind(n,96069)),Promise.resolve().then(n.bind(n,81005)),Promise.resolve().then(n.bind(n,11865)),Promise.resolve().then(n.bind(n,5013)),Promise.resolve().then(n.bind(n,24525)),Promise.resolve().then(n.bind(n,46433)),Promise.resolve().then(n.bind(n,29246)),Promise.resolve().then(n.bind(n,90007)),Promise.resolve().then(n.bind(n,11067)),Promise.resolve().then(n.bind(n,87986)),Promise.resolve().then(n.bind(n,48603)),Promise.resolve().then(n.bind(n,27987)),Promise.resolve().then(n.bind(n,27203)),Promise.resolve().then(n.bind(n,65425)),Promise.resolve().then(n.bind(n,59326)),Promise.resolve().then(n.bind(n,92928)),Promise.resolve().then(n.bind(n,89181)),Promise.resolve().then(n.bind(n,7096)),Promise.resolve().then(n.bind(n,56115)),Promise.resolve().then(n.bind(n,53463)),Promise.resolve().then(n.bind(n,11634)),Promise.resolve().then(n.bind(n,66426)),Promise.resolve().then(n.bind(n,3828)),Promise.resolve().then(n.bind(n,79404)),Promise.resolve().then(n.bind(n,1737)),Promise.resolve().then(n.bind(n,393)),Promise.resolve().then(n.bind(n,71309)),Promise.resolve().then(n.bind(n,72991)),Promise.resolve().then(n.bind(n,93147)),Promise.resolve().then(n.bind(n,10931)),Promise.resolve().then(n.bind(n,66383)),Promise.resolve().then(n.bind(n,50514)),Promise.resolve().then(n.bind(n,74555)),Promise.resolve().then(n.bind(n,73770)),Promise.resolve().then(n.bind(n,58809)),Promise.resolve().then(n.bind(n,99245)),Promise.resolve().then(n.bind(n,25658)),Promise.resolve().then(n.bind(n,22664)),Promise.resolve().then(n.bind(n,26543)),Promise.resolve().then(n.bind(n,40358)),Promise.resolve().then(n.bind(n,13700)),Promise.resolve().then(n.bind(n,80565)),Promise.resolve().then(n.bind(n,33356)),Promise.resolve().then(n.bind(n,19149)),Promise.resolve().then(n.bind(n,85038)),Promise.resolve().then(n.bind(n,94195)),Promise.resolve().then(n.bind(n,30207)),Promise.resolve().then(n.bind(n,36787)),Promise.resolve().then(n.bind(n,84140)),Promise.resolve().then(n.bind(n,44778)),Promise.resolve().then(n.bind(n,40626)),Promise.resolve().then(n.bind(n,20305)),Promise.resolve().then(n.bind(n,12994)),Promise.resolve().then(n.bind(n,83431)),Promise.resolve().then(n.bind(n,90992)),Promise.resolve().then(n.bind(n,52682)),Promise.resolve().then(n.bind(n,94754)),Promise.resolve().then(n.bind(n,74018)),Promise.resolve().then(n.bind(n,75202)),Promise.resolve().then(n.bind(n,35446)),Promise.resolve().then(n.bind(n,87197)),Promise.resolve().then(n.bind(n,97775)),Promise.resolve().then(n.bind(n,70785)),Promise.resolve().then(n.bind(n,86790)),Promise.resolve().then(n.bind(n,1248)),Promise.resolve().then(n.bind(n,36706)),Promise.resolve().then(n.bind(n,66262)),Promise.resolve().then(n.bind(n,69664)),Promise.resolve().then(n.bind(n,26759)),Promise.resolve().then(n.bind(n,58391)),Promise.resolve().then(n.bind(n,13463)),Promise.resolve().then(n.bind(n,60366)),Promise.resolve().then(n.bind(n,92339)),Promise.resolve().then(n.bind(n,1464)),Promise.resolve().then(n.bind(n,17961)),Promise.resolve().then(n.bind(n,41526)),Promise.resolve().then(n.bind(n,1870)),Promise.resolve().then(n.bind(n,82880)),Promise.resolve().then(n.bind(n,66438)),Promise.resolve().then(n.bind(n,36159)),Promise.resolve().then(n.bind(n,21101)),Promise.resolve().then(n.bind(n,11686)),Promise.resolve().then(n.bind(n,31822)),Promise.resolve().then(n.bind(n,93472)),Promise.resolve().then(n.bind(n,24120)),Promise.resolve().then(n.bind(n,20426)),Promise.resolve().then(n.bind(n,64184)),Promise.resolve().then(n.bind(n,84100)),Promise.resolve().then(n.bind(n,91996)),Promise.resolve().then(n.bind(n,32866)),Promise.resolve().then(n.bind(n,87432)),Promise.resolve().then(n.bind(n,62124)),Promise.resolve().then(n.bind(n,63332)),Promise.resolve().then(n.bind(n,27130)),Promise.resolve().then(n.bind(n,85090)),Promise.resolve().then(n.bind(n,95472)),Promise.resolve().then(n.bind(n,73880)),Promise.resolve().then(n.bind(n,48824)),Promise.resolve().then(n.bind(n,99546)),Promise.resolve().then(n.bind(n,9708)),Promise.resolve().then(n.bind(n,4814)),Promise.resolve().then(n.bind(n,72976)),Promise.resolve().then(n.bind(n,79815)),Promise.resolve().then(n.bind(n,52950)),Promise.resolve().then(n.bind(n,14098)),Promise.resolve().then(n.bind(n,29424)),Promise.resolve().then(n.bind(n,51054)),Promise.resolve().then(n.bind(n,89752)),Promise.resolve().then(n.t.bind(n,11431,23)),Promise.resolve().then(n.bind(n,92779)),Promise.resolve().then(n.bind(n,86263)),Promise.resolve().then(n.bind(n,37899)),Promise.resolve().then(n.bind(n,41923)),Promise.resolve().then(n.bind(n,68627)),Promise.resolve().then(n.bind(n,84739)),Promise.resolve().then(n.bind(n,53267)),Promise.resolve().then(n.bind(n,27283)),Promise.resolve().then(n.bind(n,94923)),Promise.resolve().then(n.bind(n,94127)),Promise.resolve().then(n.bind(n,23897)),Promise.resolve().then(n.bind(n,37195)),Promise.resolve().then(n.bind(n,78683)),Promise.resolve().then(n.bind(n,16919)),Promise.resolve().then(n.bind(n,91511)),Promise.resolve().then(n.bind(n,19623)),Promise.resolve().then(n.bind(n,96547)),Promise.resolve().then(n.bind(n,82007)),Promise.resolve().then(n.bind(n,49690)),Promise.resolve().then(n.bind(n,66657)),Promise.resolve().then(n.bind(n,57699)),Promise.resolve().then(n.bind(n,11791)),Promise.resolve().then(n.bind(n,27533)),Promise.resolve().then(n.bind(n,81359)),Promise.resolve().then(n.bind(n,22030)),Promise.resolve().then(n.bind(n,65907)),Promise.resolve().then(n.bind(n,84891)),Promise.resolve().then(n.bind(n,17595)),Promise.resolve().then(n.bind(n,9885)),Promise.resolve().then(n.bind(n,74175)),Promise.resolve().then(n.bind(n,60719)),Promise.resolve().then(n.bind(n,39507)),Promise.resolve().then(n.bind(n,11687)),Promise.resolve().then(n.bind(n,63163)),Promise.resolve().then(n.bind(n,35331)),Promise.resolve().then(n.bind(n,22029)),Promise.resolve().then(n.bind(n,67783)),Promise.resolve().then(n.bind(n,62901)),Promise.resolve().then(n.bind(n,59155)),Promise.resolve().then(n.bind(n,53403)),Promise.resolve().then(n.bind(n,69653)),Promise.resolve().then(n.bind(n,26619)),Promise.resolve().then(n.bind(n,85935)),Promise.resolve().then(n.bind(n,31043)),Promise.resolve().then(n.bind(n,50299)),Promise.resolve().then(n.bind(n,3607)),Promise.resolve().then(n.bind(n,45343)),Promise.resolve().then(n.bind(n,32905)),Promise.resolve().then(n.bind(n,49355)),Promise.resolve().then(n.bind(n,79301)),Promise.resolve().then(n.bind(n,12779)),Promise.resolve().then(n.bind(n,55647)),Promise.resolve().then(n.bind(n,80075)),Promise.resolve().then(n.bind(n,15171)),Promise.resolve().then(n.bind(n,32723)),Promise.resolve().then(n.bind(n,93090)),Promise.resolve().then(n.bind(n,95969)),Promise.resolve().then(n.bind(n,85667)),Promise.resolve().then(n.bind(n,76512)),Promise.resolve().then(n.bind(n,93459)),Promise.resolve().then(n.bind(n,58117)),Promise.resolve().then(n.bind(n,10175)),Promise.resolve().then(n.bind(n,37533)),Promise.resolve().then(n.bind(n,26793)),Promise.resolve().then(n.bind(n,55231)),Promise.resolve().then(n.bind(n,38423)),Promise.resolve().then(n.bind(n,63971)),Promise.resolve().then(n.bind(n,13325)),Promise.resolve().then(n.bind(n,41307)),Promise.resolve().then(n.bind(n,40419)),Promise.resolve().then(n.bind(n,49627)),Promise.resolve().then(n.bind(n,2355)),Promise.resolve().then(n.bind(n,85023)),Promise.resolve().then(n.bind(n,41985)),Promise.resolve().then(n.bind(n,72581)),Promise.resolve().then(n.bind(n,60081)),Promise.resolve().then(n.bind(n,91709)),Promise.resolve().then(n.bind(n,16405)),Promise.resolve().then(n.bind(n,99489)),Promise.resolve().then(n.bind(n,28369)),Promise.resolve().then(n.bind(n,74)),Promise.resolve().then(n.t.bind(n,48277,23)),Promise.resolve().then(n.t.bind(n,25204,23))},58039:(e,r,n)=>{"use strict";n.d(r,{i:()=>o});let o=(0,n(60516).pY)()},58677:()=>{}},e=>{e.O(0,[180,862,385,23,554,524,224,201,358],()=>e(e.s=31884)),_N_E=e.O()}]);
|