@fuma-content/studio 1.0.0 → 1.0.2
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/build/client/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/build/client/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/build/client/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/build/client/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/build/client/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/build/client/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/build/client/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/build/client/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/build/client/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/build/client/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/build/client/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/build/client/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/build/client/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/build/client/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/build/client/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/build/client/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/build/client/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/build/client/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/build/client/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/build/client/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/build/client/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/build/client/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/build/client/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/build/client/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/build/client/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/build/client/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/build/client/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/build/client/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/build/client/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/build/client/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/build/client/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/build/client/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/build/client/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/build/client/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/build/client/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/build/client/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/build/client/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/build/client/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/build/client/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/build/client/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/build/client/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/build/client/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/build/client/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/build/client/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/build/client/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/build/client/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/build/client/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/build/client/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/build/client/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/build/client/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/build/client/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/build/client/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/build/client/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/build/client/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/build/client/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/build/client/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/build/client/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/build/client/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/build/client/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/build/client/assets/QueryClientProvider-DqiXnN2L.js +1 -0
- package/build/client/assets/actions-DkbV2Z0p.js +1 -0
- package/build/client/assets/actions-DpkI7OTF.js +1 -0
- package/build/client/assets/badge-CZkdLoIP.js +1 -0
- package/build/client/assets/button-Bm94vje1.js +41 -0
- package/build/client/assets/client-BWBqEatf.js +1 -0
- package/build/client/assets/client-Crg-pMcu.js +1 -0
- package/build/client/assets/client-DVneG3Rq.css +1 -0
- package/build/client/assets/client-OSVRoCKH.js +569 -0
- package/build/client/assets/dropdown-menu-EF-sTINr.js +1 -0
- package/build/client/assets/entry.rsc-D51PwnQL.js +1 -0
- package/build/client/assets/index-BdrDVoE8.js +1 -0
- package/build/client/assets/index-BpILsqFO.js +1 -0
- package/build/client/assets/index-Bx93mXy1.js +11 -0
- package/build/client/assets/index-CQRgqbuL.js +1 -0
- package/build/client/assets/index-DOs5iMXj.js +1 -0
- package/build/client/assets/index-DTzAH5JX.js +1 -0
- package/build/client/assets/layout-CnpYRqF0.js +1 -0
- package/build/client/assets/mdx-BNErtsK6.js +1 -0
- package/build/client/assets/page-DOzl4Kpa.js +1 -0
- package/build/client/assets/page-uNpJU_rv.js +1 -0
- package/build/client/assets/query-z9oLNeTD.js +1 -0
- package/build/client/assets/react-B8--K7an.js +10 -0
- package/build/client/assets/root-B_CXTQpA.js +1 -0
- package/build/client/assets/root-D3NoAGI1.js +1 -0
- package/build/client/assets/root-z8crlXSh.css +1 -0
- package/build/client/assets/route-DVneG3Rq.css +1 -0
- package/build/client/assets/router-a9jyj9wf.js +10 -0
- package/build/client/assets/separator-tWFpvpUX.js +1 -0
- package/build/client/assets/sidebar-BBYit8gY.js +12 -0
- package/build/client/assets/site-header-DQkKe-WA.js +1 -0
- package/build/client/assets/spinner-BdPhtfsc.js +1 -0
- package/build/client/assets/tooltip-Dvh-iHDG.js +16 -0
- package/build/client/assets/use-sync-ZgcwUdu_.js +9 -0
- package/build/client/assets/yaml-Cloe7OVn.js +32 -0
- package/build/server/__ssr_build/__vite_rsc_assets_manifest.js +268 -0
- package/build/server/__ssr_build/assets/QueryClientProvider-DlvBH3OQ.js +30 -0
- package/build/server/__ssr_build/assets/actions-B50-3n-a.js +63 -0
- package/build/server/__ssr_build/assets/actions-BFtCTvOL.js +21 -0
- package/{src/components/ui/badge.tsx → build/server/__ssr_build/assets/badge-DYFvBSp8.js} +23 -28
- package/build/server/__ssr_build/assets/button-C_-b_vqm.js +4098 -0
- package/build/server/__ssr_build/assets/client--HXec13w.js +130 -0
- package/build/server/__ssr_build/assets/client-BqW9rGyi.js +116885 -0
- package/build/server/__ssr_build/assets/client-CU90j0R8.js +154 -0
- package/build/server/__ssr_build/assets/dropdown-menu-D2YyT3lP.js +1312 -0
- package/build/server/__ssr_build/assets/entry.rsc-Cg_DxYkh.js +12 -0
- package/build/server/__ssr_build/assets/index-B-gno69w.js +58 -0
- package/build/server/__ssr_build/assets/index-DBc0nhEL.js +288 -0
- package/build/server/__ssr_build/assets/index-Dtw6X3NW.js +1092 -0
- package/build/server/__ssr_build/assets/index-DvVNShHF.js +86 -0
- package/build/server/__ssr_build/assets/index-PpqpVA51.js +612 -0
- package/build/server/__ssr_build/assets/layout-CPnSx9PI.js +454 -0
- package/build/server/__ssr_build/assets/mdx-bmeV1kyx.js +44 -0
- package/build/server/__ssr_build/assets/page-BwoghW3K.js +38 -0
- package/build/server/__ssr_build/assets/page-HxttullC.js +89 -0
- package/build/server/__ssr_build/assets/query-C1_xUNXy.js +1975 -0
- package/build/server/__ssr_build/assets/root-CS7F-km4.js +16 -0
- package/build/server/__ssr_build/assets/root-D-Y-rGw5.js +73 -0
- package/build/server/__ssr_build/assets/separator-8UA_ceSq.js +49 -0
- package/build/server/__ssr_build/assets/sidebar-BzNOZeBO.js +13194 -0
- package/build/server/__ssr_build/assets/site-header-CXHKSzqk.js +13 -0
- package/build/server/__ssr_build/assets/spinner-BXcLlTNs.js +1291 -0
- package/build/server/__ssr_build/assets/tooltip-DZ4WdJt-.js +9553 -0
- package/build/server/__ssr_build/assets/use-sync-TRS0zL-Y.js +3404 -0
- package/build/server/__ssr_build/assets/yaml-BEdFfhvc.js +63 -0
- package/build/server/__ssr_build/index.js +36076 -0
- package/build/server/__vite_rsc_assets_manifest.js +268 -0
- package/build/server/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/build/server/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/build/server/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/build/server/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/build/server/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/build/server/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/build/server/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/build/server/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/build/server/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/build/server/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/build/server/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/build/server/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/build/server/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/build/server/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/build/server/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/build/server/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/build/server/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/build/server/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/build/server/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/build/server/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/build/server/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/build/server/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/build/server/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/build/server/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/build/server/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/build/server/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/build/server/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/build/server/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/build/server/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/build/server/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/build/server/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/build/server/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/build/server/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/build/server/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/build/server/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/build/server/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/build/server/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/build/server/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/build/server/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/build/server/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/build/server/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/build/server/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/build/server/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/build/server/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/build/server/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/build/server/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/build/server/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/build/server/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/build/server/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/build/server/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/build/server/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/build/server/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/build/server/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/build/server/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/build/server/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/build/server/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/build/server/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/build/server/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/build/server/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/build/server/assets/actions-C92yn6jE.js +61 -0
- package/build/server/assets/actions-CWWFIcb1.js +46 -0
- package/build/server/assets/actions-DZdN0IBq.js +73 -0
- package/build/server/assets/client-BdxXy6rH.js +13 -0
- package/build/server/assets/client-DLzFPnCR.js +13 -0
- package/build/server/assets/config-Cb909uq6.js +257 -0
- package/build/server/assets/index-X49ifkk3.js +9 -0
- package/build/server/assets/jsx-runtime.react-server-D3We4JeM.js +324 -0
- package/build/server/assets/layout-CRw_6FCt.js +2071 -0
- package/build/server/assets/page-BcrsPZbM.js +9 -0
- package/build/server/assets/page-zlF_Ew1s.js +72 -0
- package/build/server/assets/root-CVOXO6T9.js +23 -0
- package/build/server/assets/root-dGb6ch_9.js +38 -0
- package/build/server/assets/root-z8crlXSh.css +1 -0
- package/build/server/assets/route-DVneG3Rq.css +1 -0
- package/build/server/assets/route-Ds0B4hTo.js +44 -0
- package/build/server/assets/route-DvwlfKZg.js +21 -0
- package/build/server/assets/route-o-6k10r9.js +70774 -0
- package/build/server/index.js +17032 -0
- package/dist/bin/cli.d.mts +1 -0
- package/dist/bin/cli.mjs +71 -0
- package/dist/bin.mjs +14 -40
- package/dist/package.mjs +1 -1
- package/package.json +33 -32
- package/dist/index.d.mts +0 -52
- package/dist/index.mjs +0 -67
- package/dist/mdx/actions.mjs +0 -32
- package/dist/mdx/client.mjs +0 -167
- package/dist/src/components/code-editor/mdx.lazy.mjs +0 -19
- package/dist/src/components/code-editor/mdx.mjs +0 -44
- package/dist/src/components/code-editor/yaml.lazy.mjs +0 -22
- package/dist/src/components/code-editor/yaml.mjs +0 -63
- package/dist/src/components/editor/editor-base-kit.mjs +0 -41
- package/dist/src/components/editor/editor-kit.mjs +0 -73
- package/dist/src/components/editor/md.mjs +0 -42
- package/dist/src/components/editor/plugins/ai-kit.mjs +0 -68
- package/dist/src/components/editor/plugins/align-base-kit.mjs +0 -28
- package/dist/src/components/editor/plugins/align-kit.mjs +0 -30
- package/dist/src/components/editor/plugins/autoformat-kit.mjs +0 -214
- package/dist/src/components/editor/plugins/basic-blocks-base-kit.mjs +0 -22
- package/dist/src/components/editor/plugins/basic-blocks-kit.mjs +0 -51
- package/dist/src/components/editor/plugins/basic-marks-base-kit.mjs +0 -20
- package/dist/src/components/editor/plugins/basic-marks-kit.mjs +0 -28
- package/dist/src/components/editor/plugins/block-menu-kit.mjs +0 -11
- package/dist/src/components/editor/plugins/block-placeholder-kit.mjs +0 -14
- package/dist/src/components/editor/plugins/block-selection-kit.mjs +0 -48
- package/dist/src/components/editor/plugins/callout-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/callout-kit.mjs +0 -10
- package/dist/src/components/editor/plugins/code-block-base-kit.mjs +0 -16
- package/dist/src/components/editor/plugins/code-block-kit.mjs +0 -19
- package/dist/src/components/editor/plugins/column-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/column-kit.mjs +0 -10
- package/dist/src/components/editor/plugins/comment-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/comment-kit.mjs +0 -53
- package/dist/src/components/editor/plugins/copilot-kit.mjs +0 -49
- package/dist/src/components/editor/plugins/cursor-overlay-kit.mjs +0 -11
- package/dist/src/components/editor/plugins/date-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/date-kit.mjs +0 -10
- package/dist/src/components/editor/plugins/discussion-kit.mjs +0 -94
- package/dist/src/components/editor/plugins/dnd-kit.mjs +0 -31
- package/dist/src/components/editor/plugins/emoji-kit.mjs +0 -11
- package/dist/src/components/editor/plugins/exit-break-kit.mjs +0 -12
- package/dist/src/components/editor/plugins/fixed-toolbar-kit.mjs +0 -15
- package/dist/src/components/editor/plugins/floating-toolbar-kit.mjs +0 -15
- package/dist/src/components/editor/plugins/font-base-kit.mjs +0 -14
- package/dist/src/components/editor/plugins/font-kit.mjs +0 -19
- package/dist/src/components/editor/plugins/indent-base-kit.mjs +0 -17
- package/dist/src/components/editor/plugins/indent-kit.mjs +0 -20
- package/dist/src/components/editor/plugins/line-height-base-kit.mjs +0 -20
- package/dist/src/components/editor/plugins/line-height-kit.mjs +0 -22
- package/dist/src/components/editor/plugins/link-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/link-kit.mjs +0 -15
- package/dist/src/components/editor/plugins/list-base-kit.mjs +0 -19
- package/dist/src/components/editor/plugins/list-kit.mjs +0 -22
- package/dist/src/components/editor/plugins/markdown-kit.mjs +0 -17
- package/dist/src/components/editor/plugins/math-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/math-kit.mjs +0 -10
- package/dist/src/components/editor/plugins/media-base-kit.mjs +0 -23
- package/dist/src/components/editor/plugins/media-kit.mjs +0 -37
- package/dist/src/components/editor/plugins/slash-kit.mjs +0 -11
- package/dist/src/components/editor/plugins/suggestion-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/suggestion-kit.mjs +0 -50
- package/dist/src/components/editor/plugins/table-base-kit.mjs +0 -13
- package/dist/src/components/editor/plugins/table-kit.mjs +0 -15
- package/dist/src/components/editor/transforms.mjs +0 -125
- package/dist/src/components/editor/ui/ai-chat-editor.mjs +0 -21
- package/dist/src/components/editor/ui/ai-menu.mjs +0 -488
- package/dist/src/components/editor/ui/ai-node.mjs +0 -24
- package/dist/src/components/editor/ui/ai-toolbar-button.mjs +0 -23
- package/dist/src/components/editor/ui/align-toolbar-button.mjs +0 -71
- package/dist/src/components/editor/ui/block-context-menu.mjs +0 -130
- package/dist/src/components/editor/ui/block-discussion.mjs +0 -200
- package/dist/src/components/editor/ui/block-draggable.mjs +0 -265
- package/dist/src/components/editor/ui/block-list-static.mjs +0 -48
- package/dist/src/components/editor/ui/block-list.mjs +0 -47
- package/dist/src/components/editor/ui/block-selection.mjs +0 -28
- package/dist/src/components/editor/ui/block-suggestion.mjs +0 -319
- package/dist/src/components/editor/ui/blockquote-node-static.mjs +0 -14
- package/dist/src/components/editor/ui/blockquote-node.mjs +0 -16
- package/dist/src/components/editor/ui/callout-node-static.mjs +0 -29
- package/dist/src/components/editor/ui/callout-node.mjs +0 -50
- package/dist/src/components/editor/ui/caption.mjs +0 -39
- package/dist/src/components/editor/ui/code-block-node-static.mjs +0 -30
- package/dist/src/components/editor/ui/code-block-node.mjs +0 -121
- package/dist/src/components/editor/ui/code-node-static.mjs +0 -15
- package/dist/src/components/editor/ui/code-node.mjs +0 -17
- package/dist/src/components/editor/ui/column-node-static.mjs +0 -32
- package/dist/src/components/editor/ui/column-node.mjs +0 -229
- package/dist/src/components/editor/ui/comment-node-static.mjs +0 -14
- package/dist/src/components/editor/ui/comment-node.mjs +0 -33
- package/dist/src/components/editor/ui/comment-toolbar-button.mjs +0 -23
- package/dist/src/components/editor/ui/comment.mjs +0 -422
- package/dist/src/components/editor/ui/cursor-overlay.mjs +0 -36
- package/dist/src/components/editor/ui/date-node-static.mjs +0 -32
- package/dist/src/components/editor/ui/date-node.mjs +0 -60
- package/dist/src/components/editor/ui/editor-static.mjs +0 -31
- package/dist/src/components/editor/ui/editor.mjs +0 -60
- package/dist/src/components/editor/ui/emoji-node.mjs +0 -46
- package/dist/src/components/editor/ui/emoji-toolbar-button.mjs +0 -415
- package/dist/src/components/editor/ui/equation-node-static.mjs +0 -65
- package/dist/src/components/editor/ui/equation-node.mjs +0 -159
- package/dist/src/components/editor/ui/equation-toolbar-button.mjs +0 -23
- package/dist/src/components/editor/ui/fixed-toolbar-buttons.mjs +0 -109
- package/dist/src/components/editor/ui/fixed-toolbar.mjs +0 -16
- package/dist/src/components/editor/ui/floating-toolbar-buttons.mjs +0 -54
- package/dist/src/components/editor/ui/floating-toolbar.mjs +0 -51
- package/dist/src/components/editor/ui/font-color-toolbar-button.mjs +0 -637
- package/dist/src/components/editor/ui/font-size-toolbar-button.mjs +0 -83
- package/dist/src/components/editor/ui/ghost-text.mjs +0 -22
- package/dist/src/components/editor/ui/heading-node-static.mjs +0 -60
- package/dist/src/components/editor/ui/heading-node.mjs +0 -62
- package/dist/src/components/editor/ui/highlight-node-static.mjs +0 -15
- package/dist/src/components/editor/ui/highlight-node.mjs +0 -17
- package/dist/src/components/editor/ui/history-toolbar-button.mjs +0 -35
- package/dist/src/components/editor/ui/hr-node-static.mjs +0 -18
- package/dist/src/components/editor/ui/hr-node.mjs +0 -23
- package/dist/src/components/editor/ui/indent-toolbar-button.mjs +0 -29
- package/dist/src/components/editor/ui/inline-combobox.mjs +0 -148
- package/dist/src/components/editor/ui/insert-toolbar-button.mjs +0 -199
- package/dist/src/components/editor/ui/kbd-node-static.mjs +0 -15
- package/dist/src/components/editor/ui/kbd-node.mjs +0 -17
- package/dist/src/components/editor/ui/line-height-toolbar-button.mjs +0 -56
- package/dist/src/components/editor/ui/link-node-static.mjs +0 -20
- package/dist/src/components/editor/ui/link-node.mjs +0 -28
- package/dist/src/components/editor/ui/link-toolbar-button.mjs +0 -21
- package/dist/src/components/editor/ui/link-toolbar.mjs +0 -141
- package/dist/src/components/editor/ui/list-toolbar-button.mjs +0 -131
- package/dist/src/components/editor/ui/mark-toolbar-button.mjs +0 -20
- package/dist/src/components/editor/ui/media-image-node-static.mjs +0 -32
- package/dist/src/components/editor/ui/media-image-node.mjs +0 -64
- package/dist/src/components/editor/ui/media-placeholder-node.mjs +0 -184
- package/dist/src/components/editor/ui/media-preview-dialog.mjs +0 -113
- package/dist/src/components/editor/ui/media-toolbar-button.mjs +0 -156
- package/dist/src/components/editor/ui/media-toolbar.mjs +0 -80
- package/dist/src/components/editor/ui/media-upload-toast.mjs +0 -39
- package/dist/src/components/editor/ui/media-video-node-static.mjs +0 -27
- package/dist/src/components/editor/ui/mode-toolbar-button.mjs +0 -112
- package/dist/src/components/editor/ui/paragraph-node-static.mjs +0 -15
- package/dist/src/components/editor/ui/paragraph-node.mjs +0 -17
- package/dist/src/components/editor/ui/resize-handle.mjs +0 -43
- package/dist/src/components/editor/ui/slash-node.mjs +0 -228
- package/dist/src/components/editor/ui/suggestion-node-static.mjs +0 -24
- package/dist/src/components/editor/ui/suggestion-node.mjs +0 -111
- package/dist/src/components/editor/ui/suggestion-toolbar-button.mjs +0 -24
- package/dist/src/components/editor/ui/table-icons.mjs +0 -1310
- package/dist/src/components/editor/ui/table-node-static.mjs +0 -68
- package/dist/src/components/editor/ui/table-node.mjs +0 -375
- package/dist/src/components/editor/ui/table-toolbar-button.mjs +0 -190
- package/dist/src/components/editor/ui/turn-into-toolbar-button.mjs +0 -168
- package/dist/src/components/editor/use-chat.mjs +0 -80
- package/dist/src/components/json-schema-editor/client.mjs +0 -46
- package/dist/src/components/json-schema-editor/components/inputs.mjs +0 -438
- package/dist/src/components/json-schema-editor/get-default-values.mjs +0 -23
- package/dist/src/components/json-schema-editor/schema.mjs +0 -131
- package/dist/src/components/json-schema-editor/utils/merge-schema.mjs +0 -134
- package/dist/src/components/json-schema-editor/utils/schema-to-string.mjs +0 -53
- package/dist/src/components/ui/alert-dialog.mjs +0 -90
- package/dist/src/components/ui/avatar.mjs +0 -32
- package/dist/src/components/ui/button.mjs +0 -48
- package/dist/src/components/ui/calendar.mjs +0 -108
- package/dist/src/components/ui/checkbox.mjs +0 -23
- package/dist/src/components/ui/combobox.mjs +0 -53
- package/dist/src/components/ui/command.mjs +0 -42
- package/dist/src/components/ui/context-menu.mjs +0 -67
- package/dist/src/components/ui/dialog.mjs +0 -9
- package/dist/src/components/ui/dropdown-menu.mjs +0 -122
- package/dist/src/components/ui/input-group.mjs +0 -31
- package/dist/src/components/ui/input.mjs +0 -15
- package/dist/src/components/ui/label.mjs +0 -19
- package/dist/src/components/ui/popover.mjs +0 -37
- package/dist/src/components/ui/select.mjs +0 -80
- package/dist/src/components/ui/separator.mjs +0 -19
- package/dist/src/components/ui/spinner.mjs +0 -16
- package/dist/src/components/ui/tabs.mjs +0 -39
- package/dist/src/components/ui/textarea.mjs +0 -14
- package/dist/src/components/ui/toolbar.mjs +0 -183
- package/dist/src/components/ui/tooltip.mjs +0 -38
- package/dist/src/hooks/editor/use-is-creator.mjs +0 -19
- package/dist/src/hooks/use-upload-file.mjs +0 -73
- package/dist/src/lib/config.mjs +0 -34
- package/dist/src/lib/data/store.d.mts +0 -15
- package/dist/src/lib/lowlight.mjs +0 -7
- package/dist/src/lib/utils/deep-equal.mjs +0 -18
- package/dist/src/lib/utils/remove-undefined.mjs +0 -18
- package/dist/src/lib/utils.mjs +0 -10
- package/next.config.ts +0 -23
- package/postcss.config.mjs +0 -7
- package/src/app/(dashboard)/collection/[name]/[...slug]/page.client.tsx +0 -26
- package/src/app/(dashboard)/collection/[name]/[...slug]/page.tsx +0 -18
- package/src/app/(dashboard)/collection/[name]/page.client.tsx +0 -82
- package/src/app/(dashboard)/collection/[name]/page.tsx +0 -11
- package/src/app/(dashboard)/layout.tsx +0 -34
- package/src/app/(dashboard)/page.tsx +0 -38
- package/src/app/api/ai/command/prompts.ts +0 -313
- package/src/app/api/ai/command/route.ts +0 -203
- package/src/app/api/ai/command/utils.ts +0 -242
- package/src/app/api/ai/copilot/route.ts +0 -33
- package/src/app/api/uploadthing/route.ts +0 -5
- package/src/app/codeblock/LICENSE +0 -21
- package/src/app/codeblock/styles.css +0 -289
- package/src/app/favicon.ico +0 -0
- package/src/app/globals.css +0 -223
- package/src/app/layout.client.tsx +0 -15
- package/src/app/layout.tsx +0 -30
- package/src/components/app-sidebar.tsx +0 -162
- package/src/components/code-editor/mdx.lazy.tsx +0 -18
- package/src/components/code-editor/mdx.tsx +0 -48
- package/src/components/code-editor/yaml.lazy.tsx +0 -20
- package/src/components/code-editor/yaml.tsx +0 -71
- package/src/components/collection/actions.tsx +0 -41
- package/src/components/collection/client.tsx +0 -63
- package/src/components/collection/context.tsx +0 -24
- package/src/components/collection/document/actions.tsx +0 -83
- package/src/components/editor/editor-base-kit.tsx +0 -37
- package/src/components/editor/editor-kit.tsx +0 -87
- package/src/components/editor/md.tsx +0 -60
- package/src/components/editor/plugins/ai-kit.tsx +0 -102
- package/src/components/editor/plugins/align-base-kit.tsx +0 -16
- package/src/components/editor/plugins/align-kit.tsx +0 -18
- package/src/components/editor/plugins/autoformat-kit.tsx +0 -236
- package/src/components/editor/plugins/basic-blocks-base-kit.tsx +0 -34
- package/src/components/editor/plugins/basic-blocks-kit.tsx +0 -87
- package/src/components/editor/plugins/basic-marks-base-kit.tsx +0 -26
- package/src/components/editor/plugins/basic-marks-kit.tsx +0 -40
- package/src/components/editor/plugins/basic-nodes-kit.tsx +0 -6
- package/src/components/editor/plugins/block-menu-kit.tsx +0 -14
- package/src/components/editor/plugins/block-placeholder-kit.tsx +0 -17
- package/src/components/editor/plugins/block-selection-kit.tsx +0 -54
- package/src/components/editor/plugins/callout-base-kit.tsx +0 -5
- package/src/components/editor/plugins/callout-kit.tsx +0 -7
- package/src/components/editor/plugins/code-block-base-kit.tsx +0 -16
- package/src/components/editor/plugins/code-block-kit.tsx +0 -19
- package/src/components/editor/plugins/column-base-kit.tsx +0 -11
- package/src/components/editor/plugins/column-kit.tsx +0 -10
- package/src/components/editor/plugins/comment-base-kit.tsx +0 -5
- package/src/components/editor/plugins/comment-kit.tsx +0 -92
- package/src/components/editor/plugins/copilot-kit.tsx +0 -70
- package/src/components/editor/plugins/cursor-overlay-kit.tsx +0 -13
- package/src/components/editor/plugins/date-base-kit.tsx +0 -5
- package/src/components/editor/plugins/date-kit.tsx +0 -7
- package/src/components/editor/plugins/discussion-kit.tsx +0 -142
- package/src/components/editor/plugins/dnd-kit.tsx +0 -25
- package/src/components/editor/plugins/emoji-kit.tsx +0 -13
- package/src/components/editor/plugins/exit-break-kit.tsx +0 -12
- package/src/components/editor/plugins/fixed-toolbar-kit.tsx +0 -19
- package/src/components/editor/plugins/floating-toolbar-kit.tsx +0 -19
- package/src/components/editor/plugins/font-base-kit.tsx +0 -20
- package/src/components/editor/plugins/font-kit.tsx +0 -29
- package/src/components/editor/plugins/indent-base-kit.tsx +0 -13
- package/src/components/editor/plugins/indent-kit.tsx +0 -22
- package/src/components/editor/plugins/line-height-base-kit.tsx +0 -14
- package/src/components/editor/plugins/line-height-kit.tsx +0 -16
- package/src/components/editor/plugins/link-base-kit.tsx +0 -5
- package/src/components/editor/plugins/link-kit.tsx +0 -15
- package/src/components/editor/plugins/list-base-kit.tsx +0 -17
- package/src/components/editor/plugins/list-kit.tsx +0 -26
- package/src/components/editor/plugins/markdown-kit.tsx +0 -13
- package/src/components/editor/plugins/math-base-kit.tsx +0 -11
- package/src/components/editor/plugins/math-kit.tsx +0 -10
- package/src/components/editor/plugins/media-base-kit.tsx +0 -25
- package/src/components/editor/plugins/media-kit.tsx +0 -28
- package/src/components/editor/plugins/slash-kit.tsx +0 -18
- package/src/components/editor/plugins/suggestion-base-kit.tsx +0 -5
- package/src/components/editor/plugins/suggestion-kit.tsx +0 -83
- package/src/components/editor/plugins/table-base-kit.tsx +0 -20
- package/src/components/editor/plugins/table-kit.tsx +0 -22
- package/src/components/editor/settings-dialog.tsx +0 -418
- package/src/components/editor/transforms.ts +0 -193
- package/src/components/editor/types.ts +0 -149
- package/src/components/editor/ui/ai-chat-editor.tsx +0 -20
- package/src/components/editor/ui/ai-menu.tsx +0 -663
- package/src/components/editor/ui/ai-node.tsx +0 -40
- package/src/components/editor/ui/ai-toolbar-button.tsx +0 -23
- package/src/components/editor/ui/align-toolbar-button.tsx +0 -78
- package/src/components/editor/ui/block-context-menu.tsx +0 -154
- package/src/components/editor/ui/block-discussion.tsx +0 -318
- package/src/components/editor/ui/block-draggable.tsx +0 -464
- package/src/components/editor/ui/block-list-static.tsx +0 -75
- package/src/components/editor/ui/block-list.tsx +0 -72
- package/src/components/editor/ui/block-selection.tsx +0 -37
- package/src/components/editor/ui/block-suggestion.tsx +0 -438
- package/src/components/editor/ui/blockquote-node-static.tsx +0 -5
- package/src/components/editor/ui/blockquote-node.tsx +0 -7
- package/src/components/editor/ui/callout-node-static.tsx +0 -30
- package/src/components/editor/ui/callout-node.tsx +0 -64
- package/src/components/editor/ui/caption.tsx +0 -55
- package/src/components/editor/ui/code-block-node-static.tsx +0 -33
- package/src/components/editor/ui/code-block-node.tsx +0 -161
- package/src/components/editor/ui/code-node-static.tsx +0 -15
- package/src/components/editor/ui/code-node.tsx +0 -17
- package/src/components/editor/ui/column-node-static.tsx +0 -27
- package/src/components/editor/ui/column-node.tsx +0 -285
- package/src/components/editor/ui/comment-node-static.tsx +0 -12
- package/src/components/editor/ui/comment-node.tsx +0 -43
- package/src/components/editor/ui/comment-toolbar-button.tsx +0 -24
- package/src/components/editor/ui/comment.tsx +0 -577
- package/src/components/editor/ui/cursor-overlay.tsx +0 -66
- package/src/components/editor/ui/date-node-static.tsx +0 -45
- package/src/components/editor/ui/date-node.tsx +0 -86
- package/src/components/editor/ui/editor-static.tsx +0 -47
- package/src/components/editor/ui/editor.tsx +0 -120
- package/src/components/editor/ui/emoji-node.tsx +0 -65
- package/src/components/editor/ui/emoji-toolbar-button.tsx +0 -582
- package/src/components/editor/ui/equation-node-static.tsx +0 -94
- package/src/components/editor/ui/equation-node.tsx +0 -218
- package/src/components/editor/ui/equation-toolbar-button.tsx +0 -24
- package/src/components/editor/ui/fixed-toolbar-buttons.tsx +0 -135
- package/src/components/editor/ui/fixed-toolbar.tsx +0 -17
- package/src/components/editor/ui/floating-toolbar-buttons.tsx +0 -72
- package/src/components/editor/ui/floating-toolbar.tsx +0 -76
- package/src/components/editor/ui/font-color-toolbar-button.tsx +0 -804
- package/src/components/editor/ui/font-size-toolbar-button.tsx +0 -102
- package/src/components/editor/ui/ghost-text.tsx +0 -27
- package/src/components/editor/ui/heading-node-static.tsx +0 -54
- package/src/components/editor/ui/heading-node.tsx +0 -54
- package/src/components/editor/ui/highlight-node-static.tsx +0 -11
- package/src/components/editor/ui/highlight-node.tsx +0 -13
- package/src/components/editor/ui/history-toolbar-button.tsx +0 -41
- package/src/components/editor/ui/hr-node-static.tsx +0 -16
- package/src/components/editor/ui/hr-node.tsx +0 -28
- package/src/components/editor/ui/indent-toolbar-button.tsx +0 -27
- package/src/components/editor/ui/inline-combobox.tsx +0 -251
- package/src/components/editor/ui/insert-toolbar-button.tsx +0 -242
- package/src/components/editor/ui/kbd-node-static.tsx +0 -15
- package/src/components/editor/ui/kbd-node.tsx +0 -17
- package/src/components/editor/ui/line-height-toolbar-button.tsx +0 -66
- package/src/components/editor/ui/link-node-static.tsx +0 -21
- package/src/components/editor/ui/link-node.tsx +0 -37
- package/src/components/editor/ui/link-toolbar-button.tsx +0 -18
- package/src/components/editor/ui/link-toolbar.tsx +0 -196
- package/src/components/editor/ui/list-toolbar-button.tsx +0 -195
- package/src/components/editor/ui/mark-toolbar-button.tsx +0 -20
- package/src/components/editor/ui/media-image-node-static.tsx +0 -33
- package/src/components/editor/ui/media-image-node.tsx +0 -75
- package/src/components/editor/ui/media-placeholder-node.tsx +0 -235
- package/src/components/editor/ui/media-preview-dialog.tsx +0 -145
- package/src/components/editor/ui/media-toolbar-button.tsx +0 -202
- package/src/components/editor/ui/media-toolbar.tsx +0 -100
- package/src/components/editor/ui/media-upload-toast.tsx +0 -59
- package/src/components/editor/ui/media-video-node-static.tsx +0 -23
- package/src/components/editor/ui/mode-toolbar-button.tsx +0 -121
- package/src/components/editor/ui/paragraph-node-static.tsx +0 -13
- package/src/components/editor/ui/paragraph-node.tsx +0 -15
- package/src/components/editor/ui/resize-handle.tsx +0 -79
- package/src/components/editor/ui/slash-node.tsx +0 -274
- package/src/components/editor/ui/suggestion-node-static.tsx +0 -30
- package/src/components/editor/ui/suggestion-node.tsx +0 -157
- package/src/components/editor/ui/suggestion-toolbar-button.tsx +0 -25
- package/src/components/editor/ui/table-icons.tsx +0 -685
- package/src/components/editor/ui/table-node-static.tsx +0 -86
- package/src/components/editor/ui/table-node.tsx +0 -569
- package/src/components/editor/ui/table-toolbar-button.tsx +0 -260
- package/src/components/editor/ui/turn-into-toolbar-button.tsx +0 -176
- package/src/components/editor/use-chat.ts +0 -120
- package/src/components/icons/logo.tsx +0 -37
- package/src/components/json-schema-editor/client.tsx +0 -55
- package/src/components/json-schema-editor/components/inputs.tsx +0 -612
- package/src/components/json-schema-editor/get-default-values.ts +0 -29
- package/src/components/json-schema-editor/schema.tsx +0 -206
- package/src/components/json-schema-editor/utils/merge-schema.ts +0 -167
- package/src/components/json-schema-editor/utils/schema-to-string.ts +0 -87
- package/src/components/nav-user.tsx +0 -102
- package/src/components/site-header.tsx +0 -13
- package/src/components/ui/alert-dialog.tsx +0 -182
- package/src/components/ui/avatar.tsx +0 -96
- package/src/components/ui/button.tsx +0 -65
- package/src/components/ui/calendar.tsx +0 -186
- package/src/components/ui/checkbox.tsx +0 -29
- package/src/components/ui/combobox.tsx +0 -267
- package/src/components/ui/command.tsx +0 -180
- package/src/components/ui/context-menu.tsx +0 -161
- package/src/components/ui/dialog.tsx +0 -142
- package/src/components/ui/drawer.tsx +0 -120
- package/src/components/ui/dropdown-menu.tsx +0 -239
- package/src/components/ui/field.tsx +0 -224
- package/src/components/ui/input-group.tsx +0 -144
- package/src/components/ui/input.tsx +0 -19
- package/src/components/ui/label.tsx +0 -18
- package/src/components/ui/popover.tsx +0 -76
- package/src/components/ui/select.tsx +0 -182
- package/src/components/ui/separator.tsx +0 -28
- package/src/components/ui/sheet.tsx +0 -130
- package/src/components/ui/sidebar.tsx +0 -608
- package/src/components/ui/sonner.tsx +0 -45
- package/src/components/ui/spinner.tsx +0 -15
- package/src/components/ui/table.tsx +0 -89
- package/src/components/ui/tabs.tsx +0 -60
- package/src/components/ui/textarea.tsx +0 -18
- package/src/components/ui/toggle-group.tsx +0 -86
- package/src/components/ui/toggle.tsx +0 -45
- package/src/components/ui/toolbar.tsx +0 -365
- package/src/components/ui/tooltip.tsx +0 -57
- package/src/hooks/editor/use-is-creator.ts +0 -21
- package/src/hooks/use-mobile.ts +0 -19
- package/src/hooks/use-mounted.ts +0 -11
- package/src/hooks/use-upload-file.ts +0 -121
- package/src/lib/ai/markdown-joiner-transform.ts +0 -235
- package/src/lib/config.ts +0 -42
- package/src/lib/data/actions.ts +0 -46
- package/src/lib/data/boundary.client.tsx +0 -22
- package/src/lib/data/boundary.tsx +0 -22
- package/src/lib/data/query.ts +0 -9
- package/src/lib/data/store.ts +0 -52
- package/src/lib/lowlight.ts +0 -3
- package/src/lib/uploadthing.ts +0 -19
- package/src/lib/utils/deep-equal.ts +0 -37
- package/src/lib/utils/remove-undefined.ts +0 -21
- package/src/lib/utils/urls.ts +0 -6
- package/src/lib/utils.ts +0 -6
- package/tsconfig.build.json +0 -24
- package/tsconfig.json +0 -37
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import{r as ue,j as M}from"./react-B8--K7an.js";import{F as We}from"./index-Bx93mXy1.js";import{z as $e}from"./index-BdrDVoE8.js";function _e(e){return typeof e>"u"||e===null}function Qe(e){return typeof e=="object"&&e!==null}function Ve(e){return Array.isArray(e)?e:_e(e)?[]:[e]}function Xe(e,n){var i,l,r,u;if(n)for(u=Object.keys(n),i=0,l=u.length;i<l;i+=1)r=u[i],e[r]=n[r];return e}function ze(e,n){var i="",l;for(l=0;l<n;l+=1)i+=e;return i}function Ze(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Je=_e,en=Qe,nn=Ve,rn=ze,ln=Ze,on=Xe,y={isNothing:Je,isObject:en,toArray:nn,repeat:rn,isNegativeZero:ln,extend:on};function we(e,n){var i="",l=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+='in "'+e.mark.name+'" '),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(i+=`
|
|
2
|
+
|
|
3
|
+
`+e.mark.snippet),l+" "+i):l}function P(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=we(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}P.prototype=Object.create(Error.prototype);P.prototype.constructor=P;P.prototype.toString=function(n){return this.name+": "+we(this,n)};var w=P;function Q(e,n,i,l,r){var u="",o="",f=Math.floor(r/2)-1;return l-n>f&&(u=" ... ",n=l-f+u.length),i-l>f&&(o=" ...",i=l+f-o.length),{str:u+e.slice(n,i).replace(/\t/g,"→")+o,pos:l-n+u.length}}function V(e,n){return y.repeat(" ",n-e.length)+e}function un(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,l=[0],r=[],u,o=-1;u=i.exec(e.buffer);)r.push(u.index),l.push(u.index+u[0].length),e.position<=u.index&&o<0&&(o=l.length-2);o<0&&(o=l.length-1);var f="",c,a,p=Math.min(e.line+n.linesAfter,r.length).toString().length,t=n.maxLength-(n.indent+p+3);for(c=1;c<=n.linesBefore&&!(o-c<0);c++)a=Q(e.buffer,l[o-c],r[o-c],e.position-(l[o]-l[o-c]),t),f=y.repeat(" ",n.indent)+V((e.line-c+1).toString(),p)+" | "+a.str+`
|
|
4
|
+
`+f;for(a=Q(e.buffer,l[o],r[o],e.position,t),f+=y.repeat(" ",n.indent)+V((e.line+1).toString(),p)+" | "+a.str+`
|
|
5
|
+
`,f+=y.repeat("-",n.indent+p+3+a.pos)+`^
|
|
6
|
+
`,c=1;c<=n.linesAfter&&!(o+c>=r.length);c++)a=Q(e.buffer,l[o+c],r[o+c],e.position-(l[o]-l[o+c]),t),f+=y.repeat(" ",n.indent)+V((e.line+c+1).toString(),p)+" | "+a.str+`
|
|
7
|
+
`;return f.replace(/\n$/,"")}var fn=un,cn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],an=["scalar","sequence","mapping"];function tn(e){var n={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(l){n[String(l)]=i})}),n}function pn(e,n){if(n=n||{},Object.keys(n).forEach(function(i){if(cn.indexOf(i)===-1)throw new w('Unknown option "'+i+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=tn(n.styleAliases||null),an.indexOf(this.kind)===-1)throw new w('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var C=pn;function fe(e,n){var i=[];return e[n].forEach(function(l){var r=i.length;i.forEach(function(u,o){u.tag===l.tag&&u.kind===l.kind&&u.multi===l.multi&&(r=o)}),i[r]=l}),i}function hn(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function l(r){r.multi?(e.multi[r.kind].push(r),e.multi.fallback.push(r)):e[r.kind][r.tag]=e.fallback[r.tag]=r}for(n=0,i=arguments.length;n<i;n+=1)arguments[n].forEach(l);return e}function z(e){return this.extend(e)}z.prototype.extend=function(n){var i=[],l=[];if(n instanceof C)l.push(n);else if(Array.isArray(n))l=l.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(l=l.concat(n.explicit));else throw new w("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(u){if(!(u instanceof C))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new w("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new w("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(u){if(!(u instanceof C))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(z.prototype);return r.implicit=(this.implicit||[]).concat(i),r.explicit=(this.explicit||[]).concat(l),r.compiledImplicit=fe(r,"implicit"),r.compiledExplicit=fe(r,"explicit"),r.compiledTypeMap=hn(r.compiledImplicit,r.compiledExplicit),r};var dn=z,sn=new C("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),xn=new C("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),mn=new C("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),gn=new dn({explicit:[sn,xn,mn]});function vn(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function An(){return null}function yn(e){return e===null}var Cn=new C("tag:yaml.org,2002:null",{kind:"scalar",resolve:vn,construct:An,predicate:yn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function _n(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function wn(e){return e==="true"||e==="True"||e==="TRUE"}function bn(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Sn=new C("tag:yaml.org,2002:bool",{kind:"scalar",resolve:_n,construct:wn,predicate:bn,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function En(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Fn(e){return 48<=e&&e<=55}function Tn(e){return 48<=e&&e<=57}function On(e){if(e===null)return!1;var n=e.length,i=0,l=!1,r;if(!n)return!1;if(r=e[i],(r==="-"||r==="+")&&(r=e[++i]),r==="0"){if(i+1===n)return!0;if(r=e[++i],r==="b"){for(i++;i<n;i++)if(r=e[i],r!=="_"){if(r!=="0"&&r!=="1")return!1;l=!0}return l&&r!=="_"}if(r==="x"){for(i++;i<n;i++)if(r=e[i],r!=="_"){if(!En(e.charCodeAt(i)))return!1;l=!0}return l&&r!=="_"}if(r==="o"){for(i++;i<n;i++)if(r=e[i],r!=="_"){if(!Fn(e.charCodeAt(i)))return!1;l=!0}return l&&r!=="_"}}if(r==="_")return!1;for(;i<n;i++)if(r=e[i],r!=="_"){if(!Tn(e.charCodeAt(i)))return!1;l=!0}return!(!l||r==="_")}function In(e){var n=e,i=1,l;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),l=n[0],(l==="-"||l==="+")&&(l==="-"&&(i=-1),n=n.slice(1),l=n[0]),n==="0")return 0;if(l==="0"){if(n[1]==="b")return i*parseInt(n.slice(2),2);if(n[1]==="x")return i*parseInt(n.slice(2),16);if(n[1]==="o")return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function kn(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!y.isNegativeZero(e)}var Ln=new C("tag:yaml.org,2002:int",{kind:"scalar",resolve:On,construct:In,predicate:kn,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Nn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Rn(e){return!(e===null||!Nn.test(e)||e[e.length-1]==="_")}function Dn(e){var n,i;return n=e.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}var Mn=/^[-+]?[0-9]+e/;function Bn(e,n){var i;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(y.isNegativeZero(e))return"-0.0";return i=e.toString(10),Mn.test(i)?i.replace("e",".e"):i}function Pn(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||y.isNegativeZero(e))}var Yn=new C("tag:yaml.org,2002:float",{kind:"scalar",resolve:Rn,construct:Dn,predicate:Pn,represent:Bn,defaultStyle:"lowercase"}),jn=gn.extend({implicit:[Cn,Sn,Ln,Yn]}),Hn=jn,be=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Se=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Un(e){return e===null?!1:be.exec(e)!==null||Se.exec(e)!==null}function Kn(e){var n,i,l,r,u,o,f,c=0,a=null,p,t,d;if(n=be.exec(e),n===null&&(n=Se.exec(e)),n===null)throw new Error("Date resolve error");if(i=+n[1],l=+n[2]-1,r=+n[3],!n[4])return new Date(Date.UTC(i,l,r));if(u=+n[4],o=+n[5],f=+n[6],n[7]){for(c=n[7].slice(0,3);c.length<3;)c+="0";c=+c}return n[9]&&(p=+n[10],t=+(n[11]||0),a=(p*60+t)*6e4,n[9]==="-"&&(a=-a)),d=new Date(Date.UTC(i,l,r,u,o,f,c)),a&&d.setTime(d.getTime()-a),d}function qn(e){return e.toISOString()}var Gn=new C("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Un,construct:Kn,instanceOf:Date,represent:qn});function Wn(e){return e==="<<"||e===null}var $n=new C("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Wn}),ie=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
8
|
+
\r`;function Qn(e){if(e===null)return!1;var n,i,l=0,r=e.length,u=ie;for(i=0;i<r;i++)if(n=u.indexOf(e.charAt(i)),!(n>64)){if(n<0)return!1;l+=6}return l%8===0}function Vn(e){var n,i,l=e.replace(/[\r\n=]/g,""),r=l.length,u=ie,o=0,f=[];for(n=0;n<r;n++)n%4===0&&n&&(f.push(o>>16&255),f.push(o>>8&255),f.push(o&255)),o=o<<6|u.indexOf(l.charAt(n));return i=r%4*6,i===0?(f.push(o>>16&255),f.push(o>>8&255),f.push(o&255)):i===18?(f.push(o>>10&255),f.push(o>>2&255)):i===12&&f.push(o>>4&255),new Uint8Array(f)}function Xn(e){var n="",i=0,l,r,u=e.length,o=ie;for(l=0;l<u;l++)l%3===0&&l&&(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]),i=(i<<8)+e[l];return r=u%3,r===0?(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]):r===2?(n+=o[i>>10&63],n+=o[i>>4&63],n+=o[i<<2&63],n+=o[64]):r===1&&(n+=o[i>>2&63],n+=o[i<<4&63],n+=o[64],n+=o[64]),n}function zn(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Zn=new C("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Qn,construct:Vn,predicate:zn,represent:Xn}),Jn=Object.prototype.hasOwnProperty,ei=Object.prototype.toString;function ni(e){if(e===null)return!0;var n=[],i,l,r,u,o,f=e;for(i=0,l=f.length;i<l;i+=1){if(r=f[i],o=!1,ei.call(r)!=="[object Object]")return!1;for(u in r)if(Jn.call(r,u))if(!o)o=!0;else return!1;if(!o)return!1;if(n.indexOf(u)===-1)n.push(u);else return!1}return!0}function ii(e){return e!==null?e:[]}var ri=new C("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ni,construct:ii}),li=Object.prototype.toString;function oi(e){if(e===null)return!0;var n,i,l,r,u,o=e;for(u=new Array(o.length),n=0,i=o.length;n<i;n+=1){if(l=o[n],li.call(l)!=="[object Object]"||(r=Object.keys(l),r.length!==1))return!1;u[n]=[r[0],l[r[0]]]}return!0}function ui(e){if(e===null)return[];var n,i,l,r,u,o=e;for(u=new Array(o.length),n=0,i=o.length;n<i;n+=1)l=o[n],r=Object.keys(l),u[n]=[r[0],l[r[0]]];return u}var fi=new C("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:oi,construct:ui}),ci=Object.prototype.hasOwnProperty;function ai(e){if(e===null)return!0;var n,i=e;for(n in i)if(ci.call(i,n)&&i[n]!==null)return!1;return!0}function ti(e){return e!==null?e:{}}var pi=new C("tag:yaml.org,2002:set",{kind:"mapping",resolve:ai,construct:ti}),Ee=Hn.extend({implicit:[Gn,$n],explicit:[Zn,ri,fi,pi]}),O=Object.prototype.hasOwnProperty,U=1,Fe=2,Te=3,K=4,X=1,hi=2,ce=3,di=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,si=/[\x85\u2028\u2029]/,xi=/[,\[\]\{\}]/,Oe=/^(?:!|!!|![a-z\-]+!)$/i,Ie=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ae(e){return Object.prototype.toString.call(e)}function E(e){return e===10||e===13}function I(e){return e===9||e===32}function b(e){return e===9||e===32||e===10||e===13}function N(e){return e===44||e===91||e===93||e===123||e===125}function mi(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function gi(e){return e===120?2:e===117?4:e===85?8:0}function vi(e){return 48<=e&&e<=57?e-48:-1}function te(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
9
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function Ai(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function ke(e,n,i){n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):e[n]=i}var Le=new Array(256),Ne=new Array(256);for(var k=0;k<256;k++)Le[k]=te(k)?1:0,Ne[k]=te(k);function yi(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||Ee,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Re(e,n){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=fn(i),new w(n,i)}function h(e,n){throw Re(e,n)}function q(e,n){e.onWarning&&e.onWarning.call(null,Re(e,n))}var pe={YAML:function(n,i,l){var r,u,o;n.version!==null&&h(n,"duplication of %YAML directive"),l.length!==1&&h(n,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),r===null&&h(n,"ill-formed argument of the YAML directive"),u=parseInt(r[1],10),o=parseInt(r[2],10),u!==1&&h(n,"unacceptable YAML version of the document"),n.version=l[0],n.checkLineBreaks=o<2,o!==1&&o!==2&&q(n,"unsupported YAML version of the document")},TAG:function(n,i,l){var r,u;l.length!==2&&h(n,"TAG directive accepts exactly two arguments"),r=l[0],u=l[1],Oe.test(r)||h(n,"ill-formed tag handle (first argument) of the TAG directive"),O.call(n.tagMap,r)&&h(n,'there is a previously declared suffix for "'+r+'" tag handle'),Ie.test(u)||h(n,"ill-formed tag prefix (second argument) of the TAG directive");try{u=decodeURIComponent(u)}catch{h(n,"tag prefix is malformed: "+u)}n.tagMap[r]=u}};function T(e,n,i,l){var r,u,o,f;if(n<i){if(f=e.input.slice(n,i),l)for(r=0,u=f.length;r<u;r+=1)o=f.charCodeAt(r),o===9||32<=o&&o<=1114111||h(e,"expected valid JSON character");else di.test(f)&&h(e,"the stream contains non-printable characters");e.result+=f}}function he(e,n,i,l){var r,u,o,f;for(y.isObject(i)||h(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(i),o=0,f=r.length;o<f;o+=1)u=r[o],O.call(n,u)||(ke(n,u,i[u]),l[u]=!0)}function R(e,n,i,l,r,u,o,f,c){var a,p;if(Array.isArray(r))for(r=Array.prototype.slice.call(r),a=0,p=r.length;a<p;a+=1)Array.isArray(r[a])&&h(e,"nested arrays are not supported inside keys"),typeof r=="object"&&ae(r[a])==="[object Object]"&&(r[a]="[object Object]");if(typeof r=="object"&&ae(r)==="[object Object]"&&(r="[object Object]"),r=String(r),n===null&&(n={}),l==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(a=0,p=u.length;a<p;a+=1)he(e,n,u[a],i);else he(e,n,u,i);else!e.json&&!O.call(i,r)&&O.call(n,r)&&(e.line=o||e.line,e.lineStart=f||e.lineStart,e.position=c||e.position,h(e,"duplicated mapping key")),ke(n,r,u),delete i[r];return n}function re(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):h(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function A(e,n,i){for(var l=0,r=e.input.charCodeAt(e.position);r!==0;){for(;I(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(n&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(E(r))for(re(e),r=e.input.charCodeAt(e.position),l++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return i!==-1&&l!==0&&e.lineIndent<i&&q(e,"deficient indentation"),l}function $(e){var n=e.position,i;return i=e.input.charCodeAt(n),!!((i===45||i===46)&&i===e.input.charCodeAt(n+1)&&i===e.input.charCodeAt(n+2)&&(n+=3,i=e.input.charCodeAt(n),i===0||b(i)))}function le(e,n){n===1?e.result+=" ":n>1&&(e.result+=y.repeat(`
|
|
10
|
+
`,n-1))}function Ci(e,n,i){var l,r,u,o,f,c,a,p,t=e.kind,d=e.result,s;if(s=e.input.charCodeAt(e.position),b(s)||N(s)||s===35||s===38||s===42||s===33||s===124||s===62||s===39||s===34||s===37||s===64||s===96||(s===63||s===45)&&(r=e.input.charCodeAt(e.position+1),b(r)||i&&N(r)))return!1;for(e.kind="scalar",e.result="",u=o=e.position,f=!1;s!==0;){if(s===58){if(r=e.input.charCodeAt(e.position+1),b(r)||i&&N(r))break}else if(s===35){if(l=e.input.charCodeAt(e.position-1),b(l))break}else{if(e.position===e.lineStart&&$(e)||i&&N(s))break;if(E(s))if(c=e.line,a=e.lineStart,p=e.lineIndent,A(e,!1,-1),e.lineIndent>=n){f=!0,s=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=a,e.lineIndent=p;break}}f&&(T(e,u,o,!1),le(e,e.line-c),u=o=e.position,f=!1),I(s)||(o=e.position+1),s=e.input.charCodeAt(++e.position)}return T(e,u,o,!1),e.result?!0:(e.kind=t,e.result=d,!1)}function _i(e,n){var i,l,r;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(T(e,l,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)l=e.position,e.position++,r=e.position;else return!0;else E(i)?(T(e,l,r,!0),le(e,A(e,!1,n)),l=r=e.position):e.position===e.lineStart&&$(e)?h(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);h(e,"unexpected end of the stream within a single quoted scalar")}function wi(e,n){var i,l,r,u,o,f;if(f=e.input.charCodeAt(e.position),f!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=l=e.position;(f=e.input.charCodeAt(e.position))!==0;){if(f===34)return T(e,i,e.position,!0),e.position++,!0;if(f===92){if(T(e,i,e.position,!0),f=e.input.charCodeAt(++e.position),E(f))A(e,!1,n);else if(f<256&&Le[f])e.result+=Ne[f],e.position++;else if((o=gi(f))>0){for(r=o,u=0;r>0;r--)f=e.input.charCodeAt(++e.position),(o=mi(f))>=0?u=(u<<4)+o:h(e,"expected hexadecimal character");e.result+=Ai(u),e.position++}else h(e,"unknown escape sequence");i=l=e.position}else E(f)?(T(e,i,l,!0),le(e,A(e,!1,n)),i=l=e.position):e.position===e.lineStart&&$(e)?h(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}h(e,"unexpected end of the stream within a double quoted scalar")}function bi(e,n){var i=!0,l,r,u,o=e.tag,f,c=e.anchor,a,p,t,d,s,x=Object.create(null),g,v,S,m;if(m=e.input.charCodeAt(e.position),m===91)p=93,s=!1,f=[];else if(m===123)p=125,s=!0,f={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),m=e.input.charCodeAt(++e.position);m!==0;){if(A(e,!0,n),m=e.input.charCodeAt(e.position),m===p)return e.position++,e.tag=o,e.anchor=c,e.kind=s?"mapping":"sequence",e.result=f,!0;i?m===44&&h(e,"expected the node content, but found ','"):h(e,"missed comma between flow collection entries"),v=g=S=null,t=d=!1,m===63&&(a=e.input.charCodeAt(e.position+1),b(a)&&(t=d=!0,e.position++,A(e,!0,n))),l=e.line,r=e.lineStart,u=e.position,D(e,n,U,!1,!0),v=e.tag,g=e.result,A(e,!0,n),m=e.input.charCodeAt(e.position),(d||e.line===l)&&m===58&&(t=!0,m=e.input.charCodeAt(++e.position),A(e,!0,n),D(e,n,U,!1,!0),S=e.result),s?R(e,f,x,v,g,S,l,r,u):t?f.push(R(e,null,x,v,g,S,l,r,u)):f.push(g),A(e,!0,n),m=e.input.charCodeAt(e.position),m===44?(i=!0,m=e.input.charCodeAt(++e.position)):i=!1}h(e,"unexpected end of the stream within a flow collection")}function Si(e,n){var i,l,r=X,u=!1,o=!1,f=n,c=0,a=!1,p,t;if(t=e.input.charCodeAt(e.position),t===124)l=!1;else if(t===62)l=!0;else return!1;for(e.kind="scalar",e.result="";t!==0;)if(t=e.input.charCodeAt(++e.position),t===43||t===45)X===r?r=t===43?ce:hi:h(e,"repeat of a chomping mode identifier");else if((p=vi(t))>=0)p===0?h(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?h(e,"repeat of an indentation width identifier"):(f=n+p-1,o=!0);else break;if(I(t)){do t=e.input.charCodeAt(++e.position);while(I(t));if(t===35)do t=e.input.charCodeAt(++e.position);while(!E(t)&&t!==0)}for(;t!==0;){for(re(e),e.lineIndent=0,t=e.input.charCodeAt(e.position);(!o||e.lineIndent<f)&&t===32;)e.lineIndent++,t=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>f&&(f=e.lineIndent),E(t)){c++;continue}if(e.lineIndent<f){r===ce?e.result+=y.repeat(`
|
|
11
|
+
`,u?1+c:c):r===X&&u&&(e.result+=`
|
|
12
|
+
`);break}for(l?I(t)?(a=!0,e.result+=y.repeat(`
|
|
13
|
+
`,u?1+c:c)):a?(a=!1,e.result+=y.repeat(`
|
|
14
|
+
`,c+1)):c===0?u&&(e.result+=" "):e.result+=y.repeat(`
|
|
15
|
+
`,c):e.result+=y.repeat(`
|
|
16
|
+
`,u?1+c:c),u=!0,o=!0,c=0,i=e.position;!E(t)&&t!==0;)t=e.input.charCodeAt(++e.position);T(e,i,e.position,!1)}return!0}function de(e,n){var i,l=e.tag,r=e.anchor,u=[],o,f=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,h(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!b(o))));){if(f=!0,e.position++,A(e,!0,-1)&&e.lineIndent<=n){u.push(null),c=e.input.charCodeAt(e.position);continue}if(i=e.line,D(e,n,Te,!1,!0),u.push(e.result),A(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>n)&&c!==0)h(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return f?(e.tag=l,e.anchor=r,e.kind="sequence",e.result=u,!0):!1}function Ei(e,n,i){var l,r,u,o,f,c,a=e.tag,p=e.anchor,t={},d=Object.create(null),s=null,x=null,g=null,v=!1,S=!1,m;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=t),m=e.input.charCodeAt(e.position);m!==0;){if(!v&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,h(e,"tab characters must not be used in indentation")),l=e.input.charCodeAt(e.position+1),u=e.line,(m===63||m===58)&&b(l))m===63?(v&&(R(e,t,d,s,x,null,o,f,c),s=x=g=null),S=!0,v=!0,r=!0):v?(v=!1,r=!0):h(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,m=l;else{if(o=e.line,f=e.lineStart,c=e.position,!D(e,i,Fe,!1,!0))break;if(e.line===u){for(m=e.input.charCodeAt(e.position);I(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),b(m)||h(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(R(e,t,d,s,x,null,o,f,c),s=x=g=null),S=!0,v=!1,r=!1,s=e.tag,x=e.result;else if(S)h(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=p,!0}else if(S)h(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=p,!0}if((e.line===u||e.lineIndent>n)&&(v&&(o=e.line,f=e.lineStart,c=e.position),D(e,n,K,!0,r)&&(v?x=e.result:g=e.result),v||(R(e,t,d,s,x,g,o,f,c),s=x=g=null),A(e,!0,-1),m=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>n)&&m!==0)h(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return v&&R(e,t,d,s,x,null,o,f,c),S&&(e.tag=a,e.anchor=p,e.kind="mapping",e.result=t),S}function Fi(e){var n,i=!1,l=!1,r,u,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&h(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(i=!0,o=e.input.charCodeAt(++e.position)):o===33?(l=!0,r="!!",o=e.input.charCodeAt(++e.position)):r="!",n=e.position,i){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(u=e.input.slice(n,e.position),o=e.input.charCodeAt(++e.position)):h(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!b(o);)o===33&&(l?h(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(n-1,e.position+1),Oe.test(r)||h(e,"named tag handle cannot contain such characters"),l=!0,n=e.position+1)),o=e.input.charCodeAt(++e.position);u=e.input.slice(n,e.position),xi.test(u)&&h(e,"tag suffix cannot contain flow indicator characters")}u&&!Ie.test(u)&&h(e,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{h(e,"tag name is malformed: "+u)}return i?e.tag=u:O.call(e.tagMap,r)?e.tag=e.tagMap[r]+u:r==="!"?e.tag="!"+u:r==="!!"?e.tag="tag:yaml.org,2002:"+u:h(e,'undeclared tag handle "'+r+'"'),!0}function Ti(e){var n,i;if(i=e.input.charCodeAt(e.position),i!==38)return!1;for(e.anchor!==null&&h(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),n=e.position;i!==0&&!b(i)&&!N(i);)i=e.input.charCodeAt(++e.position);return e.position===n&&h(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function Oi(e){var n,i,l;if(l=e.input.charCodeAt(e.position),l!==42)return!1;for(l=e.input.charCodeAt(++e.position),n=e.position;l!==0&&!b(l)&&!N(l);)l=e.input.charCodeAt(++e.position);return e.position===n&&h(e,"name of an alias node must contain at least one character"),i=e.input.slice(n,e.position),O.call(e.anchorMap,i)||h(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],A(e,!0,-1),!0}function D(e,n,i,l,r){var u,o,f,c=1,a=!1,p=!1,t,d,s,x,g,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,u=o=f=K===i||Te===i,l&&A(e,!0,-1)&&(a=!0,e.lineIndent>n?c=1:e.lineIndent===n?c=0:e.lineIndent<n&&(c=-1)),c===1)for(;Fi(e)||Ti(e);)A(e,!0,-1)?(a=!0,f=u,e.lineIndent>n?c=1:e.lineIndent===n?c=0:e.lineIndent<n&&(c=-1)):f=!1;if(f&&(f=a||r),(c===1||K===i)&&(U===i||Fe===i?g=n:g=n+1,v=e.position-e.lineStart,c===1?f&&(de(e,v)||Ei(e,v,g))||bi(e,g)?p=!0:(o&&Si(e,g)||_i(e,g)||wi(e,g)?p=!0:Oi(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&h(e,"alias node should not have any properties")):Ci(e,g,U===i)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(p=f&&de(e,v))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&h(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),t=0,d=e.implicitTypes.length;t<d;t+=1)if(x=e.implicitTypes[t],x.resolve(e.result)){e.result=x.construct(e.result),e.tag=x.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(O.call(e.typeMap[e.kind||"fallback"],e.tag))x=e.typeMap[e.kind||"fallback"][e.tag];else for(x=null,s=e.typeMap.multi[e.kind||"fallback"],t=0,d=s.length;t<d;t+=1)if(e.tag.slice(0,s[t].tag.length)===s[t].tag){x=s[t];break}x||h(e,"unknown tag !<"+e.tag+">"),e.result!==null&&x.kind!==e.kind&&h(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):h(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function Ii(e){var n=e.position,i,l,r,u=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(A(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(u=!0,o=e.input.charCodeAt(++e.position),i=e.position;o!==0&&!b(o);)o=e.input.charCodeAt(++e.position);for(l=e.input.slice(i,e.position),r=[],l.length<1&&h(e,"directive name must not be less than one character in length");o!==0;){for(;I(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!E(o));break}if(E(o))break;for(i=e.position;o!==0&&!b(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(i,e.position))}o!==0&&re(e),O.call(pe,l)?pe[l](e,l,r):q(e,'unknown document directive "'+l+'"')}if(A(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,A(e,!0,-1)):u&&h(e,"directives end mark is expected"),D(e,e.lineIndent-1,K,!1,!0),A(e,!0,-1),e.checkLineBreaks&&si.test(e.input.slice(n,e.position))&&q(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&$(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,A(e,!0,-1));return}if(e.position<e.length-1)h(e,"end of the stream or a document separator is expected");else return}function ki(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
17
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var i=new yi(e,n),l=e.indexOf("\0");for(l!==-1&&(i.position=l,h(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Ii(i);return i.documents}function Li(e,n){var i=ki(e,n);if(i.length!==0){if(i.length===1)return i[0];throw new w("expected a single document in the stream, but found more")}}var Ni=Li,Ri={load:Ni},De=Object.prototype.toString,Me=Object.prototype.hasOwnProperty,oe=65279,Di=9,Y=10,Mi=13,Bi=32,Pi=33,Yi=34,Z=35,ji=37,Hi=38,Ui=39,Ki=42,Be=44,qi=45,G=58,Gi=61,Wi=62,$i=63,Qi=64,Pe=91,Ye=93,Vi=96,je=123,Xi=124,He=125,_={};_[0]="\\0";_[7]="\\a";_[8]="\\b";_[9]="\\t";_[10]="\\n";_[11]="\\v";_[12]="\\f";_[13]="\\r";_[27]="\\e";_[34]='\\"';_[92]="\\\\";_[133]="\\N";_[160]="\\_";_[8232]="\\L";_[8233]="\\P";var zi=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Zi=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ji(e,n){var i,l,r,u,o,f,c;if(n===null)return{};for(i={},l=Object.keys(n),r=0,u=l.length;r<u;r+=1)o=l[r],f=String(n[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&Me.call(c.styleAliases,f)&&(f=c.styleAliases[f]),i[o]=f;return i}function er(e){var n,i,l;if(n=e.toString(16).toUpperCase(),e<=255)i="x",l=2;else if(e<=65535)i="u",l=4;else if(e<=4294967295)i="U",l=8;else throw new w("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+y.repeat("0",l-n.length)+n}var nr=1,j=2;function ir(e){this.schema=e.schema||Ee,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=y.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Ji(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?j:nr,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function se(e,n){for(var i=y.repeat(" ",n),l=0,r=-1,u="",o,f=e.length;l<f;)r=e.indexOf(`
|
|
18
|
+
`,l),r===-1?(o=e.slice(l),l=f):(o=e.slice(l,r+1),l=r+1),o.length&&o!==`
|
|
19
|
+
`&&(u+=i),u+=o;return u}function J(e,n){return`
|
|
20
|
+
`+y.repeat(" ",e.indent*n)}function rr(e,n){var i,l,r;for(i=0,l=e.implicitTypes.length;i<l;i+=1)if(r=e.implicitTypes[i],r.resolve(n))return!0;return!1}function W(e){return e===Bi||e===Di}function H(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==oe||65536<=e&&e<=1114111}function xe(e){return H(e)&&e!==oe&&e!==Mi&&e!==Y}function me(e,n,i){var l=xe(e),r=l&&!W(e);return(i?l:l&&e!==Be&&e!==Pe&&e!==Ye&&e!==je&&e!==He)&&e!==Z&&!(n===G&&!r)||xe(n)&&!W(n)&&e===Z||n===G&&r}function lr(e){return H(e)&&e!==oe&&!W(e)&&e!==qi&&e!==$i&&e!==G&&e!==Be&&e!==Pe&&e!==Ye&&e!==je&&e!==He&&e!==Z&&e!==Hi&&e!==Ki&&e!==Pi&&e!==Xi&&e!==Gi&&e!==Wi&&e!==Ui&&e!==Yi&&e!==ji&&e!==Qi&&e!==Vi}function or(e){return!W(e)&&e!==G}function B(e,n){var i=e.charCodeAt(n),l;return i>=55296&&i<=56319&&n+1<e.length&&(l=e.charCodeAt(n+1),l>=56320&&l<=57343)?(i-55296)*1024+l-56320+65536:i}function Ue(e){var n=/^\n* /;return n.test(e)}var Ke=1,ee=2,qe=3,Ge=4,L=5;function ur(e,n,i,l,r,u,o,f){var c,a=0,p=null,t=!1,d=!1,s=l!==-1,x=-1,g=lr(B(e,0))&&or(B(e,e.length-1));if(n||o)for(c=0;c<e.length;a>=65536?c+=2:c++){if(a=B(e,c),!H(a))return L;g=g&&me(a,p,f),p=a}else{for(c=0;c<e.length;a>=65536?c+=2:c++){if(a=B(e,c),a===Y)t=!0,s&&(d=d||c-x-1>l&&e[x+1]!==" ",x=c);else if(!H(a))return L;g=g&&me(a,p,f),p=a}d=d||s&&c-x-1>l&&e[x+1]!==" "}return!t&&!d?g&&!o&&!r(e)?Ke:u===j?L:ee:i>9&&Ue(e)?L:o?u===j?L:ee:d?Ge:qe}function fr(e,n,i,l,r){e.dump=(function(){if(n.length===0)return e.quotingType===j?'""':"''";if(!e.noCompatMode&&(zi.indexOf(n)!==-1||Zi.test(n)))return e.quotingType===j?'"'+n+'"':"'"+n+"'";var u=e.indent*Math.max(1,i),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),f=l||e.flowLevel>-1&&i>=e.flowLevel;function c(a){return rr(e,a)}switch(ur(n,f,e.indent,o,c,e.quotingType,e.forceQuotes&&!l,r)){case Ke:return n;case ee:return"'"+n.replace(/'/g,"''")+"'";case qe:return"|"+ge(n,e.indent)+ve(se(n,u));case Ge:return">"+ge(n,e.indent)+ve(se(cr(n,o),u));case L:return'"'+ar(n)+'"';default:throw new w("impossible error: invalid scalar style")}})()}function ge(e,n){var i=Ue(e)?String(n):"",l=e[e.length-1]===`
|
|
21
|
+
`,r=l&&(e[e.length-2]===`
|
|
22
|
+
`||e===`
|
|
23
|
+
`),u=r?"+":l?"":"-";return i+u+`
|
|
24
|
+
`}function ve(e){return e[e.length-1]===`
|
|
25
|
+
`?e.slice(0,-1):e}function cr(e,n){for(var i=/(\n+)([^\n]*)/g,l=(function(){var a=e.indexOf(`
|
|
26
|
+
`);return a=a!==-1?a:e.length,i.lastIndex=a,Ae(e.slice(0,a),n)})(),r=e[0]===`
|
|
27
|
+
`||e[0]===" ",u,o;o=i.exec(e);){var f=o[1],c=o[2];u=c[0]===" ",l+=f+(!r&&!u&&c!==""?`
|
|
28
|
+
`:"")+Ae(c,n),r=u}return l}function Ae(e,n){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,l,r=0,u,o=0,f=0,c="";l=i.exec(e);)f=l.index,f-r>n&&(u=o>r?o:f,c+=`
|
|
29
|
+
`+e.slice(r,u),r=u+1),o=f;return c+=`
|
|
30
|
+
`,e.length-r>n&&o>r?c+=e.slice(r,o)+`
|
|
31
|
+
`+e.slice(o+1):c+=e.slice(r),c.slice(1)}function ar(e){for(var n="",i=0,l,r=0;r<e.length;i>=65536?r+=2:r++)i=B(e,r),l=_[i],!l&&H(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=l||er(i);return n}function tr(e,n,i){var l="",r=e.tag,u,o,f;for(u=0,o=i.length;u<o;u+=1)f=i[u],e.replacer&&(f=e.replacer.call(i,String(u),f)),(F(e,n,f,!1,!1)||typeof f>"u"&&F(e,n,null,!1,!1))&&(l!==""&&(l+=","+(e.condenseFlow?"":" ")),l+=e.dump);e.tag=r,e.dump="["+l+"]"}function ye(e,n,i,l){var r="",u=e.tag,o,f,c;for(o=0,f=i.length;o<f;o+=1)c=i[o],e.replacer&&(c=e.replacer.call(i,String(o),c)),(F(e,n+1,c,!0,!0,!1,!0)||typeof c>"u"&&F(e,n+1,null,!0,!0,!1,!0))&&((!l||r!=="")&&(r+=J(e,n)),e.dump&&Y===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump);e.tag=u,e.dump=r||"[]"}function pr(e,n,i){var l="",r=e.tag,u=Object.keys(i),o,f,c,a,p;for(o=0,f=u.length;o<f;o+=1)p="",l!==""&&(p+=", "),e.condenseFlow&&(p+='"'),c=u[o],a=i[c],e.replacer&&(a=e.replacer.call(i,c,a)),F(e,n,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),F(e,n,a,!1,!1)&&(p+=e.dump,l+=p));e.tag=r,e.dump="{"+l+"}"}function hr(e,n,i,l){var r="",u=e.tag,o=Object.keys(i),f,c,a,p,t,d;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new w("sortKeys must be a boolean or a function");for(f=0,c=o.length;f<c;f+=1)d="",(!l||r!=="")&&(d+=J(e,n)),a=o[f],p=i[a],e.replacer&&(p=e.replacer.call(i,a,p)),F(e,n+1,a,!0,!0,!0)&&(t=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,t&&(e.dump&&Y===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,t&&(d+=J(e,n)),F(e,n+1,p,!0,t)&&(e.dump&&Y===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,r+=d));e.tag=u,e.dump=r||"{}"}function Ce(e,n,i){var l,r,u,o,f,c;for(r=i?e.explicitTypes:e.implicitTypes,u=0,o=r.length;u<o;u+=1)if(f=r[u],(f.instanceOf||f.predicate)&&(!f.instanceOf||typeof n=="object"&&n instanceof f.instanceOf)&&(!f.predicate||f.predicate(n))){if(i?f.multi&&f.representName?e.tag=f.representName(n):e.tag=f.tag:e.tag="?",f.represent){if(c=e.styleMap[f.tag]||f.defaultStyle,De.call(f.represent)==="[object Function]")l=f.represent(n,c);else if(Me.call(f.represent,c))l=f.represent[c](n,c);else throw new w("!<"+f.tag+'> tag resolver accepts not "'+c+'" style');e.dump=l}return!0}return!1}function F(e,n,i,l,r,u,o){e.tag=null,e.dump=i,Ce(e,i,!1)||Ce(e,i,!0);var f=De.call(e.dump),c=l,a;l&&(l=e.flowLevel<0||e.flowLevel>n);var p=f==="[object Object]"||f==="[object Array]",t,d;if(p&&(t=e.duplicates.indexOf(i),d=t!==-1),(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&n>0)&&(r=!1),d&&e.usedDuplicates[t])e.dump="*ref_"+t;else{if(p&&d&&!e.usedDuplicates[t]&&(e.usedDuplicates[t]=!0),f==="[object Object]")l&&Object.keys(e.dump).length!==0?(hr(e,n,e.dump,r),d&&(e.dump="&ref_"+t+e.dump)):(pr(e,n,e.dump),d&&(e.dump="&ref_"+t+" "+e.dump));else if(f==="[object Array]")l&&e.dump.length!==0?(e.noArrayIndent&&!o&&n>0?ye(e,n-1,e.dump,r):ye(e,n,e.dump,r),d&&(e.dump="&ref_"+t+e.dump)):(tr(e,n,e.dump),d&&(e.dump="&ref_"+t+" "+e.dump));else if(f==="[object String]")e.tag!=="?"&&fr(e,e.dump,n,u,c);else{if(f==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new w("unacceptable kind of an object to dump "+f)}e.tag!==null&&e.tag!=="?"&&(a=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?a="!"+a:a.slice(0,18)==="tag:yaml.org,2002:"?a="!!"+a.slice(18):a="!<"+a+">",e.dump=a+" "+e.dump)}return!0}function dr(e,n){var i=[],l=[],r,u;for(ne(e,i,l),r=0,u=l.length;r<u;r+=1)n.duplicates.push(i[l[r]]);n.usedDuplicates=new Array(u)}function ne(e,n,i){var l,r,u;if(e!==null&&typeof e=="object")if(r=n.indexOf(e),r!==-1)i.indexOf(r)===-1&&i.push(r);else if(n.push(e),Array.isArray(e))for(r=0,u=e.length;r<u;r+=1)ne(e[r],n,i);else for(l=Object.keys(e),r=0,u=l.length;r<u;r+=1)ne(e[l[r]],n,i)}function sr(e,n){n=n||{};var i=new ir(n);i.noRefs||dr(e,i);var l=e;return i.replacer&&(l=i.replacer.call({"":l},"",l)),F(i,0,l,!0,!0)?i.dump+`
|
|
32
|
+
`:""}var xr=sr,mr={dump:xr},gr=Ri.load,vr=mr.dump;function _r({defaultValue:e,onValueChange:n}){const{resolvedTheme:i}=$e(),[l,r]=ue.useState(null),[u,o]=ue.useState(()=>{try{return vr(e)}catch{return""}});return M.jsxs("div",{className:"flex flex-col bg-secondary text-secondary-foreground overflow-hidden border rounded-lg",children:[M.jsx(We,{height:"240px",language:"yaml",value:u,onChange:(f="")=>{o(f);try{const c=gr(f);n(c),r(null)}catch(c){c instanceof Error&&r(c.message)}},theme:i==="dark"?"vs-dark":"light",loading:M.jsx("pre",{className:"ps-17 py-5 text-sm size-full",children:M.jsx("code",{children:u})}),options:{minimap:{enabled:!1},padding:{top:20,bottom:20},fontSize:14,lineHeight:1.428571,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,formatOnPaste:!0,formatOnType:!0}}),l&&M.jsx("p",{className:"p-2 text-sm font-mono border-t font-semibold bg-card text-destructive",children:l})]})}export{_r as YamlEditor};
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"bootstrapScriptContent": "import(\"/assets/index-BpILsqFO.js\")",
|
|
3
|
+
"clientReferenceDeps": {
|
|
4
|
+
"1dabdc43357f": {
|
|
5
|
+
"js": [
|
|
6
|
+
"/assets/index-BpILsqFO.js",
|
|
7
|
+
"/assets/react-B8--K7an.js",
|
|
8
|
+
"/assets/router-a9jyj9wf.js"
|
|
9
|
+
],
|
|
10
|
+
"css": []
|
|
11
|
+
},
|
|
12
|
+
"143a66ed5015": {
|
|
13
|
+
"js": [
|
|
14
|
+
"/assets/index-BpILsqFO.js",
|
|
15
|
+
"/assets/react-B8--K7an.js",
|
|
16
|
+
"/assets/router-a9jyj9wf.js"
|
|
17
|
+
],
|
|
18
|
+
"css": []
|
|
19
|
+
},
|
|
20
|
+
"4c909cee79cd": {
|
|
21
|
+
"js": [
|
|
22
|
+
"/assets/index-BpILsqFO.js",
|
|
23
|
+
"/assets/react-B8--K7an.js",
|
|
24
|
+
"/assets/router-a9jyj9wf.js"
|
|
25
|
+
],
|
|
26
|
+
"css": []
|
|
27
|
+
},
|
|
28
|
+
"5b6cc92a0a03": {
|
|
29
|
+
"js": [
|
|
30
|
+
"/assets/index-BpILsqFO.js",
|
|
31
|
+
"/assets/react-B8--K7an.js",
|
|
32
|
+
"/assets/router-a9jyj9wf.js"
|
|
33
|
+
],
|
|
34
|
+
"css": []
|
|
35
|
+
},
|
|
36
|
+
"7f0586850d5d": {
|
|
37
|
+
"js": [
|
|
38
|
+
"/assets/index-BpILsqFO.js",
|
|
39
|
+
"/assets/react-B8--K7an.js",
|
|
40
|
+
"/assets/router-a9jyj9wf.js"
|
|
41
|
+
],
|
|
42
|
+
"css": []
|
|
43
|
+
},
|
|
44
|
+
"cbdd244f01aa": {
|
|
45
|
+
"js": [
|
|
46
|
+
"/assets/index-BpILsqFO.js",
|
|
47
|
+
"/assets/react-B8--K7an.js",
|
|
48
|
+
"/assets/router-a9jyj9wf.js"
|
|
49
|
+
],
|
|
50
|
+
"css": []
|
|
51
|
+
},
|
|
52
|
+
"c08ac075bccf": {
|
|
53
|
+
"js": [
|
|
54
|
+
"/assets/index-BpILsqFO.js",
|
|
55
|
+
"/assets/react-B8--K7an.js",
|
|
56
|
+
"/assets/router-a9jyj9wf.js"
|
|
57
|
+
],
|
|
58
|
+
"css": []
|
|
59
|
+
},
|
|
60
|
+
"78e59716250d": {
|
|
61
|
+
"js": [
|
|
62
|
+
"/assets/index-BpILsqFO.js",
|
|
63
|
+
"/assets/react-B8--K7an.js",
|
|
64
|
+
"/assets/router-a9jyj9wf.js"
|
|
65
|
+
],
|
|
66
|
+
"css": []
|
|
67
|
+
},
|
|
68
|
+
"6227ed8b382c": {
|
|
69
|
+
"js": [
|
|
70
|
+
"/assets/index-BpILsqFO.js",
|
|
71
|
+
"/assets/react-B8--K7an.js",
|
|
72
|
+
"/assets/router-a9jyj9wf.js"
|
|
73
|
+
],
|
|
74
|
+
"css": []
|
|
75
|
+
},
|
|
76
|
+
"c38123730943": {
|
|
77
|
+
"js": [
|
|
78
|
+
"/assets/index-BpILsqFO.js",
|
|
79
|
+
"/assets/react-B8--K7an.js",
|
|
80
|
+
"/assets/router-a9jyj9wf.js"
|
|
81
|
+
],
|
|
82
|
+
"css": []
|
|
83
|
+
},
|
|
84
|
+
"d1c31fc79b12": {
|
|
85
|
+
"js": [
|
|
86
|
+
"/assets/index-BpILsqFO.js",
|
|
87
|
+
"/assets/react-B8--K7an.js",
|
|
88
|
+
"/assets/router-a9jyj9wf.js"
|
|
89
|
+
],
|
|
90
|
+
"css": []
|
|
91
|
+
},
|
|
92
|
+
"dce2ef3af2e6": {
|
|
93
|
+
"js": [
|
|
94
|
+
"/assets/index-BpILsqFO.js",
|
|
95
|
+
"/assets/react-B8--K7an.js",
|
|
96
|
+
"/assets/router-a9jyj9wf.js"
|
|
97
|
+
],
|
|
98
|
+
"css": []
|
|
99
|
+
},
|
|
100
|
+
"9c093c8280c2": {
|
|
101
|
+
"js": [
|
|
102
|
+
"/assets/index-BpILsqFO.js",
|
|
103
|
+
"/assets/react-B8--K7an.js",
|
|
104
|
+
"/assets/router-a9jyj9wf.js"
|
|
105
|
+
],
|
|
106
|
+
"css": []
|
|
107
|
+
},
|
|
108
|
+
"37eafacc3f00": {
|
|
109
|
+
"js": [
|
|
110
|
+
"/assets/entry.rsc-D51PwnQL.js",
|
|
111
|
+
"/assets/router-a9jyj9wf.js",
|
|
112
|
+
"/assets/react-B8--K7an.js",
|
|
113
|
+
"/assets/index-BpILsqFO.js"
|
|
114
|
+
],
|
|
115
|
+
"css": []
|
|
116
|
+
},
|
|
117
|
+
"ba92e02b9841": {
|
|
118
|
+
"js": [
|
|
119
|
+
"/assets/client-BWBqEatf.js",
|
|
120
|
+
"/assets/react-B8--K7an.js",
|
|
121
|
+
"/assets/use-sync-ZgcwUdu_.js",
|
|
122
|
+
"/assets/spinner-BdPhtfsc.js",
|
|
123
|
+
"/assets/button-Bm94vje1.js",
|
|
124
|
+
"/assets/index-CQRgqbuL.js",
|
|
125
|
+
"/assets/index-BpILsqFO.js",
|
|
126
|
+
"/assets/router-a9jyj9wf.js"
|
|
127
|
+
],
|
|
128
|
+
"css": []
|
|
129
|
+
},
|
|
130
|
+
"e9c83060cf4f": {
|
|
131
|
+
"js": [
|
|
132
|
+
"/assets/client-OSVRoCKH.js",
|
|
133
|
+
"/assets/react-B8--K7an.js",
|
|
134
|
+
"/assets/button-Bm94vje1.js",
|
|
135
|
+
"/assets/tooltip-Dvh-iHDG.js",
|
|
136
|
+
"/assets/index-CQRgqbuL.js",
|
|
137
|
+
"/assets/spinner-BdPhtfsc.js",
|
|
138
|
+
"/assets/dropdown-menu-EF-sTINr.js",
|
|
139
|
+
"/assets/use-sync-ZgcwUdu_.js",
|
|
140
|
+
"/assets/separator-tWFpvpUX.js",
|
|
141
|
+
"/assets/index-DTzAH5JX.js",
|
|
142
|
+
"/assets/index-BpILsqFO.js",
|
|
143
|
+
"/assets/router-a9jyj9wf.js"
|
|
144
|
+
],
|
|
145
|
+
"css": [
|
|
146
|
+
"/assets/client-DVneG3Rq.css"
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
"3e8fc4d4edf5": {
|
|
150
|
+
"js": [
|
|
151
|
+
"/assets/root-D3NoAGI1.js",
|
|
152
|
+
"/assets/root-B_CXTQpA.js",
|
|
153
|
+
"/assets/react-B8--K7an.js",
|
|
154
|
+
"/assets/router-a9jyj9wf.js",
|
|
155
|
+
"/assets/query-z9oLNeTD.js",
|
|
156
|
+
"/assets/QueryClientProvider-DqiXnN2L.js",
|
|
157
|
+
"/assets/index-BdrDVoE8.js",
|
|
158
|
+
"/assets/index-BpILsqFO.js"
|
|
159
|
+
],
|
|
160
|
+
"css": [
|
|
161
|
+
"/assets/root-z8crlXSh.css"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"9f11f519a173": {
|
|
165
|
+
"js": [
|
|
166
|
+
"/assets/page-uNpJU_rv.js",
|
|
167
|
+
"/assets/react-B8--K7an.js",
|
|
168
|
+
"/assets/actions-DkbV2Z0p.js",
|
|
169
|
+
"/assets/dropdown-menu-EF-sTINr.js",
|
|
170
|
+
"/assets/button-Bm94vje1.js",
|
|
171
|
+
"/assets/index-CQRgqbuL.js",
|
|
172
|
+
"/assets/tooltip-Dvh-iHDG.js",
|
|
173
|
+
"/assets/sidebar-BBYit8gY.js",
|
|
174
|
+
"/assets/query-z9oLNeTD.js",
|
|
175
|
+
"/assets/router-a9jyj9wf.js",
|
|
176
|
+
"/assets/site-header-DQkKe-WA.js",
|
|
177
|
+
"/assets/separator-tWFpvpUX.js",
|
|
178
|
+
"/assets/index-BpILsqFO.js"
|
|
179
|
+
],
|
|
180
|
+
"css": []
|
|
181
|
+
},
|
|
182
|
+
"3b0c60972019": {
|
|
183
|
+
"js": [
|
|
184
|
+
"/assets/page-DOzl4Kpa.js",
|
|
185
|
+
"/assets/react-B8--K7an.js",
|
|
186
|
+
"/assets/badge-CZkdLoIP.js",
|
|
187
|
+
"/assets/button-Bm94vje1.js",
|
|
188
|
+
"/assets/site-header-DQkKe-WA.js",
|
|
189
|
+
"/assets/separator-tWFpvpUX.js",
|
|
190
|
+
"/assets/sidebar-BBYit8gY.js",
|
|
191
|
+
"/assets/query-z9oLNeTD.js",
|
|
192
|
+
"/assets/tooltip-Dvh-iHDG.js",
|
|
193
|
+
"/assets/client-Crg-pMcu.js",
|
|
194
|
+
"/assets/router-a9jyj9wf.js",
|
|
195
|
+
"/assets/actions-DkbV2Z0p.js",
|
|
196
|
+
"/assets/dropdown-menu-EF-sTINr.js",
|
|
197
|
+
"/assets/index-CQRgqbuL.js",
|
|
198
|
+
"/assets/root-B_CXTQpA.js",
|
|
199
|
+
"/assets/QueryClientProvider-DqiXnN2L.js",
|
|
200
|
+
"/assets/index-BdrDVoE8.js",
|
|
201
|
+
"/assets/index-BpILsqFO.js"
|
|
202
|
+
],
|
|
203
|
+
"css": [
|
|
204
|
+
"/assets/root-z8crlXSh.css"
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
"13fa49d3f75d": {
|
|
208
|
+
"js": [
|
|
209
|
+
"/assets/index-DOs5iMXj.js",
|
|
210
|
+
"/assets/react-B8--K7an.js",
|
|
211
|
+
"/assets/actions-DpkI7OTF.js",
|
|
212
|
+
"/assets/tooltip-Dvh-iHDG.js",
|
|
213
|
+
"/assets/button-Bm94vje1.js",
|
|
214
|
+
"/assets/client-Crg-pMcu.js",
|
|
215
|
+
"/assets/sidebar-BBYit8gY.js",
|
|
216
|
+
"/assets/query-z9oLNeTD.js",
|
|
217
|
+
"/assets/router-a9jyj9wf.js",
|
|
218
|
+
"/assets/site-header-DQkKe-WA.js",
|
|
219
|
+
"/assets/separator-tWFpvpUX.js",
|
|
220
|
+
"/assets/index-BpILsqFO.js"
|
|
221
|
+
],
|
|
222
|
+
"css": []
|
|
223
|
+
},
|
|
224
|
+
"5d6b9f3494e7": {
|
|
225
|
+
"js": [
|
|
226
|
+
"/assets/layout-CnpYRqF0.js",
|
|
227
|
+
"/assets/react-B8--K7an.js",
|
|
228
|
+
"/assets/sidebar-BBYit8gY.js",
|
|
229
|
+
"/assets/query-z9oLNeTD.js",
|
|
230
|
+
"/assets/button-Bm94vje1.js",
|
|
231
|
+
"/assets/tooltip-Dvh-iHDG.js",
|
|
232
|
+
"/assets/badge-CZkdLoIP.js",
|
|
233
|
+
"/assets/index-BdrDVoE8.js",
|
|
234
|
+
"/assets/spinner-BdPhtfsc.js",
|
|
235
|
+
"/assets/index-CQRgqbuL.js",
|
|
236
|
+
"/assets/actions-DkbV2Z0p.js",
|
|
237
|
+
"/assets/dropdown-menu-EF-sTINr.js",
|
|
238
|
+
"/assets/router-a9jyj9wf.js",
|
|
239
|
+
"/assets/actions-DpkI7OTF.js",
|
|
240
|
+
"/assets/client-Crg-pMcu.js",
|
|
241
|
+
"/assets/index-DTzAH5JX.js",
|
|
242
|
+
"/assets/QueryClientProvider-DqiXnN2L.js",
|
|
243
|
+
"/assets/index-BpILsqFO.js"
|
|
244
|
+
],
|
|
245
|
+
"css": []
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"serverResources": {
|
|
249
|
+
"../../node_modules/.pnpm/@platejs+math@52.0.11_platejs@52.0.17_@types+react@19.2.10_immer@11.1.3_react-dom@19.2.4_reac_hmisnfehplmm267u5hznudr5q4/node_modules/@platejs/math/dist/BaseInlineEquationPlugin-1MXNHk1G.js": {
|
|
250
|
+
"js": [],
|
|
251
|
+
"css": [
|
|
252
|
+
"/assets/route-DVneG3Rq.css"
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
"src/root.tsx?server-route-module": {
|
|
256
|
+
"js": [],
|
|
257
|
+
"css": [
|
|
258
|
+
"/assets/root-z8crlXSh.css"
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
"src/routes/collection/document/page.tsx?route-module": {
|
|
262
|
+
"js": [],
|
|
263
|
+
"css": [
|
|
264
|
+
"/assets/root-z8crlXSh.css"
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { r as reactExports, j as jsxRuntimeExports } from "../index.js";
|
|
2
|
+
var QueryClientContext = reactExports.createContext(
|
|
3
|
+
void 0
|
|
4
|
+
);
|
|
5
|
+
var useQueryClient = (queryClient) => {
|
|
6
|
+
const client = reactExports.useContext(QueryClientContext);
|
|
7
|
+
if (queryClient) {
|
|
8
|
+
return queryClient;
|
|
9
|
+
}
|
|
10
|
+
if (!client) {
|
|
11
|
+
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
12
|
+
}
|
|
13
|
+
return client;
|
|
14
|
+
};
|
|
15
|
+
var QueryClientProvider = ({
|
|
16
|
+
client,
|
|
17
|
+
children
|
|
18
|
+
}) => {
|
|
19
|
+
reactExports.useEffect(() => {
|
|
20
|
+
client.mount();
|
|
21
|
+
return () => {
|
|
22
|
+
client.unmount();
|
|
23
|
+
};
|
|
24
|
+
}, [client]);
|
|
25
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(QueryClientContext.Provider, { value: client, children });
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
QueryClientProvider as Q,
|
|
29
|
+
useQueryClient as u
|
|
30
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { m as useNavigate, u as useLocation, j as jsxRuntimeExports } from "../index.js";
|
|
2
|
+
import { T as Trash, D as DropdownMenu, a as DropdownMenuTrigger, E as Ellipsis, b as DropdownMenuContent, d as DropdownMenuItem } from "./dropdown-menu-D2YyT3lP.js";
|
|
3
|
+
import { B as Button } from "./button-C_-b_vqm.js";
|
|
4
|
+
import { d as ContextMenu, e as ContextMenuTrigger, f as ContextMenuContent, h as ContextMenuItem } from "./tooltip-DZ4WdJt-.js";
|
|
5
|
+
import { d as documentCollection } from "./sidebar-BzNOZeBO.js";
|
|
6
|
+
function isActive(pathname, templatePathname, nested = false) {
|
|
7
|
+
if (pathname === templatePathname) return true;
|
|
8
|
+
if (nested && pathname.startsWith(templatePathname + "/")) return true;
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
function DocumentActionsDropdown({ document }) {
|
|
12
|
+
const navigate = useNavigate();
|
|
13
|
+
const pathname = useLocation().pathname;
|
|
14
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(DropdownMenu, { children: [
|
|
15
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "ghost", size: "icon", className: "text-muted-foreground ms-auto", asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenuTrigger, { "aria-label": "More Actions", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Ellipsis, {}) }) }),
|
|
16
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenuContent, { children: document.permissions.delete && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
17
|
+
DropdownMenuItem,
|
|
18
|
+
{
|
|
19
|
+
variant: "destructive",
|
|
20
|
+
onClick: () => {
|
|
21
|
+
documentCollection.delete(`${document.collectionId}-${document.id}`);
|
|
22
|
+
if (isActive(pathname, `/collection/${document.collectionId}/${document.id}`, true)) {
|
|
23
|
+
navigate(`/collection/${document.collectionId}`);
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Trash, {}),
|
|
28
|
+
"Delete Item"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
) })
|
|
32
|
+
] });
|
|
33
|
+
}
|
|
34
|
+
function DocumentActionsContext({
|
|
35
|
+
document,
|
|
36
|
+
children
|
|
37
|
+
}) {
|
|
38
|
+
const navigate = useNavigate();
|
|
39
|
+
const pathname = useLocation().pathname;
|
|
40
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenu, { children: [
|
|
41
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ContextMenuTrigger, { render: children }),
|
|
42
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ContextMenuContent, { children: document.permissions.delete && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43
|
+
ContextMenuItem,
|
|
44
|
+
{
|
|
45
|
+
variant: "destructive",
|
|
46
|
+
onClick: () => {
|
|
47
|
+
documentCollection.delete(`${document.collectionId}-${document.id}`);
|
|
48
|
+
if (isActive(pathname, `/collection/${document.collectionId}/${document.id}`, true)) {
|
|
49
|
+
navigate(`/collection/${document.collectionId}`);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Trash, {}),
|
|
54
|
+
"Delete Item"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
) })
|
|
58
|
+
] });
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
DocumentActionsDropdown as D,
|
|
62
|
+
DocumentActionsContext as a
|
|
63
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "../index.js";
|
|
2
|
+
import { d as ContextMenu, e as ContextMenuTrigger, f as ContextMenuContent, h as ContextMenuItem } from "./tooltip-DZ4WdJt-.js";
|
|
3
|
+
import { u as useCreateDocumentDialog, F as FilePlus } from "./client-CU90j0R8.js";
|
|
4
|
+
function CollectionActionsContext({
|
|
5
|
+
collection,
|
|
6
|
+
children
|
|
7
|
+
}) {
|
|
8
|
+
const createDoc = useCreateDocumentDialog(collection);
|
|
9
|
+
let child = /* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenu, { children: [
|
|
10
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ContextMenuTrigger, { render: children }),
|
|
11
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ContextMenuContent, { children: createDoc && /* @__PURE__ */ jsxRuntimeExports.jsx(createDoc.trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenuItem, { children: [
|
|
12
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(FilePlus, {}),
|
|
13
|
+
"Create Document"
|
|
14
|
+
] }) }) })
|
|
15
|
+
] });
|
|
16
|
+
if (createDoc) child = /* @__PURE__ */ jsxRuntimeExports.jsx(createDoc.component, { children: child });
|
|
17
|
+
return child;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
CollectionActionsContext as C
|
|
21
|
+
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { cva
|
|
3
|
-
import { Slot } from "
|
|
4
|
-
|
|
5
|
-
import { cn } from "@/lib/utils";
|
|
6
|
-
|
|
1
|
+
import { j as jsxRuntimeExports } from "../index.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { S as Slot, s as cn } from "./button-C_-b_vqm.js";
|
|
7
4
|
const badgeVariants = cva(
|
|
8
5
|
"h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-colors overflow-hidden group/badge",
|
|
9
6
|
{
|
|
@@ -11,36 +8,34 @@ const badgeVariants = cva(
|
|
|
11
8
|
variant: {
|
|
12
9
|
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
13
10
|
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
14
|
-
destructive:
|
|
15
|
-
|
|
16
|
-
outline:
|
|
17
|
-
"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground bg-input/30",
|
|
11
|
+
destructive: "bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",
|
|
12
|
+
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground bg-input/30",
|
|
18
13
|
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
19
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
20
|
-
}
|
|
14
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
15
|
+
}
|
|
21
16
|
},
|
|
22
17
|
defaultVariants: {
|
|
23
|
-
variant: "default"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
18
|
+
variant: "default"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
26
21
|
);
|
|
27
|
-
|
|
28
22
|
function Badge({
|
|
29
23
|
className,
|
|
30
24
|
variant = "default",
|
|
31
25
|
asChild = false,
|
|
32
26
|
...props
|
|
33
|
-
}
|
|
34
|
-
const Comp = asChild ? Slot
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
data-slot
|
|
39
|
-
data-variant
|
|
40
|
-
className
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
}) {
|
|
28
|
+
const Comp = asChild ? Slot : "span";
|
|
29
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30
|
+
Comp,
|
|
31
|
+
{
|
|
32
|
+
"data-slot": "badge",
|
|
33
|
+
"data-variant": variant,
|
|
34
|
+
className: cn(badgeVariants({ variant }), className),
|
|
35
|
+
...props
|
|
36
|
+
}
|
|
43
37
|
);
|
|
44
38
|
}
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
export {
|
|
40
|
+
Badge as B
|
|
41
|
+
};
|