reflex-agent 0.18.2 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +101 -102
- package/.next/app-path-routes-manifest.json +9 -9
- package/.next/build-manifest.json +5 -5
- package/.next/prerender-manifest.json +3 -3
- package/.next/react-loadable-manifest.json +1 -1
- package/.next/required-server-files.json +2 -1
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/agents/[agentId]/page.js +2 -2
- package/.next/server/app/agents/[agentId]/page.js.nft.json +1 -1
- package/.next/server/app/agents/[agentId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agents/[agentId]/respond/route.js +1 -1
- package/.next/server/app/api/agents/[agentId]/respond/route.js.nft.json +1 -1
- package/.next/server/app/api/agents/[agentId]/respond/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/images/[rootId]/[file]/route.js +1 -1
- package/.next/server/app/api/images/[rootId]/[file]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/oauth/callback/route.js +2 -2
- package/.next/server/app/api/oauth/callback/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/oauth/start/route.js +1 -1
- package/.next/server/app/api/oauth/start/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/roots/[id]/attachments/route.js +0 -0
- package/.next/server/app/api/roots/[id]/attachments/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route.js +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route.js.nft.json +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route.js +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route.js.nft.json +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route.js +2 -2
- package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route.js.nft.json +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/roots/[id]/dashboard/route.js +1 -1
- package/.next/server/app/api/roots/[id]/dashboard/route.js.nft.json +1 -1
- package/.next/server/app/api/roots/[id]/dashboard/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/roots/[id]/suggestions/route.js +1 -1
- package/.next/server/app/api/roots/[id]/suggestions/route.js.nft.json +1 -1
- package/.next/server/app/api/roots/[id]/suggestions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/bundle.js/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/host/route.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/host/route.js.nft.json +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/host/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/host-api.mjs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/host-ui.mjs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/iframe/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/style.css/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/install-archive/route_client-reference-manifest.js +1 -1
- package/.next/server/app/audit/page.js +2 -2
- package/.next/server/app/audit/page.js.nft.json +1 -1
- package/.next/server/app/audit/page_client-reference-manifest.js +1 -1
- package/.next/server/app/dispatcher/page.js +2 -2
- package/.next/server/app/dispatcher/page.js.nft.json +1 -1
- package/.next/server/app/dispatcher/page_client-reference-manifest.js +1 -1
- package/.next/server/app/onboarding/page.js +3 -3
- package/.next/server/app/onboarding/page.js.nft.json +1 -1
- package/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/[id]/chat/[topicId]/page.js +2 -2
- package/.next/server/app/roots/[id]/chat/[topicId]/page.js.nft.json +1 -1
- package/.next/server/app/roots/[id]/chat/[topicId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/[id]/kb/[...slug]/page.js +2 -2
- package/.next/server/app/roots/[id]/kb/[...slug]/page.js.nft.json +1 -1
- package/.next/server/app/roots/[id]/kb/[...slug]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/[id]/memory/page.js +2 -2
- package/.next/server/app/roots/[id]/memory/page.js.nft.json +1 -1
- package/.next/server/app/roots/[id]/memory/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/[id]/page.js +4 -4
- package/.next/server/app/roots/[id]/page.js.nft.json +1 -1
- package/.next/server/app/roots/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/[id]/workflows/[wfId]/page.js +2 -2
- package/.next/server/app/roots/[id]/workflows/[wfId]/page.js.nft.json +1 -1
- package/.next/server/app/roots/[id]/workflows/[wfId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/[id]/workflows/page.js +2 -2
- package/.next/server/app/roots/[id]/workflows/page.js.nft.json +1 -1
- package/.next/server/app/roots/[id]/workflows/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/new/page.js +4 -4
- package/.next/server/app/roots/new/page.js.nft.json +1 -1
- package/.next/server/app/roots/new/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/page.js +5 -5
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/share/[id]/file/page.js +2 -2
- package/.next/server/app/share/[id]/file/page.js.nft.json +1 -1
- package/.next/server/app/share/[id]/file/page_client-reference-manifest.js +1 -1
- package/.next/server/app/share/[id]/page.js +2 -2
- package/.next/server/app/share/[id]/page.js.nft.json +1 -1
- package/.next/server/app/share/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/utilities/[scope]/[id]/page.js +2 -2
- package/.next/server/app/utilities/[scope]/[id]/page.js.nft.json +1 -1
- package/.next/server/app/utilities/[scope]/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/utilities/page.js +2 -2
- package/.next/server/app/utilities/page.js.nft.json +1 -1
- package/.next/server/app/utilities/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +9 -9
- package/.next/server/chunks/{6435.js → 1088.js} +1 -1
- package/.next/server/chunks/1105.js +1 -1
- package/.next/server/chunks/1179.js +1 -0
- package/.next/server/chunks/1223.js +1 -1
- package/.next/server/chunks/1244.js +1 -1
- package/.next/server/chunks/1281.js +80 -0
- package/.next/server/chunks/1336.js +252 -0
- package/.next/server/chunks/1353.js +51 -0
- package/.next/server/chunks/1431.js +1 -0
- package/.next/server/chunks/146.js +2 -0
- package/.next/server/chunks/1491.js +79 -0
- package/.next/server/chunks/1496.js +148 -0
- package/.next/server/chunks/{9631.js → 1589.js} +2 -2
- package/.next/server/chunks/1623.js +1 -0
- package/.next/server/chunks/1862.js +77 -0
- package/.next/server/chunks/1888.js +1 -1
- package/.next/server/chunks/1908.js +1 -0
- package/.next/server/chunks/192.js +1 -0
- package/.next/server/chunks/2069.js +1 -0
- package/.next/server/chunks/2087.js +24 -0
- package/.next/server/chunks/209.js +1 -0
- package/.next/server/chunks/2115.js +77 -0
- package/.next/server/chunks/2232.js +80 -0
- package/.next/server/chunks/{4460.js → 2262.js} +2 -2
- package/.next/server/chunks/2280.js +1 -0
- package/.next/server/chunks/2433.js +1 -1
- package/.next/server/chunks/2485.js +3 -8
- package/.next/server/chunks/2503.js +1 -1
- package/.next/server/chunks/2539.js +93 -0
- package/.next/server/chunks/2764.js +80 -0
- package/.next/server/chunks/285.js +24 -75
- package/.next/server/chunks/2888.js +7 -0
- package/.next/server/chunks/302.js +1 -0
- package/.next/server/chunks/3029.js +36 -0
- package/.next/server/chunks/3110.js +0 -0
- package/.next/server/chunks/3117.js +1 -0
- package/.next/server/chunks/3258.js +23 -0
- package/.next/server/chunks/331.js +1 -0
- package/.next/server/chunks/3332.js +1 -1
- package/.next/server/chunks/{4251.js → 3474.js} +24 -25
- package/.next/server/chunks/3552.js +43 -0
- package/.next/server/chunks/3583.js +104 -0
- package/.next/server/chunks/3631.js +1 -0
- package/.next/server/chunks/3633.js +1 -0
- package/.next/server/chunks/383.js +1 -80
- package/.next/server/chunks/3834.js +1 -1
- package/.next/server/chunks/3953.js +1 -0
- package/.next/server/chunks/3992.js +1 -0
- package/.next/server/chunks/4013.js +1 -0
- package/.next/server/chunks/4031.js +3 -3
- package/.next/server/chunks/4119.js +1 -0
- package/.next/server/chunks/4230.js +12 -0
- package/.next/server/chunks/4250.js +1 -0
- package/.next/server/chunks/4294.js +1 -0
- package/.next/server/chunks/4312.js +1 -0
- package/.next/server/chunks/4342.js +1 -0
- package/.next/server/chunks/4360.js +1 -0
- package/.next/server/chunks/449.js +226 -0
- package/.next/server/chunks/4578.js +0 -0
- package/.next/server/chunks/4585.js +1 -0
- package/.next/server/chunks/4611.js +1 -1
- package/.next/server/chunks/4639.js +1 -0
- package/.next/server/chunks/4682.js +1 -0
- package/.next/server/chunks/4788.js +153 -0
- package/.next/server/chunks/4812.js +2 -2
- package/.next/server/chunks/4925.js +1 -1
- package/.next/server/chunks/4952.js +1 -0
- package/.next/server/chunks/4969.js +4 -1
- package/.next/server/chunks/4989.js +801 -0
- package/.next/server/chunks/5211.js +64 -0
- package/.next/server/chunks/5243.js +1 -1
- package/.next/server/chunks/5308.js +1 -0
- package/.next/server/chunks/5461.js +1 -0
- package/.next/server/chunks/5549.js +1 -0
- package/.next/server/chunks/5719.js +34 -0
- package/.next/server/chunks/5810.js +12 -0
- package/.next/server/chunks/5922.js +1 -0
- package/.next/server/chunks/6142.js +1 -1
- package/.next/server/chunks/6216.js +1 -1
- package/.next/server/chunks/6318.js +9 -0
- package/.next/server/chunks/6483.js +1 -1
- package/.next/server/chunks/6509.js +1 -0
- package/.next/server/chunks/6571.js +166 -0
- package/.next/server/chunks/660.js +1 -0
- package/.next/server/chunks/6692.js +1 -0
- package/.next/server/chunks/6730.js +1 -1
- package/.next/server/chunks/6852.js +1 -0
- package/.next/server/chunks/6970.js +1 -0
- package/.next/server/chunks/7007.js +1 -0
- package/.next/server/chunks/7188.js +1 -1
- package/.next/server/chunks/7220.js +1 -1
- package/.next/server/chunks/7228.js +1 -0
- package/.next/server/chunks/7244.js +1 -0
- package/.next/server/chunks/7373.js +90 -0
- package/.next/server/chunks/7430.js +1 -1
- package/.next/server/chunks/7523.js +1 -0
- package/.next/server/chunks/7576.js +1 -0
- package/.next/server/chunks/7742.js +7 -0
- package/.next/server/chunks/7811.js +215 -0
- package/.next/server/chunks/7885.js +1 -0
- package/.next/server/chunks/8032.js +3 -0
- package/.next/server/chunks/8095.js +24 -0
- package/.next/server/chunks/8129.js +5 -0
- package/.next/server/chunks/8294.js +1 -0
- package/.next/server/chunks/832.js +1 -0
- package/.next/server/chunks/8464.js +180 -0
- package/.next/server/chunks/8511.js +0 -0
- package/.next/server/chunks/8514.js +1 -1
- package/.next/server/chunks/8583.js +4 -0
- package/.next/server/chunks/8609.js +55 -0
- package/.next/server/chunks/8711.js +1 -0
- package/.next/server/chunks/8714.js +1 -0
- package/.next/server/chunks/8730.js +1 -0
- package/.next/server/chunks/8868.js +1 -0
- package/.next/server/chunks/9048.js +1 -0
- package/.next/server/chunks/9058.js +1 -0
- package/.next/server/chunks/9062.js +1 -0
- package/.next/server/chunks/9094.js +1 -0
- package/.next/server/chunks/9098.js +1 -1
- package/.next/server/chunks/9099.js +1 -0
- package/.next/server/chunks/9171.js +287 -0
- package/.next/server/chunks/9181.js +1 -0
- package/.next/server/chunks/9293.js +1 -1
- package/.next/server/chunks/9478.js +1 -0
- package/.next/server/chunks/9494.js +141 -0
- package/.next/server/chunks/952.js +1 -0
- package/.next/server/chunks/9600.js +1 -0
- package/.next/server/chunks/9607.js +29 -0
- package/.next/server/chunks/9653.js +115 -0
- package/.next/server/chunks/9784.js +1 -0
- package/.next/server/chunks/9798.js +1 -0
- package/.next/server/chunks/9990.js +1 -0
- package/.next/server/edge-instrumentation.js +2 -0
- package/.next/server/edge-instrumentation.js.map +1 -0
- package/.next/server/functions-config-manifest.json +3 -3
- package/.next/server/instrumentation.js +1 -0
- package/.next/server/instrumentation.js.nft.json +1 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-manifest.json +6 -5
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/_error.js +3 -3
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/3363-f417b308a8cd156d.js +1 -0
- package/.next/static/chunks/3686-0107521d2c14950c.js +1 -0
- package/.next/static/chunks/3695-3576767108de7f38.js +1 -0
- package/.next/static/chunks/4108.19abaa6d618295ed.js +1 -0
- package/.next/static/chunks/5933-4013a6dab4565b5e.js +1 -0
- package/.next/static/chunks/7425-9684ea815b4b1731.js +1 -0
- package/.next/static/chunks/7552-def8a17828891c8c.js +1 -0
- package/.next/static/chunks/8776-2df966dd98c68fd7.js +1 -0
- package/.next/static/chunks/app/layout-baad68d32b917b8f.js +1 -0
- package/.next/static/chunks/app/onboarding/page-b1b1e6a4467ed781.js +1 -0
- package/.next/static/chunks/app/page-556a2139313c3c71.js +1 -0
- package/.next/static/chunks/app/roots/[id]/chat/[topicId]/page-52223811258d07b2.js +1 -0
- package/.next/static/chunks/app/roots/[id]/kb/[...slug]/page-0df769f27549cd16.js +1 -0
- package/.next/static/chunks/app/roots/[id]/memory/{page-4edc11023d8a13fd.js → page-1f6bc3a624b141a5.js} +1 -1
- package/.next/static/chunks/app/roots/[id]/page-17493991b2d391b3.js +1 -0
- package/.next/static/chunks/app/roots/[id]/workflows/[wfId]/page-a21fe3541418a80a.js +1 -0
- package/.next/static/chunks/app/roots/[id]/workflows/page-0952e5fb53d53c3e.js +1 -0
- package/.next/static/chunks/app/roots/new/{page-98d64261cc2ae2a1.js → page-4f571184c1856103.js} +1 -1
- package/.next/static/chunks/app/settings/page-8c0ad1c1856da988.js +1 -0
- package/.next/static/chunks/app/share/[id]/page-b27a0bc7b9c6cda9.js +1 -0
- package/.next/static/chunks/app/utilities/[scope]/[id]/page-0fe4c377098064d5.js +1 -0
- package/.next/static/chunks/app/utilities/page-445933dcd5a500ae.js +1 -0
- package/.next/static/chunks/{webpack-dbfe1e5d0f7f7a98.js → webpack-88066a85eb2d605f.js} +1 -1
- package/.next/trace +116 -90
- package/dist/lib/reflex/ids.js +66 -0
- package/dist/lib/reflex/ids.js.map +1 -0
- package/dist/lib/reflex/paths.js +26 -0
- package/dist/lib/reflex/paths.js.map +1 -1
- package/dist/lib/reflex/store/json-store.js +50 -0
- package/dist/lib/reflex/store/json-store.js.map +1 -0
- package/package.json +10 -6
- package/.next/server/chunks/133.js +0 -1
- package/.next/server/chunks/1358.js +0 -1
- package/.next/server/chunks/2389.js +0 -4
- package/.next/server/chunks/2787.js +0 -1
- package/.next/server/chunks/3240.js +0 -1
- package/.next/server/chunks/3295.js +0 -1
- package/.next/server/chunks/4842.js +0 -1
- package/.next/server/chunks/5319.js +0 -1
- package/.next/server/chunks/5543.js +0 -1
- package/.next/server/chunks/569.js +0 -1
- package/.next/server/chunks/6356.js +0 -3
- package/.next/server/chunks/7229.js +0 -2
- package/.next/server/chunks/7607.js +0 -1
- package/.next/server/chunks/8040.js +0 -1
- package/.next/server/chunks/8124.js +0 -1
- package/.next/server/chunks/8576.js +0 -7
- package/.next/server/chunks/9809.js +0 -1
- package/.next/server/chunks/9835.js +0 -1
- package/.next/static/chunks/2885-3b6efe9070ae7699.js +0 -1
- package/.next/static/chunks/334-e9ffb96d6720ee5b.js +0 -1
- package/.next/static/chunks/4108.a04c1e0b768f6392.js +0 -1
- package/.next/static/chunks/5371-f2503fe0dffea57d.js +0 -1
- package/.next/static/chunks/5744-eccd279a734c778c.js +0 -1
- package/.next/static/chunks/6568-e4d2de23d9f8d347.js +0 -1
- package/.next/static/chunks/6642-02be14d0b5ca62b7.js +0 -1
- package/.next/static/chunks/8566-5d4c89b722d9cee1.js +0 -1
- package/.next/static/chunks/8775-890699c74c28df61.js +0 -1
- package/.next/static/chunks/app/layout-48a6fb46c228b814.js +0 -1
- package/.next/static/chunks/app/onboarding/page-06103f281ff3f063.js +0 -1
- package/.next/static/chunks/app/page-eed31ba1b952cf24.js +0 -1
- package/.next/static/chunks/app/roots/[id]/chat/[topicId]/page-5fc17c5819406917.js +0 -1
- package/.next/static/chunks/app/roots/[id]/kb/[...slug]/page-a52b2005a7e538ca.js +0 -1
- package/.next/static/chunks/app/roots/[id]/page-0f0d498f4b4bd7bf.js +0 -1
- package/.next/static/chunks/app/roots/[id]/workflows/[wfId]/page-f93d6b1bb29e79f0.js +0 -1
- package/.next/static/chunks/app/roots/[id]/workflows/page-562913d54bcd08d5.js +0 -1
- package/.next/static/chunks/app/settings/page-7a4d8a407fbe5ed8.js +0 -1
- package/.next/static/chunks/app/share/[id]/page-a0540dba09771e84.js +0 -1
- package/.next/static/chunks/app/utilities/[scope]/[id]/page-2cee9be029f211c6.js +0 -1
- package/.next/static/chunks/app/utilities/page-197156f16167514e.js +0 -1
- /package/.next/static/{kKiRbrTiD77WXduAvKNfN → EXoiX_YvMRCB6oNXqJnaz}/_buildManifest.js +0 -0
- /package/.next/static/{kKiRbrTiD77WXduAvKNfN → EXoiX_YvMRCB6oNXqJnaz}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";exports.id=6571,exports.ids=[6571],exports.modules={3494:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(24613),e=c(14861),f=(0,d.K2)((a,b)=>{let c;return"sandbox"===b&&(c=(0,e.Ltv)("#i"+a)),("sandbox"===b?(0,e.Ltv)(c.nodes()[0].contentDocument.body):(0,e.Ltv)("body")).select(`[id="${a}"]`)},"getDiagramElement")},42383:(a,b,c)=>{c.d(b,{CP:()=>l,Ck:()=>o,HT:()=>n,PB:()=>m,aC:()=>k,lC:()=>i,m:()=>j,tk:()=>h});var d=c(6850),e=c(24613),f=c(57978),g=c(14861),h=(0,e.K2)((a,b)=>{let c=a.append("rect");if(c.attr("x",b.x),c.attr("y",b.y),c.attr("fill",b.fill),c.attr("stroke",b.stroke),c.attr("width",b.width),c.attr("height",b.height),b.name&&c.attr("name",b.name),b.rx&&c.attr("rx",b.rx),b.ry&&c.attr("ry",b.ry),void 0!==b.attrs)for(let a in b.attrs)c.attr(a,b.attrs[a]);return b.class&&c.attr("class",b.class),c},"drawRect"),i=(0,e.K2)((a,b)=>{h(a,{x:b.startx,y:b.starty,width:b.stopx-b.startx,height:b.stopy-b.starty,fill:b.fill,stroke:b.stroke,class:"rect"}).lower()},"drawBackgroundRect"),j=(0,e.K2)((a,b)=>{let c=b.text.replace(d.H1," "),e=a.append("text");e.attr("x",b.x),e.attr("y",b.y),e.attr("class","legend"),e.style("text-anchor",b.anchor),b.class&&e.attr("class",b.class);let f=e.append("tspan");return f.attr("x",b.x+2*b.textMargin),f.text(c),e},"drawText"),k=(0,e.K2)((a,b,c,d)=>{let e=a.append("image");e.attr("x",b),e.attr("y",c);let g=(0,f.J)(d);e.attr("xlink:href",g)},"drawImage"),l=(0,e.K2)((a,b,c,d)=>{let e=a.append("use");e.attr("x",b),e.attr("y",c);let g=(0,f.J)(d);e.attr("xlink:href",`#${g}`)},"drawEmbeddedImage"),m=(0,e.K2)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),n=(0,e.K2)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),o=(0,e.K2)(()=>{let a=(0,g.Ltv)(".mermaidTooltip");return a.empty()&&(a=(0,g.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),a},"createTooltip")},53765:(a,b,c)=>{c.d(b,{P:()=>f});var d=c(6850),e=c(24613),f=(0,e.K2)((a,b,c,f)=>{a.attr("class",c);let{width:i,height:j,x:k,y:l}=g(a,b);(0,d.a$)(a,j,i,f);let m=h(k,l,i,j,b);a.attr("viewBox",m),e.Rm.debug(`viewBox configured: ${m} with padding: ${b}`)},"setupViewPortForSVG"),g=(0,e.K2)((a,b)=>{let c=a.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:c.width+2*b,height:c.height+2*b,x:c.x,y:c.y}},"calculateDimensionsWithPadding"),h=(0,e.K2)((a,b,c,d,e)=>`${a-e} ${b-e} ${c} ${d}`,"createViewBox")},61565:(a,b,c)=>{c.d(b,{o:()=>d});var d=(0,c(24613).K2)(()=>`
|
|
2
|
+
/* Font Awesome icon styling - consolidated */
|
|
3
|
+
.label-icon {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
height: 1em;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
vertical-align: -0.125em;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.node .label-icon path {
|
|
11
|
+
fill: currentColor;
|
|
12
|
+
stroke: revert;
|
|
13
|
+
stroke-width: revert;
|
|
14
|
+
}
|
|
15
|
+
`,"getIconStyles")},66571:(a,b,c)=>{c.d(b,{diagram:()=>x});var d=c(61565),e=c(8963),f=c(42383),g=c(3494),h=c(53765),i=c(43358);c(88123),c(73064);var j=c(84976);c(34721),c(38033),c(88745);var k=c(28056),l=c(6850),m=c(24613),n=c(14861),o=c(98209),p=c(76211),q=c(92444),r=class{constructor(){this.vertexCounter=0,this.config=(0,l.D7)(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=l.SV,this.setAccDescription=l.EI,this.setDiagramTitle=l.ke,this.getAccTitle=l.iN,this.getAccDescription=l.m7,this.getDiagramTitle=l.ab,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{(0,m.K2)(this,"FlowDB")}sanitizeText(a){return l.Y2.sanitizeText(a,this.config)}sanitizeNodeLabelType(a){switch(a){case"markdown":case"string":case"text":return a;default:return"markdown"}}setDiagramId(a){this.diagramId=a}lookUpDomId(a){for(let b of this.vertices.values())if(b.id===a)return this.diagramId?`${this.diagramId}-${b.domId}`:b.domId;return this.diagramId?`${this.diagramId}-${a}`:a}addVertex(a,b,c,d,f,g,h={},i){let k,n;if(!a||0===a.trim().length)return;if(void 0!==i){let a;a=i.includes("\n")?i+"\n":"{\n"+i+"\n}",k=(0,e.H)(a,{schema:e.r})}let o=this.edges.find(b=>b.id===a);if(o){let a=k;a?.animate!==void 0&&(o.animate=a.animate),a?.animation!==void 0&&(o.animation=a.animation),a?.curve!==void 0&&(o.interpolate=a.curve);return}let p=this.vertices.get(a);if(void 0===p&&(void 0===b&&void 0===c&&null!=d&&m.Rm.warn(`Style applied to unknown node "${a}". This may indicate a typo. The node will be created automatically.`),p={id:a,labelType:"text",domId:"flowchart-"+a+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(a,p)),this.vertexCounter++,void 0!==b?(this.config=(0,l.D7)(),n=this.sanitizeText(b.text.trim()),p.labelType=b.type,n.startsWith('"')&&n.endsWith('"')&&(n=n.substring(1,n.length-1)),p.text=n):void 0===p.text&&(p.text=a),void 0!==c&&(p.type=c),null!=d&&d.forEach(a=>{p.styles.push(a)}),null!=f&&f.forEach(a=>{p.classes.push(a)}),void 0!==g&&(p.dir=g),void 0===p.props?p.props=h:void 0!==h&&Object.assign(p.props,h),void 0!==k){if(k.shape){if(k.shape!==k.shape.toLowerCase()||k.shape.includes("_"))throw Error(`No such shape: ${k.shape}. Shape names should be lowercase.`);if(!(0,j.aP)(k.shape))throw Error(`No such shape: ${k.shape}.`);p.type=k?.shape}k?.label&&(p.text=k?.label,p.labelType=this.sanitizeNodeLabelType(k?.labelType)),k?.icon&&(p.icon=k?.icon,k.label?.trim()||p.text!==a||(p.text="")),k?.form&&(p.form=k?.form),k?.pos&&(p.pos=k?.pos),k?.img&&(p.img=k?.img,k.label?.trim()||p.text!==a||(p.text="")),k?.constraint&&(p.constraint=k.constraint),k.w&&(p.assetWidth=Number(k.w)),k.h&&(p.assetHeight=Number(k.h))}}addSingleLink(a,b,c,d){let e={start:a,end:b,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};m.Rm.info("abc78 Got edge...",e);let f=c.text;if(void 0!==f&&(e.text=this.sanitizeText(f.text.trim()),e.text.startsWith('"')&&e.text.endsWith('"')&&(e.text=e.text.substring(1,e.text.length-1)),e.labelType=this.sanitizeNodeLabelType(f.type)),void 0!==c&&(e.type=c.type,e.stroke=c.stroke,e.length=c.length>10?10:c.length),d&&!this.edges.some(a=>a.id===d))e.id=d,e.isUserDefinedId=!0;else{let a=this.edges.filter(a=>a.start===e.start&&a.end===e.end);0===a.length?e.id=(0,k.rY)(e.start,e.end,{counter:0,prefix:"L"}):e.id=(0,k.rY)(e.start,e.end,{counter:a.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))m.Rm.info("Pushing edge..."),this.edges.push(e);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
|
16
|
+
|
|
17
|
+
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
18
|
+
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
19
|
+
You have to call mermaid.initialize.`)}isLinkData(a){return null!==a&&"object"==typeof a&&"id"in a&&"string"==typeof a.id}addLink(a,b,c){let d=this.isLinkData(c)?c.id.replace("@",""):void 0;for(let e of(m.Rm.info("addLink",a,b,d),a))for(let f of b){let g=e===a[a.length-1],h=f===b[0];g&&h?this.addSingleLink(e,f,c,d):this.addSingleLink(e,f,c,void 0)}}updateLinkInterpolate(a,b){a.forEach(a=>{"default"===a?this.edges.defaultInterpolate=b:this.edges[a].interpolate=b})}updateLink(a,b){a.forEach(a=>{if("number"==typeof a&&a>=this.edges.length)throw Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===a?this.edges.defaultStyle=b:(this.edges[a].style=b,(this.edges[a]?.style?.length??0)>0&&!this.edges[a]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[a]?.style?.push("fill:none"))})}addClass(a,b){let c=b.join().replace(/\\,/g,"\xa7\xa7\xa7").replace(/,/g,";").replace(/§§§/g,",").split(";");a.split(",").forEach(a=>{let b=this.classes.get(a);void 0===b&&(b={id:a,styles:[],textStyles:[]},this.classes.set(a,b)),null!=c&&c.forEach(a=>{if(/color/.exec(a)){let c=a.replace("fill","bgFill");b.textStyles.push(c)}b.styles.push(a)})})}setDirection(a){this.direction=a.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(a,b){for(let c of a.split(",")){let a=this.vertices.get(c);a&&a.classes.push(b);let d=this.edges.find(a=>a.id===c);d&&d.classes.push(b);let e=this.subGraphLookup.get(c);e&&e.classes.push(b)}}setTooltip(a,b){if(void 0!==b)for(let c of(b=this.sanitizeText(b),a.split(",")))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(c):c,b)}setClickFun(a,b,c){if("loose"!==(0,l.D7)().securityLevel||void 0===b)return;let d=[];if("string"==typeof c){d=c.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a<d.length;a++){let b=d[a].trim();b.startsWith('"')&&b.endsWith('"')&&(b=b.substr(1,b.length-2)),d[a]=b}}0===d.length&&d.push(a);let e=this.vertices.get(a);e&&(e.haveCallback=!0,this.funs.push(()=>{let c=this.lookUpDomId(a),e=document.querySelector(`[id="${c}"]`);null!==e&&e.addEventListener("click",()=>{k._K.runFunc(b,...d)},!1)}))}setLink(a,b,c){a.split(",").forEach(a=>{let d=this.vertices.get(a);void 0!==d&&(d.link=k._K.formatUrl(b,this.config),d.linkTarget=c)}),this.setClass(a,"clickable")}getTooltip(a){return this.tooltips.get(a)}setClickEvent(a,b,c){a.split(",").forEach(a=>{this.setClickFun(a,b,c)}),this.setClass(a,"clickable")}bindFunctions(a){this.funs.forEach(b=>{b(a)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(a){let b=(0,f.Ck)();(0,n.Ltv)(a).select("svg").selectAll("g.node").on("mouseover",a=>{let c=(0,n.Ltv)(a.currentTarget),d=c.attr("title");if(null===d)return;let e=a.currentTarget?.getBoundingClientRect();b.transition().duration(200).style("opacity",".9"),b.text(c.attr("title")).style("left",window.scrollX+e.left+(e.right-e.left)/2+"px").style("top",window.scrollY+e.bottom+"px"),b.html(o.A.sanitize(d)),c.classed("hover",!0)}).on("mouseout",a=>{b.transition().duration(500).style("opacity",0),(0,n.Ltv)(a.currentTarget).classed("hover",!1)})}clear(a="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=a,this.config=(0,l.D7)(),(0,l.IU)()}setGen(a){this.version=a||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(a,b,c){let d=a.text.trim(),e=c.text;a===c&&/\s/.exec(c.text)&&(d=void 0);let f=(0,m.K2)(a=>{let b,c={boolean:{},number:{},string:{}},d=[];return{nodeList:a.filter(function(a){let e=typeof a;return a.stmt&&"dir"===a.stmt?(b=a.value,!1):""!==a.trim()&&(e in c?!c[e].hasOwnProperty(a)&&(c[e][a]=!0):!d.includes(a)&&d.push(a))}),dir:b}},"uniq")(b.flat()),g=f.nodeList,h=f.dir,i=(0,l.D7)().flowchart??{};if(h=h??(i.inheritDir?this.getDirection()??(0,l.D7)().direction??void 0:void 0),"gen-1"===this.version)for(let a=0;a<g.length;a++)g[a]=this.lookUpDomId(g[a]);d=d??"subGraph"+this.subCount,e=e||"",e=this.sanitizeText(e),this.subCount=this.subCount+1;let j={id:d,nodes:g,title:e.trim(),classes:[],dir:h,labelType:this.sanitizeNodeLabelType(c?.type)};return m.Rm.info("Adding",j.id,j.nodes,j.dir),j.nodes=this.makeUniq(j,this.subGraphs).nodes,this.subGraphs.push(j),this.subGraphLookup.set(d,j),d}getPosForId(a){for(let[b,c]of this.subGraphs.entries())if(c.id===a)return b;return -1}indexNodes2(a,b){let c=this.subGraphs[b].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=b,this.subGraphs[b].id===a)return{result:!0,count:0};let d=0,e=1;for(;d<c.length;){let b=this.getPosForId(c[d]);if(b>=0){let c=this.indexNodes2(a,b);if(c.result)return{result:!0,count:e+c.count};e+=c.count}d+=1}return{result:!1,count:e}}getDepthFirstPos(a){return this.posCrossRef[a]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}destructStartLink(a){let b=a.trim(),c="arrow_open";switch(b[0]){case"<":c="arrow_point",b=b.slice(1);break;case"x":c="arrow_cross",b=b.slice(1);break;case"o":c="arrow_circle",b=b.slice(1)}let d="normal";return b.includes("=")&&(d="thick"),b.includes(".")&&(d="dotted"),{type:c,stroke:d}}countChar(a,b){let c=b.length,d=0;for(let e=0;e<c;++e)b[e]===a&&++d;return d}destructEndLink(a){let b=a.trim(),c=b.slice(0,-1),d="arrow_open";switch(b.slice(-1)){case"x":d="arrow_cross",b.startsWith("x")&&(d="double_"+d,c=c.slice(1));break;case">":d="arrow_point",b.startsWith("<")&&(d="double_"+d,c=c.slice(1));break;case"o":d="arrow_circle",b.startsWith("o")&&(d="double_"+d,c=c.slice(1))}let e="normal",f=c.length-1;c.startsWith("=")&&(e="thick"),c.startsWith("~")&&(e="invisible");let g=this.countChar(".",c);return g&&(e="dotted",f=g),{type:d,stroke:e,length:f}}destructLink(a,b){let c,d=this.destructEndLink(a);if(b){if((c=this.destructStartLink(b)).stroke!==d.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===c.type)c.type=d.type;else{if(c.type!==d.type)return{type:"INVALID",stroke:"INVALID"};c.type="double_"+c.type}return"double_arrow"===c.type&&(c.type="double_arrow_point"),c.length=d.length,c}return d}exists(a,b){for(let c of a)if(c.nodes.includes(b))return!0;return!1}makeUniq(a,b){let c=[];return a.nodes.forEach((d,e)=>{this.exists(b,d)||c.push(a.nodes[e])}),{nodes:c}}getTypeFromVertex(a){if(a.img)return"imageSquare";if(a.icon)return"circle"===a.form?"iconCircle":"square"===a.form?"iconSquare":"rounded"===a.form?"iconRounded":"icon";switch(a.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return a.type}}findNode(a,b){return a.find(a=>a.id===b)}destructEdgeType(a){let b="none",c="arrow_point";switch(a){case"arrow_point":case"arrow_circle":case"arrow_cross":c=a;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":c=b=a.replace("double_","")}return{arrowTypeStart:b,arrowTypeEnd:c}}addNodeFromVertex(a,b,c,d,e,f){let g=c.get(a.id),h=d.get(a.id)??!1,i=this.findNode(b,a.id);if(i)i.cssStyles=a.styles,i.cssCompiledStyles=this.getCompiledStyles(a.classes),i.cssClasses=a.classes.join(" ");else{let c={id:a.id,label:a.text,labelType:a.labelType,labelStyle:"",parentId:g,padding:e.flowchart?.padding||8,cssStyles:a.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...a.classes]),cssClasses:"default "+a.classes.join(" "),dir:a.dir,domId:a.domId,look:f,link:a.link,linkTarget:a.linkTarget,tooltip:this.getTooltip(a.id),icon:a.icon,pos:a.pos,img:a.img,assetWidth:a.assetWidth,assetHeight:a.assetHeight,constraint:a.constraint};h?b.push({...c,isGroup:!0,shape:"rect"}):b.push({...c,isGroup:!1,shape:this.getTypeFromVertex(a)})}}getCompiledStyles(a){let b=[];for(let c of a){let a=this.classes.get(c);a?.styles&&(b=[...b,...a.styles??[]].map(a=>a.trim())),a?.textStyles&&(b=[...b,...a.textStyles??[]].map(a=>a.trim()))}return b}getData(){let a=(0,l.D7)(),b=[],c=[],d=this.getSubGraphs(),e=new Map,f=new Map;for(let a=d.length-1;a>=0;a--){let b=d[a];for(let a of(b.nodes.length>0&&f.set(b.id,!0),b.nodes))e.set(a,b.id)}for(let c=d.length-1;c>=0;c--){let f=d[c];b.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:e.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"rect",dir:f.dir,isGroup:!0,look:a.look})}this.getVertices().forEach(c=>{this.addNodeFromVertex(c,b,e,f,a,a.look||"classic")});let g=this.getEdges();return g.forEach((b,d)=>{let{arrowTypeStart:e,arrowTypeEnd:f}=this.destructEdgeType(b.type),h=[...g.defaultStyle??[]];b.style&&h.push(...b.style);let i={id:(0,k.rY)(b.start,b.end,{counter:d,prefix:"L"},b.id),isUserDefinedId:b.isUserDefinedId,start:b.start,end:b.end,type:b.type??"normal",label:b.text,labelType:b.labelType,labelpos:"c",thickness:b.stroke,minlen:b.length,classes:b?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:b?.stroke==="invisible"||b?.type==="arrow_open"?"none":e,arrowTypeEnd:b?.stroke==="invisible"||b?.type==="arrow_open"?"none":f,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(b.classes),labelStyle:h,style:h,pattern:b.stroke,look:a.look,animate:b.animate,animation:b.animation,curve:b.interpolate||this.edges.defaultInterpolate||a.flowchart?.curve};c.push(i)}),{nodes:b,edges:c,other:{},config:a}}defaultConfig(){return l.ME.flowchart}},s=(0,m.K2)(function(a,b){return b.db.getClasses()},"getClasses"),t=(0,m.K2)(async function(a,b,c,d){m.Rm.info("REF0:"),m.Rm.info("Drawing state diagram (v2)",b);let{securityLevel:e,flowchart:f,layout:j}=(0,l.D7)();d.db.setDiagramId(b),m.Rm.debug("Before getData: ");let n=d.db.getData();m.Rm.debug("Data: ",n);let o=(0,g.A)(b,e),p=d.db.getDirection();n.type=d.type,n.layoutAlgorithm=(0,i.q7)(j),"dagre"===n.layoutAlgorithm&&"elk"===j&&m.Rm.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),n.direction=p,n.nodeSpacing=f?.nodeSpacing||50,n.rankSpacing=f?.rankSpacing||50,n.markers=["point","circle","cross"],n.diagramId=b,m.Rm.debug("REF1:",n),await (0,i.XX)(n,o);let q=n.config.flowchart?.diagramPadding??8;k._K.insertTitle(o,"flowchartTitleText",f?.titleTopMargin||0,d.db.getDiagramTitle()),(0,h.P)(o,q,"flowchart",f?.useMaxWidth||!1)},"draw"),u=function(){var a=(0,m.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,4],c=[1,3],d=[1,5],e=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],f=[2,2],g=[1,13],h=[1,14],i=[1,15],j=[1,16],k=[1,23],l=[1,25],n=[1,26],o=[1,27],p=[1,50],q=[1,49],r=[1,29],s=[1,30],t=[1,31],u=[1,32],v=[1,33],w=[1,45],x=[1,47],y=[1,43],z=[1,48],A=[1,44],B=[1,51],C=[1,46],D=[1,52],E=[1,53],F=[1,34],G=[1,35],H=[1,36],I=[1,37],J=[1,38],K=[1,58],L=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],M=[1,62],N=[1,61],O=[1,63],P=[8,9,11,75,77,78],Q=[1,79],R=[1,92],S=[1,97],T=[1,96],U=[1,93],V=[1,89],W=[1,95],X=[1,91],Y=[1,98],Z=[1,94],$=[1,99],_=[1,90],aa=[8,9,10,11,40,75,77,78],ab=[8,9,10,11,40,46,75,77,78],ac=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ad=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],ae=[44,60,89,102,105,106,109,111,114,115,116],af=[1,122],ag=[1,123],ah=[1,125],ai=[1,124],aj=[44,60,62,74,89,102,105,106,109,111,114,115,116],ak=[1,134],al=[1,148],am=[1,149],an=[1,150],ao=[1,151],ap=[1,136],aq=[1,138],ar=[1,142],as=[1,143],at=[1,144],au=[1,145],av=[1,146],aw=[1,147],ax=[1,152],ay=[1,153],az=[1,132],aA=[1,133],aB=[1,140],aC=[1,135],aD=[1,139],aE=[1,137],aF=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],aG=[1,155],aH=[1,157],aI=[8,9,11],aJ=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],aK=[1,177],aL=[1,173],aM=[1,174],aN=[1,178],aO=[1,175],aP=[1,176],aQ=[77,116,119],aR=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],aS=[10,106],aT=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],aU=[1,248],aV=[1,246],aW=[1,250],aX=[1,244],aY=[1,245],aZ=[1,247],a$=[1,249],a_=[1,251],a0=[1,269],a1=[8,9,11,106],a2=[8,9,10,11,60,84,105,106,109,110,111,112],a3={trace:(0,m.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:(0,m.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(f[h])||f[h].length>0)&&f[h-1].push(f[h]),this.$=f[h-1];break;case 4:case 183:case 44:case 54:case 76:case 181:this.$=f[h];break;case 11:d.setDirection("TB"),this.$="TB";break;case 12:d.setDirection(f[h-1]),this.$=f[h-1];break;case 27:this.$=f[h-1].nodes;break;case 33:this.$=d.addSubGraph(f[h-6],f[h-1],f[h-4]);break;case 34:this.$=d.addSubGraph(f[h-3],f[h-1],f[h-3]);break;case 35:this.$=d.addSubGraph(void 0,f[h-1],void 0);break;case 37:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 38:case 39:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 43:case 133:this.$=f[h-1]+f[h];break;case 45:d.addVertex(f[h-1][f[h-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,f[h]),d.addLink(f[h-3].stmt,f[h-1],f[h-2]),this.$={stmt:f[h-1],nodes:f[h-1].concat(f[h-3].nodes)};break;case 46:d.addLink(f[h-2].stmt,f[h],f[h-1]),this.$={stmt:f[h],nodes:f[h].concat(f[h-2].nodes)};break;case 47:d.addLink(f[h-3].stmt,f[h-1],f[h-2]),this.$={stmt:f[h-1],nodes:f[h-1].concat(f[h-3].nodes)};break;case 48:this.$={stmt:f[h-1],nodes:f[h-1]};break;case 49:d.addVertex(f[h-1][f[h-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,f[h]),this.$={stmt:f[h-1],nodes:f[h-1],shapeData:f[h]};break;case 50:this.$={stmt:f[h],nodes:f[h]};break;case 51:case 128:case 130:this.$=[f[h]];break;case 52:d.addVertex(f[h-5][f[h-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,f[h-4]),this.$=f[h-5].concat(f[h]);break;case 53:this.$=f[h-4].concat(f[h]);break;case 55:this.$=f[h-2],d.setClass(f[h-2],f[h]);break;case 56:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"square");break;case 57:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"doublecircle");break;case 58:this.$=f[h-5],d.addVertex(f[h-5],f[h-2],"circle");break;case 59:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"ellipse");break;case 60:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"stadium");break;case 61:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"subroutine");break;case 62:this.$=f[h-7],d.addVertex(f[h-7],f[h-1],"rect",void 0,void 0,void 0,Object.fromEntries([[f[h-5],f[h-3]]]));break;case 63:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"cylinder");break;case 64:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"round");break;case 65:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"diamond");break;case 66:this.$=f[h-5],d.addVertex(f[h-5],f[h-2],"hexagon");break;case 67:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"odd");break;case 68:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"trapezoid");break;case 69:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"inv_trapezoid");break;case 70:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"lean_right");break;case 71:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"lean_left");break;case 72:this.$=f[h],d.addVertex(f[h]);break;case 73:f[h-1].text=f[h],this.$=f[h-1];break;case 74:case 75:f[h-2].text=f[h-1],this.$=f[h-2];break;case 77:var i=d.destructLink(f[h],f[h-2]);this.$={type:i.type,stroke:i.stroke,length:i.length,text:f[h-1]};break;case 78:var i=d.destructLink(f[h],f[h-2]);this.$={type:i.type,stroke:i.stroke,length:i.length,text:f[h-1],id:f[h-3]};break;case 79:case 86:case 101:case 103:this.$={text:f[h],type:"text"};break;case 80:case 87:case 102:this.$={text:f[h-1].text+""+f[h],type:f[h-1].type};break;case 81:case 88:this.$={text:f[h],type:"string"};break;case 82:case 89:case 104:this.$={text:f[h],type:"markdown"};break;case 83:var i=d.destructLink(f[h]);this.$={type:i.type,stroke:i.stroke,length:i.length};break;case 84:var i=d.destructLink(f[h]);this.$={type:i.type,stroke:i.stroke,length:i.length,id:f[h-1]};break;case 85:this.$=f[h-1];break;case 105:this.$=f[h-4],d.addClass(f[h-2],f[h]);break;case 106:this.$=f[h-4],d.setClass(f[h-2],f[h]);break;case 107:case 115:this.$=f[h-1],d.setClickEvent(f[h-1],f[h]);break;case 108:case 116:this.$=f[h-3],d.setClickEvent(f[h-3],f[h-2]),d.setTooltip(f[h-3],f[h]);break;case 109:this.$=f[h-2],d.setClickEvent(f[h-2],f[h-1],f[h]);break;case 110:this.$=f[h-4],d.setClickEvent(f[h-4],f[h-3],f[h-2]),d.setTooltip(f[h-4],f[h]);break;case 111:this.$=f[h-2],d.setLink(f[h-2],f[h]);break;case 112:this.$=f[h-4],d.setLink(f[h-4],f[h-2]),d.setTooltip(f[h-4],f[h]);break;case 113:this.$=f[h-4],d.setLink(f[h-4],f[h-2],f[h]);break;case 114:this.$=f[h-6],d.setLink(f[h-6],f[h-4],f[h]),d.setTooltip(f[h-6],f[h-2]);break;case 117:this.$=f[h-1],d.setLink(f[h-1],f[h]);break;case 118:this.$=f[h-3],d.setLink(f[h-3],f[h-2]),d.setTooltip(f[h-3],f[h]);break;case 119:this.$=f[h-3],d.setLink(f[h-3],f[h-2],f[h]);break;case 120:this.$=f[h-5],d.setLink(f[h-5],f[h-4],f[h]),d.setTooltip(f[h-5],f[h-2]);break;case 121:this.$=f[h-4],d.addVertex(f[h-2],void 0,void 0,f[h]);break;case 122:this.$=f[h-4],d.updateLink([f[h-2]],f[h]);break;case 123:this.$=f[h-4],d.updateLink(f[h-2],f[h]);break;case 124:this.$=f[h-8],d.updateLinkInterpolate([f[h-6]],f[h-2]),d.updateLink([f[h-6]],f[h]);break;case 125:this.$=f[h-8],d.updateLinkInterpolate(f[h-6],f[h-2]),d.updateLink(f[h-6],f[h]);break;case 126:this.$=f[h-6],d.updateLinkInterpolate([f[h-4]],f[h]);break;case 127:this.$=f[h-6],d.updateLinkInterpolate(f[h-4],f[h]);break;case 129:case 131:f[h-2].push(f[h]),this.$=f[h-2];break;case 182:case 184:this.$=f[h-1]+""+f[h];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,9:b,10:c,12:d},{1:[3]},a(e,f,{5:6}),{4:7,9:b,10:c,12:d},{4:8,9:b,10:c,12:d},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:g,9:h,10:i,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:k,33:24,34:l,36:n,38:o,42:28,43:39,44:p,45:40,47:41,60:q,84:r,85:s,86:t,87:u,88:v,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E,121:F,122:G,123:H,124:I,125:J},a(e,[2,9]),a(e,[2,10]),a(e,[2,11]),{8:[1,55],9:[1,56],10:K,15:54,18:57},a(L,[2,3]),a(L,[2,4]),a(L,[2,5]),a(L,[2,6]),a(L,[2,7]),a(L,[2,8]),{8:M,9:N,11:O,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:M,9:N,11:O,21:68},{8:M,9:N,11:O,21:69},{8:M,9:N,11:O,21:70},{8:M,9:N,11:O,21:71},{8:M,9:N,11:O,21:72},{8:M,9:N,10:[1,73],11:O,21:74},a(L,[2,36]),{35:[1,75]},{37:[1,76]},a(L,[2,39]),a(P,[2,50],{18:77,39:78,10:K,40:Q}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:R,44:S,60:T,80:[1,87],89:U,95:[1,84],97:[1,85],101:86,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_,120:88},a(L,[2,185]),a(L,[2,186]),a(L,[2,187]),a(L,[2,188]),a(L,[2,189]),a(aa,[2,51]),a(aa,[2,54],{46:[1,100]}),a(ab,[2,72],{113:113,29:[1,101],44:p,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:q,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:w,102:x,105:y,106:z,109:A,111:B,114:C,115:D,116:E}),a(ac,[2,181]),a(ac,[2,142]),a(ac,[2,143]),a(ac,[2,144]),a(ac,[2,145]),a(ac,[2,146]),a(ac,[2,147]),a(ac,[2,148]),a(ac,[2,149]),a(ac,[2,150]),a(ac,[2,151]),a(ac,[2,152]),a(e,[2,12]),a(e,[2,18]),a(e,[2,19]),{9:[1,114]},a(ad,[2,26],{18:115,10:K}),a(L,[2,27]),{42:116,43:39,44:p,45:40,47:41,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},a(L,[2,40]),a(L,[2,41]),a(L,[2,42]),a(ae,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:af,81:ag,116:ah,119:ai},{75:[1,126],77:[1,127]},a(aj,[2,83]),a(L,[2,28]),a(L,[2,29]),a(L,[2,30]),a(L,[2,31]),a(L,[2,32]),{10:ak,12:al,14:am,27:an,28:128,32:ao,44:ap,60:aq,75:ar,80:[1,130],81:[1,131],83:141,84:as,85:at,86:au,87:av,88:aw,89:ax,90:ay,91:129,105:az,109:aA,111:aB,114:aC,115:aD,116:aE},a(aF,f,{5:154}),a(L,[2,37]),a(L,[2,38]),a(P,[2,48],{44:aG}),a(P,[2,49],{18:156,10:K,40:aH}),a(aa,[2,44]),{44:p,47:158,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},{102:[1,159],103:160,105:[1,161]},{44:p,47:162,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},{44:p,47:163,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},a(aI,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},a(aI,[2,115],{120:168,10:[1,167],14:R,44:S,60:T,89:U,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_}),a(aI,[2,117],{10:[1,169]}),a(aJ,[2,183]),a(aJ,[2,170]),a(aJ,[2,171]),a(aJ,[2,172]),a(aJ,[2,173]),a(aJ,[2,174]),a(aJ,[2,175]),a(aJ,[2,176]),a(aJ,[2,177]),a(aJ,[2,178]),a(aJ,[2,179]),a(aJ,[2,180]),{44:p,47:170,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},{30:171,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:179,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:181,50:[1,180],67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:182,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:183,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:184,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{109:[1,185]},{30:186,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:187,65:[1,188],67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:189,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:190,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:191,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},a(ac,[2,182]),a(e,[2,20]),a(ad,[2,25]),a(P,[2,46],{39:192,18:193,10:K,40:Q}),a(ae,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{77:[1,197],79:198,116:ah,119:ai},a(aQ,[2,79]),a(aQ,[2,81]),a(aQ,[2,82]),a(aQ,[2,168]),a(aQ,[2,169]),{76:199,79:121,80:af,81:ag,116:ah,119:ai},a(aj,[2,84]),{8:M,9:N,10:ak,11:O,12:al,14:am,21:201,27:an,29:[1,200],32:ao,44:ap,60:aq,75:ar,83:141,84:as,85:at,86:au,87:av,88:aw,89:ax,90:ay,91:202,105:az,109:aA,111:aB,114:aC,115:aD,116:aE},a(aR,[2,101]),a(aR,[2,103]),a(aR,[2,104]),a(aR,[2,157]),a(aR,[2,158]),a(aR,[2,159]),a(aR,[2,160]),a(aR,[2,161]),a(aR,[2,162]),a(aR,[2,163]),a(aR,[2,164]),a(aR,[2,165]),a(aR,[2,166]),a(aR,[2,167]),a(aR,[2,90]),a(aR,[2,91]),a(aR,[2,92]),a(aR,[2,93]),a(aR,[2,94]),a(aR,[2,95]),a(aR,[2,96]),a(aR,[2,97]),a(aR,[2,98]),a(aR,[2,99]),a(aR,[2,100]),{6:11,7:12,8:g,9:h,10:i,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:k,32:[1,203],33:24,34:l,36:n,38:o,42:28,43:39,44:p,45:40,47:41,60:q,84:r,85:s,86:t,87:u,88:v,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E,121:F,122:G,123:H,124:I,125:J},{10:K,18:204},{44:[1,205]},a(aa,[2,43]),{10:[1,206],44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:113,114:C,115:D,116:E},{10:[1,207]},{10:[1,208],106:[1,209]},a(aS,[2,128]),{10:[1,210],44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:113,114:C,115:D,116:E},{10:[1,211],44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:113,114:C,115:D,116:E},{80:[1,212]},a(aI,[2,109],{10:[1,213]}),a(aI,[2,111],{10:[1,214]}),{80:[1,215]},a(aJ,[2,184]),{80:[1,216],98:[1,217]},a(aa,[2,55],{113:113,44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,114:C,115:D,116:E}),{31:[1,218],67:aK,82:219,116:aN,117:aO,118:aP},a(aT,[2,86]),a(aT,[2,88]),a(aT,[2,89]),a(aT,[2,153]),a(aT,[2,154]),a(aT,[2,155]),a(aT,[2,156]),{49:[1,220],67:aK,82:219,116:aN,117:aO,118:aP},{30:221,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{51:[1,222],67:aK,82:219,116:aN,117:aO,118:aP},{53:[1,223],67:aK,82:219,116:aN,117:aO,118:aP},{55:[1,224],67:aK,82:219,116:aN,117:aO,118:aP},{57:[1,225],67:aK,82:219,116:aN,117:aO,118:aP},{60:[1,226]},{64:[1,227],67:aK,82:219,116:aN,117:aO,118:aP},{66:[1,228],67:aK,82:219,116:aN,117:aO,118:aP},{30:229,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{31:[1,230],67:aK,82:219,116:aN,117:aO,118:aP},{67:aK,69:[1,231],71:[1,232],82:219,116:aN,117:aO,118:aP},{67:aK,69:[1,234],71:[1,233],82:219,116:aN,117:aO,118:aP},a(P,[2,45],{18:156,10:K,40:aH}),a(P,[2,47],{44:aG}),a(ae,[2,75]),a(ae,[2,74]),{62:[1,235],67:aK,82:219,116:aN,117:aO,118:aP},a(ae,[2,77]),a(aQ,[2,80]),{77:[1,236],79:198,116:ah,119:ai},{30:237,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},a(aF,f,{5:238}),a(aR,[2,102]),a(L,[2,35]),{43:239,44:p,45:40,47:41,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},{10:K,18:240},{10:aU,60:aV,84:aW,92:241,105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{10:aU,60:aV,84:aW,92:252,104:[1,253],105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{10:aU,60:aV,84:aW,92:254,104:[1,255],105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{105:[1,256]},{10:aU,60:aV,84:aW,92:257,105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{44:p,47:258,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},a(aI,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},a(aI,[2,116]),a(aI,[2,118],{10:[1,262]}),a(aI,[2,119]),a(ab,[2,56]),a(aT,[2,87]),a(ab,[2,57]),{51:[1,263],67:aK,82:219,116:aN,117:aO,118:aP},a(ab,[2,64]),a(ab,[2,59]),a(ab,[2,60]),a(ab,[2,61]),{109:[1,264]},a(ab,[2,63]),a(ab,[2,65]),{66:[1,265],67:aK,82:219,116:aN,117:aO,118:aP},a(ab,[2,67]),a(ab,[2,68]),a(ab,[2,70]),a(ab,[2,69]),a(ab,[2,71]),a([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),a(ae,[2,78]),{31:[1,266],67:aK,82:219,116:aN,117:aO,118:aP},{6:11,7:12,8:g,9:h,10:i,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:k,32:[1,267],33:24,34:l,36:n,38:o,42:28,43:39,44:p,45:40,47:41,60:q,84:r,85:s,86:t,87:u,88:v,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E,121:F,122:G,123:H,124:I,125:J},a(aa,[2,53]),{43:268,44:p,45:40,47:41,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},a(aI,[2,121],{106:a0}),a(a1,[2,130],{108:270,10:aU,60:aV,84:aW,105:aX,109:aY,110:aZ,111:a$,112:a_}),a(a2,[2,132]),a(a2,[2,134]),a(a2,[2,135]),a(a2,[2,136]),a(a2,[2,137]),a(a2,[2,138]),a(a2,[2,139]),a(a2,[2,140]),a(a2,[2,141]),a(aI,[2,122],{106:a0}),{10:[1,271]},a(aI,[2,123],{106:a0}),{10:[1,272]},a(aS,[2,129]),a(aI,[2,105],{106:a0}),a(aI,[2,106],{113:113,44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,114:C,115:D,116:E}),a(aI,[2,110]),a(aI,[2,112],{10:[1,273]}),a(aI,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:M,9:N,11:O,21:278},a(L,[2,34]),a(aa,[2,52]),{10:aU,60:aV,84:aW,105:aX,107:279,108:243,109:aY,110:aZ,111:a$,112:a_},a(a2,[2,133]),{14:R,44:S,60:T,89:U,101:280,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_,120:88},{14:R,44:S,60:T,89:U,101:281,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_,120:88},{98:[1,282]},a(aI,[2,120]),a(ab,[2,58]),{30:283,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},a(ab,[2,66]),a(aF,f,{5:284}),a(a1,[2,131],{108:270,10:aU,60:aV,84:aW,105:aX,109:aY,110:aZ,111:a$,112:a_}),a(aI,[2,126],{120:168,10:[1,285],14:R,44:S,60:T,89:U,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_}),a(aI,[2,127],{120:168,10:[1,286],14:R,44:S,60:T,89:U,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_}),a(aI,[2,114]),{31:[1,287],67:aK,82:219,116:aN,117:aO,118:aP},{6:11,7:12,8:g,9:h,10:i,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:k,32:[1,288],33:24,34:l,36:n,38:o,42:28,43:39,44:p,45:40,47:41,60:q,84:r,85:s,86:t,87:u,88:v,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E,121:F,122:G,123:H,124:I,125:J},{10:aU,60:aV,84:aW,92:289,105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{10:aU,60:aV,84:aW,92:290,105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},a(ab,[2,62]),a(L,[2,33]),a(aI,[2,124],{106:a0}),a(aI,[2,125],{106:a0})],defaultActions:{},parseError:(0,m.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,m.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",i=0,j=0,k=0,l=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,m.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,m.K2)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=g[v]&&g[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],g[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(i+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(j=n.yyleng,h=n.yytext,i=n.yylineno,q=n.yylloc,k>0&&k--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[h,j,i,o,w[1],e,f].concat(l))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=g[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function a4(){this.yy={}}return a3.lexer={EOF:1,parseError:(0,m.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,m.K2)(function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,m.K2)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,m.K2)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,m.K2)(function(){return this._more=!0,this},"more"),reject:(0,m.K2)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,m.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,m.K2)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,m.K2)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,m.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,m.K2)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,m.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,m.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,m.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,m.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,m.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,m.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,m.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,m.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,m.K2)(function(a,b,c,d){switch(c){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),b.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return b.yytext=b.yytext.replace(/\n\s*/g,"<br/>"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 18:return 96;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 34:return 88;case 35:case 36:case 37:return a.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 98;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:case 103:return 111;case 63:return 46;case 64:return 60;case 65:case 104:return 44;case 66:return 8;case 67:return 106;case 68:case 102:return 115;case 69:case 72:case 75:return this.popState(),77;case 70:return this.pushState("edgeText"),75;case 71:case 74:case 77:return 119;case 73:return this.pushState("thickEdgeText"),75;case 76:return this.pushState("dottedEdgeText"),75;case 78:return 77;case 79:return this.popState(),53;case 80:case 116:return"TEXT";case 81:return this.pushState("ellipseText"),52;case 82:return this.popState(),55;case 83:return this.pushState("text"),54;case 84:return this.popState(),57;case 85:return this.pushState("text"),56;case 86:return 58;case 87:return this.pushState("text"),67;case 88:return this.popState(),64;case 89:return this.pushState("text"),63;case 90:return this.popState(),49;case 91:return this.pushState("text"),48;case 92:return this.popState(),69;case 93:return this.popState(),71;case 94:return 117;case 95:return this.pushState("trapText"),68;case 96:return this.pushState("trapText"),70;case 97:return 118;case 98:return 67;case 99:return 90;case 100:return"SEP";case 101:return 89;case 105:return 109;case 106:return 114;case 107:return 116;case 108:return this.popState(),62;case 109:return this.pushState("text"),62;case 110:return this.popState(),51;case 111:return this.pushState("text"),50;case 112:return this.popState(),31;case 113:return this.pushState("text"),29;case 114:return this.popState(),66;case 115:return this.pushState("text"),65;case 117:return"QUOTE";case 118:return 9;case 119:return 10;case 120:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeData:{rules:[8,11,12,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackargs:{rules:[17,18,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackname:{rules:[14,15,16,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},href:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},click:{rules:[21,24,33,34,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dottedEdgeText:{rules:[21,24,75,77,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},thickEdgeText:{rules:[21,24,72,74,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},edgeText:{rules:[21,24,69,71,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},trapText:{rules:[21,24,78,81,83,85,89,91,92,93,94,95,96,109,111,113,115],inclusive:!1},ellipseText:{rules:[21,24,78,79,80,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},text:{rules:[21,24,78,81,82,83,84,85,88,89,90,91,95,96,108,109,110,111,112,113,114,115,116],inclusive:!1},vertex:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr:{rules:[3,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_title:{rules:[1,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},md_string:{rules:[19,20,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},string:{rules:[21,22,23,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,75,76,78,81,83,85,86,87,89,91,95,96,97,98,99,100,101,102,103,104,105,106,107,109,111,113,115,117,118,119,120],inclusive:!0}}},(0,m.K2)(a4,"Parser"),a4.prototype=a3,a3.Parser=a4,new a4}();u.parser=u;var v=Object.assign({},u);v.parse=a=>{let b=a.replace(/}\s*\n/g,"}\n");return u.parse(b)};var w=(0,m.K2)((a,b)=>{let c=p.A,d=c(a,"r"),e=c(a,"g"),f=c(a,"b");return q.A(d,e,f,b)},"fade"),x={parser:v,get db(){return new r},renderer:{getClasses:s,draw:t},styles:(0,m.K2)(a=>`.label {
|
|
20
|
+
font-family: ${a.fontFamily};
|
|
21
|
+
color: ${a.nodeTextColor||a.textColor};
|
|
22
|
+
}
|
|
23
|
+
.cluster-label text {
|
|
24
|
+
fill: ${a.titleColor};
|
|
25
|
+
}
|
|
26
|
+
.cluster-label span {
|
|
27
|
+
color: ${a.titleColor};
|
|
28
|
+
}
|
|
29
|
+
.cluster-label span p {
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.label text,span {
|
|
34
|
+
fill: ${a.nodeTextColor||a.textColor};
|
|
35
|
+
color: ${a.nodeTextColor||a.textColor};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.node rect,
|
|
39
|
+
.node circle,
|
|
40
|
+
.node ellipse,
|
|
41
|
+
.node polygon,
|
|
42
|
+
.node path {
|
|
43
|
+
fill: ${a.mainBkg};
|
|
44
|
+
stroke: ${a.nodeBorder};
|
|
45
|
+
stroke-width: ${a.strokeWidth??1}px;
|
|
46
|
+
}
|
|
47
|
+
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
|
|
48
|
+
text-anchor: middle;
|
|
49
|
+
}
|
|
50
|
+
// .flowchart-label .text-outer-tspan {
|
|
51
|
+
// text-anchor: middle;
|
|
52
|
+
// }
|
|
53
|
+
// .flowchart-label .text-inner-tspan {
|
|
54
|
+
// text-anchor: start;
|
|
55
|
+
// }
|
|
56
|
+
|
|
57
|
+
.node .katex path {
|
|
58
|
+
fill: #000;
|
|
59
|
+
stroke: #000;
|
|
60
|
+
stroke-width: 1px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
|
|
64
|
+
text-align: center;
|
|
65
|
+
}
|
|
66
|
+
.node.clickable {
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
.root .anchor path {
|
|
72
|
+
fill: ${a.lineColor} !important;
|
|
73
|
+
stroke-width: 0;
|
|
74
|
+
stroke: ${a.lineColor};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.arrowheadPath {
|
|
78
|
+
fill: ${a.arrowheadColor};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.edgePath .path {
|
|
82
|
+
stroke: ${a.lineColor};
|
|
83
|
+
stroke-width: ${a.strokeWidth??2}px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.flowchart-link {
|
|
87
|
+
stroke: ${a.lineColor};
|
|
88
|
+
fill: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.edgeLabel {
|
|
92
|
+
background-color: ${a.edgeLabelBackground};
|
|
93
|
+
p {
|
|
94
|
+
background-color: ${a.edgeLabelBackground};
|
|
95
|
+
}
|
|
96
|
+
rect {
|
|
97
|
+
opacity: 0.5;
|
|
98
|
+
background-color: ${a.edgeLabelBackground};
|
|
99
|
+
fill: ${a.edgeLabelBackground};
|
|
100
|
+
}
|
|
101
|
+
text-align: center;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* For html labels only */
|
|
105
|
+
.labelBkg {
|
|
106
|
+
background-color: ${w(a.edgeLabelBackground,.5)};
|
|
107
|
+
// background-color:
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.cluster rect {
|
|
111
|
+
fill: ${a.clusterBkg};
|
|
112
|
+
stroke: ${a.clusterBorder};
|
|
113
|
+
stroke-width: 1px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.cluster text {
|
|
117
|
+
fill: ${a.titleColor};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.cluster span {
|
|
121
|
+
color: ${a.titleColor};
|
|
122
|
+
}
|
|
123
|
+
/* .cluster div {
|
|
124
|
+
color: ${a.titleColor};
|
|
125
|
+
} */
|
|
126
|
+
|
|
127
|
+
div.mermaidTooltip {
|
|
128
|
+
position: absolute;
|
|
129
|
+
text-align: center;
|
|
130
|
+
max-width: 200px;
|
|
131
|
+
padding: 2px;
|
|
132
|
+
font-family: ${a.fontFamily};
|
|
133
|
+
font-size: 12px;
|
|
134
|
+
background: ${a.tertiaryColor};
|
|
135
|
+
border: 1px solid ${a.border2};
|
|
136
|
+
border-radius: 2px;
|
|
137
|
+
pointer-events: none;
|
|
138
|
+
z-index: 100;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.flowchartTitleText {
|
|
142
|
+
text-anchor: middle;
|
|
143
|
+
font-size: 18px;
|
|
144
|
+
fill: ${a.textColor};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
rect.text {
|
|
148
|
+
fill: none;
|
|
149
|
+
stroke-width: 0;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.icon-shape, .image-shape {
|
|
153
|
+
background-color: ${a.edgeLabelBackground};
|
|
154
|
+
p {
|
|
155
|
+
background-color: ${a.edgeLabelBackground};
|
|
156
|
+
padding: 2px;
|
|
157
|
+
}
|
|
158
|
+
.label rect {
|
|
159
|
+
opacity: 0.5;
|
|
160
|
+
background-color: ${a.edgeLabelBackground};
|
|
161
|
+
fill: ${a.edgeLabelBackground};
|
|
162
|
+
}
|
|
163
|
+
text-align: center;
|
|
164
|
+
}
|
|
165
|
+
${(0,d.o)()}
|
|
166
|
+
`,"getStyles"),init:(0,m.K2)(a=>{a.flowchart||(a.flowchart={}),a.layout&&(0,l.XV)({layout:a.layout}),a.flowchart.arrowMarkerAbsolute=a.arrowMarkerAbsolute,(0,l.XV)({flowchart:{arrowMarkerAbsolute:a.arrowMarkerAbsolute}})},"init")}},76211:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(39226),e=c(272);let f=(a,b)=>d.A.lang.round(e.A.parse(a)[b])}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=660,exports.ids=[660],exports.modules={50660:(a,b,c)=>{c.d(b,{diagram:()=>f});var d=c(17811);c(61565),c(42383),c(3494),c(53765),c(43358),c(88123),c(73064),c(84976),c(34721),c(38033),c(88745),c(28056),c(6850);var e=c(24613),f={parser:d._$,get db(){return new d.NM},renderer:d.Lh,styles:d.tM,init:(0,e.K2)(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports.id=6692,exports.ids=[6692],exports.modules={5392:()=>{},8855:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{INTERCEPTION_ROUTE_MARKERS:function(){return e},extractInterceptionRouteInformation:function(){return g},isInterceptionRouteAppPath:function(){return f}});let d=c(81080),e=["(..)(..)","(.)","(..)","(...)"];function f(a){return void 0!==a.split("/").find(a=>e.find(b=>a.startsWith(b)))}function g(a){let b,c,f;for(let d of a.split("/"))if(c=e.find(a=>d.startsWith(a))){[b,f]=a.split(c,2);break}if(!b||!c||!f)throw Object.defineProperty(Error("Invalid interception route: "+a+". Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>"),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(b=(0,d.normalizeAppPath)(b),c){case"(.)":f="/"===b?"/"+f:b+"/"+f;break;case"(..)":if("/"===b)throw Object.defineProperty(Error("Invalid interception route: "+a+". Cannot use (..) marker at the root level, use (.) instead."),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});f=b.split("/").slice(0,-1).concat(f).join("/");break;case"(...)":f="/"+f;break;case"(..)(..)":let g=b.split("/");if(g.length<=2)throw Object.defineProperty(Error("Invalid interception route: "+a+". Cannot use (..)(..) marker at the root level or one level up."),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});f=g.slice(0,-2).concat(f).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:b,interceptedRoute:f}}},15808:(a,b,c)=>{"use strict";let d;Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{arrayBufferToString:function(){return h},decrypt:function(){return k},encrypt:function(){return j},getActionEncryptionKey:function(){return p},getClientReferenceManifestForRsc:function(){return o},getServerModuleMap:function(){return n},setReferenceManifestsSingleton:function(){return m},stringToUint8Array:function(){return i}});let e=c(32839),f=c(81080),g=c(29294);function h(a){let b=new Uint8Array(a),c=b.byteLength;if(c<65535)return String.fromCharCode.apply(null,b);let d="";for(let a=0;a<c;a++)d+=String.fromCharCode(b[a]);return d}function i(a){let b=a.length,c=new Uint8Array(b);for(let d=0;d<b;d++)c[d]=a.charCodeAt(d);return c}function j(a,b,c){return crypto.subtle.encrypt({name:"AES-GCM",iv:b},a,c)}function k(a,b,c){return crypto.subtle.decrypt({name:"AES-GCM",iv:b},a,c)}let l=Symbol.for("next.server.action-manifests");function m({page:a,clientReferenceManifest:b,serverActionsManifest:c,serverModuleMap:d}){var e;let g=null==(e=globalThis[l])?void 0:e.clientReferenceManifestsPerPage;globalThis[l]={clientReferenceManifestsPerPage:{...g,[(0,f.normalizeAppPath)(a)]:b},serverActionsManifest:c,serverModuleMap:d}}function n(){let a=globalThis[l];if(!a)throw Object.defineProperty(new e.InvariantError("Missing manifest for Server Actions."),"__NEXT_ERROR_CODE",{value:"E606",enumerable:!1,configurable:!0});return a.serverModuleMap}function o(){let a=globalThis[l];if(!a)throw Object.defineProperty(new e.InvariantError("Missing manifest for Server Actions."),"__NEXT_ERROR_CODE",{value:"E606",enumerable:!1,configurable:!0});let{clientReferenceManifestsPerPage:b}=a,c=g.workAsyncStorage.getStore();if(!c){var d=b;let a=Object.values(d),c={clientModules:{},edgeRscModuleMapping:{},rscModuleMapping:{}};for(let b of a)c.clientModules={...c.clientModules,...b.clientModules},c.edgeRscModuleMapping={...c.edgeRscModuleMapping,...b.edgeRscModuleMapping},c.rscModuleMapping={...c.rscModuleMapping,...b.rscModuleMapping};return c}let f=b[c.route];if(!f)throw Object.defineProperty(new e.InvariantError(`Missing Client Reference Manifest for ${c.route}.`),"__NEXT_ERROR_CODE",{value:"E570",enumerable:!1,configurable:!0});return f}async function p(){if(d)return d;let a=globalThis[l];if(!a)throw Object.defineProperty(new e.InvariantError("Missing manifest for Server Actions."),"__NEXT_ERROR_CODE",{value:"E606",enumerable:!1,configurable:!0});let b=process.env.NEXT_SERVER_ACTIONS_ENCRYPTION_KEY||a.serverActionsManifest.encryptionKey;if(void 0===b)throw Object.defineProperty(new e.InvariantError("Missing encryption key for Server Actions"),"__NEXT_ERROR_CODE",{value:"E571",enumerable:!1,configurable:!0});return d=await crypto.subtle.importKey("raw",i(atob(b)),"AES-GCM",!0,["encrypt","decrypt"])}},48105:(a,b)=>{"use strict";function c(a){return a.startsWith("/")?a:"/"+a}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"ensureLeadingSlash",{enumerable:!0,get:function(){return c}})},54491:(a,b,c)=>{"use strict";a.exports=c(61597).vendored["react-rsc"].ReactServerDOMWebpackServer},68579:(a,b,c)=>{"use strict";a.exports=c(61597).vendored["react-rsc"].ReactDOM},71513:(a,b,c)=>{"use strict";var d=c(28354),e=c(68579),f={stream:!0},g=Object.prototype.hasOwnProperty,h=new Map;function i(a){var b=globalThis.__next_require__(a);return"function"!=typeof b.then||"fulfilled"===b.status?null:(b.then(function(a){b.status="fulfilled",b.value=a},function(a){b.status="rejected",b.reason=a}),b)}function j(){}function k(a){for(var b=a[1],d=[],e=0;e<b.length;){var f=b[e++];b[e++];var g=h.get(f);if(void 0===g){g=c.e(f),d.push(g);var k=h.set.bind(h,f,null);g.then(k,j),h.set(f,g)}else null!==g&&d.push(g)}return 4===a.length?0===d.length?i(a[0]):Promise.all(d).then(function(){return i(a[0])}):0<d.length?Promise.all(d):null}function l(a){var b=globalThis.__next_require__(a[0]);if(4===a.length&&"function"==typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:g.call(b,a[2])?b[a[2]]:void 0}var m=e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,n=Symbol.for("react.transitional.element"),o=Symbol.for("react.lazy"),p=Symbol.iterator,q=Symbol.asyncIterator,r=Array.isArray,s=Object.getPrototypeOf,t=Object.prototype,u=new WeakMap;function v(a,b,c,d,e){function f(a,c){c=new Blob([new Uint8Array(c.buffer,c.byteOffset,c.byteLength)]);var d=i++;return null===k&&(k=new FormData),k.append(b+d,c),"$"+a+d.toString(16)}function g(a,v){if(null===v)return null;if("object"==typeof v){switch(v.$$typeof){case n:if(void 0!==c&&-1===a.indexOf(":")){var w,x,y,z,A,B=l.get(this);if(void 0!==B)return c.set(B+":"+a,v),"$T"}throw Error("React Element cannot be passed to Server Functions from the Client without a temporary reference set. Pass a TemporaryReferenceSet to the options.");case o:B=v._payload;var C=v._init;null===k&&(k=new FormData),j++;try{var D=C(B),E=i++,F=h(D,E);return k.append(b+E,F),"$"+E.toString(16)}catch(a){if("object"==typeof a&&null!==a&&"function"==typeof a.then){j++;var G=i++;return B=function(){try{var a=h(v,G),c=k;c.append(b+G,a),j--,0===j&&d(c)}catch(a){e(a)}},a.then(B,B),"$"+G.toString(16)}return e(a),null}finally{j--}}if(B=l.get(v),"function"==typeof v.then){if(void 0!==B)if(m!==v)return B;else m=null;null===k&&(k=new FormData),j++;var H=i++;return a="$@"+H.toString(16),l.set(v,a),v.then(function(a){try{var c=l.get(a),f=void 0!==c?JSON.stringify(c):h(a,H);(a=k).append(b+H,f),j--,0===j&&d(a)}catch(a){e(a)}},e),a}if(void 0!==B)if(m!==v)return B;else m=null;else -1===a.indexOf(":")&&void 0!==(B=l.get(this))&&(a=B+":"+a,l.set(v,a),void 0!==c&&c.set(a,v));if(r(v))return v;if(v instanceof FormData){null===k&&(k=new FormData);var I=k,J=b+"_"+(a=i++)+"_";return v.forEach(function(a,b){I.append(J+b,a)}),"$K"+a.toString(16)}if(v instanceof Map)return a=i++,B=h(Array.from(v),a),null===k&&(k=new FormData),k.append(b+a,B),"$Q"+a.toString(16);if(v instanceof Set)return a=i++,B=h(Array.from(v),a),null===k&&(k=new FormData),k.append(b+a,B),"$W"+a.toString(16);if(v instanceof ArrayBuffer)return a=new Blob([v]),B=i++,null===k&&(k=new FormData),k.append(b+B,a),"$A"+B.toString(16);if(v instanceof Int8Array)return f("O",v);if(v instanceof Uint8Array)return f("o",v);if(v instanceof Uint8ClampedArray)return f("U",v);if(v instanceof Int16Array)return f("S",v);if(v instanceof Uint16Array)return f("s",v);if(v instanceof Int32Array)return f("L",v);if(v instanceof Uint32Array)return f("l",v);if(v instanceof Float32Array)return f("G",v);if(v instanceof Float64Array)return f("g",v);if(v instanceof BigInt64Array)return f("M",v);if(v instanceof BigUint64Array)return f("m",v);if(v instanceof DataView)return f("V",v);if("function"==typeof Blob&&v instanceof Blob)return null===k&&(k=new FormData),a=i++,k.append(b+a,v),"$B"+a.toString(16);if(a=null===(w=v)||"object"!=typeof w?null:"function"==typeof(w=p&&w[p]||w["@@iterator"])?w:null)return(B=a.call(v))===v?(a=i++,B=h(Array.from(B),a),null===k&&(k=new FormData),k.append(b+a,B),"$i"+a.toString(16)):Array.from(B);if("function"==typeof ReadableStream&&v instanceof ReadableStream)return function(a){try{var c,f,h,l,m,n,o,p=a.getReader({mode:"byob"})}catch(l){return c=a.getReader(),null===k&&(k=new FormData),f=k,j++,h=i++,c.read().then(function a(i){if(i.done)f.append(b+h,"C"),0==--j&&d(f);else try{var k=JSON.stringify(i.value,g);f.append(b+h,k),c.read().then(a,e)}catch(a){e(a)}},e),"$R"+h.toString(16)}return l=p,null===k&&(k=new FormData),m=k,j++,n=i++,o=[],l.read(new Uint8Array(1024)).then(function a(c){c.done?(c=i++,m.append(b+c,new Blob(o)),m.append(b+n,'"$o'+c.toString(16)+'"'),m.append(b+n,"C"),0==--j&&d(m)):(o.push(c.value),l.read(new Uint8Array(1024)).then(a,e))},e),"$r"+n.toString(16)}(v);if("function"==typeof(a=v[q]))return x=v,y=a.call(v),null===k&&(k=new FormData),z=k,j++,A=i++,x=x===y,y.next().then(function a(c){if(c.done){if(void 0===c.value)z.append(b+A,"C");else try{var f=JSON.stringify(c.value,g);z.append(b+A,"C"+f)}catch(a){e(a);return}0==--j&&d(z)}else try{var h=JSON.stringify(c.value,g);z.append(b+A,h),y.next().then(a,e)}catch(a){e(a)}},e),"$"+(x?"x":"X")+A.toString(16);if((a=s(v))!==t&&(null===a||null!==s(a))){if(void 0===c)throw Error("Only plain objects, and a few built-ins, can be passed to Server Functions. Classes or null prototypes are not supported.");return"$T"}return v}if("string"==typeof v)return"Z"===v[v.length-1]&&this[a]instanceof Date?"$D"+v:a="$"===v[0]?"$"+v:v;if("boolean"==typeof v)return v;if("number"==typeof v)return Number.isFinite(v)?0===v&&-1/0==1/v?"$-0":v:1/0===v?"$Infinity":-1/0===v?"$-Infinity":"$NaN";if(void 0===v)return"$undefined";if("function"==typeof v){if(void 0!==(B=u.get(v)))return void 0!==(a=l.get(v))||(a=JSON.stringify({id:B.id,bound:B.bound},g),null===k&&(k=new FormData),B=i++,k.set(b+B,a),a="$h"+B.toString(16),l.set(v,a)),a;if(void 0!==c&&-1===a.indexOf(":")&&void 0!==(B=l.get(this)))return c.set(B+":"+a,v),"$T";throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.")}if("symbol"==typeof v){if(void 0!==c&&-1===a.indexOf(":")&&void 0!==(B=l.get(this)))return c.set(B+":"+a,v),"$T";throw Error("Symbols cannot be passed to a Server Function without a temporary reference set. Pass a TemporaryReferenceSet to the options.")}if("bigint"==typeof v)return"$n"+v.toString(10);throw Error("Type "+typeof v+" is not supported as an argument to a Server Function.")}function h(a,b){return"object"==typeof a&&null!==a&&(b="$"+b.toString(16),l.set(a,b),void 0!==c&&c.set(b,a)),m=a,JSON.stringify(a,g)}var i=1,j=0,k=null,l=new WeakMap,m=a,v=h(a,0);return null===k?d(v):(k.set(b+"0",v),0===j&&d(k)),function(){0<j&&(j=0,null===k?d(v):d(k))}}var w=new WeakMap;function x(a){var b=u.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){if((c=w.get(b))||(d={id:b.id,bound:b.bound},g=new Promise(function(a,b){e=a,f=b}),v(d,"",void 0,function(a){if("string"==typeof a){var b=new FormData;b.append("0",a),a=b}g.status="fulfilled",g.value=a,e(a)},function(a){g.status="rejected",g.reason=a,f(a)}),c=g,w.set(b,c)),"rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d,e,f,g,h=new FormData;b.forEach(function(b,c){h.append("$ACTION_"+a+":"+c,b)}),c=h,b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}}function y(a,b){var c=u.get(this);if(!c)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");if(c.id!==a)return!1;var d=c.bound;if(null===d)return 0===b;switch(d.status){case"fulfilled":return d.value.length===b;case"pending":throw d;case"rejected":throw d.reason;default:throw"string"!=typeof d.status&&(d.status="pending",d.then(function(a){d.status="fulfilled",d.value=a},function(a){d.status="rejected",d.reason=a})),d}}function z(a,b,c,d){u.has(a)||(u.set(a,{id:b,originalBind:a.bind,bound:c}),Object.defineProperties(a,{$$FORM_ACTION:{value:void 0===d?x:function(){var a=u.get(this);if(!a)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var b=a.bound;return null===b&&(b=Promise.resolve([])),d(a.id,b)}},$$IS_SIGNATURE_EQUAL:{value:y},bind:{value:C}}))}var A=Function.prototype.bind,B=Array.prototype.slice;function C(){var a=u.get(this);if(!a)return A.apply(this,arguments);var b=a.originalBind.apply(this,arguments),c=B.call(arguments,1),d=null;return d=null!==a.bound?Promise.resolve(a.bound).then(function(a){return a.concat(c)}):Promise.resolve(c),u.set(b,{id:a.id,originalBind:b.bind,bound:d}),Object.defineProperties(b,{$$FORM_ACTION:{value:this.$$FORM_ACTION},$$IS_SIGNATURE_EQUAL:{value:y},bind:{value:C}}),b}function D(a,b,c){this.status=a,this.value=b,this.reason=c}function E(a){switch(a.status){case"resolved_model":P(a);break;case"resolved_module":Q(a)}switch(a.status){case"fulfilled":return a.value;case"pending":case"blocked":case"halted":throw a;default:throw a.reason}}function F(a,b){for(var c=0;c<a.length;c++){var d=a[c];"function"==typeof d?d(b):U(d,b)}}function G(a,b){for(var c=0;c<a.length;c++){var d=a[c];"function"==typeof d?d(b):V(d,b)}}function H(a,b){var c=b.handler.chunk;if(null===c)return null;if(c===a)return b.handler;if(null!==(b=c.value))for(c=0;c<b.length;c++){var d=b[c];if("function"!=typeof d&&null!==(d=H(a,d)))return d}return null}function I(a,b,c){switch(a.status){case"fulfilled":F(b,a.value);break;case"blocked":for(var d=0;d<b.length;d++){var e=b[d];if("function"!=typeof e){var f=H(a,e);if(null!==f)switch(U(e,f.value),b.splice(d,1),d--,null!==c&&-1!==(e=c.indexOf(e))&&c.splice(e,1),a.status){case"fulfilled":F(b,a.value);return;case"rejected":null!==c&&G(c,a.reason);return}}}case"pending":if(a.value)for(d=0;d<b.length;d++)a.value.push(b[d]);else a.value=b;if(a.reason){if(c)for(b=0;b<c.length;b++)a.reason.push(c[b])}else a.reason=c;break;case"rejected":c&&G(c,a.reason)}}function J(a,b,c){"pending"!==b.status&&"blocked"!==b.status?b.reason.error(c):(a=b.reason,b.status="rejected",b.reason=c,null!==a&&G(a,c))}function K(a,b,c){return new D("resolved_model",(c?'{"done":true,"value":':'{"done":false,"value":')+b+"}",a)}function L(a,b,c,d){M(a,b,(d?'{"done":true,"value":':'{"done":false,"value":')+c+"}")}function M(a,b,c){if("pending"!==b.status)b.reason.enqueueModel(c);else{var d=b.value,e=b.reason;b.status="resolved_model",b.value=c,b.reason=a,null!==d&&(P(b),I(b,d,e))}}function N(a,b,c){if("pending"===b.status||"blocked"===b.status){a=b.value;var d=b.reason;b.status="resolved_module",b.value=c,b.reason=null,null!==a&&(Q(b),I(b,a,d))}}D.prototype=Object.create(Promise.prototype),D.prototype.then=function(a,b){switch(this.status){case"resolved_model":P(this);break;case"resolved_module":Q(this)}switch(this.status){case"fulfilled":"function"==typeof a&&a(this.value);break;case"pending":case"blocked":"function"==typeof a&&(null===this.value&&(this.value=[]),this.value.push(a)),"function"==typeof b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;case"halted":break;default:"function"==typeof b&&b(this.reason)}};var O=null;function P(a){var b=O;O=null;var c=a.value,d=a.reason;a.status="blocked",a.value=null,a.reason=null;try{var e=JSON.parse(c,d._fromJSON),f=a.value;if(null!==f&&(a.value=null,a.reason=null,F(f,e)),null!==O){if(O.errored)throw O.reason;if(0<O.deps){O.value=e,O.reason=null,O.chunk=a;return}}a.status="fulfilled",a.value=e,a.reason=null}catch(b){a.status="rejected",a.reason=b}finally{O=b}}function Q(a){try{var b=l(a.value);a.status="fulfilled",a.value=b,a.reason=null}catch(b){a.status="rejected",a.reason=b}}function R(a,b){a._closed=!0,a._closedReason=b,a._chunks.forEach(function(c){"pending"===c.status?J(a,c,b):"fulfilled"===c.status&&null!==c.reason&&c.reason.error(b)})}function S(a){return{$$typeof:o,_payload:a,_init:E}}function T(a,b){var c=a._chunks,d=c.get(b);return d||(d=a._closed?new D("rejected",null,a._closedReason):new D("pending",null,null),c.set(b,d)),d}function U(a,b){var c=a.response,d=a.handler,e=a.parentObject,f=a.key,h=a.map,i=a.path;try{for(var j=1;j<i.length;j++){for(;b.$$typeof===o;){var k=b._payload;if(k===d.chunk)b=d.value;else{switch(k.status){case"resolved_model":P(k);break;case"resolved_module":Q(k)}switch(k.status){case"fulfilled":b=k.value;continue;case"blocked":var l=H(k,a);if(null!==l){b=l.value;continue}case"pending":i.splice(0,j-1),null===k.value?k.value=[a]:k.value.push(a),null===k.reason?k.reason=[a]:k.reason.push(a);return;case"halted":return;default:V(a,k.reason);return}}}var m=i[j];if("object"==typeof b&&null!==b&&g.call(b,m))b=b[m];else throw Error("Invalid reference.")}var p=h(c,b,e,f);if("__proto__"!==f&&(e[f]=p),""===f&&null===d.value&&(d.value=p),e[0]===n&&"object"==typeof d.value&&null!==d.value&&d.value.$$typeof===n){var q=d.value;"3"===f&&(q.props=p)}}catch(b){V(a,b);return}d.deps--,0===d.deps&&null!==(a=d.chunk)&&"blocked"===a.status&&(b=a.value,a.status="fulfilled",a.value=d.value,a.reason=d.reason,null!==b&&F(b,d.value))}function V(a,b){var c=a.handler;a=a.response,c.errored||(c.errored=!0,c.value=null,c.reason=b,null!==(c=c.chunk)&&"blocked"===c.status&&J(a,c,b))}function W(a,b,c,d,e,f){if(O){var g=O;g.deps++}else g=O={parent:null,chunk:null,value:null,reason:null,deps:1,errored:!1};return b={response:d,handler:g,parentObject:b,key:c,map:e,path:f},null===a.value?a.value=[b]:a.value.push(b),null===a.reason?a.reason=[b]:a.reason.push(b),null}function X(a,b,c,d){if(!a._serverReferenceConfig)return function(a,b,c){function d(){var a=Array.prototype.slice.call(arguments);return f?"fulfilled"===f.status?b(e,f.value.concat(a)):Promise.resolve(f).then(function(c){return b(e,c.concat(a))}):b(e,a)}var e=a.id,f=a.bound;return z(d,e,f,c),d}(b,a._callServer,a._encodeFormAction);var e=function(a,b){var c="",d=a[b];if(d)c=d.name;else{var e=b.lastIndexOf("#");if(-1!==e&&(c=b.slice(e+1),d=a[b.slice(0,e)]),!d)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.')}return d.async?[d.id,d.chunks,c,1]:[d.id,d.chunks,c]}(a._serverReferenceConfig,b.id),f=k(e);if(f)b.bound&&(f=Promise.all([f,b.bound]));else{if(!b.bound)return z(f=l(e),b.id,b.bound,a._encodeFormAction),f;f=Promise.resolve(b.bound)}if(O){var g=O;g.deps++}else g=O={parent:null,chunk:null,value:null,reason:null,deps:1,errored:!1};return f.then(function(){var f=l(e);if(b.bound){var h=b.bound.value.slice(0);h.unshift(null),f=f.bind.apply(f,h)}z(f,b.id,b.bound,a._encodeFormAction),"__proto__"!==d&&(c[d]=f),""===d&&null===g.value&&(g.value=f),c[0]===n&&"object"==typeof g.value&&null!==g.value&&g.value.$$typeof===n&&(h=g.value,"3"===d)&&(h.props=f),g.deps--,0===g.deps&&null!==(f=g.chunk)&&"blocked"===f.status&&(h=f.value,f.status="fulfilled",f.value=g.value,f.reason=null,null!==h&&F(h,g.value))},function(b){if(!g.errored){g.errored=!0,g.value=null,g.reason=b;var c=g.chunk;null!==c&&"blocked"===c.status&&J(a,c,b)}}),null}function Y(a,b,c,d,e){var f=parseInt((b=b.split(":"))[0],16);switch((f=T(a,f)).status){case"resolved_model":P(f);break;case"resolved_module":Q(f)}switch(f.status){case"fulfilled":var g=f.value;for(f=1;f<b.length;f++){for(;g.$$typeof===o;){switch((g=g._payload).status){case"resolved_model":P(g);break;case"resolved_module":Q(g)}switch(g.status){case"fulfilled":g=g.value;break;case"blocked":case"pending":return W(g,c,d,a,e,b.slice(f-1));case"halted":return O?(a=O,a.deps++):O={parent:null,chunk:null,value:null,reason:null,deps:1,errored:!1},null;default:return O?(O.errored=!0,O.value=null,O.reason=g.reason):O={parent:null,chunk:null,value:null,reason:g.reason,deps:0,errored:!0},null}}g=g[b[f]]}return e(a,g,c,d);case"pending":case"blocked":return W(f,c,d,a,e,b);case"halted":return O?(a=O,a.deps++):O={parent:null,chunk:null,value:null,reason:null,deps:1,errored:!1},null;default:return O?(O.errored=!0,O.value=null,O.reason=f.reason):O={parent:null,chunk:null,value:null,reason:f.reason,deps:0,errored:!0},null}}function Z(a,b){return new Map(b)}function $(a,b){return new Set(b)}function _(a,b){return new Blob(b.slice(1),{type:b[0]})}function aa(a,b){a=new FormData;for(var c=0;c<b.length;c++)a.append(b[c][0],b[c][1]);return a}function ab(a,b){return b[Symbol.iterator]()}function ac(a,b){return b}function ad(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.')}function ae(a,b,c,e,f,g,h){var i,j=new Map;this._bundlerConfig=a,this._serverReferenceConfig=b,this._moduleLoading=c,this._callServer=void 0!==e?e:ad,this._encodeFormAction=f,this._nonce=g,this._chunks=j,this._stringDecoder=new d.TextDecoder,this._fromJSON=null,this._closed=!1,this._closedReason=null,this._tempRefs=h,this._fromJSON=(i=this,function(a,b){if("__proto__"!==a){if("string"==typeof b){var c=i,d=this,e=a,f=b;if("$"===f[0]){if("$"===f)return null!==O&&"0"===e&&(O={parent:O,chunk:null,value:null,reason:null,deps:0,errored:!1}),n;switch(f[1]){case"$":return f.slice(1);case"L":return S(c=T(c,d=parseInt(f.slice(2),16)));case"@":return T(c,d=parseInt(f.slice(2),16));case"S":return Symbol.for(f.slice(2));case"h":return Y(c,f=f.slice(2),d,e,X);case"T":if(d="$"+f.slice(2),null==(c=c._tempRefs))throw Error("Missing a temporary reference set but the RSC response returned a temporary reference. Pass a temporaryReference option with the set that was used with the reply.");return c.get(d);case"Q":return Y(c,f=f.slice(2),d,e,Z);case"W":return Y(c,f=f.slice(2),d,e,$);case"B":return Y(c,f=f.slice(2),d,e,_);case"K":return Y(c,f=f.slice(2),d,e,aa);case"Z":return al();case"i":return Y(c,f=f.slice(2),d,e,ab);case"I":return 1/0;case"-":return"$-0"===f?-0:-1/0;case"N":return NaN;case"u":return;case"D":return new Date(Date.parse(f.slice(2)));case"n":return BigInt(f.slice(2));default:return Y(c,f=f.slice(1),d,e,ac)}}return f}if("object"==typeof b&&null!==b){if(b[0]===n){if(a={$$typeof:n,type:b[1],key:b[2],ref:null,props:b[3]},null!==O){if(O=(b=O).parent,b.errored)a=S(a=new D("rejected",null,b.reason));else if(0<b.deps){var g=new D("blocked",null,null);b.value=a,b.chunk=g,a=S(g)}}}else a=b;return a}return b}})}function af(){return{_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]}}function ag(a,b,c){var d=(a=a._chunks).get(b);d&&"pending"!==d.status?d.reason.enqueueValue(c):a.set(b,new D("fulfilled",c,null))}function ah(a,b,c,d){var e=a._chunks;(a=e.get(b))?"pending"===a.status&&(b=a.value,a.status="fulfilled",a.value=c,a.reason=d,null!==b&&F(b,a.value)):e.set(b,new D("fulfilled",c,d))}function ai(a,b,c){var d=null,e=!1;c=new ReadableStream({type:c,start:function(a){d=a}});var f=null;ah(a,b,c,{enqueueValue:function(a){null===f?d.enqueue(a):f.then(function(){d.enqueue(a)})},enqueueModel:function(b){if(null===f){var c=new D("resolved_model",b,a);P(c),"fulfilled"===c.status?d.enqueue(c.value):(c.then(function(a){return d.enqueue(a)},function(a){return d.error(a)}),f=c)}else{c=f;var e=new D("pending",null,null);e.then(function(a){return d.enqueue(a)},function(a){return d.error(a)}),f=e,c.then(function(){f===e&&(f=null),M(a,e,b)})}},close:function(){if(!e)if(e=!0,null===f)d.close();else{var a=f;f=null,a.then(function(){return d.close()})}},error:function(a){if(!e)if(e=!0,null===f)d.error(a);else{var b=f;f=null,b.then(function(){return d.error(a)})}}})}function aj(){return this}function ak(a,b,c){var d=[],e=!1,f=0,g={};g[q]=function(){var a,b=0;return(a={next:a=function(a){if(void 0!==a)throw Error("Values cannot be passed to next() of AsyncIterables passed to Client Components.");if(b===d.length){if(e)return new D("fulfilled",{done:!0,value:void 0},null);d[b]=new D("pending",null,null)}return d[b++]}})[q]=aj,a},ah(a,b,c?g[q]():g,{enqueueValue:function(a){if(f===d.length)d[f]=new D("fulfilled",{done:!1,value:a},null);else{var b=d[f],c=b.value,e=b.reason;b.status="fulfilled",b.value={done:!1,value:a},b.reason=null,null!==c&&I(b,c,e)}f++},enqueueModel:function(b){f===d.length?d[f]=K(a,b,!1):L(a,d[f],b,!1),f++},close:function(b){if(!e)for(e=!0,f===d.length?d[f]=K(a,b,!0):L(a,d[f],b,!0),f++;f<d.length;)L(a,d[f++],'"$undefined"',!0)},error:function(b){if(!e)for(e=!0,f===d.length&&(d[f]=new D("pending",null,null));f<d.length;)J(a,d[f++],b)}})}function al(){var a=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");return a.stack="Error: "+a.message,a}function am(a,b){for(var c=a.length,d=b.length,e=0;e<c;e++)d+=a[e].byteLength;d=new Uint8Array(d);for(var f=e=0;f<c;f++){var g=a[f];d.set(g,e),e+=g.byteLength}return d.set(b,e),d}function an(a,b,c,d,e,f){ag(a,b,e=new e((c=0===c.length&&0==d.byteOffset%f?d:am(c,d)).buffer,c.byteOffset,c.byteLength/f))}function ao(a,b,c,d){switch(c){case 73:var e=a,f=b,g=d,h=e._chunks,i=h.get(f);g=JSON.parse(g,e._fromJSON);var j=function(a,b){if(a){var c=a[b[0]];if(a=c&&c[b[2]])c=a.name;else{if(!(a=c&&c["*"]))throw Error('Could not find the module "'+b[0]+'" in the React Server Consumer Manifest. This is probably a bug in the React Server Components bundler.');c=b[2]}return 4===b.length?[a.id,a.chunks,c,1]:[a.id,a.chunks,c]}return b}(e._bundlerConfig,g);if(!function(a,b,c){if(null!==a)for(var d=1;d<b.length;d+=2){var e=m.d,f=e.X,g=a.prefix+b[d],h=a.crossOrigin;h="string"==typeof h?"use-credentials"===h?h:"":void 0,f.call(e,g,{crossOrigin:h,nonce:c})}}(e._moduleLoading,g[1],e._nonce),g=k(j)){if(i){var l=i;l.status="blocked"}else l=new D("blocked",null,null),h.set(f,l);g.then(function(){return N(e,l,j)},function(a){return J(e,l,a)})}else i?N(e,i,j):h.set(f,new D("resolved_module",j,null));break;case 72:switch(b=d[0],a=JSON.parse(d=d.slice(1),a._fromJSON),d=m.d,b){case"D":d.D(a);break;case"C":"string"==typeof a?d.C(a):d.C(a[0],a[1]);break;case"L":b=a[0],c=a[1],3===a.length?d.L(b,c,a[2]):d.L(b,c);break;case"m":"string"==typeof a?d.m(a):d.m(a[0],a[1]);break;case"X":"string"==typeof a?d.X(a):d.X(a[0],a[1]);break;case"S":"string"==typeof a?d.S(a):d.S(a[0],0===a[1]?void 0:a[1],3===a.length?a[2]:void 0);break;case"M":"string"==typeof a?d.M(a):d.M(a[0],a[1])}break;case 69:var n=(c=a._chunks).get(b);d=JSON.parse(d);var o=al();o.digest=d.digest,n?J(a,n,o):c.set(b,new D("rejected",null,o));break;case 84:(c=(a=a._chunks).get(b))&&"pending"!==c.status?c.reason.enqueueValue(d):a.set(b,new D("fulfilled",d,null));break;case 78:case 68:case 74:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.");case 82:ai(a,b,void 0);break;case 114:ai(a,b,"bytes");break;case 88:ak(a,b,!1);break;case 120:ak(a,b,!0);break;case 67:(a=a._chunks.get(b))&&"fulfilled"===a.status&&a.reason.close(""===d?'"$undefined"':d);break;default:(n=(c=a._chunks).get(b))?M(a,n,d):c.set(b,new D("resolved_model",d,a))}}function ap(a,b,c){for(var d=0,e=b._rowState,g=b._rowID,h=b._rowTag,i=b._rowLength,j=b._buffer,k=c.length;d<k;){var l=-1;switch(e){case 0:58===(l=c[d++])?e=1:g=g<<4|(96<l?l-87:l-48);continue;case 1:84===(e=c[d])||65===e||79===e||111===e||85===e||83===e||115===e||76===e||108===e||71===e||103===e||77===e||109===e||86===e?(h=e,e=2,d++):64<e&&91>e||35===e||114===e||120===e?(h=e,e=3,d++):(h=0,e=3);continue;case 2:44===(l=c[d++])?e=4:i=i<<4|(96<l?l-87:l-48);continue;case 3:l=c.indexOf(10,d);break;case 4:(l=d+i)>c.length&&(l=-1)}var m=c.byteOffset+d;if(-1<l)(function(a,b,c,d,e){switch(c){case 65:ag(a,b,am(d,e).buffer);return;case 79:an(a,b,d,e,Int8Array,1);return;case 111:ag(a,b,0===d.length?e:am(d,e));return;case 85:an(a,b,d,e,Uint8ClampedArray,1);return;case 83:an(a,b,d,e,Int16Array,2);return;case 115:an(a,b,d,e,Uint16Array,2);return;case 76:an(a,b,d,e,Int32Array,4);return;case 108:an(a,b,d,e,Uint32Array,4);return;case 71:an(a,b,d,e,Float32Array,4);return;case 103:an(a,b,d,e,Float64Array,8);return;case 77:an(a,b,d,e,BigInt64Array,8);return;case 109:an(a,b,d,e,BigUint64Array,8);return;case 86:an(a,b,d,e,DataView,1);return}for(var g=a._stringDecoder,h="",i=0;i<d.length;i++)h+=g.decode(d[i],f);ao(a,b,c,h+=g.decode(e))})(a,g,h,j,i=new Uint8Array(c.buffer,m,l-d)),d=l,3===e&&d++,i=g=h=e=0,j.length=0;else{a=new Uint8Array(c.buffer,m,c.byteLength-d),j.push(a),i-=a.byteLength;break}}b._rowState=e,b._rowID=g,b._rowTag=h,b._rowLength=i}function aq(a){R(a,Error("Connection closed."))}function ar(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.")}function as(a){return new ae(a.serverConsumerManifest.moduleMap,a.serverConsumerManifest.serverModuleMap,a.serverConsumerManifest.moduleLoading,ar,a.encodeFormAction,"string"==typeof a.nonce?a.nonce:void 0,a&&a.temporaryReferences?a.temporaryReferences:void 0)}function at(a,b){function c(b){R(a,b)}var d=af(),e=b.getReader();e.read().then(function b(f){var g=f.value;if(!f.done)return ap(a,d,g),e.read().then(b).catch(c);aq(a)}).catch(c)}function au(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.")}b.createFromFetch=function(a,b){var c=as(b);return a.then(function(a){at(c,a.body)},function(a){R(c,a)}),T(c,0)},b.createFromNodeStream=function(a,b,c){var d=new ae(b.moduleMap,b.serverModuleMap,b.moduleLoading,au,c?c.encodeFormAction:void 0,c&&"string"==typeof c.nonce?c.nonce:void 0,void 0),e=af();return a.on("data",function(a){if("string"==typeof a){for(var b=0,c=e._rowState,f=e._rowID,g=e._rowTag,h=e._rowLength,i=e._buffer,j=a.length;b<j;){var k=-1;switch(c){case 0:58===(k=a.charCodeAt(b++))?c=1:f=f<<4|(96<k?k-87:k-48);continue;case 1:84===(c=a.charCodeAt(b))||65===c||79===c||111===c||85===c||83===c||115===c||76===c||108===c||71===c||103===c||77===c||109===c||86===c?(g=c,c=2,b++):64<c&&91>c||114===c||120===c?(g=c,c=3,b++):(g=0,c=3);continue;case 2:44===(k=a.charCodeAt(b++))?c=4:h=h<<4|(96<k?k-87:k-48);continue;case 3:k=a.indexOf("\n",b);break;case 4:if(84!==g)throw Error("Binary RSC chunks cannot be encoded as strings. This is a bug in the wiring of the React streams.");if(h<a.length||a.length>3*h)throw Error("String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams.");k=a.length}if(-1<k){if(0<i.length)throw Error("String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams.");ao(d,f,g,b=a.slice(b,k)),b=k,3===c&&b++,h=f=g=c=0,i.length=0}else if(a.length!==b)throw Error("String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams.")}e._rowState=c,e._rowID=f,e._rowTag=g,e._rowLength=h}else ap(d,e,a)}),a.on("error",function(a){R(d,a)}),a.on("end",function(){return aq(d)}),T(d,0)},b.createFromReadableStream=function(a,b){return at(b=as(b),a),T(b,0)},b.createServerReference=function(a){function b(){var b=Array.prototype.slice.call(arguments);return ar(a,b)}return z(b,a,null,void 0),b},b.createTemporaryReferenceSet=function(){return new Map},b.encodeReply=function(a,b){return new Promise(function(c,d){var e=v(a,"",b&&b.temporaryReferences?b.temporaryReferences:void 0,c,d);if(b&&b.signal){var f=b.signal;if(f.aborted)e(f.reason);else{var g=function(){e(f.reason),f.removeEventListener("abort",g)};f.addEventListener("abort",g)}}})},b.registerServerReference=function(a,b,c){return z(a,b,null,c),a}},77630:(a,b,c)=>{"use strict";a.exports=c(71513)},78077:(a,b)=>{"use strict";function c(a){return"("===a[0]&&a.endsWith(")")}function d(a){return a.startsWith("@")&&"@children"!==a}function e(a,b){if(a.includes(f)){let a=JSON.stringify(b);return"{}"!==a?f+"?"+a:f}return a}Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{DEFAULT_SEGMENT_KEY:function(){return g},PAGE_SEGMENT_KEY:function(){return f},addSearchParamsIfPageSegment:function(){return e},isGroupSegment:function(){return c},isParallelRouteSegment:function(){return d}});let f="__PAGE__",g="__DEFAULT__"},81080:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{normalizeAppPath:function(){return f},normalizeRscURL:function(){return g}});let d=c(48105),e=c(78077);function f(a){return(0,d.ensureLeadingSlash)(a.split("/").reduce((a,b,c,d)=>!b||(0,e.isGroupSegment)(b)||"@"===b[0]||("page"===b||"route"===b)&&c===d.length-1?a:a+"/"+b,""))}function g(a){return a.replace(/\.rsc($|\?)/,"$1")}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=6730,exports.ids=[3657,6730],exports.modules={63657:(a,b,c)=>{c.d(b,{Cs:()=>n,getOAuthProvider:()=>s,isOAuthProviderId:()=>t});var d=c(73024),e=c(48161),f=c.n(e),g=c(76760),h=c.n(g),i=c(14126);let j=i.Ik({title:i.Yj().min(1).max(200),body:i.Yj().max(2e3).optional(),field:i.Yj().max(200).optional(),copy:i.Yj().max(2e3).optional(),choice:i.Yj().max(200).optional()}),k=i.Ik({id:i.Yj().min(1).max(64).regex(/^[a-z][a-z0-9-]*$/,"provider id must be kebab-case (e.g. google, dropbox)"),label:i.Yj().min(1).max(120),authorizeUrl:i.Yj().url(),tokenUrl:i.Yj().url(),defaultScopes:i.YO(i.Yj()).default([]),supportsPKCE:i.zM().default(!0),refreshTokenSupported:i.zM().default(!0),extraAuthorizeParams:i.g1(i.Yj(),i.Yj()).default({}),needsClientSecret:i.zM().default(!0),setupHint:i.Yj().default(""),consoleUrl:i.Yj().url(),setupSteps:i.YO(j).default([])}),l={google:{id:"google",label:"Google",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",defaultScopes:["openid","email","https://www.googleapis.com/auth/calendar"],supportsPKCE:!0,refreshTokenSupported:!0,extraAuthorizeParams:{access_type:"offline",prompt:"consent"},needsClientSecret:!0,setupHint:"If you haven't already — first enable the required API (Calendar/Gmail/Drive) under APIs & Services → Library.",consoleUrl:"https://console.cloud.google.com/apis/credentials",setupSteps:[{title:"Open Google Cloud Console → APIs & Services → Credentials."},{title:'Click "+ CREATE CREDENTIALS" → "OAuth client ID".'},{title:"Application type",choice:"Web application",body:'Not "Desktop" — Reflex uses a fixed localhost redirect.'},{title:'Name — anything, e.g. "Reflex".'},{title:"Authorized redirect URIs → ADD URI",field:"Authorized redirect URIs",copy:"http://localhost:3210/api/oauth/callback",body:"Exactly as shown, no trailing slash, http (not https)."},{title:"Hit CREATE → a popup will show the Client ID and Client Secret."},{title:'Copy both values here. (If lost — open the client in Credentials, use "Download JSON" or "Reset secret".)'},{title:"Before the first Authorize, make sure the required API is enabled: APIs & Services → Library → Google Calendar API → Enable (similarly for other services)."}]},github:{id:"github",label:"GitHub",authorizeUrl:"https://github.com/login/oauth/authorize",tokenUrl:"https://github.com/login/oauth/access_token",defaultScopes:["repo","read:user"],supportsPKCE:!1,refreshTokenSupported:!1,extraAuthorizeParams:{},needsClientSecret:!0,setupHint:"Personal OAuth Apps live in Settings → Developer settings.",consoleUrl:"https://github.com/settings/developers",setupSteps:[{title:"Open github.com/settings/developers → OAuth Apps."},{title:'Click "New OAuth App".'},{title:'Application name — anything, e.g. "Reflex".'},{title:"Homepage URL",field:"Homepage URL",copy:"http://localhost:3210"},{title:"Authorization callback URL",field:"Authorization callback URL",copy:"http://localhost:3210/api/oauth/callback"},{title:'Click "Register application".'},{title:'Copy "Client ID" from here → into Reflex.'},{title:'Click "Generate a new client secret", copy the value immediately (shown only once) → into Reflex.'}]},notion:{id:"notion",label:"Notion",authorizeUrl:"https://api.notion.com/v1/oauth/authorize",tokenUrl:"https://api.notion.com/v1/oauth/token",defaultScopes:[],supportsPKCE:!1,refreshTokenSupported:!1,extraAuthorizeParams:{owner:"user"},needsClientSecret:!0,setupHint:"Reflex uses a Public integration (with OAuth flow), not Internal.",consoleUrl:"https://www.notion.so/profile/integrations",setupSteps:[{title:'Open notion.so/profile/integrations → "+ New integration".'},{title:'Name — "Reflex".'},{title:"Associated workspace — your workspace."},{title:"Type",choice:"Public",body:"Internal doesn't fit — the OAuth flow needs a public integration."},{title:"Submit → integration is created. Go to its page."},{title:'Under "OAuth Domain & URIs" → Redirect URIs → Add URI',field:"Redirect URIs",copy:"http://localhost:3210/api/oauth/callback"},{title:"Save."},{title:'Under "Secrets", copy the OAuth client ID and OAuth client secret here.'}]},slack:{id:"slack",label:"Slack",authorizeUrl:"https://slack.com/oauth/v2/authorize",tokenUrl:"https://slack.com/api/oauth.v2.access",defaultScopes:["chat:write","channels:read"],supportsPKCE:!1,refreshTokenSupported:!0,extraAuthorizeParams:{},needsClientSecret:!0,setupHint:"Default scopes (chat:write, channels:read) can be extended in OAuth & Permissions.",consoleUrl:"https://api.slack.com/apps",setupSteps:[{title:'Open api.slack.com/apps → "Create New App" → "From scratch".'},{title:'App Name — "Reflex", pick your workspace → Create App.'},{title:'In the left panel open "OAuth & Permissions" → Redirect URLs → "Add New Redirect URL"',field:"Redirect URLs",copy:"http://localhost:3210/api/oauth/callback"},{title:"Save URLs."},{title:"Under Scopes → User Token Scopes add the required ones (chat:write, channels:read, etc. — from Reflex defaults)."},{title:'At the top of the page click Install App → grant access → you\'ll get Client ID and Client Secret under "Basic Information".'}]},linear:{id:"linear",label:"Linear",authorizeUrl:"https://linear.app/oauth/authorize",tokenUrl:"https://api.linear.app/oauth/token",defaultScopes:["read","write"],supportsPKCE:!1,refreshTokenSupported:!0,extraAuthorizeParams:{},needsClientSecret:!0,setupHint:"A personal OAuth application is tied to your workspace.",consoleUrl:"https://linear.app/settings/api/applications/new",setupSteps:[{title:"Open linear.app/settings/api/applications/new (Settings → API → OAuth applications → Create new)."},{title:'Name — "Reflex", description anything.'},{title:"Developer URL",field:"Developer URL",copy:"http://localhost:3210"},{title:"Callback URLs",field:"Callback URLs",copy:"http://localhost:3210/api/oauth/callback"},{title:"Scopes — check read + write (or whichever you need: issues:create, etc.)."},{title:"Submit → copy Client ID + Client Secret here."}]}},m=Object.keys(l),n="http://localhost:3210/api/oauth/callback",o=h().join(f().homedir(),".reflex","oauth","providers.json"),p=i.Ik({version:i.eu(1),providers:i.YO(k)});async function q(){try{let a=await d.promises.readFile(o,"utf8"),b=p.safeParse(JSON.parse(a));if(!b.success)return{version:1,providers:[]};return b.data}catch{return{version:1,providers:[]}}}async function r(){let a=await q(),b=new Set(a.providers.map(a=>a.id)),c=[];for(let a of m)b.has(a)||c.push({def:l[a],origin:"builtin"});for(let b of a.providers)c.push({def:b,origin:"user"});return c}async function s(a){let b=await r();return b.find(b=>b.def.id===a)?.def??null}async function t(a){return await s(a)!==null}},96730:(a,b,c)=>{c.d(b,{Dt:()=>
|
|
1
|
+
"use strict";exports.id=6730,exports.ids=[3657,6730],exports.modules={63657:(a,b,c)=>{c.d(b,{Cs:()=>n,getOAuthProvider:()=>s,isOAuthProviderId:()=>t});var d=c(73024),e=c(48161),f=c.n(e),g=c(76760),h=c.n(g),i=c(14126);let j=i.Ik({title:i.Yj().min(1).max(200),body:i.Yj().max(2e3).optional(),field:i.Yj().max(200).optional(),copy:i.Yj().max(2e3).optional(),choice:i.Yj().max(200).optional()}),k=i.Ik({id:i.Yj().min(1).max(64).regex(/^[a-z][a-z0-9-]*$/,"provider id must be kebab-case (e.g. google, dropbox)"),label:i.Yj().min(1).max(120),authorizeUrl:i.Yj().url(),tokenUrl:i.Yj().url(),defaultScopes:i.YO(i.Yj()).default([]),supportsPKCE:i.zM().default(!0),refreshTokenSupported:i.zM().default(!0),extraAuthorizeParams:i.g1(i.Yj(),i.Yj()).default({}),needsClientSecret:i.zM().default(!0),setupHint:i.Yj().default(""),consoleUrl:i.Yj().url(),setupSteps:i.YO(j).default([])}),l={google:{id:"google",label:"Google",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",defaultScopes:["openid","email","https://www.googleapis.com/auth/calendar"],supportsPKCE:!0,refreshTokenSupported:!0,extraAuthorizeParams:{access_type:"offline",prompt:"consent"},needsClientSecret:!0,setupHint:"If you haven't already — first enable the required API (Calendar/Gmail/Drive) under APIs & Services → Library.",consoleUrl:"https://console.cloud.google.com/apis/credentials",setupSteps:[{title:"Open Google Cloud Console → APIs & Services → Credentials."},{title:'Click "+ CREATE CREDENTIALS" → "OAuth client ID".'},{title:"Application type",choice:"Web application",body:'Not "Desktop" — Reflex uses a fixed localhost redirect.'},{title:'Name — anything, e.g. "Reflex".'},{title:"Authorized redirect URIs → ADD URI",field:"Authorized redirect URIs",copy:"http://localhost:3210/api/oauth/callback",body:"Exactly as shown, no trailing slash, http (not https)."},{title:"Hit CREATE → a popup will show the Client ID and Client Secret."},{title:'Copy both values here. (If lost — open the client in Credentials, use "Download JSON" or "Reset secret".)'},{title:"Before the first Authorize, make sure the required API is enabled: APIs & Services → Library → Google Calendar API → Enable (similarly for other services)."}]},github:{id:"github",label:"GitHub",authorizeUrl:"https://github.com/login/oauth/authorize",tokenUrl:"https://github.com/login/oauth/access_token",defaultScopes:["repo","read:user"],supportsPKCE:!1,refreshTokenSupported:!1,extraAuthorizeParams:{},needsClientSecret:!0,setupHint:"Personal OAuth Apps live in Settings → Developer settings.",consoleUrl:"https://github.com/settings/developers",setupSteps:[{title:"Open github.com/settings/developers → OAuth Apps."},{title:'Click "New OAuth App".'},{title:'Application name — anything, e.g. "Reflex".'},{title:"Homepage URL",field:"Homepage URL",copy:"http://localhost:3210"},{title:"Authorization callback URL",field:"Authorization callback URL",copy:"http://localhost:3210/api/oauth/callback"},{title:'Click "Register application".'},{title:'Copy "Client ID" from here → into Reflex.'},{title:'Click "Generate a new client secret", copy the value immediately (shown only once) → into Reflex.'}]},notion:{id:"notion",label:"Notion",authorizeUrl:"https://api.notion.com/v1/oauth/authorize",tokenUrl:"https://api.notion.com/v1/oauth/token",defaultScopes:[],supportsPKCE:!1,refreshTokenSupported:!1,extraAuthorizeParams:{owner:"user"},needsClientSecret:!0,setupHint:"Reflex uses a Public integration (with OAuth flow), not Internal.",consoleUrl:"https://www.notion.so/profile/integrations",setupSteps:[{title:'Open notion.so/profile/integrations → "+ New integration".'},{title:'Name — "Reflex".'},{title:"Associated workspace — your workspace."},{title:"Type",choice:"Public",body:"Internal doesn't fit — the OAuth flow needs a public integration."},{title:"Submit → integration is created. Go to its page."},{title:'Under "OAuth Domain & URIs" → Redirect URIs → Add URI',field:"Redirect URIs",copy:"http://localhost:3210/api/oauth/callback"},{title:"Save."},{title:'Under "Secrets", copy the OAuth client ID and OAuth client secret here.'}]},slack:{id:"slack",label:"Slack",authorizeUrl:"https://slack.com/oauth/v2/authorize",tokenUrl:"https://slack.com/api/oauth.v2.access",defaultScopes:["chat:write","channels:read"],supportsPKCE:!1,refreshTokenSupported:!0,extraAuthorizeParams:{},needsClientSecret:!0,setupHint:"Default scopes (chat:write, channels:read) can be extended in OAuth & Permissions.",consoleUrl:"https://api.slack.com/apps",setupSteps:[{title:'Open api.slack.com/apps → "Create New App" → "From scratch".'},{title:'App Name — "Reflex", pick your workspace → Create App.'},{title:'In the left panel open "OAuth & Permissions" → Redirect URLs → "Add New Redirect URL"',field:"Redirect URLs",copy:"http://localhost:3210/api/oauth/callback"},{title:"Save URLs."},{title:"Under Scopes → User Token Scopes add the required ones (chat:write, channels:read, etc. — from Reflex defaults)."},{title:'At the top of the page click Install App → grant access → you\'ll get Client ID and Client Secret under "Basic Information".'}]},linear:{id:"linear",label:"Linear",authorizeUrl:"https://linear.app/oauth/authorize",tokenUrl:"https://api.linear.app/oauth/token",defaultScopes:["read","write"],supportsPKCE:!1,refreshTokenSupported:!0,extraAuthorizeParams:{},needsClientSecret:!0,setupHint:"A personal OAuth application is tied to your workspace.",consoleUrl:"https://linear.app/settings/api/applications/new",setupSteps:[{title:"Open linear.app/settings/api/applications/new (Settings → API → OAuth applications → Create new)."},{title:'Name — "Reflex", description anything.'},{title:"Developer URL",field:"Developer URL",copy:"http://localhost:3210"},{title:"Callback URLs",field:"Callback URLs",copy:"http://localhost:3210/api/oauth/callback"},{title:"Scopes — check read + write (or whichever you need: issues:create, etc.)."},{title:"Submit → copy Client ID + Client Secret here."}]}},m=Object.keys(l),n="http://localhost:3210/api/oauth/callback",o=h().join(f().homedir(),".reflex","oauth","providers.json"),p=i.Ik({version:i.eu(1),providers:i.YO(k)});async function q(){try{let a=await d.promises.readFile(o,"utf8"),b=p.safeParse(JSON.parse(a));if(!b.success)return{version:1,providers:[]};return b.data}catch{return{version:1,providers:[]}}}async function r(){let a=await q(),b=new Set(a.providers.map(a=>a.id)),c=[];for(let a of m)b.has(a)||c.push({def:l[a],origin:"builtin"});for(let b of a.providers)c.push({def:b,origin:"user"});return c}async function s(a){let b=await r();return b.find(b=>b.def.id===a)?.def??null}async function t(a){return await s(a)!==null}},96730:(a,b,c)=>{c.d(b,{Dt:()=>p,getOAuthTokens:()=>q,tY:()=>o});var d=c(73024),e=c(76760),f=c.n(e);c(63657);var g=c(29163),h=c(32068);let i=f().join((0,g._)(),"oauth"),j=f().join(i,"clients"),k=f().join(i,"tokens");function l(a){return f().join(k,`${a}.json`)}async function m(a,b){await (0,h.An)(a,b,{mode:384})}async function n(a){try{let b=await d.promises.readFile(a,"utf8");return JSON.parse(b)}catch{return null}}async function o(a){return n(f().join(j,`${a}.json`))}async function p(a,b){await m(l(a),{...b,updatedAt:new Date().toISOString()})}async function q(a){return n(l(a))}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=6852,exports.ids=[6852],exports.modules={76852:(a,b,c)=>{c.d(b,{createGitGraphServices:()=>d.b});var d=c(7267);c(43283)}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=6970,exports.ids=[6970],exports.modules={879:(a,b,c)=>{c.d(b,{G:()=>k});var d=c(73024),e=c(76760),f=c.n(e),g=c(55136),h=c.n(g),i=c(54287);class j{constructor(a,b){this.root=a,this.layers=b}static async create(a){return new j(a,[]).enter(a)}async enter(a){let b,c=f().join(a,i.KZ);try{b=await d.promises.readFile(c,"utf8")}catch{return this}let e=h()().add(b);return new j(this.root,[...this.layers,{dir:a,ig:e}])}ignores(a){let b=f().basename(a);if(i.Lj.has(b))return!0;for(let{dir:b,ig:c}of this.layers){let d=f().relative(b,a);if(!(!d||d.startsWith(".."))&&c.ignores(d))return!0}return!1}}async function*k(a,b={}){let{maxDepth:c=1/0,followSymlinks:d=!1}=b,e=f().resolve(a),g=await j.create(e);yield{abs:e,rel:".",isDir:!0},yield*l(e,e,g,0,c,d)}async function*l(a,b,c,e,g,h){let i;if(!(e>=g)){try{i=await d.promises.readdir(b,{withFileTypes:!0})}catch{return}for(let d of(i.sort((a,b)=>a.name.localeCompare(b.name)),i)){var j,k;let i=f().join(b,d.name);if(c.ignores(i))continue;let n=d.isSymbolicLink();if(n&&!h)continue;let o=d.isDirectory()||n&&await m(i),p=(j=a,k=i,f().relative(j,k).split(f().sep).join("/"));if(yield{abs:i,rel:p,isDir:o},o){let b=await c.enter(i);yield*l(a,i,b,e+1,g,h)}}}}async function m(a){try{return(await d.promises.stat(a)).isDirectory()}catch{return!1}}},4168:(a,b,c)=>{c.d(b,{S:()=>j});var d=c(73745);c(66493);var e=c(76760),f=c.n(e),g=c(53905),h=c(54287),i=c(879);async function j(a,b){try{let d=await (0,g.getRoot)(a);if(!d)return{ok:!1,error:"Root not found"};let e=(b??"").toLowerCase().trim(),j=[];try{let{listUtilities:b}=await Promise.resolve().then(c.bind(c,8118));for(let c of(await b({rootId:a})))j.push({kind:"utility",relPath:`util:${c.scope}/${c.manifest.id}`,absPath:"",label:`${c.manifest.name} (${c.scope})`,parent:"utilities"})}catch{}for await(let a of(0,i.G)((0,h.FF)(d.path))){if(a.isDir||!a.rel.toLowerCase().endsWith(".md")||a.rel.startsWith("topics/")||a.rel.startsWith("attachments/"))continue;let b=`${h.fW}/${a.rel}`;j.push({kind:"kb",relPath:b,absPath:a.abs,label:a.rel,parent:"."===f().dirname(a.rel)?h.fW:`${h.fW}/${f().dirname(a.rel)}`})}for await(let a of(0,i.G)(d.path))a.isDir||j.push({kind:"file",relPath:a.rel,absPath:a.abs,label:a.rel,parent:"."===f().dirname(a.rel)?"":f().dirname(a.rel)});let k=e?j.filter(a=>{let b=a.relPath.toLowerCase();return f().basename(a.relPath).toLowerCase().includes(e)||b.includes(e)}):j,l={utility:0,kb:1,file:2};return k.sort((a,b)=>{if(a.kind!==b.kind)return l[a.kind]-l[b.kind];if(e){let c=f().basename(a.label).toLowerCase(),d=f().basename(b.label).toLowerCase(),g=+!c.startsWith(e),h=+!d.startsWith(e);if(g!==h)return g-h}return a.relPath.localeCompare(b.relPath)}),{ok:!0,items:k.slice(0,30)}}catch(a){return{ok:!1,error:a instanceof Error?a.message:String(a)}}}(0,c(63781).D)([j]),(0,d.A)(j,"6021d31c4a7ff556e9c18ed329ef8e497ba84bf17e",null)},8836:(a,b,c)=>{c.d(b,{E:()=>g});var d=c(64173),e=c(71813),f=c(69552);function g({label:a,headerRight:b,children:c}){let g=(0,e.c)("roots"),h=a??g("commandBarFrame.label");return(0,d.jsx)("div",{className:"border-t bg-background",children:(0,d.jsx)("div",{className:"mx-auto max-w-3xl px-6 py-5",children:(0,d.jsx)("div",{className:"reflex-gradient rounded-2xl p-[2px] shadow-[0_8px_40px_-12px_oklch(0.55_0.2_290/0.45)]",children:(0,d.jsxs)("div",{className:"rounded-[14px] bg-background/85 backdrop-blur-xl px-5 py-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,d.jsx)("span",{className:"reflex-gradient inline-flex h-6 w-6 items-center justify-center rounded-full text-white shadow-sm",children:(0,d.jsx)(f.A,{className:"h-3.5 w-3.5"})}),(0,d.jsx)("span",{className:"text-[11px] uppercase tracking-[0.18em] text-muted-foreground",children:h}),b&&(0,d.jsx)("span",{className:"ml-auto flex items-center gap-1",children:b})]}),c]})})})})}},26290:(a,b,c)=>{c.d(b,{cn:()=>f});var d=c(83243),e=c(86103);function f(...a){return(0,e.QP)((0,d.$)(a))}},45477:(a,b,c)=>{c.d(b,{T:()=>f});var d=c(64173);c(17240);var e=c(91344);function f({className:a,...b}){return(0,d.jsx)("textarea",{"data-slot":"textarea",className:(0,e.cn)("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",a),...b})}},63337:(a,b,c)=>{c.d(b,{x:()=>h});var d=c(73745);c(66493);var e=c(49410),f=c(8118),g=c(53905);async function h(a){try{let b=(a.query??"").trim().toLowerCase();switch(a.commandId){case"skill":{let c=a.rootId?await (0,g.getRoot)(a.rootId):null,d=(await (0,e.bG)(c?.path,a.rootId)).map(a=>({value:a.id,label:a.title,description:`${"project"===a.scope?"[project] ":"global"===a.scope?"[global] ":""}${a.description}`})).filter(a=>i(a,b));return{ok:!0,supported:!0,items:d}}case"util":{let c=(await (0,f.listUtilities)(a.rootId?{rootId:a.rootId}:{})).map(a=>({value:a.manifest.id,label:a.manifest.name,description:a.manifest.description}));return{ok:!0,supported:!0,items:c.filter(a=>i(a,b))}}default:return{ok:!0,supported:!1}}}catch(a){return{ok:!1,error:a instanceof Error?a.message:String(a)}}}function i(a,b){return!b||a.value.toLowerCase().includes(b)||a.label.toLowerCase().includes(b)||(a.description?.toLowerCase().includes(b)??!1)}(0,c(63781).D)([h]),(0,d.A)(h,"40f0d46ad4eba37c63fbaf8a14f79dc8cae48d43aa",null)},67248:(a,b,c)=>{c.d(b,{E:()=>i});var d=c(63003);c(34750);var e=c(86209),f=c(65715),g=c(26290);let h=(0,e.F)("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function i({className:a,variant:b="default",asChild:c=!1,...e}){let i=c?f.bL:"span";return(0,d.jsx)(i,{"data-slot":"badge","data-variant":b,className:(0,g.cn)(h({variant:b}),a),...e})}},72901:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{LL:()=>v,Xt:()=>z,ZC:()=>A,b2:()=>u,qO:()=>t,wd:()=>y});var e=c(73745);c(66493);var f=c(73024),g=c(76760),h=c.n(g),i=c(65326),j=c(53905),k=c(54287),l=c(56942),m=c(5492),n=c(13415),o=c(93554),p=c(49410),q=c(96921),r=c(63781),s=a([n,o]);async function t(a,b){try{let c=b.trim();if(!c)return{ok:!1,error:"Empty — nothing to remember."};let d=await (0,j.getRoot)(a);if(!d)return{ok:!1,error:"Root not found"};let e=c.split(/\r?\n/,1)[0].trim(),f=e.length>80?e.slice(0,77).trimEnd()+"…":e,g=await (0,l.j)({rootPath:d.path,directive:{kind:"note",title:f,body:c}});return(0,i.revalidatePath)(`/roots/${a}`),{ok:!0,message:`Saved to ${g.relPath}`}}catch(a){return{ok:!1,error:a instanceof Error?a.message:String(a)}}}async function u(a,b){let c=await (0,n.L4)(a,b);return c.ok?{ok:!0,redirectTo:`/roots/${a}`,message:"Topic deleted"}:{ok:!1,error:c.error??"Failed"}}async function v(a){try{let b=await (0,j.getRoot)(a);if(!b)return{ok:!1,error:"Root not found"};let c=(0,k.FF)(b.path);for(let a of(await (0,m.hk)(b.path)))await o.z.stopTopic(a.meta.id).catch(()=>void 0);return await w(h().join(c,"widgets")),await w(h().join(c,"dashboard-layout.json")),await w(h().join(c,"topics")),await x(c),(0,i.revalidatePath)(`/roots/${a}`),{ok:!0,redirectTo:`/roots/${a}`,message:"Project cleared. Starting fresh."}}catch(a){return{ok:!1,error:a instanceof Error?a.message:String(a)}}}async function w(a){try{await f.promises.rm(a,{recursive:!0,force:!0})}catch{}}async function x(a){let b;try{b=await f.promises.readdir(a,{withFileTypes:!0})}catch{return}for(let c of b){let b=h().join(a,c.name);if(c.isDirectory()){await x(b);try{let a=await f.promises.readdir(b);0===a.length&&await f.promises.rmdir(b)}catch{}continue}c.name.toLowerCase().endsWith(".md")&&await f.promises.unlink(b).catch(()=>void 0)}}async function y(){let a=await (0,p.bG)();return{ok:!0,commands:q.Lo,skills:a}}async function z(a){let{collectExtensions:b}=await Promise.resolve().then(c.bind(c,35961)),d=(await b(a.rootId?{rootId:a.rootId}:{})).slashCommands.map(a=>({id:`${a.utility.utilityId}:${a.id}`,trigger:a.trigger,label:a.label,description:a.description,kind:a.kind,usage:a.usage,allowEmpty:a.allowEmpty,icon:a.icon})),e=new Set(q.Lo.map(a=>a.trigger)),f=[...q.Lo,...d.filter(a=>!e.has(a.trigger))];return{ok:!0,commands:f}}async function A(a,b){let{listUtilities:d}=await Promise.resolve().then(c.bind(c,8118)),e=await d({rootId:a}),f=b.trim().toLowerCase(),g=e.map(a=>({id:a.manifest.id,name:a.manifest.name,scope:a.scope,rootId:a.rootId})),h=a=>{let b=a.rootId?`?rootId=${encodeURIComponent(a.rootId)}`:"";return`/utilities/${a.scope}/${a.id}${b}`};if(!f)return 0===g.length?{ok:!1,error:"No mini-apps installed yet."}:{ok:!0,kind:"choices",items:g.map(a=>({url:h(a),id:a.id,name:a.name,scope:a.scope}))};let i=g.find(a=>a.id.toLowerCase()===f);if(i)return{ok:!0,kind:"redirect",url:h(i)};let j=g.filter(a=>a.id.toLowerCase().includes(f)||a.name.toLowerCase().includes(f));return 1===j.length?{ok:!0,kind:"redirect",url:h(j[0])}:0===j.length?{ok:!1,error:`Nothing found for "${b}". Installed: ${g.length}.`}:{ok:!0,kind:"choices",items:j.map(a=>({url:h(a),id:a.id,name:a.name,scope:a.scope}))}}[n,o]=s.then?(await s)():s,(0,r.D)([t,u,v,y,z,A]),(0,e.A)(t,"607722dea9689cc65b5c9adb3143ce0d8c8a76d41d",null),(0,e.A)(u,"607adf875c0f89e40dda2d72933c5a39df82448fd9",null),(0,e.A)(v,"4042258c18f5a0d316db61ffcc0088673fbae860db",null),(0,e.A)(y,"0067c3f6c4f813b794aac6bfc09c5e8f20b786e651",null),(0,e.A)(z,"402d53a1267cf365b0fab688b10703cf0f43536431",null),(0,e.A)(A,"60926d9b7cd40c84762f5b603455c5b6a9665a097b",null),d()}catch(a){d(a)}})},78887:(a,b,c)=>{c.d(b,{L:()=>O});var d=c(64173),e=c(17240),f=c(71813),g=c(54249),h=c(75430),i=c(34719),j=c(56189),k=c(41856),l=c(33120),m=c(69552),n=c(97338),o=c(25299),p=c(63387),q=c(53834),r=c(97162),s=c(62261),t=c(77311),u=c(25436),v=c(24555),w=c(68669),x=c(79145),y=c(66979),z=c(87671),A=c(44052),B=c(20583),C=c(45477),D=c(91344),E=c(3265);let F=(0,E.createServerReference)("6021d31c4a7ff556e9c18ed329ef8e497ba84bf17e",E.callServer,void 0,E.findSourceMapURL,"searchMentionsAction"),G=[{id:"plan",trigger:"plan",label:"/plan",description:"Show the plan first — Reflex lays out the steps and waits for approval.",kind:"agent-mode",usage:"/plan <task>",icon:"ListChecks"},{id:"goal",trigger:"goal",label:"/goal",description:"Set a goal — Reflex will work toward it on its own, without reminders.",kind:"agent-mode",usage:"/goal <what to achieve>",icon:"Target"},{id:"research",trigger:"research",label:"/research",description:"Deep research on a topic — web search + summary with sources.",kind:"agent-mode",usage:"/research <topic>",icon:"Telescope"},{id:"widget",trigger:"widget",label:"/widget",description:"Create a card on the space dashboard.",kind:"agent-mode",usage:"/widget <what to show>",icon:"LayoutGrid"},{id:"workflow",trigger:"workflow",label:"/workflow",description:"Build a recipe — linear step-based automation for the task.",kind:"agent-mode",usage:"/workflow <what to automate>",icon:"Workflow"},{id:"new-utility",trigger:"new-utility",label:"/new-utility",description:"Build a Reflex mini-app (utility) — TypeScript, runs inside Reflex.",kind:"agent-mode",usage:"/new-utility <name — what it does>",icon:"PackagePlus"},{id:"distill",trigger:"distill",label:"/distill",description:"Pull a URL into the KB — extract key facts, action items, and links to related notes.",kind:"agent-mode",usage:"/distill <url> [focus]",icon:"BookOpenCheck"},{id:"practice",trigger:"practice",label:"/practice",description:"Roleplay a tough conversation — Reflex plays the counterpart and coaches you between turns.",kind:"agent-mode",usage:"/practice <scenario>",icon:"MessagesSquare"},{id:"reflect",trigger:"reflect",label:"/reflect",description:"Daily check-in — three questions adapted to your recent entries, saved as a journal note.",kind:"agent-mode",usage:"/reflect",allowEmpty:!0,icon:"Sunrise"},{id:"remember",trigger:"remember",label:"/remember",description:"Save a note — straight into memory, no AI involved.",kind:"direct",usage:"/remember <what to remember>",icon:"BookmarkPlus"},{id:"mcp",trigger:"mcp",label:"/mcp",description:"Connect an external service (setup wizard opens in chat).",kind:"agent-mode",usage:"/mcp <what you need>",icon:"PackagePlus"},{id:"skill",trigger:"skill",label:"/skill",description:"Attach a role — a ready-made instruction set for this conversation.",kind:"agent-mode",usage:"/skill <role-id> [prompt]",icon:"Sparkles"},{id:"delete-topic",trigger:"delete-topic",label:"/delete-topic",description:"Delete this conversation (with confirmation).",kind:"direct",usage:"/delete-topic",requiresConfirm:!0,allowEmpty:!0,icon:"Trash2"},{id:"clear-project",trigger:"clear-project",label:"/clear-project",description:"DANGER: clear the space — all conversations, cards, memory. Double confirmation.",kind:"direct",usage:"/clear-project",requiresConfirm:!0,allowEmpty:!0,icon:"AlertOctagon"},{id:"util",trigger:"util",label:"/util",description:"Open a mini-app (by partial name or from the list).",kind:"direct",usage:"/util <partial name or id>",allowEmpty:!0,icon:"Boxes"},{id:"help",trigger:"help",label:"/help",description:"List available commands.",kind:"direct",usage:"/help",allowEmpty:!0,icon:"HelpCircle"}],H=(0,E.createServerReference)("40f0d46ad4eba37c63fbaf8a14f79dc8cae48d43aa",E.callServer,void 0,E.findSourceMapURL,"listCommandArgsAction");E.callServer,E.findSourceMapURL;let I=(0,E.createServerReference)("607722dea9689cc65b5c9adb3143ce0d8c8a76d41d",E.callServer,void 0,E.findSourceMapURL,"rememberAction"),J=(0,E.createServerReference)("607adf875c0f89e40dda2d72933c5a39df82448fd9",E.callServer,void 0,E.findSourceMapURL,"deleteCurrentTopicCommand"),K=(0,E.createServerReference)("60926d9b7cd40c84762f5b603455c5b6a9665a097b",E.callServer,void 0,E.findSourceMapURL,"openUtilityAction"),L=(0,E.createServerReference)("4042258c18f5a0d316db61ffcc0088673fbae860db",E.callServer,void 0,E.findSourceMapURL,"clearProjectAction");var M=c(88724);let N={ListChecks:g.A,Target:h.A,Telescope:i.A,LayoutGrid:j.A,BookmarkPlus:k.A,PackagePlus:l.A,Sparkles:m.A,Trash2:n.A,AlertOctagon:o.A,HelpCircle:p.A,Workflow:q.A,Boxes:r.A};function O({rootId:a,topicId:b,placeholder:c,submitLabel:g,pendingLabel:h,SubmitIcon:i,disabled:j,onSubmit:k,active:l,onStop:m,clarifyLabel:n,stopLabel:o}){let p=(0,f.c)("roots"),q=n??p("chatInputForm.clarifyLabel"),r=o??p("chatInputForm.stopLabel"),v=(0,z.useRouter)(),[w,x]=(0,e.useState)(""),[y,E]=(0,e.useState)([]),[I,J]=(0,e.useState)(!1),[K,L]=(0,e.useState)(!1),[M,N]=(0,e.useState)(!1),[O,U]=(0,e.useState)(G),V=(0,e.useRef)(null),W=(0,e.useRef)(null),[X,Y]=(0,e.useState)(null),[Z,$]=(0,e.useState)([]),[_,aa]=(0,e.useState)(0),[ab,ac]=(0,e.useState)(!1),ad=(0,e.useRef)(0),[ae,af]=(0,e.useState)(null),[ag,ah]=(0,e.useState)(null),ai=(0,e.useRef)(0);(0,e.useCallback)(()=>{let a=V.current;a&&(a.style.height="auto",a.style.height=Math.min(a.scrollHeight,240)+"px")},[]);let aj=(0,e.useCallback)((b,c)=>{let d=c;for(;d>0;){let a=b[d-1];if("@"===a){d-=1;break}if(/\s/.test(a)){d=-1;break}d-=1}if(d<0||"@"!==b[d]||d>0&&!/\s/.test(b[d-1])){Y(null),$([]);return}let e=b.slice(d+1,c);Y({start:d,end:c}),aa(0),ac(!0);let f=++ad.current;(async()=>{let b=await F(a,e);ad.current===f&&(ac(!1),$(b.ok?b.items:[]))})()},[a]),ak=(0,e.useCallback)(()=>{Y(null),$([]),ad.current++},[]),al=(0,e.useCallback)((b,c)=>{if(!b.startsWith("/")){af(null),ah(null);return}let d=b.indexOf(" ");if(d<0){ah(null);let a=b.slice(1).toLowerCase(),c=O.filter(b=>b.trigger.startsWith(a)||b.label.toLowerCase().includes(a)||b.description.toLowerCase().includes(a));af(c.length?{items:c,index:0}:null);return}af(null);let e=b.slice(1,d),f=O.find(a=>a.trigger===e);if(!f)return void ah(null);let g=d+1,h=c>=g?c:b.length;if(b.slice(h).indexOf(" ")>=0)return void ah(null);let i=b.slice(g,h),j=++ai.current;ah(a=>({cmd:f,items:a?.cmd.id===f.id?a.items:[],index:0,start:g,end:h,loading:!0})),(async()=>{let b=await H({commandId:f.id,query:i,rootId:a});if(ai.current===j){if(!b.ok||!b.supported||0===b.items.length)return ah(null);ah({cmd:f,items:b.items,index:0,start:g,end:h,loading:!1})}})()},[a,O]),am=(0,e.useCallback)(()=>{af(null),ah(null)},[]),an=(0,e.useCallback)(a=>{let b=V.current;ah(c=>{if(!c)return null;let d=w.slice(0,c.start),e=w.slice(c.end),f=`${a.value} `;x(d+f+e);let g=d.length+f.length;return requestAnimationFrame(()=>{b&&(b.focus(),b.setSelectionRange(g,g))}),null})},[w]),ao=(0,e.useCallback)(a=>{let b=V.current,c=`/${a.trigger}${a.allowEmpty&&"direct"===a.kind?"":" "}`;x(c),af(null),requestAnimationFrame(()=>{b&&(b.focus(),b.setSelectionRange(c.length,c.length))})},[]),ap=(0,e.useCallback)(a=>{let b=V.current;if(!b||!X)return;let c=w.slice(0,X.start),d=w.slice(X.end),e=`@${a.relPath} `;x(c+e+d),ak();let f=c.length+e.length;requestAnimationFrame(()=>{b.focus(),b.setSelectionRange(f,f)})},[w,X,ak]),aq=(0,e.useCallback)(async b=>{if(0!==b.length){J(!0);try{let c=new FormData;for(let a of b)c.append("files",a);let d=await fetch(`/api/roots/${a}/attachments`,{method:"POST",body:c});if(!d.ok){let a=await d.json().catch(()=>({}));A.oR.error(a.error??p("chatInputForm.uploadFailed",{status:d.status}));return}let e=await d.json();E(a=>[...a,...e.files])}catch(a){A.oR.error(a instanceof Error?a.message:String(a))}finally{J(!1)}}},[a]),ar=w.trim().length>0||y.length>0,as=l&&m?ar?"clarify":"stop":"send",at=(0,e.useCallback)(async()=>{if(K)return;if("stop"===as){if(!m)return;L(!0);try{await m()}finally{L(!1)}return}let c=w.trim();if(!c&&0===y.length||j&&"send"===as)return;let d=function(a,b=[]){let c=a.trim();if(!c.startsWith("/"))return null;let d=/^\/([a-z][a-z0-9-]*)(?:\s+([\s\S]*))?$/.exec(c);if(!d)return null;let e=d[1],f=G.find(a=>a.trigger===e)??null??b.find(a=>a.trigger===e);return f?{def:f,payload:(d[2]??"").trim()}:null}(c);if(d&&"direct"===d.def.kind){L(!0);try{await P({cmd:d.def,payload:d.payload,rootId:a,topicId:b,router:v,t:p}),x("")}finally{L(!1)}return}L(!0);try{"clarify"===as&&m&&await m(),await k({message:c,attachments:y})&&(x(""),E([]))}finally{L(!1)}},[w,y,K,j,as,m,k,a,b,v,p]),au=!K&&!I&&("stop"===as||ar&&(!j||"clarify"===as));return(0,d.jsxs)("form",{onSubmit:a=>{a.preventDefault(),at()},onDragEnter:a=>{Array.from(a.dataTransfer.types).includes("Files")&&(a.preventDefault(),N(!0))},onDragOver:a=>{Array.from(a.dataTransfer.types).includes("Files")&&(a.preventDefault(),N(!0))},onDragLeave:a=>{a.currentTarget.contains(a.relatedTarget)||N(!1)},onDrop:a=>{a.preventDefault(),N(!1);let b=Array.from(a.dataTransfer.files);b.length>0&&aq(b)},className:(0,D.cn)("space-y-2 rounded-md transition-colors",M&&"ring-2 ring-ring/60 bg-accent/40"),children:[y.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:y.map((a,b)=>(0,d.jsx)(S,{attachment:a,onRemove:()=>E(b=>b.filter(b=>b!==a))},a.absPath+b))}),(0,d.jsxs)("div",{className:"flex items-end gap-2",children:[(0,d.jsxs)("div",{className:"relative flex-1",children:[(0,d.jsx)(C.T,{ref:V,value:w,onChange:a=>{x(a.target.value),aj(a.target.value,a.target.selectionStart),al(a.target.value,a.target.selectionStart)},onKeyUp:a=>{let b=a.currentTarget;aj(b.value,b.selectionStart),al(b.value,b.selectionStart)},onClick:a=>{let b=a.currentTarget;aj(b.value,b.selectionStart),al(b.value,b.selectionStart)},onBlur:()=>{setTimeout(()=>{ak(),am()},150)},onKeyDown:a=>{if(ae){if("ArrowDown"===a.key){a.preventDefault(),af(a=>a?{...a,index:Math.min(a.items.length-1,a.index+1)}:null);return}if("ArrowUp"===a.key){a.preventDefault(),af(a=>a?{...a,index:Math.max(0,a.index-1)}:null);return}if("Tab"===a.key){a.preventDefault();let b=ae.items[ae.index];b&&ao(b);return}if("Escape"===a.key){a.preventDefault(),am();return}}if(ag&&ag.items.length>0){if("ArrowDown"===a.key){a.preventDefault(),ah(a=>a?{...a,index:Math.min(a.items.length-1,a.index+1)}:null);return}if("ArrowUp"===a.key){a.preventDefault(),ah(a=>a?{...a,index:Math.max(0,a.index-1)}:null);return}if("Tab"===a.key){a.preventDefault();let b=ag.items[ag.index];b&&an(b);return}if("Escape"===a.key){a.preventDefault(),ah(null);return}}if(X&&Z.length>0){if("ArrowDown"===a.key){a.preventDefault(),aa(a=>Math.min(Z.length-1,a+1));return}if("ArrowUp"===a.key){a.preventDefault(),aa(a=>Math.max(0,a-1));return}if("Enter"===a.key||"Tab"===a.key){a.preventDefault();let b=Z[_];b&&ap(b);return}if("Escape"===a.key){a.preventDefault(),ak();return}}"Enter"!==a.key||a.shiftKey||a.nativeEvent.isComposing||(a.preventDefault(),at())},onPaste:a=>{let b=Array.from(a.clipboardData.files);b.length>0&&(a.preventDefault(),aq(b))},placeholder:c,rows:1,disabled:j||K,className:"resize-none min-h-[44px] max-h-60 text-base bg-background/70 border-transparent focus-visible:border-ring py-2.5 w-full"}),X&&(0,d.jsx)(R,{items:Z,index:_,loading:ab,onPick:ap,onHover:a=>aa(a)}),ae&&!X&&(0,d.jsx)(Q,{items:ae.items,index:ae.index,onPick:ao,onHover:a=>af(b=>b?{...b,index:a}:null),topicAvailable:!!b}),ag&&!X&&!ae&&(0,d.jsx)(T,{cmd:ag.cmd,items:ag.items,index:ag.index,onPick:an,onHover:a=>ah(b=>b?{...b,index:a}:null)})]}),(0,d.jsx)("input",{ref:W,type:"file",multiple:!0,className:"hidden",onChange:a=>{let b=Array.from(a.target.files??[]);b.length>0&&aq(b),a.target.value=""}}),(0,d.jsx)(B.$,{type:"button",size:"icon",variant:"ghost",onClick:()=>W.current?.click(),disabled:I||K||j,title:p("chatInputForm.attachTitle"),className:"h-11 w-11 shrink-0",children:I?(0,d.jsx)(s.A,{className:"h-4 w-4 animate-spin"}):(0,d.jsx)(t.A,{className:"h-4 w-4"})}),(0,d.jsx)(B.$,{type:"submit",size:"lg",disabled:!au,variant:"stop"===as?"destructive":"default",className:"h-11 px-6 shadow-md shrink-0",children:K?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.A,{className:"mr-2 h-4 w-4 animate-spin"}),h]}):"stop"===as?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u.A,{className:"mr-2 h-4 w-4",fill:"currentColor"}),r]}):"clarify"===as?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i,{className:"mr-2 h-4 w-4"}),q]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i,{className:"mr-2 h-4 w-4"}),g]})})]}),(0,d.jsx)("div",{className:"text-[10px] text-muted-foreground",children:p("chatInputForm.helperRow")})]})}async function P({cmd:a,payload:b,rootId:c,topicId:d,router:e,t:f}){if("help"===a.id){let a=G.map(a=>`• ${a.label} — ${a.description}`);A.oR.info(f("chatInputForm.availableCommands",{list:a.join("\n")}),{duration:12e3});return}if("remember"===a.id){if(!b)return void A.oR.error(f("chatInputForm.rememberEmpty"));let a=await I(c,b);return void(a.ok?(A.oR.success(a.message??f("chatInputForm.savedToKb")),(0,M.$d)(M.Zi.kbChanged(c))):A.oR.error(a.error))}if("delete-topic"===a.id){if(!d)return void A.oR.error(f("chatInputForm.topicOnlyCommand"));if(!confirm(f("chatInputForm.deleteTopicConfirm")))return;let a=await J(c,d);return void(a.ok?(A.oR.success(a.message??f("chatInputForm.deleted")),(0,M.$d)(M.Zi.topicsChanged(c)),a.redirectTo&&e.push(a.redirectTo)):A.oR.error(a.error))}if("util"===a.id){let a=await K(c,b);if(!a.ok)return void A.oR.error(a.error);if("redirect"===a.kind)return void e.push(a.url);let d=a.items.slice(0,8).map(a=>`• ${a.name} (${a.scope}/${a.id})`).join("\n");return void A.oR.message(f("chatInputForm.multipleMatches",{list:d}),{duration:12e3})}if("clear-project"===a.id){if(!confirm(f("chatInputForm.clearProjectConfirm")))return;let a=prompt(f("chatInputForm.clearProjectPrompt"));if(a?.trim().toLowerCase()!==f("chatInputForm.clearProjectPhrase"))return void A.oR.message(f("chatInputForm.confirmFailed"));let b=await L(c);return void(b.ok?(A.oR.success(b.message??f("chatInputForm.projectCleared")),(0,M.$d)(M.Zi.topicsChanged(c)),(0,M.$d)(M.Zi.kbChanged(c)),b.redirectTo&&e.push(b.redirectTo)):A.oR.error(b.error))}A.oR.error(f("chatInputForm.unknownCommand",{label:a.label}))}function Q({items:a,index:b,onPick:c,onHover:e,topicAvailable:g}){let h=(0,f.c)("roots");return(0,d.jsxs)("div",{className:"absolute bottom-full left-0 right-0 mb-2 z-50 max-h-80 overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-lg",children:[(0,d.jsx)("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider text-muted-foreground border-b",children:h("chatInputForm.commandsPaletteHeader")}),(0,d.jsx)("ul",{children:a.map((a,f)=>{let i=N[a.icon]??m.A,j="delete-topic"===a.id&&!g;return(0,d.jsx)("li",{children:(0,d.jsxs)("button",{type:"button",onMouseDown:b=>{b.preventDefault(),j||c(a)},onMouseEnter:()=>e(f),disabled:j,className:(0,D.cn)("w-full flex items-start gap-2 px-3 py-2 text-left",f===b?"bg-accent":"hover:bg-accent/60",j&&"opacity-40 cursor-not-allowed"),children:[(0,d.jsx)(i,{className:(0,D.cn)("h-3.5 w-3.5 mt-0.5 shrink-0","direct"===a.kind?"text-amber-600":"text-violet-600")}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-baseline gap-2 flex-wrap",children:[(0,d.jsx)("span",{className:"font-mono text-xs font-medium",children:a.label}),"direct"===a.kind&&(0,d.jsx)("span",{className:"text-[9px] uppercase tracking-wider text-amber-700",children:h("chatInputForm.directAction")}),a.requiresConfirm&&(0,d.jsx)("span",{className:"text-[9px] uppercase tracking-wider text-destructive",children:h("chatInputForm.withConfirm")})]}),(0,d.jsx)("p",{className:"text-[11px] text-muted-foreground leading-snug mt-0.5",children:a.description}),(0,d.jsx)("p",{className:"text-[10px] text-muted-foreground/80 font-mono mt-0.5",children:a.usage})]})]})},a.id)})})]})}function R({items:a,index:b,loading:c,onPick:e,onHover:g}){let h=(0,f.c)("roots");return(0,d.jsx)("div",{className:"absolute bottom-full left-0 right-0 mb-2 z-50 max-h-72 overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-lg",children:c&&0===a.length?(0,d.jsxs)("div",{className:"px-3 py-2 text-xs text-muted-foreground flex items-center gap-2",children:[(0,d.jsx)(s.A,{className:"h-3 w-3 animate-spin"})," ",h("chatInputForm.mentionSearching")]}):0===a.length?(0,d.jsx)("div",{className:"px-3 py-2 text-xs text-muted-foreground italic",children:h("chatInputForm.mentionNothing")}):(0,d.jsx)("ul",{children:a.map((a,c)=>{let f="kb"===a.kind?v.A:w.A;return(0,d.jsx)("li",{children:(0,d.jsxs)("button",{type:"button",onMouseDown:b=>{b.preventDefault(),e(a)},onMouseEnter:()=>g(c),className:(0,D.cn)("w-full flex items-center gap-2 px-3 py-1.5 text-sm text-left",c===b?"bg-accent":"hover:bg-accent/60"),children:[(0,d.jsx)(f,{className:(0,D.cn)("h-3.5 w-3.5 shrink-0","kb"===a.kind?"text-primary":"text-muted-foreground")}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("div",{className:"truncate font-mono text-xs",children:a.relPath}),a.parent&&(0,d.jsx)("div",{className:"truncate text-[10px] text-muted-foreground",children:a.parent})]}),(0,d.jsx)("span",{className:(0,D.cn)("text-[10px] uppercase tracking-wider shrink-0","kb"===a.kind?"text-primary":"text-muted-foreground"),children:a.kind})]})},a.absPath)})})})}function S({attachment:a,onRemove:b}){var c;let e=a.mime.startsWith("image/")?x.A:w.A;return(0,d.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-muted px-2 py-1 text-[11px] max-w-[18rem]",children:[(0,d.jsx)(e,{className:"h-3 w-3 text-muted-foreground shrink-0"}),(0,d.jsx)("span",{className:"truncate",title:a.name,children:a.name}),(0,d.jsx)("span",{className:"text-muted-foreground",children:(c=a.size)<1024?`${c} B`:c<1048576?`${(c/1024).toFixed(1)} KB`:`${(c/1048576).toFixed(1)} MB`}),(0,d.jsx)("button",{type:"button",onClick:b,className:"ml-0.5 text-muted-foreground hover:text-foreground",children:(0,d.jsx)(y.A,{className:"h-3 w-3"})})]})}function T({cmd:a,items:b,index:c,onPick:e,onHover:f}){let g=N[a.icon]??m.A;return(0,d.jsxs)("div",{className:"absolute bottom-full left-0 right-0 mb-2 z-50 max-h-80 overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-lg",children:[(0,d.jsxs)("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider text-muted-foreground border-b flex items-center gap-2",children:[(0,d.jsx)(g,{className:"h-3 w-3"}),(0,d.jsxs)("span",{children:[a.label," \xb7 ",a.usage.replace(/^\/\S+\s*/,"")]})]}),(0,d.jsx)("ul",{children:b.map((a,b)=>(0,d.jsx)("li",{children:(0,d.jsxs)("button",{type:"button",onMouseDown:b=>{b.preventDefault(),e(a)},onMouseEnter:()=>f(b),className:(0,D.cn)("w-full flex items-start gap-2 px-3 py-2 text-left",b===c?"bg-accent":"hover:bg-accent/60"),children:[(0,d.jsx)(m.A,{className:"h-3.5 w-3.5 mt-0.5 shrink-0 text-violet-600"}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-baseline gap-2 flex-wrap",children:[(0,d.jsx)("span",{className:"font-medium text-sm",children:a.label}),(0,d.jsx)("span",{className:"font-mono text-[10px] text-muted-foreground",children:a.value})]}),a.description&&(0,d.jsx)("p",{className:"text-[11px] text-muted-foreground leading-snug mt-0.5 line-clamp-2",children:a.description})]})]})},a.value))})]})}},84913:(a,b,c)=>{c.d(b,{$:()=>i});var d=c(63003);c(34750);var e=c(86209),f=c(65715),g=c(26290);let h=(0,e.F)("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function i({className:a,variant:b="default",size:c="default",asChild:e=!1,...i}){let j=e?f.bL:"button";return(0,d.jsx)(j,{"data-slot":"button","data-variant":b,"data-size":c,className:(0,g.cn)(h({variant:b,size:c,className:a})),...i})}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=7007,exports.ids=[7007],exports.modules={37007:(a,b,c)=>{c.d(b,{getSecret:()=>l,listSecretKeys:()=>m});var d=c(73024),e=c(76760),f=c.n(e),g=c(77598),h=c(63647);c(13250);let i=f().join((0,h._)(),"secrets");function j(a,b,c){return f().join(i,a,function(a,b){if("global"===a)return"_";if(!b)throw Error("project-scope secrets require rootId");return/^[a-f0-9]{8,64}$/.test(b)?b:(0,g.createHash)("sha1").update(b).digest("hex").slice(0,16)}(a,c),`${b}.json`)}async function k(a){try{let b=await d.promises.readFile(a,"utf8"),c=JSON.parse(b);if(1!==c.version||!c.values||"object"!=typeof c.values)return{version:1,values:{}};return{version:1,values:c.values}}catch{return{version:1,values:{}}}}async function l(a,b,c,d){let e=await k(j(a,b,d));return Object.prototype.hasOwnProperty.call(e.values,c)?e.values[c]:null}async function m(a,b,c){return Object.keys((await k(j(a,b,c))).values).sort()}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=7188,exports.ids=[1244,7188],exports.modules={7188:(a,b,c)=>{c.d(b,{buildRecord:()=>
|
|
1
|
+
"use strict";exports.id=7188,exports.ids=[1244,7188],exports.modules={7188:(a,b,c)=>{c.d(b,{buildRecord:()=>y,iq:()=>q,listWidgets:()=>n,readLayout:()=>u,readWidget:()=>o,reconcileLayout:()=>w,uv:()=>r,writeLayout:()=>v,writeWidget:()=>p});var d=c(73024),e=c(76760),f=c.n(e),g=c(13474),h=c(67184),i=c(32068),j=c(11244);function k(a){return f().join((0,g.FF)(a),"widgets")}function l(a,b){var c;return f().join(k(a),`${(c=b,(0,h.Vp)(c))}.json`)}function m(a){return f().join((0,g.FF)(a),"dashboard-layout.json")}async function n(a){let b,c=k(a);try{b=await d.promises.readdir(c,{withFileTypes:!0})}catch{return[]}let e=[];for(let a of b)if(a.isFile()&&a.name.toLowerCase().endsWith(".json"))try{let b=await d.promises.readFile(f().join(c,a.name),"utf8"),g=JSON.parse(b);x(g)&&e.push(g)}catch{}return e}async function o(a,b){try{let c=await d.promises.readFile(l(a,b),"utf8"),e=JSON.parse(c);return x(e)?e:null}catch{return null}}async function p(a,b){if(!x(b))throw Error(`Invalid widget record (id=${b.id}, kind=${b.kind})`);await (0,i.An)(l(a,b.id),b)}async function q(a,b){try{let c=(0,g.FF)(a),e=f().resolve(c,b),h=f().relative(c,e);if(h.startsWith("..")||f().isAbsolute(h))return null;return await d.promises.readFile(e,"utf8")}catch{return null}}async function r(a,b){try{return await d.promises.unlink(l(a,b)),!0}catch{return!1}}let s={order:["sys:active-goals","sys:pending","sys:recent-kb","sys:ai-suggestions"],hidden:[],sizes:{}},t=new Set(["sm","md","wide"]);async function u(a){try{let b=await d.promises.readFile(m(a),"utf8"),c=JSON.parse(b);if(!Array.isArray(c.order)||!Array.isArray(c.hidden))return s;let e={};if(c.sizes&&"object"==typeof c.sizes)for(let[a,b]of Object.entries(c.sizes))"string"==typeof b&&t.has(b)&&(e[a]=b);return{order:c.order.filter(a=>"string"==typeof a),hidden:c.hidden.filter(a=>"string"==typeof a),sizes:e}}catch{return s}}async function v(a,b){await (0,i.An)(m(a),b)}function w(a,b,c){let d=new Set([...b,...c]),e=a.order.filter(a=>d.has(a)),f=a.hidden.filter(a=>d.has(a)),g=new Set([...e,...f]);for(let a of[...c,...b])g.has(a)||e.push(a);let h={};if(a.sizes)for(let[b,c]of Object.entries(a.sizes))d.has(b)&&(h[b]=c);return{order:e,hidden:f,sizes:h}}function x(a){return!!a&&"object"==typeof a&&"string"==typeof a.id&&!!a.id&&"string"==typeof a.title&&"string"==typeof a.kind&&!!j.hU.includes(a.kind)&&!!a.data&&"object"==typeof a.data&&"string"==typeof a.createdAt&&"string"==typeof a.updatedAt&&!0}function y(a){var b;let c=new Date().toISOString(),d=(b=a.id,(0,h.Vp)(b));if(!d)throw Error("Widget id is empty after sanitization");if(!j.hU.includes(a.payload.kind))throw Error(`Unknown widget kind: ${a.payload.kind}`);let e=a.refresh??a.existing?.refresh,f=a.memory??a.existing?.memory,g=a.memoryFile??a.existing?.memoryFile,i=a.lastRefreshAt??a.existing?.lastRefreshAt;return{id:d,title:a.title||d,...a.description?{description:a.description}:{},...a.sourceTopicId?{sourceTopicId:a.sourceTopicId}:{},kind:a.payload.kind,data:a.payload.data,createdAt:a.existing?.createdAt??c,updatedAt:c,...a.size?{size:a.size}:a.existing?.size?{size:a.existing.size}:{},...e?{refresh:e}:{},...void 0!==f?{memory:f}:{},...g?{memoryFile:g}:{},...i?{lastRefreshAt:i}:{}}}},11244:(a,b,c)=>{c.d(b,{SYSTEM_WIDGET_IDS:()=>d,hU:()=>e});let d=["sys:active-goals","sys:pending","sys:recent-kb","sys:ai-suggestions"],e=["markdown","news-list","link-list","kpi","checklist","quote","kb-pinned","progress","image","stat-table","map","action-list","utility-card"]},67184:(a,b,c)=>{function d(a){return a.replace(/[^A-Za-z0-9_-]/g,"")}function e(a){return a.replace(/[^A-Za-z0-9_-]/g,"-").slice(0,80)}function f(a){return a.normalize("NFKD").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,60)}function g(a){return a.normalize("NFKD").toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"").slice(0,60)}function h(a){return a.trim().toLowerCase().replace(/[^a-z0-9-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,64)}c.d(b,{Iy:()=>h,Vp:()=>e,Xe:()=>g,Yv:()=>f,rE:()=>d})}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=7220,exports.ids=[7220],exports.modules={37220:(a,b,c)=>{c.d(b,{observeTask:()=>j});var d=c(53905),e=c(20243),f=c(73024);function g(){return globalThis.__reflexPendingCache||(globalThis.__reflexPendingCache=new Map),globalThis.__reflexPendingCache}async function h(a,b){let c,d=(0,e.
|
|
1
|
+
"use strict";exports.id=7220,exports.ids=[7220],exports.modules={37220:(a,b,c)=>{c.d(b,{observeTask:()=>j});var d=c(53905),e=c(20243),f=c(73024);function g(){return globalThis.__reflexPendingCache||(globalThis.__reflexPendingCache=new Map),globalThis.__reflexPendingCache}async function h(a,b){let c,d=(0,e.Rs)(a,b);try{c=await f.promises.stat(d)}catch{return[]}let h=g().get(d);if(h&&h.mtimeMs===c.mtimeMs&&h.size===c.size)return h.result;let i=function(a,b){let c=new Map;for(let d of a)switch(d.type){case"permission-request":c.set(`p:${d.requestId}`,{kind:"permission",topicId:b,requestId:d.requestId,ts:d.ts,summary:d.tool?`Permission: ${d.tool}`:d.action??"Permission request",...d.description?{details:d.description}:{}});break;case"permission-response":c.delete(`p:${d.requestId}`);break;case"question":c.set(`q:${d.questionId}`,{kind:"question",topicId:b,requestId:d.questionId,ts:d.ts,summary:d.prompt.slice(0,200),...d.choices&&d.choices.length?{details:d.choices.join(" / ")}:{}});break;case"answer":c.delete(`q:${d.questionId}`);break;case"mcp-add-request":c.set(`m:${d.requestId}`,{kind:"mcp-add",topicId:b,requestId:d.requestId,ts:d.ts,summary:`MCP add: ${d.label}`,...d.description?{details:d.description}:{}});break;case"mcp-add-response":c.delete(`m:${d.requestId}`)}return[...c.values()]}(await (0,e.readEvents)(a,b),b);return g().set(d,{mtimeMs:c.mtimeMs,size:c.size,result:i}),i}var i=c(26380);async function j(a){let b=await (0,d.getRoot)(a.rootId);if(!b)return null;let c=await (0,i.getTask)(b.path,a.taskId);if(!c)return null;if(!c.topicId)return{taskId:c.id,status:c.status,topicId:null,lastAssistantText:null,pending:[],recentEvents:[],topicEnded:!1};let f=await (0,e.readEvents)(b.path,c.topicId).catch(()=>[]),g=await h(b.path,c.topicId).catch(()=>[]),j=function(a){let b="";for(let c=a.length-1;c>=0;c--){let d=a[c];if("assistant-delta"===d.type&&"string"==typeof d.text)b=d.text+b;else if("turn-start"===d.type||"agent-start"===d.type)break}if(!b.trim())return null;let c=b.replace(/<<reflex:[^>]+>>[\s\S]*?<<\/reflex:[^>]+>>/g,"").trim();return c?c.length>240?c.slice(0,240)+"…":c:null}(f),k=f.slice(-20).map(a=>({ts:a.ts,kind:a.type})),l=f.some(a=>"turn-end"===a.type||"agent-end"===a.type);return{taskId:c.id,status:c.status,topicId:c.topicId,lastAssistantText:j,pending:g.map(a=>({kind:a.kind,summary:a.summary,requestId:a.requestId})),recentEvents:k,topicEnded:l}}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=7228,exports.ids=[7228,8711,9990],exports.modules={27228:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{startWidgetScheduler:()=>m});var e=c(71596),f=c(49345),g=c(73472),h=c(97896),i=c(3140),j=c(99990),k=c(78711),l=a([f,g]);[f,g]=l.then?(await l)():l;let q="widget-refresh";function m(){let a=(0,k.backgroundRuntime)();a.has(q)||(a.register({id:q,intervalMs:3e5,run:n}),a.seedLastRun(q,Date.now()))}async function n(){for(let a of(await (0,e.listRoots)()))try{await o(a.id,a.path)}catch(b){console.error(`[widget-scheduler] root ${a.id} failed:`,b instanceof Error?b.message:b)}}async function o(a,b){for(let d of(await (0,h.listWidgets)(b))){if(function(a){if(!a.refresh||"manual"===a.refresh)return!1;let b=i.VQ[a.refresh];if(!b)return!1;let c=a.lastRefreshAt??a.updatedAt,d=Date.now()-Date.parse(c);return Number.isFinite(d)&&d>=b}(d)){if("utility-card"===d.kind){let{refreshUtilityCard:b}=await Promise.all([c.e(8464),c.e(8609),c.e(4682)]).then(c.bind(c,54682)),e=await b(a,d.id);e.ok||console.error(`[widget-scheduler] ${d.id} card refresh: ${e.error}`);continue}d.sourceTopicId&&(f.z.isActive(d.sourceTopicId)||await p(a,b,d))}}}async function p(a,b,c){let d={...c,lastRefreshAt:new Date().toISOString()};await (0,h.writeWidget)(b,d);let e=await (0,j.buildRefreshPromptForWidget)(b,d),f=await (0,g.startOrchestratorTurn)({rootId:a,topicId:c.sourceTopicId,message:e,attachments:[]});"error"in f&&console.error(`[widget-scheduler] couldn't start refresh for ${c.id}: ${f.error}`)}d()}catch(a){d(a)}})},78711:(a,b,c)=>{c.d(b,{backgroundRuntime:()=>e});class d{register(a){if(this.jobs.has(a.id))throw Error(`background job already registered: ${a.id}`);this.jobs.set(a.id,a)}seedLastRun(a,b){this.lastRun.set(a,b)}has(a){return this.jobs.has(a)}jobIds(){return[...this.jobs.keys()].sort()}async tickOnce(a){if(!this.ticking){this.ticking=!0;try{for(let b of this.jobs.values()){let c=this.lastRun.get(b.id);if(void 0===c||!(a-c<b.intervalMs)){this.lastRun.set(b.id,a);try{await b.run()}catch(a){console.error(`[background-runtime] job ${b.id} failed:`,a instanceof Error?a.message:a)}}}}finally{this.ticking=!1}}}start(a){this.timer||(this.timer=setInterval(()=>{this.tickOnce(Date.now())},a),this.timer.unref?.())}stop(){this.timer&&(clearInterval(this.timer),this.timer=null)}constructor(){this.jobs=new Map,this.lastRun=new Map,this.ticking=!1,this.timer=null}}function e(){return globalThis.__reflexBackgroundRuntime??=new d}},99990:(a,b,c)=>{c.d(b,{buildRefreshPromptForWidget:()=>e});var d=c(97896);async function e(a,b){let c=b.memoryFile?await (0,d.iq)(a,b.memoryFile):null,e=[];return e.push(`[Reflex auto-refresh] Widget "${b.title}" (id: \`${b.id}\`, kind: \`${b.kind}\`) is due for an update.`),e.push(""),e.push("Current widget data:"),e.push("```json"),e.push(JSON.stringify(b.data,null,2)),e.push("```"),e.push(""),b.memory&&b.memory.trim()&&(e.push("Current inline memory:"),e.push("```"),e.push(b.memory),e.push("```"),e.push("")),b.memoryFile&&(e.push(`Memory file: \`${b.memoryFile}\``),c&&c.trim()?(e.push("```markdown"),e.push(c.slice(0,4e3)),e.push("```")):e.push("_(file is empty or does not exist — create it on the first update)_"),e.push("")),e.push("What to do:"),e.push(`- Emit \`<<reflex:widget-update>>\` with id="${b.id}" and fresh data.`),e.push("- If `memory` exists, update its contents (dedup links, value history, etc.). Do not reset it to empty."),b.memoryFile&&e.push(`- If it makes sense, append to memoryFile (\`${b.memoryFile}\`) via \`<<reflex:kb>>\` (kind="widget-memory", title="<title>"). Do not duplicate the widget's own data there.`),e.push("- Keep the chat reply short (one line) — this is an automatic refresh, no extended commentary needed."),e.push(`- Cadence: \`${b.refresh??"manual"}\`. Do not change it without an explicit request.`),e.join("\n")}}};
|