@galaxy-tool-util/gxwf-web 1.0.0 → 1.2.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/dist/app.js +3 -3
- package/dist/app.js.map +1 -1
- package/dist/generated/api-types.d.ts +344 -0
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/router.d.ts +2 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +77 -1
- package/dist/router.js.map +1 -1
- package/dist/tool-cache.d.ts +63 -0
- package/dist/tool-cache.d.ts.map +1 -0
- package/dist/tool-cache.js +118 -0
- package/dist/tool-cache.js.map +1 -0
- package/dist/workflows.d.ts +13 -0
- package/dist/workflows.d.ts.map +1 -1
- package/dist/workflows.js +19 -1
- package/dist/workflows.js.map +1 -1
- package/openapi.json +296 -0
- package/package.json +5 -4
- package/public/assets/FileView-BjO71gOh.css +1 -0
- package/public/assets/FileView-CsOpVj29.js +1389 -0
- package/public/assets/ToolCacheView-E1LZS0xv.css +1 -0
- package/public/assets/ToolCacheView-bRFTq8lT.js +120 -0
- package/public/assets/WorkflowView-CRSqinCX.js +198 -0
- package/public/assets/WorkflowView-DIO7pNhW.css +1 -0
- package/public/assets/_baseFor-CPf-8vV8.js +1 -0
- package/public/assets/arc-Cwod2qo3.js +1 -0
- package/public/assets/architecture-YZFGNWBL-DQVw0vyH.js +1 -0
- package/public/assets/architectureDiagram-Q4EWVU46-jinf4bpr.js +36 -0
- package/public/assets/array-DYRGGQae.js +1 -0
- package/public/assets/blockDiagram-DXYQGD6D-DyH9QtyX.js +132 -0
- package/public/assets/browser-DVDf39JZ.js +107 -0
- package/public/assets/c4Diagram-AHTNJAMY-eIaaNFF5.js +10 -0
- package/public/assets/channel-B9wkeALp.js +1 -0
- package/public/assets/chunk-2KRD3SAO-CbETq-ui.js +1 -0
- package/public/assets/chunk-336JU56O-K6Z1vrz8.js +2 -0
- package/public/assets/chunk-426QAEUC-B7stkjff.js +1 -0
- package/public/assets/chunk-4BX2VUAB-DAYhiPDD.js +1 -0
- package/public/assets/chunk-4TB4RGXK-DzYiMt8K.js +206 -0
- package/public/assets/chunk-55IACEB6-Bs8d_KN7.js +1 -0
- package/public/assets/chunk-5FUZZQ4R-BXjMW0vl.js +62 -0
- package/public/assets/chunk-5PVQY5BW-DpYMb9bR.js +2 -0
- package/public/assets/chunk-67CJDMHE-CYVqyDPX.js +1 -0
- package/public/assets/chunk-7N4EOEYR-DSMoHHQB.js +1 -0
- package/public/assets/chunk-AA7GKIK3-CVBwnsUJ.js +1 -0
- package/public/assets/chunk-BSJP7CBP-DG8ixKk7.js +1 -0
- package/public/assets/chunk-Bj-mKKzh.js +1 -0
- package/public/assets/chunk-CIAEETIT-ChsKIYeM.js +1 -0
- package/public/assets/chunk-EDXVE4YY-B13SDZ3c.js +1 -0
- package/public/assets/chunk-ENJZ2VHE-DrVCiAoi.js +10 -0
- package/public/assets/chunk-FMBD7UC4-Cwhu6s_B.js +15 -0
- package/public/assets/chunk-FOC6F5B3-CXZWmV4p.js +1 -0
- package/public/assets/chunk-ICPOFSXX-DwxYmUOT.js +121 -0
- package/public/assets/chunk-K5T4RW27-DjpJ2Af8.js +94 -0
- package/public/assets/chunk-KGLVRYIC-l_Galra0.js +1 -0
- package/public/assets/chunk-LIHQZDEY-SFFOoGZ_.js +1 -0
- package/public/assets/chunk-ORNJ4GCN-CJCUlfd1.js +1 -0
- package/public/assets/chunk-OYMX7WX6-CmfQJYSW.js +231 -0
- package/public/assets/chunk-QZHKN3VN-CXmXAQWB.js +1 -0
- package/public/assets/chunk-U2HBQHQK-oBXc92ns.js +70 -0
- package/public/assets/chunk-X2U36JSP-CWkpvLVO.js +1 -0
- package/public/assets/chunk-XPW4576I-DLAs5a7i.js +32 -0
- package/public/assets/chunk-YZCP3GAM-0MxWrEbo.js +1 -0
- package/public/assets/chunk-ZZ45TVLE-BqOxN5U6.js +1 -0
- package/public/assets/classDiagram-6PBFFD2Q-A_f6K02B.js +1 -0
- package/public/assets/classDiagram-v2-HSJHXN6E-DrcrbPO1.js +1 -0
- package/public/assets/clone-grQBEjNN.js +1 -0
- package/public/assets/cose-bilkent-S5V4N54A-D4wikFr1.js +1 -0
- package/public/assets/cytoscape-dagre-CO2HNyOd.js +1 -0
- package/public/assets/cytoscape-popper-D30IDL9Y.js +1 -0
- package/public/assets/cytoscape.esm-Cj_wycbY.js +321 -0
- package/public/assets/dagre-BxiFovGJ.js +1 -0
- package/public/assets/dagre-KV5264BT-1zSgR5z0.js +4 -0
- package/public/assets/defaultLocale-Du1XY3Dp.js +1 -0
- package/public/assets/diagram-5BDNPKRD-DpWxP0aE.js +10 -0
- package/public/assets/diagram-G4DWMVQ6-BhUB45RQ.js +24 -0
- package/public/assets/diagram-MMDJMWI5-D3tAT1JA.js +43 -0
- package/public/assets/diagram-TYMM5635-Y66BFGuY.js +24 -0
- package/public/assets/dist-J4JWBlIj.js +1 -0
- package/public/assets/erDiagram-SMLLAGMA-olVV48Hp.js +85 -0
- package/public/assets/flatten-CJeJD637.js +1 -0
- package/public/assets/flowDiagram-DWJPFMVM-QayyKS33.js +162 -0
- package/public/assets/ganttDiagram-T4ZO3ILL-DmE3LL1i.js +292 -0
- package/public/assets/gitGraph-7Q5UKJZL-CFN6X8um.js +1 -0
- package/public/assets/gitGraphDiagram-UUTBAWPF-KhK3dvbQ.js +106 -0
- package/public/assets/graphlib-Bi-ymRsv.js +1 -0
- package/public/assets/{iconv-lite-umd-B_p9IM1r.js → iconv-lite-umd-D-w9FMFt.js} +1 -1
- package/public/assets/index-4Ycp0GGC.js +1824 -0
- package/public/assets/index-DwHu09Uc.css +1 -0
- package/public/assets/info-OMHHGYJF-DTuIGRm4.js +1 -0
- package/public/assets/infoDiagram-42DDH7IO-BmhfgIe-.js +2 -0
- package/public/assets/init-B5BXBRcm.js +1 -0
- package/public/assets/isEmpty-D5KDGotR.js +1 -0
- package/public/assets/ishikawaDiagram-UXIWVN3A-D-BfQrbQ.js +70 -0
- package/public/assets/journeyDiagram-VCZTEJTY-CT0HRztw.js +139 -0
- package/public/assets/{jschardet-CGqe33Rd.js → jschardet-tASGyPDl.js} +1 -1
- package/public/assets/kanban-definition-6JOO6SKY-BZnydE-0.js +89 -0
- package/public/assets/katex-B-EfS3nw.js +257 -0
- package/public/assets/lib-qyXcPJAL.js +1 -0
- package/public/assets/line-qKqldnLj.js +1 -0
- package/public/assets/linear-BiJptqH_.js +1 -0
- package/public/assets/mermaid-parser.core-C09j9HB7.js +4 -0
- package/public/assets/mermaid.core-BDhviqRd.js +11 -0
- package/public/assets/mindmap-definition-QFDTVHPH-Dt3WMSPV.js +96 -0
- package/public/assets/ordinal-BDi6f4xk.js +1 -0
- package/public/assets/packet-4T2RLAQJ-tlarMvy0.js +1 -0
- package/public/assets/path-CNO468J-.js +1 -0
- package/public/assets/pie-ZZUOXDRM-BQlXSSpD.js +1 -0
- package/public/assets/pieDiagram-DEJITSTG-Yqe8uCAr.js +30 -0
- package/public/assets/purify.es-PlwmxSh4.js +2 -0
- package/public/assets/quadrantDiagram-34T5L4WZ-D6S_SKNN.js +7 -0
- package/public/assets/radar-PYXPWWZC-CazFChG-.js +1 -0
- package/public/assets/reduce-CulceXYF.js +1 -0
- package/public/assets/requirementDiagram-MS252O5E-jfbAS50v.js +84 -0
- package/public/assets/rough.esm-Ci7Kjt46.js +1 -0
- package/public/assets/sankeyDiagram-XADWPNL6-BAUJwgc9.js +10 -0
- package/public/assets/sequenceDiagram-FGHM5R23-D7HLbuOf.js +157 -0
- package/public/assets/src-Com_8MQM.js +1 -0
- package/public/assets/stateDiagram-FHFEXIEX-BX7o31BE.js +1 -0
- package/public/assets/stateDiagram-v2-QKLJ7IA2-Co5H7aCg.js +1 -0
- package/public/assets/timeline-definition-GMOUNBTQ-CZLMeEm3.js +120 -0
- package/public/assets/tippy-Lcq2UOUK.css +1 -0
- package/public/assets/tippy.esm-BUtiz0E2.js +1 -0
- package/public/assets/treeView-SZITEDCU-DF1ehvU3.js +1 -0
- package/public/assets/treemap-W4RFUUIX-BPejKas6.js +1 -0
- package/public/assets/useApi-CXAk43j3.js +1511 -0
- package/public/assets/useOperation-6c4UXxWc.js +74 -0
- package/public/assets/useToolInfoService-BoFJqmDR.js +276 -0
- package/public/assets/vennDiagram-DHZGUBPP-CU_yL8Jq.js +34 -0
- package/public/assets/wardley-RL74JXVD-BMMwMdqw.js +1 -0
- package/public/assets/wardleyDiagram-NUSXRM2D-BJ2G793c.js +20 -0
- package/public/assets/xychartDiagram-5P7HB3ND-CtCVgkGt.js +7 -0
- package/public/index.html +4 -2
- package/public/assets/index-BuA7-9w3.js +0 -4768
- package/public/assets/index-CWluWhm0.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.cache-stats[data-v-0e88204f]{padding:var(--gx-sp-3) var(--gx-sp-4);background:var(--p-content-background,#fff);border:1px solid var(--p-content-border-color,#e5e7eb);margin-bottom:var(--gx-sp-4);border-radius:6px}.stat-line[data-v-0e88204f]{font-size:var(--gx-fs-sm);flex-wrap:wrap;align-items:baseline;gap:.5em;display:flex}.stat-meta[data-v-0e88204f]{margin-top:var(--gx-sp-2);gap:var(--gx-sp-4);color:var(--p-text-muted-color,#6b7280);font-size:var(--gx-fs-xs)}.list-toolbar[data-v-23645664]{align-items:center;gap:var(--gx-sp-3);margin-bottom:var(--gx-sp-3);display:flex}.source-select[data-v-23645664]{min-width:10rem}.undecodable-toggle[data-v-23645664]{font-size:var(--gx-fs-sm);cursor:pointer;align-items:center;gap:.4em;display:inline-flex}.count[data-v-23645664]{font-size:var(--gx-fs-sm);color:var(--p-text-muted-color,#6b7280);margin-left:auto}.tool-cell[data-v-23645664]{align-items:center;gap:.4em;display:inline-flex}.tool-id[data-v-23645664]{font-family:var(--gx-mono)}.warn-icon[data-v-23645664]{color:var(--p-orange-500,#f59e0b)}.muted[data-v-23645664]{color:var(--p-text-muted-color,#6b7280)}.empty-state[data-v-23645664]{text-align:center;padding:var(--gx-sp-6) var(--gx-sp-4);color:var(--p-text-muted-color,#6b7280)}.empty-icon[data-v-23645664]{margin-bottom:var(--gx-sp-2);opacity:.5;font-size:2rem;display:block}.raw-json[data-v-5ded7233]{max-height:60vh;padding:var(--gx-sp-3);background:var(--p-surface-100,#f3f4f6);color:var(--p-text-color,inherit);font-family:var(--gx-mono);font-size:var(--gx-fs-xs);white-space:pre;border-radius:4px;margin:0;overflow:auto}.dark{background:var(--p-surface-800,#1f2937)}.loading-state[data-v-5ded7233],.error-state[data-v-5ded7233]{padding:var(--gx-sp-4);text-align:center}.error-state[data-v-5ded7233]{color:var(--p-red-500,#ef4444)}.cache-panel+.cache-panel[data-v-5ba0c46d]{margin-top:var(--gx-sp-6)}.panel-header[data-v-5ba0c46d]{justify-content:space-between;align-items:center;gap:var(--gx-sp-4);margin-bottom:var(--gx-sp-3);display:flex}.panel-header h2[data-v-5ba0c46d]{font-size:var(--gx-fs-lg);margin:0}.panel-actions[data-v-5ba0c46d]{gap:var(--gx-sp-2);align-items:center;display:flex}.decode-toggle[data-v-5ba0c46d]{font-size:var(--gx-fs-sm);color:var(--p-text-muted-color,#6b7280);cursor:pointer;align-items:center;gap:.4em;display:inline-flex}.add-form[data-v-5ba0c46d]{gap:var(--gx-sp-3);flex-direction:column;display:flex}.add-form label[data-v-5ba0c46d]{font-size:var(--gx-fs-sm);flex-direction:column;gap:.3em;display:flex}.view-header[data-v-a92ad1cc]{justify-content:space-between;align-items:flex-start;gap:var(--gx-sp-4);margin-bottom:var(--gx-sp-4);display:flex}.view-header h1[data-v-a92ad1cc]{margin:0 0 var(--gx-sp-1);font-size:var(--gx-fs-xl)}.subtitle[data-v-a92ad1cc]{color:var(--p-text-muted-color,#6b7280);font-size:var(--gx-fs-sm);max-width:56ch;margin:0}.subtitle code[data-v-a92ad1cc]{font-family:var(--gx-mono);font-size:.95em}.header-actions[data-v-a92ad1cc]{gap:var(--gx-sp-2);align-items:center;display:flex}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import{$t as e,A as t,C as n,Cn as r,E as i,En as a,F as o,Jt as s,Kt as c,Qt as l,Rt as u,Sn as d,St as f,Wt as p,Xt as m,Yt as h,Z as g,Zt as _,_ as ee,_n as v,_t as y,b,dn as x,en as S,fn as C,ft as w,gn as T,hn as E,l as D,ln as te,lt as O,m as k,n as A,nt as j,o as M,on as ne,ot as N,p as re,pn as P,qt as F,r as ie,rn as I,sn as L,t as R,u as z,un as B,ut as V,v as ae,x as H,yn as U,yt as oe}from"./useApi-CXAk43j3.js";import{a as se,c as ce,g as W,i as G,m as K,o as le,p as ue,r as de,u as fe}from"./index-4Ycp0GGC.js";import{c as pe,l as me,s as he,t as q}from"./useToolInfoService-BoFJqmDR.js";var ge={name:`WindowMaximizeIcon`,extends:b};function _e(e){return xe(e)||be(e)||ye(e)||ve()}function ve(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(e,t){if(e){if(typeof e==`string`)return Se(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Se(e,t):void 0}}function be(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function xe(e){if(Array.isArray(e))return Se(e)}function Se(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ce(e,t,n,r,i,a){return L(),m(`svg`,I({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),_e(t[0]||=[F(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z`,fill:`currentColor`},null,-1)]),16)}ge.render=Ce;var we={name:`WindowMinimizeIcon`,extends:b};function Te(e){return ke(e)||Oe(e)||De(e)||Ee()}function Ee(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function De(e,t){if(e){if(typeof e==`string`)return Ae(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(e,t):void 0}}function Oe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ke(e){if(Array.isArray(e))return Ae(e)}function Ae(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function je(e,t,n,r,i,a){return L(),m(`svg`,I({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Te(t[0]||=[F(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z`,fill:`currentColor`},null,-1)]),16)}we.render=je;function Me(){y({variableName:t(`scrollbar.width`).name})}function Ne(){V({variableName:t(`scrollbar.width`).name})}var Pe=i.extend({name:`dialog`,style:`
|
|
4
|
+
.p-dialog {
|
|
5
|
+
max-height: 90%;
|
|
6
|
+
transform: scale(1);
|
|
7
|
+
border-radius: dt('dialog.border.radius');
|
|
8
|
+
box-shadow: dt('dialog.shadow');
|
|
9
|
+
background: dt('dialog.background');
|
|
10
|
+
border: 1px solid dt('dialog.border.color');
|
|
11
|
+
color: dt('dialog.color');
|
|
12
|
+
will-change: transform;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.p-dialog-content {
|
|
16
|
+
overflow-y: auto;
|
|
17
|
+
padding: dt('dialog.content.padding');
|
|
18
|
+
flex-grow: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.p-dialog-header {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
flex-shrink: 0;
|
|
26
|
+
padding: dt('dialog.header.padding');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.p-dialog-title {
|
|
30
|
+
font-weight: dt('dialog.title.font.weight');
|
|
31
|
+
font-size: dt('dialog.title.font.size');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.p-dialog-footer {
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
padding: dt('dialog.footer.padding');
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: flex-end;
|
|
39
|
+
gap: dt('dialog.footer.gap');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.p-dialog-header-actions {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
gap: dt('dialog.header.gap');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.p-dialog-top .p-dialog,
|
|
49
|
+
.p-dialog-bottom .p-dialog,
|
|
50
|
+
.p-dialog-left .p-dialog,
|
|
51
|
+
.p-dialog-right .p-dialog,
|
|
52
|
+
.p-dialog-topleft .p-dialog,
|
|
53
|
+
.p-dialog-topright .p-dialog,
|
|
54
|
+
.p-dialog-bottomleft .p-dialog,
|
|
55
|
+
.p-dialog-bottomright .p-dialog {
|
|
56
|
+
margin: 1rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.p-dialog-maximized {
|
|
60
|
+
width: 100vw !important;
|
|
61
|
+
height: 100vh !important;
|
|
62
|
+
top: 0px !important;
|
|
63
|
+
left: 0px !important;
|
|
64
|
+
max-height: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
border-radius: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.p-dialog .p-resizable-handle {
|
|
70
|
+
position: absolute;
|
|
71
|
+
font-size: 0.1px;
|
|
72
|
+
display: block;
|
|
73
|
+
cursor: se-resize;
|
|
74
|
+
width: 12px;
|
|
75
|
+
height: 12px;
|
|
76
|
+
right: 1px;
|
|
77
|
+
bottom: 1px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.p-dialog-enter-active {
|
|
81
|
+
animation: p-animate-dialog-enter 300ms cubic-bezier(.19,1,.22,1);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.p-dialog-leave-active {
|
|
85
|
+
animation: p-animate-dialog-leave 300ms cubic-bezier(.19,1,.22,1);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@keyframes p-animate-dialog-enter {
|
|
89
|
+
from {
|
|
90
|
+
opacity: 0;
|
|
91
|
+
transform: scale(0.93);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes p-animate-dialog-leave {
|
|
96
|
+
to {
|
|
97
|
+
opacity: 0;
|
|
98
|
+
transform: scale(0.93);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
`,classes:{mask:function(e){var t=e.props,n=[`left`,`right`,`top`,`topleft`,`topright`,`bottom`,`bottomleft`,`bottomright`].find(function(e){return e===t.position});return[`p-dialog-mask`,{"p-overlay-mask p-overlay-mask-enter-active":t.modal},n?`p-dialog-${n}`:``]},root:function(e){var t=e.props,n=e.instance;return[`p-dialog p-component`,{"p-dialog-maximized":t.maximizable&&n.maximized}]},header:`p-dialog-header`,title:`p-dialog-title`,headerActions:`p-dialog-header-actions`,pcMaximizeButton:`p-dialog-maximize-button`,pcCloseButton:`p-dialog-close-button`,content:`p-dialog-content`,footer:`p-dialog-footer`},inlineStyles:{mask:function(e){var t=e.position,n=e.modal;return{position:`fixed`,height:`100%`,width:`100%`,left:0,top:0,display:`flex`,justifyContent:t===`left`||t===`topleft`||t===`bottomleft`?`flex-start`:t===`right`||t===`topright`||t===`bottomright`?`flex-end`:`center`,alignItems:t===`top`||t===`topleft`||t===`topright`?`flex-start`:t===`bottom`||t===`bottomleft`||t===`bottomright`?`flex-end`:`center`,pointerEvents:n?`auto`:`none`}},root:{display:`flex`,flexDirection:`column`,pointerEvents:`auto`}}}),J={name:`Dialog`,extends:{name:`BaseDialog`,extends:H,props:{header:{type:null,default:null},footer:{type:null,default:null},visible:{type:Boolean,default:!1},modal:{type:Boolean,default:null},contentStyle:{type:null,default:null},contentClass:{type:String,default:null},contentProps:{type:null,default:null},maximizable:{type:Boolean,default:!1},dismissableMask:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},position:{type:String,default:`center`},breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0},keepInViewport:{type:Boolean,default:!0},minX:{type:Number,default:0},minY:{type:Number,default:0},appendTo:{type:[String,Object],default:`body`},closeIcon:{type:String,default:void 0},maximizeIcon:{type:String,default:void 0},minimizeIcon:{type:String,default:void 0},closeButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},maximizeButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},_instance:null},style:Pe,provide:function(){return{$pcDialog:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`update:visible`,`show`,`hide`,`after-hide`,`maximize`,`unmaximize`,`dragstart`,`dragend`],provide:function(){var e=this;return{dialogRef:c(function(){return e._instance})}},data:function(){return{containerVisible:this.visible,maximized:!1,focusableMax:null,focusableClose:null,target:null}},documentKeydownListener:null,container:null,mask:null,content:null,headerContainer:null,footerContainer:null,maximizableButton:null,closeButton:null,styleElement:null,dragging:null,documentDragListener:null,documentDragEndListener:null,lastPageX:null,lastPageY:null,maskMouseDownTarget:null,updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.unbindDocumentState(),this.unbindGlobalListeners(),this.destroyStyle(),this.mask&&this.autoZIndex&&W.clear(this.mask),this.container=null,this.mask=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{close:function(){this.$emit(`update:visible`,!1)},onEnter:function(){this.$emit(`show`),this.target=document.activeElement,this.enableDocumentSettings(),this.bindGlobalListeners(),this.autoZIndex&&W.set(`modal`,this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal)},onAfterEnter:function(){this.focus()},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&j(this.mask,`p-overlay-mask-leave-active`),this.dragging&&this.documentDragEndListener&&this.documentDragEndListener()},onLeave:function(){this.$emit(`hide`),O(this.target),this.target=null,this.focusableClose=null,this.focusableMax=null},onAfterLeave:function(){this.autoZIndex&&W.clear(this.mask),this.containerVisible=!1,this.unbindDocumentState(),this.unbindGlobalListeners(),this.$emit(`after-hide`)},onMaskMouseDown:function(e){this.maskMouseDownTarget=e.target},onMaskMouseUp:function(){this.dismissableMask&&this.modal&&this.mask===this.maskMouseDownTarget&&this.close()},focus:function(){var e=function(e){return e&&e.querySelector(`[autofocus]`)},t=this.$slots.footer&&e(this.footerContainer);t||(t=this.$slots.header&&e(this.headerContainer),t||(t=this.$slots.default&&e(this.content),t||(this.maximizable?(this.focusableMax=!0,t=this.maximizableButton):(this.focusableClose=!0,t=this.closeButton)))),t&&O(t,{focusVisible:!0})},maximize:function(e){this.maximized?(this.maximized=!1,this.$emit(`unmaximize`,e)):(this.maximized=!0,this.$emit(`maximize`,e)),this.modal||(this.maximized?Me():Ne())},enableDocumentSettings:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&Me()},unbindDocumentState:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&Ne()},onKeyDown:function(e){e.code===`Escape`&&this.closeOnEscape&&this.close()},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener(`keydown`,this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&=(window.document.removeEventListener(`keydown`,this.documentKeydownListener),null)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},maximizableRef:function(e){this.maximizableButton=e?e.$el:void 0},closeButtonRef:function(e){this.closeButton=e?e.$el:void 0},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement(`style`),this.styleElement.type=`text/css`,N(this.styleElement,`nonce`,(e=this.$primevue)==null||(e=e.config)==null||(e=e.csp)==null?void 0:e.nonce),document.head.appendChild(this.styleElement);var t=``;for(var n in this.breakpoints)t+=`
|
|
102
|
+
@media screen and (max-width: ${n}) {
|
|
103
|
+
.p-dialog[${this.$attrSelector}] {
|
|
104
|
+
width: ${this.breakpoints[n]} !important;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`;this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&=(document.head.removeChild(this.styleElement),null)},initDrag:function(e){e.target.closest(`div`).getAttribute(`data-pc-section`)!==`headeractions`&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin=`0`,document.body.setAttribute(`data-p-unselectable-text`,`true`),!this.isUnstyled&&g(document.body,{"user-select":`none`}),this.$emit(`dragstart`,e))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(t){if(e.dragging){var n=oe(e.container),r=o(e.container),i=t.pageX-e.lastPageX,a=t.pageY-e.lastPageY,s=e.container.getBoundingClientRect(),c=s.left+i,l=s.top+a,u=w(),d=getComputedStyle(e.container),f=parseFloat(d.marginLeft),p=parseFloat(d.marginTop);e.container.style.position=`fixed`,e.keepInViewport?(c>=e.minX&&c+n<u.width&&(e.lastPageX=t.pageX,e.container.style.left=c-f+`px`),l>=e.minY&&l+r<u.height&&(e.lastPageY=t.pageY,e.container.style.top=l-p+`px`)):(e.lastPageX=t.pageX,e.container.style.left=c-f+`px`,e.lastPageY=t.pageY,e.container.style.top=l-p+`px`)}},window.document.addEventListener(`mousemove`,this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&=(window.document.removeEventListener(`mousemove`,this.documentDragListener),null)},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(t){e.dragging&&(e.dragging=!1,document.body.removeAttribute(`data-p-unselectable-text`),!e.isUnstyled&&(document.body.style[`user-select`]=``),e.$emit(`dragend`,t))},window.document.addEventListener(`mouseup`,this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&=(window.document.removeEventListener(`mouseup`,this.documentDragEndListener),null)}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?`span`:`WindowMinimizeIcon`:this.maximizeIcon?`span`:`WindowMaximizeIcon`},ariaLabelledById:function(){return this.header!=null||this.$attrs[`aria-labelledby`]!==null?this.$id+`_header`:null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},dataP:function(){return f({maximized:this.maximized,modal:this.modal})}},directives:{ripple:ee,focustrap:le},components:{Button:k,Portal:fe,WindowMinimizeIcon:we,WindowMaximizeIcon:ge,TimesIcon:ae}};function Y(e){"@babel/helpers - typeof";return Y=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Y(e)}function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Fe(Object(n),!0).forEach(function(t){Le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Le(e,t,n){return(t=Re(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e){var t=ze(e,`string`);return Y(t)==`symbol`?t:t+``}function ze(e,t){if(Y(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Y(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Be=[`data-p`],Ve=[`aria-labelledby`,`aria-modal`,`data-p`],He=[`id`],Ue=[`data-p`];function We(t,n,i,o,c,d){var f=x(`Button`),g=x(`Portal`),_=C(`focustrap`);return L(),s(g,{appendTo:t.appendTo},{default:T(function(){return[c.containerVisible?(L(),m(`div`,I({key:0,ref:d.maskRef,class:t.cx(`mask`),style:t.sx(`mask`,!0,{position:t.position,modal:t.modal}),onMousedown:n[1]||=function(){return d.onMaskMouseDown&&d.onMaskMouseDown.apply(d,arguments)},onMouseup:n[2]||=function(){return d.onMaskMouseUp&&d.onMaskMouseUp.apply(d,arguments)},"data-p":d.dataP},t.ptm(`mask`)),[e(u,I({name:`p-dialog`,onEnter:d.onEnter,onAfterEnter:d.onAfterEnter,onBeforeLeave:d.onBeforeLeave,onLeave:d.onLeave,onAfterLeave:d.onAfterLeave,appear:``},t.ptm(`transition`)),{default:T(function(){return[t.visible?v((L(),m(`div`,I({key:0,ref:d.containerRef,class:t.cx(`root`),style:t.sx(`root`),role:`dialog`,"aria-labelledby":d.ariaLabelledById,"aria-modal":t.modal,"data-p":d.dataP},t.ptmi(`root`)),[t.$slots.container?B(t.$slots,`container`,{key:0,closeCallback:d.close,maximizeCallback:function(e){return d.maximize(e)},initDragCallback:d.initDrag}):(L(),m(p,{key:1},[t.showHeader?(L(),m(`div`,I({key:0,ref:d.headerContainerRef,class:t.cx(`header`),onMousedown:n[0]||=function(){return d.initDrag&&d.initDrag.apply(d,arguments)}},t.ptm(`header`)),[B(t.$slots,`header`,{class:r(t.cx(`title`))},function(){return[t.header?(L(),m(`span`,I({key:0,id:d.ariaLabelledById,class:t.cx(`title`)},t.ptm(`title`)),a(t.header),17,He)):h(``,!0)]}),F(`div`,I({class:t.cx(`headerActions`)},t.ptm(`headerActions`)),[t.maximizable?B(t.$slots,`maximizebutton`,{key:0,maximized:c.maximized,maximizeCallback:function(e){return d.maximize(e)}},function(){return[e(f,I({ref:d.maximizableRef,autofocus:c.focusableMax,class:t.cx(`pcMaximizeButton`),onClick:d.maximize,tabindex:t.maximizable?`0`:`-1`,unstyled:t.unstyled},t.maximizeButtonProps,{pt:t.ptm(`pcMaximizeButton`),"data-pc-group-section":`headericon`}),{icon:T(function(e){return[B(t.$slots,`maximizeicon`,{maximized:c.maximized},function(){return[(L(),s(P(d.maximizeIconComponent),I({class:[e.class,c.maximized?t.minimizeIcon:t.maximizeIcon]},t.ptm(`pcMaximizeButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`autofocus`,`class`,`onClick`,`tabindex`,`unstyled`,`pt`])]}):h(``,!0),t.closable?B(t.$slots,`closebutton`,{key:1,closeCallback:d.close},function(){return[e(f,I({ref:d.closeButtonRef,autofocus:c.focusableClose,class:t.cx(`pcCloseButton`),onClick:d.close,"aria-label":d.closeAriaLabel,unstyled:t.unstyled},t.closeButtonProps,{pt:t.ptm(`pcCloseButton`),"data-pc-group-section":`headericon`}),{icon:T(function(e){return[B(t.$slots,`closeicon`,{},function(){return[(L(),s(P(t.closeIcon?`span`:`TimesIcon`),I({class:[t.closeIcon,e.class]},t.ptm(`pcCloseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`autofocus`,`class`,`onClick`,`aria-label`,`unstyled`,`pt`])]}):h(``,!0)],16)],16)):h(``,!0),F(`div`,I({ref:d.contentRef,class:[t.cx(`content`),t.contentClass],style:t.contentStyle,"data-p":d.dataP},Ie(Ie({},t.contentProps),t.ptm(`content`))),[B(t.$slots,`default`)],16,Ue),t.footer||t.$slots.footer?(L(),m(`div`,I({key:1,ref:d.footerContainerRef,class:t.cx(`footer`)},t.ptm(`footer`)),[B(t.$slots,`footer`,{},function(){return[l(a(t.footer),1)]})],16)):h(``,!0)],64))],16,Ve)),[[_,{disabled:!t.modal}]]):h(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onBeforeLeave`,`onLeave`,`onAfterLeave`])],16,Be)):h(``,!0)]}),_:3},8,[`appendTo`])}J.render=We;var Ge=i.extend({name:`confirmdialog`,style:`
|
|
108
|
+
.p-confirmdialog .p-dialog-content {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
gap: dt('confirmdialog.content.gap');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.p-confirmdialog-icon {
|
|
115
|
+
color: dt('confirmdialog.icon.color');
|
|
116
|
+
font-size: dt('confirmdialog.icon.size');
|
|
117
|
+
width: dt('confirmdialog.icon.size');
|
|
118
|
+
height: dt('confirmdialog.icon.size');
|
|
119
|
+
}
|
|
120
|
+
`,classes:{root:`p-confirmdialog`,icon:`p-confirmdialog-icon`,message:`p-confirmdialog-message`,pcRejectButton:`p-confirmdialog-reject-button`,pcAcceptButton:`p-confirmdialog-accept-button`}}),Ke={name:`ConfirmDialog`,extends:{name:`BaseConfirmDialog`,extends:H,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},style:Ge,provide:function(){return{$pcConfirmDialog:this,$parentInstance:this}}},confirmListener:null,closeListener:null,data:function(){return{visible:!1,confirmation:null}},mounted:function(){var e=this;this.confirmListener=function(t){t&&t.group===e.group&&(e.confirmation=t,e.confirmation.onShow&&e.confirmation.onShow(),e.visible=!0)},this.closeListener=function(){e.visible=!1,e.confirmation=null},K.on(`confirm`,this.confirmListener),K.on(`close`,this.closeListener)},beforeUnmount:function(){K.off(`confirm`,this.confirmListener),K.off(`close`,this.closeListener)},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1}},computed:{appendTo:function(){return this.confirmation?this.confirmation.appendTo:`body`},target:function(){return this.confirmation?this.confirmation.target:null},modal:function(){return this.confirmation?this.confirmation.modal==null?!0:this.confirmation.modal:!0},header:function(){return this.confirmation?this.confirmation.header:null},message:function(){return this.confirmation?this.confirmation.message:null},blockScroll:function(){return this.confirmation?this.confirmation.blockScroll:!0},position:function(){return this.confirmation?this.confirmation.position:null},acceptLabel:function(){if(this.confirmation){var e=this.confirmation;return e.acceptLabel||e.acceptProps?.label||this.$primevue.config.locale.accept}return this.$primevue.config.locale.accept},rejectLabel:function(){if(this.confirmation){var e=this.confirmation;return e.rejectLabel||e.rejectProps?.label||this.$primevue.config.locale.reject}return this.$primevue.config.locale.reject},acceptIcon:function(){var e;return this.confirmation?this.confirmation.acceptIcon:(e=this.confirmation)!=null&&e.acceptProps?this.confirmation.acceptProps.icon:null},rejectIcon:function(){var e;return this.confirmation?this.confirmation.rejectIcon:(e=this.confirmation)!=null&&e.rejectProps?this.confirmation.rejectProps.icon:null},autoFocusAccept:function(){return this.confirmation.defaultFocus===void 0||this.confirmation.defaultFocus===`accept`},autoFocusReject:function(){return this.confirmation.defaultFocus===`reject`},closeOnEscape:function(){return this.confirmation?this.confirmation.closeOnEscape:!0}},components:{Dialog:J,Button:k}};function qe(t,n,i,o,c,l){var u=x(`Button`),d=x(`Dialog`);return L(),s(d,{visible:c.visible,"onUpdate:visible":[n[2]||=function(e){return c.visible=e},l.onHide],role:`alertdialog`,class:r(t.cx(`root`)),modal:l.modal,header:l.header,blockScroll:l.blockScroll,appendTo:l.appendTo,position:l.position,breakpoints:t.breakpoints,closeOnEscape:l.closeOnEscape,draggable:t.draggable,pt:t.pt,unstyled:t.unstyled},_({default:T(function(){return[t.$slots.container?h(``,!0):(L(),m(p,{key:0},[t.$slots.message?(L(),s(P(t.$slots.message),{key:1,message:c.confirmation},null,8,[`message`])):(L(),m(p,{key:0},[B(t.$slots,`icon`,{},function(){return[t.$slots.icon?(L(),s(P(t.$slots.icon),{key:0,class:r(t.cx(`icon`))},null,8,[`class`])):c.confirmation.icon?(L(),m(`span`,I({key:1,class:[c.confirmation.icon,t.cx(`icon`)]},t.ptm(`icon`)),null,16)):h(``,!0)]}),F(`span`,I({class:t.cx(`message`)},t.ptm(`message`)),a(l.message),17)],64))],64))]}),_:2},[t.$slots.container?{name:`container`,fn:T(function(e){return[B(t.$slots,`container`,{message:c.confirmation,closeCallback:e.closeCallback,acceptCallback:l.accept,rejectCallback:l.reject,initDragCallback:e.initDragCallback})]}),key:`0`}:void 0,t.$slots.container?void 0:{name:`footer`,fn:T(function(){return[e(u,I({class:[t.cx(`pcRejectButton`),c.confirmation.rejectClass],autofocus:l.autoFocusReject,unstyled:t.unstyled,text:c.confirmation.rejectProps?.text||!1,onClick:n[0]||=function(e){return l.reject()}},c.confirmation.rejectProps,{label:l.rejectLabel,pt:t.ptm(`pcRejectButton`)}),_({_:2},[l.rejectIcon||t.$slots.rejecticon?{name:`icon`,fn:T(function(e){return[B(t.$slots,`rejecticon`,{},function(){return[F(`span`,I({class:[l.rejectIcon,e.class]},t.ptm(`pcRejectButton`).icon,{"data-pc-section":`rejectbuttonicon`}),null,16)]})]}),key:`0`}:void 0]),1040,[`class`,`autofocus`,`unstyled`,`text`,`label`,`pt`]),e(u,I({label:l.acceptLabel,class:[t.cx(`pcAcceptButton`),c.confirmation.acceptClass],autofocus:l.autoFocusAccept,unstyled:t.unstyled,onClick:n[1]||=function(e){return l.accept()}},c.confirmation.acceptProps,{pt:t.ptm(`pcAcceptButton`)}),_({_:2},[l.acceptIcon||t.$slots.accepticon?{name:`icon`,fn:T(function(e){return[B(t.$slots,`accepticon`,{},function(){return[F(`span`,I({class:[l.acceptIcon,e.class]},t.ptm(`pcAcceptButton`).icon,{"data-pc-section":`acceptbuttonicon`}),null,16)]})]}),key:`0`}:void 0]),1040,[`label`,`class`,`autofocus`,`unstyled`,`pt`])]}),key:`1`}]),1032,[`visible`,`class`,`modal`,`header`,`blockScroll`,`appendTo`,`position`,`breakpoints`,`closeOnEscape`,`draggable`,`onUpdate:visible`,`pt`,`unstyled`])}Ke.render=qe;var Je={class:`cache-stats`,"data-description":`tool cache stats`},Ye={class:`stat-line`},Xe={key:0,class:`stat-line stat-meta`},Ze={key:0},Qe={key:1},$e=A(S({__name:`ToolCacheStats`,props:{stats:{}},setup(e){function t(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(2)} MB`}function n(e){return new Date(e).toLocaleString()}return(r,i)=>(L(),m(`div`,Je,[F(`div`,Ye,[F(`strong`,null,a(e.stats.count),1),i[2]||=l(` tools `,-1),e.stats.totalBytes===void 0?h(``,!0):(L(),m(p,{key:0},[i[0]||=l(` · `,-1),F(`strong`,null,a(t(e.stats.totalBytes)),1)],64)),(L(!0),m(p,null,te(e.stats.bySource,(e,t)=>(L(),m(p,{key:t},[i[1]||=l(` · `,-1),F(`strong`,null,a(e),1),l(` `+a(t),1)],64))),128))]),e.stats.oldest||e.stats.newest?(L(),m(`div`,Xe,[e.stats.oldest?(L(),m(`span`,Ze,`Oldest: `+a(n(e.stats.oldest)),1)):h(``,!0),e.stats.newest?(L(),m(`span`,Qe,`Newest: `+a(n(e.stats.newest)),1)):h(``,!0)])):h(``,!0)]))}}),[[`__scopeId`,`data-v-0e88204f`]]),et={class:`cache-table`},tt={class:`list-toolbar`},nt={class:`undecodable-toggle`},rt={class:`count`},it={class:`empty-state`},at={key:0},ot={key:1},st={class:`tool-cell`},ct={key:0,class:`pi pi-exclamation-triangle warn-icon`},lt={class:`tool-id`},ut={key:0},dt={key:1,class:`muted`},ft=[`title`],pt=[`href`],mt=A(S({__name:`ToolCacheTable`,props:{entries:{},loading:{type:Boolean}},emits:[`view`,`refetch`,`delete`],setup(t,{emit:n}){let r=t,i=n,o=U(``),s=U(null),l=U(!1),u=c(()=>Array.from(new Set(r.entries.map(e=>e.source))).sort()),f=c(()=>{let e=o.value.toLowerCase();return r.entries.filter(t=>!(e&&!t.toolId.toLowerCase().includes(e)||s.value&&t.source!==s.value||l.value&&t.decodable))});function p(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(2)} MB`}function g(e){let t=Date.now()-new Date(e).getTime(),n=Math.round(t/1e3);if(n<60)return`${n}s ago`;let r=Math.round(n/60);if(r<60)return`${r}m ago`;let i=Math.round(r/60);return i<48?`${i}h ago`:`${Math.round(i/24)}d ago`}return(n,r)=>{let c=C(`tooltip`);return L(),m(`div`,et,[F(`div`,tt,[e(d(z),{class:`search-field`},{default:T(()=>[e(d(D),{class:`pi pi-search`}),e(d(M),{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,placeholder:`Filter by tool id…`,size:`small`},null,8,[`modelValue`])]),_:1}),e(d(ce),{modelValue:s.value,"onUpdate:modelValue":r[1]||=e=>s.value=e,options:u.value,placeholder:`All sources`,showClear:``,size:`small`,class:`source-select`},null,8,[`modelValue`,`options`]),F(`label`,nt,[e(d(ie),{modelValue:l.value,"onUpdate:modelValue":r[2]||=e=>l.value=e,binary:!0},null,8,[`modelValue`]),r[3]||=F(`span`,null,`Undecodable only`,-1)]),F(`span`,rt,a(f.value.length)+a(f.value.length===t.entries.length?``:` of ${t.entries.length}`)+` entries `,1)]),e(d(se),{value:f.value,loading:t.loading,dataKey:`cacheKey`,rowHover:!0,stripedRows:``,sortField:`cachedAt`,sortOrder:-1,paginator:f.value.length>25,rows:25,rowsPerPageOptions:[25,50,100]},{empty:T(()=>[F(`div`,it,[r[4]||=F(`i`,{class:`pi pi-database empty-icon`},null,-1),o.value||s.value||l.value?(L(),m(`p`,at,` No entries match the current filters. `)):(L(),m(`p`,ot,`The tool cache is empty.`))])]),default:T(()=>[e(d(G),{field:`toolId`,header:`Tool`,sortable:``},{body:T(({data:e})=>[F(`div`,st,[e.decodable?h(``,!0):v((L(),m(`i`,ct,null,512)),[[c,`Cached payload does not decode as a ParsedTool`,void 0,{right:!0}]]),F(`span`,lt,a(e.toolId),1)])]),_:1}),e(d(G),{field:`toolVersion`,header:`Version`,sortable:``,style:{width:`10rem`}}),e(d(G),{field:`source`,header:`Source`,sortable:``,style:{width:`7rem`}},{body:T(({data:t})=>[e(d(de),{value:t.source,severity:`secondary`},null,8,[`value`])]),_:1}),e(d(G),{field:`sizeBytes`,header:`Size`,sortable:``,style:{width:`7rem`}},{body:T(({data:e})=>[e.sizeBytes===void 0?(L(),m(`span`,dt,`—`)):(L(),m(`span`,ut,a(p(e.sizeBytes)),1))]),_:1}),e(d(G),{field:`cachedAt`,header:`Cached`,sortable:``,style:{width:`11rem`}},{body:T(({data:e})=>[F(`span`,{title:e.cachedAt},a(g(e.cachedAt)),9,ft)]),_:1}),e(d(G),{header:``,style:{width:`11rem`,"text-align":`right`}},{body:T(({data:t})=>[v(e(d(k),{icon:`pi pi-eye`,text:``,size:`small`,onClick:e=>i(`view`,t)},null,8,[`onClick`]),[[c,`View raw JSON`,void 0,{left:!0}]]),v(e(d(k),{icon:`pi pi-refresh`,text:``,size:`small`,disabled:!t.refetchable,onClick:e=>i(`refetch`,t)},null,8,[`disabled`,`onClick`]),[[c,t.refetchable?`Re-fetch from source`:`Cannot re-fetch — tool id is unknown/orphan`,void 0,{left:!0}]]),t.toolshedUrl?(L(),m(`a`,{key:0,href:t.toolshedUrl,target:`_blank`,rel:`noopener noreferrer`},[v(e(d(k),{icon:`pi pi-external-link`,text:``,size:`small`},null,512),[[c,`Open ToolShed`,void 0,{left:!0}]])],8,pt)):h(``,!0),v(e(d(k),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>i(`delete`,t)},null,8,[`onClick`]),[[c,`Delete`,void 0,{left:!0}]])]),_:1})]),_:1},8,[`value`,`loading`,`paginator`])])}}}),[[`__scopeId`,`data-v-23645664`]]),ht={key:0,class:`loading-state`},gt={key:1,class:`error-state`},_t={key:2,class:`raw-json`},vt=A(S({__name:`ToolCacheRawDialog`,props:{modelValue:{type:Boolean},entry:{},load:{type:Function}},emits:[`update:modelValue`],setup(t,{emit:r}){let i=t,o=r,l=c({get:()=>i.modelValue,set:e=>o(`update:modelValue`,e)}),u=n(),f=U(null),p=U(!1),h=U(null),g=c(()=>f.value===null?``:JSON.stringify(f.value,null,2));E(()=>[i.modelValue,i.entry?.cacheKey],async([e,t])=>{if(!(!e||!t)){p.value=!0,h.value=null,f.value=null;try{f.value=(await i.load(t))?.contents??null}catch(e){h.value=e instanceof Error?e.message:String(e)}finally{p.value=!1}}});async function _(){await navigator.clipboard.writeText(g.value),u.add({severity:`success`,summary:`Copied`,life:1500})}return(n,r)=>(L(),s(d(J),{visible:l.value,"onUpdate:visible":r[1]||=e=>l.value=e,header:t.entry?.toolId??`Cached payload`,modal:``,style:{width:`70vw`},breakpoints:{"960px":`90vw`}},{footer:T(()=>[e(d(k),{label:`Copy`,icon:`pi pi-copy`,text:``,disabled:!g.value,onClick:_},null,8,[`disabled`]),e(d(k),{label:`Close`,icon:`pi pi-times`,onClick:r[0]||=e=>l.value=!1})]),default:T(()=>[p.value?(L(),m(`div`,ht,`Loading…`)):h.value?(L(),m(`div`,gt,a(h.value),1)):(L(),m(`pre`,_t,a(g.value),1))]),_:1},8,[`visible`,`header`]))}}),[[`__scopeId`,`data-v-5ded7233`]]),yt=U([]),bt=U({count:0,bySource:{}}),xt=U(!1),X=U(null);function Z(e,t){if(e&&typeof e==`object`&&`detail`in e){let t=e.detail;if(typeof t==`string`&&t.length>0)return t}return t}function St(){let e=R();async function t(t={}){xt.value=!0,X.value=null;try{let{data:n,error:r}=await e.GET(`/api/tool-cache`,{params:{query:t.decode?{decode:`1`}:{}}});r?X.value=Z(r,`Failed to load tool cache`):n&&(yt.value=n.entries,bt.value=n.stats)}finally{xt.value=!1}}async function n(t){let{data:n,error:r}=await e.GET(`/api/tool-cache/{cacheKey}`,{params:{path:{cacheKey:t}}});if(r)throw Error(Z(r,`Failed to load raw entry`));return n}async function r(n){X.value=null;let{error:r}=await e.DELETE(`/api/tool-cache/{cacheKey}`,{params:{path:{cacheKey:n}}});if(r){let e=Z(r,`Delete failed`);throw X.value=e,Error(e)}await t()}async function i(n){X.value=null;let{data:r,error:i}=await e.DELETE(`/api/tool-cache`,{params:{query:n?{prefix:n}:{}}});if(i){let e=Z(i,`Clear failed`);throw X.value=e,Error(e)}return await t(),r}async function a(n,r){X.value=null;let{data:i,error:a}=await e.POST(`/api/tool-cache/refetch`,{body:{toolId:n,...r?{toolVersion:r}:{}}});if(a){let e=Z(a,`Refetch failed`);throw X.value=e,Error(e)}return await t(),i}async function o(n,r){X.value=null;let{data:i,error:a}=await e.POST(`/api/tool-cache/add`,{body:{toolId:n,...r?{toolVersion:r}:{}}});if(a){let e=Z(a,`Add failed`);throw X.value=e,Error(e)}return await t(),i}return{entries:yt,stats:bt,loading:xt,error:X,refresh:t,loadRaw:n,del:r,clear:i,refetch:a,add:o}}var Ct=U([]),wt=U({count:0,bySource:{}}),Tt=U(!1),Q=U(null);function $(e){return e instanceof Error?e.message:String(e)}function Et(){async function e(e={}){Tt.value=!0,Q.value=null;try{let t=q().cache,n=await t.listCached(),r=[],i={},a,o,s=0,c=!1;for(let l of n){let n=he(l.tool_id),u=l.source!==`orphan`&&l.tool_id!==`unknown`&&l.tool_id!==``,d={cacheKey:l.cache_key,toolId:l.tool_id,toolVersion:l.tool_version,source:l.source,sourceUrl:l.source_url,cachedAt:l.cached_at,decodable:!0,refetchable:u};if(n!==null){let[e,t]=n.trsToolId.split(`~`);e&&t&&(d.toolshedUrl=`${n.toolshedUrl}/view/${e}/${t}`)}let f=await t.statCached(l.cache_key);f!==null&&(d.sizeBytes=f.sizeBytes),e.decode&&(d.decodable=await t.loadCached(l.cache_key)!==null),r.push(d),i[d.source]=(i[d.source]??0)+1,(a===void 0||d.cachedAt<a)&&(a=d.cachedAt),(o===void 0||d.cachedAt>o)&&(o=d.cachedAt),d.sizeBytes!==void 0&&(s+=d.sizeBytes,c=!0)}let l={count:r.length,bySource:i};a!==void 0&&(l.oldest=a),o!==void 0&&(l.newest=o),c&&(l.totalBytes=s),Ct.value=r,wt.value=l}catch(e){Q.value=$(e)}finally{Tt.value=!1}}async function t(e){let t=q().cache,n=await t.loadCachedRaw(e);if(n===null)throw Error(`No cached entry: ${e}`);return{contents:n,decodable:await t.loadCached(e)!==null}}async function n(t){Q.value=null;try{if(!await q().cache.removeCached(t))throw Error(`No cached entry: ${t}`);await e()}catch(e){let t=$(e);throw Q.value=t,e instanceof Error?e:Error(t)}}async function r(t){Q.value=null;try{let n=await q().cache.clearCache(t);return await e(),{removed:n}}catch(e){let t=$(e);throw Q.value=t,e instanceof Error?e:Error(t)}}async function i(t,n){Q.value=null;try{let r=await q().refetch(t,n??null,{force:!0});return await e(),r}catch(e){let t=$(e);throw Q.value=t,e instanceof Error?e:Error(t)}}async function a(t,n){Q.value=null;try{let r=await q().refetch(t,n??null);return await e(),{cacheKey:r.cacheKey,alreadyCached:r.alreadyCached}}catch(e){let t=$(e);throw Q.value=t,e instanceof Error?e:Error(t)}}return{entries:Ct,stats:wt,loading:Tt,error:Q,refresh:e,loadRaw:t,del:n,clear:r,refetch:i,add:a}}var Dt={class:`cache-panel`},Ot={class:`panel-header`},kt={class:`panel-actions`},At={class:`decode-toggle`},jt={class:`add-form`},Mt={class:`add-form`},Nt=A(S({__name:`ToolCachePanel`,props:{transport:{}},setup(t){let r=t,i=c(()=>r.transport===`server`?`Server-side cache`:`Client-side cache (IndexedDB)`),{entries:o,stats:u,loading:f,error:p,refresh:g,loadRaw:_,del:ee,clear:y,refetch:b,add:x}=r.transport===`server`?St():Et(),S=n(),w=ue(),E=U(null),D=U(!1),te=U(null),O=U(!1);function A(){g({decode:O.value})}function j(e){return e instanceof Error?e.message:String(e)}let N=U(!1),P=U(``),I=U(``),R=U(!1),z=U(!1),B=U(``),V=U(!1),ae=[{label:`Add tool…`,icon:`pi pi-plus`,command:()=>N.value=!0},{label:`Clear by prefix…`,icon:`pi pi-filter-slash`,command:()=>z.value=!0},{separator:!0},{label:`Clear all`,icon:`pi pi-trash`,command:()=>{w.require({message:`Remove all ${u.value.count} cached tools?`,header:`Clear cache`,icon:`pi pi-exclamation-triangle`,acceptProps:{severity:`danger`,label:`Clear all`},accept:async()=>{try{let e=await y();S.add({severity:`success`,summary:`Removed ${e?.removed??0} entries`,life:2500})}catch(e){S.add({severity:`error`,summary:j(e),life:4e3})}}})}}];function H(e){te.value=e,D.value=!0}function oe(e){w.require({message:`Delete cached entry for ${e.toolId} ${e.toolVersion}?`,header:`Delete entry`,icon:`pi pi-exclamation-triangle`,acceptProps:{severity:`danger`,label:`Delete`},accept:async()=>{try{await ee(e.cacheKey),S.add({severity:`success`,summary:`Deleted ${e.toolId}`,life:2e3})}catch(e){S.add({severity:`error`,summary:j(e),life:4e3})}}})}async function se(e){try{await b(e.toolId,e.toolVersion),S.add({severity:`success`,summary:`Re-fetched ${e.toolId} ${e.toolVersion}`,life:2500})}catch(e){S.add({severity:`error`,summary:`Failed: ${j(e)}`,life:4e3})}}async function ce(){if(P.value){R.value=!0;try{let e=await x(P.value,I.value||void 0);S.add({severity:`success`,summary:e?.alreadyCached?`Already cached`:`Added ${P.value}`,life:2500}),N.value=!1,P.value=``,I.value=``}catch(e){S.add({severity:`error`,summary:`Failed: ${j(e)}`,life:4e3})}finally{R.value=!1}}}async function W(){if(B.value){V.value=!0;try{let e=await y(B.value);S.add({severity:`success`,summary:`Removed ${e?.removed??0} entries`,life:2500}),z.value=!1,B.value=``}catch(e){S.add({severity:`error`,summary:j(e),life:4e3})}finally{V.value=!1}}}return ne(A),(n,r)=>{let c=C(`tooltip`);return L(),m(`section`,Dt,[F(`div`,Ot,[F(`h2`,null,a(i.value),1),F(`div`,kt,[v((L(),m(`label`,At,[e(d(ie),{modelValue:O.value,"onUpdate:modelValue":r[0]||=e=>O.value=e,binary:!0,onChange:A},null,8,[`modelValue`]),r[10]||=F(`span`,null,`Decode probe`,-1)])),[[c,`Probe each entry for decode-ability (slower)`,void 0,{bottom:!0}]]),e(d(k),{label:`Refresh`,icon:`pi pi-refresh`,text:``,loading:d(f),onClick:A},null,8,[`loading`]),e(d(k),{icon:`pi pi-ellipsis-v`,text:``,"aria-label":`Cache actions`,onClick:r[1]||=e=>E.value?.toggle(e)}),e(d(pe),{ref_key:`menu`,ref:E,model:ae,popup:!0},null,512)])]),d(p)?(L(),s(d(re),{key:0,severity:`error`,closable:!1},{default:T(()=>[l(a(d(p)),1)]),_:1})):h(``,!0),e($e,{stats:d(u)},null,8,[`stats`]),e(mt,{entries:d(o),loading:d(f),onView:H,onRefetch:se,onDelete:oe},null,8,[`entries`,`loading`]),e(vt,{modelValue:D.value,"onUpdate:modelValue":r[2]||=e=>D.value=e,entry:te.value,load:d(_)},null,8,[`modelValue`,`entry`,`load`]),e(d(J),{visible:N.value,"onUpdate:visible":r[6]||=e=>N.value=e,header:`Add tool to ${t.transport} cache`,modal:``,style:{width:`24rem`}},{footer:T(()=>[e(d(k),{label:`Cancel`,text:``,onClick:r[5]||=e=>N.value=!1}),e(d(k),{label:`Add`,icon:`pi pi-plus`,loading:R.value,onClick:ce},null,8,[`loading`])]),default:T(()=>[F(`div`,jt,[F(`label`,null,[r[11]||=F(`span`,null,`Tool ID`,-1),e(d(M),{modelValue:P.value,"onUpdate:modelValue":r[3]||=e=>P.value=e,placeholder:`toolshed.g2.../repos/owner/repo/tool/version`},null,8,[`modelValue`])]),F(`label`,null,[r[12]||=F(`span`,null,`Version (optional)`,-1),e(d(M),{modelValue:I.value,"onUpdate:modelValue":r[4]||=e=>I.value=e},null,8,[`modelValue`])])])]),_:1},8,[`visible`,`header`]),e(d(J),{visible:z.value,"onUpdate:visible":r[9]||=e=>z.value=e,header:`Clear by tool-id prefix`,modal:``,style:{width:`24rem`}},{footer:T(()=>[e(d(k),{label:`Cancel`,text:``,onClick:r[8]||=e=>z.value=!1}),e(d(k),{label:`Clear`,icon:`pi pi-trash`,severity:`danger`,loading:V.value,onClick:W},null,8,[`loading`])]),default:T(()=>[F(`div`,Mt,[F(`label`,null,[r[13]||=F(`span`,null,`Tool ID prefix`,-1),e(d(M),{modelValue:B.value,"onUpdate:modelValue":r[7]||=e=>B.value=e,placeholder:`e.g. toolshed.g2.bx.psu.edu/repos/iuc/`},null,8,[`modelValue`])])])]),_:1},8,[`visible`])])}}}),[[`__scopeId`,`data-v-5ba0c46d`]]),Pt={class:`view-header`},Ft={class:`header-actions`},It=`gxwf-ui:cache-transport`,Lt=A(S({__name:`ToolCacheView`,setup(t){function n(){try{let e=localStorage.getItem(It);if(e===`server`||e===`client`||e===`both`)return e}catch{}return`server`}let r=U(n());E(r,e=>{try{localStorage.setItem(It,e)}catch{}});let i=[{label:`Server`,value:`server`},{label:`Client`,value:`client`},{label:`Both`,value:`both`}];return(t,n)=>(L(),m(`div`,null,[F(`div`,Pt,[n[1]||=F(`div`,null,[F(`h1`,null,`Tool Cache`),F(`p`,{class:`subtitle`},[l(` Inspect and manage parsed-tool caches. The server-side cache lives on disk inside `),F(`code`,null,`gxwf-web`),l(`; the client-side cache is browser-local IndexedDB used by the client edge-annotations transport. `)])],-1),F(`div`,Ft,[e(d(me),{modelValue:r.value,"onUpdate:modelValue":n[0]||=e=>r.value=e,options:i,optionLabel:`label`,optionValue:`value`,allowEmpty:!1,"aria-label":`Cache transport`},null,8,[`modelValue`])])]),r.value===`server`||r.value===`both`?(L(),s(Nt,{key:0,transport:`server`})):h(``,!0),r.value===`client`||r.value===`both`?(L(),s(Nt,{key:1,transport:`client`})):h(``,!0),e(d(Ke))]))}}),[[`__scopeId`,`data-v-a92ad1cc`]]);export{Lt as default};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-BDhviqRd.js","assets/index-4Ycp0GGC.js","assets/useApi-CXAk43j3.js","assets/index-DwHu09Uc.css","assets/chunk-U2HBQHQK-oBXc92ns.js","assets/src-Com_8MQM.js","assets/chunk-Bj-mKKzh.js","assets/chunk-5PVQY5BW-DpYMb9bR.js","assets/dist-J4JWBlIj.js","assets/chunk-ICPOFSXX-DwxYmUOT.js","assets/purify.es-PlwmxSh4.js","assets/_baseFor-CPf-8vV8.js","assets/isEmpty-D5KDGotR.js","assets/chunk-336JU56O-K6Z1vrz8.js","assets/chunk-5FUZZQ4R-BXjMW0vl.js","assets/chunk-X2U36JSP-CWkpvLVO.js","assets/chunk-ZZ45TVLE-BqOxN5U6.js","assets/rough.esm-Ci7Kjt46.js","assets/chunk-ENJZ2VHE-DrVCiAoi.js","assets/line-qKqldnLj.js","assets/path-CNO468J-.js","assets/array-DYRGGQae.js","assets/chunk-BSJP7CBP-DG8ixKk7.js","assets/chunk-426QAEUC-B7stkjff.js","assets/chunk-XPW4576I-DLAs5a7i.js","assets/cytoscape-dagre-CO2HNyOd.js","assets/cytoscape-popper-D30IDL9Y.js","assets/lib-qyXcPJAL.js","assets/tippy.esm-BUtiz0E2.js","assets/tippy-Lcq2UOUK.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{s as e}from"./chunk-Bj-mKKzh.js";import{$ as t,$t as n,C as r,Cn as i,E as a,En as o,F as s,J as c,Jt as l,Kt as u,Nt as d,Qt as f,Rt as p,Sn as m,St as h,U as g,Vt as _,Wt as v,X as y,Xt as b,Yt as x,_ as S,_n as C,a as ee,an as te,b as ne,dn as re,en as w,fn as T,gn as E,hn as D,i as ie,ln as O,lt as k,m as A,n as j,on as ae,p as M,pn as N,qt as P,r as F,rn as I,sn as L,tt as R,un as z,vn as oe,x as B,xt as V,yn as H,yt as U}from"./useApi-CXAk43j3.js";import{a as W,c as se,d as G,f as ce,i as K,n as le,r as q,s as ue,t as J}from"./index-4Ycp0GGC.js";import{a as de,i as fe,n as pe,r as me}from"./useOperation-6c4UXxWc.js";import{a as he,c as ge,i as _e,l as ve,n as ye,o as be,r as xe,t as Se,u as Y}from"./useToolInfoService-BoFJqmDR.js";function Ce(){let e=H(null),t=H(!1),n=H(null),{loadWorkflowContent:r}=fe();async function i(i,a={}){t.value=!0,n.value=null;try{e.value=_e(await r(i),{edgeAnnotations:a.edgeAnnotations})}catch(t){n.value=t instanceof Error?t.message:String(t),e.value=null}finally{t.value=!1}}return{diagram:e,loading:t,error:n,build:i}}function we(){let e=H(null),t=H(!1),n=H(null),{loadWorkflowContent:r}=fe();async function i(i,a={}){t.value=!0,n.value=null;try{e.value=xe(await r(i),{edgeAnnotations:a.edgeAnnotations,layout:`preset`})}catch(t){n.value=t instanceof Error?t.message:String(t),e.value=null}finally{t.value=!1}}return{elements:e,loading:t,error:n,build:i}}function Te(e){return e.nodes.map(e=>e.position).filter(e=>e!=null).length===0||e.nodes.every((e,t)=>{let n=e.position;return n!=null&&n.x===10*t&&n.y===10*t})?`dagre`:`preset`}function Ee(e){let t=new Set,n=new Map,r=new Map;for(let[i,a]of e)t.add(i),t.add(a),n.has(i)||n.set(i,new Set),r.has(i)||r.set(i,0),r.has(a)||r.set(a,0),i!==a&&(n.get(i).has(a)||(n.get(i).add(a),r.set(a,(r.get(a)??0)+1)));let i=[];for(let e of t)(r.get(e)??0)===0&&i.push(e);let a=[];for(;i.length>0;){let e=i.shift();a.push(e);for(let t of n.get(e)??[]){let e=(r.get(t)??0)-1;r.set(t,e),e===0&&i.push(t)}}if(a.length!==t.size)throw Error(`topological sort: cycle detected`);return a}var De=new Set([`gx_text`,`gx_integer`,`gx_float`,`gx_boolean`,`gx_color`,`gx_select`]);function Oe(e,t){return Ae(ke(e),t)}function ke(e){if(typeof e!=`object`||!e)throw Error(`buildWorkflowGraph: workflow must be an object`);let t=e;return t.class===`GalaxyWorkflow`?he(t):be(t)}function Ae(e,t){let n={};for(let[r,i]of Object.entries(e.steps))n[r]=je(r,i,t);return{steps:n,sortedStepIds:Ge(n)}}function je(e,t,n){let r=t.label??null,i=t.type??`tool`,a;return a=i===`data_input`||i===`data_collection_input`||i===`parameter_input`?Ne(e,t,i):i===`tool`?Pe(e,t,n):i===`subworkflow`?Fe(e,t,n):Me(e,null,i),a.label=r,a}function Me(e,t,n){return{stepId:e,toolId:t,stepType:n,inputs:{},outputs:{},connections:{},subworkflowOutputMap:{}}}function Ne(e,t,n){let r=t.tool_state??{};if(n===`data_input`)return{...Me(e,null,n),outputs:{output:{name:`output`,type:`data`}}};if(n===`data_collection_input`){let t=r.collection_type??`list`;return{...Me(e,null,n),outputs:{output:{name:`output`,type:`collection`,collectionType:t}},declaredCollectionType:t}}let i=r.parameter_type??`text`;return{...Me(e,null,n),outputs:{output:{name:`output`,type:i}}}}function Pe(e,t,n){let r=ze(t),i={},a={};if(t.tool_id){let e=n.getToolInfo(t.tool_id,t.tool_version);e&&(i=Be(e.inputs,t.tool_state??{}),a=We(e.outputs))}return t.when&&`when`in r&&(i.when={name:`when`,statePath:`when`,type:`boolean`}),{stepId:e,toolId:t.tool_id??null,toolVersion:t.tool_version??null,stepType:`tool`,inputs:i,outputs:a,connections:r,subworkflowOutputMap:{}}}function Fe(e,t,n){let r=ze(t),i,a={},o={};return t.subworkflow!=null&&(i=Ae(t.subworkflow,n),a=Re(t.subworkflow),o=Ie(r,i)),t.when&&`when`in r&&(o.when={name:`when`,statePath:`when`,type:`boolean`}),{stepId:e,toolId:null,stepType:`subworkflow`,inputs:o,outputs:{},connections:r,innerGraph:i,subworkflowOutputMap:a}}function Ie(e,t){let n={};for(let[r,i]of Object.entries(e))for(let e of i){let i=e.inputSubworkflowStepId;if(i&&i in t.steps){let e=t.steps[i];n[r]=Le(e,r)}}return n}function Le(e,t){return e.stepType===`data_collection_input`?{name:t,statePath:t,type:`collection`,collectionType:e.declaredCollectionType??null}:e.stepType===`data_input`?{name:t,statePath:t,type:`data`}:e.stepType===`parameter_input`?{name:t,statePath:t,type:e.outputs.output?.type??`text`}:{name:t,statePath:t,type:`data`}}function Re(e){let t={};for(let[n,r]of Object.entries(e.steps))for(let e of r.workflow_outputs??[]){if(!e.output_name)continue;let r=e.label||`${n}:${e.output_name}`;t[r]=[n,e.output_name]}return t}function ze(e){let t={};for(let[n,r]of Object.entries(e.input_connections??{})){let e=r,i=[];for(let t of e){let e=t.input_subworkflow_step_id;i.push({sourceStep:String(t.id),outputName:t.output_name,inputSubworkflowStepId:e==null?void 0:String(e)})}i.length>0&&(t[n]=i)}return t}function Be(e,t,n){let r={};for(let i of e){let e=i.name,a=n==null?e:`${n}|${e}`;if(i.parameter_type===`gx_data`)r[a]={name:e,statePath:a,type:`data`,multiple:i.multiple??!1,optional:i.optional??!1,extensions:[...i.extensions??[`data`]]};else if(i.parameter_type===`gx_data_collection`)r[a]={name:e,statePath:a,type:`collection`,collectionType:i.collection_type??null,optional:i.optional??!1,extensions:[...i.extensions??[`data`]]};else if(De.has(i.parameter_type))r[a]={name:e,statePath:a,type:i.parameter_type.slice(3)};else if(i.parameter_type===`gx_conditional`){let n=i,o=Ve(t[e]),s=He(n,o);if(s)Object.assign(r,Be(s.parameters,o,a));else for(let e of n.whens)Object.assign(r,Be(e.parameters,o,a))}else if(i.parameter_type===`gx_repeat`){let o=i.parameters??[],s=t[e],c=Array.isArray(s)?s:[];if(c.length>0)for(let t=0;t<c.length;t++){let i=Ve(c[t]),a=n==null?`${e}_${t}`:`${n}|${e}_${t}`;Object.assign(r,Be(o,i,a))}else Object.assign(r,Be(o,{},a))}else if(i.parameter_type===`gx_section`){let n=Ve(t[e]),o=i.parameters??[];Object.assign(r,Be(o,n,a))}}return r}function Ve(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:{}}function He(e,t){let n=t[e.test_parameter.name]??null;if(n!==null){for(let t of e.whens)if(Ue(n,t.discriminator))return t}for(let t of e.whens)if(t.is_default_when)return t;return null}function Ue(e,t){return typeof t==`boolean`&&typeof e==`boolean`?t===e:String(e)===String(t)}function We(e){let t={};for(let n of e){if(!n||typeof n!=`object`)continue;let e=n,r=e.name;if(!r)continue;let i=e.type;if(i===`data`)t[r]={name:r,type:`data`,format:e.format??null,formatSource:e.format_source??null};else if(i===`collection`){let n=e.structure??{};t[r]={name:r,type:`collection`,collectionType:n.collection_type??null,collectionTypeSource:n.collection_type_source??null,collectionTypeFromRules:n.collection_type_from_rules??null,structuredLike:n.structured_like??null}}else (i===`text`||i===`integer`||i===`float`||i===`boolean`)&&(t[r]={name:r,type:i})}return t}function Ge(e){let t=new Set(Object.keys(e)),n=[];for(let[r,i]of Object.entries(e)){n.push([r,r]);for(let e of Object.values(i.connections))for(let i of e)t.has(i.sourceStep)&&n.push([i.sourceStep,r])}return Ee(n)}var X={isCollection:!1,collectionType:null,rank:0,accepts:function(e){return!1},compatible:function(e){return!1},canMapOver:function(){return!1},toString:function(){return`NullCollectionType[]`},append:function(e){return e},equal:function(e){return e===this},effectiveMapOver:function(e){return X}},Ke={isCollection:!0,collectionType:`any`,rank:-1,accepts:function(e){return X!==e},compatible:function(e){return X!==e},canMapOver:function(){return!1},toString:function(){return`AnyCollectionType[]`},append:function(){return Ke},equal:function(e){return e===this},effectiveMapOver:function(e){return X}};function qe(e){return e.startsWith(`sample_sheet`)?`list`+e.slice(12):e}var Z=class e{collectionType;isCollection;rank;constructor(e){this.collectionType=e,this.isCollection=!0,this.rank=e.split(`:`).length}append(t){return t===X?this:t===Ke?t:new e(`${this.collectionType}:${t.collectionType}`)}accepts(e){let t=e.collectionType;if(e===X)return!1;if(e===Ke)return!0;if(this.collectionType.startsWith(`sample_sheet`)&&t&&!t.startsWith(`sample_sheet`))return!1;let n=qe(this.collectionType),r=t?qe(t):null;if(r===`paired`&&n==`paired_or_unpaired`)return!0;if(n.endsWith(`:paired_or_unpaired`)){let e=n.slice(0,-19);if(r===e||r===`${e}:paired`)return!0}return r==n}compatible(e){return this.accepts(e)||e.accepts(this)}canMapOver(e){if(!e.collectionType||e.collectionType===`any`||e.collectionType.startsWith(`sample_sheet`)&&!this.collectionType.startsWith(`sample_sheet`))return!1;let t=qe(this.collectionType),n=qe(e.collectionType);if(this.rank<=e.rank)return n==`paired_or_unpaired`?!t.endsWith(`paired`):n.endsWith(`:paired_or_unpaired`)?!t.endsWith(`:paired`):!1;let r=n;if(this._endsWith(t,`:${r}`)||r==`paired_or_unpaired`)return!0;if(r.endsWith(`:paired_or_unpaired`)){let e=r.substring(0,r.lastIndexOf(`:`)),n;return n=t.endsWith(`:paired`)?t.substring(0,t.lastIndexOf(`:`)):t,this._endsWith(n,e)}return!1}effectiveMapOver(t){let n=this.collectionType;if(t.collectionType&&this.canMapOver(t)){let r=t.collectionType,i=qe(n),a=qe(r);if(a.endsWith(`paired_or_unpaired`)){if(a==`paired_or_unpaired`)return i.endsWith(`list`)?new e(n):new e(n.substring(0,n.lastIndexOf(`:`)));if(i.endsWith(`:paired`)||i.endsWith(`:list`)){let t=n,a=r;for(;a.lastIndexOf(`:`)!==-1;)a=a.substring(0,a.lastIndexOf(`:`)),t=t.substring(0,t.lastIndexOf(`:`));return i.endsWith(`:paired`)&&(t=t.substring(0,t.lastIndexOf(`:`))),new e(t)}}return new e(n.substring(0,n.length-r.length-1))}return X}equal(e){return e?e.collectionType==this.collectionType:!1}toString(){return`CollectionType[${this.collectionType}]`}_endsWith(e,t){return e.indexOf(t,e.length-t.length)!==-1}};function Q(e){return e===X}function $(e){return e===Ke}function Je(e){let t=e.collectionType;return!t||!t.includes(`,`)?[e]:t.split(`,`).map(e=>new Z(e.trim()))}function Ye(e,t){if(Q(e)||Q(t))return!1;if($(t))return!Q(e);if($(e))return!1;for(let n of Je(t))if(n.accepts(e))return!0;return!1}function Xe(e,t){if(Q(e)||$(e)||$(t))return!1;if(Q(t))return!0;for(let n of Je(t))if(e.canMapOver(n))return!0;return!1}function Ze(e,t){return Q(e)&&Q(t)?!0:Q(e)||Q(t)?!1:$(e)||$(t)?!0:e.compatible(t)}function Qe(e,t){if(!Xe(e,t))return null;if(Q(t))return e instanceof Z?new Z(e.collectionType):e;for(let n of Je(t))if(e.canMapOver(n))return e.effectiveMapOver(n);return null}function $e(e){if(!e.isCollection||$(e))return!1;let t=e.collectionType;return t?(t.startsWith(`sample_sheet`)&&(t=`list`+t.slice(12)),t===`list`||t.startsWith(`list:`)):!1}function et(e){return e.rank}function tt(e,t){let n={};for(let[t,r]of Object.entries(e.steps)){n[t]={};for(let[e,i]of Object.entries(r.outputs))n[t][e]=ut(i)}if(t)for(let[e,r]of Object.entries(t))n[e]&&Object.assign(n[e],r);let r=[];for(let t of e.sortedStepIds){let i=e.steps[t],a={stepId:t,label:i.label??null,toolId:i.toolId,toolVersion:i.toolVersion,stepType:i.stepType,mapOver:null,connections:[],errors:[]};if(Object.keys(i.connections).length===0){r.push(a);continue}let o=[];for(let[e,r]of Object.entries(i.connections))for(let s of r){let r=it(s.sourceStep,s.outputName,t,e,i.inputs[e],n);a.connections.push(r),r.status===`ok`&&r.mapping?o.push(new Z(r.mapping)):(r.status===`ok`||r.status===`skip`)&&o.push(null)}let s=at(o,a);s&&(a.mapOver=s.collectionType),i.stepType===`subworkflow`&&i.innerGraph?lt(i,n):ot(i,s,n),r.push(a)}return[{stepResults:r,valid:nt(r),summary:rt(r)},n]}function nt(e){for(let t of e){if(t.errors.length>0)return!1;for(let e of t.connections)if(e.status===`invalid`)return!1}return!0}function rt(e){let t={ok:0,invalid:0,skip:0};for(let n of e)for(let e of n.connections)t[e.status]=(t[e.status]??0)+1;return t}function it(e,t,n,r,i,a){let o=(a[e]??{})[t];if(o===void 0)return{sourceStep:e,sourceOutput:t,targetStep:n,targetInput:r,status:`skip`,errors:[`Cannot resolve output '${t}' on step ${e}`]};if(i===void 0)return{sourceStep:e,sourceOutput:t,targetStep:n,targetInput:r,status:`skip`,errors:[`Cannot resolve input '${r}' on step ${n}`]};let s=dt(i),c=(i,a)=>{let o=i??null;return{sourceStep:e,sourceOutput:t,targetStep:n,targetInput:r,status:`ok`,mapping:o,mapDepth:o?o.split(`:`).length:0,reduction:a?.reduction??!1,errors:[]}};if(Q(o)){if(Q(s))return c()}else if($(o))return{sourceStep:e,sourceOutput:t,targetStep:n,targetInput:r,status:`skip`,errors:[`Cannot determine output type for '${t}' on step ${e}`]};else{if(i.multiple&&i.type===`data`&&o instanceof Z&&$e(o)){let e=new Z(`list`);return o.canMapOver(e)?c(o.effectiveMapOver(e).collectionType,{reduction:!0}):c(null,{reduction:!0})}if(Ye(o,s))return c();let e=Qe(o,s);if(e!==null)return c(e.collectionType)}return{sourceStep:e,sourceOutput:t,targetStep:n,targetInput:r,status:`invalid`,errors:[`Incompatible types: output is ${ft(o)}, input expects ${ft(s)}`]}}function at(e,t){let n=e.filter(e=>e!==null);if(n.length===0)return null;let r=n[0];for(let e=1;e<n.length;e++){let i=n[e];if(!Ze(r,i))return t.errors.push(`Incompatible map-over types: ${r.collectionType} vs ${i.collectionType}`),r;et(i)>et(r)&&(r=i)}return r}function ot(e,t,n){for(let[r,i]of Object.entries(e.outputs))if(i.type===`collection`){let a=st(e,i,n,t);if(a&&t){let i=`${t.collectionType}:${a}`;n[e.stepId][r]=new Z(i)}else a&&(n[e.stepId][r]=new Z(a))}else t?n[e.stepId][r]=new Z(t.collectionType??`list`):n[e.stepId][r]=X}function st(e,t,n,r){if(t.collectionType)return t.collectionType;let i=t.collectionTypeSource??t.structuredLike;return i?ct(e,i,n,r):null}function ct(e,t,n,r){let i=e.connections[t]??[];if(i.length===0)return null;let a=i[0],o=(n[a.sourceStep]??{})[a.outputName];if(o===void 0||Q(o)||$(o)||!(o instanceof Z))return null;let s=o.collectionType??``;if(r){let e=`${r.collectionType}:`;s.startsWith(e)&&(s=s.slice(e.length))}return s||null}function lt(e,t){let n=e.innerGraph;if(!n)return;let r={};for(let i of Object.values(e.connections))for(let e of i){let i=e.inputSubworkflowStepId;if(!i)continue;let a=t[e.sourceStep]?.[e.outputName];a!==void 0&&i in n.steps&&(r[i]||(r[i]={}),r[i].output=a)}let[,i]=tt(n,r);t[e.stepId]||(t[e.stepId]={});for(let[n,[r,a]]of Object.entries(e.subworkflowOutputMap)){let o=i[r]?.[a];o!==void 0&&(t[e.stepId][n]=o)}}function ut(e){return e.type===`collection`?e.collectionType?new Z(e.collectionType):Ke:X}function dt(e){return e.type===`collection`?e.collectionType?new Z(e.collectionType):Ke:X}function ft(e){return Q(e)?`dataset`:$(e)?`collection (any type)`:e instanceof Z?`collection<${e.collectionType}>`:`unknown`}function pt(e,t,n,r){return`${e}|${t}->${n}|${r}`}function mt(e){return e.label??e.stepId}function ht(e){let t=new Map;for(let n of e.stepResults)t.set(n.stepId,mt(n));let n=new Map;for(let r of e.stepResults){let e=mt(r);for(let i of r.connections){let r=t.get(i.sourceStep)??i.sourceStep,a={sourceStep:r,sourceOutput:i.sourceOutput,targetStep:e,targetInput:i.targetInput,mapDepth:i.mapDepth??0,reduction:i.reduction??!1,mapping:i.mapping??null,status:i.status};n.set(pt(r,i.sourceOutput,e,i.targetInput),a)}}return n}function gt(e){let t=[];return _t(e,t,new Set),t}function _t(e,t,n){let r=e.steps;if(typeof r!=`object`||!r)return;let i=Array.isArray(r)?r:Object.values(r);for(let e of i){if(typeof e!=`object`||!e)continue;let r=e,i=r.tool_id??null,a=r.tool_version??null;if(i){let e=yt(i,a);n.has(e)||(n.add(e),t.push({toolId:i,toolVersion:a}))}let o=r.subworkflow;o&&typeof o==`object`&&_t(o,t,n);let s=r.run;s&&typeof s==`object`&&!Array.isArray(s)&&_t(s,t,n)}}async function vt(e,t,n={}){let r=gt(e),i=new Map,a=Math.max(1,n.concurrency??1),o=0,s=async e=>{try{let r=await t(e.toolId,e.toolVersion);r===null?n.onMiss?.(e,`not_found`):i.set(yt(e.toolId,e.toolVersion),r)}catch(t){n.onMiss?.(e,t)}finally{o+=1,n.onProgress?.(o,r.length)}};if(a===1)for(let e of r)await s(e);else{let e=0,t=[],n=async()=>{for(;e<r.length;)await s(r[e++])};for(let e=0;e<Math.min(a,r.length);e++)t.push(n());await Promise.all(t)}return{getToolInfo:(e,t)=>i.get(yt(e,t??null))||(i.get(yt(e,null))??bt(i,e))}}function yt(e,t){return`${e}@${t??``}`}function bt(e,t){let n=`${t}@`;for(let[t,r]of e)if(t.startsWith(n))return r}var xt=6;function St(e){return e instanceof Error?e.message:typeof e==`string`?e:String(e)}function Ct(){let e=H(null),t=H(!1),n=H(null),r=H([]),i=H(null);async function a(a){t.value=!0,n.value=null,r.value=[],i.value=null;try{let t=await fe().loadWorkflowContent(a),n=Se(),o=[],[s]=tt(Oe(t,await vt(t,async(e,t)=>n.getToolInfo(e,t),{concurrency:xt,onMiss:(e,t)=>{o.push({toolId:e.toolId,toolVersion:e.toolVersion,reason:St(t)})},onProgress:(e,t)=>{i.value={resolved:e,total:t}}})));e.value=ht(s),r.value=o}catch(t){n.value=t instanceof Error?t.message:String(t),e.value=null}finally{t.value=!1}}function o(){e.value=null,n.value=null,r.value=[],i.value=null}return{annotations:e,loading:t,error:n,misses:r,progress:i,build:a,clear:o}}var wt=``;function Tt(e){return typeof e==`object`&&!!e&&`annotations`in e&&typeof e.annotations==`object`}function Et(){let e=H(null),t=H(!1),n=H(null);async function r(r){t.value=!0,n.value=null;try{let t=`${wt}/workflows/${encodeURIComponent(r)}/edge-annotations`,n=await fetch(t,{method:`POST`});if(!n.ok)throw Error(`Edge annotations request failed: ${n.status} ${n.statusText}`);let i=await n.json(),a,o;if(Tt(i)?(a=i.annotations,o=i.tool_specs):a=i,e.value=new Map(Object.entries(a)),o){let e=Se();await Promise.all(Object.values(o).map(async n=>{try{await e.addTool(n.tool_id,n.tool_version,n.parsed,`gxwf-web`,t)}catch(e){console.debug(`[useEdgeAnnotations] tool_specs write-through failed for ${n.tool_id}@${n.tool_version}:`,e)}}))}}catch(t){n.value=t instanceof Error?t.message:String(t),e.value=null}finally{t.value=!1}}function i(){e.value=null,n.value=null}return{annotations:e,loading:t,error:n,build:r,clear:i}}var Dt=``,Ot=`gxwf-ui:annotations-mode`,kt=1500;function At(){try{let e=sessionStorage.getItem(Ot);return e===`server`||e===`client`?e:null}catch{return null}}function jt(e){try{sessionStorage.setItem(Ot,e)}catch{}}function Mt(){return null}async function Nt(e){try{let t=await fetch(`${Dt}/healthz`,{signal:e});if(!t.ok)return!1;let n=await t.json();return Array.isArray(n.features)&&n.features.includes(`edge-annotations`)}catch{return!1}}async function Pt(){let e=Mt();if(e)return e;let t=At();if(t)return t;let n=new AbortController,r=setTimeout(()=>n.abort(),kt),i;try{i=await Nt(n.signal)}finally{clearTimeout(r)}let a=i?`server`:`client`;return jt(a),a}function Ft(){let e=Et(),t=Ct(),n=H(null),r=H(!1),i=u(()=>n.value===`server`?e.annotations.value:n.value===`client`?t.annotations.value:null),a=u(()=>n.value===`server`?e.error.value:n.value===`client`?t.error.value:null);async function o(i){r.value=!0;try{if(n.value===null&&(n.value=await Pt()),n.value===`server`){await e.build(i),e.error.value!==null&&(n.value=`client`,jt(`client`),await t.build(i));return}await t.build(i)}finally{r.value=!1}}function s(){e.clear(),t.clear()}return{annotations:i,loading:r,error:a,build:o,clear:s,mode:n,misses:t.misses,progress:t.progress}}var It={nodeLabel:`#1f2937`,inputFill:`#d0bb46`,runnableFill:`#2c3143`,edge:`#6b7280`,arrow:`#6b7280`,mapover:`#5a8`,reduction:`#a55`},Lt={nodeLabel:`#e5e7eb`,inputFill:`#d0bb46`,runnableFill:`#4c5574`,edge:`#9ca3af`,arrow:`#9ca3af`,mapover:`#5a8`,reduction:`#a55`};function Rt(e){let t=e===`dark`?Lt:It;return[{selector:`node`,style:{label:`data(label)`,color:t.nodeLabel,"text-outline-color":e===`dark`?`#1a1f2e`:`#ffffff`,"text-outline-width":2,"font-size":12}},{selector:`edge`,style:{"curve-style":`bezier`,"target-arrow-shape":`vee`,"arrow-scale":1.6,"line-color":t.edge,"target-arrow-color":t.arrow,width:2}},{selector:`.input`,style:{shape:`diamond`,"background-color":t.inputFill}},{selector:`.runnable`,style:{shape:`round-rectangle`,"background-color":t.runnableFill}},{selector:`edge.mapover_1`,style:{width:4,"line-color":t.mapover}},{selector:`edge.mapover_2`,style:{width:6,"line-color":t.mapover}},{selector:`edge.mapover_3`,style:{width:8,"line-color":t.mapover}},{selector:`edge.reduction`,style:{"line-style":`dashed`,"line-color":t.reduction,"target-arrow-shape":`tee`,"target-arrow-color":t.reduction}}]}function zt(){return typeof document>`u`?`light`:document.documentElement.classList.contains(`dark`)?`dark`:`light`}function Bt(){let e=H(zt()),t=null;return ae(()=>{typeof MutationObserver>`u`||(t=new MutationObserver(()=>{let t=zt();t!==e.value&&(e.value=t)}),t.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]}))}),te(()=>{t?.disconnect(),t=null}),{theme:e}}var Vt={class:`diagram`,"data-description":`workflow diagram`},Ht={class:`diagram-toolbar`},Ut=[`innerHTML`],Wt=`gxwf-ui:diagram-renderer`,Gt=`gxwf-ui:diagram-annotate`,Kt=j(w({__name:`WorkflowDiagram`,props:{workflowPath:{}},setup(t){let r=t;function i(){try{let e=localStorage.getItem(Wt);if(e===`cytoscape`||e===`mermaid`)return e}catch{}return`mermaid`}function a(){try{return localStorage.getItem(Gt)===`1`}catch{return!1}}let s=H(i()),c=H(a()),u=[{label:`Mermaid`,value:`mermaid`},{label:`Cytoscape`,value:`cytoscape`}],{diagram:d,loading:p,error:h,build:g}=Ce(),{elements:v,loading:y,error:S,build:ee}=we(),{annotations:ne,loading:re,error:w,build:T,clear:ie}=Ft(),O=H(!1),k=H(!1),A=H(null),j=H(null),N=H(null),F=null,I=[],{theme:R}=Bt();D([p,y,re],([e,t,n])=>{O.value=e||t||n}),D([h,S,w],([e,t,n])=>{A.value=e??t??n??null});let z=null;async function oe(){return z||=J(()=>import(`./mermaid.core-BDhviqRd.js`).then(e=>(e.default.initialize({startOnLoad:!1,theme:R.value===`dark`?`dark`:`default`,securityLevel:`strict`}),e.default)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])),z}let B=null;async function V(){return B||=(async()=>{let[t,n,r]=await Promise.all([J(()=>import(`./cytoscape.esm-Cj_wycbY.js`),[]),J(()=>import(`./cytoscape-dagre-CO2HNyOd.js`).then(t=>e(t.default,1)),__vite__mapDeps([25,6])),J(()=>import(`./cytoscape-popper-D30IDL9Y.js`).then(t=>e(t.default,1)),__vite__mapDeps([26,6,27]))]),i=t.default??t,a=n.default??n,o=r.default??r,s=i.use;return s(a),s(o),i})(),B}function U(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function W(e){let t=document.createElement(`div`),n=[];if(e.isNode()){let t=e.data(`step_type`);t&&n.push(`<p><i>Step Type:</i> ${U(String(t))}</p>`);let r=e.data(`tool_id`);r&&n.push(`<p><i>Tool ID:</i> ${U(String(r))}</p>`);let i=e.data(`repo_link`);if(i){let e=U(String(i));n.push(`<p><a href="${e}" target="_blank" rel="noopener">Tool Shed Repository</a></p>`)}let a=e.data(`doc`);a&&n.push(`<p>${U(String(a))}</p>`)}else{let t=e.data(`output`),r=e.data(`input`);t?n.push(`<p>Output <code>${U(String(t))}</code> → input <code>${U(String(r))}</code></p>`):r&&n.push(`<p>Connected to input <code>${U(String(r))}</code></p>`);let i=e.data(`map_depth`);if(i){let t=e.data(`mapping`),r=t?` (${U(String(t))})`:``;n.push(`<p><i>Map depth:</i> ${U(String(i))}${r}</p>`)}e.data(`reduction`)&&n.push(`<p><i>Reduction:</i> list → multi-data</p>`)}return t.innerHTML=n.join(``)||`<p><i>No details</i></p>`,t}function se(){for(let e of I)try{e.destroy()}catch{}I=[]}async function G(e){let t=await J(()=>import(`./tippy.esm-BUtiz0E2.js`),__vite__mapDeps([28,27,6]));await J(()=>Promise.resolve({}),__vite__mapDeps([29]));let n=t.default??t,r=e=>e.popperRef();e.on(`tap`,`node, edge`,e=>{let t=e.target,i=r(t),a=n(document.createElement(`div`),{getReferenceClientRect:i.getBoundingClientRect.bind(i),content:W(t),allowHTML:!0,interactive:!0,placement:`bottom`,trigger:`manual`,appendTo:document.body,onHidden:e=>{e.destroy(),I=I.filter(t=>t!==e)}});se(),I.push(a),a.show()}),e.on(`tap`,t=>{t.target===e&&se()})}async function ce(){if(!c.value){ie();return}return await T(r.workflowPath),ne.value??void 0}async function K(){j.value=null;let e=await ce();if(await g(r.workflowPath,{edgeAnnotations:e}),d.value){k.value=!0;try{let e=await oe(),t=`gxwf-mermaid-${Math.random().toString(36).slice(2)}`,{svg:n}=await e.render(t,d.value);j.value=n}catch(e){A.value=e instanceof Error?e.message:String(e)}finally{k.value=!1}}}async function le(){let e=await ce();await ee(r.workflowPath,{edgeAnnotations:e});let t=v.value;if(!(!t||!N.value)){k.value=!0;try{let e=await V();se(),F&&=(F.destroy(),null);let n=Te(t);F=e({container:N.value,elements:ye(t),style:Rt(R.value),layout:n===`dagre`?{name:`dagre`,rankDir:`LR`,nodeSep:40,rankSep:80}:{name:`preset`}}),await G(F)}catch(e){A.value=e instanceof Error?e.message:String(e)}finally{k.value=!1}}}async function q(){s.value===`mermaid`?await K():await le()}return D(R,e=>{F&&F.style().fromJson(Rt(e)).update(),s.value===`mermaid`&&(z=null,q())}),ae(()=>{q()}),te(()=>{se(),F&&=(F.destroy(),null)}),D(()=>r.workflowPath,()=>{q()}),D(s,e=>{try{localStorage.setItem(Wt,e)}catch{}q()}),D(c,e=>{try{localStorage.setItem(Gt,e?`1`:`0`)}catch{}q()}),(e,t)=>(L(),b(`div`,Vt,[P(`div`,Ht,[n(m(Y),{modelValue:c.value,"onUpdate:modelValue":t[0]||=e=>c.value=e,"on-label":`Map/reduce on`,"off-label":`Map/reduce off`,"on-icon":`pi pi-eye`,"off-icon":`pi pi-eye-slash`,size:`small`,"data-description":`annotate connections toggle`},null,8,[`modelValue`]),n(m(ve),{modelValue:s.value,"onUpdate:modelValue":t[1]||=e=>s.value=e,options:u,"option-label":`label`,"option-value":`value`,"allow-empty":!1,size:`small`,"data-description":`renderer toggle`},null,8,[`modelValue`])]),O.value||k.value?(L(),l(m(de),{key:0,style:{width:`2rem`,height:`2rem`}})):x(``,!0),A.value?(L(),l(m(M),{key:1,severity:`error`,closable:!1,size:`small`},{default:E(()=>[f(o(A.value),1)]),_:1})):x(``,!0),C(P(`div`,{class:`diagram-svg`,"data-description":`diagram svg`,innerHTML:j.value},null,8,Ut),[[_,s.value===`mermaid`&&j.value]]),C(P(`div`,{ref_key:`cytoCanvas`,ref:N,class:`diagram-cytoscape`,"data-description":`diagram cytoscape`},null,512),[[_,s.value===`cytoscape`]])]))}}),[[`__scopeId`,`data-v-1ec72b92`]]),qt={class:`tool-strip`,role:`toolbar`,"aria-label":`Workflow operations`},Jt=j(w({__name:`ToolStrip`,props:{activeOp:{}},emits:[`open-op`],setup(e,{emit:t}){let r=t,i=[{value:`clean`,label:`Clean`,icon:`pi pi-sparkles`},{value:`lint`,label:`Lint`,icon:`pi pi-search`},{value:`export`,label:`Export`,icon:`pi pi-download`}],a=[{value:`validate`,label:`Validate`,icon:`pi pi-check-circle`},{value:`roundtrip`,label:`Roundtrip`,icon:`pi pi-refresh`},{value:`convert`,label:`Convert`,icon:`pi pi-arrow-right-arrow-left`}],o=H(null),s=a.map(e=>({label:e.label,icon:e.icon,command:()=>r(`open-op`,e.value)}));function c(e){o.value?.toggle(e)}return(t,r)=>{let a=T(`tooltip`);return L(),b(`div`,qt,[(L(),b(v,null,O(i,r=>n(m(A),{key:r.value,label:r.label,icon:r.icon,severity:e.activeOp===r.value?`primary`:`secondary`,text:e.activeOp!==r.value,size:`small`,"data-description":`tool strip ${r.value}`,onClick:e=>t.$emit(`open-op`,r.value)},null,8,[`label`,`icon`,`severity`,`text`,`data-description`,`onClick`])),64)),C(n(m(A),{type:`button`,icon:`pi pi-ellipsis-h`,text:``,rounded:``,size:`small`,"aria-label":`Advanced operations`,"data-description":`advanced operations menu`,class:`advanced-trigger`,onClick:c},null,512),[[a,`Advanced operations`,void 0,{bottom:!0}]]),n(m(ge),{ref_key:`advancedMenuRef`,ref:o,model:m(s),popup:!0,"data-description":`advanced operations menu popup`},null,8,[`model`])])}}}),[[`__scopeId`,`data-v-0a164610`]]),Yt=[`data-description`,`aria-label`],Xt={class:`drawer-header`},Zt={class:`drawer-body`},Qt=j(w({__name:`ResultDrawer`,props:{op:{}},emits:[`close`],setup(e){let t=e,r={validate:{label:`Validate`,icon:`pi pi-check-circle`},lint:{label:`Lint`,icon:`pi pi-search`},clean:{label:`Clean`,icon:`pi pi-sparkles`},roundtrip:{label:`Roundtrip`,icon:`pi pi-refresh`},export:{label:`Export`,icon:`pi pi-download`},convert:{label:`Convert`,icon:`pi pi-arrow-right-arrow-left`}},a=u(()=>r[t.op].label),s=u(()=>r[t.op].icon);return(t,r)=>{let c=T(`tooltip`);return L(),b(`section`,{class:`result-drawer`,"data-description":`${e.op} drawer`,role:`region`,"aria-label":a.value},[P(`header`,Xt,[P(`h2`,null,[P(`i`,{class:i(s.value)},null,2),f(` `+o(a.value),1)]),C(n(m(A),{icon:`pi pi-times`,text:``,rounded:``,size:`small`,"aria-label":`Close`,"data-description":`close drawer`,onClick:r[0]||=e=>t.$emit(`close`)},null,512),[[c,`Close`,void 0,{left:!0}]])]),P(`div`,Zt,[z(t.$slots,`default`,{},void 0,!0)])],8,Yt)}}}),[[`__scopeId`,`data-v-4eec7a48`]]),$t=a.extend({name:`panel`,style:`
|
|
3
|
+
.p-panel {
|
|
4
|
+
display: block;
|
|
5
|
+
border: 1px solid dt('panel.border.color');
|
|
6
|
+
border-radius: dt('panel.border.radius');
|
|
7
|
+
background: dt('panel.background');
|
|
8
|
+
color: dt('panel.color');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.p-panel-header {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: center;
|
|
15
|
+
padding: dt('panel.header.padding');
|
|
16
|
+
background: dt('panel.header.background');
|
|
17
|
+
color: dt('panel.header.color');
|
|
18
|
+
border-style: solid;
|
|
19
|
+
border-width: dt('panel.header.border.width');
|
|
20
|
+
border-color: dt('panel.header.border.color');
|
|
21
|
+
border-radius: dt('panel.header.border.radius');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.p-panel-toggleable .p-panel-header {
|
|
25
|
+
padding: dt('panel.toggleable.header.padding');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.p-panel-title {
|
|
29
|
+
line-height: 1;
|
|
30
|
+
font-weight: dt('panel.title.font.weight');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.p-panel-content-container {
|
|
34
|
+
display: grid;
|
|
35
|
+
grid-template-rows: 1fr;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.p-panel-content-wrapper {
|
|
39
|
+
min-height: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.p-panel-content {
|
|
43
|
+
padding: dt('panel.content.padding');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.p-panel-footer {
|
|
47
|
+
padding: dt('panel.footer.padding');
|
|
48
|
+
}
|
|
49
|
+
`,classes:{root:function(e){var t=e.props;return[`p-panel p-component`,{"p-panel-toggleable":t.toggleable}]},header:`p-panel-header`,title:`p-panel-title`,headerActions:`p-panel-header-actions`,pcToggleButton:`p-panel-toggle-button`,contentContainer:`p-panel-content-container`,contentWrapper:`p-panel-content-wrapper`,content:`p-panel-content`,footer:`p-panel-footer`}}),en={name:`Panel`,extends:{name:`BasePanel`,extends:B,props:{header:String,toggleable:Boolean,collapsed:Boolean,toggleButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}}},style:$t,provide:function(){return{$pcPanel:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`update:collapsed`,`toggle`],data:function(){return{d_collapsed:this.collapsed}},watch:{collapsed:function(e){this.d_collapsed=e}},methods:{toggle:function(e){this.d_collapsed=!this.d_collapsed,this.$emit(`update:collapsed`,this.d_collapsed),this.$emit(`toggle`,{originalEvent:e,value:this.d_collapsed})},onKeyDown:function(e){(e.code===`Enter`||e.code===`NumpadEnter`||e.code===`Space`)&&(this.toggle(e),e.preventDefault())}},computed:{buttonAriaLabel:function(){return this.toggleButtonProps&&this.toggleButtonProps.ariaLabel?this.toggleButtonProps.ariaLabel:this.header},dataP:function(){return h({toggleable:this.toggleable})}},components:{PlusIcon:ue,MinusIcon:ie,Button:A},directives:{ripple:S}},tn=[`data-p`],nn=[`data-p`],rn=[`id`],an=[`id`,`aria-labelledby`];function on(e,t,r,a,s,c){var u=re(`Button`);return L(),b(`div`,I({class:e.cx(`root`),"data-p":c.dataP},e.ptmi(`root`)),[P(`div`,I({class:e.cx(`header`),"data-p":c.dataP},e.ptm(`header`)),[z(e.$slots,`header`,{id:e.$id+`_header`,class:i(e.cx(`title`)),collapsed:s.d_collapsed},function(){return[e.header?(L(),b(`span`,I({key:0,id:e.$id+`_header`,class:e.cx(`title`)},e.ptm(`title`)),o(e.header),17,rn)):x(``,!0)]}),P(`div`,I({class:e.cx(`headerActions`)},e.ptm(`headerActions`)),[z(e.$slots,`icons`),e.toggleable?z(e.$slots,`togglebutton`,{key:0,collapsed:s.d_collapsed,toggleCallback:function(e){return c.toggle(e)},keydownCallback:function(e){return c.onKeyDown(e)}},function(){return[n(u,I({id:e.$id+`_header`,class:e.cx(`pcToggleButton`),"aria-label":c.buttonAriaLabel,"aria-controls":e.$id+`_content`,"aria-expanded":!s.d_collapsed,unstyled:e.unstyled,onClick:t[0]||=function(e){return c.toggle(e)},onKeydown:t[1]||=function(e){return c.onKeyDown(e)}},e.toggleButtonProps,{pt:e.ptm(`pcToggleButton`)}),{icon:E(function(t){return[z(e.$slots,e.$slots.toggleicon?`toggleicon`:`togglericon`,{collapsed:s.d_collapsed},function(){return[(L(),l(N(s.d_collapsed?`PlusIcon`:`MinusIcon`),I({class:t.class},e.ptm(`pcToggleButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`id`,`class`,`aria-label`,`aria-controls`,`aria-expanded`,`unstyled`,`pt`])]}):x(``,!0)],16)],16,nn),n(p,I({name:`p-collapsible`},e.ptm(`transition`)),{default:E(function(){return[C(P(`div`,I({id:e.$id+`_content`,class:e.cx(`contentContainer`),role:`region`,"aria-labelledby":e.$id+`_header`},e.ptm(`contentContainer`)),[P(`div`,I({class:e.cx(`contentWrapper`)},e.ptm(`contentWrapper`)),[P(`div`,I({class:e.cx(`content`)},e.ptm(`content`)),[z(e.$slots,`default`)],16),e.$slots.footer?(L(),b(`div`,I({key:0,class:e.cx(`footer`)},e.ptm(`footer`)),[z(e.$slots,`footer`)],16)):x(``,!0)],16)],16,an),[[_,!s.d_collapsed]])]}),_:3},16)],16,tn)}en.render=on;var sn=a.extend({name:`tab`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-tab`,{"p-tab-active":t.active,"p-disabled":n.disabled}]}}}),cn={name:`Tab`,extends:{name:`BaseTab`,extends:B,props:{value:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1},as:{type:[String,Object],default:`BUTTON`},asChild:{type:Boolean,default:!1}},style:sn,provide:function(){return{$pcTab:this,$parentInstance:this}}},inheritAttrs:!1,inject:[`$pcTabs`,`$pcTabList`],methods:{onFocus:function(){this.$pcTabs.selectOnFocus&&this.changeActiveValue()},onClick:function(){this.changeActiveValue()},onKeydown:function(e){switch(e.code){case`ArrowRight`:this.onArrowRightKey(e);break;case`ArrowLeft`:this.onArrowLeftKey(e);break;case`Home`:this.onHomeKey(e);break;case`End`:this.onEndKey(e);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Enter`:case`NumpadEnter`:case`Space`:this.onEnterKey(e);break}},onArrowRightKey:function(e){var t=this.findNextTab(e.currentTarget);t?this.changeFocusedTab(e,t):this.onHomeKey(e),e.preventDefault()},onArrowLeftKey:function(e){var t=this.findPrevTab(e.currentTarget);t?this.changeFocusedTab(e,t):this.onEndKey(e),e.preventDefault()},onHomeKey:function(e){var t=this.findFirstTab();this.changeFocusedTab(e,t),e.preventDefault()},onEndKey:function(e){var t=this.findLastTab();this.changeFocusedTab(e,t),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.findLastTab()),e.preventDefault()},onPageUpKey:function(e){this.scrollInView(this.findFirstTab()),e.preventDefault()},onEnterKey:function(e){this.changeActiveValue()},findNextTab:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1]?e:e.nextElementSibling;return t?c(t,`data-p-disabled`)||c(t,`data-pc-section`)===`activebar`?this.findNextTab(t):V(t,`[data-pc-name="tab"]`):null},findPrevTab:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1]?e:e.previousElementSibling;return t?c(t,`data-p-disabled`)||c(t,`data-pc-section`)===`activebar`?this.findPrevTab(t):V(t,`[data-pc-name="tab"]`):null},findFirstTab:function(){return this.findNextTab(this.$pcTabList.$refs.tabs.firstElementChild,!0)},findLastTab:function(){return this.findPrevTab(this.$pcTabList.$refs.tabs.lastElementChild,!0)},changeActiveValue:function(){this.$pcTabs.updateValue(this.value)},changeFocusedTab:function(e,t){k(t),this.scrollInView(t)},scrollInView:function(e){var t;e==null||(t=e.scrollIntoView)==null||t.call(e,{block:`nearest`})}},computed:{active:function(){return d(this.$pcTabs?.d_value,this.value)},id:function(){return`${this.$pcTabs?.$id}_tab_${this.value}`},ariaControls:function(){return`${this.$pcTabs?.$id}_tabpanel_${this.value}`},attrs:function(){return I(this.asAttrs,this.a11yAttrs,this.ptmi(`root`,this.ptParams))},asAttrs:function(){return this.as===`BUTTON`?{type:`button`,disabled:this.disabled}:void 0},a11yAttrs:function(){return{id:this.id,tabindex:this.active?this.$pcTabs.tabindex:-1,role:`tab`,"aria-selected":this.active,"aria-controls":this.ariaControls,"data-pc-name":`tab`,"data-p-disabled":this.disabled,"data-p-active":this.active,onFocus:this.onFocus,onKeydown:this.onKeydown}},ptParams:function(){return{context:{active:this.active}}},dataP:function(){return h({active:this.active})}},directives:{ripple:S}};function ln(e,t,n,r,a,o){var s=T(`ripple`);return e.asChild?z(e.$slots,`default`,{key:1,dataP:o.dataP,class:i(e.cx(`root`)),active:o.active,a11yAttrs:o.a11yAttrs,onClick:o.onClick}):C((L(),l(N(e.as),I({key:0,class:e.cx(`root`),"data-p":o.dataP,onClick:o.onClick},o.attrs),{default:E(function(){return[z(e.$slots,`default`)]}),_:3},16,[`class`,`data-p`,`onClick`])),[[s]])}cn.render=ln;var un={name:`ChevronLeftIcon`,extends:ne};function dn(e){return hn(e)||mn(e)||pn(e)||fn()}function fn(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
50
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pn(e,t){if(e){if(typeof e==`string`)return gn(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gn(e,t):void 0}}function mn(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function hn(e){if(Array.isArray(e))return gn(e)}function gn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _n(e,t,n,r,i,a){return L(),b(`svg`,I({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),dn(t[0]||=[P(`path`,{d:`M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z`,fill:`currentColor`},null,-1)]),16)}un.render=_n;var vn={name:`TabList`,extends:{name:`BaseTabList`,extends:B,props:{},style:a.extend({name:`tablist`,classes:{root:`p-tablist`,content:`p-tablist-content p-tablist-viewport`,tabList:`p-tablist-tab-list`,activeBar:`p-tablist-active-bar`,prevButton:`p-tablist-prev-button p-tablist-nav-button`,nextButton:`p-tablist-next-button p-tablist-nav-button`}}),provide:function(){return{$pcTabList:this,$parentInstance:this}}},inheritAttrs:!1,inject:[`$pcTabs`],data:function(){return{isPrevButtonEnabled:!1,isNextButtonEnabled:!0}},resizeObserver:void 0,watch:{showNavigators:function(e){e?this.bindResizeObserver():this.unbindResizeObserver()},activeValue:{flush:`post`,handler:function(){this.updateInkBar()}}},mounted:function(){var e=this;setTimeout(function(){e.updateInkBar()},150),this.showNavigators&&(this.updateButtonState(),this.bindResizeObserver())},updated:function(){this.showNavigators&&this.updateButtonState()},beforeUnmount:function(){this.unbindResizeObserver()},methods:{onScroll:function(e){this.showNavigators&&this.updateButtonState(),e.preventDefault()},onPrevButtonClick:function(){var e=this.$refs.content,t=this.getVisibleButtonWidths(),n=y(e)-t,r=Math.abs(e.scrollLeft)-n*.8,i=Math.max(r,0);e.scrollLeft=R(e)?-1*i:i},onNextButtonClick:function(){var e=this.$refs.content,t=this.getVisibleButtonWidths(),n=y(e)-t,r=Math.abs(e.scrollLeft)+n*.8,i=e.scrollWidth-n,a=Math.min(r,i);e.scrollLeft=R(e)?-1*a:a},bindResizeObserver:function(){var e=this;this.resizeObserver=new ResizeObserver(function(){return e.updateButtonState()}),this.resizeObserver.observe(this.$refs.list)},unbindResizeObserver:function(){var e;(e=this.resizeObserver)==null||e.unobserve(this.$refs.list),this.resizeObserver=void 0},updateInkBar:function(){var e=this.$refs,t=e.content,n=e.inkbar,r=e.tabs;if(n){var i=V(t,`[data-pc-name="tab"][data-p-active="true"]`);this.$pcTabs.isVertical()?(n.style.height=s(i)+`px`,n.style.top=g(i).top-g(r).top+`px`):(n.style.width=U(i)+`px`,n.style.left=g(i).left-g(r).left+`px`)}},updateButtonState:function(){var e=this.$refs,n=e.list,r=e.content,i=r.scrollTop,a=r.scrollWidth,o=r.scrollHeight,s=r.offsetWidth,c=r.offsetHeight,l=Math.abs(r.scrollLeft),u=[y(r),t(r)],d=u[0],f=u[1];this.$pcTabs.isVertical()?(this.isPrevButtonEnabled=i!==0,this.isNextButtonEnabled=n.offsetHeight>=c&&parseInt(i)!==o-f):(this.isPrevButtonEnabled=l!==0,this.isNextButtonEnabled=n.offsetWidth>=s&&parseInt(l)!==a-d)},getVisibleButtonWidths:function(){var e=this.$refs,t=e.prevButton,n=e.nextButton,r=0;return this.showNavigators&&(r=(t?.offsetWidth||0)+(n?.offsetWidth||0)),r}},computed:{templates:function(){return this.$pcTabs.$slots},activeValue:function(){return this.$pcTabs.d_value},showNavigators:function(){return this.$pcTabs.showNavigators},prevButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.previous:void 0},nextButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.next:void 0},dataP:function(){return h({scrollable:this.$pcTabs.scrollable})}},components:{ChevronLeftIcon:un,ChevronRightIcon:ee},directives:{ripple:S}},yn=[`data-p`],bn=[`aria-label`,`tabindex`],xn=[`data-p`],Sn=[`aria-orientation`],Cn=[`aria-label`,`tabindex`];function wn(e,t,n,r,i,a){var o=T(`ripple`);return L(),b(`div`,I({ref:`list`,class:e.cx(`root`),"data-p":a.dataP},e.ptmi(`root`)),[a.showNavigators&&i.isPrevButtonEnabled?C((L(),b(`button`,I({key:0,ref:`prevButton`,type:`button`,class:e.cx(`prevButton`),"aria-label":a.prevButtonAriaLabel,tabindex:a.$pcTabs.tabindex,onClick:t[0]||=function(){return a.onPrevButtonClick&&a.onPrevButtonClick.apply(a,arguments)}},e.ptm(`prevButton`),{"data-pc-group-section":`navigator`}),[(L(),l(N(a.templates.previcon||`ChevronLeftIcon`),I({"aria-hidden":`true`},e.ptm(`prevIcon`)),null,16))],16,bn)),[[o]]):x(``,!0),P(`div`,I({ref:`content`,class:e.cx(`content`),onScroll:t[1]||=function(){return a.onScroll&&a.onScroll.apply(a,arguments)},"data-p":a.dataP},e.ptm(`content`)),[P(`div`,I({ref:`tabs`,class:e.cx(`tabList`),role:`tablist`,"aria-orientation":a.$pcTabs.orientation||`horizontal`},e.ptm(`tabList`)),[z(e.$slots,`default`),P(`span`,I({ref:`inkbar`,class:e.cx(`activeBar`),role:`presentation`,"aria-hidden":`true`},e.ptm(`activeBar`)),null,16)],16,Sn)],16,xn),a.showNavigators&&i.isNextButtonEnabled?C((L(),b(`button`,I({key:1,ref:`nextButton`,type:`button`,class:e.cx(`nextButton`),"aria-label":a.nextButtonAriaLabel,tabindex:a.$pcTabs.tabindex,onClick:t[2]||=function(){return a.onNextButtonClick&&a.onNextButtonClick.apply(a,arguments)}},e.ptm(`nextButton`),{"data-pc-group-section":`navigator`}),[(L(),l(N(a.templates.nexticon||`ChevronRightIcon`),I({"aria-hidden":`true`},e.ptm(`nextIcon`)),null,16))],16,Cn)),[[o]]):x(``,!0)],16,yn)}vn.render=wn;var Tn=a.extend({name:`tabpanel`,classes:{root:function(e){var t=e.instance;return[`p-tabpanel`,{"p-tabpanel-active":t.active}]}}}),En={name:`TabPanel`,extends:{name:`BaseTabPanel`,extends:B,props:{value:{type:[String,Number],default:void 0},as:{type:[String,Object],default:`DIV`},asChild:{type:Boolean,default:!1},header:null,headerStyle:null,headerClass:null,headerProps:null,headerActionProps:null,contentStyle:null,contentClass:null,contentProps:null,disabled:Boolean},style:Tn,provide:function(){return{$pcTabPanel:this,$parentInstance:this}}},inheritAttrs:!1,inject:[`$pcTabs`],computed:{active:function(){return d(this.$pcTabs?.d_value,this.value)},id:function(){return`${this.$pcTabs?.$id}_tabpanel_${this.value}`},ariaLabelledby:function(){return`${this.$pcTabs?.$id}_tab_${this.value}`},attrs:function(){return I(this.a11yAttrs,this.ptmi(`root`,this.ptParams))},a11yAttrs:function(){return{id:this.id,tabindex:this.$pcTabs?.tabindex,role:`tabpanel`,"aria-labelledby":this.ariaLabelledby,"data-pc-name":`tabpanel`,"data-p-active":this.active}},ptParams:function(){return{context:{active:this.active}}}}};function Dn(e,t,n,r,a,o){var s,c;return o.$pcTabs?(L(),b(v,{key:1},[e.asChild?z(e.$slots,`default`,{key:1,class:i(e.cx(`root`)),active:o.active,a11yAttrs:o.a11yAttrs}):(L(),b(v,{key:0},[!((s=o.$pcTabs)!=null&&s.lazy)||o.active?C((L(),l(N(e.as),I({key:0,class:e.cx(`root`)},o.attrs),{default:E(function(){return[z(e.$slots,`default`)]}),_:3},16,[`class`])),[[_,(c=o.$pcTabs)!=null&&c.lazy?!0:o.active]]):x(``,!0)],64))],64)):z(e.$slots,`default`,{key:0})}En.render=Dn;var On={name:`TabPanels`,extends:{name:`BaseTabPanels`,extends:B,props:{},style:a.extend({name:`tabpanels`,classes:{root:`p-tabpanels`}}),provide:function(){return{$pcTabPanels:this,$parentInstance:this}}},inheritAttrs:!1};function kn(e,t,n,r,i,a){return L(),b(`div`,I({class:e.cx(`root`),role:`presentation`},e.ptmi(`root`)),[z(e.$slots,`default`)],16)}On.render=kn;var An=a.extend({name:`tabs`,style:`
|
|
51
|
+
.p-tabs {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.p-tablist {
|
|
57
|
+
display: flex;
|
|
58
|
+
position: relative;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
background: dt('tabs.tablist.background');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.p-tablist-viewport {
|
|
64
|
+
overflow-x: auto;
|
|
65
|
+
overflow-y: hidden;
|
|
66
|
+
scroll-behavior: smooth;
|
|
67
|
+
scrollbar-width: none;
|
|
68
|
+
overscroll-behavior: contain auto;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.p-tablist-viewport::-webkit-scrollbar {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.p-tablist-tab-list {
|
|
76
|
+
position: relative;
|
|
77
|
+
display: flex;
|
|
78
|
+
border-style: solid;
|
|
79
|
+
border-color: dt('tabs.tablist.border.color');
|
|
80
|
+
border-width: dt('tabs.tablist.border.width');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.p-tablist-content {
|
|
84
|
+
flex-grow: 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.p-tablist-nav-button {
|
|
88
|
+
all: unset;
|
|
89
|
+
position: absolute !important;
|
|
90
|
+
flex-shrink: 0;
|
|
91
|
+
inset-block-start: 0;
|
|
92
|
+
z-index: 2;
|
|
93
|
+
height: 100%;
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
background: dt('tabs.nav.button.background');
|
|
98
|
+
color: dt('tabs.nav.button.color');
|
|
99
|
+
width: dt('tabs.nav.button.width');
|
|
100
|
+
transition:
|
|
101
|
+
color dt('tabs.transition.duration'),
|
|
102
|
+
outline-color dt('tabs.transition.duration'),
|
|
103
|
+
box-shadow dt('tabs.transition.duration');
|
|
104
|
+
box-shadow: dt('tabs.nav.button.shadow');
|
|
105
|
+
outline-color: transparent;
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.p-tablist-nav-button:focus-visible {
|
|
110
|
+
z-index: 1;
|
|
111
|
+
box-shadow: dt('tabs.nav.button.focus.ring.shadow');
|
|
112
|
+
outline: dt('tabs.nav.button.focus.ring.width') dt('tabs.nav.button.focus.ring.style') dt('tabs.nav.button.focus.ring.color');
|
|
113
|
+
outline-offset: dt('tabs.nav.button.focus.ring.offset');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.p-tablist-nav-button:hover {
|
|
117
|
+
color: dt('tabs.nav.button.hover.color');
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.p-tablist-prev-button {
|
|
121
|
+
inset-inline-start: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.p-tablist-next-button {
|
|
125
|
+
inset-inline-end: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.p-tablist-prev-button:dir(rtl),
|
|
129
|
+
.p-tablist-next-button:dir(rtl) {
|
|
130
|
+
transform: rotate(180deg);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.p-tab {
|
|
134
|
+
flex-shrink: 0;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
user-select: none;
|
|
137
|
+
position: relative;
|
|
138
|
+
border-style: solid;
|
|
139
|
+
white-space: nowrap;
|
|
140
|
+
gap: dt('tabs.tab.gap');
|
|
141
|
+
background: dt('tabs.tab.background');
|
|
142
|
+
border-width: dt('tabs.tab.border.width');
|
|
143
|
+
border-color: dt('tabs.tab.border.color');
|
|
144
|
+
color: dt('tabs.tab.color');
|
|
145
|
+
padding: dt('tabs.tab.padding');
|
|
146
|
+
font-weight: dt('tabs.tab.font.weight');
|
|
147
|
+
transition:
|
|
148
|
+
background dt('tabs.transition.duration'),
|
|
149
|
+
border-color dt('tabs.transition.duration'),
|
|
150
|
+
color dt('tabs.transition.duration'),
|
|
151
|
+
outline-color dt('tabs.transition.duration'),
|
|
152
|
+
box-shadow dt('tabs.transition.duration');
|
|
153
|
+
margin: dt('tabs.tab.margin');
|
|
154
|
+
outline-color: transparent;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.p-tab:not(.p-disabled):focus-visible {
|
|
158
|
+
z-index: 1;
|
|
159
|
+
box-shadow: dt('tabs.tab.focus.ring.shadow');
|
|
160
|
+
outline: dt('tabs.tab.focus.ring.width') dt('tabs.tab.focus.ring.style') dt('tabs.tab.focus.ring.color');
|
|
161
|
+
outline-offset: dt('tabs.tab.focus.ring.offset');
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.p-tab:not(.p-tab-active):not(.p-disabled):hover {
|
|
165
|
+
background: dt('tabs.tab.hover.background');
|
|
166
|
+
border-color: dt('tabs.tab.hover.border.color');
|
|
167
|
+
color: dt('tabs.tab.hover.color');
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.p-tab-active {
|
|
171
|
+
background: dt('tabs.tab.active.background');
|
|
172
|
+
border-color: dt('tabs.tab.active.border.color');
|
|
173
|
+
color: dt('tabs.tab.active.color');
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.p-tabpanels {
|
|
177
|
+
background: dt('tabs.tabpanel.background');
|
|
178
|
+
color: dt('tabs.tabpanel.color');
|
|
179
|
+
padding: dt('tabs.tabpanel.padding');
|
|
180
|
+
outline: 0 none;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.p-tabpanel:focus-visible {
|
|
184
|
+
box-shadow: dt('tabs.tabpanel.focus.ring.shadow');
|
|
185
|
+
outline: dt('tabs.tabpanel.focus.ring.width') dt('tabs.tabpanel.focus.ring.style') dt('tabs.tabpanel.focus.ring.color');
|
|
186
|
+
outline-offset: dt('tabs.tabpanel.focus.ring.offset');
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.p-tablist-active-bar {
|
|
190
|
+
z-index: 1;
|
|
191
|
+
display: block;
|
|
192
|
+
position: absolute;
|
|
193
|
+
inset-block-end: dt('tabs.active.bar.bottom');
|
|
194
|
+
height: dt('tabs.active.bar.height');
|
|
195
|
+
background: dt('tabs.active.bar.background');
|
|
196
|
+
transition: 250ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
197
|
+
}
|
|
198
|
+
`,classes:{root:function(e){var t=e.props;return[`p-tabs p-component`,{"p-tabs-scrollable":t.scrollable}]}}}),jn={name:`Tabs`,extends:{name:`BaseTabs`,extends:B,props:{value:{type:[String,Number],default:void 0},lazy:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},showNavigators:{type:Boolean,default:!0},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1}},style:An,provide:function(){return{$pcTabs:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`update:value`],data:function(){return{d_value:this.value}},watch:{value:function(e){this.d_value=e}},methods:{updateValue:function(e){this.d_value!==e&&(this.d_value=e,this.$emit(`update:value`,e))},isVertical:function(){return this.orientation===`vertical`}}};function Mn(e,t,n,r,i,a){return L(),b(`div`,I({class:e.cx(`root`)},e.ptmi(`root`)),[z(e.$slots,`default`)],16)}jn.render=Mn;function Nn(e){let t=e.match(/\/repos\/([^/]+)\/([^/]+)\/([^/]+)\/([^/]+)$/);if(!t)return null;let[,n,r,i,a]=t;return{owner:n,repo:r,toolName:i,version:a}}function Pn(e){if(!e)return`—`;let t=Nn(e);return t?`${t.toolName}@${t.version} (${t.owner}/${t.repo})`:e}var Fn=[`title`],In=j(w({__name:`ToolId`,props:{toolId:{}},setup(e){let t=e,n=u(()=>Pn(t.toolId));return(t,r)=>(L(),b(`span`,{title:e.toolId??void 0,class:`tool-id`},o(n.value),9,Fn))}}),[[`__scopeId`,`data-v-43f5196c`]]),Ln={class:`operation-report`},Rn={class:`summary-row`},zn={key:0,class:`skip-reason`},Bn={key:1,class:`no-changes`},Vn={key:2,class:`key-list`},Hn={class:`content-pre`},Un={class:`content-pre`},Wn=j(w({__name:`CleanReport`,props:{report:{}},setup(e){return(t,r)=>(L(),b(`div`,Ln,[P(`div`,Rn,[n(m(q),{value:`${e.report.total_removed} key${e.report.total_removed===1?``:`s`} removed`,severity:e.report.total_removed>0?`warn`:`success`},null,8,[`value`,`severity`]),n(m(q),{value:`${e.report.steps_with_removals} step${e.report.steps_with_removals===1?``:`s`} affected`,severity:`secondary`},null,8,[`value`])]),n(m(W),{value:e.report.results,size:`small`},{default:E(()=>[n(m(K),{field:`step`,header:`Step`}),n(m(K),{header:`Tool`},{body:E(({data:e})=>[n(In,{"tool-id":e.tool_id},null,8,[`tool-id`])]),_:1}),n(m(K),{header:`Removed Keys`},{body:E(({data:e})=>[e.skipped?(L(),b(`span`,zn,o(e.skip_reason||`skipped`),1)):e.removed_keys.length===0?(L(),b(`span`,Bn,`—`)):(L(),b(`ul`,Vn,[(L(!0),b(v,null,O(e.removed_keys,(e,t)=>(L(),b(`li`,{key:t},[P(`code`,null,o(e),1)]))),128))]))]),_:1})]),_:1},8,[`value`]),e.report.before_content!=null||e.report.after_content!=null?(L(),l(m(en),{key:0,header:`Workflow content`,toggleable:!0,collapsed:!0},{default:E(()=>[n(m(jn),{value:`before`},{default:E(()=>[n(m(vn),null,{default:E(()=>[n(m(cn),{value:`before`},{default:E(()=>[...r[0]||=[f(`Before`,-1)]]),_:1}),n(m(cn),{value:`after`},{default:E(()=>[...r[1]||=[f(`After`,-1)]]),_:1})]),_:1}),n(m(On),null,{default:E(()=>[n(m(En),{value:`before`},{default:E(()=>[P(`pre`,Hn,o(e.report.before_content??`(none)`),1)]),_:1}),n(m(En),{value:`after`},{default:E(()=>[P(`pre`,Un,o(e.report.after_content??`(none)`),1)]),_:1})]),_:1})]),_:1})]),_:1})):x(``,!0)]))}}),[[`__scopeId`,`data-v-901110c0`]]),Gn={class:`operation-report`},Kn={class:`error-list`},qn={class:`summary-row`},Jn={key:0,class:`error-list`},Yn=j(w({__name:`ValidationReport`,props:{report:{}},setup(e){let t=e,r=u(()=>t.report.structure_errors??[]),i=u(()=>t.report.encoding_errors??[]);function a(e){return e===`ok`?`success`:e===`fail`?`danger`:`secondary`}return(t,s)=>(L(),b(`div`,Gn,[e.report.skipped_reason?(L(),l(m(M),{key:0,severity:`warn`,closable:!1},{default:E(()=>[f(` Skipped: `+o(e.report.skipped_reason),1)]),_:1})):x(``,!0),r.value.length||i.value.length?(L(),l(m(M),{key:1,severity:`error`,closable:!1},{default:E(()=>[P(`ul`,Kn,[(L(!0),b(v,null,O(r.value,(e,t)=>(L(),b(`li`,{key:`s`+t},o(e),1))),128)),(L(!0),b(v,null,O(i.value,(e,t)=>(L(),b(`li`,{key:`e`+t},o(e),1))),128))])]),_:1})):x(``,!0),e.report.clean_report==null?x(``,!0):(L(),l(m(en),{key:2,header:`Pre-validation clean`,toggleable:!0,collapsed:!0},{default:E(()=>[n(Wn,{report:e.report.clean_report},null,8,[`report`])]),_:1})),P(`div`,qn,[(L(!0),b(v,null,O(e.report.summary,(e,t)=>(L(),l(m(q),{key:t,value:`${t}: ${e}`,severity:t===`ok`?`success`:t===`fail`?`danger`:`secondary`},null,8,[`value`,`severity`]))),128))]),n(m(W),{value:e.report.results,size:`small`,class:`results-table`},{default:E(()=>[n(m(K),{field:`step`,header:`Step`}),n(m(K),{header:`Tool`},{body:E(({data:e})=>[n(In,{"tool-id":e.tool_id},null,8,[`tool-id`])]),_:1}),n(m(K),{header:`Status`},{body:E(({data:e})=>[n(m(q),{value:e.status,severity:a(e.status)},null,8,[`value`,`severity`])]),_:1}),n(m(K),{header:`Errors`},{body:E(({data:e})=>[e.errors.length?(L(),b(`ul`,Jn,[(L(!0),b(v,null,O(e.errors,(e,t)=>(L(),b(`li`,{key:t},o(e),1))),128))])):x(``,!0)]),_:1})]),_:1},8,[`value`])]))}}),[[`__scopeId`,`data-v-c952e1d0`]]),Xn={class:`operation-report`},Zn={class:`error-list`},Qn={class:`summary-row`},$n={class:`message-list`},er={class:`message-list`},tr={key:0,class:`error-list`},nr=j(w({__name:`LintReport`,props:{report:{}},setup(e){let t=e,r=u(()=>t.report.structure_errors??[]),i=u(()=>t.report.encoding_errors??[]),a=u(()=>t.report.lint_error_messages??[]),s=u(()=>t.report.lint_warning_messages??[]);function c(e){return e===`ok`?`success`:e===`fail`?`danger`:`secondary`}return(t,u)=>(L(),b(`div`,Xn,[r.value.length||i.value.length?(L(),l(m(M),{key:0,severity:`error`,closable:!1},{default:E(()=>[P(`ul`,Zn,[(L(!0),b(v,null,O(r.value,(e,t)=>(L(),b(`li`,{key:`s`+t},o(e),1))),128)),(L(!0),b(v,null,O(i.value,(e,t)=>(L(),b(`li`,{key:`e`+t},o(e),1))),128))])]),_:1})):x(``,!0),P(`div`,Qn,[n(m(q),{value:`${e.report.lint_errors} error${e.report.lint_errors===1?``:`s`}`,severity:e.report.lint_errors>0?`danger`:`success`},null,8,[`value`,`severity`]),n(m(q),{value:`${e.report.lint_warnings} warning${e.report.lint_warnings===1?``:`s`}`,severity:e.report.lint_warnings>0?`warn`:`secondary`},null,8,[`value`,`severity`])]),a.value.length?(L(),l(m(M),{key:1,severity:`error`,closable:!1,"data-description":`lint errors`},{default:E(()=>[P(`ul`,$n,[(L(!0),b(v,null,O(a.value,(e,t)=>(L(),b(`li`,{key:`le`+t},o(e),1))),128))])]),_:1})):x(``,!0),s.value.length?(L(),l(m(M),{key:2,severity:`warn`,closable:!1,"data-description":`lint warnings`},{default:E(()=>[P(`ul`,er,[(L(!0),b(v,null,O(s.value,(e,t)=>(L(),b(`li`,{key:`lw`+t},o(e),1))),128))])]),_:1})):x(``,!0),e.report.results.length?(L(),l(m(W),{key:3,value:e.report.results,size:`small`,class:`results-table`},{default:E(()=>[n(m(K),{field:`step`,header:`Step`}),n(m(K),{header:`Tool`},{body:E(({data:e})=>[n(In,{"tool-id":e.tool_id},null,8,[`tool-id`])]),_:1}),n(m(K),{header:`Status`},{body:E(({data:e})=>[n(m(q),{value:e.status,severity:c(e.status)},null,8,[`value`,`severity`])]),_:1}),n(m(K),{header:`Errors`},{body:E(({data:e})=>[e.errors.length?(L(),b(`ul`,tr,[(L(!0),b(v,null,O(e.errors,(e,t)=>(L(),b(`li`,{key:t},o(e),1))),128))])):x(``,!0)]),_:1})]),_:1},8,[`value`])):x(``,!0)]))}}),[[`__scopeId`,`data-v-504757bf`]]),rr={class:`operation-report`},ir={class:`summary-row`},ar={class:`summary-line`},or={class:`failure-list`},sr={class:`section-heading`},cr={class:`section-heading`},lr={class:`content-pre`},ur={class:`content-pre`},dr=j(w({__name:`RoundtripReport`,props:{report:{}},setup(e){let t=e,r=u(()=>t.report.result);return(t,i)=>(L(),b(`div`,rr,[P(`div`,ir,[n(m(q),{value:r.value.ok?`pass`:`fail`,severity:r.value.ok?`success`:`danger`,class:`status-tag`},null,8,[`value`,`severity`]),P(`span`,ar,o(r.value.summary_line),1)]),r.value.error?(L(),l(m(M),{key:0,severity:`error`,closable:!1},{default:E(()=>[f(o(r.value.error),1)]),_:1})):x(``,!0),r.value.conversion_failure_lines.length?(L(),b(v,{key:1},[i[0]||=P(`h4`,{class:`section-heading`},`Conversion Failures`,-1),P(`ul`,or,[(L(!0),b(v,null,O(r.value.conversion_failure_lines,(e,t)=>(L(),b(`li`,{key:t},[P(`code`,null,o(e),1)]))),128))])],64)):x(``,!0),r.value.error_diffs.length?(L(),b(v,{key:2},[P(`p`,sr,[n(m(q),{value:`error`,severity:`danger`}),i[1]||=f(` Diffs`,-1)]),n(m(W),{value:r.value.error_diffs,size:`small`},{default:E(()=>[n(m(K),{field:`step_path`,header:`Step`}),n(m(K),{field:`key_path`,header:`Key`}),n(m(K),{field:`description`,header:`Description`})]),_:1},8,[`value`])],64)):x(``,!0),r.value.benign_diffs.length?(L(),b(v,{key:3},[P(`p`,cr,[n(m(q),{value:`benign`,severity:`secondary`}),i[2]||=f(` Diffs`,-1)]),n(m(W),{value:r.value.benign_diffs,size:`small`},{default:E(()=>[n(m(K),{field:`step_path`,header:`Step`}),n(m(K),{field:`key_path`,header:`Key`}),n(m(K),{field:`description`,header:`Description`})]),_:1},8,[`value`])],64)):x(``,!0),e.report.before_content!=null||e.report.after_content!=null?(L(),l(m(en),{key:4,header:`Workflow content`,toggleable:!0,collapsed:!0},{default:E(()=>[n(m(jn),{value:`original`},{default:E(()=>[n(m(vn),null,{default:E(()=>[n(m(cn),{value:`original`},{default:E(()=>[...i[3]||=[f(`Original (native)`,-1)]]),_:1}),n(m(cn),{value:`reimported`},{default:E(()=>[...i[4]||=[f(`Re-imported (native)`,-1)]]),_:1})]),_:1}),n(m(On),null,{default:E(()=>[n(m(En),{value:`original`},{default:E(()=>[P(`pre`,lr,o(e.report.before_content??`(none)`),1)]),_:1}),n(m(En),{value:`reimported`},{default:E(()=>[P(`pre`,ur,o(e.report.after_content??`(none)`),1)]),_:1})]),_:1})]),_:1})]),_:1})):x(``,!0)]))}}),[[`__scopeId`,`data-v-1ee63bb8`]]),fr={class:`operation-report`},pr={class:`summary-row`},mr={class:`path-row`},hr={key:0},gr={key:0},_r={key:1,class:`muted`},vr={key:1,class:`muted`},yr={class:`content-pre`},br=j(w({__name:`ExportReport`,props:{result:{}},setup(e){let t=e,r=u(()=>`removed_path`in t.result?t.result.removed_path:null),i=u(()=>t.result.target_format===`native`),a=u(()=>t.result.source_format===`native`?`Native (.ga)`:`Format2 (.gxwf.yml)`),s=u(()=>t.result.target_format===`native`?`Native (.ga)`:`Format2 (.gxwf.yml)`),c=u(()=>i.value?(t.result.report.steps??[]).map(e=>({step_id:e.step_id,step_label:e.step_label,tool_id:e.tool_id,ok:e.encoded,error:e.error})):[]),d=u(()=>i.value?t.result.report.all_encoded:t.result.report.ok),p=u(()=>{if(i.value)return t.result.report.summary;let e=t.result.report,n=e.steps_converted+e.steps_fallback;return`${e.steps_converted}/${n} step${n===1?``:`s`} converted`});return(t,i)=>(L(),b(`div`,fr,[P(`div`,pr,[n(m(q),{value:`${a.value} → ${s.value}`,severity:`info`},null,8,[`value`]),e.result.dry_run?(L(),l(m(q),{key:0,value:`Dry run`,severity:`warn`})):x(``,!0),r.value?(L(),l(m(q),{key:1,value:`Removes ${r.value}`,severity:`danger`},null,8,[`value`])):x(``,!0),n(m(q),{value:p.value,severity:d.value?`success`:`warn`},null,8,[`value`,`severity`])]),P(`div`,mr,[P(`div`,null,[i[0]||=P(`span`,{class:`path-label`},`Source:`,-1),i[1]||=f(),P(`code`,null,o(e.result.source_path),1)]),P(`div`,null,[i[2]||=P(`span`,{class:`path-label`},`Output:`,-1),i[3]||=f(),P(`code`,null,o(e.result.output_path),1)]),r.value?(L(),b(`div`,hr,[i[4]||=P(`span`,{class:`path-label`},`Removed:`,-1),i[5]||=f(),P(`code`,null,o(r.value),1)])):x(``,!0)]),c.value.length>0?(L(),l(m(W),{key:0,value:c.value,size:`small`},{default:E(()=>[n(m(K),{field:`step_id`,header:`Step`}),n(m(K),{field:`step_label`,header:`Label`},{body:E(({data:e})=>[e.step_label?(L(),b(`span`,gr,o(e.step_label),1)):(L(),b(`span`,_r,`—`))]),_:1}),n(m(K),{header:`Tool`},{body:E(({data:e})=>[e.tool_id?(L(),l(In,{key:0,"tool-id":e.tool_id},null,8,[`tool-id`])):(L(),b(`span`,vr,`—`))]),_:1}),n(m(K),{header:`Status`},{body:E(({data:e})=>[n(m(q),{value:e.ok?`OK`:e.error??`Failed`,severity:e.ok?`success`:`danger`},null,8,[`value`,`severity`])]),_:1})]),_:1},8,[`value`])):x(``,!0),e.result.content==null?x(``,!0):(L(),l(m(en),{key:1,header:`Converted content`,toggleable:!0,collapsed:!0},{default:E(()=>[P(`pre`,yr,o(e.result.content),1)]),_:1}))]))}}),[[`__scopeId`,`data-v-12ba9dcd`]]),xr={class:`raw-json`},Sr=j(w({__name:`RawJsonView`,props:{data:{}},setup(e){let t=e,n=u(()=>JSON.stringify(t.data,null,2));return(e,t)=>(L(),b(`pre`,xr,[P(`code`,null,o(n.value),1)]))}}),[[`__scopeId`,`data-v-f865b670`]]),Cr=[`data-description`],wr={key:0,class:`panel-content`,"data-description":`lint result panel`},Tr={class:`panel-toolbar`},Er={class:`opt-label`},Dr={class:`opt-label`},Or={key:2,class:`no-results`},kr={key:1,class:`panel-content`,"data-description":`export result panel`},Ar={class:`panel-toolbar`},jr={key:2,class:`no-results`},Mr={key:2,class:`panel-content`,"data-description":`validate result panel`},Nr={class:`panel-toolbar`},Pr={class:`opt-label`},Fr={class:`opt-label`},Ir={class:`opt-label`},Lr={key:2,class:`no-results`},Rr={key:3,class:`panel-content`,"data-description":`clean result panel`},zr={class:`panel-toolbar`},Br={key:2,class:`no-results`},Vr={key:4,class:`panel-content`,"data-description":`roundtrip result panel`},Hr={class:`panel-toolbar`},Ur={class:`opt-label`},Wr={class:`opt-label`},Gr={class:`opt-label`},Kr={key:2,class:`no-results`},qr={key:5,class:`panel-content`,"data-description":`convert result panel`},Jr={class:`help destructive`},Yr={class:`panel-toolbar`},Xr={key:2,class:`no-results`},Zr=250,Qr=j(w({__name:`OperationPanel`,props:{workflowPath:{},op:{}},setup(e){let t=e,{validateResult:a,lintResult:s,cleanResult:c,roundtripResult:u,exportResult:d,convertResult:p,validateLoading:h,lintLoading:g,cleanLoading:_,roundtripLoading:v,exportLoading:y,convertLoading:S,validateError:ee,lintError:te,cleanError:ne,roundtripError:re,exportError:w,convertError:ie,runValidate:O,runLint:k,runClean:j,runRoundtrip:N,runExport:I,runConvert:R}=me(t.workflowPath),{refreshWorkflows:z}=le(),B=ce(),V=r(),H=[{label:`Meta model`,value:`effect`},{label:`JSON Schema`,value:`json-schema`}],U=oe({strict_structure:!1,strict_encoding:!1,mode:`effect`,clean_first:!1}),W=oe({strict_structure:!1,strict_encoding:!1}),G=oe({strict_structure:!1,strict_encoding:!1,strict_state:!1}),K=oe({validate:!1,lint:!1,clean:!1,roundtrip:!1,export:!1,convert:!1});function q(e){let t;return()=>{t&&clearTimeout(t),t=setTimeout(e,Zr)}}function ue(){switch(t.op){case`validate`:a.value||O(U);break;case`lint`:s.value||k(W);break;case`clean`:c.value||j({dry_run:!0});break;case`export`:d.value||I({dry_run:!0});break;case`convert`:p.value||R({dry_run:!0});break}}ae(ue),D(()=>t.op,ue),D(U,q(()=>{t.op===`validate`&&O(U)})),D(W,q(()=>{t.op===`lint`&&k(W)})),D(G,q(()=>{t.op===`roundtrip`&&u.value&&N(G)}));async function J(){await j({dry_run:!1}),ne.value||(pe(t.workflowPath,`clean`),await z(),V.add({severity:`success`,summary:`Clean applied`,detail:`Rewrote ${t.workflowPath}`,life:3e3}))}async function de(){await I({dry_run:!1}),w.value||(await z(),V.add({severity:`success`,summary:`Sibling written`,detail:d.value?.output_path??`Wrote format2 sibling`,life:3e3}))}async function fe(){window.confirm(`Convert will delete the original file at ${t.workflowPath} after writing the converted output. Continue?`)&&(await R({dry_run:!1}),ie.value||(await z(),V.add({severity:`success`,summary:`Converted`,detail:`Replaced ${t.workflowPath}`,life:3e3}),B.push(`/`)))}return(t,r)=>{let D=T(`tooltip`);return L(),b(`div`,{class:`op-panel`,"data-description":`${e.op} panel`},[e.op===`lint`?(L(),b(`div`,wr,[r[23]||=P(`p`,{class:`help`},` Style and quality warnings — unused outputs, missing annotations, suspicious defaults. `,-1),P(`div`,Tr,[n(m(A),{label:`Re-run`,icon:`pi pi-refresh`,text:``,size:`small`,loading:m(g),"data-description":`run lint operation`,onClick:r[0]||=()=>void m(k)(W)},null,8,[`loading`]),C((L(),b(`label`,Er,[n(m(F),{modelValue:W.strict_structure,"onUpdate:modelValue":r[1]||=e=>W.strict_structure=e,binary:!0,size:`small`},null,8,[`modelValue`]),r[21]||=f(` Strict structure `,-1)])),[[D,`Fail on structural issues.`,void 0,{top:!0}]]),C((L(),b(`label`,Dr,[n(m(F),{modelValue:W.strict_encoding,"onUpdate:modelValue":r[2]||=e=>W.strict_encoding=e,binary:!0,size:`small`},null,8,[`modelValue`]),r[22]||=f(` Strict encoding `,-1)])),[[D,`Fail on encoding quirks (legacy type hints, etc).`,void 0,{top:!0}]]),m(s)?(L(),l(m(Y),{key:0,modelValue:K.lint,"onUpdate:modelValue":r[3]||=e=>K.lint=e,onLabel:`Raw JSON`,offLabel:`Formatted`,onIcon:`pi pi-code`,offIcon:`pi pi-list`,size:`small`},null,8,[`modelValue`])):x(``,!0),m(te)?(L(),l(m(M),{key:1,severity:`error`,closable:!1,size:`small`},{default:E(()=>[f(o(m(te)),1)]),_:1})):x(``,!0)]),P(`div`,{class:i({"result-area":!0,stale:m(g)&&m(s)})},[m(s)&&K.lint?(L(),l(m(Sr),{key:0,data:m(s)},null,8,[`data`])):m(s)?(L(),l(m(nr),{key:1,report:m(s)},null,8,[`report`])):m(g)?x(``,!0):(L(),b(`p`,Or,`No results yet.`))],2)])):e.op===`export`?(L(),b(`div`,kr,[r[24]||=P(`p`,{class:`help`},[f(` Preview of the format2 sibling that would be written alongside the original. Click `),P(`strong`,null,`Write sibling`),f(` to save it to disk. `)],-1),P(`div`,Ar,[n(m(A),{label:`Write sibling`,icon:`pi pi-save`,size:`small`,loading:m(y),disabled:!m(d)||m(y),"data-description":`apply export operation`,onClick:r[4]||=()=>void de()},null,8,[`loading`,`disabled`]),m(d)?(L(),l(m(Y),{key:0,modelValue:K.export,"onUpdate:modelValue":r[5]||=e=>K.export=e,onLabel:`Raw JSON`,offLabel:`Formatted`,onIcon:`pi pi-code`,offIcon:`pi pi-list`,size:`small`},null,8,[`modelValue`])):x(``,!0),m(w)?(L(),l(m(M),{key:1,severity:`error`,closable:!1,size:`small`},{default:E(()=>[f(o(m(w)),1)]),_:1})):x(``,!0)]),P(`div`,{class:i({"result-area":!0,stale:m(y)&&m(d)})},[m(d)&&K.export?(L(),l(m(Sr),{key:0,data:m(d)},null,8,[`data`])):m(d)?(L(),l(m(br),{key:1,result:m(d)},null,8,[`result`])):m(y)?x(``,!0):(L(),b(`p`,jr,`Loading preview…`))],2)])):e.op===`validate`?(L(),b(`div`,Mr,[r[28]||=P(`p`,{class:`help`},`Schema validation — structural and semantic correctness of the file.`,-1),P(`div`,Nr,[n(m(A),{label:`Re-run`,icon:`pi pi-refresh`,text:``,size:`small`,loading:m(h),"data-description":`run validate operation`,onClick:r[6]||=()=>void m(O)(U)},null,8,[`loading`]),C(n(m(se),{modelValue:U.mode,"onUpdate:modelValue":r[7]||=e=>U.mode=e,options:H,"option-label":`label`,"option-value":`value`,size:`small`,class:`mode-select`},null,8,[`modelValue`]),[[D,`Validator backend.`,void 0,{top:!0}]]),P(`label`,Pr,[n(m(F),{modelValue:U.strict_structure,"onUpdate:modelValue":r[8]||=e=>U.strict_structure=e,binary:!0,size:`small`},null,8,[`modelValue`]),r[25]||=f(` Strict structure `,-1)]),P(`label`,Fr,[n(m(F),{modelValue:U.strict_encoding,"onUpdate:modelValue":r[9]||=e=>U.strict_encoding=e,binary:!0,size:`small`},null,8,[`modelValue`]),r[26]||=f(` Strict encoding `,-1)]),C((L(),b(`label`,Ir,[n(m(F),{modelValue:U.clean_first,"onUpdate:modelValue":r[10]||=e=>U.clean_first=e,binary:!0,size:`small`},null,8,[`modelValue`]),r[27]||=f(` Clean first `,-1)])),[[D,`Run Clean (in-memory) before validating to normalize the document.`,void 0,{top:!0}]]),m(a)?(L(),l(m(Y),{key:0,modelValue:K.validate,"onUpdate:modelValue":r[11]||=e=>K.validate=e,onLabel:`Raw JSON`,offLabel:`Formatted`,onIcon:`pi pi-code`,offIcon:`pi pi-list`,size:`small`},null,8,[`modelValue`])):x(``,!0),m(ee)?(L(),l(m(M),{key:1,severity:`error`,closable:!1,size:`small`},{default:E(()=>[f(o(m(ee)),1)]),_:1})):x(``,!0)]),P(`div`,{class:i({"result-area":!0,stale:m(h)&&m(a)})},[m(a)&&K.validate?(L(),l(m(Sr),{key:0,data:m(a)},null,8,[`data`])):m(a)?(L(),l(m(Yn),{key:1,report:m(a)},null,8,[`report`])):m(h)?x(``,!0):(L(),b(`p`,Lr,`No results yet.`))],2)])):e.op===`clean`?(L(),b(`div`,Rr,[r[29]||=P(`p`,{class:`help`},[f(` Preview of what Clean would strip (UI-only state, stale tool_state). Click `),P(`strong`,null,`Apply`),f(` to rewrite the file in place. `)],-1),P(`div`,zr,[n(m(A),{label:`Apply`,icon:`pi pi-save`,size:`small`,loading:m(_),disabled:!m(c)||m(_),"data-description":`apply clean operation`,onClick:r[12]||=()=>void J()},null,8,[`loading`,`disabled`]),m(c)?(L(),l(m(Y),{key:0,modelValue:K.clean,"onUpdate:modelValue":r[13]||=e=>K.clean=e,onLabel:`Raw JSON`,offLabel:`Formatted`,onIcon:`pi pi-code`,offIcon:`pi pi-list`,size:`small`},null,8,[`modelValue`])):x(``,!0),m(ne)?(L(),l(m(M),{key:1,severity:`error`,closable:!1,size:`small`},{default:E(()=>[f(o(m(ne)),1)]),_:1})):x(``,!0)]),P(`div`,{class:i({"result-area":!0,stale:m(_)&&m(c)})},[m(c)&&K.clean?(L(),l(m(Sr),{key:0,data:m(c)},null,8,[`data`])):m(c)?(L(),l(m(Wn),{key:1,report:m(c)},null,8,[`report`])):m(_)?x(``,!0):(L(),b(`p`,Br,`Loading preview…`))],2)])):e.op===`roundtrip`?(L(),b(`div`,Vr,[r[33]||=P(`p`,{class:`help`},` Export to format2 then re-import and compare — catches lossy transformations. `,-1),P(`div`,Hr,[n(m(A),{label:m(u)?`Re-run`:`Run`,icon:m(u)?`pi pi-refresh`:`pi pi-play`,text:!!m(u),size:`small`,loading:m(v),"data-description":`run roundtrip operation`,onClick:r[14]||=()=>void m(N)(G)},null,8,[`label`,`icon`,`text`,`loading`]),P(`label`,Ur,[n(m(F),{modelValue:G.strict_structure,"onUpdate:modelValue":r[15]||=e=>G.strict_structure=e,binary:!0,size:`small`},null,8,[`modelValue`]),r[30]||=f(` Strict structure `,-1)]),P(`label`,Wr,[n(m(F),{modelValue:G.strict_encoding,"onUpdate:modelValue":r[16]||=e=>G.strict_encoding=e,binary:!0,size:`small`},null,8,[`modelValue`]),r[31]||=f(` Strict encoding `,-1)]),C((L(),b(`label`,Gr,[n(m(F),{modelValue:G.strict_state,"onUpdate:modelValue":r[17]||=e=>G.strict_state=e,binary:!0,size:`small`},null,8,[`modelValue`]),r[32]||=f(` Strict state `,-1)])),[[D,`Compare runtime state, not just shape.`,void 0,{top:!0}]]),m(u)?(L(),l(m(Y),{key:0,modelValue:K.roundtrip,"onUpdate:modelValue":r[18]||=e=>K.roundtrip=e,onLabel:`Raw JSON`,offLabel:`Formatted`,onIcon:`pi pi-code`,offIcon:`pi pi-list`,size:`small`},null,8,[`modelValue`])):x(``,!0),m(re)?(L(),l(m(M),{key:1,severity:`error`,closable:!1,size:`small`},{default:E(()=>[f(o(m(re)),1)]),_:1})):x(``,!0)]),P(`div`,{class:i({"result-area":!0,stale:m(v)&&m(u)})},[m(u)&&K.roundtrip?(L(),l(m(Sr),{key:0,data:m(u)},null,8,[`data`])):m(u)?(L(),l(m(dr),{key:1,report:m(u)},null,8,[`report`])):m(v)?x(``,!0):(L(),b(`p`,Kr,`No results yet. Click Run.`))],2)])):e.op===`convert`?(L(),b(`div`,qr,[P(`p`,Jr,[r[34]||=P(`i`,{class:`pi pi-exclamation-triangle`},null,-1),r[35]||=f(` Preview of the format2 conversion. Clicking `,-1),r[36]||=P(`strong`,null,`Convert & delete original`,-1),r[37]||=f(` writes the new file and `,-1),r[38]||=P(`strong`,null,`deletes`,-1),r[39]||=f(` the source at `,-1),P(`code`,null,o(e.workflowPath),1),r[40]||=f(`. `,-1)]),P(`div`,Yr,[n(m(A),{label:`Convert & delete original`,icon:`pi pi-exclamation-triangle`,severity:`danger`,size:`small`,loading:m(S),disabled:!m(p)||m(S),"data-description":`apply convert operation`,onClick:r[19]||=()=>void fe()},null,8,[`loading`,`disabled`]),m(p)?(L(),l(m(Y),{key:0,modelValue:K.convert,"onUpdate:modelValue":r[20]||=e=>K.convert=e,onLabel:`Raw JSON`,offLabel:`Formatted`,onIcon:`pi pi-code`,offIcon:`pi pi-list`,size:`small`},null,8,[`modelValue`])):x(``,!0),m(ie)?(L(),l(m(M),{key:1,severity:`error`,closable:!1,size:`small`},{default:E(()=>[f(o(m(ie)),1)]),_:1})):x(``,!0)]),P(`div`,{class:i({"result-area":!0,stale:m(S)&&m(p)})},[m(p)&&K.convert?(L(),l(m(Sr),{key:0,data:m(p)},null,8,[`data`])):m(p)?(L(),l(m(br),{key:1,result:m(p)},null,8,[`result`])):m(S)?x(``,!0):(L(),b(`p`,Xr,`Loading preview…`))],2)])):x(``,!0)],8,Cr)}}}),[[`__scopeId`,`data-v-bfa87f0f`]]),$r={class:`view-header`},ei={class:`header-main`},ti={class:`title-row`},ni={"data-description":`workflow view path`},ri=[`title`],ii={class:`diagram-region`,"data-description":`diagram region`},ai=j(w({__name:`WorkflowView`,setup(e){let t=G(),r=ce(),{workflows:a}=le(),s=u(()=>t.params.path),c=u(()=>{let e=s.value,t=e.lastIndexOf(`/`);return t>=0?e.slice(t+1):e}),d=u(()=>a.value.find(e=>e.relative_path===s.value)??null),f=[`validate`,`lint`,`clean`,`roundtrip`,`export`,`convert`];function p(e){return typeof e==`string`&&f.includes(e)?e:null}let h=H(null);ae(()=>{h.value=p(t.query.op)}),D(()=>t.query.op,e=>{h.value=p(e)});function g(e){h.value!==e&&r.replace({query:{...t.query,op:e}})}function _(){let{op:e,...n}=t.query;r.replace({query:n})}return(e,t)=>{let a=T(`tooltip`);return L(),b(`div`,{class:i([`workflow-view`,{"has-drawer":h.value!==null}]),"data-description":`workflow view`},[P(`div`,$r,[C(n(m(A),{icon:`pi pi-arrow-left`,text:``,rounded:``,onClick:t[0]||=e=>m(r).push(`/`),"aria-label":`Back to workflows`},null,512),[[a,`Back to workflows`,void 0,{right:!0}]]),P(`div`,ei,[P(`div`,ti,[P(`h1`,ni,o(c.value),1),d.value?C((L(),l(m(q),{key:0,value:d.value.format,severity:`secondary`},null,8,[`value`])),[[a,`Workflow format`,void 0,{top:!0}]]):x(``,!0)]),s.value?(L(),b(`p`,{key:0,class:`path-line`,title:s.value},o(s.value),9,ri)):x(``,!0)])]),P(`div`,ii,[t[1]||=P(`p`,{class:`help`},`Visual map of steps, inputs, outputs, and connections.`,-1),n(Kt,{"workflow-path":s.value},null,8,[`workflow-path`])]),n(Jt,{"active-op":h.value,onOpenOp:g},null,8,[`active-op`]),h.value?(L(),l(Qt,{key:0,op:h.value,class:`drawer-region`,onClose:_},{default:E(()=>[n(Qr,{"workflow-path":s.value,op:h.value},null,8,[`workflow-path`,`op`])]),_:1},8,[`op`])):x(``,!0)],2)}}}),[[`__scopeId`,`data-v-9e8a70f9`]]);export{ai as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.diagram[data-v-1ec72b92]{gap:var(--gx-sp-3);padding:var(--gx-sp-4) 0;flex-direction:column;display:flex}.diagram-toolbar[data-v-1ec72b92]{justify-content:flex-end;display:flex}.diagram-svg[data-v-1ec72b92]{padding:var(--gx-sp-3);background:var(--p-content-background,#fff);border:1px solid var(--p-content-border-color,#dadadd);border-radius:4px;overflow:auto}.diagram-svg[data-v-1ec72b92] svg{max-width:100%;height:auto}.diagram-cytoscape[data-v-1ec72b92]{background:var(--p-content-background,#fff);border:1px solid var(--p-content-border-color,#dadadd);border-radius:4px;width:100%;height:60vh;min-height:480px}.tool-strip[data-v-0a164610]{align-items:center;gap:var(--gx-sp-2);padding:var(--gx-sp-2) 0;border-top:1px solid var(--p-content-border-color,#ffffff1a);border-bottom:1px solid var(--p-content-border-color,#ffffff1a);display:flex}.advanced-trigger[data-v-0a164610]{margin-left:auto}.result-drawer[data-v-4eec7a48]{border:1px solid var(--p-content-border-color,#ffffff1a);background:var(--p-content-background,transparent);border-radius:4px;flex-direction:column;min-height:0;display:flex}.drawer-header[data-v-4eec7a48]{justify-content:space-between;align-items:center;gap:var(--gx-sp-3);padding:var(--gx-sp-2) var(--gx-sp-3);border-bottom:1px solid var(--p-content-border-color,#ffffff1a);display:flex}.drawer-header h2[data-v-4eec7a48]{font-size:var(--gx-fs-base);align-items:center;gap:var(--gx-sp-2);margin:0;font-weight:600;display:flex}.drawer-body[data-v-4eec7a48]{padding:var(--gx-sp-3);flex:auto;min-height:0;overflow:auto}.tool-id[data-v-43f5196c]{font-family:ui-monospace,Cascadia Code,Source Code Pro,Menlo,Consolas,monospace;font-size:.85em}.operation-report[data-v-901110c0]{flex-direction:column;gap:.75rem;display:flex}.summary-row[data-v-901110c0]{flex-wrap:wrap;gap:.5rem;display:flex}.key-list[data-v-901110c0]{margin:0;padding-left:1.25rem}.skip-reason[data-v-901110c0],.no-changes[data-v-901110c0]{color:var(--p-text-color-secondary,#6c757d);font-style:italic}.content-pre[data-v-901110c0]{background:var(--p-content-background);border:1px solid var(--p-content-border-color);color:var(--p-text-color);white-space:pre;border-radius:4px;max-height:500px;margin:0;padding:.5rem;font-size:.75rem;overflow:auto}.operation-report[data-v-c952e1d0]{flex-direction:column;gap:.75rem;display:flex}.summary-row[data-v-c952e1d0]{flex-wrap:wrap;gap:.5rem;display:flex}.results-table[data-v-c952e1d0]{margin-top:.5rem}.error-list[data-v-c952e1d0]{margin:0;padding-left:1.25rem}.operation-report[data-v-504757bf]{flex-direction:column;gap:.75rem;display:flex}.summary-row[data-v-504757bf]{flex-wrap:wrap;gap:.5rem;display:flex}.results-table[data-v-504757bf]{margin-top:.5rem}.error-list[data-v-504757bf],.message-list[data-v-504757bf]{margin:0;padding-left:1.25rem}.message-list li+li[data-v-504757bf]{margin-top:.25rem}.operation-report[data-v-1ee63bb8]{flex-direction:column;gap:.75rem;display:flex}.summary-row[data-v-1ee63bb8]{align-items:center;gap:.75rem;display:flex}.summary-line[data-v-1ee63bb8]{color:var(--p-text-color-secondary,#6c757d);font-size:.9rem}.section-heading[data-v-1ee63bb8]{align-items:center;gap:.4rem;margin:.25rem 0 0;font-size:.95rem;display:flex}.failure-list[data-v-1ee63bb8]{margin:0;padding-left:1.25rem;font-size:.85rem}.content-pre[data-v-1ee63bb8]{background:var(--p-content-background);border:1px solid var(--p-content-border-color);color:var(--p-text-color);white-space:pre;border-radius:4px;max-height:500px;margin:0;padding:.5rem;font-size:.75rem;overflow:auto}.operation-report[data-v-12ba9dcd]{flex-direction:column;gap:.75rem;display:flex}.summary-row[data-v-12ba9dcd]{flex-wrap:wrap;gap:.5rem;display:flex}.path-row[data-v-12ba9dcd]{flex-direction:column;gap:.25rem;font-size:.9rem;display:flex}.path-label[data-v-12ba9dcd]{color:var(--p-text-color-secondary,#6c757d);margin-right:.25rem}.muted[data-v-12ba9dcd]{color:var(--p-text-color-secondary,#6c757d);font-style:italic}.content-pre[data-v-12ba9dcd]{background:var(--p-content-background);border:1px solid var(--p-content-border-color);color:var(--p-text-color);white-space:pre;border-radius:4px;max-height:500px;margin:0;padding:.5rem;font-size:.75rem;overflow:auto}.raw-json[data-v-f865b670]{background:var(--p-content-background);border:1px solid var(--p-content-border-color);color:var(--p-text-color);white-space:pre;border-radius:6px;max-height:70vh;margin:0;padding:1rem;font-family:ui-monospace,Cascadia Code,Source Code Pro,Menlo,Consolas,monospace;font-size:.85rem;line-height:1.5;overflow:auto}.op-panel[data-v-bfa87f0f]{display:contents}.panel-content[data-v-bfa87f0f]{gap:var(--gx-sp-3);flex-direction:column;display:flex}.help[data-v-bfa87f0f]{font-size:var(--gx-fs-sm);color:var(--p-text-color-secondary,#6c757d);margin:0;line-height:1.4}.help.destructive[data-v-bfa87f0f]{color:var(--p-red-500,#e24c4c);align-items:center;gap:var(--gx-sp-2);flex-wrap:wrap;display:flex}.help code[data-v-bfa87f0f]{font-family:var(--gx-font-mono,monospace);font-size:.9em}.panel-toolbar[data-v-bfa87f0f]{align-items:center;gap:var(--gx-sp-3);flex-wrap:wrap;display:flex}.mode-select[data-v-bfa87f0f]{width:9rem}.opt-label[data-v-bfa87f0f]{align-items:center;gap:var(--gx-sp-2);font-size:var(--gx-fs-sm);cursor:pointer;white-space:nowrap;display:flex}.result-area[data-v-bfa87f0f]{transition:opacity .12s}.result-area.stale[data-v-bfa87f0f]{opacity:.55;pointer-events:none}.no-results[data-v-bfa87f0f]{color:var(--p-text-color-secondary,#6c757d);margin:0;font-style:italic}.workflow-view[data-v-9e8a70f9]{gap:var(--gx-sp-4);grid-template-columns:1fr;grid-template-areas:"header""diagram""strip""drawer";display:grid}.view-header[data-v-9e8a70f9]{align-items:flex-start;gap:var(--gx-sp-2);grid-area:header;display:flex}.diagram-region[data-v-9e8a70f9]{gap:var(--gx-sp-2);flex-direction:column;grid-area:diagram;min-height:0;display:flex}.diagram-region[data-v-9e8a70f9] .diagram{padding:0}[data-v-9e8a70f9] .tool-strip{grid-area:strip}.drawer-region[data-v-9e8a70f9]{grid-area:drawer}@media (width>=1280px){.workflow-view.has-drawer[data-v-9e8a70f9]{grid-template-columns:minmax(0,1fr) 480px;grid-template-areas:"header header""diagram drawer""strip drawer"}.workflow-view.has-drawer .drawer-region[data-v-9e8a70f9]{max-height:calc(100vh - 8rem)}}@media (width>=1600px){.workflow-view.has-drawer[data-v-9e8a70f9]{grid-template-columns:minmax(0,1fr) 560px}}@media (width>=1920px){.workflow-view.has-drawer[data-v-9e8a70f9]{grid-template-columns:minmax(0,1fr) 640px}}.header-main[data-v-9e8a70f9]{flex:1;min-width:0}.title-row[data-v-9e8a70f9]{align-items:center;gap:var(--gx-sp-2);margin:0 0 var(--gx-sp-1);display:flex}.title-row h1[data-v-9e8a70f9]{font-size:var(--gx-fs-lg);margin:0;font-weight:600}.path-line[data-v-9e8a70f9]{font-size:var(--gx-fs-xs);font-family:var(--gx-mono);color:var(--p-text-color-secondary,#6c757d);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.help[data-v-9e8a70f9]{font-size:var(--gx-fs-sm);color:var(--p-text-color-secondary,#6c757d);margin:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(){this.__data__=[],this.size=0}function t(e,t){return e===t||e!==e&&t!==t}function n(e,n){for(var r=e.length;r--;)if(t(e[r][0],n))return r;return-1}var r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}function a(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}function o(e){return n(this.__data__,e)>-1}function s(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function c(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=e,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s;function l(){this.__data__=new c,this.size=0}function ee(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function te(e){return this.__data__.get(e)}function ne(e){return this.__data__.has(e)}var u=typeof global==`object`&&global&&global.Object===Object&&global,re=typeof self==`object`&&self&&self.Object===Object&&self,d=u||re||Function(`return this`)(),f=d.Symbol,p=Object.prototype,ie=p.hasOwnProperty,ae=p.toString,m=f?f.toStringTag:void 0;function oe(e){var t=ie.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch{}var i=ae.call(e);return r&&(t?e[m]=n:delete e[m]),i}var se=Object.prototype.toString;function ce(e){return se.call(e)}var le=`[object Null]`,ue=`[object Undefined]`,h=f?f.toStringTag:void 0;function g(e){return e==null?e===void 0?ue:le:h&&h in Object(e)?oe(e):ce(e)}function _(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var de=`[object AsyncFunction]`,fe=`[object Function]`,pe=`[object GeneratorFunction]`,me=`[object Proxy]`;function v(e){if(!_(e))return!1;var t=g(e);return t==fe||t==pe||t==de||t==me}var y=d[`__core-js_shared__`],b=function(){var e=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function he(e){return!!b&&b in e}var ge=Function.prototype.toString;function x(e){if(e!=null){try{return ge.call(e)}catch{}try{return e+``}catch{}}return``}var _e=/[\\^$.*+?()[\]{}|]/g,ve=/^\[object .+?Constructor\]$/,ye=Function.prototype,be=Object.prototype,xe=ye.toString,Se=be.hasOwnProperty,Ce=RegExp(`^`+xe.call(Se).replace(_e,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function we(e){return!_(e)||he(e)?!1:(v(e)?Ce:ve).test(x(e))}function Te(e,t){return e?.[t]}function S(e,t){var n=Te(e,t);return we(n)?n:void 0}var C=S(d,`Map`),w=S(Object,`create`);function T(){this.__data__=w?w(null):{},this.size=0}function E(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var D=`__lodash_hash_undefined__`,O=Object.prototype.hasOwnProperty;function Ee(e){var t=this.__data__;if(w){var n=t[e];return n===D?void 0:n}return O.call(t,e)?t[e]:void 0}var De=Object.prototype.hasOwnProperty;function Oe(e){var t=this.__data__;return w?t[e]!==void 0:De.call(t,e)}var ke=`__lodash_hash_undefined__`;function Ae(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=w&&t===void 0?ke:t,this}function k(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}k.prototype.clear=T,k.prototype.delete=E,k.prototype.get=Ee,k.prototype.has=Oe,k.prototype.set=Ae;function je(){this.size=0,this.__data__={hash:new k,map:new(C||c),string:new k}}function Me(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function A(e,t){var n=e.__data__;return Me(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Ne(e){var t=A(this,e).delete(e);return this.size-=t?1:0,t}function Pe(e){return A(this,e).get(e)}function Fe(e){return A(this,e).has(e)}function Ie(e,t){var n=A(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function j(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}j.prototype.clear=je,j.prototype.delete=Ne,j.prototype.get=Pe,j.prototype.has=Fe,j.prototype.set=Ie;var Le=200;function Re(e,t){var n=this.__data__;if(n instanceof c){var r=n.__data__;if(!C||r.length<Le-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new j(r)}return n.set(e,t),this.size=n.size,this}function M(e){this.size=(this.__data__=new c(e)).size}M.prototype.clear=l,M.prototype.delete=ee,M.prototype.get=te,M.prototype.has=ne,M.prototype.set=Re;var ze=d.Uint8Array,N=Array.isArray;function Be(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function P(e){return typeof e==`object`&&!!e}var Ve=`[object Arguments]`;function F(e){return P(e)&&g(e)==Ve}var I=Object.prototype,He=I.hasOwnProperty,Ue=I.propertyIsEnumerable,L=F(function(){return arguments}())?F:function(e){return P(e)&&He.call(e,`callee`)&&!Ue.call(e,`callee`)};function We(){return!1}var R=typeof exports==`object`&&exports&&!exports.nodeType&&exports,z=R&&typeof module==`object`&&module&&!module.nodeType&&module,B=z&&z.exports===R?d.Buffer:void 0,V=(B?B.isBuffer:void 0)||We,Ge=9007199254740991,Ke=/^(?:0|[1-9]\d*)$/;function H(e,t){var n=typeof e;return t??=Ge,!!t&&(n==`number`||n!=`symbol`&&Ke.test(e))&&e>-1&&e%1==0&&e<t}var qe=9007199254740991;function U(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=qe}var Je=`[object Arguments]`,Ye=`[object Array]`,Xe=`[object Boolean]`,Ze=`[object Date]`,Qe=`[object Error]`,$e=`[object Function]`,et=`[object Map]`,tt=`[object Number]`,nt=`[object Object]`,rt=`[object RegExp]`,it=`[object Set]`,at=`[object String]`,ot=`[object WeakMap]`,st=`[object ArrayBuffer]`,ct=`[object DataView]`,lt=`[object Float32Array]`,ut=`[object Float64Array]`,dt=`[object Int8Array]`,ft=`[object Int16Array]`,pt=`[object Int32Array]`,mt=`[object Uint8Array]`,ht=`[object Uint8ClampedArray]`,gt=`[object Uint16Array]`,_t=`[object Uint32Array]`,W={};W[lt]=W[ut]=W[dt]=W[ft]=W[pt]=W[mt]=W[ht]=W[gt]=W[_t]=!0,W[Je]=W[Ye]=W[st]=W[Xe]=W[ct]=W[Ze]=W[Qe]=W[$e]=W[et]=W[tt]=W[nt]=W[rt]=W[it]=W[at]=W[ot]=!1;function vt(e){return P(e)&&U(e.length)&&!!W[g(e)]}function G(e){return function(t){return e(t)}}var K=typeof exports==`object`&&exports&&!exports.nodeType&&exports,q=K&&typeof module==`object`&&module&&!module.nodeType&&module,J=q&&q.exports===K&&u.process,Y=function(){try{return q&&q.require&&q.require(`util`).types||J&&J.binding&&J.binding(`util`)}catch{}}(),X=Y&&Y.isTypedArray,Z=X?G(X):vt,yt=Object.prototype.hasOwnProperty;function bt(e,t){var n=N(e),r=!n&&L(e),i=!n&&!r&&V(e),a=!n&&!r&&!i&&Z(e),o=n||r||i||a,s=o?Be(e.length,String):[],c=s.length;for(var l in e)(t||yt.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||H(l,c)))&&s.push(l);return s}var xt=Object.prototype;function St(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||xt)}function Ct(e,t){return function(n){return e(t(n))}}function wt(e){return e!=null&&U(e.length)&&!v(e)}var Tt=`Expected a function`;function Q(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Tt);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Q.Cache||j),n}Q.Cache=j;function $(e){return e}function Et(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var Dt=Et();export{v as C,d as D,f as E,t as O,x as S,g as T,ze as _,Ct as a,C as b,Z as c,U as d,H as f,N as g,P as h,wt as i,Y as l,L as m,$ as n,St as o,V as p,Q as r,bt as s,Dt as t,G as u,M as v,_ as w,S as x,j as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./path-CNO468J-.js";import{a as n,c as r,d as i,f as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,u as p}from"./dist-J4JWBlIj.js";function m(e){return e.innerRadius}function h(e){return e.outerRadius}function g(e){return e.startAngle}function _(e){return e.endAngle}function v(e){return e&&e.padAngle}function y(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function b(e,t,n,r,i,a,o){var c=e-n,l=t-r,u=(o?a:-a)/d(c*c+l*l),f=u*l,p=-u*c,m=e+f,h=t+p,g=n+f,_=r+p,v=(m+g)/2,y=(h+_)/2,b=g-m,x=_-h,S=b*b+x*x,C=i-a,w=m*_-g*h,T=(x<0?-1:1)*d(s(0,C*C*S-w*w)),E=(w*x-b*T)/S,D=(-w*b-x*T)/S,O=(w*x+b*T)/S,k=(-w*b+x*T)/S,A=E-v,j=D-y,M=O-v,N=k-y;return A*A+j*j>M*M+N*N&&(E=O,D=k),{cx:E,cy:D,x01:-f,y01:-p,x11:E*(i/C-1),y11:D*(i/C-1)}}function x(){var s=m,x=h,S=e(0),C=null,w=g,T=_,E=v,D=null,O=t(k);function k(){var e,t,m=+s.apply(this,arguments),h=+x.apply(this,arguments),g=w.apply(this,arguments)-r,_=T.apply(this,arguments)-r,v=l(_-g),k=_>g;if(D||=e=O(),h<m&&(t=h,h=m,m=t),!(h>1e-12))D.moveTo(0,0);else if(v>c-1e-12)D.moveTo(h*u(g),h*a(g)),D.arc(0,0,h,g,_,!k),m>1e-12&&(D.moveTo(m*u(_),m*a(_)),D.arc(0,0,m,_,g,k));else{var A=g,j=_,M=g,N=_,P=v,F=v,I=E.apply(this,arguments)/2,L=I>1e-12&&(C?+C.apply(this,arguments):d(m*m+h*h)),R=p(l(h-m)/2,+S.apply(this,arguments)),z=R,B=R,V,H;if(L>1e-12){var U=o(L/m*a(I)),W=o(L/h*a(I));(P-=U*2)>1e-12?(U*=k?1:-1,M+=U,N-=U):(P=0,M=N=(g+_)/2),(F-=W*2)>1e-12?(W*=k?1:-1,A+=W,j-=W):(F=0,A=j=(g+_)/2)}var G=h*u(A),K=h*a(A),q=m*u(N),J=m*a(N);if(R>1e-12){var Y=h*u(j),X=h*a(j),Z=m*u(M),Q=m*a(M),$;if(v<i)if($=y(G,K,Z,Q,Y,X,q,J)){var ee=G-$[0],te=K-$[1],ne=Y-$[0],re=X-$[1],ie=1/a(f((ee*ne+te*re)/(d(ee*ee+te*te)*d(ne*ne+re*re)))/2),ae=d($[0]*$[0]+$[1]*$[1]);z=p(R,(m-ae)/(ie-1)),B=p(R,(h-ae)/(ie+1))}else z=B=0}F>1e-12?B>1e-12?(V=b(Z,Q,G,K,h,B,k),H=b(Y,X,q,J,h,B,k),D.moveTo(V.cx+V.x01,V.cy+V.y01),B<R?D.arc(V.cx,V.cy,B,n(V.y01,V.x01),n(H.y01,H.x01),!k):(D.arc(V.cx,V.cy,B,n(V.y01,V.x01),n(V.y11,V.x11),!k),D.arc(0,0,h,n(V.cy+V.y11,V.cx+V.x11),n(H.cy+H.y11,H.cx+H.x11),!k),D.arc(H.cx,H.cy,B,n(H.y11,H.x11),n(H.y01,H.x01),!k))):(D.moveTo(G,K),D.arc(0,0,h,A,j,!k)):D.moveTo(G,K),!(m>1e-12)||!(P>1e-12)?D.lineTo(q,J):z>1e-12?(V=b(q,J,Y,X,m,-z,k),H=b(G,K,Z,Q,m,-z,k),D.lineTo(V.cx+V.x01,V.cy+V.y01),z<R?D.arc(V.cx,V.cy,z,n(V.y01,V.x01),n(H.y01,H.x01),!k):(D.arc(V.cx,V.cy,z,n(V.y01,V.x01),n(V.y11,V.x11),!k),D.arc(0,0,m,n(V.cy+V.y11,V.cx+V.x11),n(H.cy+H.y11,H.cx+H.x11),k),D.arc(H.cx,H.cy,z,n(H.y11,H.x11),n(H.y01,H.x01),!k))):D.arc(0,0,m,N,M,k)}if(D.closePath(),e)return D=null,e+``||null}return k.centroid=function(){var e=(+s.apply(this,arguments)+ +x.apply(this,arguments))/2,t=(+w.apply(this,arguments)+ +T.apply(this,arguments))/2-i/2;return[u(t)*e,a(t)*e]},k.innerRadius=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),k):s},k.outerRadius=function(t){return arguments.length?(x=typeof t==`function`?t:e(+t),k):x},k.cornerRadius=function(t){return arguments.length?(S=typeof t==`function`?t:e(+t),k):S},k.padRadius=function(t){return arguments.length?(C=t==null?null:typeof t==`function`?t:e(+t),k):C},k.startAngle=function(t){return arguments.length?(w=typeof t==`function`?t:e(+t),k):w},k.endAngle=function(t){return arguments.length?(T=typeof t==`function`?t:e(+t),k):T},k.padAngle=function(t){return arguments.length?(E=typeof t==`function`?t:e(+t),k):E},k.context=function(e){return arguments.length?(D=e??null,k):D},k}export{x as t};
|