@stigmer/server-slim 0.1.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/README.md +3 -0
- package/console/404.html +1 -0
- package/console/__next.__PAGE__.txt +54 -0
- package/console/__next._full.txt +71 -0
- package/console/__next._index.txt +62 -0
- package/console/__next._tree.txt +6 -0
- package/console/_next/static/GjBokeF86FffwftazOhh6/_buildManifest.js +11 -0
- package/console/_next/static/GjBokeF86FffwftazOhh6/_clientMiddlewareManifest.js +1 -0
- package/console/_next/static/GjBokeF86FffwftazOhh6/_ssgManifest.js +1 -0
- package/console/_next/static/chunks/0376wi8qbsw94.js +1 -0
- package/console/_next/static/chunks/04cglffeuwumk.js +1 -0
- package/console/_next/static/chunks/04d276dp3qb52.js +1 -0
- package/console/_next/static/chunks/05526ws9tzwim.js +1 -0
- package/console/_next/static/chunks/05t5235u7o-c4.js +25 -0
- package/console/_next/static/chunks/06fz-g9t73bd6.js +4 -0
- package/console/_next/static/chunks/0789xt7opwvm-.js +24 -0
- package/console/_next/static/chunks/07twy5plc911w.js +1 -0
- package/console/_next/static/chunks/08-p5zefc1rea.js +1 -0
- package/console/_next/static/chunks/085db4op75mf5.js +1 -0
- package/console/_next/static/chunks/0923388wak11-.js +1 -0
- package/console/_next/static/chunks/0_7s7fzux7kiv.js +1 -0
- package/console/_next/static/chunks/0_bjj6hug8d9a.js +1 -0
- package/console/_next/static/chunks/0_zscrk6o0d0-.js +1 -0
- package/console/_next/static/chunks/0a4x97q7frgj3.js +1 -0
- package/console/_next/static/chunks/0ab5jlm8l0aud.js +1 -0
- package/console/_next/static/chunks/0c_c2b4z1yc02.js +1 -0
- package/console/_next/static/chunks/0cuyycns49hl4.js +1 -0
- package/console/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/console/_next/static/chunks/0d8f3-znyc_to.js +1 -0
- package/console/_next/static/chunks/0e-f1rkyz_u2k.js +1 -0
- package/console/_next/static/chunks/0ffx83gbnwq09.js +28 -0
- package/console/_next/static/chunks/0fyno0jk61txk.js +115 -0
- package/console/_next/static/chunks/0ggwoicp90w_s.js +1 -0
- package/console/_next/static/chunks/0h_7_i44vofe3.js +1 -0
- package/console/_next/static/chunks/0hagmppwo8s-f.js +1 -0
- package/console/_next/static/chunks/0hfvbn6c9k3pf.js +1 -0
- package/console/_next/static/chunks/0hw7vilkfpzlc.js +1 -0
- package/console/_next/static/chunks/0kb63xcvghh_3.js +1 -0
- package/console/_next/static/chunks/0ko5wsi6kukgd.js +1 -0
- package/console/_next/static/chunks/0kq99qin4db-q.js +1 -0
- package/console/_next/static/chunks/0kqg4u5n17gje.js +1 -0
- package/console/_next/static/chunks/0ky9qppyx1n57.js +62 -0
- package/console/_next/static/chunks/0og4_5pph-mhm.js +1 -0
- package/console/_next/static/chunks/0p7p-bpdrqx75.js +1 -0
- package/console/_next/static/chunks/0q2bnr94vvuc2.js +1 -0
- package/console/_next/static/chunks/0q3sxhnylk_gn.js +1 -0
- package/console/_next/static/chunks/0qg6l3tattq3j.js +1 -0
- package/console/_next/static/chunks/0qwyk_70quvjh.js +1 -0
- package/console/_next/static/chunks/0qzyqii8_m5r2.js +1 -0
- package/console/_next/static/chunks/0rlfx91598uvc.js +1 -0
- package/console/_next/static/chunks/0s9njms3lumhx.js +1 -0
- package/console/_next/static/chunks/0srualwd948m1.js +29 -0
- package/console/_next/static/chunks/0u4m2805tgi7x.js +1 -0
- package/console/_next/static/chunks/0udcs-1vq74rp.js +1 -0
- package/console/_next/static/chunks/0vno04lmwdchj.js +1 -0
- package/console/_next/static/chunks/0vt1_fu_q116n.js +1 -0
- package/console/_next/static/chunks/0vuq85gcb9zcl.js +1 -0
- package/console/_next/static/chunks/0wxazby0i4xu3.js +5 -0
- package/console/_next/static/chunks/0yeh2zqwmmec0.js +22 -0
- package/console/_next/static/chunks/0zvl88sijsrqk.js +1 -0
- package/console/_next/static/chunks/110bgpy30m6m6.js +1 -0
- package/console/_next/static/chunks/14ipylvs6qyyw.js +1 -0
- package/console/_next/static/chunks/1745jt9onokna.js +1 -0
- package/console/_next/static/chunks/177rfq0tsoku9.js +4 -0
- package/console/_next/static/chunks/17mfsiiquey1d.js +1 -0
- package/console/_next/static/chunks/197iuvi8udifl.js +1 -0
- package/console/_next/static/chunks/1_2-z0tjk0xio.js +1 -0
- package/console/_next/static/chunks/1_gh5a14dqnji.js +1 -0
- package/console/_next/static/chunks/1ame8n7x9g3xc.js +1 -0
- package/console/_next/static/chunks/1apepr-7dz16b.js +1 -0
- package/console/_next/static/chunks/1dtukwrl8nulc.js +1 -0
- package/console/_next/static/chunks/1e0br64ibniud.js +24 -0
- package/console/_next/static/chunks/1fm-45g777ifx.js +1 -0
- package/console/_next/static/chunks/1g_iha5barqef.js +1 -0
- package/console/_next/static/chunks/1glr_lki18csr.js +2 -0
- package/console/_next/static/chunks/1hl355w6m5bp5.js +1 -0
- package/console/_next/static/chunks/1id3p9v9v5knn.js +1 -0
- package/console/_next/static/chunks/1j6kp4gg0_ylt.js +80 -0
- package/console/_next/static/chunks/1jssq3ch7qgd6.js +60 -0
- package/console/_next/static/chunks/1jzfyfh-3gqlb.js +1 -0
- package/console/_next/static/chunks/1k3d5c49mpp-2.js +1 -0
- package/console/_next/static/chunks/1kte_bxw9m-ie.js +1 -0
- package/console/_next/static/chunks/1lw52jm27gon2.js +1 -0
- package/console/_next/static/chunks/1m9e28v8syzxx.js +34 -0
- package/console/_next/static/chunks/1mrmq_pigo_yb.js +1 -0
- package/console/_next/static/chunks/1muf1a96cgbv5.js +1 -0
- package/console/_next/static/chunks/1n1x0ykt8by6w.js +1 -0
- package/console/_next/static/chunks/1qu0tqybdtj0_.js +1 -0
- package/console/_next/static/chunks/1r8itpdfffwxa.js +1 -0
- package/console/_next/static/chunks/1r_opkrpbuykx.js +1 -0
- package/console/_next/static/chunks/1tl0h3c_bp62t.js +1 -0
- package/console/_next/static/chunks/1v1m1fr8f0yle.js +1 -0
- package/console/_next/static/chunks/1v34vj52v7q0g.js +1 -0
- package/console/_next/static/chunks/1wztfxoxnu5_9.js +1 -0
- package/console/_next/static/chunks/1x7exm5d_hhb8.js +153 -0
- package/console/_next/static/chunks/1xwdphzrhi9cn.js +1 -0
- package/console/_next/static/chunks/1yc4gdqzxa5ie.js +1 -0
- package/console/_next/static/chunks/1zunrzvni97zi.js +1 -0
- package/console/_next/static/chunks/1zv6mtmekep40.js +36 -0
- package/console/_next/static/chunks/2-jaie5wchnsy.js +1 -0
- package/console/_next/static/chunks/20aa5hen470pm.js +1 -0
- package/console/_next/static/chunks/2116ko93nwgx8.js +1 -0
- package/console/_next/static/chunks/23vk0ig36j0he.js +1 -0
- package/console/_next/static/chunks/245vlws7l85dk.js +1 -0
- package/console/_next/static/chunks/24__o4dkdytc8.js +1 -0
- package/console/_next/static/chunks/24iwqo9ejhxl8.js +127 -0
- package/console/_next/static/chunks/24o9ia1be2cze.js +1 -0
- package/console/_next/static/chunks/25aea0bgjydel.css +1 -0
- package/console/_next/static/chunks/26-p2jxr4f20d.js +1 -0
- package/console/_next/static/chunks/28c--yt2jaxxf.js +1 -0
- package/console/_next/static/chunks/28vym848oh1ng.js +1 -0
- package/console/_next/static/chunks/29ou6qb6p1lni.js +1 -0
- package/console/_next/static/chunks/2aalpmeu_tni-.js +3 -0
- package/console/_next/static/chunks/2c4ifddi2dal0.js +20 -0
- package/console/_next/static/chunks/2ckm4edha_gkb.js +43 -0
- package/console/_next/static/chunks/2d5ods6a8n6yd.js +1 -0
- package/console/_next/static/chunks/2dm5g7ylrulvb.js +15 -0
- package/console/_next/static/chunks/2dtosus35_o5k.js +1 -0
- package/console/_next/static/chunks/2e0_cm1_wv-b4.js +1 -0
- package/console/_next/static/chunks/2fh_0n31hibdi.js +226 -0
- package/console/_next/static/chunks/2fjsaw5pgjcqb.js +1 -0
- package/console/_next/static/chunks/2h5pk3yu15nwr.js +1 -0
- package/console/_next/static/chunks/2i7w4yyf77gzw.js +1 -0
- package/console/_next/static/chunks/2jo3q7mfk65kd.js +1 -0
- package/console/_next/static/chunks/2jutbapb-t64n.js +31 -0
- package/console/_next/static/chunks/2k6tx8-w1creu.js +148 -0
- package/console/_next/static/chunks/2kh_m5onqedc5.js +1 -0
- package/console/_next/static/chunks/2ltzdgpjq3v6a.js +1 -0
- package/console/_next/static/chunks/2o2ftjhtb8od3.js +2 -0
- package/console/_next/static/chunks/2pyn841-jq-oo.js +10 -0
- package/console/_next/static/chunks/2rn289343m-y_.js +139 -0
- package/console/_next/static/chunks/2t2l3h2w_04bb.js +1 -0
- package/console/_next/static/chunks/2v11hooq3xd5t.js +15 -0
- package/console/_next/static/chunks/2vsg5t3fnqmfn.js +1 -0
- package/console/_next/static/chunks/2wayafjfoiq7q.css +6 -0
- package/console/_next/static/chunks/2xsvteosdtsb-.js +1 -0
- package/console/_next/static/chunks/2y-x8nhnufxzb.js +1 -0
- package/console/_next/static/chunks/2za4b-si894xj.js +1 -0
- package/console/_next/static/chunks/3-igvp1-n4pxs.js +104 -0
- package/console/_next/static/chunks/3-k25f-adpe5f.js +1 -0
- package/console/_next/static/chunks/3-pzmot7dbrfa.js +1 -0
- package/console/_next/static/chunks/3-x5lrgs3wcpl.js +80 -0
- package/console/_next/static/chunks/30nrkrr9518_z.js +1 -0
- package/console/_next/static/chunks/316lh1-hzgnod.js +1 -0
- package/console/_next/static/chunks/31wj1au8smjge.js +1 -0
- package/console/_next/static/chunks/329o6uup9qmb3.js +1 -0
- package/console/_next/static/chunks/34_1w929-5o6r.js +287 -0
- package/console/_next/static/chunks/35szx1ga574xu.js +1 -0
- package/console/_next/static/chunks/36tg522pkl8hm.js +1 -0
- package/console/_next/static/chunks/37-y9fgnir35a.js +1 -0
- package/console/_next/static/chunks/39wss1g0ffaqt.js +1 -0
- package/console/_next/static/chunks/3_cv0gj1bm3l6.js +1 -0
- package/console/_next/static/chunks/3_f8gd_6816re.js +101 -0
- package/console/_next/static/chunks/3a4qfuhsxefh2.js +12 -0
- package/console/_next/static/chunks/3asb3ztrvogwl.js +1 -0
- package/console/_next/static/chunks/3bsxbw10qhvqo.js +1 -0
- package/console/_next/static/chunks/3by94g38ljxl1.js +1 -0
- package/console/_next/static/chunks/3c_6owv8m4rta.js +90 -0
- package/console/_next/static/chunks/3ea2eo8b5gmju.js +2 -0
- package/console/_next/static/chunks/3ercnb2rksl_a.js +1 -0
- package/console/_next/static/chunks/3esxfmmm0ypxb.js +2 -0
- package/console/_next/static/chunks/3exiw74xbmika.js +1 -0
- package/console/_next/static/chunks/3f88-tc5u2heg.js +1 -0
- package/console/_next/static/chunks/3f_axahrombdp.js +1 -0
- package/console/_next/static/chunks/3gz91kn_v2lfa.js +1 -0
- package/console/_next/static/chunks/3i9z3x7tka5x2.js +1 -0
- package/console/_next/static/chunks/3ih4kfufd47st.js +1 -0
- package/console/_next/static/chunks/3itfi41ayfopd.js +15 -0
- package/console/_next/static/chunks/3iwgig-fgcscf.js +15 -0
- package/console/_next/static/chunks/3jf8qh1ev3gb4.js +2 -0
- package/console/_next/static/chunks/3l6svfyqdsq6o.js +1 -0
- package/console/_next/static/chunks/3lj0i-qlb4ah2.js +64 -0
- package/console/_next/static/chunks/3lmx6tkunfd3u.js +1 -0
- package/console/_next/static/chunks/3lp4d64he__am.js +152 -0
- package/console/_next/static/chunks/3m_jz3b2j38nn.js +1 -0
- package/console/_next/static/chunks/3oe9w1b39nzmn.js +3 -0
- package/console/_next/static/chunks/3on7r_d8o-kna.js +1 -0
- package/console/_next/static/chunks/3pbpowf3kdu5z.js +119 -0
- package/console/_next/static/chunks/3pwwv0u29nk8c.js +23 -0
- package/console/_next/static/chunks/3rweyye6o1z6b.js +79 -0
- package/console/_next/static/chunks/3sdqgrmvxm_u4.js +201 -0
- package/console/_next/static/chunks/3t3vbs-x5hixj.js +1 -0
- package/console/_next/static/chunks/3thqnz0a5zy-h.js +9 -0
- package/console/_next/static/chunks/3udubdawo7583.js +1 -0
- package/console/_next/static/chunks/3uz4lg6e199sb.js +1 -0
- package/console/_next/static/chunks/3v2mkz_46uei2.js +1 -0
- package/console/_next/static/chunks/3w5crjmhb-3um.js +1 -0
- package/console/_next/static/chunks/3waxhrmr_82j5.js +93 -0
- package/console/_next/static/chunks/3zmlzef_jxopu.js +1 -0
- package/console/_next/static/chunks/3zqvalj8nr-1y.js +1 -0
- package/console/_next/static/chunks/40igag4gq4k0a.js +77 -0
- package/console/_next/static/chunks/40wq034qcdji_.js +1 -0
- package/console/_next/static/chunks/44crhetqymq_e.js +34 -0
- package/console/_next/static/chunks/44q2pv6a3w19q.js +1 -0
- package/console/_next/static/chunks/turbopack-2u1d16houkiyo.js +1 -0
- package/console/_next/static/media/GeistMono_Variable-s.p.21mfa-4xv0w3g.woff2 +0 -0
- package/console/_next/static/media/Geist_Variable-s.p.217kyf1h_p0cg.woff2 +0 -0
- package/console/_next/static/media/IBMPlexMono_Medium-s.2v25u5rd2tsaf.woff2 +0 -0
- package/console/_next/static/media/IBMPlexMono_Regular-s.09u63wo58kris.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Bold-s.3iicodgz0epim.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Light-s.3ntejfdcyftfg.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Medium-s.3n25cgfiu6qss.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Regular-s.2e_-c_m03txvi.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_SemiBold-s.2sutjpuns2xc5.woff2 +0 -0
- package/console/_next/static/media/Inter_Variable-s.2-lfiv6s83kzn.woff2 +0 -0
- package/console/_next/static/media/Nunito_Variable-s.3r4_r9s3kxd_-.woff2 +0 -0
- package/console/_not-found/__next._full.txt +73 -0
- package/console/_not-found/__next._index.txt +62 -0
- package/console/_not-found/__next._not-found.__PAGE__.txt +61 -0
- package/console/_not-found/__next._tree.txt +5 -0
- package/console/_not-found.html +1 -0
- package/console/_not-found.txt +73 -0
- package/console/apple-touch-icon-dark.png +0 -0
- package/console/apple-touch-icon-light.png +0 -0
- package/console/auth/callback/__next._full.txt +82 -0
- package/console/auth/callback/__next._index.txt +62 -0
- package/console/auth/callback/__next._tree.txt +8 -0
- package/console/auth/callback/__next.auth.callback.__PAGE__.txt +67 -0
- package/console/auth/callback.html +1 -0
- package/console/auth/callback.txt +82 -0
- package/console/auth/oauth/callback/__next._full.txt +84 -0
- package/console/auth/oauth/callback/__next._index.txt +62 -0
- package/console/auth/oauth/callback/__next._tree.txt +9 -0
- package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +69 -0
- package/console/auth/oauth/callback.html +1 -0
- package/console/auth/oauth/callback.txt +84 -0
- package/console/brand-avatar.png +0 -0
- package/console/chat/__placeholder__/__next._full.txt +80 -0
- package/console/chat/__placeholder__/__next._index.txt +62 -0
- package/console/chat/__placeholder__/__next._tree.txt +8 -0
- package/console/chat/__placeholder__/__next.chat.$d$channel.__PAGE__.txt +65 -0
- package/console/chat/__placeholder__.html +1 -0
- package/console/chat/__placeholder__.txt +80 -0
- package/console/connect/__placeholder__/__next._full.txt +79 -0
- package/console/connect/__placeholder__/__next._index.txt +62 -0
- package/console/connect/__placeholder__/__next._tree.txt +8 -0
- package/console/connect/__placeholder__/__next.connect.$d$token.__PAGE__.txt +64 -0
- package/console/connect/__placeholder__.html +1 -0
- package/console/connect/__placeholder__.txt +79 -0
- package/console/conversations/__next._full.txt +79 -0
- package/console/conversations/__next._index.txt +62 -0
- package/console/conversations/__next._tree.txt +7 -0
- package/console/conversations/__next.conversations.__PAGE__.txt +64 -0
- package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +83 -0
- package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +9 -0
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +68 -0
- package/console/conversations/__placeholder__/__placeholder__.html +1 -0
- package/console/conversations/__placeholder__/__placeholder__.txt +83 -0
- package/console/conversations.html +1 -0
- package/console/conversations.txt +79 -0
- package/console/dashboard/__next._full.txt +77 -0
- package/console/dashboard/__next._index.txt +62 -0
- package/console/dashboard/__next._tree.txt +7 -0
- package/console/dashboard/__next.dashboard.__PAGE__.txt +62 -0
- package/console/dashboard.html +1 -0
- package/console/dashboard.txt +77 -0
- package/console/desktop/billing/__next._full.txt +82 -0
- package/console/desktop/billing/__next._index.txt +62 -0
- package/console/desktop/billing/__next._tree.txt +8 -0
- package/console/desktop/billing/__next.desktop.billing.__PAGE__.txt +67 -0
- package/console/desktop/billing.html +1 -0
- package/console/desktop/billing.txt +82 -0
- package/console/embed.js +1 -0
- package/console/favicon-dark-16x16.png +0 -0
- package/console/favicon-dark-32x32.png +0 -0
- package/console/favicon-dark.ico +0 -0
- package/console/favicon-dark.svg +1 -0
- package/console/favicon-light-16x16.png +0 -0
- package/console/favicon-light-32x32.png +0 -0
- package/console/favicon-light.ico +0 -0
- package/console/favicon-light.svg +1 -0
- package/console/index.html +1 -0
- package/console/index.txt +71 -0
- package/console/invite/__placeholder__/__next._full.txt +80 -0
- package/console/invite/__placeholder__/__next._index.txt +62 -0
- package/console/invite/__placeholder__/__next._tree.txt +8 -0
- package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +65 -0
- package/console/invite/__placeholder__.html +1 -0
- package/console/invite/__placeholder__.txt +80 -0
- package/console/library/__next._full.txt +89 -0
- package/console/library/__next._index.txt +62 -0
- package/console/library/__next._tree.txt +7 -0
- package/console/library/__next.library.__PAGE__.txt +74 -0
- package/console/library/agents/__next._full.txt +94 -0
- package/console/library/agents/__next._index.txt +62 -0
- package/console/library/agents/__next._tree.txt +8 -0
- package/console/library/agents/__next.library.agents.__PAGE__.txt +79 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +96 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +81 -0
- package/console/library/agents/__placeholder__/__placeholder__.html +1 -0
- package/console/library/agents/__placeholder__/__placeholder__.txt +96 -0
- package/console/library/agents/new/__next._full.txt +99 -0
- package/console/library/agents/new/__next._index.txt +62 -0
- package/console/library/agents/new/__next._tree.txt +9 -0
- package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +84 -0
- package/console/library/agents/new.html +1 -0
- package/console/library/agents/new.txt +99 -0
- package/console/library/agents.html +1 -0
- package/console/library/agents.txt +94 -0
- package/console/library/environments/__next._full.txt +95 -0
- package/console/library/environments/__next._index.txt +62 -0
- package/console/library/environments/__next._tree.txt +8 -0
- package/console/library/environments/__next.library.environments.__PAGE__.txt +80 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next._full.txt +97 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next.library.environments.$d$org.$d$slug.__PAGE__.txt +82 -0
- package/console/library/environments/__placeholder__/__placeholder__.html +1 -0
- package/console/library/environments/__placeholder__/__placeholder__.txt +97 -0
- package/console/library/environments/new/__next._full.txt +99 -0
- package/console/library/environments/new/__next._index.txt +62 -0
- package/console/library/environments/new/__next._tree.txt +9 -0
- package/console/library/environments/new/__next.library.environments.new.__PAGE__.txt +84 -0
- package/console/library/environments/new.html +1 -0
- package/console/library/environments/new.txt +99 -0
- package/console/library/environments.html +1 -0
- package/console/library/environments.txt +95 -0
- package/console/library/files/__next._full.txt +94 -0
- package/console/library/files/__next._index.txt +62 -0
- package/console/library/files/__next._tree.txt +8 -0
- package/console/library/files/__next.library.files.__PAGE__.txt +79 -0
- package/console/library/files.html +1 -0
- package/console/library/files.txt +94 -0
- package/console/library/plugins/__next._full.txt +94 -0
- package/console/library/plugins/__next._index.txt +62 -0
- package/console/library/plugins/__next._tree.txt +8 -0
- package/console/library/plugins/__next.library.plugins.__PAGE__.txt +79 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +97 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +82 -0
- package/console/library/plugins/__placeholder__/__placeholder__.html +1 -0
- package/console/library/plugins/__placeholder__/__placeholder__.txt +97 -0
- package/console/library/plugins/upload/__next._full.txt +99 -0
- package/console/library/plugins/upload/__next._index.txt +62 -0
- package/console/library/plugins/upload/__next._tree.txt +9 -0
- package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +84 -0
- package/console/library/plugins/upload.html +1 -0
- package/console/library/plugins/upload.txt +99 -0
- package/console/library/plugins.html +1 -0
- package/console/library/plugins.txt +94 -0
- package/console/library/routines/__next._full.txt +94 -0
- package/console/library/routines/__next._index.txt +62 -0
- package/console/library/routines/__next._tree.txt +8 -0
- package/console/library/routines/__next.library.routines.__PAGE__.txt +79 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next._full.txt +97 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next.library.routines.$d$org.$d$slug.__PAGE__.txt +82 -0
- package/console/library/routines/__placeholder__/__placeholder__.html +1 -0
- package/console/library/routines/__placeholder__/__placeholder__.txt +97 -0
- package/console/library/routines/new/__next._full.txt +98 -0
- package/console/library/routines/new/__next._index.txt +62 -0
- package/console/library/routines/new/__next._tree.txt +9 -0
- package/console/library/routines/new/__next.library.routines.new.__PAGE__.txt +83 -0
- package/console/library/routines/new.html +1 -0
- package/console/library/routines/new.txt +98 -0
- package/console/library/routines.html +1 -0
- package/console/library/routines.txt +94 -0
- package/console/library/skills/__next._full.txt +94 -0
- package/console/library/skills/__next._index.txt +62 -0
- package/console/library/skills/__next._tree.txt +8 -0
- package/console/library/skills/__next.library.skills.__PAGE__.txt +79 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +96 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +81 -0
- package/console/library/skills/__placeholder__/__placeholder__.html +1 -0
- package/console/library/skills/__placeholder__/__placeholder__.txt +96 -0
- package/console/library/skills/new/__next._full.txt +98 -0
- package/console/library/skills/new/__next._index.txt +62 -0
- package/console/library/skills/new/__next._tree.txt +9 -0
- package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +83 -0
- package/console/library/skills/new.html +1 -0
- package/console/library/skills/new.txt +98 -0
- package/console/library/skills.html +1 -0
- package/console/library/skills.txt +94 -0
- package/console/library.html +1 -0
- package/console/library.txt +89 -0
- package/console/login/__next._full.txt +81 -0
- package/console/login/__next._index.txt +62 -0
- package/console/login/__next._tree.txt +7 -0
- package/console/login/__next.login.__PAGE__.txt +66 -0
- package/console/login.html +1 -0
- package/console/login.txt +81 -0
- package/console/marketplace/__next._full.txt +81 -0
- package/console/marketplace/__next._index.txt +62 -0
- package/console/marketplace/__next._tree.txt +7 -0
- package/console/marketplace/__next.marketplace.__PAGE__.txt +66 -0
- package/console/marketplace.html +1 -0
- package/console/marketplace.txt +81 -0
- package/console/models/__next._full.txt +77 -0
- package/console/models/__next._index.txt +62 -0
- package/console/models/__next._tree.txt +7 -0
- package/console/models/__next.models.__PAGE__.txt +62 -0
- package/console/models.html +1 -0
- package/console/models.txt +77 -0
- package/console/oauth/slack/callback/__next._full.txt +84 -0
- package/console/oauth/slack/callback/__next._index.txt +62 -0
- package/console/oauth/slack/callback/__next._tree.txt +9 -0
- package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +69 -0
- package/console/oauth/slack/callback.html +1 -0
- package/console/oauth/slack/callback.txt +84 -0
- package/console/runs/__placeholder__/__next._full.txt +77 -0
- package/console/runs/__placeholder__/__next._index.txt +62 -0
- package/console/runs/__placeholder__/__next._tree.txt +8 -0
- package/console/runs/__placeholder__/__next.runs.$d$id.__PAGE__.txt +62 -0
- package/console/runs/__placeholder__.html +1 -0
- package/console/runs/__placeholder__.txt +77 -0
- package/console/sessions/__placeholder__/__next._full.txt +77 -0
- package/console/sessions/__placeholder__/__next._index.txt +62 -0
- package/console/sessions/__placeholder__/__next._tree.txt +8 -0
- package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +62 -0
- package/console/sessions/__placeholder__.html +1 -0
- package/console/sessions/__placeholder__.txt +77 -0
- package/console/settings/__next._full.txt +85 -0
- package/console/settings/__next._index.txt +62 -0
- package/console/settings/__next._tree.txt +7 -0
- package/console/settings/__next.settings.__PAGE__.txt +70 -0
- package/console/settings/access-history/__next._full.txt +87 -0
- package/console/settings/access-history/__next._index.txt +62 -0
- package/console/settings/access-history/__next._tree.txt +8 -0
- package/console/settings/access-history/__next.settings.access-history.__PAGE__.txt +72 -0
- package/console/settings/access-history.html +1 -0
- package/console/settings/access-history.txt +87 -0
- package/console/settings/account-preferences/__next._full.txt +87 -0
- package/console/settings/account-preferences/__next._index.txt +62 -0
- package/console/settings/account-preferences/__next._tree.txt +8 -0
- package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +72 -0
- package/console/settings/account-preferences.html +1 -0
- package/console/settings/account-preferences.txt +87 -0
- package/console/settings/api-keys/__next._full.txt +86 -0
- package/console/settings/api-keys/__next._index.txt +62 -0
- package/console/settings/api-keys/__next._tree.txt +8 -0
- package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +71 -0
- package/console/settings/api-keys.html +1 -0
- package/console/settings/api-keys.txt +86 -0
- package/console/settings/billing/__next._full.txt +89 -0
- package/console/settings/billing/__next._index.txt +62 -0
- package/console/settings/billing/__next._tree.txt +8 -0
- package/console/settings/billing/__next.settings.billing.__PAGE__.txt +74 -0
- package/console/settings/billing.html +1 -0
- package/console/settings/billing.txt +89 -0
- package/console/settings/channel-apps/__next._full.txt +87 -0
- package/console/settings/channel-apps/__next._index.txt +62 -0
- package/console/settings/channel-apps/__next._tree.txt +8 -0
- package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +72 -0
- package/console/settings/channel-apps.html +1 -0
- package/console/settings/channel-apps.txt +87 -0
- package/console/settings/federation-issuers/__next._full.txt +88 -0
- package/console/settings/federation-issuers/__next._index.txt +62 -0
- package/console/settings/federation-issuers/__next._tree.txt +8 -0
- package/console/settings/federation-issuers/__next.settings.federation-issuers.__PAGE__.txt +73 -0
- package/console/settings/federation-issuers.html +1 -0
- package/console/settings/federation-issuers.txt +88 -0
- package/console/settings/invitations/__next._full.txt +87 -0
- package/console/settings/invitations/__next._index.txt +62 -0
- package/console/settings/invitations/__next._tree.txt +8 -0
- package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +72 -0
- package/console/settings/invitations.html +1 -0
- package/console/settings/invitations.txt +87 -0
- package/console/settings/licenses/__next._full.txt +90 -0
- package/console/settings/licenses/__next._index.txt +62 -0
- package/console/settings/licenses/__next._tree.txt +8 -0
- package/console/settings/licenses/__next.settings.licenses.__PAGE__.txt +75 -0
- package/console/settings/licenses.html +1 -0
- package/console/settings/licenses.txt +90 -0
- package/console/settings/members/__next._full.txt +86 -0
- package/console/settings/members/__next._index.txt +62 -0
- package/console/settings/members/__next._tree.txt +8 -0
- package/console/settings/members/__next.settings.members.__PAGE__.txt +71 -0
- package/console/settings/members.html +1 -0
- package/console/settings/members.txt +86 -0
- package/console/settings/memory/__next._full.txt +86 -0
- package/console/settings/memory/__next._index.txt +62 -0
- package/console/settings/memory/__next._tree.txt +8 -0
- package/console/settings/memory/__next.settings.memory.__PAGE__.txt +71 -0
- package/console/settings/memory.html +1 -0
- package/console/settings/memory.txt +86 -0
- package/console/settings/model-catalog/__next._full.txt +89 -0
- package/console/settings/model-catalog/__next._index.txt +62 -0
- package/console/settings/model-catalog/__next._tree.txt +8 -0
- package/console/settings/model-catalog/__next.settings.model-catalog.__PAGE__.txt +74 -0
- package/console/settings/model-catalog.html +1 -0
- package/console/settings/model-catalog.txt +89 -0
- package/console/settings/notifications/__next._full.txt +89 -0
- package/console/settings/notifications/__next._index.txt +62 -0
- package/console/settings/notifications/__next._tree.txt +8 -0
- package/console/settings/notifications/__next.settings.notifications.__PAGE__.txt +74 -0
- package/console/settings/notifications.html +1 -0
- package/console/settings/notifications.txt +89 -0
- package/console/settings/oauth-apps/__next._full.txt +87 -0
- package/console/settings/oauth-apps/__next._index.txt +62 -0
- package/console/settings/oauth-apps/__next._tree.txt +8 -0
- package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +72 -0
- package/console/settings/oauth-apps.html +1 -0
- package/console/settings/oauth-apps.txt +87 -0
- package/console/settings/org-embedding/__next._full.txt +87 -0
- package/console/settings/org-embedding/__next._index.txt +62 -0
- package/console/settings/org-embedding/__next._tree.txt +8 -0
- package/console/settings/org-embedding/__next.settings.org-embedding.__PAGE__.txt +72 -0
- package/console/settings/org-embedding.html +1 -0
- package/console/settings/org-embedding.txt +87 -0
- package/console/settings/org-policies/__next._full.txt +87 -0
- package/console/settings/org-policies/__next._index.txt +62 -0
- package/console/settings/org-policies/__next._tree.txt +8 -0
- package/console/settings/org-policies/__next.settings.org-policies.__PAGE__.txt +72 -0
- package/console/settings/org-policies.html +1 -0
- package/console/settings/org-policies.txt +87 -0
- package/console/settings/org-preferences/__next._full.txt +87 -0
- package/console/settings/org-preferences/__next._index.txt +62 -0
- package/console/settings/org-preferences/__next._tree.txt +8 -0
- package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +72 -0
- package/console/settings/org-preferences.html +1 -0
- package/console/settings/org-preferences.txt +87 -0
- package/console/settings/org-profile/__next._full.txt +89 -0
- package/console/settings/org-profile/__next._index.txt +62 -0
- package/console/settings/org-profile/__next._tree.txt +8 -0
- package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +74 -0
- package/console/settings/org-profile.html +1 -0
- package/console/settings/org-profile.txt +89 -0
- package/console/settings/plans/__next._full.txt +89 -0
- package/console/settings/plans/__next._index.txt +62 -0
- package/console/settings/plans/__next._tree.txt +8 -0
- package/console/settings/plans/__next.settings.plans.__PAGE__.txt +74 -0
- package/console/settings/plans.html +1 -0
- package/console/settings/plans.txt +89 -0
- package/console/settings/service-accounts/__next._full.txt +87 -0
- package/console/settings/service-accounts/__next._index.txt +62 -0
- package/console/settings/service-accounts/__next._tree.txt +8 -0
- package/console/settings/service-accounts/__next.settings.service-accounts.__PAGE__.txt +72 -0
- package/console/settings/service-accounts.html +1 -0
- package/console/settings/service-accounts.txt +87 -0
- package/console/settings/teams/__next._full.txt +86 -0
- package/console/settings/teams/__next._index.txt +62 -0
- package/console/settings/teams/__next._tree.txt +8 -0
- package/console/settings/teams/__next.settings.teams.__PAGE__.txt +71 -0
- package/console/settings/teams.html +1 -0
- package/console/settings/teams.txt +86 -0
- package/console/settings/usage/__next._full.txt +86 -0
- package/console/settings/usage/__next._index.txt +62 -0
- package/console/settings/usage/__next._tree.txt +8 -0
- package/console/settings/usage/__next.settings.usage.__PAGE__.txt +71 -0
- package/console/settings/usage.html +1 -0
- package/console/settings/usage.txt +86 -0
- package/console/settings/vaults/__next._full.txt +86 -0
- package/console/settings/vaults/__next._index.txt +62 -0
- package/console/settings/vaults/__next._tree.txt +8 -0
- package/console/settings/vaults/__next.settings.vaults.__PAGE__.txt +71 -0
- package/console/settings/vaults.html +1 -0
- package/console/settings/vaults.txt +86 -0
- package/console/settings.html +1 -0
- package/console/settings.txt +85 -0
- package/main.js +1656 -0
- package/mappings.wasm +0 -0
- package/package.json +25 -0
- package/workflow-bundle-agent-execution.js +29297 -0
- package/workflow-bundle-evals.js +11997 -0
- package/workflow-bundle-grading.js +11155 -0
- package/workflow-bundle-routine.js +11300 -0
- package/workflow-worker-thread.cjs +111 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,222258,967785,e=>{"use strict";let t,s=Symbol.for("yaml.alias"),n=Symbol.for("yaml.document"),i=Symbol.for("yaml.map"),r=Symbol.for("yaml.pair"),o=Symbol.for("yaml.scalar"),l=Symbol.for("yaml.seq"),a=Symbol.for("yaml.node.type"),c=e=>!!e&&"object"==typeof e&&e[a]===s,u=e=>!!e&&"object"==typeof e&&e[a]===n,f=e=>!!e&&"object"==typeof e&&e[a]===i,h=e=>!!e&&"object"==typeof e&&e[a]===r,d=e=>!!e&&"object"==typeof e&&e[a]===o,p=e=>!!e&&"object"==typeof e&&e[a]===l;function m(e){if(e&&"object"==typeof e)switch(e[a]){case i:case l:return!0}return!1}function y(e){if(e&&"object"==typeof e)switch(e[a]){case s:case i:case o:case l:return!0}return!1}let g=e=>(d(e)||m(e))&&!!e.anchor,b=Symbol("break visit"),k=Symbol("skip children"),w=Symbol("remove node");function v(e,t){let s=O(t);u(e)?S(null,e.contents,s,Object.freeze([e]))===w&&(e.contents=null):S(null,e,s,Object.freeze([]))}function S(e,t,s,n){let i=A(e,t,s,n);if(y(i)||h(i))return T(e,n,i),S(e,i,s,n);if("symbol"!=typeof i){if(m(t)){n=Object.freeze(n.concat(t));for(let e=0;e<t.items.length;++e){let i=S(e,t.items[e],s,n);if("number"==typeof i)e=i-1;else{if(i===b)return b;i===w&&(t.items.splice(e,1),e-=1)}}}else if(h(t)){n=Object.freeze(n.concat(t));let e=S("key",t.key,s,n);if(e===b)return b;e===w&&(t.key=null);let i=S("value",t.value,s,n);if(i===b)return b;i===w&&(t.value=null)}}return i}async function E(e,t){let s=O(t);u(e)?await N(null,e.contents,s,Object.freeze([e]))===w&&(e.contents=null):await N(null,e,s,Object.freeze([]))}async function N(e,t,s,n){let i=await A(e,t,s,n);if(y(i)||h(i))return T(e,n,i),N(e,i,s,n);if("symbol"!=typeof i){if(m(t)){n=Object.freeze(n.concat(t));for(let e=0;e<t.items.length;++e){let i=await N(e,t.items[e],s,n);if("number"==typeof i)e=i-1;else{if(i===b)return b;i===w&&(t.items.splice(e,1),e-=1)}}}else if(h(t)){n=Object.freeze(n.concat(t));let e=await N("key",t.key,s,n);if(e===b)return b;e===w&&(t.key=null);let i=await N("value",t.value,s,n);if(i===b)return b;i===w&&(t.value=null)}}return i}function O(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function A(e,t,s,n){return"function"==typeof s?s(e,t,n):f(t)?s.Map?.(e,t,n):p(t)?s.Seq?.(e,t,n):h(t)?s.Pair?.(e,t,n):d(t)?s.Scalar?.(e,t,n):c(t)?s.Alias?.(e,t,n):void 0}function T(e,t,s){let n=t[t.length-1];if(m(n))n.items[e]=s;else if(h(n))"key"===e?n.key=s:n.value=s;else if(u(n))n.contents=s;else{let e=c(n)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}v.BREAK=b,v.SKIP=k,v.REMOVE=w,E.BREAK=b,E.SKIP=k,E.REMOVE=w;let L={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},x=e=>e.replace(/[!,[\]{}]/g,e=>L[e]);class I{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},I.defaultYaml,e),this.tags=Object.assign({},I.defaultTags,t)}clone(){let e=new I(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new I(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:I.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},I.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:I.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},I.defaultTags),this.atNextDocument=!1);let s=e.trim().split(/[ \t]+/),n=s.shift();switch(n){case"%TAG":{if(2!==s.length&&(t(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;let[e,n]=s;return this.tags[e]=n,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==s.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=s;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let s=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,s),!1}}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let s=e.slice(2,-1);return"!"===s||"!!"===s?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),s)}let[,s,n]=e.match(/^(.*!)([^!]*)$/s);n||t(`The ${e} tag has no suffix`);let i=this.tags[s];if(i)try{return i+decodeURIComponent(n)}catch(e){return t(String(e)),null}return"!"===s?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,s]of Object.entries(this.tags))if(e.startsWith(s))return t+x(e.substring(s.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,s=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);if(e&&n.length>0&&y(e.contents)){let s={};v(e.contents,(e,t)=>{y(t)&&t.tag&&(s[t.tag]=!0)}),t=Object.keys(s)}else t=[];for(let[i,r]of n)("!!"!==i||"tag:yaml.org,2002:"!==r)&&(!e||t.some(e=>e.startsWith(r)))&&s.push(`%TAG ${i} ${r}`);return s.join("\n")}}function $(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function C(e){let t=new Set;return v(e,{Value(e,s){s.anchor&&t.add(s.anchor)}}),t}function _(e,t){for(let s=1;;++s){let n=`${e}${s}`;if(!t.has(n))return n}}function B(e,t,s,n){if(n&&"object"==typeof n)if(Array.isArray(n))for(let t=0,s=n.length;t<s;++t){let s=n[t],i=B(e,n,String(t),s);void 0===i?delete n[t]:i!==s&&(n[t]=i)}else if(n instanceof Map)for(let t of Array.from(n.keys())){let s=n.get(t),i=B(e,n,t,s);void 0===i?n.delete(t):i!==s&&n.set(t,i)}else if(n instanceof Set)for(let t of Array.from(n)){let s=B(e,n,t,t);void 0===s?n.delete(t):s!==t&&(n.delete(t),n.add(s))}else for(let[t,s]of Object.entries(n)){let i=B(e,n,t,s);void 0===i?delete n[t]:i!==s&&(n[t]=i)}return e.call(t,s,n)}function K(e,t,s){if(Array.isArray(e))return e.map((e,t)=>K(e,String(t),s));if(e&&"function"==typeof e.toJSON){if(!s||!g(e))return e.toJSON(t,s);let n={aliasCount:0,count:1,res:void 0};s.anchors.set(e,n),s.onCreate=e=>{n.res=e,delete s.onCreate};let i=e.toJSON(t,s);return s.onCreate&&s.onCreate(i),i}return"bigint"!=typeof e||s?.keep?e:Number(e)}I.defaultYaml={explicit:!1,version:"1.2"},I.defaultTags={"!!":"tag:yaml.org,2002:"};class M{constructor(e){Object.defineProperty(this,a,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:n,reviver:i}={}){if(!u(e))throw TypeError("A document argument is required");let r={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof s?s:100},o=K(this,"",r);if("function"==typeof n)for(let{count:e,res:t}of r.anchors.values())n(t,e);return"function"==typeof i?B(i,{"":o},"",o):o}}class j extends M{constructor(e){super(s),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let s,n;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let i of(t?.aliasResolveCache?s=t.aliasResolveCache:(s=[],v(e,{Node:(e,t)=>{(c(t)||g(t))&&s.push(t)}}),t&&(t.aliasResolveCache=s)),s)){if(i===this)break;i.anchor===this.source&&(n=i)}return n}toJSON(e,t){if(!t)return{source:this.source};let{anchors:s,doc:n,maxAliasCount:i}=t,r=this.resolve(n,t);if(!r)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let o=s.get(r);if(o||(K(r,null,t),o=s.get(r)),o?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=function e(t,s,n){if(c(s)){let e=s.resolve(t),i=n&&e&&n.get(e);return i?i.count*i.aliasCount:0}if(m(s)){let i=0;for(let r of s.items){let s=e(t,r,n);s>i&&(i=s)}return i}return h(s)?Math.max(e(t,s.key,n),e(t,s.value,n)):1}(n,r,s)),o.count*o.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,t,s){let n=`*${this.source}`;if(e){if($(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${n} `}return n}}let D=e=>!e||"function"!=typeof e&&"object"!=typeof e;class q extends M{constructor(e){super(o),this.value=e}toJSON(e,t){return t?.keep?this.value:K(this.value,e,t)}toString(){return String(this.value)}}function P(e,t,s){let n;if(u(e)&&(e=e.contents),y(e))return e;if(h(e)){let t=s.schema[i].createNode?.(s.schema,null,s);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"u">typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:o,onTagObj:a,schema:c,sourceObjects:f}=s;if(r&&e&&"object"==typeof e){if(n=f.get(e))return n.anchor??(n.anchor=o(e)),new j(n.anchor);n={anchor:null,node:null},f.set(e,n)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let d=function(e,t,s){if(t){let e=s.filter(e=>e.tag===t),n=e.find(e=>!e.format)??e[0];if(!n)throw Error(`Tag ${t} not found`);return n}return s.find(t=>t.identify?.(e)&&!t.format)}(e,t,c.tags);if(!d){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new q(e);return n&&(n.node=t),t}d=e instanceof Map?c[i]:Symbol.iterator in Object(e)?c[l]:c[i]}a&&(a(d),delete s.onTagObj);let p=d?.createNode?d.createNode(s.schema,e,s):"function"==typeof d?.nodeClass?.from?d.nodeClass.from(s.schema,e,s):new q(e);return t?p.tag=t:d.default||(p.tag=d.tag),n&&(n.node=p),p}function U(e,t,s){let n=s;for(let e=t.length-1;e>=0;--e){let s=t[e];if("number"==typeof s&&Number.isInteger(s)&&s>=0){let e=[];e[s]=n,n=e}else n=new Map([[s,n]])}return P(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}q.BLOCK_FOLDED="BLOCK_FOLDED",q.BLOCK_LITERAL="BLOCK_LITERAL",q.PLAIN="PLAIN",q.QUOTE_DOUBLE="QUOTE_DOUBLE",q.QUOTE_SINGLE="QUOTE_SINGLE";let R=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class F extends M{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>y(t)||h(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(R(e))this.add(t);else{let[s,...n]=e,i=this.get(s,!0);if(m(i))i.addIn(n,t);else if(void 0===i&&this.schema)this.set(s,U(this.schema,n,t));else throw Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}}deleteIn(e){let[t,...s]=e;if(0===s.length)return this.delete(t);let n=this.get(t,!0);if(m(n))return n.deleteIn(s);throw Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){let[s,...n]=e,i=this.get(s,!0);return 0===n.length?!t&&d(i)?i.value:i:m(i)?i.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!h(t))return!1;let s=t.value;return null==s||e&&d(s)&&null==s.value&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){let[t,...s]=e;if(0===s.length)return this.has(t);let n=this.get(t,!0);return!!m(n)&&n.hasIn(s)}setIn(e,t){let[s,...n]=e;if(0===n.length)this.set(s,t);else{let e=this.get(s,!0);if(m(e))e.setIn(n,t);else if(void 0===e&&this.schema)this.set(s,U(this.schema,n,t));else throw Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}}}let J=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function V(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let W=(e,t,s)=>e.endsWith("\n")?V(s,t):s.includes("\n")?"\n"+V(s,t):(e.endsWith(" ")?"":" ")+s,Y="flow",G="block",Q="quoted";function H(e,t,s="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:l}={}){let a,c,u;if(!i||i<0)return e;i<r&&(r=0);let f=Math.max(1+r,1+i-t.length);if(e.length<=f)return e;let h=[],d={},p=i-t.length;"number"==typeof n&&(n>i-Math.max(2,r)?h.push(0):p=i-n);let m=!1,y=-1,g=-1,b=-1;for(s===G&&-1!==(y=X(e,y,t.length))&&(p=y+f);u=e[y+=1];){if(s===Q&&"\\"===u){switch(g=y,e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}b=y}if("\n"===u)s===G&&(y=X(e,y,t.length)),p=y+t.length+f,a=void 0;else{if(" "===u&&c&&" "!==c&&"\n"!==c&&" "!==c){let t=e[y+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(a=y)}if(y>=p)if(a)h.push(a),p=a+f,a=void 0;else if(s===Q){for(;" "===c||" "===c;)c=u,u=e[y+=1],m=!0;let t=y>b+1?y-2:g-1;if(d[t])return e;h.push(t),d[t]=!0,p=t+f,a=void 0}else m=!0}c=u}if(m&&l&&l(),0===h.length)return e;o&&o();let k=e.slice(0,h[0]);for(let n=0;n<h.length;++n){let i=h[n],r=h[n+1]||e.length;0===i?k=`
|
|
2
|
+
${t}${e.slice(0,r)}`:(s===Q&&d[i]&&(k+=`${e[i]}\\`),k+=`
|
|
3
|
+
${t}${e.slice(i+1,r)}`)}return k}function X(e,t,s){let n=t,i=t+1,r=e[i];for(;" "===r||" "===r;)if(t<i+s)r=e[++t];else{do r=e[++t];while(r&&"\n"!==r)n=t,r=e[i=t+1]}return n}let z=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});function Z(e,t){let s=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return s;let{implicitKey:n}=t,i=t.options.doubleQuotedMinMultiLineLength,r=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),o="",l=0;for(let e=0,t=s[e];t;t=s[++e])if(" "===t&&"\\"===s[e+1]&&"n"===s[e+2]&&(o+=s.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(s[e+1]){case"u":{o+=s.slice(l,e);let t=s.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===t.substr(0,2)?o+="\\x"+t.substr(2):o+=s.substr(e,6)}e+=5,l=e+1}break;case"n":if(n||'"'===s[e+2]||s.length<i)e+=1;else{for(o+=s.slice(l,e)+"\n\n";"\\"===s[e+2]&&"n"===s[e+3]&&'"'!==s[e+4];)o+="\n",e+=2;o+=r," "===s[e+2]&&(o+="\\"),e+=1,l=e+1}break;default:e+=1}return o=l?o+s.slice(l):s,n?o:H(o,r,Q,z(t,!1))}function ee(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return Z(e,t);let s=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
4
|
+
${s}`)+"'";return t.implicitKey?n:H(n,s,Y,z(t,!1))}function et(e,t){let s,{singleQuote:n}=t.options;if(!1===n)s=Z;else{let t=e.includes('"'),i=e.includes("'");s=t&&!i?ee:i&&!t?Z:n?ee:Z}return s(e,t)}try{t=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{t=/\n+(?!\n|$)/g}function es({comment:e,type:s,value:n},i,r,o){let l,a,c,u,{blockQuote:f,commentString:h,lineWidth:d}=i.options;if(!f||/\n[\t ]+$/.test(n))return et(n,i);let p=i.indent||(i.forceBlockIndent||(u=n,/^(%|---|\.\.\.)/m.test(u))?" ":""),m="literal"===f||"folded"!==f&&s!==q.BLOCK_FOLDED&&(s===q.BLOCK_LITERAL||!function(e,t,s){if(!t||t<0)return!1;let n=t-s,i=e.length;if(i<=n)return!1;for(let t=0,s=0;t<i;++t)if("\n"===e[t]){if(t-s>n)return!0;if(i-(s=t+1)<=n)return!1}return!0}(n,d,p.length));if(!n)return m?"|\n":">\n";for(a=n.length;a>0;--a){let e=n[a-1];if("\n"!==e&&" "!==e&&" "!==e)break}let y=n.substring(a),g=y.indexOf("\n");-1===g?l="-":n===y||g!==y.length-1?(l="+",o&&o()):l="",y&&(n=n.slice(0,-y.length),"\n"===y[y.length-1]&&(y=y.slice(0,-1)),y=y.replace(t,`$&${p}`));let b=!1,k=-1;for(c=0;c<n.length;++c){let e=n[c];if(" "===e)b=!0;else if("\n"===e)k=c;else break}let w=n.substring(0,k<c?k+1:c);w&&(n=n.substring(w.length),w=w.replace(/\n+/g,`$&${p}`));let v=p?"2":"1",S=(b?v:"")+l;if(e&&(S+=" "+h(e.replace(/ ?[\r\n]+/g," ")),r&&r()),!m){let e=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`),t=!1,r=z(i,!0);"folded"!==f&&s!==q.BLOCK_FOLDED&&(r.onOverflow=()=>{t=!0});let o=H(`${w}${e}${y}`,p,G,r);if(!t)return`>${S}
|
|
5
|
+
${p}${o}`}return n=n.replace(/\n+/g,`$&${p}`),`|${S}
|
|
6
|
+
${p}${w}${n}${y}`}function en(e,t,s,n){let{implicitKey:i,inFlow:r}=t,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:l}=e;l!==q.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(l=q.QUOTE_DOUBLE);let a=e=>{switch(e){case q.BLOCK_FOLDED:case q.BLOCK_LITERAL:return i||r?et(o.value,t):es(o,t,s,n);case q.QUOTE_DOUBLE:return Z(o.value,t);case q.QUOTE_SINGLE:return ee(o.value,t);case q.PLAIN:return function(e,t,s,n){let{type:i,value:r}=e,{actualString:o,implicitKey:l,indent:a,indentStep:c,inFlow:u}=t;if(l&&r.includes("\n")||u&&/[[\]{},]/.test(r))return et(r,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return l||u||!r.includes("\n")?et(r,t):es(e,t,s,n);if(!l&&!u&&i!==q.PLAIN&&r.includes("\n"))return es(e,t,s,n);if(/^(%|---|\.\.\.)/m.test(r)){if(""===a)return t.forceBlockIndent=!0,es(e,t,s,n);else if(l&&a===c)return et(r,t)}let f=r.replace(/\n+/g,`$&
|
|
7
|
+
${a}`);if(o){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(f),{compat:s,tags:n}=t.doc.schema;if(n.some(e)||s?.some(e))return et(r,t)}return l?f:H(f,a,Y,z(t,!1))}(o,t,s,n);default:return null}},c=a(l);if(null===c){let{defaultKeyType:e,defaultStringType:s}=t.options,n=i&&e||s;if(null===(c=a(n)))throw Error(`Unsupported default string type ${n}`)}return c}function ei(e,t){let s,n=Object.assign({blockQuote:!0,commentString:J,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(n.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:s,options:n}}function er(e,t,s,n){let i;if(h(e))return e.toString(t,s,n);if(c(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let r=y(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??(i=function(e,t){let s,n;if(t.tag){let s=e.filter(e=>e.tag===t.tag);if(s.length>0)return s.find(e=>e.format===t.format)??s[0]}if(d(t)){s=t.value;let i=e.filter(e=>e.identify?.(s));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else s=t,n=e.find(e=>e.nodeClass&&s instanceof e.nodeClass);if(!n){let e=s?.constructor?.name??(null===s?"null":typeof s);throw Error(`Tag not resolved for ${e} value`)}return n}(t.doc.schema.tags,r));let o=function(e,t,{anchors:s,doc:n}){if(!n.directives)return"";let i=[],r=(d(e)||m(e))&&e.anchor;r&&$(r)&&(s.add(r),i.push(`&${r}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(n.directives.tagString(o)),i.join(" ")}(r,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let l="function"==typeof i.stringify?i.stringify(r,t,s,n):d(r)?en(r,t,s,n):r.toString(t,s,n);return o?d(r)||"{"===l[0]||"["===l[0]?`${o} ${l}`:`${o}
|
|
8
|
+
${t.indent}${l}`:l}function eo(e,t){("debug"===e||"warn"===e)&&console.warn(t)}let el={identify:e=>"<<"===e||"symbol"==typeof e&&"<<"===e.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new q(Symbol("<<")),{addToJSMap:ea}),stringify:()=>"<<"};function ea(e,t,s){let n=eu(e,s);if(p(n))for(let s of n.items)ec(e,t,s);else if(Array.isArray(n))for(let s of n)ec(e,t,s);else ec(e,t,n)}function ec(e,t,s){let n=eu(e,s);if(!f(n))throw Error("Merge sources must be maps or map aliases");for(let[s,i]of n.toJSON(null,e,Map))t instanceof Map?t.has(s)||t.set(s,i):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0});return t}function eu(e,t){return e&&c(t)?t.resolve(e.doc,e):t}function ef(e,t,{key:s,value:n}){if(y(s)&&s.addToJSMap)s.addToJSMap(e,t,n);else if((el.identify(s)||d(s)&&(!s.type||s.type===q.PLAIN)&&el.identify(s.value))&&e?.doc.schema.tags.some(e=>e.tag===el.tag&&e.default))ea(e,t,n);else{let i=K(s,"",e);if(t instanceof Map)t.set(i,K(n,i,e));else if(t instanceof Set)t.add(i);else{let r=function(e,t,s){if(null===t)return"";if("object"!=typeof t)return String(t);if(y(e)&&s?.doc){let t=ei(s.doc,{});for(let e of(t.anchors=new Set,s.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let n=e.toString(t);if(!s.mapKeyWarned){let e=JSON.stringify(n);e.length>40&&(e=e.substring(0,36)+'..."'),eo(s.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),s.mapKeyWarned=!0}return n}return JSON.stringify(t)}(s,i,e),o=K(n,r,e);r in t?Object.defineProperty(t,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[r]=o}}return t}function eh(e,t,s){return new ed(P(e,void 0,s),P(t,void 0,s))}class ed{constructor(e,t=null){Object.defineProperty(this,a,{value:r}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;return y(t)&&(t=t.clone(e)),y(s)&&(s=s.clone(e)),new ed(t,s)}toJSON(e,t){let s=t?.mapAsMap?new Map:{};return ef(t,s,this)}toString(e,t,s){return e?.doc?function({key:e,value:t},s,n,i){let r,o,l,{allNullValues:a,doc:c,indent:u,indentStep:f,options:{commentString:h,indentSeq:g,simpleKeys:b}}=s,k=y(e)&&e.comment||null;if(b){if(k)throw Error("With simple keys, key nodes cannot have comments");if(m(e)||!y(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let w=!b&&(!e||k&&null==t&&!s.inFlow||m(e)||(d(e)?e.type===q.BLOCK_FOLDED||e.type===q.BLOCK_LITERAL:"object"==typeof e));s=Object.assign({},s,{allNullValues:!1,implicitKey:!w&&(b||!a),indent:u+f});let v=!1,S=!1,E=er(e,s,()=>v=!0,()=>S=!0);if(!w&&!s.inFlow&&E.length>1024){if(b)throw Error("With simple keys, single line scalar must not span more than 1024 characters");w=!0}if(s.inFlow){if(a||null==t)return v&&n&&n(),""===E?"?":w?`? ${E}`:E}else if(a&&!b||null==t&&w)return E=`? ${E}`,k&&!v?E+=W(E,s.indent,h(k)):S&&i&&i(),E;v&&(k=null),w?(k&&(E+=W(E,s.indent,h(k))),E=`? ${E}
|
|
9
|
+
${u}:`):(E=`${E}:`,k&&(E+=W(E,s.indent,h(k)))),y(t)?(r=!!t.spaceBefore,o=t.commentBefore,l=t.comment):(r=!1,o=null,l=null,t&&"object"==typeof t&&(t=c.createNode(t))),s.implicitKey=!1,!w&&!k&&d(t)&&(s.indentAtStart=E.length+1),S=!1,!(!g&&f.length>=2&&!s.inFlow&&!w&&p(t))||t.flow||t.tag||t.anchor||(s.indent=s.indent.substring(2));let N=!1,O=er(t,s,()=>N=!0,()=>S=!0),A=" ";if(k||r||o){if(A=r?"\n":"",o){let e=h(o);A+=`
|
|
10
|
+
${V(e,s.indent)}`}""!==O||s.inFlow?A+=`
|
|
11
|
+
${s.indent}`:"\n"===A&&l&&(A="\n\n")}else if(!w&&m(t)){let e=O[0],n=O.indexOf("\n"),i=-1!==n,r=s.inFlow??t.flow??0===t.items.length;if(i||!r){let t=!1;if(i&&("&"===e||"!"===e)){let s=O.indexOf(" ");"&"===e&&-1!==s&&s<n&&"!"===O[s+1]&&(s=O.indexOf(" ",s+1)),(-1===s||n<s)&&(t=!0)}t||(A=`
|
|
12
|
+
${s.indent}`)}}else(""===O||"\n"===O[0])&&(A="");return E+=A+O,s.inFlow?N&&n&&n():l&&!N?E+=W(E,s.indent,h(l)):S&&i&&i(),E}(this,e,t,s):JSON.stringify(this)}}function ep(e,t,s){return(t.inFlow??e.flow?function({items:e},t,{flowChars:s,itemIndent:n}){let{indent:i,indentStep:r,flowCollectionPadding:o,options:{commentString:l}}=t,a=Object.assign({},t,{indent:n+=r,inFlow:!0,type:null}),c=!1,u=0,f=[];for(let s=0;s<e.length;++s){let i=e[s],r=null;if(y(i))i.spaceBefore&&f.push(""),em(t,f,i.commentBefore,!1),i.comment&&(r=i.comment);else if(h(i)){let e=y(i.key)?i.key:null;e&&(e.spaceBefore&&f.push(""),em(t,f,e.commentBefore,!1),e.comment&&(c=!0));let s=y(i.value)?i.value:null;s?(s.comment&&(r=s.comment),s.commentBefore&&(c=!0)):null==i.value&&e?.comment&&(r=e.comment)}r&&(c=!0);let o=er(i,a,()=>r=null);c||(c=f.length>u||o.includes("\n")),s<e.length-1?o+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(c||(c=f.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth)),c&&(o+=",")),r&&(o+=W(o,n,l(r))),f.push(o),u=f.length}let{start:d,end:p}=s;if(0===f.length)return d+p;if(!c){let e=f.reduce((e,t)=>e+t.length+2,2);c=t.options.lineWidth>0&&e>t.options.lineWidth}if(!c)return`${d}${o}${f.join(" ")}${o}${p}`;{let e=d;for(let t of f)e+=t?`
|
|
13
|
+
${r}${i}${t}`:"\n";return`${e}
|
|
14
|
+
${i}${p}`}}:function({comment:e,items:t},s,{blockItemPrefix:n,flowChars:i,itemIndent:r,onChompKeep:o,onComment:l}){let a,{indent:c,options:{commentString:u}}=s,f=Object.assign({},s,{indent:r,type:null}),d=!1,p=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(y(i))!d&&i.spaceBefore&&p.push(""),em(s,p,i.commentBefore,d),i.comment&&(o=i.comment);else if(h(i)){let e=y(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&p.push(""),em(s,p,e.commentBefore,d))}d=!1;let l=er(i,f,()=>o=null,()=>d=!0);o&&(l+=W(l,r,u(o))),d&&o&&(d=!1),p.push(n+l)}if(0===p.length)a=i.start+i.end;else{a=p[0];for(let e=1;e<p.length;++e){let t=p[e];a+=t?`
|
|
15
|
+
${c}${t}`:"\n"}}return e?(a+="\n"+V(u(e),c),l&&l()):d&&o&&o(),a})(e,t,s)}function em({indent:e,options:{commentString:t}},s,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){let i=V(t(n),e);s.push(i.trimStart())}}function ey(e,t){let s=d(t)?t.value:t;for(let n of e)if(h(n)&&(n.key===t||n.key===s||d(n.key)&&n.key.value===s))return n}class eg extends F{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i,e),this.items=[]}static from(e,t,s){let{keepUndefined:n,replacer:i}=s,r=new this(e),o=(e,o)=>{if("function"==typeof i)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==o||n)&&r.items.push(eh(e,o,s))};if(t instanceof Map)for(let[e,s]of t)o(e,s);else if(t&&"object"==typeof t)for(let e of Object.keys(t))o(e,t[e]);return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r}add(e,t){let s;s=h(e)?e:e&&"object"==typeof e&&"key"in e?new ed(e.key,e.value):new ed(e,e?.value);let n=ey(this.items,s.key),i=this.schema?.sortMapEntries;if(n){if(!t)throw Error(`Key ${s.key} already set`);d(n.value)&&D(s.value)?n.value.value=s.value:n.value=s.value}else if(i){let e=this.items.findIndex(e=>0>i(s,e));-1===e?this.items.push(s):this.items.splice(e,0,s)}else this.items.push(s)}delete(e){let t=ey(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let s=ey(this.items,e),n=s?.value;return(!t&&d(n)?n.value:n)??void 0}has(e){return!!ey(this.items,e)}set(e,t){this.add(new ed(e,t),!0)}toJSON(e,t,s){let n=s?new s:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(n),this.items))ef(t,n,e);return n}toString(e,t,s){if(!e)return JSON.stringify(this);for(let e of this.items)if(!h(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ep(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}let eb={collection:"map",default:!0,nodeClass:eg,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(f(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,s)=>eg.from(e,t,s)};class ek extends F{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(l,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=ew(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let s=ew(e);if("number"!=typeof s)return;let n=this.items[s];return!t&&d(n)?n.value:n}has(e){let t=ew(e);return"number"==typeof t&&t<this.items.length}set(e,t){let s=ew(e);if("number"!=typeof s)throw Error(`Expected a valid index, not ${e}.`);let n=this.items[s];d(n)&&D(t)?n.value=t:this.items[s]=t}toJSON(e,t){let s=[];t?.onCreate&&t.onCreate(s);let n=0;for(let e of this.items)s.push(K(e,String(n++),t));return s}toString(e,t,s){return e?ep(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:s,onComment:t}):JSON.stringify(this)}static from(e,t,s){let{replacer:n}=s,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let r of t){if("function"==typeof n){let s=t instanceof Set?r:String(e++);r=n.call(t,s,r)}i.items.push(P(r,void 0,s))}}return i}}function ew(e){let t=d(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let ev={collection:"seq",default:!0,nodeClass:ek,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(p(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,s)=>ek.from(e,t,s)},eS={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,s,n)=>en(e,t=Object.assign({actualString:!0},t),s,n)},eE={identify:e=>null==e,createNode:()=>new q(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new q(null),stringify:({source:e},t)=>"string"==typeof e&&eE.test.test(e)?e:t.options.nullStr},eN={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new q("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},s)=>e&&eN.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?s.options.trueStr:s.options.falseStr};function eO({format:e,minFractionDigits:t,tag:s,value:n}){if("bigint"==typeof n)return String(n);let i="number"==typeof n?n:Number(n);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=Object.is(n,-0)?"-0":JSON.stringify(n);if(!e&&t&&(!s||"tag:yaml.org,2002:float"===s)&&/^-?\d/.test(r)&&!r.includes("e")){let e=r.indexOf(".");e<0&&(e=r.length,r+=".");let s=t-(r.length-e-1);for(;s-- >0;)r+="0"}return r}let eA={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?0/0:"-"===e[0]?-1/0:1/0,stringify:eO},eT={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eO(e)}},eL={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new q(parseFloat(e)),s=e.indexOf(".");return -1!==s&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-s-1),t},stringify:eO},ex=e=>"bigint"==typeof e||Number.isInteger(e),eI=(e,t,s,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),s);function e$(e,t,s){let{value:n}=e;return ex(n)&&n>=0?s+n.toString(t):eO(e)}let eC={identify:e=>ex(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,s)=>eI(e,2,8,s),stringify:e=>e$(e,8,"0o")},e_={identify:ex,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,s)=>eI(e,0,10,s),stringify:eO},eB={identify:e=>ex(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,s)=>eI(e,2,16,s),stringify:e=>e$(e,16,"0x")},eK=[eb,ev,eS,eE,eN,eC,e_,eB,eA,eT,eL];function eM(e){return"bigint"==typeof e||Number.isInteger(e)}let ej=({value:e})=>JSON.stringify(e),eD=[eb,ev].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ej},{identify:e=>null==e,createNode:()=>new q(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ej},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:ej},{identify:eM,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:s})=>s?BigInt(e):parseInt(e,10),stringify:({value:e})=>eM(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ej}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),eq={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),s=new Uint8Array(t.length);for(let e=0;e<t.length;++e)s[e]=t.charCodeAt(e);return s}},stringify({comment:e,type:t,value:s},n,i,r){let o;if(!s)return"";if("function"==typeof btoa){let e="";for(let t=0;t<s.length;++t)e+=String.fromCharCode(s[t]);o=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=q.BLOCK_LITERAL),t!==q.QUOTE_DOUBLE){let e=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),s=Math.ceil(o.length/e),i=Array(s);for(let t=0,n=0;t<s;++t,n+=e)i[t]=o.substr(n,e);o=i.join(t===q.BLOCK_LITERAL?"\n":" ")}return en({comment:e,type:t,value:o},n,i,r)}};function eP(e,t){if(p(e))for(let s=0;s<e.items.length;++s){let n=e.items[s];if(!h(n)){if(f(n)){n.items.length>1&&t("Each pair must have its own sequence indicator");let e=n.items[0]||new ed(new q(null));if(n.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${n.commentBefore}
|
|
16
|
+
${e.key.commentBefore}`:n.commentBefore),n.comment){let t=e.value??e.key;t.comment=t.comment?`${n.comment}
|
|
17
|
+
${t.comment}`:n.comment}n=e}e.items[s]=h(n)?n:new ed(n)}}else t("Expected a sequence for this tag");return e}function eU(e,t,s){let{replacer:n}=s,i=new ek(e);i.tag="tag:yaml.org,2002:pairs";let r=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,l;if("function"==typeof n&&(e=n.call(t,String(r++),e)),Array.isArray(e))if(2===e.length)o=e[0],l=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)l=e[o=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(eh(o,l,s))}return i}let eR={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eP,createNode:eU};class eF extends ek{constructor(){super(),this.add=eg.prototype.add.bind(this),this.delete=eg.prototype.delete.bind(this),this.get=eg.prototype.get.bind(this),this.has=eg.prototype.has.bind(this),this.set=eg.prototype.set.bind(this),this.tag=eF.tag}toJSON(e,t){if(!t)return super.toJSON(e);let s=new Map;for(let e of(t?.onCreate&&t.onCreate(s),this.items)){let n,i;if(h(e)?(n=K(e.key,"",t),i=K(e.value,n,t)):n=K(e,"",t),s.has(n))throw Error("Ordered maps must not include duplicate keys");s.set(n,i)}return s}static from(e,t,s){let n=eU(e,t,s),i=new this;return i.items=n.items,i}}eF.tag="tag:yaml.org,2002:omap";let eJ={collection:"seq",identify:e=>e instanceof Map,nodeClass:eF,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let s=eP(e,t),n=[];for(let{key:e}of s.items)d(e)&&(n.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new eF,s)},createNode:(e,t,s)=>eF.from(e,t,s)};function eV({value:e,source:t},s){return t&&(e?eW:eY).test.test(t)?t:e?s.options.trueStr:s.options.falseStr}let eW={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new q(!0),stringify:eV},eY={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new q(!1),stringify:eV},eG=e=>"bigint"==typeof e||Number.isInteger(e);function eQ(e,t,s,{intAsBigInt:n}){let i=e[0];if(("-"===i||"+"===i)&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(s){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===i?BigInt(-1)*t:t}let r=parseInt(e,s);return"-"===i?-1*r:r}function eH(e,t,s){let{value:n}=e;if(eG(n)){let e=n.toString(t);return n<0?"-"+s+e.substr(1):s+e}return eO(e)}class eX extends eg{constructor(e){super(e),this.tag=eX.tag}add(e){let t;t=h(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new ed(e.key,null):new ed(e,null),ey(this.items,t.key)||this.items.push(t)}get(e,t){let s=ey(this.items,e);return!t&&h(s)?d(s.key)?s.key.value:s.key:s}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let s=ey(this.items,e);s&&!t?this.items.splice(this.items.indexOf(s),1):!s&&t&&this.items.push(new ed(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,s);throw Error("Set items must all have null values")}static from(e,t,s){let{replacer:n}=s,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof n&&(e=n.call(t,e,e)),i.items.push(eh(e,null,s));return i}}eX.tag="tag:yaml.org,2002:set";let ez={collection:"map",identify:e=>e instanceof Set,nodeClass:eX,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,s)=>eX.from(e,t,s),resolve(e,t){if(f(e))if(e.hasAllNullValues(!0))return Object.assign(new eX,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function eZ(e,t){let s=e[0],n="-"===s||"+"===s?e.substring(1):e,i=e=>t?BigInt(e):Number(e),r=n.replace(/_/g,"").split(":").reduce((e,t)=>e*i(60)+i(t),i(0));return"-"===s?i(-1)*r:r}function e0(e){let{value:t}=e,s=e=>e;if("bigint"==typeof t)s=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return eO(e);let n="";t<0&&(n="-",t*=s(-1));let i=s(60),r=[t%i];return t<60?r.unshift(0):(t=(t-r[0])/i,r.unshift(t%i),t>=60&&(t=(t-r[0])/i,r.unshift(t))),n+r.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let e1={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:s})=>eZ(e,s),stringify:e0},e2={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>eZ(e,!1),stringify:e0},e9={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(e9.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,s,n,i,r,o,l]=t.map(Number),a=Date.UTC(s,n-1,i,r||0,o||0,l||0,t[7]?Number((t[7]+"00").substr(1,3)):0),c=t[8];if(c&&"Z"!==c){let e=eZ(c,!1);30>Math.abs(e)&&(e*=60),a-=6e4*e}return new Date(a)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},e8=[eb,ev,eS,eE,eW,eY,{identify:eG,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,s)=>eQ(e,2,2,s),stringify:e=>eH(e,2,"0b")},{identify:eG,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,s)=>eQ(e,1,8,s),stringify:e=>eH(e,8,"0")},{identify:eG,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,s)=>eQ(e,0,10,s),stringify:eO},{identify:eG,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,s)=>eQ(e,2,16,s),stringify:e=>eH(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?0/0:"-"===e[0]?-1/0:1/0,stringify:eO},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eO(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new q(parseFloat(e.replace(/_/g,""))),s=e.indexOf(".");if(-1!==s){let n=e.substring(s+1).replace(/_/g,"");"0"===n[n.length-1]&&(t.minFractionDigits=n.length)}return t},stringify:eO},eq,el,eJ,eR,ez,e1,e2,e9],e4=new Map([["core",eK],["failsafe",[eb,ev,eS]],["json",eD],["yaml11",e8],["yaml-1.1",e8]]),e6={binary:eq,bool:eN,float:eL,floatExp:eT,floatNaN:eA,floatTime:e2,int:e_,intHex:eB,intOct:eC,intTime:e1,map:eb,merge:el,null:eE,omap:eJ,pairs:eR,seq:ev,set:ez,timestamp:e9},e7={"tag:yaml.org,2002:binary":eq,"tag:yaml.org,2002:merge":el,"tag:yaml.org,2002:omap":eJ,"tag:yaml.org,2002:pairs":eR,"tag:yaml.org,2002:set":ez,"tag:yaml.org,2002:timestamp":e9};function e3(e,t,s){let n=e4.get(t);if(n&&!e)return s&&!n.includes(el)?n.concat(el):n.slice();let i=n;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(e4.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else"function"==typeof e&&(i=e(i.slice()));return s&&(i=i.concat(el)),i.reduce((e,t)=>{let s="string"==typeof t?e6[t]:t;if(!s){let e=JSON.stringify(t),s=Object.keys(e6).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${s}`)}return e.includes(s)||e.push(s),e},[])}let e5=(e,t)=>e.key<t.key?-1:+(e.key>t.key);class te{constructor({compat:e,customTags:t,merge:s,resolveKnownTags:n,schema:r,sortMapEntries:a,toStringDefaults:c}){this.compat=Array.isArray(e)?e3(e,"compat"):e?e3(null,e):null,this.name="string"==typeof r&&r||"core",this.knownTags=n?e7:{},this.tags=e3(t,this.name,s),this.toStringOptions=c??null,Object.defineProperty(this,i,{value:eb}),Object.defineProperty(this,o,{value:eS}),Object.defineProperty(this,l,{value:ev}),this.sortMapEntries="function"==typeof a?a:!0===a?e5:null}clone(){let e=Object.create(te.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class tt{constructor(e,t,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,a,{value:n});let i=null;"function"==typeof t||Array.isArray(t)?i=t:void 0===s&&t&&(s=t,t=void 0);let r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=r;let{version:o}=r;s?._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new I({version:o}),this.setSchema(o,s),this.contents=void 0===e?null:this.createNode(e,i,s)}clone(){let e=Object.create(tt.prototype,{[a]:{value:n}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=y(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ts(this.contents)&&this.contents.add(e)}addIn(e,t){ts(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let s=C(this);e.anchor=!t||s.has(t)?_(t||"a",s):t}return new j(e.anchor)}createNode(e,t,s){var n,i;let r,o,l,a;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else void 0===s&&t&&(s=t,t=void 0);let{aliasDuplicateObjects:c,anchorPrefix:u,flow:f,keepUndefined:h,onTagObj:p,tag:y}=s??{},{onAnchor:g,setAnchors:b,sourceObjects:k}=(n=this,i=u||"a",o=[],l=new Map,a=null,{onAnchor:e=>{o.push(e),a??(a=C(n));let t=_(i,a);return a.add(t),t},setAnchors:()=>{for(let e of o){let t=l.get(e);if("object"==typeof t&&t.anchor&&(d(t.node)||m(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:l}),w={aliasDuplicateObjects:c??!0,keepUndefined:h??!1,onAnchor:g,onTagObj:p,replacer:r,schema:this.schema,sourceObjects:k},v=P(e,y,w);return f&&m(v)&&(v.flow=!0),b(),v}createPair(e,t,s={}){return new ed(this.createNode(e,null,s),this.createNode(t,null,s))}delete(e){return!!ts(this.contents)&&this.contents.delete(e)}deleteIn(e){return R(e)?null!=this.contents&&(this.contents=null,!0):!!ts(this.contents)&&this.contents.deleteIn(e)}get(e,t){return m(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return R(e)?!t&&d(this.contents)?this.contents.value:this.contents:m(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!m(this.contents)&&this.contents.has(e)}hasIn(e){return R(e)?void 0!==this.contents:!!m(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=U(this.schema,[e],t):ts(this.contents)&&this.contents.set(e,t)}setIn(e,t){R(e)?this.contents=t:null==this.contents?this.contents=U(this.schema,Array.from(e),t):ts(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let s;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new I({version:"1.1"}),s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new I({version:e}),s={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(s)this.schema=new te(Object.assign(s,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:s,maxAliasCount:n,onAnchor:i,reviver:r}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===s,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},l=K(this.contents,t??"",o);if("function"==typeof i)for(let{count:e,res:t}of o.anchors.values())i(t,e);return"function"==typeof r?B(r,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let s=[],n=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(s.push(t),n=!0):e.directives.docStart&&(n=!0)}n&&s.push("---");let i=ei(e,t),{commentString:r}=i.options;if(e.commentBefore){1!==s.length&&s.unshift("");let t=r(e.commentBefore);s.unshift(V(t,""))}let o=!1,l=null;if(e.contents){if(y(e.contents)){if(e.contents.spaceBefore&&n&&s.push(""),e.contents.commentBefore){let t=r(e.contents.commentBefore);s.push(V(t,""))}i.forceBlockIndent=!!e.comment,l=e.contents.comment}let t=l?void 0:()=>o=!0,a=er(e.contents,i,()=>l=null,t);l&&(a+=W(a,"",r(l))),("|"===a[0]||">"===a[0])&&"---"===s[s.length-1]?s[s.length-1]=`--- ${a}`:s.push(a)}else s.push(er(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=r(e.comment);t.includes("\n")?(s.push("..."),s.push(V(t,""))):s.push(`... ${t}`)}else s.push("...");else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,"")),t&&((!o||l)&&""!==s[s.length-1]&&s.push(""),s.push(V(r(t),"")))}return s.join("\n")+"\n"}(this,e)}}function ts(e){if(m(e))return!0;throw Error("Expected a YAML collection as document contents")}class tn extends Error{constructor(e,t,s,n){super(),this.name=e,this.code=s,this.message=n,this.pos=t}}class ti extends tn{constructor(e,t,s){super("YAMLParseError",e,t,s)}}class tr extends tn{constructor(e,t,s){super("YAMLWarning",e,t,s)}}let to=(e,t)=>s=>{if(-1===s.pos[0])return;s.linePos=s.pos.map(e=>t.linePos(e));let{line:n,col:i}=s.linePos[0];s.message+=` at line ${n}, column ${i}`;let r=i-1,o=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){let e=Math.min(r-39,o.length-79);o="…"+o.substring(e),r-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,r))){let s=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);s.length>80&&(s=s.substring(0,79)+"…\n"),o=s+o}if(/[^ ]/.test(o)){let e=1,t=s.linePos[1];t?.line===n&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-r)));let l=" ".repeat(r)+"^".repeat(e);s.message+=`:
|
|
18
|
+
|
|
19
|
+
${o}
|
|
20
|
+
${l}
|
|
21
|
+
`}};function tl(e,{flow:t,indicator:s,next:n,offset:i,onError:r,parentIndent:o,startOnNewline:l}){let a=!1,c=l,u=l,f="",h="",d=!1,p=!1,m=null,y=null,g=null,b=null,k=null,w=null,v=null;for(let i of e)switch(p&&("space"!==i.type&&"newline"!==i.type&&"comma"!==i.type&&r(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),m&&(c&&"comment"!==i.type&&"newline"!==i.type&&r(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),i.type){case"space":!t&&("doc-start"!==s||n?.type!=="flow-collection")&&i.source.includes(" ")&&(m=i),u=!0;break;case"comment":{u||r(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=i.source.substring(1)||" ";f?f+=h+e:f=e,h="",c=!1;break}case"newline":c?f?f+=i.source:w&&"seq-item-ind"===s||(a=!0):h+=i.source,c=!0,d=!0,(y||g)&&(b=i),u=!0;break;case"anchor":y&&r(i,"MULTIPLE_ANCHORS","A node can have at most one anchor"),i.source.endsWith(":")&&r(i.offset+i.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),y=i,v??(v=i.offset),c=!1,u=!1,p=!0;break;case"tag":g&&r(i,"MULTIPLE_TAGS","A node can have at most one tag"),g=i,v??(v=i.offset),c=!1,u=!1,p=!0;break;case s:(y||g)&&r(i,"BAD_PROP_ORDER",`Anchors and tags must be after the ${i.source} indicator`),w&&r(i,"UNEXPECTED_TOKEN",`Unexpected ${i.source} in ${t??"collection"}`),w=i,c="seq-item-ind"===s||"explicit-key-ind"===s,u=!1;break;case"comma":if(t){k&&r(i,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),k=i,c=!1,u=!1;break}default:r(i,"UNEXPECTED_TOKEN",`Unexpected ${i.type} token`),c=!1,u=!1}let S=e[e.length-1],E=S?S.offset+S.source.length:i;return p&&n&&"space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&("scalar"!==n.type||""!==n.source)&&r(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(c&&m.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&r(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:k,found:w,spaceBefore:a,comment:f,hasNewline:d,anchor:y,tag:g,newlineAfterProp:b,end:E,start:v??E}}function ta(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let t of e.end)if("newline"===t.type)return!0}return!1;case"flow-collection":for(let t of e.items){for(let e of t.start)if("newline"===e.type)return!0;if(t.sep){for(let e of t.sep)if("newline"===e.type)return!0}if(ta(t.key)||ta(t.value))return!0}return!1;default:return!0}}function tc(e,t,s){if(t?.type==="flow-collection"){let n=t.end[0];n.indent===e&&("]"===n.source||"}"===n.source)&&ta(t)&&s(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function tu(e,t,s){let{uniqueKeys:n}=e.options;if(!1===n)return!1;let i="function"==typeof n?n:(e,t)=>e===t||d(e)&&d(t)&&e.value===t.value;return t.some(e=>i(e.key,s))}let tf="All mapping items must start at the same column";function th(e,t,s,n){let i="";if(e){let r=!1,o="";for(let l of e){let{source:e,type:a}=l;switch(a){case"space":r=!0;break;case"comment":{s&&!r&&n(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=e.substring(1)||" ";i?i+=o+t:i=t,o="";break}case"newline":i&&(o+=e),r=!0;break;default:n(l,"UNEXPECTED_TOKEN",`Unexpected ${a} at node end`)}t+=e.length}}return{comment:i,offset:t}}let td="Block collections are not allowed within flow collections",tp=e=>e&&("block-map"===e.type||"block-seq"===e.type);function tm(e,t,s,n,i,r){let o="block-map"===s.type?function({composeNode:e,composeEmptyNode:t},s,n,i,r){let o=new(r?.nodeClass??eg)(s.schema);s.atRoot&&(s.atRoot=!1);let l=n.offset,a=null;for(let r of n.items){let{start:c,key:u,sep:f,value:h}=r,d=tl(c,{indicator:"explicit-key-ind",next:u??f?.[0],offset:l,onError:i,parentIndent:n.indent,startOnNewline:!0}),p=!d.found;if(p){if(u&&("block-seq"===u.type?i(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in u&&u.indent!==n.indent&&i(l,"BAD_INDENT",tf)),!d.anchor&&!d.tag&&!f){a=d.end,d.comment&&(o.comment?o.comment+="\n"+d.comment:o.comment=d.comment);continue}(d.newlineAfterProp||ta(u))&&i(u??c[c.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else d.found?.indent!==n.indent&&i(l,"BAD_INDENT",tf);s.atKey=!0;let m=d.end,y=u?e(s,u,d,i):t(s,m,c,null,d,i);s.schema.compat&&tc(n.indent,u,i),s.atKey=!1,tu(s,o.items,y)&&i(m,"DUPLICATE_KEY","Map keys must be unique");let g=tl(f??[],{indicator:"map-value-ind",next:h,offset:y.range[2],onError:i,parentIndent:n.indent,startOnNewline:!u||"block-scalar"===u.type});if(l=g.end,g.found){p&&(h?.type!=="block-map"||g.hasNewline||i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),s.options.strict&&d.start<g.found.offset-1024&&i(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let a=h?e(s,h,g,i):t(s,l,f,null,g,i);s.schema.compat&&tc(n.indent,h,i),l=a.range[2];let c=new ed(y,a);s.options.keepSourceTokens&&(c.srcToken=r),o.items.push(c)}else{p&&i(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),g.comment&&(y.comment?y.comment+="\n"+g.comment:y.comment=g.comment);let e=new ed(y);s.options.keepSourceTokens&&(e.srcToken=r),o.items.push(e)}}return a&&a<l&&i(a,"IMPOSSIBLE","Map comment with trailing content"),o.range=[n.offset,l,a??l],o}(e,t,s,n,r):"block-seq"===s.type?function({composeNode:e,composeEmptyNode:t},s,n,i,r){let o=new(r?.nodeClass??ek)(s.schema);s.atRoot&&(s.atRoot=!1),s.atKey&&(s.atKey=!1);let l=n.offset,a=null;for(let{start:r,value:c}of n.items){let u=tl(r,{indicator:"seq-item-ind",next:c,offset:l,onError:i,parentIndent:n.indent,startOnNewline:!0});if(!u.found)if(u.anchor||u.tag||c)c?.type==="block-seq"?i(u.end,"BAD_INDENT","All sequence items must start at the same column"):i(l,"MISSING_CHAR","Sequence item without - indicator");else{a=u.end,u.comment&&(o.comment=u.comment);continue}let f=c?e(s,c,u,i):t(s,u.end,r,null,u,i);s.schema.compat&&tc(n.indent,c,i),l=f.range[2],o.items.push(f)}return o.range=[n.offset,l,a??l],o}(e,t,s,n,r):function({composeNode:e,composeEmptyNode:t},s,n,i,r){let o="{"===n.start.source,l=o?"flow map":"flow sequence",a=new(r?.nodeClass??(o?eg:ek))(s.schema);a.flow=!0;let c=s.atRoot;c&&(s.atRoot=!1),s.atKey&&(s.atKey=!1);let u=n.offset+n.start.source.length;for(let r=0;r<n.items.length;++r){let c=n.items[r],{start:f,key:d,sep:p,value:m}=c,y=tl(f,{flow:l,indicator:"explicit-key-ind",next:d??p?.[0],offset:u,onError:i,parentIndent:n.indent,startOnNewline:!1});if(!y.found){if(!y.anchor&&!y.tag&&!p&&!m){0===r&&y.comma?i(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):r<n.items.length-1&&i(y.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),y.comment&&(a.comment?a.comment+="\n"+y.comment:a.comment=y.comment),u=y.end;continue}!o&&s.options.strict&&ta(d)&&i(d,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===r)y.comma&&i(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(y.comma||i(y.start,"MISSING_CHAR",`Missing , between ${l} items`),y.comment){let e="";e:for(let t of f)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=a.items[a.items.length-1];h(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,y.comment=y.comment.substring(e.length+1)}}if(o||p||y.found){s.atKey=!0;let r=y.end,h=d?e(s,d,y,i):t(s,r,f,null,y,i);tp(d)&&i(h.range,"BLOCK_IN_FLOW",td),s.atKey=!1;let g=tl(p??[],{flow:l,indicator:"map-value-ind",next:m,offset:h.range[2],onError:i,parentIndent:n.indent,startOnNewline:!1});if(g.found){if(!o&&!y.found&&s.options.strict){if(p)for(let e of p){if(e===g.found)break;if("newline"===e.type){i(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}y.start<g.found.offset-1024&&i(g.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else m&&("source"in m&&m.source?.[0]===":"?i(m,"MISSING_CHAR",`Missing space after : in ${l}`):i(g.start,"MISSING_CHAR",`Missing , or : between ${l} items`));let b=m?e(s,m,g,i):g.found?t(s,g.end,p,null,g,i):null;b?tp(m)&&i(b.range,"BLOCK_IN_FLOW",td):g.comment&&(h.comment?h.comment+="\n"+g.comment:h.comment=g.comment);let k=new ed(h,b);if(s.options.keepSourceTokens&&(k.srcToken=c),o)tu(s,a.items,h)&&i(r,"DUPLICATE_KEY","Map keys must be unique"),a.items.push(k);else{let e=new eg(s.schema);e.flow=!0,e.items.push(k);let t=(b??h).range;e.range=[h.range[0],t[1],t[2]],a.items.push(e)}u=b?b.range[2]:g.end}else{let n=m?e(s,m,y,i):t(s,y.end,p,null,y,i);a.items.push(n),u=n.range[2],tp(m)&&i(n.range,"BLOCK_IN_FLOW",td)}}let f=o?"}":"]",[d,...p]=n.end,m=u;if(d?.source===f)m=d.offset+d.source.length;else{let e=l[0].toUpperCase()+l.substring(1),t=c?`${e} must end with a ${f}`:`${e} in block collection must be sufficiently indented and end with a ${f}`;i(u,c?"MISSING_CHAR":"BAD_INDENT",t),d&&1!==d.source.length&&p.unshift(d)}if(p.length>0){let e=th(p,m,s.options.strict,i);e.comment&&(a.comment?a.comment+="\n"+e.comment:a.comment=e.comment),a.range=[n.offset,m,e.offset]}else a.range=[n.offset,m,m];return a}(e,t,s,n,r),l=o.constructor;return"!"===i||i===l.tagName?o.tag=l.tagName:i&&(o.tag=i),o}function ty(e,t,s){let n=t.offset,i=function({offset:e,props:t},s,n){if("block-scalar-header"!==t[0].type)return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=t[0],r=i[0],o=0,l="",a=-1;for(let t=1;t<i.length;++t){let s=i[t];if(l||"-"!==s&&"+"!==s){let n=Number(s);!o&&n?o=n:-1===a&&(a=e+t)}else l=s}-1!==a&&n(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,u="",f=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case"space":c=!0;case"newline":f+=i.source.length;break;case"comment":s&&!c&&n(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=i.source.length,u=i.source.substring(1);break;case"error":n(i,"UNEXPECTED_TOKEN",i.message),f+=i.source.length;break;default:{let e=`Unexpected token in block scalar header: ${i.type}`;n(i,"UNEXPECTED_TOKEN",e);let t=i.source;t&&"string"==typeof t&&(f+=t.length)}}}return{mode:r,indent:o,chomp:l,comment:u,length:f}}(t,e.options.strict,s);if(!i)return{value:"",type:null,comment:"",range:[n,n,n]};let r=">"===i.mode?q.BLOCK_FOLDED:q.BLOCK_LITERAL,o=t.source?function(e){let t=e.split(/\n( *)/),s=t[0],n=s.match(/^( *)/),i=[n?.[1]?[n[1],s.slice(n[1].length)]:["",s]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}(t.source):[],l=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(""===t||"\r"===t)l=e;else break}if(0===l){let e="+"===i.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"",s=n+i.length;return t.source&&(s+=t.source.length),{value:e,type:r,comment:i.comment,range:[n,s,s]}}let a=t.indent+i.indent,c=t.offset+i.length,u=0;for(let t=0;t<l;++t){let[n,r]=o[t];if(""===r||"\r"===r)0===i.indent&&n.length>a&&(a=n.length);else{n.length<a&&s(c+n.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===i.indent&&(a=n.length),u=t,0!==a||e.atRoot||s(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=n.length+r.length+1}for(let e=o.length-1;e>=l;--e)o[e][0].length>a&&(l=e+1);let f="",h="",d=!1;for(let e=0;e<u;++e)f+=o[e][0].slice(a)+"\n";for(let e=u;e<l;++e){let[t,n]=o[e];c+=t.length+n.length+1;let l="\r"===n[n.length-1];if(l&&(n=n.slice(0,-1)),n&&t.length<a){let e=i.indent?"explicit indentation indicator":"first line",r=`Block scalar lines must not be less indented than their ${e}`;s(c-n.length-(l?2:1),"BAD_INDENT",r),t=""}r===q.BLOCK_LITERAL?(f+=h+t.slice(a)+n,h="\n"):t.length>a||" "===n[0]?(" "===h?h="\n":d||"\n"!==h||(h="\n\n"),f+=h+t.slice(a)+n,h="\n",d=!0):""===n?"\n"===h?f+="\n":h="\n":(f+=h+n,h=" ",d=!1)}switch(i.chomp){case"-":break;case"+":for(let e=l;e<o.length;++e)f+="\n"+o[e][0].slice(a);"\n"!==f[f.length-1]&&(f+="\n");break;default:f+="\n"}let p=n+i.length+t.source.length;return{value:f,type:r,comment:i.comment,range:[n,p,p]}}function tg(e,t,s){let n,i,{offset:r,type:o,source:l,end:a}=e,c=(e,t,n)=>s(r+e,t,n);switch(o){case"scalar":n=q.PLAIN,i=function(e,t){let s="";switch(e[0]){case" ":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":s=`block scalar indicator ${e[0]}`;break;case"@":case"`":s=`reserved character ${e[0]}`}return s&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`),tb(e)}(l,c);break;case"single-quoted-scalar":var u,f;n=q.QUOTE_SINGLE,u=l,f=c,("'"!==u[u.length-1]||1===u.length)&&f(u.length,"MISSING_CHAR","Missing closing 'quote"),i=tb(u.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":n=q.QUOTE_DOUBLE,i=function(e,t){let s="";for(let n=1;n<e.length-1;++n){let i=e[n];if("\r"!==i||"\n"!==e[n+1])if("\n"===i){let{fold:t,offset:i}=function(e,t){let s="",n=e[t+1];for(;(" "===n||" "===n||"\n"===n||"\r"===n)&&("\r"!==n||"\n"===e[t+2]);)"\n"===n&&(s+="\n"),t+=1,n=e[t+1];return s||(s=" "),{fold:s,offset:t}}(e,n);s+=t,n=i}else if("\\"===i){let i=e[++n],r=tk[i];if(r)s+=r;else if("\n"===i)for(i=e[n+1];" "===i||" "===i;)i=e[++n+1];else if("\r"===i&&"\n"===e[n+1])for(i=e[++n+1];" "===i||" "===i;)i=e[++n+1];else if("x"===i||"u"===i||"U"===i){let r="x"===i?2:"u"===i?4:8;s+=function(e,t,s,n){let i=e.substr(t,s),r=i.length===s&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):0/0;try{return String.fromCodePoint(r)}catch{let i=e.substr(t-2,s+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}}(e,n+1,r,t),n+=r}else{let i=e.substr(n-1,2);t(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),s+=i}}else if(" "===i||" "===i){let t=n,r=e[n+1];for(;" "===r||" "===r;)r=e[++n+1];"\n"!==r&&("\r"!==r||"\n"!==e[n+2])&&(s+=n>t?e.slice(t,n+1):i)}else s+=i}return('"'!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),s}(l,c);break;default:return s(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+l.length,r+l.length]}}let h=r+l.length,d=th(a,h,t,s);return{value:i,type:n,comment:d.comment,range:[r,h,d.offset]}}function tb(e){let t,s;try{t=RegExp("(.*?)(?<![ ])[ ]*\r?\n","sy"),s=RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n","sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,s=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=t.exec(e);if(!n)return e;let i=n[1],r=" ",o=t.lastIndex;for(s.lastIndex=o;n=s.exec(e);)""===n[1]?"\n"===r?i+=r:r="\n":(i+=r+n[1],r=" "),o=s.lastIndex;let l=/[ \t]*(.*)/sy;return l.lastIndex=o,n=l.exec(e),i+r+(n?.[1]??"")}let tk={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function tw(e,t,s,n){let i,r,{value:l,type:a,comment:c,range:u}="block-scalar"===t.type?ty(e,t,n):tg(t,e.options.strict,n),f=s?e.directives.tagName(s.source,e=>n(s,"TAG_RESOLVE_FAILED",e)):null;i=e.options.stringKeys&&e.atKey?e.schema[o]:f?function(e,t,s,n,i){if("!"===s)return e[o];let r=[];for(let t of e.tags)if(!t.collection&&t.tag===s)if(!t.default||!t.test)return t;else r.push(t);for(let e of r)if(e.test?.test(t))return e;let l=e.knownTags[s];return l&&!l.collection?(e.tags.push(Object.assign({},l,{default:!1,test:void 0})),l):(i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,"tag:yaml.org,2002:str"!==s),e[o])}(e.schema,l,f,s,n):"scalar"===t.type?function({atKey:e,directives:t,schema:s},n,i,r){let l=s.tags.find(t=>(!0===t.default||e&&"key"===t.default)&&t.test?.test(n))||s[o];if(s.compat){let e=s.compat.find(e=>e.default&&e.test?.test(n))??s[o];if(l.tag!==e.tag){let s=t.tagString(l.tag),n=t.tagString(e.tag);r(i,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${s} or ${n}`,!0)}}return l}(e,l,t,n):e.schema[o];try{let o=i.resolve(l,e=>n(s??t,"TAG_RESOLVE_FAILED",e),e.options);r=d(o)?o:new q(o)}catch(e){n(s??t,"TAG_RESOLVE_FAILED",e instanceof Error?e.message:String(e)),r=new q(l)}return r.range=u,r.source=l,a&&(r.type=a),f&&(r.tag=f),i.format&&(r.format=i.format),c&&(r.comment=c),r}let tv={composeNode:tS,composeEmptyNode:tE};function tS(e,t,s,n){let i,r=e.atKey,{spaceBefore:o,comment:l,anchor:a,tag:c}=s,u=!0;switch(t.type){case"alias":i=function({options:e},{offset:t,source:s,end:n},i){let r=new j(s.substring(1));""===r.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),r.source.endsWith(":")&&i(t+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=t+s.length,l=th(n,o,e.strict,i);return r.range=[t,o,l.offset],l.comment&&(r.comment=l.comment),r}(e,t,n),(a||c)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":i=tw(e,t,c,n),a&&(i.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{i=function(e,t,s,n,i){let r=n.tag,o=r?t.directives.tagName(r.source,e=>i(r,"TAG_RESOLVE_FAILED",e)):null;if("block-seq"===s.type){let{anchor:e,newlineAfterProp:t}=n,s=e&&r?e.offset>r.offset?e:r:e??r;s&&(!t||t.offset<s.offset)&&i(s,"MISSING_CHAR","Missing newline after block sequence props")}let l="block-map"===s.type?"map":"block-seq"===s.type?"seq":"{"===s.start.source?"map":"seq";if(!r||!o||"!"===o||o===eg.tagName&&"map"===l||o===ek.tagName&&"seq"===l)return tm(e,t,s,i,o);let a=t.schema.tags.find(e=>e.tag===o&&e.collection===l);if(!a){let n=t.schema.knownTags[o];if(n?.collection!==l)return n?i(r,"BAD_COLLECTION_TYPE",`${n.tag} used for ${l} collection, but expects ${n.collection??"scalar"}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),tm(e,t,s,i,o);t.schema.tags.push(Object.assign({},n,{default:!1})),a=n}let c=tm(e,t,s,i,o,a),u=a.resolve?.(c,e=>i(r,"TAG_RESOLVE_FAILED",e),t.options)??c,f=y(u)?u:new q(u);return f.range=c.range,f.tag=o,a?.format&&(f.format=a.format),f}(tv,e,t,s,n),a&&(i.anchor=a.source.substring(1))}catch(e){n(t,"RESOURCE_EXHAUSTION",e instanceof Error?e.message:String(e))}break;default:{let e="error"===t.type?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",e),u=!1}}return i??(i=tE(e,t.offset,void 0,null,s,n)),a&&""===i.anchor&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),r&&e.options.stringKeys&&(!d(i)||"string"!=typeof i.value||i.tag&&"tag:yaml.org,2002:str"!==i.tag)&&n(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(i.spaceBefore=!0),l&&("scalar"===t.type&&""===t.source?i.comment=l:i.commentBefore=l),e.options.keepSourceTokens&&u&&(i.srcToken=t),i}function tE(e,t,s,n,{spaceBefore:i,comment:r,anchor:o,tag:l,end:a},c){let u=tw(e,{type:"scalar",offset:function(e,t,s){if(t){s??(s=t.length);for(let n=s-1;n>=0;--n){let s=t[n];switch(s.type){case"space":case"comment":case"newline":e-=s.source.length;continue}for(s=t[++n];s?.type==="space";)e+=s.source.length,s=t[++n];break}}return e}(t,s,n),indent:-1,source:""},l,c);return o&&(u.anchor=o.source.substring(1),""===u.anchor&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(u.spaceBefore=!0),r&&(u.comment=r,u.range[2]=a),u}function tN(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:t,source:s}=e;return[t,t+("string"==typeof s?s.length:1)]}function tO(e){let t="",s=!1,n=!1;for(let i=0;i<e.length;++i){let r=e[i];switch(r[0]){case"#":t+=(""===t?"":n?"\n\n":"\n")+(r.substring(1)||" "),s=!0,n=!1;break;case"%":e[i+1]?.[0]!=="#"&&(i+=1),s=!1;break;default:s||(n=!0),s=!1}}return{comment:t,afterEmptyLine:n}}class tA{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,s,n)=>{let i=tN(e);n?this.warnings.push(new tr(i,t,s)):this.errors.push(new ti(i,t,s))},this.directives=new I({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:s,afterEmptyLine:n}=tO(this.prelude);if(s){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}
|
|
22
|
+
${s}`:s;else if(n||e.directives.docStart||!i)e.commentBefore=s;else if(m(i)&&!i.flow&&i.items.length>0){let e=i.items[0];h(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${s}
|
|
23
|
+
${t}`:s}else{let e=i.commentBefore;i.commentBefore=e?`${s}
|
|
24
|
+
${e}`:s}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:tO(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,s=-1){for(let t of e)yield*this.next(t);yield*this.end(t,s)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,s,n)=>{let i=tN(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",s,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=function(e,t,{offset:s,start:n,value:i,end:r},o){let l=new tt(void 0,Object.assign({_directives:t},e)),a={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},c=tl(n,{indicator:"doc-start",next:i??r?.[0],offset:s,onError:o,parentIndent:0,startOnNewline:!0});c.found&&(l.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!c.hasNewline&&o(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?tS(a,i,c,o):tE(a,c.end,n,null,c,o);let u=l.contents.range[2],f=th(r,u,!1,o);return f.comment&&(l.comment=f.comment),l.range=[s,u,f.offset],l}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,s=new ti(tN(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){this.errors.push(new ti(tN(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=th(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}
|
|
25
|
+
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new ti(tN(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new tt(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,t,t],this.decorate(e,!1),yield e}}}function tT(e,t){if(t)for(let s of t)switch(s.type){case"space":case"comment":e.push(s);break;case"newline":return e.push(s),!0}return!1}function tL(e,t,s){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=s,e.source=t;break;case"block-scalar":{let n=e.props.slice(1),i=t.length;for(let t of("block-scalar-header"===e.props[0].type&&(i-=e.props[0].source.length),n))t.offset+=i;delete e.props,Object.assign(e,{type:s,source:t,end:n});break}case"block-map":case"block-seq":{let n={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:s,source:t,end:[n]});break}default:{let n="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(let t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:s,indent:n,source:t,end:i})}}}let tx=Symbol("break visit"),tI=Symbol("skip children"),t$=Symbol("remove item");function tC(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,s,n){let i=n(s,t);if("symbol"==typeof i)return i;for(let r of["key","value"]){let o=s[r];if(o&&"items"in o){for(let s=0;s<o.items.length;++s){let i=e(Object.freeze(t.concat([[r,s]])),o.items[s],n);if("number"==typeof i)s=i-1;else{if(i===tx)return tx;i===t$&&(o.items.splice(s,1),s-=1)}}"function"==typeof i&&"key"===r&&(i=i(s,t))}}return"function"==typeof i?i(s,t):i}(Object.freeze([]),e,t)}function t_(e){switch(e){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function tB(e){switch(e.type){case"block-scalar":{let t="";for(let s of e.props)t+=tB(s);return t+e.source}case"block-map":case"block-seq":{let t="";for(let s of e.items)t+=tK(s);return t}case"flow-collection":{let t=e.start.source;for(let s of e.items)t+=tK(s);for(let s of e.end)t+=s.source;return t}case"document":{let t=tK(e);if(e.end)for(let s of e.end)t+=s.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let s of e.end)t+=s.source;return t}}}function tK({start:e,key:t,sep:s,value:n}){let i="";for(let t of e)i+=t.source;if(t&&(i+=tB(t)),s)for(let e of s)i+=e.source;return n&&(i+=tB(n)),i}tC.BREAK=tx,tC.SKIP=tI,tC.REMOVE=t$,tC.itemAtPath=(e,t)=>{let s=e;for(let[e,n]of t){let t=s?.[e];if(!t||!("items"in t))return;s=t.items[n]}return s},tC.parentCollection=(e,t)=>{let s=tC.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],i=s?.[n];if(i&&"items"in i)return i;throw Error("Parent collection not found")},e.s(["BOM",0,"\uFEFF","DOCUMENT",0,"\x02","FLOW_END",0,"\x18","SCALAR",0,"\x1f","createScalarToken",0,function(e,t){let{implicitKey:s=!1,indent:n,inFlow:i=!1,offset:r=-1,type:o="PLAIN"}=t,l=en({type:o,value:e},{implicitKey:s,indent:n>0?" ".repeat(n):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),a=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(l[0]){case"|":case">":{let e=l.indexOf("\n"),t=l.substring(0,e),s=l.substring(e+1)+"\n",i=[{type:"block-scalar-header",offset:r,indent:n,source:t}];return tT(i,a)||i.push({type:"newline",offset:-1,indent:n,source:"\n"}),{type:"block-scalar",offset:r,indent:n,props:i,source:s}}case'"':return{type:"double-quoted-scalar",offset:r,indent:n,source:l,end:a};case"'":return{type:"single-quoted-scalar",offset:r,indent:n,source:l,end:a};default:return{type:"scalar",offset:r,indent:n,source:l,end:a}}},"isCollection",0,e=>!!e&&"items"in e,"isScalar",0,e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type),"prettyToken",0,function(e){switch(e){case"\uFEFF":return"<BOM>";case"\x02":return"<DOC>";case"\x18":return"<FLOW_END>";case"\x1f":return"<SCALAR>";default:return JSON.stringify(e)}},"resolveAsScalar",0,function(e,t=!0,s){if(e){let n=(e,t,n)=>{let i="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(s)s(i,t,n);else throw new ti([i,i+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return tg(e,t,n);case"block-scalar":return ty({options:{strict:t}},e,n)}}return null},"setScalarValue",0,function(e,t,s={}){let{afterKey:n=!1,implicitKey:i=!1,inFlow:r=!1,type:o}=s,l="indent"in e?e.indent:null;if(n&&"number"==typeof l&&(l+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");o=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let a=en({type:o,value:t},{implicitKey:i||null===l,indent:null!==l&&l>0?" ".repeat(l):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}});switch(a[0]){case"|":case">":!function(e,t){let s=t.indexOf("\n"),n=t.substring(0,s),i=t.substring(s+1)+"\n";if("block-scalar"===e.type){let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");t.source=n,e.source=i}else{let{offset:t}=e,s="indent"in e?e.indent:-1,r=[{type:"block-scalar-header",offset:t,indent:s,source:n}];for(let t of(tT(r,"end"in e?e.end:void 0)||r.push({type:"newline",offset:-1,indent:s,source:"\n"}),Object.keys(e)))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:s,props:r,source:i})}}(e,a);break;case'"':tL(e,a,"double-quoted-scalar");break;case"'":tL(e,a,"single-quoted-scalar");break;default:tL(e,a,"scalar")}},"stringify",0,e=>"type"in e?tB(e):tK(e),"tokenType",0,t_,"visit",0,tC],594791);var tM=e.i(594791);function tj(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let tD=new Set("0123456789ABCDEFabcdef"),tq=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),tP=new Set(",[]{}"),tU=new Set(" ,[]{}\n\r "),tR=e=>!e||tU.has(e);class tF{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let s=this.next??"stream";for(;s&&(t||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let s=0;for(;" "===t;)t=this.buffer[++s+e];if("\r"===t){let t=this.buffer[s+e+1];if("\n"===t||!t&&!this.atEnd)return e+s+1}return"\n"!==t&&!(s>=this.indentNext)&&(t||this.atEnd)?-1:e+s}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&tj(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if("\uFEFF"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,s=e.indexOf("#");for(;-1!==s;){let n=e[s-1];if(" "===n||" "===n){t=s-1;break}s=e.indexOf("#",s+1)}for(;;){let s=e[t-1];if(" "===s||" "===s)t-=1;else break}let n=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let e=this.peek(3);if(("---"===e||"..."===e)&&tj(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!tj(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&tj(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(tR),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,s=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=s=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0)let n=this.getLine();if(null===n)return this.setNext("flow");if((-1!==s&&s<this.indentNext&&"#"!==n[0]||0===s&&(n.startsWith("---")||n.startsWith("..."))&&tj(n[3]))&&(s!==this.indentNext-1||1!==this.flowLevel||"]"!==n[0]&&"}"!==n[0]))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart();let i=0;for(;","===n[i];)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(n[i+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(tR),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||tj(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}let s=this.buffer.substring(0,t),n=s.indexOf("\n",this.pos);if(-1!==n){for(;-1!==n;){let e=this.continueScalar(n+1);if(-1===e)break;n=s.indexOf("\n",e)}-1!==n&&(t=n-("\r"===s[n-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>tj(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,s=0;e:for(let n=this.pos;e=this.buffer[n];++n)switch(e){case" ":s+=1;break;case"\n":t=n,s=0;break;case"\r":{let e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(s>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=s:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t)if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let n=t+1;for(e=this.buffer[n];" "===e;)e=this.buffer[++n];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++n];t=n-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,n=this.buffer[e];"\r"===n&&(n=this.buffer[--e]);let i=e;for(;" "===n;)n=this.buffer[--e];if("\n"===n&&e>=this.pos&&e+1+s>i)t=e;else break}return yield"\x1f",yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e,t=this.flowLevel>0,s=this.pos-1,n=this.pos-1;for(;e=this.buffer[++n];)if(":"===e){let e=this.buffer[n+1];if(tj(e)||t&&tP.has(e))break;s=n}else if(tj(e)){let i=this.buffer[n+1];if("\r"===e&&("\n"===i?(n+=1,e="\n",i=this.buffer[n+1]):s=n),"#"===i||t&&tP.has(i))break;if("\n"===e){let e=this.continueScalar(n+1);if(-1===e)break;n=Math.max(n,e-2)}}else{if(t&&tP.has(e))break;s=n}return e||this.atEnd?(yield"\x1f",yield*this.pushToIndex(s+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let s=this.buffer.slice(this.pos,e);return s?(yield s,this.pos+=s.length,s.length):(t&&(yield""),0)}*pushIndicators(){let e=0;for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue;case"&":e+=yield*this.pushUntil(tR),e+=yield*this.pushSpaces(!0);continue;case"-":case"?":case":":{let t=this.flowLevel>0,s=this.charAt(1);if(tj(s)||t&&tP.has(s)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue}}}break}return e}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!tj(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(tq.has(t))t=this.buffer[++e];else if("%"===t&&tD.has(this.buffer[e+1])&&tD.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,s=this.pos-1;do t=this.buffer[++s];while(" "===t||e&&" "===t)let n=s-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=s),n}*pushUntil(e){let t=this.pos,s=this.buffer[t];for(;!e(s);)s=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}function tJ(e,t){for(let s=0;s<e.length;++s)if(e[s].type===t)return!0;return!1}function tV(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return -1}function tW(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function tY(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function tG(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function tQ(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let s=0;s<t.length;++s)e.push(t[s])}function tH(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||tJ(t.start,"explicit-key-ind")||tJ(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,tW(t.value)?t.value.end?tQ(t.value.end,t.sep):t.value.end=t.sep:tQ(t.start,t.sep),delete t.sep)}class tX{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new tF,this.onNewLine=e}*parse(e,t=!1){for(let s of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(s);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=t_(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&tH(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let s=e.items[e.items.length-1];if(s.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(s.sep)s.value=t;else{Object.assign(s,{key:t,sep:[]}),this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{let s=e.items[e.items.length-1];s.value?e.items.push({start:[],value:t}):s.value=t;break}case"flow-collection":{let s=e.items[e.items.length-1];!s||s.value?e.items.push({start:[],key:t,sep:[]}):s.sep?s.value=t:Object.assign(s,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let s=t.items[t.items.length-1];s&&!s.sep&&!s.value&&s.start.length>0&&-1===tV(s.start)&&(0===t.indent||s.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=s.start:e.items.push({start:s.start}),t.items.splice(-1,1))}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":-1!==tV(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){let t,s=tG(tY(this.peek(2)));e.end?((t=e.end).push(this.sourceToken),delete e.end):t=[this.sourceToken];let n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:t}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let s="end"in t.value?t.value.end:void 0,n=Array.isArray(s)?s[s.length-1]:void 0;n?.type==="comment"?s?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let s=e.items[e.items.length-2],n=s?.value?.end;if(Array.isArray(n)){tQ(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let s=!this.onKeyLine&&this.indent===e.indent,n=s&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,i=[];if(n&&t.sep&&!t.value){let s=[];for(let n=0;n<t.sep.length;++n){let i=t.sep[n];switch(i.type){case"newline":s.push(n);break;case"space":break;case"comment":i.indent>e.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(i=t.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":n||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?n||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(tJ(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(tW(t.key)&&!tJ(t.sep,"newline")){let e=tG(t.start),s=t.key,n=t.sep;n.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:s,sep:n}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else if(tJ(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=tG(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:i,key:null,sep:[this.sourceToken]}):tJ(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let s=this.flowScalar(this.type);n||t.value?(e.items.push({start:i,key:s,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(s):(Object.assign(t,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{let n=this.startBlockValue(e);if(n){if("block-seq"===n.type){if(!t.explicitKey&&t.sep&&!tJ(t.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else s&&e.items.push({start:i});this.stack.push(n);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let s="end"in t.value?t.value.end:void 0,n=Array.isArray(s)?s[s.length-1]:void 0;n?.type==="comment"?s?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let s=e.items[e.items.length-2],n=s?.value?.end;if(Array.isArray(n)){tQ(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||tJ(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e?.type==="flow-collection")}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let s=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:s,sep:[]}):t.sep?this.stack.push(s):Object.assign(t,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let s=this.startBlockValue(e);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep))if("map-value-ind"===this.type&&"flow-collection"!==t.type){let s=tG(tY(t));tH(e);let n=e.end.splice(1,e.end.length);n.push(this.sourceToken);let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e);else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=tG(tY(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=tG(tY(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}class tz{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,s=this.lineStarts.length;for(;t<s;){let n=t+s>>1;this.lineStarts[n]<e?t=n+1:s=n}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};let n=this.lineStarts[t-1];return{line:t,col:e-n+1}}}}function tZ(e){let t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new tz||null,prettyErrors:t}}function t0(e,t={}){let{lineCounter:s,prettyErrors:n}=tZ(t),i=new tX(s?.addNewLine),r=new tA(t),o=Array.from(r.compose(i.parse(e)));if(n&&s)for(let t of o)t.errors.forEach(to(e,s)),t.warnings.forEach(to(e,s));return o.length>0?o:Object.assign([],{empty:!0},r.streamInfo())}function t1(e,t={}){let{lineCounter:s,prettyErrors:n}=tZ(t),i=new tX(s?.addNewLine),r=new tA(t),o=null;for(let t of r.compose(i.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new ti(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return n&&s&&(o.errors.forEach(to(e,s)),o.warnings.forEach(to(e,s))),o}function t2(e,t,s){let n;"function"==typeof t?n=t:void 0===s&&t&&"object"==typeof t&&(s=t);let i=t1(e,s);if(!i)return null;if(i.warnings.forEach(e=>eo(i.options.logLevel,e)),i.errors.length>0)if("silent"!==i.options.logLevel)throw i.errors[0];else i.errors=[];return i.toJS(Object.assign({reviver:n},s))}function t9(e,t,s){let n=null;if("function"==typeof t||Array.isArray(t)?n=t:void 0===s&&t&&(s=t),"string"==typeof s&&(s=s.length),"number"==typeof s){let e=Math.round(s);s=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=s??t??{};if(!e)return}return u(e)&&!n?e.toString(s):new tt(e,n,s).toString(s)}e.s(["x",0,t2,"a",0,t0,"r",0,t1,"b",0,t9],967785),e.s(["Alias",0,j,"CST",0,tM,"Composer",0,tA,"Document",0,tt,"Lexer",0,tF,"LineCounter",0,tz,"Pair",0,ed,"Parser",0,tX,"Scalar",0,q,"Schema",0,te,"YAMLError",0,tn,"YAMLMap",0,eg,"YAMLParseError",0,ti,"YAMLSeq",0,ek,"YAMLWarning",0,tr,"isAlias",0,c,"isCollection",0,m,"isDocument",0,u,"isMap",0,f,"isNode",0,y,"isPair",0,h,"isScalar",0,d,"isSeq",0,p,"parse",0,t2,"parseAllDocuments",0,t0,"parseDocument",0,t1,"stringify",0,t9,"visit",0,v,"visitAsync",0,E],194988),e.i(194988),e.s([],222258)}]);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,610008,e=>{"use strict";var t=e.i(974265),l=e.i(651023),n=e.i(170255),o=e.i(893976);function r(e,t){return"function"==typeof e?e(t):e}function i(e,t){return l=>{t.setState(t=>({...t,[e]:r(l,t[e])}))}}function s(e){return e instanceof Function}function a(e,t,l){let n,o=[];return r=>{let i,s;l.key&&l.debug&&(i=Date.now());let a=e(r);if(!(a.length!==o.length||a.some((e,t)=>o[t]!==e)))return n;if(o=a,l.key&&l.debug&&(s=Date.now()),n=t(...a),null==l||null==l.onChange||l.onChange(n),l.key&&l.debug&&null!=l&&l.debug()){let e=Math.round((Date.now()-i)*100)/100,t=Math.round((Date.now()-s)*100)/100,n=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`
|
|
2
|
+
font-size: .6rem;
|
|
3
|
+
font-weight: bold;
|
|
4
|
+
color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==l?void 0:l.key)}return n}}function u(e,t,l,n){return{debug:()=>{var l;return null!=(l=null==e?void 0:e.debugAll)?l:e[t]},key:!1,onChange:n}}let g="debugHeaders";function d(e,t,l){var n;let o={id:null!=(n=l.id)?n:t.id,column:t,index:l.index,isPlaceholder:!!l.isPlaceholder,placeholderId:l.placeholderId,depth:l.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(t),e.push(l)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}function c(e,t,l,n){var o,r;let i=0,s=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var l;null!=(l=e.columns)&&l.length&&s(e.columns,t+1)},0)};s(e);let a=[],u=(e,t)=>{let o={depth:t,id:[n,`${t}`].filter(Boolean).join("_"),headers:[]},r=[];e.forEach(e=>{let i,s=[...r].reverse()[0],a=e.column.depth===o.depth,u=!1;if(a&&e.column.parent?i=e.column.parent:(i=e.column,u=!0),s&&(null==s?void 0:s.column)===i)s.subHeaders.push(e);else{let o=d(l,i,{id:[n,t,i.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:u,placeholderId:u?`${r.filter(e=>e.column===i).length}`:void 0,depth:t,index:r.length});o.subHeaders.push(e),r.push(o)}o.headers.push(e),e.headerGroup=o}),a.push(o),t>0&&u(r,t-1)};u(t.map((e,t)=>d(l,e,{depth:i,index:t})),i-1),a.reverse();let g=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,l=0,n=[0];return e.subHeaders&&e.subHeaders.length?(n=[],g(e.subHeaders).forEach(e=>{let{colSpan:l,rowSpan:o}=e;t+=l,n.push(o)})):t=1,l+=Math.min(...n),e.colSpan=t,e.rowSpan=l,{colSpan:t,rowSpan:l}});return g(null!=(o=null==(r=a[0])?void 0:r.headers)?o:[]),a}let f=(e,t,l,n,o,r,i)=>{let s={id:t,index:n,original:l,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let l=e.getColumn(t);if(null!=l&&l.accessorFn)return s._valuesCache[t]=l.accessorFn(s.original,n),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let l=e.getColumn(t);if(null!=l&&l.accessorFn)return l.columnDef.getUniqueValues?s._uniqueValuesCache[t]=l.columnDef.getUniqueValues(s.original,n):s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]},renderValue:t=>{var l;return null!=(l=s.getValue(t))?l:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>{var e,t;let l,n;return e=s.subRows,t=e=>e.subRows,l=[],(n=e=>{e.forEach(e=>{l.push(e);let o=t(e);null!=o&&o.length&&n(o)})})(e),l},getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let l=t.getParentRow();if(!l)break;e.push(l),t=l}return e.reverse()},getAllCells:a(()=>[e.getAllLeafColumns()],t=>t.map(t=>{var l;let n;return l=t.id,n={id:`${s.id}_${t.id}`,row:s,column:t,getValue:()=>s.getValue(l),renderValue:()=>{var t;return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:a(()=>[e,t,s,n],(e,t,l,n)=>({table:e,column:t,row:l,cell:n,getValue:n.getValue,renderValue:n.renderValue}),u(e.options,"debugCells","cell.getContext"))},e._features.forEach(l=>{null==l.createCell||l.createCell(n,t,s,e)},{}),n}),u(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:a(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),u(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){let l=e._features[t];null==l||null==l.createRow||l.createRow(s,e)}return s},m=(e,t,l)=>{var n,o;let r=null==l||null==(n=l.toString())?void 0:n.toLowerCase();return!!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(r))};m.autoRemove=e=>F(e);let p=(e,t,l)=>{var n;return!!(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.includes(l))};p.autoRemove=e=>F(e);let h=(e,t,l)=>{var n;return(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.toLowerCase())===(null==l?void 0:l.toLowerCase())};h.autoRemove=e=>F(e);let b=(e,t,l)=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(l)};b.autoRemove=e=>F(e);let v=(e,t,l)=>!l.some(l=>{var n;return!(null!=(n=e.getValue(t))&&n.includes(l))});v.autoRemove=e=>F(e)||!(null!=e&&e.length);let C=(e,t,l)=>l.some(l=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(l)});C.autoRemove=e=>F(e)||!(null!=e&&e.length);let x=(e,t,l)=>e.getValue(t)===l;x.autoRemove=e=>F(e);let w=(e,t,l)=>e.getValue(t)==l;w.autoRemove=e=>F(e);let S=(e,t,l)=>{let[n,o]=l,r=e.getValue(t);return r>=n&&r<=o};S.resolveFilterValue=e=>{let[t,l]=e,n="number"!=typeof t?parseFloat(t):t,o="number"!=typeof l?parseFloat(l):l,r=null===t||Number.isNaN(n)?-1/0:n,i=null===l||Number.isNaN(o)?1/0:o;if(r>i){let e=r;r=i,i=e}return[r,i]},S.autoRemove=e=>F(e)||F(e[0])&&F(e[1]);let R={includesString:m,includesStringSensitive:p,equalsString:h,arrIncludes:b,arrIncludesAll:v,arrIncludesSome:C,equals:x,weakEquals:w,inNumberRange:S};function F(e){return null==e||""===e}function y(e,t,l){return!!e&&!!e.autoRemove&&e.autoRemove(t,l)||void 0===t||"string"==typeof t&&!t}let M={sum:(e,t,l)=>l.reduce((t,l)=>{let n=l.getValue(e);return t+("number"==typeof n?n:0)},0),min:(e,t,l)=>{let n;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(n>l||void 0===n&&l>=l)&&(n=l)}),n},max:(e,t,l)=>{let n;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(n<l||void 0===n&&l>=l)&&(n=l)}),n},extent:(e,t,l)=>{let n,o;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(void 0===n?l>=l&&(n=o=l):(n>l&&(n=l),o<l&&(o=l)))}),[n,o]},mean:(e,t)=>{let l=0,n=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o*=1)>=o&&(++l,n+=o)}),l)return n/l},median:(e,t)=>{if(!t.length)return;let l=t.map(t=>t.getValue(e));if(!(Array.isArray(l)&&l.every(e=>"number"==typeof e)))return;if(1===l.length)return l[0];let n=Math.floor(l.length/2),o=l.sort((e,t)=>e-t);return l.length%2!=0?o[n]:(o[n-1]+o[n])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},P=()=>({left:[],right:[]}),I={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},j=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),V=null;function _(e){return"touchstart"===e.type}function k(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let A=()=>({pageIndex:0,pageSize:10}),L=()=>({top:[],bottom:[]}),N=(e,t,l,n,o)=>{var r;let i=o.getRow(t,!0);l?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],n&&null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>N(e,t.id,l,n,o))};function G(e,t){let l=e.getState().rowSelection,n=[],o={},r=function(e,t){return e.map(e=>{var t;let i=E(e,l);if(i&&(n.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:r(e.subRows)}),i)return e}).filter(Boolean)};return{rows:r(t.rows),flatRows:n,rowsById:o}}function E(e,t){var l;return null!=(l=t[e.id])&&l}function D(e,t,l){var n;if(!(null!=(n=e.subRows)&&n.length))return!1;let o=!0,r=!1;return e.subRows.forEach(e=>{if((!r||o)&&(e.getCanSelect()&&(E(e,t)?r=!0:o=!1),e.subRows&&e.subRows.length)){let l=D(e,t);"all"===l?r=!0:("some"===l&&(r=!0),o=!1)}}),o?"all":!!r&&"some"}let z=/([0-9]+)/gm;function H(e,t){return e===t?0:e>t?1:-1}function O(e){return"number"==typeof e?isNaN(e)||1/0===e||-1/0===e?"":String(e):"string"==typeof e?e:""}function T(e,t){let l=e.split(z).filter(Boolean),n=t.split(z).filter(Boolean);for(;l.length&&n.length;){let e=l.shift(),t=n.shift(),o=parseInt(e,10),r=parseInt(t,10),i=[o,r].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>r)return 1;if(r>o)return -1}return l.length-n.length}let B={alphanumeric:(e,t,l)=>T(O(e.getValue(l)).toLowerCase(),O(t.getValue(l)).toLowerCase()),alphanumericCaseSensitive:(e,t,l)=>T(O(e.getValue(l)),O(t.getValue(l))),text:(e,t,l)=>H(O(e.getValue(l)).toLowerCase(),O(t.getValue(l)).toLowerCase()),textCaseSensitive:(e,t,l)=>H(O(e.getValue(l)),O(t.getValue(l))),datetime:(e,t,l)=>{let n=e.getValue(l),o=t.getValue(l);return n>o?1:n<o?-1:0},basic:(e,t,l)=>H(e.getValue(l),t.getValue(l))},q=[{createTable:e=>{e.getHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,l,n,o)=>{var r,i;let s=null!=(r=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?r:[],a=null!=(i=null==o?void 0:o.map(e=>l.find(t=>t.id===e)).filter(Boolean))?i:[];return c(t,[...s,...l.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=o&&o.includes(e.id))),...a],e)},u(e.options,g,"getHeaderGroups")),e.getCenterHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,l,n,o)=>c(t,l=l.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),u(e.options,g,"getCenterHeaderGroups")),e.getLeftHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,l,n)=>{var o;return c(t,null!=(o=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},u(e.options,g,"getLeftHeaderGroups")),e.getRightHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,l,n)=>{var o;return c(t,null!=(o=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},u(e.options,g,"getRightHeaderGroups")),e.getFooterGroups=a(()=>[e.getHeaderGroups()],e=>[...e].reverse(),u(e.options,g,"getFooterGroups")),e.getLeftFooterGroups=a(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),u(e.options,g,"getLeftFooterGroups")),e.getCenterFooterGroups=a(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),u(e.options,g,"getCenterFooterGroups")),e.getRightFooterGroups=a(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),u(e.options,g,"getRightFooterGroups")),e.getFlatHeaders=a(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),u(e.options,g,"getFlatHeaders")),e.getLeftFlatHeaders=a(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),u(e.options,g,"getLeftFlatHeaders")),e.getCenterFlatHeaders=a(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),u(e.options,g,"getCenterFlatHeaders")),e.getRightFlatHeaders=a(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),u(e.options,g,"getRightFlatHeaders")),e.getCenterLeafHeaders=a(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),u(e.options,g,"getCenterLeafHeaders")),e.getLeftLeafHeaders=a(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),u(e.options,g,"getLeftLeafHeaders")),e.getRightLeafHeaders=a(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),u(e.options,g,"getRightLeafHeaders")),e.getLeafHeaders=a(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,l)=>{var n,o,r,i,s,a;return[...null!=(n=null==(o=e[0])?void 0:o.headers)?n:[],...null!=(r=null==(i=t[0])?void 0:i.headers)?r:[],...null!=(s=null==(a=l[0])?void 0:a.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},u(e.options,g,"getLeafHeaders"))}},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:i("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=l=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=l?l:!e.getIsVisible()}))},e.getIsVisible=()=>{var l,n;let o=e.columns;return null==(l=o.length?o.some(e=>e.getIsVisible()):null==(n=t.getState().columnVisibility)?void 0:n[e.id])||l},e.getCanHide=()=>{var l,n;return(null==(l=e.columnDef.enableHiding)||l)&&(null==(n=t.options.enableHiding)||n)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=a(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),u(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=a(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,l)=>[...e,...t,...l],u(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,l)=>a(()=>[l(),l().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),u(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var l;e.setColumnVisibility(t?{}:null!=(l=e.initialState.columnVisibility)?l:{})},e.toggleAllColumnsVisible=t=>{var l;t=null!=(l=t)?l:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,l)=>({...e,[l.id]:t||!(null!=l.getCanHide&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var l;e.toggleAllColumnsVisible(null==(l=t.target)?void 0:l.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:i("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=a(e=>[k(t,e)],t=>t.findIndex(t=>t.id===e.id),u(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=l=>{var n;return(null==(n=k(t,l)[0])?void 0:n.id)===e.id},e.getIsLastColumn=l=>{var n;let o=k(t,l);return(null==(n=o[o.length-1])?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var l;e.setColumnOrder(t?[]:null!=(l=e.initialState.columnOrder)?l:[])},e._getOrderColumnsFn=a(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,l)=>n=>{let o=[];if(null!=e&&e.length){let t=[...e],l=[...n];for(;l.length&&t.length;){let e=t.shift(),n=l.findIndex(t=>t.id===e);n>-1&&o.push(l.splice(n,1)[0])}o=[...o,...l]}else o=n;var r=o;if(!(null!=t&&t.length)||!l)return r;let i=r.filter(e=>!t.includes(e.id));return"remove"===l?i:[...t.map(e=>r.find(t=>t.id===e)).filter(Boolean),...i]},u(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:P(),...e}),getDefaultOptions:e=>({onColumnPinningChange:i("columnPinning",e)}),createColumn:(e,t)=>{e.pin=l=>{let n=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,r,i,s,a;return"right"===l?{left:(null!=(r=null==e?void 0:e.left)?r:[]).filter(e=>!(null!=n&&n.includes(e))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=n&&n.includes(e))),...n]}:"left"===l?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=n&&n.includes(e))),...n],right:(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=n&&n.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=n&&n.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=n&&n.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var l,n,o;return(null==(l=e.columnDef.enablePinning)||l)&&(null==(n=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||n)}),e.getIsPinned=()=>{let l=e.getLeafColumns().map(e=>e.id),{left:n,right:o}=t.getState().columnPinning,r=l.some(e=>null==n?void 0:n.includes(e)),i=l.some(e=>null==o?void 0:o.includes(e));return r?"left":!!i&&"right"},e.getPinnedIndex=()=>{var l,n;let o=e.getIsPinned();return o?null!=(l=null==(n=t.getState().columnPinning)||null==(n=n[o])?void 0:n.indexOf(e.id))?l:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,l)=>{let n=[...null!=t?t:[],...null!=l?l:[]];return e.filter(e=>!n.includes(e.column.id))},u(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),u(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),u(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var l,n;return e.setColumnPinning(t?P():null!=(l=null==(n=e.initialState)?void 0:n.columnPinning)?l:P())},e.getIsSomeColumnsPinned=t=>{var l,n,o;let r=e.getState().columnPinning;return t?!!(null==(l=r[t])?void 0:l.length):!!((null==(n=r.left)?void 0:n.length)||(null==(o=r.right)?void 0:o.length))},e.getLeftLeafColumns=a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),u(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),u(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,l)=>{let n=[...null!=t?t:[],...null!=l?l:[]];return e.filter(e=>!n.includes(e.id))},u(e.options,"debugColumns","getCenterLeafColumns"))}},{createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:i("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let l=t.getCoreRowModel().flatRows[0],n=null==l?void 0:l.getValue(e.id);return"string"==typeof n?R.includesString:"number"==typeof n?R.inNumberRange:"boolean"==typeof n||null!==n&&"object"==typeof n?R.equals:Array.isArray(n)?R.arrIncludes:R.weakEquals},e.getFilterFn=()=>{var l,n;return s(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(l=null==(n=t.options.filterFns)?void 0:n[e.columnDef.filterFn])?l:R[e.columnDef.filterFn]},e.getCanFilter=()=>{var l,n,o;return(null==(l=e.columnDef.enableColumnFilter)||l)&&(null==(n=t.options.enableColumnFilters)||n)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var l;return null==(l=t.getState().columnFilters)||null==(l=l.find(t=>t.id===e.id))?void 0:l.value},e.getFilterIndex=()=>{var l,n;return null!=(l=null==(n=t.getState().columnFilters)?void 0:n.findIndex(t=>t.id===e.id))?l:-1},e.setFilterValue=l=>{t.setColumnFilters(t=>{var n,o;let i=e.getFilterFn(),s=null==t?void 0:t.find(t=>t.id===e.id),a=r(l,s?s.value:void 0);if(y(i,a,e))return null!=(n=null==t?void 0:t.filter(t=>t.id!==e.id))?n:[];let u={id:e.id,value:a};return s?null!=(o=null==t?void 0:t.map(t=>t.id===e.id?u:t))?o:[]:null!=t&&t.length?[...t,u]:[u]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let l=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var n;return null==(n=r(t,e))?void 0:n.filter(e=>{let t=l.find(t=>t.id===e.id);return!(t&&y(t.getFilterFn(),e.value,t))&&!0})})},e.resetColumnFilters=t=>{var l,n;e.setColumnFilters(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.columnFilters)?l:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel()}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:i("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var l;let n=null==(l=e.getCoreRowModel().flatRows[0])||null==(l=l._getAllCellsByColumnId()[t.id])?void 0:l.getValue();return"string"==typeof n||"number"==typeof n}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var l,n,o,r;return(null==(l=e.columnDef.enableGlobalFilter)||l)&&(null==(n=t.options.enableGlobalFilter)||n)&&(null==(o=t.options.enableFilters)||o)&&(null==(r=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||r)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>R.includesString,e.getGlobalFilterFn=()=>{var t,l;let{globalFilterFn:n}=e.options;return s(n)?n:"auto"===n?e.getGlobalAutoFilterFn():null!=(t=null==(l=e.options.filterFns)?void 0:l[n])?t:R[n]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:i("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let l=t.getFilteredRowModel().flatRows.slice(10),n=!1;for(let t of l){let l=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(l))return B.datetime;if("string"==typeof l&&(n=!0,l.split(z).length>1))return B.alphanumeric}return n?B.text:B.basic},e.getAutoSortDir=()=>{let l=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==l?void 0:l.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var l,n;if(!e)throw Error();return s(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(l=null==(n=t.options.sortingFns)?void 0:n[e.columnDef.sortingFn])?l:B[e.columnDef.sortingFn]},e.toggleSorting=(l,n)=>{let o=e.getNextSortingOrder(),r=null!=l;t.setSorting(i=>{let s,a=null==i?void 0:i.find(t=>t.id===e.id),u=null==i?void 0:i.findIndex(t=>t.id===e.id),g=[],d=r?l:"desc"===o;if("toggle"!=(s=null!=i&&i.length&&e.getCanMultiSort()&&n?a?"toggle":"add":null!=i&&i.length&&u!==i.length-1?"replace":a?"toggle":"replace")||r||o||(s="remove"),"add"===s){var c;(g=[...i,{id:e.id,desc:d}]).splice(0,g.length-(null!=(c=t.options.maxMultiSortColCount)?c:Number.MAX_SAFE_INTEGER))}else g="toggle"===s?i.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===s?i.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return g})},e.getFirstSortDir=()=>{var l,n;return(null!=(l=null!=(n=e.columnDef.sortDescFirst)?n:t.options.sortDescFirst)?l:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=l=>{var n,o;let r=e.getFirstSortDir(),i=e.getIsSorted();return i?(i===r||null!=(n=t.options.enableSortingRemoval)&&!n||!!l&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):r},e.getCanSort=()=>{var l,n;return(null==(l=e.columnDef.enableSorting)||l)&&(null==(n=t.options.enableSorting)||n)&&!!e.accessorFn},e.getCanMultiSort=()=>{var l,n;return null!=(l=null!=(n=e.columnDef.enableMultiSort)?n:t.options.enableMultiSort)?l:!!e.accessorFn},e.getIsSorted=()=>{var l;let n=null==(l=t.getState().sorting)?void 0:l.find(t=>t.id===e.id);return!!n&&(n.desc?"desc":"asc")},e.getSortIndex=()=>{var l,n;return null!=(l=null==(n=t.getState().sorting)?void 0:n.findIndex(t=>t.id===e.id))?l:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let l=e.getCanSort();return n=>{l&&(null==n.persist||n.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(n))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var l,n;e.setSorting(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.sorting)?l:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,l;return null!=(t=null==(l=e.getValue())||null==l.toString?void 0:l.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:i("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var l,n;return(null==(l=e.columnDef.enableGrouping)||l)&&(null==(n=t.options.enableGrouping)||n)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var l;return null==(l=t.getState().grouping)?void 0:l.includes(e.id)},e.getGroupedIndex=()=>{var l;return null==(l=t.getState().grouping)?void 0:l.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let l=t.getCoreRowModel().flatRows[0],n=null==l?void 0:l.getValue(e.id);return"number"==typeof n?M.sum:"[object Date]"===Object.prototype.toString.call(n)?M.extent:void 0},e.getAggregationFn=()=>{var l,n;if(!e)throw Error();return s(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(l=null==(n=t.options.aggregationFns)?void 0:n[e.columnDef.aggregationFn])?l:M[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var l,n;e.setGrouping(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.grouping)?l:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=l=>{if(e._groupingValuesCache.hasOwnProperty(l))return e._groupingValuesCache[l];let n=t.getColumn(l);return null!=n&&n.columnDef.getGroupingValue?(e._groupingValuesCache[l]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[l]):e.getValue(l)},e._groupingValuesCache={}},createCell:(e,t,l,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===l.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=l.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:i("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,l=!1;e._autoResetExpanded=()=>{var n,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?n:!e.options.manualExpanding){if(l)return;l=!0,e._queue(()=>{e.resetExpanded(),l=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var l,n;e.setExpanded(t?{}:null!=(l=null==(n=e.initialState)?void 0:n.expanded)?l:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let l=e.split(".");t=Math.max(t,l.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=l=>{t.setExpanded(n=>{var o;let r=!0===n||!!(null!=n&&n[e.id]),i={};if(!0===n?Object.keys(t.getRowModel().rowsById).forEach(e=>{i[e]=!0}):i=n,l=null!=(o=l)?o:!r,!r&&l)return{...i,[e.id]:!0};if(r&&!l){let{[e.id]:t,...l}=i;return l}return n})},e.getIsExpanded=()=>{var l;let n=t.getState().expanded;return!!(null!=(l=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?l:!0===n||(null==n?void 0:n[e.id]))},e.getCanExpand=()=>{var l,n,o;return null!=(l=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?l:(null==(n=t.options.enableExpanding)||n)&&!!(null!=(o=e.subRows)&&o.length)},e.getIsAllParentsExpanded=()=>{let l=!0,n=e;for(;l&&n.parentId;)l=(n=t.getRow(n.parentId,!0)).getIsExpanded();return l},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...A(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:i("pagination",e)}),createTable:e=>{let t=!1,l=!1;e._autoResetPageIndex=()=>{var n,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?n:!e.options.manualPagination){if(l)return;l=!0,e._queue(()=>{e.resetPageIndex(),l=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>r(t,e)),e.resetPagination=t=>{var l;e.setPagination(t?A():null!=(l=e.initialState.pagination)?l:A())},e.setPageIndex=t=>{e.setPagination(l=>{let n=r(t,l.pageIndex);return n=Math.max(0,Math.min(n,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...l,pageIndex:n}})},e.resetPageIndex=t=>{var l,n;e.setPageIndex(t?0:null!=(l=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageIndex)?l:0)},e.resetPageSize=t=>{var l,n;e.setPageSize(t?10:null!=(l=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageSize)?l:10)},e.setPageSize=t=>{e.setPagination(e=>{let l=Math.max(1,r(t,e.pageSize)),n=Math.floor(e.pageSize*e.pageIndex/l);return{...e,pageIndex:n,pageSize:l}})},e.setPageCount=t=>e.setPagination(l=>{var n;let o=r(t,null!=(n=e.options.pageCount)?n:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...l,pageCount:o}}),e.getPageOptions=a(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},u(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,l=e.getPageCount();return -1===l||0!==l&&t<l-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:L(),...e}),getDefaultOptions:e=>({onRowPinningChange:i("rowPinning",e)}),createRow:(e,t)=>{e.pin=(l,n,o)=>{let r=n?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],i=new Set([...o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],e.id,...r]);t.setRowPinning(e=>{var t,n,o,r,s,a;return"bottom"===l?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=i&&i.has(e))),bottom:[...(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=i&&i.has(e))),...Array.from(i)]}:"top"===l?{top:[...(null!=(s=null==e?void 0:e.top)?s:[]).filter(e=>!(null!=i&&i.has(e))),...Array.from(i)],bottom:(null!=(a=null==e?void 0:e.bottom)?a:[]).filter(e=>!(null!=i&&i.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=i&&i.has(e))),bottom:(null!=(n=null==e?void 0:e.bottom)?n:[]).filter(e=>!(null!=i&&i.has(e)))}})},e.getCanPin=()=>{var l;let{enableRowPinning:n,enablePinning:o}=t.options;return"function"==typeof n?n(e):null==(l=null!=n?n:o)||l},e.getIsPinned=()=>{let l=[e.id],{top:n,bottom:o}=t.getState().rowPinning,r=l.some(e=>null==n?void 0:n.includes(e)),i=l.some(e=>null==o?void 0:o.includes(e));return r?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var l,n;let o=e.getIsPinned();if(!o)return -1;let r=null==(l="top"===o?t.getTopRows():t.getBottomRows())?void 0:l.map(e=>{let{id:t}=e;return t});return null!=(n=null==r?void 0:r.indexOf(e.id))?n:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var l,n;return e.setRowPinning(t?L():null!=(l=null==(n=e.initialState)?void 0:n.rowPinning)?l:L())},e.getIsSomeRowsPinned=t=>{var l,n,o;let r=e.getState().rowPinning;return t?!!(null==(l=r[t])?void 0:l.length):!!((null==(n=r.top)?void 0:n.length)||(null==(o=r.bottom)?void 0:o.length))},e._getPinnedRows=(t,l,n)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=l?l:[]).map(t=>{let l=e.getRow(t,!0);return l.getIsAllParentsExpanded()?l:null}):(null!=l?l:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:n}))},e.getTopRows=a(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,l)=>e._getPinnedRows(t,l,"top"),u(e.options,"debugRows","getTopRows")),e.getBottomRows=a(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,l)=>e._getPinnedRows(t,l,"bottom"),u(e.options,"debugRows","getBottomRows")),e.getCenterRows=a(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,l)=>{let n=new Set([...null!=t?t:[],...null!=l?l:[]]);return e.filter(e=>!n.has(e.id))},u(e.options,"debugRows","getCenterRows"))}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:i("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var l;return e.setRowSelection(t?{}:null!=(l=e.initialState.rowSelection)?l:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(l=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let n={...l},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(n[e.id]=!0)}):o.forEach(e=>{delete n[e.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(l=>{let n=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...l};return e.getRowModel().rows.forEach(t=>{N(o,t.id,n,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=a(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,l)=>Object.keys(t).length?G(e,l):{rows:[],flatRows:[],rowsById:{}},u(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=a(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,l)=>Object.keys(t).length?G(e,l):{rows:[],flatRows:[],rowsById:{}},u(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=a(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,l)=>Object.keys(t).length?G(e,l):{rows:[],flatRows:[],rowsById:{}},u(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:l}=e.getState(),n=!!(t.length&&Object.keys(l).length);return n&&t.some(e=>e.getCanSelect()&&!l[e.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:l}=e.getState(),n=!!t.length;return n&&t.some(e=>!l[e.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;let l=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return l>0&&l<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(l,n)=>{let o=e.getIsSelected();t.setRowSelection(r=>{var i;if(l=void 0!==l?l:!o,e.getCanSelect()&&o===l)return r;let s={...r};return N(s,e.id,l,null==(i=null==n?void 0:n.selectChildren)||i,t),s})},e.getIsSelected=()=>{let{rowSelection:l}=t.getState();return E(e,l)},e.getIsSomeSelected=()=>{let{rowSelection:l}=t.getState();return"some"===D(e,l)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:l}=t.getState();return"all"===D(e,l)},e.getCanSelect=()=>{var l;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(l=t.options.enableRowSelection)||l},e.getCanSelectSubRows=()=>{var l;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(l=t.options.enableSubRowSelection)||l},e.getCanMultiSelect=()=>{var l;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(l=t.options.enableMultiRowSelection)||l},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return l=>{var n;t&&e.toggleSelected(null==(n=l.target)?void 0:n.checked)}}}},{getDefaultColumnDef:()=>I,getInitialState:e=>({columnSizing:{},columnSizingInfo:j(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:i("columnSizing",e),onColumnSizingInfoChange:i("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var l,n,o;let r=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(l=e.columnDef.minSize)?l:I.minSize,null!=(n=null!=r?r:e.columnDef.size)?n:I.size),null!=(o=e.columnDef.maxSize)?o:I.maxSize)},e.getStart=a(e=>[e,k(t,e),t.getState().columnSizing],(t,l)=>l.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),u(t.options,"debugColumns","getStart")),e.getAfter=a(e=>[e,k(t,e),t.getState().columnSizing],(t,l)=>l.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),u(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:l,...n}=t;return n})},e.getCanResize=()=>{var l,n;return(null==(l=e.columnDef.enableResizing)||l)&&(null==(n=t.options.enableColumnResizing)||n)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,l=e=>{if(e.subHeaders.length)e.subHeaders.forEach(l);else{var n;t+=null!=(n=e.column.getSize())?n:0}};return l(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=l=>{let n=t.getColumn(e.column.id),o=null==n?void 0:n.getCanResize();return r=>{if(!n||!o||(null==r.persist||r.persist(),_(r)&&r.touches&&r.touches.length>1))return;let i=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],a=_(r)?Math.round(r.touches[0].clientX):r.clientX,u={},g=(e,l)=>{"number"==typeof l&&(t.setColumnSizingInfo(e=>{var n,o;let r="rtl"===t.options.columnResizeDirection?-1:1,i=(l-(null!=(n=null==e?void 0:e.startOffset)?n:0))*r,s=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,l]=e;u[t]=Math.round(100*Math.max(l+l*s,0))/100}),{...e,deltaOffset:i,deltaPercentage:s}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},d=e=>{g("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},c=l||("u">typeof document?document:null),f={moveHandler:e=>g("move",e.clientX),upHandler:e=>{null==c||c.removeEventListener("mousemove",f.moveHandler),null==c||c.removeEventListener("mouseup",f.upHandler),d(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),g("move",e.touches[0].clientX),!1),upHandler:e=>{var t;null==c||c.removeEventListener("touchmove",m.moveHandler),null==c||c.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},p=!!function(){if("boolean"==typeof V)return V;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return V=e}()&&{passive:!1};_(r)?(null==c||c.addEventListener("touchmove",m.moveHandler,p),null==c||c.addEventListener("touchend",m.upHandler,p)):(null==c||c.addEventListener("mousemove",f.moveHandler,p),null==c||c.addEventListener("mouseup",f.upHandler,p)),t.setColumnSizingInfo(e=>({...e,startOffset:a,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var l;e.setColumnSizing(t?{}:null!=(l=e.initialState.columnSizing)?l:{})},e.resetHeaderSizeInfo=t=>{var l;e.setColumnSizingInfo(t?j():null!=(l=e.initialState.columnSizingInfo)?l:j())},e.getTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getLeftHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getCenterHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getRightHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];var $=e.i(383370);let U=new Set(["table","cards","list"]);function W({label:e,sortable:l,sortDirection:n,onSort:r,className:i}){let s="asc"===n?"ascending":"desc"===n?"descending":void 0;return l?(0,t.jsx)("th",{scope:"col","aria-sort":s,className:(0,o.f)("stg:px-3 stg:py-2 stg:text-left stg:text-xs stg:font-medium stg:text-muted-foreground",i),children:(0,t.jsxs)("button",{type:"button",onClick:r,className:(0,o.f)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-sm stg:px-0.5 stg:py-0.5 stg:-mx-0.5","stg:hover:text-foreground stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",n&&"stg:text-foreground"),children:[e,(0,t.jsx)(X,{direction:n})]})}):(0,t.jsx)("th",{scope:"col",className:(0,o.f)("stg:px-3 stg:py-2 stg:text-left stg:text-xs stg:font-medium stg:text-muted-foreground",i),children:e})}function X({direction:e}){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:(0,o.f)("stg:shrink-0 stg:transition-transform",!e&&"stg:opacity-0 stg:group-hover:opacity-40","desc"===e&&"stg:rotate-180"),children:(0,t.jsx)("path",{d:"M6 2.5v7M3 6.5l3-4 3 4"})})}function K({checked:e,indeterminate:l=!1,onChange:n,"aria-label":r,className:i}){return(0,t.jsx)("input",{type:"checkbox",role:"checkbox",checked:e,ref:e=>{e&&(e.indeterminate=l)},onChange:e=>n(e.target.checked),"aria-label":r,className:(0,o.f)("stg:size-3.5 stg:shrink-0 stg:cursor-pointer stg:rounded stg:border stg:border-input","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-offset-1",i)})}function Q({table:e,enableSelection:l=!1,renderRowAction:n,onRowClick:r,"aria-label":i="Resources",className:s}){let a=e.getHeaderGroups(),u=e.getRowModel().rows,g=e.getIsAllRowsSelected(),d=e.getIsSomeRowsSelected();return(0,t.jsx)("div",{className:(0,o.f)("stg:overflow-x-auto",s),children:(0,t.jsxs)("table",{role:"table","aria-label":i,className:"stg:w-full stg:border-collapse stg:text-sm",children:[(0,t.jsx)("thead",{children:a.map(o=>(0,t.jsxs)("tr",{className:"stg:border-b stg:border-border",children:[l&&(0,t.jsx)("th",{scope:"col",className:"stg:w-10 stg:px-3 stg:py-2",children:(0,t.jsx)(K,{checked:g,indeterminate:d&&!g,onChange:e.getToggleAllRowsSelectedHandler()?()=>e.toggleAllRowsSelected(!g):()=>{},"aria-label":g?"Deselect all rows":"Select all rows"})}),o.headers.map(e=>{let l=e.column.getCanSort(),n=e.column.getIsSorted();return(0,t.jsx)(W,{label:"string"==typeof e.column.columnDef.header?e.column.columnDef.header:e.id,sortable:l,sortDirection:"asc"===n?"asc":"desc"===n?"desc":null,onSort:l?()=>e.column.toggleSorting():void 0},e.id)}),n&&(0,t.jsx)("th",{scope:"col",className:"stg:w-10 stg:px-3 stg:py-2",children:(0,t.jsx)("span",{className:"stg:sr-only",children:"Actions"})})]},o.id))}),(0,t.jsx)("tbody",{children:u.map(e=>(0,t.jsx)(J,{row:e,enableSelection:l,renderRowAction:n,onRowClick:r},e.id))})]})})}function J({row:e,enableSelection:n,renderRowAction:r,onRowClick:i}){let s=e.getIsSelected(),a=e.original,u=!!i;return(0,t.jsxs)("tr",{className:(0,o.f)("stg:border-b stg:border-border-muted stg:transition-colors",s&&"stg:bg-primary-subtle",u&&"stg:cursor-pointer stg:hover:bg-accent-hover"),onClick:u?e=>{let t=e.target;t.closest("button")||t.closest("input")||t.closest("[role='menu']")||t.closest("[role='menuitem']")||i(a)}:void 0,"aria-selected":n?s:void 0,children:[n&&(0,t.jsx)("td",{className:"stg:w-10 stg:px-3 stg:py-2",children:(0,t.jsx)(K,{checked:s,onChange:()=>e.toggleSelected(),"aria-label":`Select row ${e.id}`})}),e.getVisibleCells().map(e=>{var n,o,r,i,s;let a;return(0,t.jsx)("td",{className:"stg:px-3 stg:py-2 stg:text-sm stg:text-foreground",style:{minWidth:e.column.columnDef.minSize?`${e.column.columnDef.minSize}px`:void 0},children:(n=e.column.columnDef.cell,o=e.getContext(),n?"function"==typeof(i=r=n)&&(a=Object.getPrototypeOf(i)).prototype&&a.prototype.isReactComponent||"function"==typeof r||"object"==typeof(s=r)&&"symbol"==typeof s.$$typeof&&["react.memo","react.forward_ref"].includes(s.$$typeof.description)?l.createElement(n,o):n:null)},e.id)}),r&&(0,t.jsx)("td",{className:"stg:w-10 stg:px-3 stg:py-2 stg:text-right",children:r(a)})]})}function Y({items:e,renderCard:l,enableSelection:n=!1,selectedIds:r,onToggleSelection:i,getItemId:s=Z,renderCardAction:a,onCardClick:u,"aria-label":g="Resource cards",className:d}){return(0,t.jsx)("div",{role:"list","aria-label":g,className:(0,o.f)("stg:grid stg:grid-cols-1 stg:gap-3 stg:sm:grid-cols-2 stg:lg:grid-cols-3",d),children:e.map((e,g)=>{let d=s(e),c=r?.has(d)??!1,f=!!u;return(0,t.jsxs)("div",{role:"listitem","aria-selected":n?c:void 0,onClick:f?t=>{let l=t.target;l.closest("button")||l.closest("input")||l.closest("[role='menu']")||u(e)}:void 0,className:(0,o.f)("stg:relative stg:flex stg:rounded-lg stg:border stg:border-border stg:bg-card stg:p-4 stg:transition-colors",c&&"stg:border-primary/40 stg:bg-primary-subtle",f&&"stg:cursor-pointer stg:hover:border-primary/40 stg:hover:bg-accent-hover",f&&"stg:focus-within:ring-2 stg:focus-within:ring-ring"),children:[n&&i&&(0,t.jsx)("div",{className:"stg:absolute stg:left-2 stg:top-2",children:(0,t.jsx)(K,{checked:c,onChange:()=>i(d),"aria-label":`Select item ${d}`})}),(0,t.jsx)("div",{className:(0,o.f)("stg:min-w-0 stg:flex-1",n&&"stg:pl-5"),children:l(e,g)}),a&&(0,t.jsx)("div",{className:"stg:ml-2 stg:shrink-0",onClick:e=>e.stopPropagation(),children:a(e)})]},d||`card-${g}`)})})}function Z(e){return"string"==typeof e.id?e.id:"string"==typeof e.slug?e.slug:""}function ee({items:e,renderRow:l,enableSelection:n=!1,selectedIds:r,onToggleSelection:i,getItemId:s=et,renderRowAction:a,onRowClick:u,"aria-label":g="Resource list",className:d}){return(0,t.jsx)("div",{role:"list","aria-label":g,className:(0,o.f)("stg:flex stg:flex-col",d),children:e.map((e,g)=>{let d=s(e),c=r?.has(d)??!1,f=!!u;return(0,t.jsxs)("div",{role:"listitem","aria-selected":n?c:void 0,onClick:f?t=>{let l=t.target;l.closest("button")||l.closest("input")||l.closest("[role='menu']")||u(e)}:void 0,className:(0,o.f)("stg:flex stg:items-center stg:gap-3 stg:rounded-lg stg:px-3 stg:py-2.5 stg:transition-colors",c&&"stg:bg-primary-subtle",f&&"stg:cursor-pointer stg:hover:bg-accent-hover",f&&"stg:focus-within:ring-2 stg:focus-within:ring-inset stg:focus-within:ring-ring"),children:[n&&i&&(0,t.jsx)(K,{checked:c,onChange:()=>i(d),"aria-label":`Select item ${d}`}),(0,t.jsx)("div",{className:"stg:min-w-0 stg:flex-1",children:l(e,g)}),a&&(0,t.jsx)("div",{className:"stg:ml-auto stg:shrink-0",onClick:e=>e.stopPropagation(),children:a(e)})]},d||`row-${g}`)})})}function et(e){return"string"==typeof e.id?e.id:"string"==typeof e.slug?e.slug:""}function el({filters:e,filterDefs:l,onRemoveFilter:n,onClearAll:r,className:i}){if(0===e.length)return null;let s=new Map(l.map(e=>[e.id,e]));return(0,t.jsxs)("div",{role:"toolbar","aria-label":"Active filters",className:(0,o.f)("stg:flex stg:flex-wrap stg:items-center stg:gap-1.5",i),children:[e.map(e=>{let l=s.get(e.filterId),o=l?.label??e.filterId,r=function(e,t){let{value:l,operator:n}=e;if(Array.isArray(l)){if(t?.options){let e=new Map(t.options.map(e=>[e.value,e.label]));return l.map(t=>e.get(t)??t).join(", ")}return l.join(", ")}if(t?.options){let e=t.options.find(e=>e.value===l);if(e)return e.label}let o="gt"===n?"> ":"lt"===n?"< ":"gte"===n?">= ":"lte"===n?"<= ":"neq"===n?"not ":"contains"===n?"~ ":"";return`${o}${l}`}(e,l);return(0,t.jsx)(en,{label:o,value:r,onRemove:()=>n(e.filterId)},`${e.filterId}:${e.operator}`)}),e.length>1&&(0,t.jsx)("button",{type:"button",onClick:r,className:(0,o.f)("stg:text-xs stg:text-muted-foreground stg:transition-colors","stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:rounded-sm"),children:"Clear all"})]})}function en({label:e,value:l,onRemove:n}){return(0,t.jsxs)("span",{className:(0,o.f)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:bg-muted stg:px-2 stg:py-0.5 stg:text-xs stg:text-muted-foreground"),children:[(0,t.jsxs)("span",{className:"stg:font-medium",children:[e,":"]}),(0,t.jsx)("span",{children:l}),(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":`Remove ${e} filter`,className:(0,o.f)("stg:ml-0.5 stg:inline-flex stg:items-center stg:justify-center stg:rounded-sm stg:p-0.5","stg:text-muted-foreground-subtle stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,t.jsx)(eo,{})})]})}function eo(){return(0,t.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M2.5 2.5l5 5M7.5 2.5l-5 5"})})}let er={table:{label:"Table view",icon:function(){return(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"1.5",y:"1.5",width:"11",height:"11",rx:"1.5"}),(0,t.jsx)("path",{d:"M1.5 5.5h11M1.5 9h11M5.5 5.5v6"})]})}},cards:{label:"Card view",icon:function(){return(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"1.5",y:"1.5",width:"4.5",height:"4.5",rx:"1"}),(0,t.jsx)("rect",{x:"8",y:"1.5",width:"4.5",height:"4.5",rx:"1"}),(0,t.jsx)("rect",{x:"1.5",y:"8",width:"4.5",height:"4.5",rx:"1"}),(0,t.jsx)("rect",{x:"8",y:"8",width:"4.5",height:"4.5",rx:"1"})]})}},list:{label:"List view",icon:function(){return(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4.5 3h8M4.5 7h8M4.5 11h8"}),(0,t.jsx)("circle",{cx:"2",cy:"3",r:"0.75",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"2",cy:"7",r:"0.75",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"2",cy:"11",r:"0.75",fill:"currentColor",stroke:"none"})]})}}};function ei({value:e,onChange:l,modes:n=["table","cards","list"],className:r}){return(0,t.jsx)("div",{role:"radiogroup","aria-label":"View mode",className:(0,o.f)("stg:inline-flex stg:rounded-md stg:border stg:border-input",r),children:n.map(n=>{let{label:r,icon:i}=er[n],s=e===n;return(0,t.jsx)("button",{type:"button",role:"radio","aria-checked":s,"aria-label":r,onClick:()=>l(n),className:(0,o.f)("stg:inline-flex stg:items-center stg:justify-center stg:px-2 stg:py-1.5 stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:z-10","stg:first:rounded-l-[calc(var(--stgm-radius)-1px)] stg:last:rounded-r-[calc(var(--stgm-radius)-1px)]","stg:border-r stg:border-input stg:last:border-r-0",s?"stg:bg-accent stg:text-accent-foreground":"stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover"),children:(0,t.jsx)(i,{})},n)})})}function es({selectedCount:e,selectedItems:l,actions:n,onCancel:r,className:i}){return 0===e?null:(0,t.jsxs)("div",{role:"toolbar","aria-label":"Bulk actions","aria-live":"polite",className:(0,o.f)("stg:flex stg:items-center stg:gap-3 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:px-4 stg:py-2 stg:shadow-md",i),children:[(0,t.jsxs)("span",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:[e," ",1===e?"item":"items"," selected"]}),(0,t.jsx)("span",{className:"stg:h-4 stg:w-px stg:bg-border","aria-hidden":"true"}),(0,t.jsx)("div",{className:"stg:flex stg:items-center stg:gap-1",children:n.map(e=>(0,t.jsx)(ea,{action:e,selectedItems:l},e.id))}),(0,t.jsx)("button",{type:"button",onClick:r,className:(0,o.f)("stg:ml-auto stg:text-xs stg:text-muted-foreground stg:transition-colors","stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:rounded-sm"),children:"Cancel"})]})}function ea({action:e,selectedItems:l}){let n="destructive"===e.variant;return(0,t.jsxs)("button",{type:"button",disabled:e.disabled,onClick:()=>e.onAction(l),className:(0,o.f)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50",n?"stg:text-destructive stg:hover:bg-destructive-subtle":"stg:text-foreground stg:hover:bg-accent-hover"),children:[e.icon&&(0,t.jsx)("span",{className:"stg:shrink-0","aria-hidden":"true",children:e.icon}),e.label]})}function eu({open:e,onClose:l,children:n,"aria-label":r="Resource inspector",className:i}){return e?(0,t.jsxs)("aside",{role:"complementary","aria-label":r,className:(0,o.f)("stg:flex stg:w-80 stg:shrink-0 stg:flex-col stg:border-l stg:border-border stg:bg-card","stg:lg:w-96",i),children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:border-b stg:border-border stg:px-4 stg:py-2",children:[(0,t.jsx)("span",{className:"stg:text-xs stg:font-medium stg:text-muted-foreground",children:"Preview"}),(0,t.jsx)("button",{type:"button",onClick:l,"aria-label":"Close inspector",className:(0,o.f)("stg:inline-flex stg:items-center stg:justify-center stg:rounded-sm stg:p-1","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,t.jsx)(eg,{})})]}),(0,t.jsx)("div",{className:"stg:flex-1 stg:overflow-y-auto stg:p-4",children:n})]}):null}function eg(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3.5 3.5l7 7M10.5 3.5l-7 7"})})}var ed=e.i(311015);let ec={sm:"stg:size-6 stg:text-2xs",md:"stg:size-8 stg:text-xs"};function ef({name:e,slug:l,iconUrl:n,hidden:r,size:i="md",className:s}){if(r)return null;let a=ec[i];if(n)return(0,t.jsx)("span",{className:(0,o.f)("stg:inline-flex stg:shrink-0 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted",a,s),children:(0,t.jsx)("img",{src:n,alt:"",className:"stg:size-4/5 stg:object-contain"})});let u=(e||l).charAt(0).toUpperCase();return(0,t.jsx)("span",{"aria-hidden":"true",className:(0,o.f)("stg:inline-flex stg:shrink-0 stg:items-center stg:justify-center stg:rounded-full stg:bg-avatar stg:font-medium stg:text-muted-foreground",a,s),children:u})}var em=e.i(816418),ep=e.i(885795);function eh(e){return"string"==typeof e.id?e.id:"string"==typeof e.slug?e.slug:""}function eb({item:e}){let l=e.kind===n.X.skill;return(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:[(0,t.jsx)(ef,{name:e.name||e.slug,slug:e.slug,iconUrl:e.iconUrl||void 0,hidden:l}),(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e.name||e.slug}),e.org&&(0,t.jsx)(ep.f,{orgId:e.org,className:"stg:block stg:text-xs stg:text-muted-foreground"}),e.description&&(0,t.jsx)("p",{className:"stg:mt-0.5 stg:line-clamp-2 stg:text-xs stg:text-muted-foreground",children:e.description})]})]})}function ev({item:e}){let l=e.kind===n.X.skill;return(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)(ef,{name:e.name||e.slug,slug:e.slug,iconUrl:e.iconUrl||void 0,hidden:l,size:"sm"}),(0,t.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e.name||e.slug}),e.org&&(0,t.jsx)(ep.f,{orgId:e.org,className:"stg:text-xs stg:text-muted-foreground"}),e.description&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"stg:text-muted-foreground-subtle","aria-hidden":"true",children:"·"}),(0,t.jsx)("span",{className:"stg:truncate stg:text-xs stg:text-muted-foreground",children:e.description})]})]})}function eC({viewMode:e}){return"cards"===e?(0,t.jsx)("div",{className:"stg:grid stg:grid-cols-1 stg:gap-3 stg:sm:grid-cols-2 stg:lg:grid-cols-3","aria-busy":"true",children:Array.from({length:6},(e,l)=>(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-3 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:p-4","aria-hidden":"true",children:[(0,t.jsx)("div",{className:"stg:h-4 stg:w-3/5 stg:animate-pulse stg:rounded stg:bg-muted"}),(0,t.jsx)("div",{className:"stg:h-3 stg:w-2/5 stg:animate-pulse stg:rounded stg:bg-muted"}),(0,t.jsx)("div",{className:"stg:h-3 stg:w-full stg:animate-pulse stg:rounded stg:bg-muted"})]},l))}):(0,t.jsx)("div",{"aria-busy":"true",children:Array.from({length:5},(e,l)=>(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-3 stg:px-3 stg:py-2.5","aria-hidden":"true",children:[(0,t.jsx)("div",{className:"stg:h-4 stg:w-4 stg:shrink-0 stg:animate-pulse stg:rounded stg:bg-muted"}),(0,t.jsxs)("div",{className:"stg:flex-1 stg:space-y-2",children:[(0,t.jsx)("div",{className:"stg:h-4 stg:animate-pulse stg:rounded stg:bg-muted",style:{width:`${30+7*l%25}%`}}),(0,t.jsx)("div",{className:"stg:h-3 stg:animate-pulse stg:rounded stg:bg-muted",style:{width:`${55+5*l%20}%`}})]})]},l))})}function ex({pageNumber:e,hasPreviousPage:l,hasNextPage:n,onPreviousPage:r,onNextPage:i}){let s=(0,o.f)("stg:inline-flex stg:items-center stg:rounded-md stg:p-1.5","stg:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50");return(0,t.jsx)("nav",{"aria-label":"Pagination",className:"stg:flex stg:items-center stg:justify-end stg:border-t stg:border-border stg:pt-3",children:(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:r,disabled:!l,"aria-label":"Previous page",className:s,children:(0,t.jsx)(eS,{})}),(0,t.jsxs)("span",{className:"stg:text-xs stg:text-muted-foreground",children:["Page ",e]}),(0,t.jsx)("button",{type:"button",onClick:i,disabled:!n,"aria-label":"Next page",className:s,children:(0,t.jsx)(eR,{})})]})})}function ew({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"6.5",cy:"6.5",r:"4.5"}),(0,t.jsx)("path",{d:"m10 10 4 4"})]})}function eS(){return(0,t.jsx)("svg",{className:"stg:h-3.5 stg:w-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m10 3-5 5 5 5"})})}function eR(){return(0,t.jsx)("svg",{className:"stg:h-3.5 stg:w-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m6 3 5 5-5 5"})})}e.s(["f",0,function({listFn:e,org:n,columns:i=[],filterDefs:s=[],viewModes:g=["table","cards","list"],defaultViewMode:d="table",viewModeStorageKey:c,renderCard:m,renderRow:p,renderItemAction:h,renderInspector:b,bulkActions:v=[],onItemClick:C,initialFilters:x,initialSort:w,initialQuery:S,onStateChange:R,enableSelection:F=!1,getItemId:y=eh,refetchToken:M,emptyIcon:P,emptyTitle:I="No resources found",emptyDescription:j="Try adjusting your search or filters.",emptyAction:V,onRetry:_,headerAction:k,searchable:A=!0,searchPlaceholder:L="Search…","aria-label":N="Resource workbench",className:G}){let{viewMode:E,setViewMode:D}=function(e,t){let[n,o]=(0,l.useState)(()=>{if(!e)return t;try{let t=localStorage.getItem(e);if(t&&U.has(t))return t}catch{}return t});return{viewMode:n,setViewMode:(0,l.useCallback)(t=>{if(o(t),e)try{localStorage.setItem(e,t)}catch{}},[e])}}(c,d),z=function(e={}){let{initialFilters:t=[],initialSort:n=null,initialQuery:o="",onStateChange:r,queryDebounceMs:i=300}=e,[s,a]=(0,l.useState)(t),[u,g]=(0,l.useState)(n),[d,c]=(0,l.useState)(o),[f,m]=(0,l.useState)(o),p=(0,l.useRef)(r);p.current=r;let h=(0,l.useCallback)((e,t,l)=>{p.current?.({filters:e,sort:t,query:l})},[]),b=(0,l.useRef)(void 0),v=(0,l.useCallback)(e=>{c(e),clearTimeout(b.current),b.current=setTimeout(()=>{m(e)},i)},[i]),C=(0,l.useRef)(s);C.current=s;let x=(0,l.useRef)(u);x.current=u;let w=(0,l.useRef)(f);w.current!==f&&(w.current=f,h(C.current,x.current,f));let S=(0,l.useCallback)(e=>{a(t=>{let l=[...t.filter(t=>t.filterId!==e.filterId||t.operator!==e.operator),e];return h(l,x.current,w.current),l})},[h]),R=(0,l.useCallback)(e=>{a(t=>{let l=t.filter(t=>t.filterId!==e);return h(l,x.current,w.current),l})},[h]);return{filters:s,addFilter:S,removeFilter:R,clearFilters:(0,l.useCallback)(()=>{a([]),h([],x.current,w.current)},[h]),sort:u,setSort:(0,l.useCallback)(e=>{g(e),x.current=e,h(C.current,e,w.current)},[h]),query:d,debouncedQuery:f,setQuery:v,hasActiveFilters:s.length>0}}({filterDefs:s,initialFilters:x,initialSort:w,initialQuery:S,onStateChange:R,queryDebounceMs:300}),H=(0,em.$)(),O=(0,l.useMemo)(()=>!1!==H?i.filter(e=>"org"!==e.id):i,[i,H]),T=function(e){let{listFn:t,org:n,query:o="",pageSize:i=20,sort:s=null,onSortChange:g,columns:d=[],enableSelection:c=!1,getItemId:m,refetchToken:p}=e,h=(0,$.f)(t&&n?e=>t({org:n,query:o||void 0,pageSize:i,pageToken:e}):null,[t,n,o,i],p),{isLoading:b,isRefetching:v,error:C,refetch:x}=h,w=h.entries,S=(0,l.useMemo)(()=>s?[{id:s.id,desc:"desc"===s.direction}]:[],[s]),R=(0,l.useRef)(g);R.current=g;let F=(0,l.useCallback)(e=>{let t="function"==typeof e?e(S):e;if(0===t.length)R.current?.(null);else{let e=t[0];R.current?.({id:e.id,direction:e.desc?"desc":"asc"})}},[S]),[y,M]=(0,l.useState)({}),P=`${h.pageNumber}-${o}`,I=(0,l.useRef)(P);(0,l.useEffect)(()=>{I.current!==P&&(I.current=P,M({}))},[P]);let j=(0,l.useMemo)(()=>d.map(e=>({id:e.id,header:e.header,cell:t=>e.cell(t.row.original),enableSorting:e.sortable??!1,size:e.minWidth,minSize:e.minWidth})),[d]),V=function(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=l.useState(()=>({current:function(e){var t,l;let n=[...q,...null!=(t=e._features)?t:[]],o={_features:n},i=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{}),s={...null!=(l=e.initialState)?l:{}};o._features.forEach(e=>{var t;s=null!=(t=null==e.getInitialState?void 0:e.getInitialState(s))?t:s});let g=[],d=!1,c={_features:n,options:{...i,...e},initialState:s,_queue:e=>{g.push(e),d||(d=!0,Promise.resolve().then(()=>{for(;g.length;)g.shift()();d=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{var t;t=r(e,o.options),o.options=o.options.mergeOptions?o.options.mergeOptions(i,t):{...i,...t}},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,l)=>{var n;return null!=(n=null==o.options.getRowId?void 0:o.options.getRowId(e,t,l))?n:`${l?[l.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let l=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!l&&!(l=o.getCoreRowModel().rowsById[e]))throw Error();return l},_getDefaultColumnDef:a(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,l;return null!=(t=null==(l=e.renderValue())||null==l.toString?void 0:l.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},u(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:a(()=>[o._getColumnDefs()],e=>{let t=function(e,l,n){return void 0===n&&(n=0),e.map(e=>{let r=function(e,t,l,n){var o,r;let i,s={...e._getDefaultColumnDef(),...t},g=s.accessorKey,d=null!=(o=null!=(r=s.id)?r:g?"function"==typeof String.prototype.replaceAll?g.replaceAll(".","_"):g.replace(/\./g,"_"):void 0)?o:"string"==typeof s.header?s.header:void 0;if(s.accessorFn?i=s.accessorFn:g&&(i=g.includes(".")?e=>{let t=e;for(let e of g.split(".")){var l;t=null==(l=t)?void 0:l[e]}return t}:e=>e[s.accessorKey]),!d)throw Error();let c={id:`${String(d)}`,accessorFn:i,parent:n,depth:l,columnDef:s,columns:[],getFlatColumns:a(()=>[!0],()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},u(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:a(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=c.columns)&&t.length?e(c.columns.flatMap(e=>e.getLeafColumns())):[c]},u(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(o,e,n,l);return r.columns=e.columns?t(e.columns,r,n+1):[],r})};return t(e)},u(e,"debugColumns","getAllColumns")),getAllFlatColumns:a(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),u(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:a(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),u(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:a(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),u(e,"debugColumns","getAllLeafColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,c);for(let e=0;e<o._features.length;e++){let t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}(t)})),[o,i]=l.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...o,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:w,columns:j,state:{sorting:S,rowSelection:y},onSortingChange:F,onRowSelectionChange:c?M:void 0,getCoreRowModel:e=>a(()=>[e.options.data],t=>{let l={rows:[],flatRows:[],rowsById:{}},n=function(t,o,r){void 0===o&&(o=0);let i=[];for(let a=0;a<t.length;a++){let u=f(e,e._getRowId(t[a],a,r),t[a],a,o,void 0,null==r?void 0:r.id);if(l.flatRows.push(u),l.rowsById[u.id]=u,i.push(u),e.options.getSubRows){var s;u.originalSubRows=e.options.getSubRows(t[a],a),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=n(u.originalSubRows,o+1,u))}}return i};return l.rows=n(t),l},u(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex())),getSortedRowModel:e=>a(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,l)=>{if(!l.rows.length||!(null!=t&&t.length))return l;let n=e.getState().sorting,o=[],r=n.filter(t=>{var l;return null==(l=e.getColumn(t.id))?void 0:l.getCanSort()}),i={};r.forEach(t=>{let l=e.getColumn(t.id);l&&(i[t.id]={sortUndefined:l.columnDef.sortUndefined,invertSorting:l.columnDef.invertSorting,sortingFn:l.getSortingFn()})});let s=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let n=0;n<r.length;n+=1){var l;let o=r[n],s=i[o.id],a=s.sortUndefined,u=null!=(l=null==o?void 0:o.desc)&&l,g=0;if(a){let l=e.getValue(o.id),n=t.getValue(o.id),r=void 0===l,i=void 0===n;if(r||i){if("first"===a)return r?-1:1;if("last"===a)return r?1:-1;g=r&&i?0:r?a:-a}}if(0===g&&(g=s.sortingFn(e,t,o.id)),0!==g)return u&&(g*=-1),s.invertSorting&&(g*=-1),g}return e.index-t.index}),t.forEach(e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(l.rows),flatRows:o,rowsById:l.rowsById}},u(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex())),getRowId:(e,t)=>m?.(e)||e.id||String(t),manualPagination:!0,manualSorting:!0,enableRowSelection:c}),_=j.length>0?V:null;return{items:w,pageNumber:h.pageNumber,hasNextPage:h.hasNext,hasPreviousPage:h.hasPrevious,nextPage:h.next,previousPage:h.previous,isLoading:b,isRefetching:v,error:C,refetch:x,table:_,rowSelection:y,setRowSelection:M}}({listFn:e,org:n,query:z.debouncedQuery,sort:z.sort,onSortChange:z.setSort,columns:O,enableSelection:F,getItemId:y,refetchToken:M}),B=function(e,t){let[n,o]=(0,l.useState)(new Set),r=(0,l.useRef)(null),i=(0,l.useMemo)(()=>{if(0===e.length)return"empty";let l=t(e[0]),n=t(e[e.length-1]);return`${e.length}:${l}:${n}`},[e,t]),s=(0,l.useRef)(i);(0,l.useEffect)(()=>{s.current!==i&&(s.current=i,o(new Set),r.current=null)},[i]);let a=(0,l.useCallback)(e=>{o(t=>{let l=new Set(t);return l.has(e)?l.delete(e):l.add(e),r.current=e,l})},[]),u=(0,l.useCallback)(l=>{let n=r.current;if(!n){o(e=>{let t=new Set(e);return t.add(l),t}),r.current=l;return}let i=e.map(t),s=i.indexOf(n),a=i.indexOf(l);if(-1===s||-1===a){o(e=>{let t=new Set(e);return t.add(l),t}),r.current=l;return}let u=Math.min(s,a),g=Math.max(s,a),d=i.slice(u,g+1);o(e=>{let t=new Set(e);for(let e of d)t.add(e);return t}),r.current=l},[e,t]),g=(0,l.useCallback)(()=>{let l=e.map(t);o(e=>l.every(t=>e.has(t))?new Set:new Set(l))},[e,t]),d=(0,l.useCallback)(()=>{o(new Set),r.current=null},[]),c=(0,l.useMemo)(()=>e.filter(e=>n.has(t(e))),[e,n,t]),f=n.size,m=f>0,p=e.length>0&&e.every(e=>n.has(t(e)));return{selectedIds:n,selectedItems:c,selectedCount:f,hasSelection:m,allSelected:p,someSelected:m&&!p,toggleItem:a,rangeSelectTo:u,toggleAll:g,clearSelection:d}}(T.items,y),[W,X]=(0,l.useState)(null),K=!!b,J=(0,l.useCallback)(e=>{K&&X(e),C?.(e)},[K,C]),Z=T.isLoading&&0===T.items.length,et=!!T.error&&!T.isLoading,en=!T.isLoading&&!T.error&&0===T.items.length,eo=T.items.length>0,er=T.hasNextPage||T.hasPreviousPage,ea=B.selectedIds;return(0,t.jsxs)("div",{"aria-label":N,className:(0,o.f)("stg:flex stg:flex-col stg:gap-3",G),children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-wrap stg:items-center stg:gap-2",children:[A?(0,t.jsxs)("div",{className:"stg:relative stg:flex-1",children:[(0,t.jsx)(ew,{className:"stg:pointer-events-none stg:absolute stg:left-2.5 stg:top-1/2 stg:h-3.5 stg:w-3.5 stg:-translate-y-1/2 stg:text-muted-foreground-subtle"}),(0,t.jsx)("input",{type:"text",value:z.query,onChange:e=>z.setQuery(e.target.value),placeholder:L,"aria-label":L,className:(0,o.f)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:py-1.5 stg:pl-8 stg:pr-3 stg:text-sm","stg:placeholder:text-muted-foreground-subtle","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}):(0,t.jsx)("div",{className:"stg:flex-1","aria-hidden":"true"}),g.length>1&&(0,t.jsx)(ei,{value:E,onChange:D,modes:g}),k]}),(0,t.jsx)(el,{filters:z.filters,filterDefs:s,onRemoveFilter:z.removeFilter,onClearAll:z.clearFilters}),(0,t.jsxs)("div",{className:"stg:flex stg:min-h-0 stg:flex-1",children:[(0,t.jsxs)("div",{className:(0,o.f)("stg:min-w-0 stg:flex-1",T.isRefetching&&"stg:pointer-events-none stg:opacity-60 stg:transition-opacity"),children:[Z&&(0,t.jsx)(eC,{viewMode:E}),et&&(0,t.jsx)(ed.f,{variant:"error",errorMessage:T.error.message,action:_?{label:"Retry",onClick:_??T.refetch}:void 0}),en&&(0,t.jsx)(ed.f,{variant:z.hasActiveFilters||z.debouncedQuery?"zero-results":"first-use",icon:P,title:z.hasActiveFilters||z.debouncedQuery?"No results match your filters":I,description:z.hasActiveFilters||z.debouncedQuery?"Try adjusting your search or removing some filters.":j,action:z.hasActiveFilters?{label:"Clear filters",onClick:z.clearFilters}:void 0,children:z.hasActiveFilters||z.debouncedQuery?void 0:V}),eo&&"table"===E&&T.table&&(0,t.jsx)(Q,{table:T.table,enableSelection:F,renderRowAction:h,onRowClick:J}),eo&&"cards"===E&&(0,t.jsx)(Y,{items:T.items,renderCard:m??(e=>(0,t.jsx)(eb,{item:e})),enableSelection:F,selectedIds:ea,onToggleSelection:B.toggleItem,getItemId:y,renderCardAction:h,onCardClick:J}),eo&&"list"===E&&(0,t.jsx)(ee,{items:T.items,renderRow:p??(e=>(0,t.jsx)(ev,{item:e})),enableSelection:F,selectedIds:ea,onToggleSelection:B.toggleItem,getItemId:y,renderRowAction:h,onRowClick:J}),er&&(0,t.jsx)(ex,{pageNumber:T.pageNumber,hasPreviousPage:T.hasPreviousPage,hasNextPage:T.hasNextPage,onPreviousPage:T.previousPage,onNextPage:T.nextPage})]}),K&&(0,t.jsx)(eu,{open:null!==W,onClose:()=>X(null),children:W&&b(W)})]}),F&&B.hasSelection&&(0,t.jsx)(es,{selectedCount:B.selectedCount,selectedItems:B.selectedItems,actions:v,onCancel:B.clearSelection})]})}],610008)}]);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,220490,e=>{e.v(t=>Promise.all(["static/chunks/1fm-45g777ifx.js"].map(t=>e.l(t))).then(()=>t(40890)))},324590,e=>{"use strict";var t=e.i(539927),r=class extends t.y{static{(0,t.p)(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},a=class extends t.n{static{(0,t.p)(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if("ARCH_ICON"===e.name)return t.replace(/[()]/g,"").trim();if("ARCH_TEXT_ICON"===e.name)return t.replace(/["()]/g,"");if("ARCH_TITLE"===e.name){let e=t.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=(e=e.slice(1,-1)).replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},i={parser:{TokenBuilder:(0,t.p)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.p)(()=>new a,"ValueConverter")}};function s(e=t._){let r=(0,t.h)((0,t.w)(e),t.a),a=(0,t.h)((0,t.I)({shared:r}),t.F,i);return r.ServiceRegistry.register(a),{shared:r,Architecture:a}}(0,t.p)(s,"createArchitectureServices"),e.s(["L",0,i,"w",0,s])},762592,e=>{"use strict";var t=e.i(539927),r=class extends t.y{static{(0,t.p)(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},a={parser:{TokenBuilder:(0,t.p)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.p)(()=>new t.b,"ValueConverter")}};function i(e=t._){let r=(0,t.h)((0,t.w)(e),t.a),s=(0,t.h)((0,t.I)({shared:r}),t.$,a);return r.ServiceRegistry.register(s),{shared:r,Info:s}}(0,t.p)(i,"createInfoServices"),e.s(["w",0,a,"n",0,i])},660245,e=>{"use strict";var t=e.i(539927),r=class extends t.y{static{(0,t.p)(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},a=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,i=class extends t.n{static{(0,t.p)(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if("NUMBER2"===e.name)return parseFloat(t.replace(/,/g,""));if("SEPARATOR"===e.name)return t.substring(1,t.length-1);if("STRING2"===e.name)return t.substring(1,t.length-1);if("INDENTATION"===e.name)return t.length;if("ClassDef"===e.name){if("string"!=typeof t)return t;let e=a.exec(t);if(e)return{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}}}};function s(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let e={Treemap:t.checkSingleRoot.bind(t)};r.register(e,t)}}(0,t.p)(s,"registerValidationChecks");var n=class{static{(0,t.p)(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let a of e.TreemapRows)a.item&&(void 0===r&&void 0===a.indent?r=0:void 0===a.indent?t("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):void 0!==r&&r>=parseInt(a.indent,10)&&t("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},o={parser:{TokenBuilder:(0,t.p)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.p)(()=>new i,"ValueConverter")},validation:{TreemapValidator:(0,t.p)(()=>new n,"TreemapValidator")}};function l(e=t._){let r=(0,t.h)((0,t.w)(e),t.a),a=(0,t.h)((0,t.I)({shared:r}),t.r,o);return r.ServiceRegistry.register(a),s(a),{shared:r,Treemap:a}}(0,t.p)(l,"createTreemapServices"),e.s(["j",0,o,"G",0,l])},133473,e=>{"use strict";var t=e.i(539927),r=class extends t.y{static{(0,t.p)(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},a={parser:{TokenBuilder:(0,t.p)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.p)(()=>new t.b,"ValueConverter")}};function i(e=t._){let r=(0,t.h)((0,t.w)(e),t.a),s=(0,t.h)((0,t.I)({shared:r}),t.i,a);return r.ServiceRegistry.register(s),{shared:r,Radar:s}}(0,t.p)(i,"createRadarServices"),e.s(["n",0,a,"P",0,i])},287470,e=>{"use strict";var t=e.i(539927),r=class extends t.y{static{(0,t.p)(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},a={parser:{TokenBuilder:(0,t.p)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.p)(()=>new t.b,"ValueConverter")}};function i(e=t._){let r=(0,t.h)((0,t.w)(e),t.a),s=(0,t.h)((0,t.I)({shared:r}),t.d,a);return r.ServiceRegistry.register(s),{shared:r,Packet:s}}(0,t.p)(i,"createPacketServices"),e.s(["n",0,a,"q",0,i])},716327,e=>{"use strict";var t=e.i(539927),r=class extends t.y{static{(0,t.p)(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},a=class extends t.n{static{(0,t.p)(this,"PieValueConverter")}runCustomConverter(e,t,r){if("PIE_SECTION_LABEL"===e.name)return t.replace(/"/g,"").trim()}},i={parser:{TokenBuilder:(0,t.p)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.p)(()=>new a,"ValueConverter")}};function s(e=t._){let r=(0,t.h)((0,t.w)(e),t.a),a=(0,t.h)((0,t.I)({shared:r}),t.Q,i);return r.ServiceRegistry.register(a),{shared:r,Pie:a}}(0,t.p)(s,"createPieServices"),e.s(["y",0,i,"Q",0,s])},905834,e=>{"use strict";var t=e.i(539927),r=class extends t.y{static{(0,t.p)(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},a=new Set(["cmd","command"]),i=new Set(["evt","event"]),s=new Set(["rmo","readmodel"]),n=new Set(["pcr","processor"]),o=new Set(["ui"]);function l(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(e,t)}}(0,t.p)(l,"registerValidationChecks");var c=class{static{(0,t.p)(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){0!==e.sourceFrames.length&&(a.has(e.modelEntityType)?this.validateSources(e,new Set([...o,...n]),"command","ui or processor",t):i.has(e.modelEntityType)?this.validateSources(e,a,"event","command",t):s.has(e.modelEntityType)?this.validateSources(e,i,"read model","event",t):n.has(e.modelEntityType)?this.validateSources(e,s,"processor","read model",t):o.has(e.modelEntityType)&&this.validateSources(e,s,"ui","read model",t))}validateSources(e,t,r,a,i){for(let s of e.sourceFrames){let n=s.ref;void 0===n||t.has(n.modelEntityType)||i("error",`A ${r} can only receive input from a ${a}, not from '${n.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},p={parser:{TokenBuilder:(0,t.p)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.p)(()=>new t.b,"ValueConverter")},validation:{EventModelingValidator:(0,t.p)(()=>new c,"EventModelingValidator")}};function u(e=t._){let r=(0,t.h)((0,t.w)(e),t.a),a=(0,t.h)((0,t.I)({shared:r}),t.s,p);return r.ServiceRegistry.register(a),l(a),{shared:r,EventModel:a}}(0,t.p)(u,"createEventModelingServices"),e.s(["w",0,p,"n",0,u])},725188,e=>{"use strict";var t=e.i(539927),r=class extends t.n{static{(0,t.p)(this,"WardleyValueConverter")}runCustomConverter(e,t,r){return"LINK_LABEL"===e.name.toUpperCase()?t.substring(1).trim():void 0}},a={parser:{ValueConverter:(0,t.p)(()=>new r,"ValueConverter")}};function i(e=t._){let r=(0,t.h)((0,t.w)(e),t.a),s=(0,t.h)((0,t.I)({shared:r}),t.M,a);return r.ServiceRegistry.register(s),{shared:r,Wardley:s}}(0,t.p)(i,"createWardleyServices"),e.s(["u",0,a,"A",0,i])},283214,e=>{"use strict";var t=e.i(539927),r=class extends t.y{static{(0,t.p)(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},a={parser:{TokenBuilder:(0,t.p)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.p)(()=>new t.b,"ValueConverter")}};function i(e=t._){let r=(0,t.h)((0,t.w)(e),t.a),s=(0,t.h)((0,t.I)({shared:r}),t.e,a);return r.ServiceRegistry.register(s),{shared:r,GitGraph:s}}(0,t.p)(i,"createGitGraphServices"),e.s(["O",0,a,"E",0,i])},127129,e=>{"use strict";var t=e.i(539927),r=class extends t.n{static{(0,t.p)(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){return"INDENTATION"===e.name?t?.length||0:"STRING2"===e.name?t.substring(1,t.length-1):void 0}},a=class extends t.y{static{(0,t.p)(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},i={parser:{TokenBuilder:(0,t.p)(()=>new a,"TokenBuilder"),ValueConverter:(0,t.p)(()=>new r,"ValueConverter")}};function s(e=t._){let r=(0,t.h)((0,t.w)(e),t.a),a=(0,t.h)((0,t.I)({shared:r}),t.j,i);return r.ServiceRegistry.register(a),{shared:r,TreeView:a}}(0,t.p)(s,"createTreeViewServices"),e.s(["U",0,i,"M",0,s])},114878,e=>{e.v(t=>Promise.all(["static/chunks/1745jt9onokna.js"].map(t=>e.l(t))).then(()=>t(962952)))},691759,e=>{e.v(t=>Promise.all(["static/chunks/0vno04lmwdchj.js"].map(t=>e.l(t))).then(()=>t(372102)))},799352,e=>{e.v(t=>Promise.all(["static/chunks/0e-f1rkyz_u2k.js"].map(t=>e.l(t))).then(()=>t(443214)))},428477,e=>{e.v(t=>Promise.all(["static/chunks/1tl0h3c_bp62t.js"].map(t=>e.l(t))).then(()=>t(708077)))},938722,e=>{e.v(t=>Promise.all(["static/chunks/0qwyk_70quvjh.js"].map(t=>e.l(t))).then(()=>t(44842)))},381916,e=>{e.v(t=>Promise.all(["static/chunks/3-k25f-adpe5f.js"].map(t=>e.l(t))).then(()=>t(826531)))},94862,e=>{e.v(t=>Promise.all(["static/chunks/1r_opkrpbuykx.js"].map(t=>e.l(t))).then(()=>t(484135)))},558201,e=>{e.v(t=>Promise.all(["static/chunks/1ame8n7x9g3xc.js"].map(t=>e.l(t))).then(()=>t(401568)))},122457,e=>{e.v(t=>Promise.all(["static/chunks/30nrkrr9518_z.js"].map(t=>e.l(t))).then(()=>t(347171)))},289590,e=>{"use strict";e.i(133473),e.i(660245),e.i(725188),e.i(283214),e.i(762592),e.i(287470),e.i(716327),e.i(127129),e.i(324590),e.i(905834);var t=e.i(539927),r={},a={info:(0,t.p)(async()=>{let{createInfoServices:t}=await e.A(799352);r.info=t().Info.parser.LangiumParser},"info"),packet:(0,t.p)(async()=>{let{createPacketServices:t}=await e.A(428477);r.packet=t().Packet.parser.LangiumParser},"packet"),pie:(0,t.p)(async()=>{let{createPieServices:t}=await e.A(938722);r.pie=t().Pie.parser.LangiumParser},"pie"),treeView:(0,t.p)(async()=>{let{createTreeViewServices:t}=await e.A(94862);r.treeView=t().TreeView.parser.LangiumParser},"treeView"),architecture:(0,t.p)(async()=>{let{createArchitectureServices:t}=await e.A(220490);r.architecture=t().Architecture.parser.LangiumParser},"architecture"),gitGraph:(0,t.p)(async()=>{let{createGitGraphServices:t}=await e.A(691759);r.gitGraph=t().GitGraph.parser.LangiumParser},"gitGraph"),eventmodeling:(0,t.p)(async()=>{let{createEventModelingServices:t}=await e.A(114878);r.eventmodeling=t().EventModel.parser.LangiumParser},"eventmodeling"),radar:(0,t.p)(async()=>{let{createRadarServices:t}=await e.A(381916);r.radar=t().Radar.parser.LangiumParser},"radar"),treemap:(0,t.p)(async()=>{let{createTreemapServices:t}=await e.A(558201);r.treemap=t().Treemap.parser.LangiumParser},"treemap"),wardley:(0,t.p)(async()=>{let{createWardleyServices:t}=await e.A(122457);r.wardley=t().Wardley.parser.LangiumParser},"wardley")};async function i(e,t){let i=a[e];if(!i)throw Error(`Unknown diagram type: ${e}`);r[e]||await i();let n=r[e].parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new s(n);return n.value}(0,t.p)(i,"parse");var s=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>{let t=void 0===e.line||isNaN(e.line)?"?":e.line,r=void 0===e.column||isNaN(e.column)?"?":e.column;return`Lexer error on line ${t}, column ${r}: ${e.message}`}).join("\n"),r=e.parserErrors.map(e=>{let t=void 0===e.token.startLine||isNaN(e.token.startLine)?"?":e.token.startLine,r=void 0===e.token.startColumn||isNaN(e.token.startColumn)?"?":e.token.startColumn;return`Parse error on line ${t}, column ${r}: ${e.message}`}).join("\n");super(`Parsing failed: ${t} ${r}`),this.result=e}static{(0,t.p)(this,"MermaidParseError")}};e.s(["f",0,i])},602099,e=>{"use strict";function t(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}(0,e.i(171206).p)(t,"populateCommonDb"),e.s(["f",0,t])},949061,e=>{"use strict";var t=e.i(332090),r=e.i(602099),a=e.i(669587),i=e.i(908381),s=e.i(171206),n=e.i(289590),o=i.f.packet,l=class{constructor(){this.packet=[],this.setAccTitle=i.b,this.getAccTitle=i.d,this.setDiagramTitle=i.a,this.getDiagramTitle=i.F,this.getAccDescription=i.j,this.setAccDescription=i.C}static{(0,s.p)(this,"PacketDB")}getConfig(){let e=(0,a.z)({...o,...(0,i.N)().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){(0,i.M)(),this.packet=[]}},c=(0,s.p)((e,t)=>{(0,r.f)(e,t);let a=-1,i=[],n=1,{bitsPerRow:o}=t.getConfig();for(let{start:r,end:l,bits:c,label:u}of e.blocks){if(void 0!==r&&void 0!==l&&l<r)throw Error(`Packet block ${r} - ${l} is invalid. End must be greater than start.`);if((r??=a+1)!==a+1)throw Error(`Packet block ${r} - ${l??r} is not contiguous. It should start from ${a+1}.`);if(0===c)throw Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(l??=r+(c??1)-1,c??=l-r+1,a=l,s.d.debug(`Packet block ${r} - ${a} with label ${u}`);i.length<=o+1&&t.getPacket().length<1e4;){let[e,a]=p({start:r,end:l,bits:c,label:u},n,o);if(i.push(e),e.end+1===n*o&&(t.pushWord(i),i=[],n++),!a)break;({start:r,end:l,bits:c,label:u}=a)}}t.pushWord(i)},"populate"),p=(0,s.p)((e,t,r)=>{if(void 0===e.start)throw Error("start should have been set during first phase");if(void 0===e.end)throw Error("end should have been set during first phase");if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];let a=t*r-1,i=t*r;return[{start:e.start,end:a,label:e.label,bits:a-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),u={parser:{yy:void 0},parse:(0,s.p)(async e=>{let t=await (0,n.f)("packet",e),r=u.parser?.yy;if(!(r instanceof l))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");s.d.debug(t),c(t,r)},"parse")},d=(0,s.p)((e,r,a,s)=>{let n=s.db,o=n.getConfig(),{rowHeight:l,paddingY:c,bitWidth:p,bitsPerRow:u}=o,d=n.getPacket(),m=n.getDiagramTitle(),v=l+c,k=v*(d.length+1)-(m?0:l),g=p*u+2,f=(0,t.f)(r);for(let[e,t]of(f.attr("viewBox",`0 0 ${g} ${k}`),(0,i.m)(f,k,g,o.useMaxWidth),d.entries()))h(f,t,e,o);f.append("text").text(m).attr("x",g/2).attr("y",k-v/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),h=(0,s.p)((e,t,r,{rowHeight:a,paddingX:i,paddingY:s,bitWidth:n,bitsPerRow:o,showBits:l})=>{let c=e.append("g"),p=r*(a+s)+s;for(let e of t){let t=e.start%o*n+1,r=(e.end-e.start+1)*n-i;if(c.append("rect").attr("x",t).attr("y",p).attr("width",r).attr("height",a).attr("class","packetBlock"),c.append("text").attr("x",t+r/2).attr("y",p+a/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(e.label),!l)continue;let s=e.end===e.start,u=p-2;c.append("text").attr("x",t+(s?r/2:0)).attr("y",u).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",s?"middle":"start").text(e.start),s||c.append("text").attr("x",t+r).attr("y",u).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(e.end)}},"drawWord"),m={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},v=(0,s.p)(({packet:e}={})=>{let t=(0,a.z)(m,e);return`
|
|
2
|
+
.packetByte {
|
|
3
|
+
font-size: ${t.byteFontSize};
|
|
4
|
+
}
|
|
5
|
+
.packetByte.start {
|
|
6
|
+
fill: ${t.startByteColor};
|
|
7
|
+
}
|
|
8
|
+
.packetByte.end {
|
|
9
|
+
fill: ${t.endByteColor};
|
|
10
|
+
}
|
|
11
|
+
.packetLabel {
|
|
12
|
+
fill: ${t.labelColor};
|
|
13
|
+
font-size: ${t.labelFontSize};
|
|
14
|
+
}
|
|
15
|
+
.packetTitle {
|
|
16
|
+
fill: ${t.titleColor};
|
|
17
|
+
font-size: ${t.titleFontSize};
|
|
18
|
+
}
|
|
19
|
+
.packetBlock {
|
|
20
|
+
stroke: ${t.blockStrokeColor};
|
|
21
|
+
stroke-width: ${t.blockStrokeWidth};
|
|
22
|
+
fill: ${t.blockFillColor};
|
|
23
|
+
}
|
|
24
|
+
`},"styles");e.s(["diagram",0,{parser:u,get db(){return new l},renderer:{draw:d},styles:v}])}]);
|