@bendyline/gezel-service 1.1.1 → 1.1.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/dist/NOTICE.md +3 -3
- package/dist/bin/gezeld.js +8471 -5311
- package/dist/handboek-content/technical/building-connected-apps-with-gezel-app-sdk.md +78 -0
- package/dist/handboek-content/whats-new/{1.26250.md → 1.26251.md} +5 -5
- package/dist/index-store/static-index-worker.js +160 -51
- package/dist/index.d.ts +416 -71
- package/dist/index.js +8465 -5305
- package/dist/memory/embed-worker.js +132 -4
- package/dist/memory/image-embed-worker.js +14 -5
- package/dist/providers/mlx/python/cache_persist.py +52 -8
- package/dist/providers/mlx/python/gezel_mlx_server.py +44 -1
- package/dist/providers/mlx/python/qwen4_ple.py +159 -0
- package/dist/providers/mlx/python/spec_decode.py +73 -31
- package/dist/providers/mlx/python/tool_call_stream.py +10 -2
- package/dist/providers/mlx/python/tool_grammar.py +16 -0
- package/dist/ui/assets/{AmbientDashboardCard-DcVHxEdC.js → AmbientDashboardCard-_xnAQGnk.js} +1 -1
- package/dist/ui/assets/{AudioEngineSettings-BFM2S1mm.js → AudioEngineSettings-CgXgbX0i.js} +1 -1
- package/dist/ui/assets/{BenchmarksView-84-YeULA.js → BenchmarksView-BlExZpYA.js} +1 -1
- package/dist/ui/assets/CatalogBrowser-DYXUZQ_t.js +1 -0
- package/dist/ui/assets/{ChannelsSettings-7NAVUk4k.js → ChannelsSettings-EH27HcqZ.js} +1 -1
- package/dist/ui/assets/ChatTimelineView-Dn1TNyVn.js +7 -0
- package/dist/ui/assets/{ConnectedAppsPanel-CIgF4Q3R.js → ConnectedAppsPanel-BROry-Y0.js} +1 -1
- package/dist/ui/assets/CraftbookEditor-B2RNJnFf.js +1 -0
- package/dist/ui/assets/{CraftbookScriptEditorView-Ck5tzj3Y.js → CraftbookScriptEditorView-B-vySmHP.js} +1 -1
- package/dist/ui/assets/{CraftbookTabContent-BWg7FhK_.js → CraftbookTabContent-BW_2KC89.js} +1 -1
- package/dist/ui/assets/{CraftbookToolsetSetup-EuFOiUzR.js → CraftbookToolsetSetup-J7rEa835.js} +1 -1
- package/dist/ui/assets/{CraftbooksView-BIzQ1VVn.js → CraftbooksView-BjBUWPGF.js} +1 -1
- package/dist/ui/assets/DiffpackReviewView-CD4qJmgT.js +1 -0
- package/dist/ui/assets/DocumentDetail-SYozruTJ.js +1 -0
- package/dist/ui/assets/DocumentsView-DE7eL49Z.js +1 -0
- package/dist/ui/assets/{Ds4Settings-9soZCSeO.js → Ds4Settings-DGzc7JcD.js} +1 -1
- package/dist/ui/assets/{EmbeddedChat-Cce7nxXT.js → EmbeddedChat-D92TaJQ8.js} +1 -1
- package/dist/ui/assets/{FaceRecognitionCard-BVZyOwB8.js → FaceRecognitionCard-CB1Dt9X4.js} +1 -1
- package/dist/ui/assets/FileMapView-kVBG22FU.js +1 -0
- package/dist/ui/assets/FoldersSettings-BWFQU5B4.js +1 -0
- package/dist/ui/assets/GezelDetail-Br4v42Nv.js +1 -0
- package/dist/ui/assets/{GezelJsonEditor-DXXt165-.js → GezelJsonEditor-B9XEiW5Y.js} +1 -1
- package/dist/ui/assets/GezellenView-DheEBAy4.js +1 -0
- package/dist/ui/assets/{GildeUpdatesCard-CtY8mUTA.js → GildeUpdatesCard-BeIYv09f.js} +1 -1
- package/dist/ui/assets/{GithubSignInChip-DT3l6E0Q.js → GithubSignInChip-eEGCe9ar.js} +1 -1
- package/dist/ui/assets/{HandboekMediaProvider-ByJ4NAzz.js → HandboekMediaProvider-D0zcbbpf.js} +1 -1
- package/dist/ui/assets/HandboekView-p0BZT1rH.js +1 -0
- package/dist/ui/assets/{HistoryView-CkinzFEC.js → HistoryView-CKWcWW-Y.js} +1 -1
- package/dist/ui/assets/{HomeView-DNBrQnwy.js → HomeView-b_TT5oV3.js} +1 -1
- package/dist/ui/assets/{ImageEngineSettings-BfM9HSd_.js → ImageEngineSettings-CJfk4OJ4.js} +1 -1
- package/dist/ui/assets/{ImageRecognitionSettings-CaSQu5Br.js → ImageRecognitionSettings-DzbvZk5S.js} +1 -1
- package/dist/ui/assets/{IncompleteDownloads-C36lTCMG.js → IncompleteDownloads-C8_XyP8O.js} +1 -1
- package/dist/ui/assets/{KnowledgeCatalogsCard-CK9bqdf6.js → KnowledgeCatalogsCard-CHopG_j-.js} +1 -1
- package/dist/ui/assets/KnowledgeView-CXNKZUJq.js +1 -0
- package/dist/ui/assets/{LlamaCppSettings-CdNMHBbp.js → LlamaCppSettings-ohcM7kes.js} +1 -1
- package/dist/ui/assets/{MarkdownField-Dugmfr_e.js → MarkdownField-BX0qsaFq.js} +1 -1
- package/dist/ui/assets/{MemoriesTree-CgFqUNEr.js → MemoriesTree-BPj5Rod8.js} +1 -1
- package/dist/ui/assets/{MicrophoneSettings-DzDe9y1q.js → MicrophoneSettings-CWjeYnfI.js} +1 -1
- package/dist/ui/assets/MlxSettings-Dq6dRpcl.js +1 -0
- package/dist/ui/assets/{ModelPicker-BVkJhNAH.js → ModelPicker-0Ue-eEKj.js} +1 -1
- package/dist/ui/assets/NewPathDialog-BhAZm9dp.js +1 -0
- package/dist/ui/assets/{NewScriptDialog-TEAd0KLl.js → NewScriptDialog-DuryIe50.js} +1 -1
- package/dist/ui/assets/NewTaskDialog-BX24flMY.js +2 -0
- package/dist/ui/assets/{OllamaSettings-CPy2vxyZ.js → OllamaSettings-Boj8Nd1G.js} +1 -1
- package/dist/ui/assets/ProjectChat-Dhw_M5bq.js +5 -0
- package/dist/ui/assets/ProjectConnectionsTab-BwpMQNrg.js +1 -0
- package/dist/ui/assets/{ProjectGitStatusBar-BgHZ2ijN.js → ProjectGitStatusBar-BORGYx5l.js} +1 -1
- package/dist/ui/assets/{ProjectGithubView-BV2uTNU0.js → ProjectGithubView-CTP1BOMv.js} +1 -1
- package/dist/ui/assets/{ProjectMailTab-DLtJdXSL.js → ProjectMailTab-qFmAeV3M.js} +1 -1
- package/dist/ui/assets/{ProjectOverviewView-ZMs9nL5N.js → ProjectOverviewView-Cq1FsoaT.js} +1 -1
- package/dist/ui/assets/{ProjectTimeline-CTPcn4Kc.js → ProjectTimeline-Cqae2Z92.js} +1 -1
- package/dist/ui/assets/ProjectsView-D0uJjUB-.js +7 -0
- package/dist/ui/assets/{RecommendedBadge-iUoisQBi.js → RecommendedBadge-CN1jEmSn.js} +1 -1
- package/dist/ui/assets/{RemoteServersPanel-CTVJ0IRh.js → RemoteServersPanel-CMakvCCM.js} +1 -1
- package/dist/ui/assets/{ScriptEditorTabs-CCDFZjdC.js → ScriptEditorTabs-st6dJePd.js} +2 -2
- package/dist/ui/assets/{ScriptEditorView-CergLqKj.js → ScriptEditorView-BkySh57_.js} +2 -2
- package/dist/ui/assets/{ScriptsView-v7ckdhDi.js → ScriptsView-7uPKwjDB.js} +1 -1
- package/dist/ui/assets/{SecurityComplianceSettings-Bd0-66Gs.js → SecurityComplianceSettings-Tsv_pXfy.js} +1 -1
- package/dist/ui/assets/SessionSwitcher-D0fSeeHO.js +1 -0
- package/dist/ui/assets/SettingsView-cli_z8ZW.js +3 -0
- package/dist/ui/assets/{SquisqIntegration-C5l_OPvD.js → SquisqIntegration-BTZ1kBlg.js} +1 -1
- package/dist/ui/assets/{StorageCleanupDialog-3kv9-2mT.js → StorageCleanupDialog-CDBjl8JQ.js} +1 -1
- package/dist/ui/assets/{StorageUsageCard-7sWTrZFa.js → StorageUsageCard-DXY1j0dZ.js} +1 -1
- package/dist/ui/assets/TaskTabContent-C0P681SL.js +1 -0
- package/dist/ui/assets/TasksView-Ddwz10ri.js +1 -0
- package/dist/ui/assets/{TerminalCodeEditor-ChmdzmCz.js → TerminalCodeEditor-BkNQ6QoQ.js} +2 -2
- package/dist/ui/assets/ToolsetsEditor-KVigemfL.js +8 -0
- package/dist/ui/assets/{TransformToolbarButton-gzIxUBH7.js → TransformToolbarButton-8wfJR1bO.js} +2 -2
- package/dist/ui/assets/{UnrecognizedModels-0hptopv6.js → UnrecognizedModels-BzdU1clO.js} +1 -1
- package/dist/ui/assets/{VideoEngineSettings-BdNzCEdR.js → VideoEngineSettings-f79ff57u.js} +1 -1
- package/dist/ui/assets/{WorkspaceIndexPane-DnsOO916.js → WorkspaceIndexPane-fu5V6o1W.js} +1 -1
- package/dist/ui/assets/{api-C0I7spBl.js → api-CmrgM5Rf.js} +1 -1
- package/dist/ui/assets/chat-thread-memory-8MCtb17Q.js +1 -0
- package/dist/ui/assets/{chunk-6ECMNUIP-BvCy0HUI.js → chunk-6ECMNUIP-D5AA6ozp.js} +1 -1
- package/dist/ui/assets/{chunk-A6N6IN3I-ofeM4l8g.js → chunk-A6N6IN3I-BpxihS5H.js} +1 -1
- package/dist/ui/assets/{chunk-ATWVNF7D-CYuW1Yc6.js → chunk-ATWVNF7D-CKIWh7bN.js} +1 -1
- package/dist/ui/assets/{chunk-UBFT2CDQ-FexGDigd.js → chunk-CW24CH7I-BD0FIooX.js} +1 -1
- package/dist/ui/assets/{chunk-DXYWKZ52-zxe8pjH4.js → chunk-DXYWKZ52-DMKPZnpo.js} +1 -1
- package/dist/ui/assets/chunk-IIQYS2YH-BtDJt4Xr.js +1 -0
- package/dist/ui/assets/{chunk-KGWT454C-v5-l6U5m.js → chunk-KGWT454C-DsQOBuLg.js} +1 -1
- package/dist/ui/assets/{chunk-Q77KNJIN-BLuPdsQF.js → chunk-Q77KNJIN-BdWizq9s.js} +1 -1
- package/dist/ui/assets/{chunk-USU6HTKB-B_p-YcDp.js → chunk-USU6HTKB-DyGZplh4.js} +1 -1
- package/dist/ui/assets/{chunk-UXEANVBI-Bt0kX-0Z.js → chunk-UXEANVBI-BUBXvqyE.js} +1 -1
- package/dist/ui/assets/{chunk-O7JILDEF-CqcO1qaI.js → chunk-X7BNDUNI-D14WIvlD.js} +2 -2
- package/dist/ui/assets/{chunk-AE3IUKMM-mZjzzO8Z.js → chunk-ZSU5DJLX-CrjQf-vs.js} +1 -1
- package/dist/ui/assets/{container-BI8hxN1N.js → container-iFj1r6Hk.js} +1 -1
- package/dist/ui/assets/csv-Di411Mv-.js +1 -0
- package/dist/ui/assets/data-Q05qqAp4.js +1 -0
- package/dist/ui/assets/{dist-APSIK7H3.js → dist-1FNFiksd.js} +3 -3
- package/dist/ui/assets/dist-BMZhqfv7.js +2 -0
- package/dist/ui/assets/dist-CE5CbmDb.js +225 -0
- package/dist/ui/assets/doc-BHcGsJZd.js +587 -0
- package/dist/ui/assets/{document-import-DPK4r8Am.js → document-import-B2Ya6sbf.js} +1 -1
- package/dist/ui/assets/{docx-DRLuCTaC.js → docx-B8Pwz5Ih.js} +1 -1
- package/dist/ui/assets/{epub-a0p2Xb1b.js → epub-BQ4g8Q9j.js} +1 -1
- package/dist/ui/assets/{export-options-BqYFyzWx.js → export-options-Dylv69b3.js} +1 -1
- package/dist/ui/assets/file-browser-BLOPfnS0.js +5 -0
- package/dist/ui/assets/{html-BbQNmJ5X.js → html-BnA7qFwq.js} +1 -1
- package/dist/ui/assets/icons-CyM7Cg4E.js +1 -0
- package/dist/ui/assets/index-DW6qHqhU.css +1 -0
- package/dist/ui/assets/index-DivKnJyx.js +36 -0
- package/dist/ui/assets/{mail-link-CWfsP5Aq.js → mail-link-NtlcX5OE.js} +1 -1
- package/dist/ui/assets/{markdown-ryKA_OmY.js → markdown-CLKH_zzl.js} +1 -1
- package/dist/ui/assets/markdown-baseline-0dqv9qbV.js +1 -0
- package/dist/ui/assets/materialize-G4WC5UG3-xq2dcwS8.js +1 -0
- package/dist/ui/assets/{monaco-base-C0VTMpv-.js → monaco-base-BSvdAweA.js} +1 -1
- package/dist/ui/assets/{monaco-setup-CX8q88c5.js → monaco-setup-CT7LZ0o_.js} +1 -1
- package/dist/ui/assets/{new-project-meta-ZmDPGYzC.js → new-project-meta-5Y9Blozr.js} +1 -1
- package/dist/ui/assets/outside-in-Msmhxf_U.js +3 -0
- package/dist/ui/assets/{pdf-BHrygJa5.js → pdf-C4BhW3zg.js} +1 -1
- package/dist/ui/assets/{pending-drafts-27ujtQxX.js → pending-drafts-BD227X9H.js} +1 -1
- package/dist/ui/assets/{poppetje-CfaAvFkE.js → poppetje-DvCJO36y.js} +3 -3
- package/dist/ui/assets/{pptx-nDW64jAN.js → pptx-B6uaM2s7.js} +3 -3
- package/dist/ui/assets/{run-export-86KzLZ7R.js → run-export-TscWwR6y.js} +2 -2
- package/dist/ui/assets/{standalone-source-7QdiNsDW.js → standalone-source-Cw9SF7Zk.js} +1 -1
- package/dist/ui/assets/storage-Cmhlwx70.js +1 -0
- package/dist/ui/assets/styles-BjDaWeMA.css +1 -0
- package/dist/ui/assets/styles-CqO-rmOt.js +554 -0
- package/dist/ui/assets/{terminal-monaco-setup-Bar-sYKd.js → terminal-monaco-setup-me523-j-.js} +1 -1
- package/dist/ui/assets/{transform-CmAXy0Ck.js → transform-DxJCwK68.js} +1 -1
- package/dist/ui/assets/{use-local-model-manager-D1yiurrC.js → use-local-model-manager-8wvk-I-y.js} +1 -1
- package/dist/ui/assets/{useCompactLayout-BDtPQcDh.js → useCompactLayout-cm4E9Vja.js} +0 -0
- package/dist/ui/assets/{useCopilotAvailability-BHOfHrfT.js → useCopilotAvailability-D9hglSH_.js} +1 -1
- package/dist/ui/assets/{useDiffpacks-B0kYhlWQ.js → useDiffpacks-1BN2XJWg.js} +1 -1
- package/dist/ui/assets/{useGitSync-DOt-ODiw.js → useGitSync-7m9YA7h5.js} +1 -1
- package/dist/ui/assets/{useShowWorkInProgressFeatures-BtpredG7.js → useShowWorkInProgressFeatures-D6QOaTUT.js} +1 -1
- package/dist/ui/assets/{useTotalRamBytes-B8NFM27w.js → useTotalRamBytes-Durk383U.js} +1 -1
- package/dist/ui/assets/{xlsx-B_pu1ZvY.js → xlsx-BbHA9bxA.js} +1 -1
- package/dist/ui/index.html +15 -15
- package/package.json +12 -11
- package/dist/ui/assets/CatalogBrowser-7_jHy5Q3.js +0 -1
- package/dist/ui/assets/ChatTimelineView-Cg_kLK_U.js +0 -7
- package/dist/ui/assets/CraftbookEditor-BKAIsnXv.js +0 -1
- package/dist/ui/assets/DiffpackReviewView-B2a3zgE-.js +0 -1
- package/dist/ui/assets/DocumentDetail-GCYhwQqV.js +0 -1
- package/dist/ui/assets/DocumentsView-Cm3RaQ5N.js +0 -1
- package/dist/ui/assets/FileMapView-BKJovLcL.js +0 -1
- package/dist/ui/assets/FoldersSettings-CuJd2JdE.js +0 -1
- package/dist/ui/assets/GezelDetail-D_KIPDhQ.js +0 -1
- package/dist/ui/assets/GezellenView-BOOW1QQU.js +0 -1
- package/dist/ui/assets/HandboekView-gRzJcIbJ.js +0 -1
- package/dist/ui/assets/KnowledgeView-DJ3cJVHA.js +0 -1
- package/dist/ui/assets/MlxSettings-45mBFHbA.js +0 -1
- package/dist/ui/assets/NewTaskDialog-CIXVunZn.js +0 -2
- package/dist/ui/assets/ProjectChat-BiJRweob.js +0 -5
- package/dist/ui/assets/ProjectConnectionsTab-CQgaIzuv.js +0 -1
- package/dist/ui/assets/ProjectsView-BUdR76n6.js +0 -7
- package/dist/ui/assets/SessionSwitcher-BgZqyiRn.js +0 -1
- package/dist/ui/assets/SettingsView-DLhOYiR5.js +0 -3
- package/dist/ui/assets/TaskTabContent-CG2KmfwV.js +0 -1
- package/dist/ui/assets/TasksView-Dy5Ue4zS.js +0 -1
- package/dist/ui/assets/ToolsetsEditor-J9XxQ5Ms.js +0 -8
- package/dist/ui/assets/chat-thread-memory-CI2-giEq.js +0 -1
- package/dist/ui/assets/chunk-IIQYS2YH-DEkyBlHg.js +0 -1
- package/dist/ui/assets/csv-B0D9jJG2.js +0 -1
- package/dist/ui/assets/data-BIL84EaT.js +0 -1
- package/dist/ui/assets/dist-CJqyWK6E.js +0 -2
- package/dist/ui/assets/dist-DOqbRmFj.js +0 -225
- package/dist/ui/assets/doc-C2Ph2FWI.js +0 -584
- package/dist/ui/assets/document-companion-aDThLOwl.js +0 -1
- package/dist/ui/assets/file-browser-DVyWN0LD.js +0 -5
- package/dist/ui/assets/icons-DWaUNQbT.js +0 -1
- package/dist/ui/assets/index-DDu8nyO6.js +0 -34
- package/dist/ui/assets/index-DEDUSiCx.css +0 -1
- package/dist/ui/assets/markdown-baseline-9B52XlX2.js +0 -1
- package/dist/ui/assets/materialize-G4WC5UG3-BlZQe-88.js +0 -1
- package/dist/ui/assets/outside-in-BmIIeMid.js +0 -3
- package/dist/ui/assets/storage-B-vhjyV2.js +0 -1
- package/dist/ui/assets/styles-BvkZd-EV.js +0 -550
- package/dist/ui/assets/styles-IQ4adxWr.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./api-
|
|
1
|
+
import{t as e}from"./api-CmrgM5Rf.js";var t=[{id:`imap`,label:`IMAP`},{id:`gmail`,label:`Gmail`},{id:`microsoft365`,label:`Microsoft 365`},{id:`outlook`,label:`Outlook.com`}],n=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),r={microsoft365:`organizations`,outlook:`consumers`};async function i(t,n){await e.bindConnector(t,{type:`mail-imap`,displayName:n.address,config:{provider:`imap`,address:n.address,syncFolders:n.syncFolders??[`INBOX`]},credential:{host:n.host,...n.port?{port:n.port}:{},...n.secure===void 0?{}:{secure:n.secure},user:n.address,pass:n.pass}})}async function a(t,n,i){let a=window.__GEZEL__;if(!a?.mailOAuthListen||!a.mailOAuthAwait)throw Error(`Connecting Gmail / Microsoft needs the Gezel desktop app.`);let{requestId:o,redirectUri:s}=await a.mailOAuthListen(),c=r[n],{authUrl:l,state:u}=await e.startConnectorOAuth(t,{type:`mail-${n}`,redirectUri:s,displayName:i,loginHint:i,config:{provider:n,address:i,...c?{tenant:c}:{}}}),d=await a.mailOAuthAwait(o,l);if(`error`in d)throw Error(d.error);await e.completeConnectorOAuth(t,{state:d.state||u,code:d.code})}export{n as i,a as n,i as r,t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-aKtaBQYM.js";import{d as t,i as n,r}from"./chunk-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-aKtaBQYM.js";import{d as t,i as n,r}from"./chunk-X7BNDUNI-D14WIvlD.js";import"./chunk-4VOD55SX-BFSSw0c8.js";import{a as i,c as a,d as o,f as s,h as c,l,m as u,n as d,o as f,p,s as m,t as h,u as ee}from"./chunk-CW24CH7I-BD0FIooX.js";var g={}.hasOwnProperty;function te(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&g.call(t,e)){let n=String(t[e]);i=g.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var ne={}.hasOwnProperty;function _(e,t){let n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)_(e,t.extensions[n]);for(r in t)if(ne.call(t,r))switch(r){case`extensions`:break;case`unsafe`:v(e[r],t[r]);break;case`join`:v(e[r],t[r]);break;case`handlers`:re(e[r],t[r]);break;default:e.options[r]=t[r]}return e}function v(e,t){t&&e.push(...t)}function re(e,t){t&&Object.assign(e,t)}var ie=[ae];function ae(e,t,n,r){if(t.type===`code`&&s(t,r)&&(e.type===`list`||e.type===t.type&&s(e,r)))return!1;if(`spread`in n&&typeof n.spread==`boolean`)return e.type===`paragraph`&&(e.type===t.type||t.type===`definition`||t.type===`heading`&&ee(t,r))?void 0:+!!n.spread}var y=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`],oe=[{character:` `,after:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,before:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`]},{character:`\r`,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`,`codeFencedMetaGraveAccent`,`codeFencedMetaTilde`,`destinationLiteral`,`headingAtx`]},{character:`
|
|
2
2
|
`,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`,`codeFencedMetaGraveAccent`,`codeFencedMetaTilde`,`destinationLiteral`,`headingAtx`]},{character:` `,after:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,before:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`]},{character:`!`,after:`\\[`,inConstruct:`phrasing`,notInConstruct:y},{character:`"`,inConstruct:`titleQuote`},{atBreak:!0,character:`#`},{character:`#`,inConstruct:`headingAtx`,after:`(?:[\r
|
|
3
3
|
]|$)`},{character:`&`,after:`[#A-Za-z]`,inConstruct:`phrasing`},{character:`'`,inConstruct:`titleApostrophe`},{character:`(`,inConstruct:`destinationRaw`},{before:`\\]`,character:`(`,inConstruct:`phrasing`,notInConstruct:y},{atBreak:!0,before:`\\d+`,character:`)`},{character:`)`,inConstruct:`destinationRaw`},{atBreak:!0,character:`*`,after:`(?:[ \r
|
|
4
4
|
*])`},{character:`*`,inConstruct:`phrasing`,notInConstruct:y},{atBreak:!0,character:`+`,after:`(?:[ \r
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-CW24CH7I-BD0FIooX.js";import{l as t}from"./markdown-CLKH_zzl.js";function n(n){try{return t(e(n))}catch{return n}}export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-7AWFHP5U-MiVVPFTx.js";import"./chunk-DXYWKZ52-DMKPZnpo.js";import"./chunk-Q77KNJIN-BdWizq9s.js";import"./chunk-S5PCVMKU-Df5XzhSE.js";import"./chunk-ATWVNF7D-CKIWh7bN.js";import{r as e}from"./chunk-UXEANVBI-BUBXvqyE.js";export{e as materializeDataReferences};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./index-
|
|
1
|
+
import"./index-DivKnJyx.js";import{n as e,r as t}from"./monaco-DeTXJU-n.js";import{p as n}from"./editor.api-DShZZcgD.js";var r=!1,i=null;function a(){return i||(i=e().then(o).catch(e=>{throw i=null,e}),i)}function o(){r||=(n.defineTheme(`gezel-light`,{base:`vs`,inherit:!0,rules:[],colors:{"editor.background":`#f3eddf`,"editorGutter.background":`#ece5d4`,"editorLineNumber.foreground":`#a39a85`,"minimap.background":`#ece5d4`}}),n.defineTheme(`gezel-dark`,{base:`vs-dark`,inherit:!0,rules:[],colors:{"editor.background":`#1c1d20`,"editorGutter.background":`#191a1d`,"editorLineNumber.foreground":`#5d5f66`,"minimap.background":`#191a1d`}}),!0)}export{a as ensureGezelMonacoBase,t as monaco,o as registerGezelMonacoThemes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{gn as e}from"./dist-CE5CbmDb.js";import{r as t,t as n}from"./monaco-DeTXJU-n.js";import{f as r,h as i}from"./editor.api-DShZZcgD.js";import{ensureGezelMonacoBase as a}from"./monaco-base-BSvdAweA.js";var o=!1,s=null;async function c(e){await a(),await n(`typescript`,{languageServices:!0});let t=i.typescript.typescriptDefaults;o||(o=!0,u(),t.setCompilerOptions({target:i.typescript.ScriptTarget.ESNext,module:i.typescript.ModuleKind.ESNext,moduleResolution:i.typescript.ModuleResolutionKind.NodeJs,lib:[`esnext`],strict:!0,noEmit:!0,isolatedModules:!0,allowNonTsExtensions:!0,types:[]}),t.setEagerModelSync(!0));let r=await e();if(r.version!==s){s=r.version;for(let e of r.files){let n=e.name.startsWith(`@`)?`file:///node_modules/${e.name}`:`file:///node_modules/@bendyline/gezel-sdk/${e.name}`;t.addExtraLib(e.content,n)}}}function l(e,t){return r.parse(`file:///gezel/${encodeURIComponent(e)}/scripts/${encodeURIComponent(t)}.ts`)}function u(){i.registerFoldingRangeProvider(`typescript`,{provideFoldingRanges(t){if(!t.uri.path.includes(`/scripts/`))return[];let n=e(t.getValue());return n<2?[]:[{start:1,end:n,kind:i.FoldingRangeKind.Region}]}})}export{c as ensureScriptTypescript,t as monaco,l as scriptModelUri};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-CEpd2cAX.js";import{Kt as t,w as n}from"./dist-DOqbRmFj.js";var r=e(),i={sheet:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M7 3.5 H14.5 L18.5 7.5 V20.5 H7 Z`}),(0,r.jsx)(`path`,{d:`M14.5 3.5 V7.5 H18.5`})]}),folder:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(`path`,{d:`M3.5 6.5 A1.5 1.5 0 0 1 5 5 H9.5 L11.5 7.5 H19 A1.5 1.5 0 0 1 20.5 9 V17.5 A1.5 1.5 0 0 1 19 19 H5 A1.5 1.5 0 0 1 3.5 17.5 Z`})}),envelope:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`3.5`,y:`5.5`,width:`17`,height:`13`,rx:`1.5`}),(0,r.jsx)(`path`,{d:`M4.5 7 L12 13 L19.5 7`})]}),branch:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`6.5`,cy:`6`,r:`2.2`}),(0,r.jsx)(`circle`,{cx:`6.5`,cy:`18`,r:`2.2`}),(0,r.jsx)(`circle`,{cx:`17.5`,cy:`9`,r:`2.2`}),(0,r.jsx)(`path`,{d:`M6.5 8.2 V15.8`}),(0,r.jsx)(`path`,{d:`M17.5 11.2 C17.5 14.5 12 13.5 9 15.5`})]}),calendar:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`4`,y:`5.5`,width:`16`,height:`14.5`,rx:`1.5`}),(0,r.jsx)(`path`,{d:`M4 10 H20`}),(0,r.jsx)(`path`,{d:`M8.5 3.5 V7`}),(0,r.jsx)(`path`,{d:`M15.5 3.5 V7`})]}),bubbles:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M4 5.5 H15 A1.5 1.5 0 0 1 16.5 7 V12 A1.5 1.5 0 0 1 15 13.5 H8.5 L5.5 16 V13.5 H4 A1.5 1.5 0 0 1 2.5 12 V7 A1.5 1.5 0 0 1 4 5.5 Z`}),(0,r.jsx)(`path`,{d:`M18.5 9.5 H20 A1.5 1.5 0 0 1 21.5 11 V15.5 A1.5 1.5 0 0 1 20 17 H19.5 V19.5 L16.5 17 H12.5`})]}),chart:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M4 4 V20 H20`}),(0,r.jsx)(`path`,{d:`M8 16.5 V11`}),(0,r.jsx)(`path`,{d:`M12.5 16.5 V7.5`}),(0,r.jsx)(`path`,{d:`M17 16.5 V13`})]}),code:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M9.5 4.5 H8.5 C7 4.5 7 5.5 7 7 V9.5 C7 10.8 6.3 11.5 5 12 C6.3 12.5 7 13.2 7 14.5 V17 C7 18.5 7.5 19.5 9.5 19.5`}),(0,r.jsx)(`path`,{d:`M14.5 4.5 H15.5 C17 4.5 17 5.5 17 7 V9.5 C17 10.8 17.7 11.5 19 12 C17.7 12.5 17 13.2 17 14.5 V17 C17 18.5 16.5 19.5 14.5 19.5`})]}),frame:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`3.5`,y:`4.5`,width:`17`,height:`15`,rx:`1.5`}),(0,r.jsx)(`circle`,{cx:`9`,cy:`9.5`,r:`1.6`}),(0,r.jsx)(`path`,{d:`M3.5 16.5 L9.5 12.5 L13.5 15.5 L17 13 L20.5 15.5`})]}),quill:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M19.5 4.5 C13 5 8.5 9.5 6.5 15.5 L5 19 L8.5 17.5 C14.5 15.5 19 11 19.5 4.5 Z`}),(0,r.jsx)(`path`,{d:`M5.5 18.5 C9 13 13 9.5 16.5 7.5`})]}),sprout:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M12 21 V11`}),(0,r.jsx)(`path`,{d:`M12 14.4 C8.5 14.4 6.4 11.9 6.4 8.4 C9.9 8.4 12 10.9 12 14`,fillOpacity:.18}),(0,r.jsx)(`path`,{d:`M12 12.4 C15.5 12.4 17.6 9.9 17.6 6.4 C14.1 6.4 12 8.9 12 12`,fillOpacity:.18})]}),die:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`4.5`,y:`4.5`,width:`15`,height:`15`,rx:`2.5`}),(0,r.jsx)(`circle`,{cx:`9`,cy:`9`,r:`0.9`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`15`,cy:`15`,r:`0.9`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`15`,cy:`9`,r:`0.9`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`9`,cy:`15`,r:`0.9`,fill:`currentColor`,stroke:`none`})]}),house:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M4 11 L12 4.5 L20 11`}),(0,r.jsx)(`path`,{d:`M6 10 V19.5 H18 V10`}),(0,r.jsx)(`path`,{d:`M10 19.5 V14.5 H14 V19.5`})]}),coin:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`12`,cy:`12`,r:`7.5`}),(0,r.jsx)(`path`,{d:`M12 8 C10 8 9.2 9 9.2 10 C9.2 12.5 14.8 11.5 14.8 14 C14.8 15 14 16 12 16`}),(0,r.jsx)(`path`,{d:`M12 6.8 V8`}),(0,r.jsx)(`path`,{d:`M12 16 V17.2`})]}),banner:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M6 3.5 V20.5`}),(0,r.jsx)(`path`,{d:`M6 5 H18.5 L15.5 8.75 L18.5 12.5 H6`})]}),terminal:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`3.5`,y:`4.5`,width:`17`,height:`15`,rx:`1.5`}),(0,r.jsx)(`path`,{d:`M7 9 L10 12 L7 15`}),(0,r.jsx)(`path`,{d:`M12.5 15 H17`})]}),globe:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8`}),(0,r.jsx)(`path`,{d:`M4.5 9 H19.5 M4.5 15 H19.5`}),(0,r.jsx)(`path`,{d:`M12 4 C15.5 7.6 15.5 16.4 12 20 C8.5 16.4 8.5 7.6 12 4 Z`})]}),server:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`4`,y:`4.5`,width:`16`,height:`6`,rx:`1.3`}),(0,r.jsx)(`rect`,{x:`4`,y:`13.5`,width:`16`,height:`6`,rx:`1.3`}),(0,r.jsx)(`path`,{d:`M7 7.5 H7.1 M7 16.5 H7.1 M10 7.5 H16.5 M10 16.5 H16.5`})]}),package:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M4.5 8 L12 4 L19.5 8 V16 L12 20 L4.5 16 Z`}),(0,r.jsx)(`path`,{d:`M4.5 8 L12 12 L19.5 8 M12 12 V20`}),(0,r.jsx)(`path`,{d:`M8.5 6 L16 10`})]}),book:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M4 5.5 H9.5 C11 5.5 12 6.5 12 8 V19 C12 17.5 11 16.5 9.5 16.5 H4 Z`}),(0,r.jsx)(`path`,{d:`M20 5.5 H14.5 C13 5.5 12 6.5 12 8 V19 C12 17.5 13 16.5 14.5 16.5 H20 Z`})]}),palette:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M12 4 C7.3 4 4 7.2 4 11.5 C4 16 7.5 19.5 12 19.5 H13.2 C14.2 19.5 14.7 18.3 14 17.6 C13.2 16.8 13.7 15.5 14.8 15.5 H17 C19 15.5 20 14.1 20 12 C20 7.4 16.7 4 12 4 Z`}),(0,r.jsx)(`circle`,{cx:`8`,cy:`9`,r:`0.8`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`12`,cy:`7.5`,r:`0.8`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`16`,cy:`9.5`,r:`0.8`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`9`,cy:`13`,r:`0.8`,fill:`currentColor`,stroke:`none`})]}),camera:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M4 8 H7 L8.5 5.5 H15.5 L17 8 H20 V18.5 H4 Z`}),(0,r.jsx)(`circle`,{cx:`12`,cy:`13`,r:`3.3`})]}),briefcase:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`3.5`,y:`7.5`,width:`17`,height:`12`,rx:`1.5`}),(0,r.jsx)(`path`,{d:`M8.5 7.5 V5.5 H15.5 V7.5 M3.5 12.5 C8 15 16 15 20.5 12.5`}),(0,r.jsx)(`path`,{d:`M12 12.8 V15.2`})]}),heart:(0,r.jsx)(`path`,{d:`M12 20 C9 17.5 4.5 14.6 4.5 9.7 C4.5 6.8 6.3 5 8.8 5 C10.3 5 11.4 5.8 12 7 C12.6 5.8 13.7 5 15.2 5 C17.7 5 19.5 6.8 19.5 9.7 C19.5 14.6 15 17.5 12 20 Z`}),cards:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`5`,y:`5.5`,width:`11`,height:`14`,rx:`1.5`}),(0,r.jsx)(`path`,{d:`M9 5.5 V4.5 A1.5 1.5 0 0 1 10.5 3 H17.5 A1.5 1.5 0 0 1 19 4.5 V15.5 A1.5 1.5 0 0 1 17.5 17 H16`}),(0,r.jsx)(`path`,{d:`M8 10 H13 M8 13 H12`})]}),meal:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M5 4.5 V10 M3.5 4.5 V8 C3.5 9.3 4.1 10 5 10 C5.9 10 6.5 9.3 6.5 8 V4.5 M5 10 V20`}),(0,r.jsx)(`path`,{d:`M15 4.5 C18 6.5 18.5 10.5 16 13.5 V20 M16 13.5 H13.5 V9 C13.5 6.7 14 5.3 15 4.5 Z`})]}),plane:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M3.5 13 L20.5 5.5 L15.5 19 L11.5 13.5 Z`}),(0,r.jsx)(`path`,{d:`M11.5 13.5 L20.5 5.5 M11.5 13.5 V18 L8.5 15`})]}),people:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`9`,cy:`9`,r:`3`}),(0,r.jsx)(`path`,{d:`M3.5 19 C4 15.5 6 14 9 14 C12 14 14 15.5 14.5 19`}),(0,r.jsx)(`path`,{d:`M14.5 7 C17 7 18.5 8.5 18.5 10.5 C18.5 12 17.7 13 16.5 13.7 M16 15 C18.5 15.3 20 16.5 20.5 19`})]}),dots:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`6`,cy:`12`,r:`1.1`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.1`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`18`,cy:`12`,r:`1.1`,fill:`currentColor`,stroke:`none`})]})};function a({glyph:e,size:t=18}){return(0,r.jsx)(`svg`,{width:t,height:t,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.7,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,"data-project-glyph":e,children:i[e]})}var o=[{id:`general`,label:`General`,tagline:`Start simple — a blank bench.`,glyph:n.general},{id:`code`,label:`Code`,tagline:`Build and ship software.`,glyph:n.code},{id:`communication`,label:`Communication`,tagline:`Mail, calendars, and conversations.`,glyph:n.communication},{id:`creative`,label:`Photos & Media`,tagline:`Images, video, and design work.`,glyph:n.creative},{id:`writing`,label:`Writing`,tagline:`Drafts, documents, and stories.`,glyph:n.writing},{id:`growth`,label:`Personal Growth`,tagline:`Learn, practice, and keep at it.`,glyph:n.growth},{id:`game`,label:`Games`,tagline:`Play, and build worlds.`,glyph:n.game},{id:`data`,label:`Data`,tagline:`Explore and report on datasets.`,glyph:n.data},{id:`home`,label:`Home & Family`,tagline:`Run the household; care for the people in it.`,glyph:n.home},{id:`money`,label:`Money & Small Business`,tagline:`Ledgers, invoices, and calm month-ends.`,glyph:n.money},{id:`events`,label:`Events & Journeys`,tagline:`Plan the day, make the trip, rally the crowd.`,glyph:n.events},{id:`other`,label:`More`,tagline:`Purpose-built for something else.`,glyph:n.other}];function s(e){return o.find(t=>t.id===e)??o[0]}function c(e){let n=e.manifest;return n.kind===`project-type`?t({id:n.id,icon:n.icon,extends:n.extends,category:n.category,tags:n.tags}):`dots`}var l=[{id:`general`,label:`General`,description:`A flexible project with a blank workspace.`,category:`general`,glyph:`sheet`,give:[`A blank workspace your crew reads and writes`,`Your About and mission set the direction`]},{id:`email`,label:`E-Mail`,description:`Work from a connected mailbox.`,category:`communication`,glyph:`envelope`,give:[`Mailbox synced as searchable markdown`,`Triage and drafting; sending stays consent-gated`]},{id:`github`,label:`GitHub`,description:`Start from a GitHub repository.`,category:`code`,glyph:`branch`,give:[`Repo-linked workspace, cloned locally`,`About drafted from the README`]},{id:`folder`,label:`Existing Folder`,description:`Work in an existing folder on this computer.`,category:`general`,glyph:`folder`,give:[`Works directly in a folder you choose`,`Name and About suggested from what it finds`]},{id:`calendar`,label:`Calendar`,description:`Plan and coordinate around a calendar.`,soon:!0,category:`communication`,glyph:`calendar`,give:[]},{id:`messaging`,label:`Group messaging`,description:`Organize work around a shared conversation.`,soon:!0,category:`communication`,glyph:`bubbles`,give:[]},{id:`data`,label:`Data analysis`,description:`Explore and report on a dataset.`,soon:!0,category:`data`,glyph:`chart`,give:[]}];function u(e){let t=e.manifest;if(t.kind!==`project-type`)return`other`;if(t.category)return t.category;let n=`${t.id} ${t.tags.join(` `)} ${t.extends??``}`.toLowerCase();return/design|media|photo|image|video|art/.test(n)?`creative`:/language|learn|habit|practice|coach/.test(n)?`growth`:/write|writing|blog|story|content/.test(n)?`writing`:/game/.test(n)?`game`:/data|analysis|report/.test(n)?`data`:/code|web-app|api|cli|library|site/.test(n)?`code`:/mail|email|calendar|chat|messag/.test(n)?`communication`:`other`}export{u as a,c as i,l as n,s as o,a as r,o as t};
|
|
1
|
+
import{t as e}from"./jsx-runtime-CEpd2cAX.js";import{qt as t,w as n}from"./dist-CE5CbmDb.js";var r=e(),i={sheet:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M7 3.5 H14.5 L18.5 7.5 V20.5 H7 Z`}),(0,r.jsx)(`path`,{d:`M14.5 3.5 V7.5 H18.5`})]}),folder:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(`path`,{d:`M3.5 6.5 A1.5 1.5 0 0 1 5 5 H9.5 L11.5 7.5 H19 A1.5 1.5 0 0 1 20.5 9 V17.5 A1.5 1.5 0 0 1 19 19 H5 A1.5 1.5 0 0 1 3.5 17.5 Z`})}),envelope:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`3.5`,y:`5.5`,width:`17`,height:`13`,rx:`1.5`}),(0,r.jsx)(`path`,{d:`M4.5 7 L12 13 L19.5 7`})]}),branch:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`6.5`,cy:`6`,r:`2.2`}),(0,r.jsx)(`circle`,{cx:`6.5`,cy:`18`,r:`2.2`}),(0,r.jsx)(`circle`,{cx:`17.5`,cy:`9`,r:`2.2`}),(0,r.jsx)(`path`,{d:`M6.5 8.2 V15.8`}),(0,r.jsx)(`path`,{d:`M17.5 11.2 C17.5 14.5 12 13.5 9 15.5`})]}),calendar:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`4`,y:`5.5`,width:`16`,height:`14.5`,rx:`1.5`}),(0,r.jsx)(`path`,{d:`M4 10 H20`}),(0,r.jsx)(`path`,{d:`M8.5 3.5 V7`}),(0,r.jsx)(`path`,{d:`M15.5 3.5 V7`})]}),bubbles:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M4 5.5 H15 A1.5 1.5 0 0 1 16.5 7 V12 A1.5 1.5 0 0 1 15 13.5 H8.5 L5.5 16 V13.5 H4 A1.5 1.5 0 0 1 2.5 12 V7 A1.5 1.5 0 0 1 4 5.5 Z`}),(0,r.jsx)(`path`,{d:`M18.5 9.5 H20 A1.5 1.5 0 0 1 21.5 11 V15.5 A1.5 1.5 0 0 1 20 17 H19.5 V19.5 L16.5 17 H12.5`})]}),chart:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M4 4 V20 H20`}),(0,r.jsx)(`path`,{d:`M8 16.5 V11`}),(0,r.jsx)(`path`,{d:`M12.5 16.5 V7.5`}),(0,r.jsx)(`path`,{d:`M17 16.5 V13`})]}),code:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M9.5 4.5 H8.5 C7 4.5 7 5.5 7 7 V9.5 C7 10.8 6.3 11.5 5 12 C6.3 12.5 7 13.2 7 14.5 V17 C7 18.5 7.5 19.5 9.5 19.5`}),(0,r.jsx)(`path`,{d:`M14.5 4.5 H15.5 C17 4.5 17 5.5 17 7 V9.5 C17 10.8 17.7 11.5 19 12 C17.7 12.5 17 13.2 17 14.5 V17 C17 18.5 16.5 19.5 14.5 19.5`})]}),frame:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`3.5`,y:`4.5`,width:`17`,height:`15`,rx:`1.5`}),(0,r.jsx)(`circle`,{cx:`9`,cy:`9.5`,r:`1.6`}),(0,r.jsx)(`path`,{d:`M3.5 16.5 L9.5 12.5 L13.5 15.5 L17 13 L20.5 15.5`})]}),quill:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M19.5 4.5 C13 5 8.5 9.5 6.5 15.5 L5 19 L8.5 17.5 C14.5 15.5 19 11 19.5 4.5 Z`}),(0,r.jsx)(`path`,{d:`M5.5 18.5 C9 13 13 9.5 16.5 7.5`})]}),sprout:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M12 21 V11`}),(0,r.jsx)(`path`,{d:`M12 14.4 C8.5 14.4 6.4 11.9 6.4 8.4 C9.9 8.4 12 10.9 12 14`,fillOpacity:.18}),(0,r.jsx)(`path`,{d:`M12 12.4 C15.5 12.4 17.6 9.9 17.6 6.4 C14.1 6.4 12 8.9 12 12`,fillOpacity:.18})]}),die:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`4.5`,y:`4.5`,width:`15`,height:`15`,rx:`2.5`}),(0,r.jsx)(`circle`,{cx:`9`,cy:`9`,r:`0.9`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`15`,cy:`15`,r:`0.9`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`15`,cy:`9`,r:`0.9`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`9`,cy:`15`,r:`0.9`,fill:`currentColor`,stroke:`none`})]}),house:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M4 11 L12 4.5 L20 11`}),(0,r.jsx)(`path`,{d:`M6 10 V19.5 H18 V10`}),(0,r.jsx)(`path`,{d:`M10 19.5 V14.5 H14 V19.5`})]}),coin:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`12`,cy:`12`,r:`7.5`}),(0,r.jsx)(`path`,{d:`M12 8 C10 8 9.2 9 9.2 10 C9.2 12.5 14.8 11.5 14.8 14 C14.8 15 14 16 12 16`}),(0,r.jsx)(`path`,{d:`M12 6.8 V8`}),(0,r.jsx)(`path`,{d:`M12 16 V17.2`})]}),banner:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M6 3.5 V20.5`}),(0,r.jsx)(`path`,{d:`M6 5 H18.5 L15.5 8.75 L18.5 12.5 H6`})]}),terminal:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`3.5`,y:`4.5`,width:`17`,height:`15`,rx:`1.5`}),(0,r.jsx)(`path`,{d:`M7 9 L10 12 L7 15`}),(0,r.jsx)(`path`,{d:`M12.5 15 H17`})]}),globe:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8`}),(0,r.jsx)(`path`,{d:`M4.5 9 H19.5 M4.5 15 H19.5`}),(0,r.jsx)(`path`,{d:`M12 4 C15.5 7.6 15.5 16.4 12 20 C8.5 16.4 8.5 7.6 12 4 Z`})]}),server:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`4`,y:`4.5`,width:`16`,height:`6`,rx:`1.3`}),(0,r.jsx)(`rect`,{x:`4`,y:`13.5`,width:`16`,height:`6`,rx:`1.3`}),(0,r.jsx)(`path`,{d:`M7 7.5 H7.1 M7 16.5 H7.1 M10 7.5 H16.5 M10 16.5 H16.5`})]}),package:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M4.5 8 L12 4 L19.5 8 V16 L12 20 L4.5 16 Z`}),(0,r.jsx)(`path`,{d:`M4.5 8 L12 12 L19.5 8 M12 12 V20`}),(0,r.jsx)(`path`,{d:`M8.5 6 L16 10`})]}),book:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M4 5.5 H9.5 C11 5.5 12 6.5 12 8 V19 C12 17.5 11 16.5 9.5 16.5 H4 Z`}),(0,r.jsx)(`path`,{d:`M20 5.5 H14.5 C13 5.5 12 6.5 12 8 V19 C12 17.5 13 16.5 14.5 16.5 H20 Z`})]}),palette:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M12 4 C7.3 4 4 7.2 4 11.5 C4 16 7.5 19.5 12 19.5 H13.2 C14.2 19.5 14.7 18.3 14 17.6 C13.2 16.8 13.7 15.5 14.8 15.5 H17 C19 15.5 20 14.1 20 12 C20 7.4 16.7 4 12 4 Z`}),(0,r.jsx)(`circle`,{cx:`8`,cy:`9`,r:`0.8`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`12`,cy:`7.5`,r:`0.8`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`16`,cy:`9.5`,r:`0.8`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`9`,cy:`13`,r:`0.8`,fill:`currentColor`,stroke:`none`})]}),camera:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M4 8 H7 L8.5 5.5 H15.5 L17 8 H20 V18.5 H4 Z`}),(0,r.jsx)(`circle`,{cx:`12`,cy:`13`,r:`3.3`})]}),briefcase:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`3.5`,y:`7.5`,width:`17`,height:`12`,rx:`1.5`}),(0,r.jsx)(`path`,{d:`M8.5 7.5 V5.5 H15.5 V7.5 M3.5 12.5 C8 15 16 15 20.5 12.5`}),(0,r.jsx)(`path`,{d:`M12 12.8 V15.2`})]}),heart:(0,r.jsx)(`path`,{d:`M12 20 C9 17.5 4.5 14.6 4.5 9.7 C4.5 6.8 6.3 5 8.8 5 C10.3 5 11.4 5.8 12 7 C12.6 5.8 13.7 5 15.2 5 C17.7 5 19.5 6.8 19.5 9.7 C19.5 14.6 15 17.5 12 20 Z`}),cards:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`rect`,{x:`5`,y:`5.5`,width:`11`,height:`14`,rx:`1.5`}),(0,r.jsx)(`path`,{d:`M9 5.5 V4.5 A1.5 1.5 0 0 1 10.5 3 H17.5 A1.5 1.5 0 0 1 19 4.5 V15.5 A1.5 1.5 0 0 1 17.5 17 H16`}),(0,r.jsx)(`path`,{d:`M8 10 H13 M8 13 H12`})]}),meal:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M5 4.5 V10 M3.5 4.5 V8 C3.5 9.3 4.1 10 5 10 C5.9 10 6.5 9.3 6.5 8 V4.5 M5 10 V20`}),(0,r.jsx)(`path`,{d:`M15 4.5 C18 6.5 18.5 10.5 16 13.5 V20 M16 13.5 H13.5 V9 C13.5 6.7 14 5.3 15 4.5 Z`})]}),plane:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M3.5 13 L20.5 5.5 L15.5 19 L11.5 13.5 Z`}),(0,r.jsx)(`path`,{d:`M11.5 13.5 L20.5 5.5 M11.5 13.5 V18 L8.5 15`})]}),people:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`9`,cy:`9`,r:`3`}),(0,r.jsx)(`path`,{d:`M3.5 19 C4 15.5 6 14 9 14 C12 14 14 15.5 14.5 19`}),(0,r.jsx)(`path`,{d:`M14.5 7 C17 7 18.5 8.5 18.5 10.5 C18.5 12 17.7 13 16.5 13.7 M16 15 C18.5 15.3 20 16.5 20.5 19`})]}),dots:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`6`,cy:`12`,r:`1.1`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.1`,fill:`currentColor`,stroke:`none`}),(0,r.jsx)(`circle`,{cx:`18`,cy:`12`,r:`1.1`,fill:`currentColor`,stroke:`none`})]})};function a({glyph:e,size:t=18}){return(0,r.jsx)(`svg`,{width:t,height:t,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.7,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,"data-project-glyph":e,children:i[e]})}var o=[{id:`general`,label:`General`,tagline:`Start simple — a blank bench.`,glyph:n.general},{id:`code`,label:`Code`,tagline:`Build and ship software.`,glyph:n.code},{id:`communication`,label:`Communication`,tagline:`Mail, calendars, and conversations.`,glyph:n.communication},{id:`creative`,label:`Photos & Media`,tagline:`Images, video, and design work.`,glyph:n.creative},{id:`writing`,label:`Writing`,tagline:`Drafts, documents, and stories.`,glyph:n.writing},{id:`growth`,label:`Personal Growth`,tagline:`Learn, practice, and keep at it.`,glyph:n.growth},{id:`game`,label:`Games`,tagline:`Play, and build worlds.`,glyph:n.game},{id:`data`,label:`Data`,tagline:`Explore and report on datasets.`,glyph:n.data},{id:`home`,label:`Home & Family`,tagline:`Run the household; care for the people in it.`,glyph:n.home},{id:`money`,label:`Money & Small Business`,tagline:`Ledgers, invoices, and calm month-ends.`,glyph:n.money},{id:`events`,label:`Events & Journeys`,tagline:`Plan the day, make the trip, rally the crowd.`,glyph:n.events},{id:`other`,label:`More`,tagline:`Purpose-built for something else.`,glyph:n.other}];function s(e){return o.find(t=>t.id===e)??o[0]}function c(e){let n=e.manifest;return n.kind===`project-type`?t({id:n.id,icon:n.icon,extends:n.extends,category:n.category,tags:n.tags}):`dots`}var l=[{id:`general`,label:`General`,description:`A flexible project with a blank workspace.`,category:`general`,glyph:`sheet`,give:[`A blank workspace your crew reads and writes`,`Your About and mission set the direction`]},{id:`email`,label:`E-Mail`,description:`Work from a connected mailbox.`,category:`communication`,glyph:`envelope`,give:[`Mailbox synced as searchable markdown`,`Triage and drafting; sending stays consent-gated`]},{id:`github`,label:`GitHub`,description:`Start from a GitHub repository.`,category:`code`,glyph:`branch`,give:[`Repo-linked workspace, cloned locally`,`About drafted from the README`]},{id:`folder`,label:`Existing Folder`,description:`Work in an existing folder on this computer.`,category:`general`,glyph:`folder`,give:[`Works directly in a folder you choose`,`Name and About suggested from what it finds`]},{id:`calendar`,label:`Calendar`,description:`Plan and coordinate around a calendar.`,soon:!0,category:`communication`,glyph:`calendar`,give:[]},{id:`messaging`,label:`Group messaging`,description:`Organize work around a shared conversation.`,soon:!0,category:`communication`,glyph:`bubbles`,give:[]},{id:`data`,label:`Data analysis`,description:`Explore and report on a dataset.`,soon:!0,category:`data`,glyph:`chart`,give:[]}];function u(e){let t=e.manifest;if(t.kind!==`project-type`)return`other`;if(t.category)return t.category;let n=`${t.id} ${t.tags.join(` `)} ${t.extends??``}`.toLowerCase();return/design|media|photo|image|video|art/.test(n)?`creative`:/language|learn|habit|practice|coach/.test(n)?`growth`:/write|writing|blog|story|content/.test(n)?`writing`:/game/.test(n)?`game`:/data|analysis|report/.test(n)?`data`:/code|web-app|api|cli|library|site/.test(n)?`code`:/mail|email|calendar|chat|messag/.test(n)?`communication`:`other`}export{u as a,c as i,l as n,s as o,a as r,o as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/doc-BHcGsJZd.js","assets/rolldown-runtime-aKtaBQYM.js","assets/chunk-X7BNDUNI-D14WIvlD.js","assets/chunk-BAOV476U-CEOFYt8X.js","assets/chunk-4VOD55SX-BFSSw0c8.js","assets/chunk-GAZKTT4R-w1SNypWQ.js","assets/chunk-CW24CH7I-BD0FIooX.js","assets/chunk-XRW6P7IF-BeQQgMVK.js","assets/chunk-7ZAAICW4-BsCpYJH6.js","assets/images-JLBFCDD4-6JitW0hD.js","assets/chunk-B7GEAZBI-Divd2h1k.js","assets/storage-Cmhlwx70.js","assets/index-DivKnJyx.js","assets/jsx-runtime-CEpd2cAX.js","assets/react-dom-OL4w_gzs.js","assets/dist-CE5CbmDb.js","assets/dist-BMZhqfv7.js","assets/api-CmrgM5Rf.js","assets/primitives-CWrGZpPI.js","assets/Tabs-jE0Z5Tzd.js","assets/NewPathDialog-BhAZm9dp.js","assets/DropdownMenu-DlrvEmoV.js","assets/dist-Q59u9cBl.js","assets/relative-time-B2kBaekd.js","assets/FileTypeIcon-Cwzl1GkZ.js","assets/model-context-DBqdK0PS.js","assets/model-memory-copy-Ds9w1uJE.js","assets/StorageCleanupDialog-CDBjl8JQ.js","assets/poppetje-DvCJO36y.js","assets/safe-svg-image-NbuPaBIv.js","assets/ConfirmDialog-Dt1ed4Fh.js","assets/model-inventory-ykSm_IT5.js","assets/markdown-CLKH_zzl.js","assets/schemas-BvLZUsGm.js","assets/preload-helper-Czpn1I53.js","assets/chunk-6ECMNUIP-D5AA6ozp.js","assets/inlineIconMarker-BQI2HLeD.js","assets/chunk-TT6ENR6T-BOA-qiwP.js","assets/chunk-DQRELU4S--U9FIVtY.js","assets/new-project-meta-5Y9Blozr.js","assets/chunk-ZSU5DJLX-CrjQf-vs.js","assets/index-DW6qHqhU.css","assets/docx-B8Pwz5Ih.js","assets/chunk-7AWFHP5U-MiVVPFTx.js","assets/jszip.min-DhiFe-R7.js","assets/chunk-S5PCVMKU-Df5XzhSE.js","assets/chunk-JU2RHXUB-ClblWDJZ.js","assets/chunk-A6N6IN3I-BpxihS5H.js","assets/chunk-ILCJ3WFD-CLZxw4Ge.js","assets/chunk-BXWNU4T5-CFA9w1DZ.js","assets/chunk-IIQYS2YH-BtDJt4Xr.js","assets/chunk-USU6HTKB-DyGZplh4.js","assets/icons-CyM7Cg4E.js","assets/pdf-C4BhW3zg.js","assets/pptx-B6uaM2s7.js","assets/chunk-VPWPEMZJ-DRKoa_j0.js","assets/chunk-6N2J7C2B-CsppiLVr.js","assets/xlsx-BbHA9bxA.js","assets/chunk-DXYWKZ52-DMKPZnpo.js","assets/chunk-ATWVNF7D-CKIWh7bN.js","assets/materialize-G4WC5UG3-xq2dcwS8.js","assets/chunk-Q77KNJIN-BdWizq9s.js","assets/chunk-UXEANVBI-BUBXvqyE.js","assets/table-fcouR4db.js","assets/csv-Di411Mv-.js","assets/html-BnA7qFwq.js","assets/epub-BQ4g8Q9j.js","assets/container-iFj1r6Hk.js","assets/transform-DxJCwK68.js","assets/infer-oEpp0FFr.js","assets/chunk-WATAOG4Y-C1EXVPmG.js","assets/chunk-2JJ5RFDZ-CIHqarwp.js","assets/chunk-KXOZMWBS-BwD4KMLI.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e}from"./rolldown-runtime-aKtaBQYM.js";import{ft as t,y as n}from"./doc-BHcGsJZd.js";import{d as r,o as i,u as a}from"./chunk-X7BNDUNI-D14WIvlD.js";import{n as o}from"./chunk-CW24CH7I-BD0FIooX.js";import{l as s}from"./markdown-CLKH_zzl.js";import{t as c}from"./preload-helper-Czpn1I53.js";import{W as l,h as u}from"./index-DivKnJyx.js";import{i as d,r as f,t as p}from"./chunk-7AWFHP5U-MiVVPFTx.js";import"./storage-Cmhlwx70.js";import{n as m,r as h}from"./html-BnA7qFwq.js";import{t as g}from"./chunk-KXOZMWBS-BwD4KMLI.js";var _=Object.freeze({maxInputBytes:256*1024*1024,maxMarkdownBytes:16*1024*1024,maxMarkdownNodes:25e4,maxMarkdownDepth:128,maxTableCells:1e5,maxBlocks:5e4,maxBlockDepth:128,maxDurationSeconds:1440*60,maxAudioSegments:1e4});function v(e){let t={..._,...e};for(let[e,n]of Object.entries(t))if(!Number.isSafeInteger(n)||n<0)throw RangeError(`${e} must be a non-negative safe integer`);return t}function y(e){if(e===!1)return!1;let t=v(e);return{maxSourceBytes:t.maxMarkdownBytes,maxNodes:t.maxMarkdownNodes,maxDepth:t.maxMarkdownDepth,maxTableCells:t.maxTableCells}}function b(e,t,n){if(t===!1)return;let r=v(t);if(!Number.isFinite(e.duration)||e.duration<0||e.duration>r.maxDurationSeconds)throw RangeError(`Document duration must be between 0 and ${r.maxDurationSeconds} seconds`);if(e.audio.segments.length>r.maxAudioSegments)throw RangeError(`Document exceeds the ${r.maxAudioSegments}-audio-segment safety limit`);let i=0;for(let t of e.audio.segments){if(!Number.isFinite(t.duration)||t.duration<0)throw RangeError(`Audio segment durations must be non-negative finite numbers`);if(i+=t.duration,i>r.maxDurationSeconds)throw RangeError(`Narration exceeds the ${r.maxDurationSeconds}-second safety limit`)}let a=[];for(let t=e.blocks.length-1;t>=0;t--)a.push({block:e.blocks[t],depth:0});let o=0;for(;a.length>0;){o&1023||n?.throwIfAborted();let{block:e,depth:t}=a.pop();if(++o>r.maxBlocks)throw RangeError(`Document exceeds the ${r.maxBlocks}-block safety limit`);if(t>r.maxBlockDepth)throw RangeError(`Document exceeds the ${r.maxBlockDepth}-level block nesting safety limit`);for(let n=(e.children?.length??0)-1;n>=0;n--)a.push({block:e.children[n],depth:t+1})}}var ee={heading:!0,paragraph:!0,blockquote:!0,list:!0,code:!0,thematicBreak:!0,table:!0,htmlBlock:!0,math:!0,definition:!0,footnoteDefinition:!0,containerDirective:!0,leafDirective:!0,definitionList:!0,text:!0,emphasis:!0,strong:!0,delete:!0,superscript:!0,subscript:!0,inlineCode:!0,link:!0,image:!0,break:!0,htmlInline:!0,inlineMath:!0,footnoteReference:!0,linkReference:!0,imageReference:!0,textDirective:!0,mention:!0,inlineIcon:!0},x=[`heading`,`paragraph`,`blockquote`,`list`,`code`,`thematicBreak`,`table`,`htmlBlock`,`math`,`text`,`emphasis`,`strong`,`delete`,`superscript`,`subscript`,`inlineCode`,`link`,`image`,`break`,`htmlInline`,`inlineMath`],te={docx:new Set([...x,`footnoteDefinition`,`footnoteReference`]),pdf:new Set([...x,`footnoteDefinition`,`footnoteReference`]),pptx:new Set(x),epub:new Set(x)},ne={docx:`DOCX`,pdf:`PDF`,pptx:`PPTX`,epub:`EPUB`};function S(e,t){let n=te[t],r=new Map,i=e=>{if(!e||typeof e!=`object`)return;let t=e,a=t.type;if(a&&Object.prototype.hasOwnProperty.call(ee,a)&&!n.has(a)){r.set(a,(r.get(a)??0)+1);return}if(Array.isArray(t.children))for(let e of t.children)i(e)};for(let t of e.children)i(t);if(r.size===0)return[];let a=[...r.values()].reduce((e,t)=>e+t,0),o=[...r].map(([e,t])=>`${e} (${t})`).join(`, `);return[`${ne[t]} export omitted ${a} unsupported Markdown node(s): ${o}.`]}var C={md:`text/markdown`,docx:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,pdf:`application/pdf`,pptx:`application/vnd.openxmlformats-officedocument.presentationml.presentation`,xlsx:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,csv:`text/csv`,html:`text/html`,zip:`application/zip`,epub:`application/epub+zip`};async function w(e){if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(typeof e.arrayBuffer==`function`)return new Uint8Array(await e.arrayBuffer());let t=await new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(e)});return new Uint8Array(t)}function T(e,t){return t.themeId??e.doc.themeId}function E(e,t){return{...e.formatOptions?.[t]??{},...e.signal?{signal:e.signal}:{}}}async function D(e){if(e.markdownDoc)return e.markdownDoc;let{docToMarkdown:t}=await c(async()=>{let{docToMarkdown:e}=await import(`./doc-BHcGsJZd.js`).then(e=>e.t);return{docToMarkdown:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]));return t(e.doc)}var re=/\.(jpg|jpeg|png|gif|webp|svg|bmp|avif)$/i,ie=/\.(csv|tsv|xlsx|parquet)$/i;async function O(e,t,n,r=!0){let i=new Map,a=await e.listFiles();for(let o=0;o<a.length;o++){o&63||n?.throwIfAborted();let s=a[o];if(!t.test(s.path))continue;let c=await e.readFile(s.path);if(!c||(i.set(s.path,c),!r))continue;let l=s.path.lastIndexOf(`/`);l!==-1&&i.set(s.path.slice(l+1),c)}return i}async function k(e,t){return O(e,re,t)}function A(e,t){let r=new Set,i=e=>{for(let t of e){let e=t.templateOverrides?.src;e&&n(e)&&r.add(e),t.children&&i(t.children)}};return i(e.blocks),[...r].map(e=>`${t} cannot embed the data sidecar "${e}"; the export carries its bounded preview and the link will not resolve outside the source container.`)}async function ae(e,t){let n=await k(e,t),{extToMime:r}=await c(async()=>{let{extToMime:e}=await import(`./images-JLBFCDD4-6JitW0hD.js`);return{extToMime:e}},__vite__mapDeps([9,10]));return new Map([...n].map(([e,t])=>[e,{data:t,contentType:r(e.split(`.`).pop()??``)}]))}async function oe(e,t){let{MemoryContentContainer:n}=await c(async()=>{let{MemoryContentContainer:e}=await import(`./storage-Cmhlwx70.js`).then(e=>e.t);return{MemoryContentContainer:e}},__vite__mapDeps([11,1,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,0,2,3,4,5,6,7,8,32,33,34,35,36,37,38,39,40,41])),r=new n,i=await e.container.listFiles();for(let n=0;n<i.length;n++){n&63||t?.throwIfAborted();let a=i[n],o=await e.container.readFile(a.path);o&&await r.writeFile(a.path,new Uint8Array(o),a.mimeType)}let{stringifyMarkdown:a}=await c(async()=>{let{stringifyMarkdown:e}=await import(`./markdown-CLKH_zzl.js`).then(e=>e.t);return{stringifyMarkdown:e}},__vite__mapDeps([32,1,2,4,6])),o=await e.container.getDocumentPath()??`index.md`;return await r.writeDocument(a(await D(e)),o),r}async function j(e,t){let n=await e.resolvePlayerScript?.();if(!n)throw new g(`missing-dependency`,`HTML export needs a player script.`,{format:t,hint:`pass resolvePlayerScript, e.g. () => import('@bendyline/squisq-react/standalone-source').then(m => m.PLAYER_BUNDLE)`});return n}function M(e,t,n=[]){return{bytes:e,mimeType:t,suggestedFilename:``,warnings:n}}function N(e){let t=E(e,`pptx`);return{...t,inferTheme:t?.inferTheme!==!1,inferLayouts:t?.inferLayouts!==!1}}function se(){return[{id:`md`,templateAnnotationHandling:`preserved`,label:`Markdown`,mimeType:C.md,extensions:[`.md`,`.markdown`],async importDoc(e,t){let{parseMarkdown:n}=await c(async()=>{let{parseMarkdown:e}=await import(`./markdown-CLKH_zzl.js`).then(e=>e.t);return{parseMarkdown:e}},__vite__mapDeps([32,1,2,4,6])),r=E(t,`md`).parse??{};return n(new TextDecoder().decode(e),{...r,signal:t.signal,limits:r.limits??y(t.limits)})},async exportDoc(e,t){let{stringifyMarkdown:n}=await c(async()=>{let{stringifyMarkdown:e}=await import(`./markdown-CLKH_zzl.js`).then(e=>e.t);return{stringifyMarkdown:e}},__vite__mapDeps([32,1,2,4,6])),r=E(t,`md`).stringify??{},i=n(await D(e),{...r,signal:t.signal,limits:r.limits??y(t.limits)});return M(new TextEncoder().encode(i),C.md)}},{id:`docx`,templateAnnotationHandling:`ignored`,label:`Word (DOCX)`,mimeType:C.docx,extensions:[`.docx`],async importContainer(e,t){let{docxToContainer:n}=await c(async()=>{let{docxToContainer:e}=await import(`./docx-B8Pwz5Ih.js`);return{docxToContainer:e}},__vite__mapDeps([42,0,1,2,3,4,5,6,7,8,32,33,43,44,45,46,47,10,48,49,50,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,34,35,36,37,38,39,40,41,11,51,52]));return n(e,E(t,`docx`))},async importDoc(e,t){let{docxToMarkdownDoc:n}=await c(async()=>{let{docxToMarkdownDoc:e}=await import(`./docx-B8Pwz5Ih.js`);return{docxToMarkdownDoc:e}},__vite__mapDeps([42,0,1,2,3,4,5,6,7,8,32,33,43,44,45,46,47,10,48,49,50,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,34,35,36,37,38,39,40,41,11,51,52]));return n(e,E(t,`docx`))},async exportDoc(e,t){let{markdownDocToDocx:n}=await c(async()=>{let{markdownDocToDocx:e}=await import(`./docx-B8Pwz5Ih.js`);return{markdownDocToDocx:e}},__vite__mapDeps([42,0,1,2,3,4,5,6,7,8,32,33,43,44,45,46,47,10,48,49,50,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,34,35,36,37,38,39,40,41,11,51,52])),r=E(t,`docx`),i=await D(e),a=await ae(e.container,t.signal),o=new Map([...a,...r.images??new Map]);return M(await w(await n(i,{...r,...t.title===void 0?{}:{title:t.title},themeId:T(e,t),themeRegistry:t.themeRegistry??r.themeRegistry,images:o})),C.docx,S(i,`docx`))}},{id:`pdf`,templateAnnotationHandling:`ignored`,label:`PDF`,mimeType:C.pdf,extensions:[`.pdf`],async importContainer(e,t){let{pdfToContainer:n}=await c(async()=>{let{pdfToContainer:e}=await import(`./pdf-C4BhW3zg.js`);return{pdfToContainer:e}},__vite__mapDeps([53,1,0,2,3,4,5,6,7,8,32,34,49,50,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,37,38,39,40,41,11,51,52]));return n(e,E(t,`pdf`))},async importDoc(e,t){let{pdfToMarkdownDoc:n}=await c(async()=>{let{pdfToMarkdownDoc:e}=await import(`./pdf-C4BhW3zg.js`);return{pdfToMarkdownDoc:e}},__vite__mapDeps([53,1,0,2,3,4,5,6,7,8,32,34,49,50,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,37,38,39,40,41,11,51,52]));return n(e,E(t,`pdf`))},async exportDoc(e,t){let{markdownDocToPdf:n}=await c(async()=>{let{markdownDocToPdf:e}=await import(`./pdf-C4BhW3zg.js`);return{markdownDocToPdf:e}},__vite__mapDeps([53,1,0,2,3,4,5,6,7,8,32,34,49,50,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,37,38,39,40,41,11,51,52])),r=E(t,`pdf`),i=await D(e),a=[];return M(await w(await n(i,{...r,...t.title===void 0?{}:{title:t.title},themeId:T(e,t),themeRegistry:t.themeRegistry??r.themeRegistry,onWarning:e=>a.push(e)})),C.pdf,[...S(i,`pdf`),...a])}},{id:`pptx`,templateAnnotationHandling:`rendered`,label:`PowerPoint (PPTX)`,mimeType:C.pptx,extensions:[`.pptx`],async importContainer(e,t){let{pptxToContainer:n}=await c(async()=>{let{pptxToContainer:e}=await import(`./pptx-B6uaM2s7.js`);return{pptxToContainer:e}},__vite__mapDeps([54,0,1,2,3,4,5,6,7,8,32,33,34,36,43,44,45,46,47,10,48,50,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,35,37,38,39,40,41,11,51,52,55,56]));return n(e,N(t))},async importDoc(e,t){let{pptxToMarkdownDoc:n}=await c(async()=>{let{pptxToMarkdownDoc:e}=await import(`./pptx-B6uaM2s7.js`);return{pptxToMarkdownDoc:e}},__vite__mapDeps([54,0,1,2,3,4,5,6,7,8,32,33,34,36,43,44,45,46,47,10,48,50,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,35,37,38,39,40,41,11,51,52,55,56]));return n(e,N(t))},async exportDoc(e,t){let{docToPptx:n}=await c(async()=>{let{docToPptx:e}=await import(`./pptx-B6uaM2s7.js`);return{docToPptx:e}},__vite__mapDeps([54,0,1,2,3,4,5,6,7,8,32,33,34,36,43,44,45,46,47,10,48,50,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,35,37,38,39,40,41,11,51,52,55,56])),r=E(t,`pptx`),i=await D(e),a=await k(e.container,t.signal),o=new Map([...a,...r.images??new Map]),s=[];return M(await w(await n(e.doc,{...r,...t.title===void 0?{}:{title:t.title},themeId:T(e,t),themeRegistry:t.themeRegistry??r.themeRegistry,images:o,onWarning:e=>{s.push(e),r.onWarning?.(e)}})),C.pptx,[...S(i,`pptx`),...s])}},{id:`xlsx`,templateAnnotationHandling:`preserved`,label:`Excel (XLSX)`,mimeType:C.xlsx,extensions:[`.xlsx`],async importContainer(e,t){let{xlsxToContainer:n}=await c(async()=>{let{xlsxToContainer:e}=await import(`./xlsx-BbHA9bxA.js`);return{xlsxToContainer:e}},__vite__mapDeps([57,1,0,2,3,4,5,6,7,8,44,43,58,32,45,59,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,11,46,48]));return n(e,E(t,`xlsx`))},async importDoc(e,t){let{xlsxToMarkdownDoc:n}=await c(async()=>{let{xlsxToMarkdownDoc:e}=await import(`./xlsx-BbHA9bxA.js`);return{xlsxToMarkdownDoc:e}},__vite__mapDeps([57,1,0,2,3,4,5,6,7,8,44,43,58,32,45,59,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,11,46,48]));return n(e,E(t,`xlsx`))},async exportDoc(e,t){let{markdownDocToXlsx:n}=await c(async()=>{let{markdownDocToXlsx:e}=await import(`./xlsx-BbHA9bxA.js`);return{markdownDocToXlsx:e}},__vite__mapDeps([57,1,0,2,3,4,5,6,7,8,44,43,58,32,45,59,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,11,46,48])),{materializeDataReferences:r}=await c(async()=>{let{materializeDataReferences:e}=await import(`./materialize-G4WC5UG3-xq2dcwS8.js`);return{materializeDataReferences:e}},__vite__mapDeps([60,43,1,44,58,0,2,3,4,5,6,7,8,32,61,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,11,45,59,62,63])),i=[],a=await r(await D(e),e.container,e=>i.push(e)),o=a.children.filter(e=>e.type!==`table`&&e.type!==`heading`).length;return o>0&&i.push(`XLSX export is tables-only; ${o} non-table block(s) were omitted.`),M(await w(await n(a,{...E(t,`xlsx`),...t.title===void 0?{}:{title:t.title},onWarning:e=>i.push(e)})),C.xlsx,i)}},{id:`csv`,templateAnnotationHandling:`ignored`,label:`CSV`,mimeType:C.csv,extensions:[`.csv`],async importContainer(e,t){let{csvToContainer:n}=await c(async()=>{let{csvToContainer:e}=await import(`./csv-Di411Mv-.js`);return{csvToContainer:e}},__vite__mapDeps([64,58,0,1,2,3,4,5,6,7,8,32,61,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,11]));return n(e,E(t,`csv`))},async importDoc(e,t){let{csvToMarkdownDoc:n}=await c(async()=>{let{csvToMarkdownDoc:e}=await import(`./csv-Di411Mv-.js`);return{csvToMarkdownDoc:e}},__vite__mapDeps([64,58,0,1,2,3,4,5,6,7,8,32,61,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,11]));return n(e,E(t,`csv`))},async exportDoc(e,t){let{markdownDocToCsv:n}=await c(async()=>{let{markdownDocToCsv:e}=await import(`./csv-Di411Mv-.js`);return{markdownDocToCsv:e}},__vite__mapDeps([64,58,0,1,2,3,4,5,6,7,8,32,61,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,11])),r=await D(e),i=E(t,`csv`),a=r.children.filter(e=>e.type===`table`).length,o=[];a>1&&i.tableIndex===void 0&&o.push(`Document has ${a} tables; CSV export emitted only the first. Use the csv converter's tableIndex option to select another.`);let s=n(r,i);return M(new TextEncoder().encode(s),C.csv,o)}},{id:`html`,templateAnnotationHandling:`rendered`,label:`HTML (single file)`,mimeType:C.html,extensions:[`.html`,`.htm`],async importDoc(e,t){let{htmlToMarkdownDoc:n}=await c(async()=>{let{htmlToMarkdownDoc:e}=await import(`./html-BnA7qFwq.js`).then(e=>e.t);return{htmlToMarkdownDoc:e}},__vite__mapDeps([65,1,0,2,3,4,5,6,7,8,32,33,44,49,55,10]));return n(e,E(t,`html`))},async exportDoc(e,t){let n=E(t,`html`);if(n.playerScriptPath){let{generateExternalHtml:r}=await c(async()=>{let{generateExternalHtml:e}=await import(`./html-BnA7qFwq.js`).then(e=>e.t);return{generateExternalHtml:e}},__vite__mapDeps([65,1,0,2,3,4,5,6,7,8,32,33,44,49,55,10])),i=r(e.doc,{...n,playerScriptPath:n.playerScriptPath,title:t.title??e.baseName,mode:n.mode??`static`,themeId:T(e,t),themeRegistry:t.themeRegistry??n.themeRegistry});return M(new TextEncoder().encode(i),C.html)}let r=await j(t,`html`),{docToHtml:i}=await c(async()=>{let{docToHtml:e}=await import(`./html-BnA7qFwq.js`).then(e=>e.t);return{docToHtml:e}},__vite__mapDeps([65,1,0,2,3,4,5,6,7,8,32,33,44,49,55,10])),a=await k(e.container,t.signal),o=new Map([...a,...n.images??new Map]),s=i(e.doc,{...n,playerScript:r,images:o,title:t.title??e.baseName,mode:n.mode??`static`,themeId:T(e,t),themeRegistry:t.themeRegistry??n.themeRegistry});return M(new TextEncoder().encode(s),C.html,A(e.doc,`Single-file HTML`))}},{id:`htmlzip`,templateAnnotationHandling:`rendered`,label:`HTML (ZIP archive)`,mimeType:C.zip,extensions:[`.html.zip`],async exportDoc(e,t){let n=await j(t,`htmlzip`),{docToHtmlZip:r}=await c(async()=>{let{docToHtmlZip:e}=await import(`./html-BnA7qFwq.js`).then(e=>e.t);return{docToHtmlZip:e}},__vite__mapDeps([65,1,0,2,3,4,5,6,7,8,32,33,44,49,55,10])),i=E(t,`htmlzip`),a=await k(e.container,t.signal),o=await O(e.container,ie,t.signal,!1),s=new Map([...a,...o,...i.images??new Map]);return M(await w(await r(e.doc,{...i,playerScript:n,images:s,title:t.title??e.baseName,mode:i.mode??`static`,themeId:T(e,t),themeRegistry:t.themeRegistry??i.themeRegistry})),C.zip)}},{id:`epub`,templateAnnotationHandling:`ignored`,label:`EPUB`,mimeType:C.epub,extensions:[`.epub`],async exportDoc(e,t){let{markdownDocToEpub:n}=await c(async()=>{let{markdownDocToEpub:e}=await import(`./epub-BQ4g8Q9j.js`);return{markdownDocToEpub:e}},__vite__mapDeps([66,1,0,2,3,4,5,6,7,8,32,33,44,46,49,51,52,55,10])),r=E(t,`epub`),i=await D(e),a=await k(e.container,t.signal),o=new Map([...a,...r.images??new Map]);return M(await w(await n(i,{...r,title:t.title??e.baseName,themeId:T(e,t),themeRegistry:t.themeRegistry??r.themeRegistry,images:o})),C.epub,[...S(i,`epub`),...A(e.doc,`EPUB`)])}},{id:`dbk`,templateAnnotationHandling:`preserved`,label:`Squisq container (DBK)`,mimeType:C.zip,extensions:[`.dbk`,`.zip`],async importContainer(e,t){let{zipToContainer:n}=await c(async()=>{let{zipToContainer:e}=await import(`./container-iFj1r6Hk.js`);return{zipToContainer:e}},__vite__mapDeps([67,1,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,0,2,3,4,5,6,7,8,32,33,34,35,36,37,38,39,40,41,44,43,11]));return n(e,E(t,`dbk`))},async exportDoc(e,t){let{containerToZip:n}=await c(async()=>{let{containerToZip:e}=await import(`./container-iFj1r6Hk.js`);return{containerToZip:e}},__vite__mapDeps([67,1,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,0,2,3,4,5,6,7,8,32,33,34,35,36,37,38,39,40,41,44,43,11]));return M(await w(await n(await oe(e,t.signal),E(t,`dbk`))),C.zip)}}]}function P(e){return e.replace(/^\.+/,``).toLowerCase()}function ce(){let e=new Map;return{register(t){e.set(t.id,t)},get(t){return e.get(t)},byExtension(t){let n=P(t);if(n){for(let t of e.values())if(t.extensions.some(e=>P(e)===n))return t}},list(){return[...e.values()]}}}function F(){let e=ce();for(let t of se())e.register(t);return e}function I(e){return e.formatOptions?.md??{}}function L(e){let t=I(e).parse??{};return{...t,signal:e.signal,limits:t.limits??y(e.limits)}}function R(e){let t=I(e).stringify??{};return{...t,signal:e.signal,limits:t.limits??y(e.limits)}}function z(e){if(!e?.aborted)return;if(e.reason!==void 0)throw e.reason;let t=Error(`Document conversion was cancelled.`);throw t.name=`AbortError`,t}function B(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}var le=[80,75,3,4],ue=[37,80,68,70],de=[`docx`,`pptx`,`xlsx`,`dbk`];function fe(e){let t=de.map(t=>d(e.formatOptions?.[t]??{}));return{signal:e.signal,maxEntries:Math.max(...t.map(e=>e.maxEntries)),maxUncompressedBytes:Math.max(...t.map(e=>e.maxUncompressedBytes)),maxEntryUncompressedBytes:Math.max(...t.map(e=>e.maxEntryUncompressedBytes)),maxCompressionRatio:Math.max(...t.map(e=>e.maxCompressionRatio))}}async function pe(e,t){let n=await f(e,fe(t)).catch(e=>{throw e instanceof p&&e.code!==`invalid-archive`?e:new g(`invalid-input`,`Input is not a readable ZIP archive.`,{cause:e})}),r=n.entries.find(e=>e.path===`[Content_Types].xml`);if(!r)return`dbk`;let i=1024*1024;if((r.declaredSize??0)>i)throw new g(`invalid-input`,`OOXML content-types metadata is too large.`);let a=await n.read(r.path,i);if(!a)return`dbk`;let o=new TextDecoder().decode(a);return o.includes(`wordprocessingml`)?`docx`:o.includes(`presentationml`)?`pptx`:o.includes(`spreadsheetml`)?`xlsx`:`dbk`}async function me(e,t,n,r){if(n.from)return n.from;let i=t?he(t):void 0;if(i){let e=r.byExtension(i);if(e)return e.id}return B(e,ue)?`pdf`:B(e,le)?pe(e,n):`md`}function he(e){let t=e.replace(/\\/g,`/`),n=t.split(`/`).pop()??t,r=n.lastIndexOf(`.`);return r<=0?``:n.slice(r+1).toLowerCase()}function ge(e){let t=e.replace(/\\/g,`/`),n=t.split(`/`).pop()??t,r=n.lastIndexOf(`.`);return r>0?n.slice(0,r):n}async function _e(e,t,n){let r=e.data instanceof Uint8Array?e.data:new Uint8Array(e.data);if(t.limits!==!1&&r.byteLength>v(t.limits).maxInputBytes)throw new g(`invalid-input`,`Input exceeds the ${v(t.limits).maxInputBytes}-byte safety limit.`);let i=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),a=await me(r,e.filename,t,n),o=n.get(a);if(!o)throw new g(`unknown-format`,`Unknown source format "${a}".`,{format:a});if(!o.importContainer&&!o.importDoc)throw new g(`unsupported-input`,`Format "${o.label}" cannot be used as a conversion source.`,{format:a,hint:`This format is export-only.`});let{markdownToDoc:s}=await c(async()=>{let{markdownToDoc:e}=await import(`./doc-BHcGsJZd.js`).then(e=>e.t);return{markdownToDoc:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8])),{parseMarkdown:l,stringifyMarkdown:u}=await c(async()=>{let{parseMarkdown:e,stringifyMarkdown:t}=await import(`./markdown-CLKH_zzl.js`).then(e=>e.t);return{parseMarkdown:e,stringifyMarkdown:t}},__vite__mapDeps([32,1,2,4,6])),d=[],f,p;if(o.importContainer){p=await o.importContainer(i,t);let e=await p.readDocument();f=e?l(e,L(t)):{type:`document`,children:[]}}else{f=await o.importDoc(i,t);let{MemoryContentContainer:e}=await c(async()=>{let{MemoryContentContainer:e}=await import(`./storage-Cmhlwx70.js`).then(e=>e.t);return{MemoryContentContainer:e}},__vite__mapDeps([11,1,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,0,2,3,4,5,6,7,8,32,33,34,35,36,37,38,39,40,41])),n=new e;await n.writeDocument(u(f,R(t))),p=n}let{assertMarkdownDocumentWithinLimits:m}=await c(async()=>{let{assertMarkdownDocumentWithinLimits:e}=await import(`./markdown-CLKH_zzl.js`).then(e=>e.t);return{assertMarkdownDocumentWithinLimits:e}},__vite__mapDeps([32,1,2,4,6]));m(f,y(t.limits),t.signal);let h=s(f,{autoTemplates:t.autoTemplates});b(h,t.limits,t.signal);let _=e.filename?ge(e.filename):`document`;return{input:{doc:h,markdownDoc:f,container:p,baseName:_},warnings:d}}async function ve(e,t){let{markdownToDoc:n}=await c(async()=>{let{markdownToDoc:e}=await import(`./doc-BHcGsJZd.js`).then(e=>e.t);return{markdownToDoc:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8])),{parseMarkdown:r}=await c(async()=>{let{parseMarkdown:e}=await import(`./markdown-CLKH_zzl.js`).then(e=>e.t);return{parseMarkdown:e}},__vite__mapDeps([32,1,2,4,6])),{stringifyMarkdown:i}=await c(async()=>{let{stringifyMarkdown:e}=await import(`./markdown-CLKH_zzl.js`).then(e=>e.t);return{stringifyMarkdown:e}},__vite__mapDeps([32,1,2,4,6])),a=typeof e.markdown==`string`?r(e.markdown,L(t)):e.markdown,{assertMarkdownDocumentWithinLimits:o}=await c(async()=>{let{assertMarkdownDocumentWithinLimits:e}=await import(`./markdown-CLKH_zzl.js`).then(e=>e.t);return{assertMarkdownDocumentWithinLimits:e}},__vite__mapDeps([32,1,2,4,6]));o(a,y(t.limits),t.signal);let s=e.container;if(!s){let{MemoryContentContainer:e}=await c(async()=>{let{MemoryContentContainer:e}=await import(`./storage-Cmhlwx70.js`).then(e=>e.t);return{MemoryContentContainer:e}},__vite__mapDeps([11,1,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,0,2,3,4,5,6,7,8,32,33,34,35,36,37,38,39,40,41])),n=new e;await n.writeDocument(i(a,R(t))),s=n}let l=n(a,{autoTemplates:t.autoTemplates});b(l,t.limits,t.signal);let u=e.baseName??`document`;return{input:{doc:l,markdownDoc:a,container:s,baseName:u},warnings:[]}}async function ye(e,t){b(e.doc,t.limits,t.signal);let n=e.container;if(!n){let{MemoryContentContainer:r}=await c(async()=>{let{MemoryContentContainer:e}=await import(`./storage-Cmhlwx70.js`).then(e=>e.t);return{MemoryContentContainer:e}},__vite__mapDeps([11,1,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,0,2,3,4,5,6,7,8,32,33,34,35,36,37,38,39,40,41])),{docToMarkdown:i}=await c(async()=>{let{docToMarkdown:e}=await import(`./doc-BHcGsJZd.js`).then(e=>e.t);return{docToMarkdown:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8])),{stringifyMarkdown:a}=await c(async()=>{let{stringifyMarkdown:e}=await import(`./markdown-CLKH_zzl.js`).then(e=>e.t);return{stringifyMarkdown:e}},__vite__mapDeps([32,1,2,4,6])),o=new r;await o.writeDocument(a(i(e.doc),R(t))),n=o}let r=e.baseName??`document`;return{input:{doc:e.doc,container:n,baseName:r},warnings:[]}}async function be(e,t,n){switch(e.kind){case`bytes`:return _e(e,t,n);case`markdown`:return ve(e,t);case`doc`:return ye(e,t)}}async function xe(e,t,n,r){let{applyTransform:i,extractDocImages:a}=await c(async()=>{let{applyTransform:e,extractDocImages:t}=await import(`./transform-DxJCwK68.js`).then(e=>e.t);return{applyTransform:e,extractDocImages:t}},__vite__mapDeps([68,1,40,2,3,7])),{docToMarkdown:o,markdownToDoc:s}=await c(async()=>{let{docToMarkdown:e,markdownToDoc:t}=await import(`./doc-BHcGsJZd.js`).then(e=>e.t);return{docToMarkdown:e,markdownToDoc:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8])),l=a(e.doc.blocks),u=i(e.doc,t,{themeId:n,images:l,registry:r});e.doc=u.doc;let d=o(u.doc);return e.markdownDoc=d,s(d,{autoTemplates:!1}).blocks.length<u.doc.blocks.length?[`Transform produced blocks that don’t round-trip to markdown; export may be incomplete.`]:[]}async function Se(e,t,n){z(t.signal);let r=t.registry??F(),i;try{i=await be(e,t,r),z(t.signal)}catch(e){throw z(t.signal),e instanceof g?e:new g(`invalid-input`,e instanceof Error?e.message:String(e),{format:t.from,cause:e})}let{input:a,warnings:o}=i;t.themeId&&!a.doc.themeId&&(a.doc={...a.doc,themeId:t.themeId});try{t.transformStyle&&(o.push(...await xe(a,t.transformStyle,t.themeId??a.doc.themeId,t.transformRegistry)),z(t.signal))}catch(e){throw z(t.signal),e instanceof g?e:new g(`conversion-failed`,e instanceof Error?e.message:String(e),{format:n,cause:e})}let s=Object.freeze([...o]),c={...a};return Object.freeze({async convert(e,n={}){let i=V(r,e),a=Ce(t,n);z(a.signal);let o;try{o=await i.exportDoc({...c},a),z(a.signal)}catch(t){throw z(a.signal),t instanceof g?t:new g(`conversion-failed`,t instanceof Error?t.message:String(t),{format:e,cause:t})}let l=i.extensions[0]?.replace(/^\.+/,``)??e;return{...o,suggestedFilename:`${c.baseName}.${l}`,warnings:[...s,...o.warnings]}}})}function V(e,t){let n=e.get(t);if(!n)throw new g(`unknown-format`,`Unknown target format "${t}".`,{format:t});if(!n.exportDoc)throw new g(`unsupported-output`,`Format "${n.label}" does not support export.`,{format:t,hint:`This format is import-only.`});return n}function Ce(e,t){return{...e,signal:we(e.signal,t.signal),title:t.title??e.title,resolvePlayerScript:t.resolvePlayerScript??e.resolvePlayerScript,formatOptions:t.formatOptions===void 0?e.formatOptions:{...e.formatOptions??{},...t.formatOptions}}}function we(e,t){return e?!t||e===t?e:AbortSignal.any([e,t]):t}async function Te(e,t,n={}){z(n.signal);let r=n.registry??F();return V(r,t),(await Se(e,{...n,registry:r},t)).convert(t)}var Ee=e({OUTSIDE_IN_FORMATS:()=>H,OUTSIDE_IN_UPDATE_FROM_MARKDOWN_KEY:()=>U,chooseOutsideInSource:()=>q,importOutsideInDocument:()=>Fe,isOutsideInMarkdownEditingEnabled:()=>X,parentPath:()=>$,relativePath:()=>Re,relinkMovedOutsideInCompanion:()=>J,renderOutsideInDocument:()=>Ie,resolveOutsideInLayout:()=>K,runtimePathForTarget:()=>Le,supportsOutsideInMarkdownEditing:()=>Z,withOutsideInMarkdownEditing:()=>Pe,withOutsideInMetadata:()=>Y}),H=[`html`,`docx`,`pdf`,`pptx`,`xlsx`,`csv`],U=`squisq-updatefrommarkdown`,De=new Set(H),Oe=/\.(?:csv|tsv|xlsx|parquet)$/i;function W(e){let t=e.replace(/\\/g,`/`).split(`/`).filter(Boolean);if(t.some(e=>e===`.`||e===`..`))throw Error(`Outside-in paths must stay inside the project: ${e}`);return t.join(`/`)}function G(e,t){return e?`${e}/${t}`:t}function ke(e){let t=e.lastIndexOf(`/`);return t<0?e:e.slice(t+1)}function Ae(e){return e.normalize(`NFKD`).replace(/\p{Mark}+/gu,``).toLocaleLowerCase(`en-US`).replace(/[^\p{Letter}\p{Number}]+/gu,`-`).replace(/^-+|-+$/g,``)||`document`}function K(e){let t=W(e),n=t.lastIndexOf(`/`),r=n<0?``:t.slice(0,n),i=n<0?t:t.slice(n+1),a=i.lastIndexOf(`.`);if(a<=0)return null;let o=i.slice(a+1).toLowerCase(),s=o===`htm`?`html`:o;if(!De.has(s))return null;let c=i.slice(0,a),l=`${c}_files`,u=G(r,l),d=`${Ae(c)}.md`,f=G(u,`.original`),p=`original.${s}`;return{targetPath:t,format:s,parentDirectory:r,stem:c,companionName:l,companionDirectory:u,markdownFilename:d,markdownPath:G(u,d),relativeTargetPath:`../${i}`,backupDirectory:f,backupFilename:p,backupPath:G(f,p)}}function q(e,t){let n=W(e.markdownPath),r=t.map(W),i=r.find(e=>e===n);if(i)return i;let a=r.find(e=>e.toLocaleLowerCase(`en-US`)===n.toLocaleLowerCase(`en-US`));if(a)return a;let o=`${e.companionDirectory}/`,s=r.filter(e=>e.startsWith(o)&&!e.slice(o.length).includes(`/`)&&e.toLocaleLowerCase(`en-US`).endsWith(`.md`));return s.length===1?s[0]:null}async function J(e){let t=q(e.from,e.filePaths);if(!t)return;let n=`${e.to.companionDirectory}${t.slice(e.from.companionDirectory.length)}`;t===e.from.markdownPath&&n!==e.to.markdownPath&&(await e.rename(n,e.to.markdownPath),n=e.to.markdownPath);let r=await e.read(n),i=Y(u(r,e.from.targetPath,e.to.targetPath),e.to);i!==r&&await e.write(n,i)}function Y(e,t){return Me(a(e,{"squisq-outside-in":1,"squisq-output":t.relativeTargetPath,"squisq-output-format":t.format}),t.format)}function je(e){let t=e.startsWith(`<`)&&e.endsWith(`>`)?e.slice(1,-1):e,n=t;try{n=decodeURIComponent(t)}catch{return e}return!Oe.test(n)||/^(?:[a-z][a-z\d+.-]*:|\/)/i.test(n)?e:n.replace(/\\/g,`/`).split(`/`).map(e=>encodeURIComponent(e)).join(`/`)}function Me(e,t){if(t!==`csv`&&t!==`xlsx`)return e;try{let t=o(e),n=!1;for(let e of t.children){let t=e.type===`heading`?e.templateAnnotation?.params:void 0;if(t&&typeof t.src==`string`){let e=t.src,r=je(e);r!==e&&(t.src=r,n=!0)}if(e.type===`paragraph`)for(let t of e.children){if(t.type!==`link`)continue;let e=je(t.url);e!==t.url&&(t.url=e,n=!0)}}return n?s(t):e}catch{return e}}function Ne(e){let t=r(e).frontmatter;if(!t)return null;let n=t.indexOf(`
|
|
3
|
+
`);return n<0?null:t.slice(n+1).replace(/\r?\n---(?:\r?\n)?$/,``)}function X(e){let t=Ne(e);return(t===null?null:i(t))?.[U]===!0}function Z(e){return e!==`csv`}function Pe(e,t,n=!0){return a(Y(e,t),{[U]:n})}function Q(e){return e instanceof ArrayBuffer?e:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}async function Fe(e,t,n={}){let r=n.registry??F(),i=r.get(t.format);if(!i||!i.importContainer&&!i.importDoc)throw Error(`${t.format.toUpperCase()} cannot be imported for editing.`);let a=t.format===`xlsx`||t.format===`csv`?{...n.formatOptions,[t.format]:{...n.formatOptions?.[t.format]??{},sourceName:ke(t.targetPath)}}:n.formatOptions,u={...n,registry:r,from:t.format,...a?{formatOptions:a}:{}},d=new l,f=null;if(i.importContainer){d=await i.importContainer(Q(e),u);let t=await d.readDocument();t!==null&&(f=o(t))}if(!f&&i.importDoc&&(f=await i.importDoc(Q(e),u)),!f)throw Error(`The ${t.format.toUpperCase()} file has no editable content.`);let p=[];if((t.format===`docx`||t.format===`xlsx`)&&typeof f.frontmatter?.[`squisq-theme`]!=`string`)try{let[{inferThemeFromFile:r},i]=await Promise.all([c(()=>import(`./infer-oEpp0FFr.js`),__vite__mapDeps([69,34,43,1,44,45,70,71,5,3,4,33,72])),c(()=>import(`./doc-BHcGsJZd.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))]),a=await r(Q(e),{format:t.format,nameHint:t.stem,signal:n.signal}),o=i.writeCustomThemesToFrontmatter([a.theme]);o&&(f.frontmatter={...f.frontmatter??{},[i.FRONTMATTER_CUSTOM_THEMES_KEY]:o,"squisq-theme":a.theme.id}),p.push(...a.warnings)}catch(e){if(n.signal?.aborted)throw n.signal.reason??e;p.push(`The ${t.format.toUpperCase()} content was imported, but its Office theme could not be retained: ${e instanceof Error?e.message:String(e)}`)}return{markdown:Y(s(f),t),container:d,warnings:p}}async function Ie(e,n,r,i){if(!Z(n.format))throw Error(`CSV data sidecar previews are read-only.`);if(!X(e))throw Error(`Outside-in editing is read-only until ${U}: true is set.`);if(n.format!==`html`)return Te({kind:`markdown`,markdown:e,container:r,baseName:n.stem},n.format,{title:n.stem});if(!i)throw Error(`HTML editing needs a shared Squisq runtime path.`);let a=t(o(e)),s=e=>`${n.companionName}/${e.replace(/^\/+/,``)}`,c=Object.fromEntries([...m(a)].map(e=>[e,s(e)])),l={};for(let e of a.audio.segments)l[e.name]=s(e.src),l[e.src]=s(e.src);let u=h(a,{playerScriptPath:i,imagePathMap:c,audioPathMap:l,title:n.stem,mode:`static`});return{bytes:new TextEncoder().encode(u),mimeType:`text/html`,suggestedFilename:`${n.stem}.html`,warnings:[]}}function Le(e,t){let n=$(e);for(;;){let e=G(n,`_squisq`);if(t.has(e))return G(e,`squisq-player.js`);if(!n)return`_squisq/squisq-player.js`;n=$(n)}}function $(e){let t=W(e),n=t.lastIndexOf(`/`);return n<0?``:t.slice(0,n)}function Re(e,t){let n=W(e).split(`/`).filter(Boolean),r=W(t).split(`/`).filter(Boolean),i=0;for(;i<n.length&&i<r.length&&n[i]===r[i];)i++;return[...n.slice(i).map(()=>`..`),...r.slice(i)].join(`/`)||`.`}export{Re as a,K as c,Pe as d,Y as f,Ee as i,Le as l,Fe as n,J as o,X as r,Ie as s,q as t,Z as u};
|