@sentropic/design-system-elements 0.2.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/LICENSE.THIRD-PARTY.md +44 -1
  2. package/README.md +81 -13
  3. package/catalog.json +401 -7
  4. package/dist/browser/chunks/{Modeler-BfAmwsmK.js → Modeler-D87tL_OJ.js} +4 -4
  5. package/dist/browser/chunks/Viewer-D9zjRrp2.js +4 -0
  6. package/dist/browser/chunks/bpmn-canvas-BevbP_6a.js +1 -0
  7. package/dist/browser/chunks/bpmn-mount-BhO_zb0S.js +2202 -0
  8. package/dist/browser/chunks/dist-DRauAwm2.js +6 -0
  9. package/dist/browser/chunks/{entropic-CM5BHERN.js → entropic-MwNVEq6w.js} +639 -0
  10. package/dist/browser/chunks/focus-renderer-BWm7DlQD.js +55 -0
  11. package/dist/browser/chunks/{forge-B8hrW4lA.js → forge-CzwO8Hbe.js} +639 -0
  12. package/dist/browser/chunks/layout-T3X333Za.js +1 -0
  13. package/dist/browser/elements.js +671 -6
  14. package/dist/browser/sri.json +52 -45
  15. package/dist/contracts/bar-chart.js +2 -2
  16. package/dist/contracts/decision-dossier.d.ts +4 -8
  17. package/dist/contracts/decision-dossier.js +8 -12
  18. package/dist/contracts/index.d.ts +1 -0
  19. package/dist/contracts/index.js +2 -0
  20. package/dist/contracts/time-series-chart.d.ts +49 -0
  21. package/dist/contracts/time-series-chart.js +37 -0
  22. package/dist/dossier/dossier-mount.js +845 -0
  23. package/dist/dossier/renderer/dossier.css +2 -0
  24. package/dist/element/bpmn-mount.d.ts +11 -0
  25. package/dist/element/bpmn-mount.js +56 -0
  26. package/dist/element/bpmn-types.d.ts +27 -0
  27. package/dist/element/bpmn-types.js +12 -0
  28. package/dist/element/bpmn.d.ts +10 -0
  29. package/dist/element/bpmn.js +39 -0
  30. package/dist/element/dom/dossier-mount.d.ts +25 -0
  31. package/dist/element/dom/dossier-review-mount.d.ts +25 -0
  32. package/dist/element/dom/dossier-review-state.svelte.d.ts +13 -0
  33. package/dist/element/dom/engines/bpmn-canvas.d.ts +11 -0
  34. package/dist/element/dom/engines/bpmn-canvas.js +11 -0
  35. package/dist/element/dom/engines/dossier-diagrams.d.ts +5 -0
  36. package/dist/element/dom/engines/dossier-evidence.d.ts +9 -0
  37. package/dist/element/dom/engines/dossier-styles.d.ts +21 -0
  38. package/dist/element/dom/engines/focus-renderer.d.ts +60 -0
  39. package/dist/element/dom/engines/focus-snapshot.d.ts +3 -0
  40. package/dist/element/dom/intents.d.ts +20 -0
  41. package/dist/element/markdown/minimal-markdown.d.ts +1 -2
  42. package/dist/element/markdown/minimal-markdown.js +19 -1
  43. package/dist/element/validator.d.ts +26 -0
  44. package/dist/element/validator.js +54 -0
  45. package/dist/focus-diagrams/diagram-layout.d.ts +140 -0
  46. package/dist/focus-diagrams/diagram-layout.js +190 -0
  47. package/dist/focus-diagrams/diagram-source.d.ts +11 -0
  48. package/dist/focus-diagrams/diagram-source.js +147 -0
  49. package/dist/focus-diagrams/dossier-views.d.ts +21 -0
  50. package/dist/focus-diagrams/dossier-views.js +57 -0
  51. package/dist/focus-diagrams/ecosystem.json +853 -0
  52. package/dist/focus-kit/index.html +13 -0
  53. package/dist/focus-kit/renderer/dossier.css +2 -0
  54. package/dist/focus-kit/renderer/dossier.js +845 -0
  55. package/dist/focus-kit-manifest.json +1 -0
  56. package/dist/focus-kit.d.ts +9 -0
  57. package/dist/focus-kit.js +30 -0
  58. package/dist/format-time-series-markdown.d.ts +5 -0
  59. package/dist/format-time-series-markdown.js +24 -0
  60. package/dist/generator/parity.js +6 -1
  61. package/dist/index.d.ts +2 -0
  62. package/dist/index.js +1 -0
  63. package/dist/ports/dossier-views.d.ts +3 -0
  64. package/dist/ports/dossier-views.js +3 -0
  65. package/dist/ports/focus.d.ts +0 -1
  66. package/dist/ports/types.d.ts +0 -1
  67. package/dist/shells/BarChart.html +8494 -0
  68. package/dist/shells/BarChart.js +8482 -0
  69. package/dist/shells/DecisionDossier.html +8502 -0
  70. package/dist/shells/DecisionDossier.js +8490 -0
  71. package/dist/shells/TimeSeriesChart.html +8475 -0
  72. package/dist/shells/TimeSeriesChart.js +8463 -0
  73. package/dist/shells/manifest.json +108 -0
  74. package/dist/structure/interpreter.d.ts +1 -1
  75. package/dist/structure/interpreter.js +14 -4
  76. package/dist/time-series.d.ts +13 -0
  77. package/dist/time-series.js +15 -0
  78. package/dist/validate/envelope.js +5 -1
  79. package/dist/validate/time-series.d.ts +5 -0
  80. package/dist/validate/time-series.js +28 -0
  81. package/fixtures/time-series-multi.json +46 -0
  82. package/fixtures/time-series-single.json +28 -0
  83. package/fixtures/time-series-thresholds.json +52 -0
  84. package/package.json +40 -6
  85. package/schemas/BarChart.v1.json +2 -2
  86. package/schemas/DecisionDossier.v1.json +155 -5
  87. package/schemas/TimeSeriesChart.v1.json +287 -0
  88. package/skill/SKILL.md +27 -0
  89. package/dist/browser/chunks/Viewer-eYLzc3fD.js +0 -4
  90. package/dist/browser/chunks/bpmn-canvas-DeAWdJFy.js +0 -2207
  91. package/dist/browser/chunks/dist-O6_2ByYB.js +0 -1
  92. package/dist/browser/chunks/focus-renderer-0elVToA2.js +0 -10
  93. package/dist/browser/chunks/layout-q0TR9-aY.js +0 -1
@@ -0,0 +1,2202 @@
1
+ import{t as e}from"../elements.js";import{f as t}from"./dist-Co2MgHWm.js";var n=[`c`,`C`],r=[`v`,`V`],i=[`d`,`D`],a=[`x`,`X`],o=[`y`,`Y`],s=[`z`,`Z`];function c(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function l(e){return e.altKey?!1:e.ctrlKey||e.metaKey}function u(e,n){return e=t(e)?e:[e],e.indexOf(n.key)!==-1||e.indexOf(n.code)!==-1}function d(e){return e.shiftKey}function f(e){return l(e)&&u(n,e)}function p(e){return l(e)&&u(r,e)}function m(e){return l(e)&&u(i,e)}function ee(e){return l(e)&&u(a,e)}function h(e){return l(e)&&!d(e)&&u(s,e)}function g(e){return l(e)&&(u(o,e)||u(s,e)&&d(e))}var te=100,_=e=>[...new Set(e)].slice(0,te);function v(e){let t=0;for(;t<e.length;){let n=e.indexOf(`<`,t);if(n<0)return!1;if(e.startsWith(`<!--`,n))return!0;if(e.startsWith(`<![CDATA[`,n)){let r=e.indexOf(`]]>`,n+9);if(r<0)return!1;t=r+3}else if(e.startsWith(`<?`,n)){let r=e.indexOf(`?>`,n+2);if(r<0)return!1;t=r+2}else t=n+1}return!1}function y(e){let t=[];for(let n of e){let e=n.message??``,r=/nested error: duplicate ID <([^>]+)>/.exec(e);if(r)t.push({code:`duplicate-id`,severity:`error`,destructive:!0,ids:[r[1]],message:`Duplicate id "${r[1]}": the second element is dropped on save.`});else if(e.startsWith(`unparsable content`)){let n=/unparsable content <([^>]+?)\/?> detected/.exec(e);t.push({code:`unparsable-content`,severity:`warning`,destructive:!0,ids:n?[n[1]]:[],message:`Unrecognised content <${n?.[1]??`?`}> is dropped on save.`})}else if(e.startsWith(`unresolved reference`)){let r=/unresolved reference <([^>]+)>/.exec(e)?.[1],i=[r,n.element?.id].filter(e=>typeof e==`string`);t.push({code:`unresolved-reference`,severity:`warning`,destructive:!0,ids:i,message:`Reference to missing id "${r??`?`}"${n.element?.id?` from "${n.element.id}"`:``} is dropped on save.`})}else t.push({code:`import-warning`,severity:`warning`,message:e.split(`
2
+ `)[0]??e})}return t}var ne=[`bpmn:FlowNode`,`bpmn:SequenceFlow`,`bpmn:MessageFlow`,`bpmn:Participant`,`bpmn:Lane`,`bpmn:Association`,`bpmn:TextAnnotation`,`bpmn:Group`,`bpmn:DataObjectReference`,`bpmn:DataStoreReference`,`bpmn:DataInputAssociation`,`bpmn:DataOutputAssociation`],b=e=>ne.some(t=>e.$instanceOf(t)),x=e=>Array.isArray(e)?e:[];function S(e,t){for(let n of x(e.flowElements))b(n)&&t.push(n),n.$instanceOf(`bpmn:SubProcess`)&&S(n,t);for(let n of x(e.artifacts))b(n)&&t.push(n);for(let n of x(e.laneSets)){let e=x(n.lanes);for(;e.length;){let n=e.pop();t.push(n),e.push(...x(n.childLaneSet?.lanes))}}}function C(e){let t=[],n=x(e.diagrams),r=new Set;for(let e of n){let t=e.plane,n=t?.bpmnElement;n?.id&&r.add(n.id);for(let e of x(t?.planeElement)){let t=e.bpmnElement;t?.id&&r.add(t.id)}}let i=[];for(let t of x(e.rootElements))if(t.$instanceOf(`bpmn:Process`)&&S(t,i),t.$instanceOf(`bpmn:Collaboration`)){for(let e of x(t.participants))i.push(e);for(let e of x(t.messageFlows))i.push(e);for(let e of x(t.artifacts))b(e)&&i.push(e)}let a=i.map(e=>e.id).filter(e=>!!e);if(n.length===0){let n=w(e);return n.length>0&&t.push({code:`incomplete-io-specification`,severity:`warning`,ids:_(n),message:`ioSpecification without inputSet and outputSet is invalid against the BPMN 2.0 schema.`}),a.length>0&&t.push({code:`missing-di`,severity:`error`,ids:_(a),message:`The document has no BPMNDiagram, so there is nothing to draw. DI is not generated implicitly.`}),t}let o=w(e);o.length>0&&t.push({code:`incomplete-io-specification`,severity:`warning`,ids:_(o),message:`ioSpecification without inputSet and outputSet is invalid against the BPMN 2.0 schema.`});let s=a.filter(e=>!r.has(e));return s.length>0&&t.push({code:`partial-di`,severity:`warning`,ids:_(s),message:`${s.length} element(s) have no diagram shape or edge and are not drawn.`}),t}function w(e){let t=[],n=e=>{let r=e.ioSpecification;r&&(x(r.inputSets).length===0||x(r.outputSets).length===0)&&t.push(e.id??r.id??e.$type);for(let t of x(e.flowElements))n(t)};for(let t of x(e.rootElements))t.$instanceOf(`bpmn:Process`)&&n(t);return t}var T=e=>e.some(e=>e.destructive===!0),E;function D(){return E??=e(()=>import(`./Modeler-D87tL_OJ.js`).then(e=>({Modeler:e.default}),e=>{throw E=void 0,e}),[]),E}async function O(t,n){return t===`legend`?(await e(()=>import(`./legend-CXdfCBh6.js`),[])).legendProfile(n):t===`colored`?(await e(()=>import(`./colored-CSIQaGsQ.js`),[])).coloredProfile(n):{id:`standard`,modelerModules:[],viewerModules:[]}}function re(e,t,n){let r=n?{paletteColumns:n}:{};return t.tokens?t.id===`colored`?{instanceId:e,colored:t.tokens,...t.named?{coloredNamed:t.named}:{},...r}:{instanceId:e,legend:t.tokens,...r}:{instanceId:e,...r}}function ie(){return`bc${Math.random().toString(36).slice(2,8)}${(ae++).toString(36)}`}var ae=0;function oe(e){let t=e.plane.bpmnElement,n=(t?.participants??[]).map(e=>e.name).filter(Boolean).join(` · `);return e.name||t?.name||n||t?.id||e.id}var k=`bpmn-canvas--colored`,A=Object.freeze({"--bpmn-canvas-icon-start":`eventLine`,"--bpmn-canvas-icon-end":`eventLine`,"--bpmn-canvas-icon-intermediate":`eventLine`,"--bpmn-canvas-icon-task":`taskLine`,"--bpmn-canvas-icon-subprocess":`taskLine`,"--bpmn-canvas-icon-external":`externalLine`,"--bpmn-canvas-icon-gateway":`gatewayLine`,"--bpmn-canvas-icon-data":`dataLine`,"--bpmn-canvas-icon-document":`docLine`,"--bpmn-canvas-icon-application":`appLine`,"--bpmn-canvas-icon-lane":`laneLine`,"--bpmn-canvas-icon-pool":`poolLine`,"--bpmn-canvas-icon-flow":`flow`});function j(e){let t={};for(let[n,r]of Object.entries(A)){let i=e[r];typeof i==`string`&&i&&(t[n]=i)}return t}var M={__init__:[`bpmnCanvasPalette`],bpmnCanvasPalette:[`type`,class{static $inject=[`config.bpmnCanvas`,`canvas`,`eventBus`,`injector`];constructor(e,t,n,r){let i=e?.paletteColumns??`auto`,a=r.get(`palette`,!1);if(a&&i!==`auto`){let e=a._toggleState.bind(a);a._toggleState=(t={})=>e(`twoColumn`in t?t:{...t,twoColumn:i===2})}let o=e?.legend??e?.colored,s=!!e?.colored,c=[],l=null,u=()=>{if(l=t.getContainer()?.closest(`.bpmn-canvas`)??l,!l||!o||c.length>0)return;let e=j(o);for(let[t,n]of Object.entries(e))l.style.setProperty(t,n);c=Object.keys(e),s&&l.classList.add(k)};n.on(`diagram.init`,()=>{u(),queueMicrotask(u)}),n.on(`import.done`,u),n.on(`diagram.destroy`,()=>{if(l){for(let e of c)l.style.removeProperty(e);l.classList.remove(k),c=[],l=null}})}}]},N={__init__:[`bpmnCanvasReadOnly`],bpmnCanvasReadOnly:[`type`,class{static $inject=[`commandStack`,`injector`];enabled=!1;directEditing;contextPad;dragging;constructor(e,t){let n=e.execute.bind(e),r=e.undo.bind(e),i=e.redo.bind(e),a=e.canExecute.bind(e);e.execute=(e,t)=>{this.enabled||n(e,t)},e.undo=()=>{this.enabled||r()},e.redo=()=>{this.enabled||i()},e.canExecute=(e,t)=>!this.enabled&&a(e,t),this.directEditing=t.get(`directEditing`,!1)??null,this.contextPad=t.get(`contextPad`,!1)??null,this.dragging=t.get(`dragging`,!1)??null;let o=this.directEditing;if(o?.activate){let e=o.activate.bind(o);o.activate=(...t)=>this.enabled?void 0:e(...t)}}setReadOnly(e){this.enabled=e,e&&(this.directEditing?.cancel?.(),this.contextPad?.close?.(),this.dragging?.cancel?.())}isReadOnly(){return this.enabled}}]};function P(){return{"inline-01.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='17'%20height='17'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%20/%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'%20/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-02.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='16'%20cy='16'%20r='11'%20stroke-width='2'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-03.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='16'%20cy='16'%20r='11'%20stroke-width='4'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-04.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='16'%20cy='16'%20r='11'%20stroke-width='1.5'/%3e%3ccircle%20cx='16'%20cy='16'%20r='8'%20stroke-width='1.5'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-05.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='6'%20width='26'%20height='20'%20rx='4'%20stroke-width='2'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-06.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='6'%20width='26'%20height='20'%20rx='4'%20stroke-width='2'/%3e%3crect%20x='12'%20y='18'%20width='8'%20height='6'%20stroke-width='1'/%3e%3cpath%20d='M16%2019.5v3M14.5%2021h3'%20stroke-width='1'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-07.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='6'%20width='26'%20height='20'%20rx='4'%20stroke-width='1.5'/%3e%3cpath%20d='M19%2010h4v-2l4%203l-4%203v-2h-4Z'%20stroke-width='1.2'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-08.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpolygon%20points='16,3%2029,16%2016,29%203,16'%20stroke-width='2'/%3e%3cpath%20d='M12%2012l8%208M20%2012l-8%208'%20stroke-width='2.5'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-09.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpolygon%20points='16,3%2029,16%2016,29%203,16'%20stroke-width='2'/%3e%3cpath%20d='M16%2010v12M10%2016h12'%20stroke-width='2.5'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-10.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M8%2010h11l5%205v14H8z'%20stroke-width='1.5'/%3e%3cpath%20d='M19%2010v5h5'%20stroke-width='1.5'/%3e%3cpath%20d='M16%201v7M13%205l3%203l3-3'%20stroke-width='1.8'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-11.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M8%2010h11l5%205v14H8z'%20stroke-width='1.5'/%3e%3cpath%20d='M19%2010v5h5'%20stroke-width='1.5'/%3e%3cpath%20d='M16%208V1M13%204l3-3l3%203'%20stroke-width='1.8'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-12.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M7%204h12l6%206v18H7z'%20stroke-width='1.5'/%3e%3cpath%20d='M19%204v6h6'%20stroke-width='1.5'/%3e%3cpath%20d='M10%2011h4v-2.5l5%203.5l-5%203.5v-2.5h-4Z'%20stroke-width='1.2'%20fill='none'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-13.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M7%204h12l6%206v18H7z'%20stroke-width='1.5'/%3e%3cpath%20d='M19%204v6h6'%20stroke-width='1.5'/%3e%3cpath%20d='M10%2011h4v-2.5l5%203.5l-5%203.5v-2.5h-4Z'%20stroke-width='1.2'%20fill='black'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-14.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M6%205h20v18.7q-5%20-4.8%20-10%200q-5%204.8%20-10%200Z'%20stroke-width='1.5'/%3e%3cpath%20d='M6%2010h20'%20stroke-width='1.2'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-15.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='7'%20y='5'%20width='22'%20height='22'%20rx='2'%20stroke-width='2'/%3e%3crect%20x='3'%20y='9'%20width='7'%20height='4'%20stroke-width='1.5'/%3e%3crect%20x='3'%20y='18'%20width='7'%20height='4'%20stroke-width='1.5'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-16.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='4'%20y='6'%20width='24'%20height='20'%20stroke-width='2'/%3e%3cpath%20d='M11%206v20'%20stroke-width='1.5'/%3e%3c/svg%3e`,``+import.meta.url).href,"inline-17.svg":new URL(`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M4%2022L20%2010'%20stroke-width='2'/%3e%3cpolygon%20points='28,6%2020,8%2024,14'%20fill='black'%20stroke-width='1'/%3e%3c/svg%3e`,``+import.meta.url).href}}var F=`__ASSET__`,I=`/**
3
+ * Semantic tokens, copied from \`@bpmn-io/theme\` to style the components
4
+ * according to this theme.
5
+ *
6
+ * Names and values of the tokens should stay intact with the \`@bpmn-io/theme\`
7
+ * source of truth, to ensure matching styles and allow overrides with an
8
+ * alternative theme.
9
+ */
10
+ .bio-theme-parent {
11
+ --bio-surface: hsl(0, 0%, 100%);
12
+ --bio-surface-overlay: hsl(0, 0%, 100%);
13
+ --bio-surface-subtle: hsl(225, 10%, 97%);
14
+ --bio-surface-medium: hsl(225, 10%, 95%);
15
+ --bio-surface-inverted: hsl(0, 0%, 22%);
16
+ --bio-surface-inverted-subtle: hsl(225, 10%, 35%);
17
+ --bio-text: hsl(225, 10%, 15%);
18
+ --bio-text-subtle: hsl(225, 10%, 35%);
19
+ --bio-text-subtlest: hsl(225, 10%, 55%);
20
+ --bio-text-on-inverted: hsl(0, 0%, 100%);
21
+ --bio-border: hsl(225, 10%, 75%);
22
+ --bio-border-disabled: hsl(225, 10%, 90%);
23
+ --bio-primary: hsl(205, 100%, 40%);
24
+ --bio-primary-surface: hsl(205, 100%, 95%);
25
+ --bio-danger: hsl(360, 100%, 45%);
26
+ --bio-danger-surface-subtle: hsl(360, 100%, 97%);
27
+ --bio-selected-surface: var(--bio-surface-medium);
28
+ --bio-selected-text: var(--bio-text);
29
+ --bio-focus: hsl(205, 100%, 40%);
30
+ --bio-focus-surface: hsl(205, 100%, 95%);
31
+ --bio-canvas-accent: hsl(205, 100%, 40%);
32
+ --bio-canvas-accent-subtle: hsl(205, 100%, 75%);
33
+ --bio-shadow: hsla(0, 0%, 0%, 30%);
34
+ --bio-shadow-subtle: hsla(0, 0%, 0%, 10%);
35
+ --bio-radius-sm: 2px;
36
+ --bio-radius-md: 3px;
37
+ --bio-radius-lg: 4px;
38
+ }
39
+
40
+ /**
41
+ * color definitions
42
+ *
43
+ * Colours resolve through the semantic tokens in \`@bpmn-io/theme\`; a handful of
44
+ * values with no matching token stay literal.
45
+ */
46
+ .djs-parent {
47
+
48
+ --button-border-radius: var(--bio-radius-md);
49
+ --input-border-radius: var(--bio-radius-sm);
50
+ --surface-border-radius: var(--bio-radius-lg);
51
+
52
+ --canvas-fill-color: var(--bio-surface);
53
+
54
+ --accent-color: var(--bio-canvas-accent);
55
+
56
+ --bendpoint-fill-color: var(--bio-canvas-accent);
57
+ --bendpoint-stroke-color: var(--canvas-fill-color);
58
+
59
+ --context-pad-entry-background-color: var(--bio-surface);
60
+ --context-pad-entry-hover-background-color: var(--bio-surface-medium);
61
+
62
+ --element-dragger-color: var(--accent-color);
63
+ --element-selected-outline-stroke-color: var(--accent-color);
64
+ --element-selected-outline-secondary-stroke-color: var(--bio-canvas-accent-subtle);
65
+
66
+ --lasso-fill-color: color-mix(in srgb, var(--bio-canvas-accent) 15%, transparent);
67
+ --lasso-stroke-color: var(--element-selected-outline-stroke-color);
68
+
69
+ --palette-entry-color: var(--bio-text);
70
+ --palette-entry-hover-color: var(--bio-primary);
71
+ --palette-entry-selected-color: var(--bio-primary);
72
+ --palette-separator-color: var(--bio-border);
73
+ --palette-toggle-hover-background-color: var(--bio-surface-medium);
74
+ --palette-background-color: var(--bio-surface-subtle);
75
+ --palette-border-color: var(--bio-border);
76
+
77
+ --popup-font-family: "IBM Plex Sans", sans-serif;
78
+ --popup-font-size: 14px;
79
+ --popup-secondary-font-size: .9em;
80
+ --popup-header-entry-selected-color: var(--bio-primary);
81
+ --popup-header-font-weight: bolder;
82
+ --popup-header-group-divider-color: var(--bio-border);
83
+ --popup-background-color: var(--bio-surface-overlay);
84
+ --popup-border-color: transparent;
85
+ --popup-shadow-color: var(--bio-shadow);
86
+ /* translucent, so the thumb darkens whatever it scrolls over */
87
+ --popup-scrollbar-thumb-color: rgba(0, 0, 0, 0.2);
88
+ --popup-button-background-color: var(--bio-surface-overlay);
89
+ --popup-button-hover-background-color: var(--bio-surface-medium);
90
+ --popup-disabled-color: var(--bio-text-subtle);
91
+ --popup-description-color: var(--bio-text-subtle);
92
+ --popup-no-results-color: var(--bio-text-subtlest);
93
+ --popup-entry-title-color: var(--bio-text-subtlest);
94
+
95
+ --popup-entry-selected-background-color: var(--bio-selected-surface);
96
+ --popup-entry-selected-color: var(--bio-selected-text);
97
+ --popup-search-border-color: var(--bio-border);
98
+ --popup-search-focus-border-color: var(--bio-focus);
99
+ --popup-search-focus-background-color: var(--bio-focus-surface);
100
+ --popup-tab-color: var(--bio-text-subtlest);
101
+ --popup-tab-hover-color: var(--bio-text);
102
+ --popup-tab-active-color: var(--bio-text);
103
+ --popup-tab-active-border-color: var(--bio-primary);
104
+ --popup-tab-strip-border-color: var(--bio-border-disabled);
105
+ --popup-tab-focus-border-color: var(--bio-focus);
106
+
107
+ --resizer-fill-color: var(--bio-canvas-accent);
108
+ --resizer-stroke-color: var(--canvas-fill-color);
109
+
110
+ --search-font-family: "IBM Plex Sans", sans-serif;
111
+ --search-font-size: 14px;
112
+ --search-container-background-color: var(--bio-surface-overlay);
113
+ --search-shadow-color: var(--bio-shadow);
114
+ --search-input-border-color: var(--bio-border);
115
+ --search-input-focus-border-color: var(--bio-focus);
116
+ --search-input-focus-background-color: var(--bio-primary-surface);
117
+ --search-result-hover-background-color: var(--bio-surface-medium);
118
+ --search-result-secondary-color: var(--bio-text-subtlest);
119
+ --search-preselected-background-color: color-mix(in srgb, var(--bio-canvas-accent) 15%, transparent);
120
+
121
+ --shape-attach-allowed-stroke-color: var(--accent-color);
122
+ --shape-connect-allowed-fill-color: var(--bio-surface-subtle);
123
+ --shape-drop-allowed-fill-color: var(--bio-surface-subtle);
124
+ --shape-drop-not-allowed-fill-color: var(--bio-danger-surface-subtle);
125
+ --shape-resize-preview-stroke-color: var(--accent-color);
126
+
127
+ --snap-line-stroke-color: color-mix(in srgb, var(--bio-canvas-accent) 30%, transparent);
128
+
129
+ --space-tool-crosshair-stroke-color: var(--bio-text);
130
+
131
+ --tooltip-error-background-color: var(--bio-danger-surface-subtle);
132
+ --tooltip-error-border-color: var(--bio-danger);
133
+ --tooltip-error-color: var(--bio-danger);
134
+
135
+ --hover-tooltip-font-family: "IBM Plex Sans", sans-serif;
136
+ --hover-tooltip-font-size: 12px;
137
+ --hover-tooltip-secondary-font-size: 11px;
138
+ --hover-tooltip-background-color: var(--bio-surface-inverted);
139
+ --hover-tooltip-color: var(--bio-text-on-inverted);
140
+ --hover-tooltip-shadow-color: var(--bio-shadow-subtle);
141
+
142
+ --palette-tooltip-shortcut-background-color: var(--bio-surface-inverted-subtle);
143
+ }
144
+
145
+ /**
146
+ * SVG styles
147
+ */
148
+
149
+ .djs-container svg.drop-not-ok {
150
+ background: var(--shape-drop-not-allowed-fill-color) !important;
151
+ }
152
+
153
+ .djs-container svg.new-parent {
154
+ background: var(--shape-drop-allowed-fill-color) !important;
155
+ }
156
+
157
+ .djs-container svg:focus {
158
+ outline-offset: -1px;
159
+ }
160
+
161
+ /**
162
+ * outline styles
163
+ */
164
+
165
+ .djs-outline,
166
+ .djs-selection-outline {
167
+ fill: none;
168
+ shape-rendering: geometricPrecision;
169
+ stroke-width: 2px;
170
+ }
171
+
172
+ .djs-outline {
173
+ visibility: hidden;
174
+ }
175
+
176
+ .djs-selection-outline {
177
+ stroke: var(--element-selected-outline-stroke-color);
178
+ }
179
+
180
+ .djs-element.selected .djs-outline {
181
+ visibility: visible;
182
+
183
+ stroke: var(--element-selected-outline-stroke-color);
184
+ }
185
+
186
+ .djs-connection.selected .djs-outline {
187
+ display: none;
188
+ }
189
+
190
+ .djs-multi-select .djs-element.selected .djs-outline,
191
+ .djs-dragging-active-lasso .djs-element.selected .djs-outline {
192
+ stroke: var(--element-selected-outline-secondary-stroke-color);
193
+ display: block;
194
+ }
195
+
196
+ .djs-outline-hidden .djs-outline {
197
+ display: none !important;
198
+ }
199
+
200
+ .djs-shape.connect-ok .djs-visual > :nth-child(1) {
201
+ fill: var(--shape-connect-allowed-fill-color) !important;
202
+ }
203
+
204
+ .djs-shape.connect-not-ok .djs-visual > :nth-child(1),
205
+ .djs-shape.drop-not-ok .djs-visual > :nth-child(1) {
206
+ fill: var(--shape-drop-not-allowed-fill-color) !important;
207
+ }
208
+
209
+ .djs-shape.new-parent .djs-visual > :nth-child(1) {
210
+ fill: var(--shape-drop-allowed-fill-color) !important;
211
+ }
212
+
213
+
214
+ /* Override move cursor during drop and connect */
215
+ .drop-not-ok,
216
+ .connect-not-ok,
217
+ .drop-not-ok *,
218
+ .connect-not-ok * {
219
+ cursor: not-allowed !important;
220
+ }
221
+
222
+ .drop-ok,
223
+ .connect-ok,
224
+ .drop-ok *,
225
+ .connect-ok * {
226
+ cursor: default !important;
227
+ }
228
+
229
+ .djs-element.attach-ok .djs-visual > :nth-child(1) {
230
+ stroke-width: 5px !important;
231
+ stroke: var(--shape-attach-allowed-stroke-color) !important;
232
+ }
233
+
234
+ .djs-frame.connect-not-ok .djs-visual > :nth-child(1),
235
+ .djs-frame.drop-not-ok .djs-visual > :nth-child(1) {
236
+ stroke-width: 3px !important;
237
+ stroke: var(--shape-drop-not-allowed-fill-color) !important;
238
+ fill: none !important;
239
+ }
240
+
241
+ /**
242
+ * Selection box style
243
+ *
244
+ */
245
+ .djs-lasso-overlay {
246
+ fill: var(--lasso-fill-color);
247
+ stroke: var(--lasso-stroke-color);
248
+ stroke-width: 2px;
249
+ shape-rendering: geometricPrecision;
250
+ pointer-events: none;
251
+ }
252
+
253
+ /**
254
+ * Resize styles
255
+ */
256
+ .djs-resize-overlay {
257
+ fill: none;
258
+
259
+ stroke-dasharray: 5 1 3 1;
260
+ stroke: var(--shape-resize-preview-stroke-color);
261
+
262
+ pointer-events: none;
263
+ }
264
+
265
+ .djs-resizer-hit {
266
+ fill: none;
267
+ pointer-events: all;
268
+ }
269
+
270
+ .djs-resizer-visual {
271
+ fill: var(--resizer-fill-color);
272
+ stroke-width: 1px;
273
+ stroke: var(--resizer-stroke-color);
274
+ shape-rendering: geometricPrecision;
275
+ }
276
+
277
+ .djs-resizer:hover .djs-resizer-visual {
278
+ stroke: var(--resizer-stroke-color);
279
+ stroke-opacity: 1;
280
+ }
281
+
282
+ .djs-cursor-resize-ns,
283
+ .djs-resizer-n,
284
+ .djs-resizer-s {
285
+ cursor: ns-resize;
286
+ }
287
+
288
+ .djs-cursor-resize-ew,
289
+ .djs-resizer-e,
290
+ .djs-resizer-w {
291
+ cursor: ew-resize;
292
+ }
293
+
294
+ .djs-cursor-resize-nwse,
295
+ .djs-resizer-nw,
296
+ .djs-resizer-se {
297
+ cursor: nwse-resize;
298
+ }
299
+
300
+ .djs-cursor-resize-nesw,
301
+ .djs-resizer-ne,
302
+ .djs-resizer-sw {
303
+ cursor: nesw-resize;
304
+ }
305
+
306
+ .djs-shape.djs-resizing > .djs-outline {
307
+ visibility: hidden !important;
308
+ }
309
+
310
+ .djs-shape.djs-resizing > .djs-resizer {
311
+ visibility: hidden;
312
+ }
313
+
314
+ .djs-dragger > .djs-resizer {
315
+ visibility: hidden;
316
+ }
317
+
318
+ /**
319
+ * drag styles
320
+ */
321
+ .djs-dragger * {
322
+ fill: none !important;
323
+ stroke: var(--element-dragger-color) !important;
324
+ }
325
+
326
+ .djs-dragger tspan,
327
+ .djs-dragger text {
328
+ fill: var(--element-dragger-color) !important;
329
+ stroke: none !important;
330
+ }
331
+
332
+ .djs-dragger marker circle,
333
+ .djs-dragger marker path,
334
+ .djs-dragger marker polygon,
335
+ .djs-dragger marker polyline,
336
+ .djs-dragger marker rect {
337
+ fill: var(--element-dragger-color) !important;
338
+ stroke: none !important;
339
+ }
340
+
341
+ .djs-dragger marker text,
342
+ .djs-dragger marker tspan {
343
+ fill: none !important;
344
+ stroke: var(--element-dragger-color) !important;
345
+ }
346
+
347
+ .djs-dragging,
348
+ .djs-dragging > * {
349
+ opacity: 0.3 !important;
350
+ pointer-events: none !important;
351
+ }
352
+
353
+ /**
354
+ * no pointer events for visual
355
+ */
356
+ .djs-visual,
357
+ .djs-outline {
358
+ pointer-events: none;
359
+ }
360
+
361
+ .djs-element.attach-ok .djs-hit {
362
+ stroke-width: 60px !important;
363
+ }
364
+
365
+ /**
366
+ * all pointer events for hit shape
367
+ */
368
+ .djs-element > .djs-hit-all,
369
+ .djs-element > .djs-hit-no-move {
370
+ pointer-events: all;
371
+ }
372
+
373
+ .djs-element > .djs-hit-stroke,
374
+ .djs-element > .djs-hit-click-stroke {
375
+ pointer-events: stroke;
376
+ }
377
+
378
+ /**
379
+ * shape / connection basic styles
380
+ */
381
+ .djs-connection .djs-visual {
382
+ stroke-width: 2px;
383
+ fill: none;
384
+ }
385
+
386
+ .djs-cursor-grab {
387
+ cursor: -webkit-grab;
388
+ cursor: -moz-grab;
389
+ cursor: grab;
390
+ }
391
+
392
+ .djs-cursor-grabbing {
393
+ cursor: -webkit-grabbing;
394
+ cursor: -moz-grabbing;
395
+ cursor: grabbing;
396
+ }
397
+
398
+ .djs-cursor-crosshair {
399
+ cursor: crosshair;
400
+ }
401
+
402
+ .djs-cursor-move {
403
+ cursor: move;
404
+ }
405
+
406
+ .djs-cursor-resize-ns {
407
+ cursor: ns-resize;
408
+ }
409
+
410
+ .djs-cursor-resize-ew {
411
+ cursor: ew-resize;
412
+ }
413
+
414
+
415
+ /**
416
+ * snapping
417
+ */
418
+ .djs-snap-line {
419
+ stroke: var(--snap-line-stroke-color);
420
+ stroke-linecap: round;
421
+ stroke-width: 2px;
422
+ pointer-events: none;
423
+ }
424
+
425
+ /**
426
+ * snapping
427
+ */
428
+ .djs-crosshair {
429
+ stroke: var(--space-tool-crosshair-stroke-color);
430
+ stroke-linecap: round;
431
+ stroke-width: 1px;
432
+ pointer-events: none;
433
+ shape-rendering: geometricPrecision;
434
+ stroke-dasharray: 5, 5;
435
+ }
436
+
437
+ /**
438
+ * palette
439
+ */
440
+
441
+ .djs-palette {
442
+ position: absolute;
443
+ left: 20px;
444
+ top: 20px;
445
+
446
+ box-sizing: border-box;
447
+ width: 48px;
448
+ }
449
+
450
+ .djs-palette .separator {
451
+ margin: 5px;
452
+ padding-top: 5px;
453
+
454
+ border: none;
455
+ border-bottom: solid 1px var(--palette-separator-color);
456
+
457
+ clear: both;
458
+ }
459
+
460
+ .djs-palette .entry:before {
461
+ vertical-align: initial;
462
+ }
463
+
464
+ .djs-palette .djs-palette-toggle {
465
+ cursor: pointer;
466
+ }
467
+
468
+ .djs-palette .entry,
469
+ .djs-palette .djs-palette-toggle {
470
+ color: var(--palette-entry-color);
471
+ font-size: 30px;
472
+
473
+ text-align: center;
474
+ }
475
+
476
+ .djs-palette .entry {
477
+ float: left;
478
+ }
479
+
480
+ .djs-palette .entry img {
481
+ max-width: 100%;
482
+ }
483
+
484
+ .djs-palette .djs-palette-entries:after {
485
+ content: '';
486
+ display: table;
487
+ clear: both;
488
+ }
489
+
490
+ .djs-palette .djs-palette-toggle:hover {
491
+ background: var(--palette-toggle-hover-background-color);
492
+ }
493
+
494
+ .djs-palette .entry:hover {
495
+ color: var(--palette-entry-hover-color);
496
+ }
497
+
498
+ .djs-palette .highlighted-entry {
499
+ color: var(--palette-entry-selected-color) !important;
500
+ }
501
+
502
+ .djs-palette .entry,
503
+ .djs-palette .djs-palette-toggle {
504
+ width: 46px;
505
+ height: 46px;
506
+ line-height: 46px;
507
+ cursor: default;
508
+ }
509
+
510
+ /**
511
+ * Palette open / two-column layout is controlled via
512
+ * classes on the palette. Events to hook into palette
513
+ * changed life-cycle are available in addition.
514
+ */
515
+ .djs-palette.two-column.open {
516
+ width: 94px;
517
+ }
518
+
519
+ .djs-palette:not(.open) .djs-palette-entries {
520
+ display: none;
521
+ }
522
+
523
+ .djs-palette:not(.open) {
524
+ overflow: hidden;
525
+ }
526
+
527
+ .djs-palette.open .djs-palette-toggle {
528
+ display: none;
529
+ }
530
+
531
+ .djs-hover-tooltip {
532
+ position: fixed;
533
+ z-index: 1000;
534
+
535
+ display: flex;
536
+ align-items: center;
537
+ gap: 6px;
538
+
539
+ padding: 6px 10px;
540
+ border-radius: var(--surface-border-radius);
541
+
542
+ background-color: var(--hover-tooltip-background-color);
543
+ color: var(--hover-tooltip-color);
544
+
545
+ font-family: var(--hover-tooltip-font-family);
546
+ font-size: var(--hover-tooltip-font-size);
547
+ line-height: 1.2;
548
+ white-space: nowrap;
549
+
550
+ pointer-events: none;
551
+ box-shadow: 0 1px 4px var(--hover-tooltip-shadow-color);
552
+ }
553
+
554
+ .djs-hover-tooltip--right {
555
+ transform: translateY(-50%);
556
+ }
557
+
558
+ .djs-hover-tooltip--top {
559
+ transform: translate(-50%, -100%);
560
+ }
561
+
562
+ .djs-palette-tooltip-shortcut {
563
+ padding: 1px 5px;
564
+
565
+ border-radius: var(--button-border-radius);
566
+
567
+ background-color: var(--palette-tooltip-shortcut-background-color);
568
+
569
+ font-family: monospace;
570
+ font-size: var(--hover-tooltip-secondary-font-size);
571
+ line-height: 1.2;
572
+ }
573
+
574
+ /**
575
+ * context-pad
576
+ */
577
+ .djs-context-pad {
578
+ position: absolute;
579
+ display: none;
580
+ pointer-events: none;
581
+ line-height: 1;
582
+ width: 72px;
583
+ z-index: 100;
584
+ }
585
+
586
+ .djs-context-pad .entry {
587
+ width: 22px;
588
+ height: 22px;
589
+ text-align: center;
590
+ display: inline-block;
591
+ font-size: 22px;
592
+ margin: 0 2px 2px 0;
593
+
594
+ border-radius: 3px;
595
+
596
+ cursor: default;
597
+
598
+ background-color: var(--context-pad-entry-background-color);
599
+ box-shadow: 0 0 2px 1px var(--context-pad-entry-background-color);
600
+ pointer-events: all;
601
+ vertical-align: middle;
602
+ }
603
+
604
+ .djs-context-pad .entry:hover {
605
+ background: var(--context-pad-entry-hover-background-color);
606
+ }
607
+
608
+ .djs-context-pad.open {
609
+ display: block;
610
+ }
611
+
612
+ /**
613
+ * popup styles
614
+ */
615
+ .djs-popup {
616
+ line-height: 1;
617
+ box-sizing: border-box;
618
+ background: var(--popup-background-color);
619
+ overflow: hidden;
620
+ position: fixed;
621
+ z-index: 200;
622
+ box-shadow: 0px 2px 6px var(--popup-shadow-color);
623
+ border: solid 1px var(--popup-border-color);
624
+ min-width: 120px;
625
+ max-width: 300px;
626
+ outline: none;
627
+ font-size: var(--popup-font-size);
628
+ font-family: var(--popup-font-family);
629
+ }
630
+
631
+ .djs-popup-search input {
632
+ width: 100%;
633
+ box-sizing: border-box;
634
+ font-size: var(--popup-font-size);
635
+ padding: 3px 6px 3px 28px;
636
+ border-radius: var(--input-border-radius);
637
+ border: solid 1px var(--popup-search-border-color);
638
+ line-height: 21px;
639
+ }
640
+
641
+ .djs-popup-search input:focus {
642
+ background-color: var(--popup-search-focus-background-color);
643
+ border: solid 1px var(--popup-search-focus-border-color);
644
+ outline: none;
645
+ }
646
+
647
+ .djs-popup-header {
648
+ display: flex;
649
+ align-items: stretch;
650
+ line-height: 20px;
651
+ margin: 10px 12px 10px 12px;
652
+ }
653
+
654
+ .djs-popup-header .entry {
655
+ border-radius: 2px;
656
+ }
657
+
658
+ .djs-popup button.entry {
659
+ padding: 0;
660
+ background: transparent;
661
+ border: 0;
662
+ }
663
+
664
+ .djs-popup-header .entry.active {
665
+ color: var(--popup-header-entry-selected-color);
666
+ }
667
+
668
+ .djs-popup-header .entry.disabled {
669
+ color: inherit;
670
+ }
671
+
672
+ .djs-popup-header-group {
673
+ display: flex;
674
+ flex-direction: row;
675
+ align-items: center;
676
+ list-style: none;
677
+ margin: 0;
678
+ padding: 0;
679
+ }
680
+
681
+ .djs-popup-header-group .entry {
682
+ display: flex;
683
+ flex-direction: row;
684
+ align-items: center;
685
+ }
686
+
687
+ .djs-popup-header-group + .djs-popup-header-group:before {
688
+ content: '';
689
+ width: 1px;
690
+ height: 20px;
691
+ background: var(--popup-header-group-divider-color);
692
+ margin: 0 5px;
693
+ }
694
+
695
+ .djs-popup-search {
696
+ position: relative;
697
+ width: auto;
698
+ margin: 10px 12px;
699
+ }
700
+
701
+ .djs-popup-tabs-container {
702
+ position: relative;
703
+ border-bottom: solid 1px var(--popup-tab-strip-border-color);
704
+ }
705
+
706
+ /**
707
+ * The scroll control doubles as the edge fade: tabs scrolled past it fade out
708
+ * rather than being cut off behind an opaque block.
709
+ */
710
+ .djs-popup-tabs-scroll {
711
+ appearance: none;
712
+ position: absolute;
713
+ top: 0;
714
+ bottom: 1px;
715
+ width: 28px;
716
+ display: flex;
717
+ align-items: center;
718
+ padding: 0;
719
+ border: none;
720
+ border-radius: 0;
721
+ color: var(--popup-tab-color);
722
+ cursor: pointer;
723
+ }
724
+
725
+ .djs-popup-tabs-scroll:hover {
726
+ color: var(--popup-tab-hover-color);
727
+ }
728
+
729
+ .djs-popup-tabs-scroll-start {
730
+ left: 0;
731
+ justify-content: flex-start;
732
+ background: linear-gradient(to left, transparent, var(--popup-background-color) 60%);
733
+ }
734
+
735
+ .djs-popup-tabs-scroll-end {
736
+ right: 0;
737
+ justify-content: flex-end;
738
+ background: linear-gradient(to right, transparent, var(--popup-background-color) 60%);
739
+ }
740
+
741
+ .djs-popup-tabs-scroll-start svg {
742
+ transform: rotate(180deg);
743
+ }
744
+
745
+ .djs-popup-tabs {
746
+ display: flex;
747
+ flex-wrap: nowrap;
748
+ gap: 2px;
749
+ overflow-x: auto;
750
+ overflow-y: hidden;
751
+ padding: 0 12px;
752
+
753
+ /* keep scrolled-to tabs clear of the scroll controls */
754
+ scroll-padding: 0 28px;
755
+ scrollbar-width: none;
756
+ }
757
+
758
+ .djs-popup-tabs::-webkit-scrollbar {
759
+ display: none;
760
+ }
761
+
762
+ .djs-popup-tab {
763
+ appearance: none;
764
+ background: transparent;
765
+ border: none;
766
+ border-bottom: solid 2px transparent;
767
+ border-radius: 0;
768
+ flex: 0 0 auto;
769
+ padding: 6px 10px;
770
+ font: inherit;
771
+ font-size: var(--popup-font-size);
772
+ color: var(--popup-tab-color);
773
+ cursor: pointer;
774
+ white-space: nowrap;
775
+ }
776
+
777
+ .djs-popup-tab:hover {
778
+ color: var(--popup-tab-hover-color);
779
+ }
780
+
781
+ .djs-popup-tab:focus-visible {
782
+ outline: solid 1px var(--popup-tab-focus-border-color);
783
+ outline-offset: -2px;
784
+ }
785
+
786
+ .djs-popup-tab[aria-selected="true"] {
787
+ color: var(--popup-tab-active-color);
788
+ border-bottom-color: var(--popup-tab-active-border-color);
789
+ font-weight: var(--popup-header-font-weight);
790
+ }
791
+
792
+ .djs-popup-title {
793
+ font-size: var(--popup-font-size);
794
+ font-weight: var(--popup-header-font-weight);
795
+ flex: 1;
796
+ margin: 0;
797
+ }
798
+
799
+ .djs-popup-breadcrumbs {
800
+ display: flex;
801
+ line-height: 20px;
802
+ margin: 10px 12px;
803
+ }
804
+
805
+ .djs-popup-breadcrumbs-item {
806
+ display: inline-flex;
807
+ min-width: 0;
808
+ padding: 0;
809
+ margin: 0;
810
+ background: transparent;
811
+ border: 0;
812
+ outline: none;
813
+ appearance: none;
814
+ color: var(--popup-description-color);
815
+ font: inherit;
816
+ cursor: pointer;
817
+ overflow: hidden;
818
+ text-overflow: ellipsis;
819
+ white-space: nowrap;
820
+ }
821
+
822
+ .djs-popup-breadcrumbs-item--separator::before {
823
+ display: inline-block;
824
+ content: '/';
825
+ color: var(--popup-description-color);
826
+ margin: 0 4px;
827
+ }
828
+
829
+ .djs-popup-breadcrumbs-item:hover {
830
+ color: inherit;
831
+ text-decoration: underline;
832
+ }
833
+
834
+ .djs-popup-breadcrumbs-item:focus-visible {
835
+ outline: 1px solid var(--popup-search-focus-border-color);
836
+ outline-offset: 2px;
837
+ }
838
+
839
+ .djs-popup-breadcrumbs-item--back {
840
+ align-items: center;
841
+ justify-content: center;
842
+ flex-shrink: 0;
843
+ padding: 2px 3px;
844
+ margin-right: 6px;
845
+ border: 1px solid var(--popup-search-border-color);
846
+ border-radius: 4px;
847
+ }
848
+
849
+ .djs-popup-breadcrumbs-item--back:hover {
850
+ background: var(--popup-button-hover-background-color);
851
+ }
852
+
853
+ .djs-popup-breadcrumbs-item--current {
854
+ font-weight: var(--popup-header-font-weight);
855
+ color: inherit;
856
+ cursor: default;
857
+ }
858
+
859
+ .djs-popup-breadcrumbs-item--current:hover {
860
+ text-decoration: none;
861
+ }
862
+
863
+ .djs-popup-entry-actions {
864
+ display: flex;
865
+ align-items: center;
866
+ flex-shrink: 0;
867
+ gap: 6px;
868
+ margin-left: 6px;
869
+ }
870
+
871
+ .djs-popup-entry-chevron {
872
+ display: flex;
873
+ align-items: center;
874
+ color: var(--popup-description-color);
875
+ }
876
+
877
+ .djs-popup-search-icon {
878
+ position: absolute;
879
+ left: 8px;
880
+ top: 7px;
881
+ }
882
+
883
+ .djs-popup-search-count {
884
+ margin: 0 12px;
885
+ font-size: var(--popup-secondary-font-size);
886
+ color: var(--popup-description-color);
887
+ }
888
+
889
+ .djs-popup-results {
890
+ margin: 7px 3px 7px 12px;
891
+ list-style: none;
892
+ max-height: 280px;
893
+ overflow: auto;
894
+ padding-right: 9px;
895
+ }
896
+
897
+ /**
898
+ * The results list is focusable (as a listbox holding
899
+ * \`aria-activedescendant\`) when there is no search field.
900
+ * The active entry is indicated via \`.entry.selected\`, so we hide
901
+ * the outline on the list container itself.
902
+ */
903
+ .djs-popup-results:focus {
904
+ outline: none;
905
+ }
906
+
907
+ .djs-popup-group {
908
+ margin: 0;
909
+ padding: 0;
910
+ width: 100%;
911
+ }
912
+
913
+ .djs-popup-body .entry,
914
+ .djs-popup-body .entry-header {
915
+ padding: 5px 7px;
916
+ cursor: default;
917
+ border-radius: 4px;
918
+ }
919
+
920
+ .djs-popup-body .entry-header {
921
+ font-weight: var(--popup-header-font-weight);
922
+ color: var(--popup-entry-title-color);
923
+ padding-left: 0;
924
+ }
925
+
926
+ .djs-popup [class*="icon"] .djs-popup-label,
927
+ .djs-popup-label:not(:first-child) {
928
+ margin-left: .5em;
929
+ }
930
+
931
+ .djs-popup [class*="icon"]:before,
932
+ .djs-popup-entry-icon {
933
+ width: 1em;
934
+ height: 1em;
935
+ display: inline-block;
936
+ font-size: 1.4em;
937
+ vertical-align: middle;
938
+ }
939
+
940
+ .djs-popup-body .entry-header:not(:first-child) {
941
+ margin-top: 8px;
942
+ margin-bottom: 2px;
943
+ }
944
+
945
+ .djs-popup-body .entry {
946
+ display: flex;
947
+ flex-direction: row;
948
+ align-items: stretch;
949
+ height: min-content;
950
+ }
951
+
952
+ .djs-popup .entry.selected {
953
+ color: var(--popup-entry-selected-color);
954
+ background-color: var(--popup-entry-selected-background-color);
955
+ }
956
+
957
+ .djs-popup .entry.disabled {
958
+ color: var(--popup-disabled-color);
959
+ cursor: not-allowed;
960
+ }
961
+
962
+ .djs-popup-body .entry:not(:first-child) {
963
+ margin-top: 2px;
964
+ }
965
+
966
+ .djs-popup-entry-content {
967
+ display: flex;
968
+ flex-direction: column;
969
+ flex: 1;
970
+ }
971
+
972
+ .djs-popup-entry-description {
973
+ font-size: var(--popup-secondary-font-size);
974
+ margin-top: .25em;
975
+
976
+ color: var(--popup-description-color);
977
+ }
978
+
979
+ .djs-popup-label,
980
+ .djs-popup-entry-description {
981
+ line-height: 1.4em;
982
+ }
983
+
984
+ .djs-popup .entry,
985
+ .djs-popup .entry-header {
986
+ margin: 1px;
987
+ }
988
+
989
+ .djs-popup-body {
990
+ flex-direction: column;
991
+ width: auto;
992
+ }
993
+
994
+ .djs-popup *::-webkit-scrollbar {
995
+ width: 6px;
996
+ }
997
+
998
+ .djs-popup *::-webkit-scrollbar-thumb {
999
+ border-radius: 3px;
1000
+ background-color: var(--popup-scrollbar-thumb-color);
1001
+ }
1002
+
1003
+ .djs-popup *::-webkit-scrollbar-track {
1004
+ box-shadow: none;
1005
+ background: transparent;
1006
+ margin: 0;
1007
+ padding: 5px;
1008
+ }
1009
+
1010
+ .djs-popup-no-results {
1011
+ padding: 0 12px 12px 12px;
1012
+ color: var(--popup-no-results-color);
1013
+ }
1014
+
1015
+ .djs-popup-footer {
1016
+ display: flex;
1017
+ padding: 5px 12px 7px 12px;
1018
+ border-top: solid 1px var(--popup-border-color);
1019
+ }
1020
+
1021
+ /**
1022
+ * The footer holds the keyboard/assistive-technology reachable documentation
1023
+ * link. Pointer interaction switches the popup to the per-entry
1024
+ * \`.djs-popup-entry-docs\` affordance instead.
1025
+ */
1026
+ .djs-popup--pointer .djs-popup-footer {
1027
+ display: none;
1028
+ }
1029
+
1030
+ .djs-popup-entry-docs {
1031
+ display: flex;
1032
+ align-items: center;
1033
+ justify-content: center;
1034
+ flex-shrink: 0;
1035
+ visibility: hidden;
1036
+ padding: 2px 3px;
1037
+ color: var(--popup-description-color);
1038
+ background: var(--popup-button-background-color);
1039
+ border: 1px solid var(--popup-search-border-color);
1040
+ border-radius: 4px;
1041
+ cursor: pointer;
1042
+ transition: background-color .12s ease, border-color .12s ease, color .12s ease;
1043
+ }
1044
+
1045
+ .djs-popup--pointer .djs-popup-body .entry:hover .djs-popup-entry-docs {
1046
+ visibility: visible;
1047
+ }
1048
+
1049
+ .djs-popup-body .entry .djs-popup-entry-docs:hover {
1050
+ background: var(--popup-button-hover-background-color);
1051
+ }
1052
+
1053
+ .djs-popup-entry-docs svg {
1054
+ vertical-align: middle;
1055
+ }
1056
+
1057
+ .djs-popup-footer-docs {
1058
+ display: inline-flex;
1059
+ align-items: center;
1060
+ gap: 3px;
1061
+ font-size: var(--popup-secondary-font-size);
1062
+ color: var(--popup-description-color);
1063
+ text-decoration: none;
1064
+ }
1065
+
1066
+ .djs-popup-footer-docs:hover {
1067
+ text-decoration: underline;
1068
+ }
1069
+
1070
+ .djs-popup-footer-docs svg {
1071
+ vertical-align: middle;
1072
+ margin: 2px;
1073
+ }
1074
+
1075
+ /**
1076
+ * palette styles
1077
+ */
1078
+ .djs-palette {
1079
+ background: var(--palette-background-color);
1080
+ border: solid 1px var(--palette-border-color);
1081
+ border-radius: var(--surface-border-radius);
1082
+ }
1083
+
1084
+ /**
1085
+ * bendpoints
1086
+ */
1087
+ .djs-segment-dragger,
1088
+ .djs-bendpoint {
1089
+ display: none;
1090
+ }
1091
+
1092
+ .djs-segment-dragger .djs-visual {
1093
+ display: none;
1094
+
1095
+ fill: var(--bendpoint-fill-color);
1096
+ stroke: var(--bendpoint-stroke-color);
1097
+ stroke-width: 1px;
1098
+ stroke-opacity: 1;
1099
+ }
1100
+
1101
+ .djs-segment-dragger:hover .djs-visual {
1102
+ display: block;
1103
+ }
1104
+
1105
+ .djs-bendpoint .djs-visual {
1106
+ fill: var(--bendpoint-fill-color);
1107
+ stroke: var(--bendpoint-stroke-color);
1108
+ stroke-width: 1px;
1109
+ }
1110
+
1111
+ .djs-segment-dragger:hover,
1112
+ .djs-bendpoints.hover .djs-segment-dragger,
1113
+ .djs-bendpoints.selected .djs-segment-dragger,
1114
+ .djs-bendpoint:hover,
1115
+ .djs-bendpoints.hover .djs-bendpoint,
1116
+ .djs-bendpoints.selected .djs-bendpoint {
1117
+ display: block;
1118
+ }
1119
+
1120
+ .djs-drag-active .djs-bendpoints * {
1121
+ display: none;
1122
+ }
1123
+
1124
+ .djs-bendpoints:not(.hover) .floating {
1125
+ display: none;
1126
+ }
1127
+
1128
+ .djs-bendpoint.floating:not(.positioned) {
1129
+ display: none;
1130
+ }
1131
+
1132
+ .djs-segment-dragger:hover .djs-visual,
1133
+ .djs-segment-dragger.djs-dragging .djs-visual,
1134
+ .djs-bendpoint:hover .djs-visual,
1135
+ .djs-bendpoint.floating .djs-visual {
1136
+ fill: var(--bendpoint-fill-color);
1137
+ stroke: var(--bendpoint-stroke-color);
1138
+ stroke-opacity: 1;
1139
+ }
1140
+
1141
+ .djs-bendpoint.floating .djs-hit {
1142
+ pointer-events: none;
1143
+ }
1144
+
1145
+ .djs-segment-dragger .djs-hit,
1146
+ .djs-bendpoint .djs-hit {
1147
+ fill: none;
1148
+ pointer-events: all;
1149
+ }
1150
+
1151
+ .djs-segment-dragger.horizontal .djs-hit {
1152
+ cursor: ns-resize;
1153
+ }
1154
+
1155
+ .djs-segment-dragger.vertical .djs-hit {
1156
+ cursor: ew-resize;
1157
+ }
1158
+
1159
+ .djs-segment-dragger.djs-dragging .djs-hit {
1160
+ pointer-events: none;
1161
+ }
1162
+
1163
+ .djs-updating,
1164
+ .djs-updating > * {
1165
+ pointer-events: none !important;
1166
+ }
1167
+
1168
+ .djs-updating .djs-context-pad,
1169
+ .djs-updating .djs-outline,
1170
+ .djs-updating .djs-bendpoint,
1171
+ .djs-multi-select .djs-bendpoint,
1172
+ .djs-multi-select .djs-segment-dragger,
1173
+ .connect-ok .djs-bendpoint,
1174
+ .connect-not-ok .djs-bendpoint,
1175
+ .drop-ok .djs-bendpoint,
1176
+ .drop-not-ok .djs-bendpoint {
1177
+ display: none !important;
1178
+ }
1179
+
1180
+ .djs-segment-dragger.djs-dragging,
1181
+ .djs-bendpoint.djs-dragging {
1182
+ display: block;
1183
+ opacity: 1.0;
1184
+ }
1185
+
1186
+
1187
+ /**
1188
+ * tooltips
1189
+ */
1190
+ .djs-tooltip-error {
1191
+ width: 160px;
1192
+ padding: 6px;
1193
+
1194
+ background: var(--tooltip-error-background-color);
1195
+ border: solid 1px var(--tooltip-error-border-color);
1196
+ border-radius: var(--surface-border-radius);
1197
+ color: var(--tooltip-error-color);
1198
+ font-size: 12px;
1199
+ line-height: 16px;
1200
+
1201
+ opacity: 0.75;
1202
+ }
1203
+
1204
+ .djs-tooltip-error:hover {
1205
+ opacity: 1;
1206
+ }
1207
+
1208
+
1209
+ /**
1210
+ * search pad
1211
+ */
1212
+ .djs-search-open .djs-context-pad {
1213
+ display: none;
1214
+ }
1215
+
1216
+ .djs-search-open .djs-connection.selected .djs-outline {
1217
+ display: block;
1218
+ }
1219
+
1220
+ .djs-search-container {
1221
+ position: absolute;
1222
+ top: 20px;
1223
+ left: 0;
1224
+ right: 0;
1225
+ margin-left: auto;
1226
+ margin-right: auto;
1227
+
1228
+ width: 25%;
1229
+ min-width: 300px;
1230
+ max-width: 400px;
1231
+ z-index: 10;
1232
+
1233
+ font-family: var(--search-font-family);
1234
+ font-size: var(--search-font-size);
1235
+ border-radius: var(--surface-border-radius);
1236
+ box-shadow: 0px 2px 6px var(--search-shadow-color);
1237
+ }
1238
+
1239
+ .djs-search-container:not(.open) {
1240
+ display: none;
1241
+ }
1242
+
1243
+ .djs-search-input {
1244
+ position: relative;
1245
+ }
1246
+
1247
+ .djs-search-input svg {
1248
+ position: absolute;
1249
+ left: 8px;
1250
+ top: 7px;
1251
+ }
1252
+
1253
+ .djs-search-input input {
1254
+ font-size: var(--search-font-size);
1255
+ width: 100%;
1256
+ padding: 3px 6px 3px 28px;
1257
+ border: 1px solid var(--search-input-border-color);
1258
+ border-radius: var(--input-border-radius);
1259
+ box-sizing: border-box;
1260
+ line-height: 21px;
1261
+ }
1262
+
1263
+ .djs-search-input input:focus {
1264
+ background-color: var(--search-input-focus-background-color);
1265
+ border: solid 1px var(--search-input-focus-border-color);
1266
+ outline: none;
1267
+ }
1268
+
1269
+ .djs-search-results {
1270
+ position: relative;
1271
+ overflow-y: auto;
1272
+ max-height: 200px;
1273
+ background: var(--search-container-background-color);
1274
+ }
1275
+
1276
+ .djs-search-result {
1277
+ padding: 6px 8px;
1278
+ }
1279
+
1280
+ .djs-search-result-primary {
1281
+ margin: 0 0 3px;
1282
+ text-overflow: ellipsis;
1283
+ overflow: hidden;
1284
+ white-space: nowrap;
1285
+ }
1286
+
1287
+ .djs-search-result-secondary {
1288
+ font-family: monospace;
1289
+ margin: 0;
1290
+ text-overflow: ellipsis;
1291
+ overflow: hidden;
1292
+ white-space: nowrap;
1293
+ color: var(--search-result-secondary-color);
1294
+ }
1295
+
1296
+ .djs-search-result:hover {
1297
+ background: var(--search-result-hover-background-color);
1298
+ }
1299
+
1300
+ .djs-search-result-selected {
1301
+ background: var(--search-result-hover-background-color);
1302
+ }
1303
+
1304
+ .djs-search-result-selected:hover {
1305
+ background: var(--search-result-hover-background-color);
1306
+ }
1307
+
1308
+ .djs-search-open .djs-element .djs-outline {
1309
+ fill: var(--search-preselected-background-color) !important;
1310
+ }
1311
+
1312
+ /**
1313
+ * hidden styles
1314
+ */
1315
+ .djs-element-hidden,
1316
+ .djs-element-hidden .djs-hit,
1317
+ .djs-element-hidden .djs-outline,
1318
+ .djs-label-hidden .djs-label {
1319
+ display: none !important;
1320
+ }
1321
+
1322
+ .djs-element .djs-hit-stroke,
1323
+ .djs-element .djs-hit-click-stroke,
1324
+ .djs-element .djs-hit-all {
1325
+ cursor: move;
1326
+ }
1327
+ /**
1328
+ * Semantic tokens, copied from \`@bpmn-io/theme\` to style the components
1329
+ * according to this theme.
1330
+ *
1331
+ * Names and values of the tokens should stay intact with the \`@bpmn-io/theme\`
1332
+ * source of truth, to ensure matching styles and allow overrides with an
1333
+ * alternative theme.
1334
+ */
1335
+ .bio-theme-parent {
1336
+ --bio-surface-subtle: hsl(225, 10%, 97%);
1337
+ --bio-text-on-primary: hsl(0, 0%, 100%);
1338
+ --bio-border: hsl(225, 10%, 75%);
1339
+ --bio-primary: hsl(205, 100%, 40%);
1340
+ --bio-focus: hsl(205, 100%, 40%);
1341
+ --bio-radius-md: 3px;
1342
+ --bio-radius-lg: 4px;
1343
+ }
1344
+
1345
+ .bjs-container {
1346
+ --bjs-font-family: Arial, sans-serif;
1347
+
1348
+ --accent-color: var(--bio-primary);
1349
+
1350
+ --breadcrumbs-font-family: var(--bjs-font-family);
1351
+ --breadcrumbs-item-color: var(--accent-color);
1352
+ --breadcrumbs-background-color: var(--bio-surface-subtle);
1353
+ --breadcrumbs-border-color: var(--bio-border);
1354
+ --breadcrumbs-focus-outline-color: var(--bio-focus);
1355
+ --drilldown-fill-color: var(--bio-text-on-primary);
1356
+ --drilldown-background-color: var(--accent-color);
1357
+ --drilldown-focus-outline-color: var(--bio-focus);
1358
+
1359
+ --button-border-radius: var(--bio-radius-md);
1360
+ --surface-border-radius: var(--bio-radius-lg);
1361
+ }
1362
+
1363
+ .bjs-breadcrumbs {
1364
+ position: absolute;
1365
+ display: none;
1366
+ flex-wrap: wrap;
1367
+ align-items: center;
1368
+ top: 20px;
1369
+ left: 20px;
1370
+ padding: 5px 10px;
1371
+ margin: 0px;
1372
+ font-family: var(--breadcrumbs-font-family);
1373
+ font-size: 16px;
1374
+ line-height: normal;
1375
+ background-color: var(--breadcrumbs-background-color);
1376
+ border: solid 1px var(--breadcrumbs-border-color);
1377
+ border-radius: var(--surface-border-radius);
1378
+ row-gap: 5px;
1379
+ }
1380
+
1381
+ .bjs-breadcrumbs-shown .bjs-breadcrumbs {
1382
+ display: flex;
1383
+ }
1384
+
1385
+ .djs-palette-shown .bjs-breadcrumbs {
1386
+ left: 90px;
1387
+ }
1388
+
1389
+ .djs-palette-shown.djs-palette-two-column .bjs-breadcrumbs {
1390
+ left: 140px;
1391
+ }
1392
+
1393
+ .bjs-breadcrumbs li {
1394
+ display: inline-flex;
1395
+ align-items: center;
1396
+ }
1397
+
1398
+ .bjs-breadcrumbs a.bjs-crumb {
1399
+ cursor: pointer;
1400
+ color: var(--breadcrumbs-item-color);
1401
+ text-decoration: none;
1402
+ }
1403
+
1404
+ .bjs-breadcrumbs a.bjs-crumb:focus-visible {
1405
+ outline: solid 1px var(--breadcrumbs-focus-outline-color);
1406
+ outline-offset: 1px;
1407
+ }
1408
+
1409
+ .bjs-breadcrumbs li:not(:first-child)::before {
1410
+ content: url('__ASSET__inline-01.svg');
1411
+ padding: 0 8px;
1412
+ height: 1em;
1413
+ }
1414
+
1415
+ .bjs-breadcrumbs .bjs-crumb {
1416
+ display: inline-block;
1417
+ max-width: 200px;
1418
+ overflow: hidden;
1419
+ text-overflow: ellipsis;
1420
+ white-space: nowrap;
1421
+ }
1422
+
1423
+ .bjs-drilldown {
1424
+ width: 20px;
1425
+ height: 20px;
1426
+
1427
+ padding: 0px;
1428
+ margin-left: -20px;
1429
+
1430
+ cursor: pointer;
1431
+ border: none;
1432
+ border-radius: var(--button-border-radius);
1433
+
1434
+ fill: var(--drilldown-fill-color);
1435
+ background-color: var(--drilldown-background-color);
1436
+ }
1437
+
1438
+ .bjs-drilldown:focus-visible {
1439
+ outline: solid 1px var(--drilldown-focus-outline-color);
1440
+ outline-offset: 1px;
1441
+ }
1442
+
1443
+ .bjs-drilldown-empty {
1444
+ display: none;
1445
+ }
1446
+
1447
+ .selected .bjs-drilldown-empty {
1448
+ display: inherit;
1449
+ }
1450
+
1451
+ [data-popup="align-elements"] .djs-popup-results {
1452
+ display: flex;
1453
+ }
1454
+
1455
+ [data-popup="align-elements"] .djs-popup-body [data-group] + [data-group] {
1456
+ border-left: 1px solid var(--popup-border-color);
1457
+ }
1458
+
1459
+ [data-popup="align-elements"] [data-group="align"] {
1460
+ display: grid;
1461
+ grid-template-columns: repeat(3, 1fr);
1462
+ }
1463
+
1464
+ [data-popup="align-elements"] .djs-popup-body .entry {
1465
+ padding: 6px 8px;
1466
+ }
1467
+
1468
+ [data-popup="align-elements"] .djs-popup-body .entry:not(:first-child) {
1469
+ margin-top: 0;
1470
+ }
1471
+
1472
+ [data-popup="align-elements"] .djs-popup-entry-icon {
1473
+ display: block;
1474
+ margin: 0;
1475
+ height: 20px;
1476
+ width: 20px;
1477
+ }
1478
+
1479
+ [class^="bpmn-icon-"]:before, [class*=" bpmn-icon-"]:before {
1480
+ font-family: "bpmn";
1481
+ font-style: normal;
1482
+ font-weight: normal;
1483
+ speak: never;
1484
+
1485
+ display: inline-block;
1486
+ text-decoration: inherit;
1487
+ width: 1em;
1488
+
1489
+ text-align: center;
1490
+
1491
+
1492
+
1493
+ font-variant: normal;
1494
+ text-transform: none;
1495
+
1496
+
1497
+ line-height: 1em;
1498
+
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+ -webkit-font-smoothing: antialiased;
1508
+ -moz-osx-font-smoothing: grayscale;
1509
+
1510
+
1511
+
1512
+ }
1513
+
1514
+ .bpmn-icon-trash:before { content: '\\e801'; }
1515
+ .bpmn-icon-gateway-parallel:before { content: '\\e804'; }
1516
+ .bpmn-icon-intermediate-event-catch-cancel:before { content: '\\e805'; }
1517
+ .bpmn-icon-intermediate-event-catch-non-interrupting-message:before { content: '\\e806'; }
1518
+ .bpmn-icon-start-event-compensation:before { content: '\\e807'; }
1519
+ .bpmn-icon-start-event-non-interrupting-parallel-multiple:before { content: '\\e808'; }
1520
+ .bpmn-icon-loop-marker:before { content: '\\e809'; }
1521
+ .bpmn-icon-parallel-mi-marker:before { content: '\\e80a'; }
1522
+ .bpmn-icon-start-event-non-interrupting-signal:before { content: '\\e80b'; }
1523
+ .bpmn-icon-intermediate-event-catch-non-interrupting-timer:before { content: '\\e80c'; }
1524
+ .bpmn-icon-intermediate-event-catch-parallel-multiple:before { content: '\\e80d'; }
1525
+ .bpmn-icon-intermediate-event-catch-compensation:before { content: '\\e80e'; }
1526
+ .bpmn-icon-gateway-xor:before { content: '\\e80f'; }
1527
+ .bpmn-icon-end-event-cancel:before { content: '\\e811'; }
1528
+ .bpmn-icon-intermediate-event-catch-condition:before { content: '\\e812'; }
1529
+ .bpmn-icon-intermediate-event-catch-non-interrupting-parallel-multiple:before { content: '\\e813'; }
1530
+ .bpmn-icon-start-event-condition:before { content: '\\e814'; }
1531
+ .bpmn-icon-start-event-non-interrupting-timer:before { content: '\\e815'; }
1532
+ .bpmn-icon-sequential-mi-marker:before { content: '\\e816'; }
1533
+ .bpmn-icon-user-task:before { content: '\\e817'; }
1534
+ .bpmn-icon-business-rule:before { content: '\\e818'; }
1535
+ .bpmn-icon-sub-process-marker:before { content: '\\e819'; }
1536
+ .bpmn-icon-start-event-parallel-multiple:before { content: '\\e81a'; }
1537
+ .bpmn-icon-start-event-error:before { content: '\\e81b'; }
1538
+ .bpmn-icon-intermediate-event-catch-signal:before { content: '\\e81c'; }
1539
+ .bpmn-icon-intermediate-event-catch-error:before { content: '\\e81d'; }
1540
+ .bpmn-icon-end-event-compensation:before { content: '\\e81e'; }
1541
+ .bpmn-icon-subprocess-collapsed:before { content: '\\e81f'; }
1542
+ .bpmn-icon-subprocess-expanded:before { content: '\\e820'; }
1543
+ .bpmn-icon-task:before { content: '\\e821'; }
1544
+ .bpmn-icon-end-event-error:before { content: '\\e822'; }
1545
+ .bpmn-icon-intermediate-event-catch-escalation:before { content: '\\e823'; }
1546
+ .bpmn-icon-intermediate-event-catch-timer:before { content: '\\e824'; }
1547
+ .bpmn-icon-start-event-escalation:before { content: '\\e825'; }
1548
+ .bpmn-icon-start-event-signal:before { content: '\\e826'; }
1549
+ .bpmn-icon-business-rule-task:before { content: '\\e827'; }
1550
+ .bpmn-icon-manual:before { content: '\\e828'; }
1551
+ .bpmn-icon-receive:before { content: '\\e829'; }
1552
+ .bpmn-icon-call-activity:before { content: '\\e82a'; }
1553
+ .bpmn-icon-start-event-timer:before { content: '\\e82b'; }
1554
+ .bpmn-icon-start-event-message:before { content: '\\e82c'; }
1555
+ .bpmn-icon-intermediate-event-none:before { content: '\\e82d'; }
1556
+ .bpmn-icon-intermediate-event-catch-link:before { content: '\\e82e'; }
1557
+ .bpmn-icon-end-event-escalation:before { content: '\\e82f'; }
1558
+ .bpmn-icon-bpmn-io:before { content: '\\e831'; }
1559
+ .bpmn-icon-gateway-complex:before { content: '\\e832'; }
1560
+ .bpmn-icon-gateway-eventbased:before { content: '\\e833'; }
1561
+ .bpmn-icon-gateway-none:before { content: '\\e834'; }
1562
+ .bpmn-icon-gateway-or:before { content: '\\e835'; }
1563
+ .bpmn-icon-end-event-terminate:before { content: '\\e836'; }
1564
+ .bpmn-icon-end-event-signal:before { content: '\\e837'; }
1565
+ .bpmn-icon-end-event-none:before { content: '\\e838'; }
1566
+ .bpmn-icon-end-event-multiple:before { content: '\\e839'; }
1567
+ .bpmn-icon-end-event-message:before { content: '\\e83a'; }
1568
+ .bpmn-icon-end-event-link:before { content: '\\e83b'; }
1569
+ .bpmn-icon-intermediate-event-catch-message:before { content: '\\e83c'; }
1570
+ .bpmn-icon-intermediate-event-throw-compensation:before { content: '\\e83d'; }
1571
+ .bpmn-icon-start-event-multiple:before { content: '\\e83e'; }
1572
+ .bpmn-icon-script:before { content: '\\e83f'; }
1573
+ .bpmn-icon-manual-task:before { content: '\\e840'; }
1574
+ .bpmn-icon-send:before { content: '\\e841'; }
1575
+ .bpmn-icon-service:before { content: '\\e842'; }
1576
+ .bpmn-icon-receive-task:before { content: '\\e843'; }
1577
+ .bpmn-icon-user:before { content: '\\e844'; }
1578
+ .bpmn-icon-start-event-none:before { content: '\\e845'; }
1579
+ .bpmn-icon-intermediate-event-throw-escalation:before { content: '\\e846'; }
1580
+ .bpmn-icon-intermediate-event-catch-multiple:before { content: '\\e847'; }
1581
+ .bpmn-icon-intermediate-event-catch-non-interrupting-escalation:before { content: '\\e848'; }
1582
+ .bpmn-icon-intermediate-event-throw-link:before { content: '\\e849'; }
1583
+ .bpmn-icon-start-event-non-interrupting-condition:before { content: '\\e84a'; }
1584
+ .bpmn-icon-data-object:before { content: '\\e84b'; }
1585
+ .bpmn-icon-script-task:before { content: '\\e84c'; }
1586
+ .bpmn-icon-send-task:before { content: '\\e84d'; }
1587
+ .bpmn-icon-data-store:before { content: '\\e84e'; }
1588
+ .bpmn-icon-start-event-non-interrupting-escalation:before { content: '\\e84f'; }
1589
+ .bpmn-icon-intermediate-event-throw-message:before { content: '\\e850'; }
1590
+ .bpmn-icon-intermediate-event-catch-non-interrupting-multiple:before { content: '\\e851'; }
1591
+ .bpmn-icon-intermediate-event-catch-non-interrupting-signal:before { content: '\\e852'; }
1592
+ .bpmn-icon-intermediate-event-throw-multiple:before { content: '\\e853'; }
1593
+ .bpmn-icon-start-event-non-interrupting-message:before { content: '\\e854'; }
1594
+ .bpmn-icon-ad-hoc-marker:before { content: '\\e855'; }
1595
+ .bpmn-icon-service-task:before { content: '\\e856'; }
1596
+ .bpmn-icon-task-none:before { content: '\\e857'; }
1597
+ .bpmn-icon-compensation-marker:before { content: '\\e858'; }
1598
+ .bpmn-icon-start-event-non-interrupting-multiple:before { content: '\\e859'; }
1599
+ .bpmn-icon-intermediate-event-throw-signal:before { content: '\\e85a'; }
1600
+ .bpmn-icon-intermediate-event-catch-non-interrupting-condition:before { content: '\\e85b'; }
1601
+ .bpmn-icon-participant:before { content: '\\e85c'; }
1602
+ .bpmn-icon-event-subprocess-expanded:before { content: '\\e85d'; }
1603
+ .bpmn-icon-lane-insert-below:before { content: '\\e85e'; }
1604
+ .bpmn-icon-space-tool:before { content: '\\e85f'; }
1605
+ .bpmn-icon-connection-multi:before { content: '\\e860'; }
1606
+ .bpmn-icon-lane:before { content: '\\e861'; }
1607
+ .bpmn-icon-lasso-tool:before { content: '\\e862'; }
1608
+ .bpmn-icon-lane-insert-above:before { content: '\\e863'; }
1609
+ .bpmn-icon-lane-divide-three:before { content: '\\e864'; }
1610
+ .bpmn-icon-lane-divide-two:before { content: '\\e865'; }
1611
+ .bpmn-icon-data-input:before { content: '\\e866'; }
1612
+ .bpmn-icon-data-output:before { content: '\\e867'; }
1613
+ .bpmn-icon-hand-tool:before { content: '\\e868'; }
1614
+ .bpmn-icon-group:before { content: '\\e869'; }
1615
+ .bpmn-icon-text-annotation:before { content: '\\e86b'; }
1616
+ .bpmn-icon-event-subprocess-collapsed:before { content: '\\e8c3'; }
1617
+ .bpmn-icon-transaction:before { content: '\\e8c4'; }
1618
+ .bpmn-icon-ad-hoc-subprocess:before { content: '\\e8c5'; }
1619
+ .bpmn-icon-screw-wrench:before { content: '\\e8db'; }
1620
+ .bpmn-icon-connection:before { content: '\\e8dc'; }
1621
+ .bpmn-icon-conditional-flow:before { content: '\\e8e0'; }
1622
+ .bpmn-icon-default-flow:before { content: '\\e8e1'; }
1623
+ .bpmn-canvas {
1624
+ /* Read by the canvas to detect styles that never arrived (diagnostic styles-missing). */
1625
+ --bpmn-canvas-styles: 1;
1626
+ position: relative;
1627
+ width: 100%;
1628
+ height: 100%;
1629
+ min-height: 0;
1630
+ outline: none;
1631
+ }
1632
+
1633
+ .bpmn-canvas:focus-visible {
1634
+ outline: 2px solid currentColor;
1635
+ outline-offset: -2px;
1636
+ }
1637
+
1638
+ .bpmn-canvas--readonly .djs-palette,
1639
+ .bpmn-canvas--readonly .djs-context-pad {
1640
+ display: none;
1641
+ }
1642
+
1643
+ /* Hidden only when the host asked for it and named its license (options.watermark). */
1644
+ .bpmn-canvas[data-bpmn-canvas-watermark="hidden"] .bjs-powered-by {
1645
+ display: none !important;
1646
+ }
1647
+
1648
+ /*
1649
+ * Legend palette (profile "legend" only). Every rule is scoped to entries whose data-action starts
1650
+ * with "legend.", so the default palette of the "standard" profile is never touched.
1651
+ * Icons are monochrome masks authored for this package; the colour comes from
1652
+ * --bpmn-canvas-legend-icon (default #333333), the hover ring from --bpmn-canvas-legend-accent.
1653
+ * Action ids are listed in the README ("Legend profile").
1654
+ */
1655
+
1656
+ .djs-palette:has(.entry[data-action^="legend."]) {
1657
+ border-radius: 6px;
1658
+ }
1659
+
1660
+ .djs-palette .entry[data-action^="legend."] {
1661
+ width: 40px;
1662
+ height: 40px;
1663
+ line-height: 40px;
1664
+ margin: 2px;
1665
+ border-radius: 4px;
1666
+ transition: box-shadow 0.12s ease;
1667
+ }
1668
+
1669
+ .djs-palette .entry[data-action^="legend."]::before {
1670
+ content: "";
1671
+ display: block;
1672
+ width: 26px;
1673
+ height: 26px;
1674
+ margin: 7px;
1675
+ font: normal 0/0 sans-serif;
1676
+ background-color: var(--bpmn-canvas-legend-icon, #333333);
1677
+ -webkit-mask: var(--bpmn-canvas-legend-glyph) center / 26px 26px no-repeat;
1678
+ mask: var(--bpmn-canvas-legend-glyph) center / 26px 26px no-repeat;
1679
+ }
1680
+
1681
+ .djs-palette .entry[data-action^="legend."]:hover,
1682
+ .djs-palette .highlighted-entry[data-action^="legend."] {
1683
+ box-shadow: 0 0 0 2px var(--bpmn-canvas-legend-accent, #4a6fa5);
1684
+ }
1685
+
1686
+ .djs-palette .entry[data-action="legend.start"] {
1687
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-02.svg");
1688
+ }
1689
+
1690
+ .djs-palette .entry[data-action="legend.end"] {
1691
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-03.svg");
1692
+ }
1693
+
1694
+ .djs-palette .entry[data-action="legend.intermediate-event"] {
1695
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-04.svg");
1696
+ }
1697
+
1698
+ .djs-palette .entry[data-action="legend.task"] {
1699
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-05.svg");
1700
+ }
1701
+
1702
+ .djs-palette .entry[data-action="legend.subprocess"] {
1703
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-06.svg");
1704
+ }
1705
+
1706
+ .djs-palette .entry[data-action="legend.external-process"] {
1707
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-07.svg");
1708
+ }
1709
+
1710
+ .djs-palette .entry[data-action="legend.gateway-or"] {
1711
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-08.svg");
1712
+ }
1713
+
1714
+ .djs-palette .entry[data-action="legend.gateway-and"] {
1715
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-09.svg");
1716
+ }
1717
+
1718
+ .djs-palette .entry[data-action="legend.data-input"] {
1719
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-10.svg");
1720
+ }
1721
+
1722
+ .djs-palette .entry[data-action="legend.data-output"] {
1723
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-11.svg");
1724
+ }
1725
+
1726
+ .djs-palette .entry[data-action="legend.external-input"] {
1727
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-12.svg");
1728
+ }
1729
+
1730
+ .djs-palette .entry[data-action="legend.process-output"] {
1731
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-13.svg");
1732
+ }
1733
+
1734
+ .djs-palette .entry[data-action="legend.document"] {
1735
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-14.svg");
1736
+ }
1737
+
1738
+ .djs-palette .entry[data-action="legend.application"] {
1739
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-15.svg");
1740
+ }
1741
+
1742
+ .djs-palette .entry[data-action="legend.lane"] {
1743
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-16.svg");
1744
+ }
1745
+
1746
+ .djs-palette .entry[data-action="legend.sequence-flow"] {
1747
+ --bpmn-canvas-legend-glyph: url("__ASSET__inline-17.svg");
1748
+ }
1749
+
1750
+ /*
1751
+ * Navigation markers (collapsed sub-process [+], external process icon). diagram-js draws a transparent
1752
+ * hit rectangle over the whole element; without these rules it swallows every click and a marker can never
1753
+ * be the event target. With them, a click on the body targets the body, a click on the marker targets the marker.
1754
+ */
1755
+ .legend-marker {
1756
+ cursor: pointer;
1757
+ pointer-events: all;
1758
+ }
1759
+
1760
+ .djs-element:has(.legend-marker) > .djs-hit-all {
1761
+ pointer-events: none;
1762
+ }
1763
+
1764
+ .djs-element:has(.legend-marker) > .djs-visual,
1765
+ .djs-element:has(.legend-marker) > .djs-visual > * {
1766
+ pointer-events: auto;
1767
+ }
1768
+
1769
+ .djs-element:has(.legend-marker) > .djs-visual > .legend-task {
1770
+ cursor: move;
1771
+ }
1772
+
1773
+ /*
1774
+ * Token-driven palette colours. The variables --bpmn-canvas-icon-<group> are set per canvas instance from the
1775
+ * profile tokens (see src/internal/palette.ts). Without tokens every rule falls back to the neutral values
1776
+ * below, so a canvas without tokens renders as before. The standard profile is never touched: the upstream
1777
+ * rules are scoped to .bpmn-canvas--colored, which only the colored profile (with tokens) adds.
1778
+ */
1779
+
1780
+ .djs-palette .entry[data-action="legend.start"]::before {
1781
+ background-color: var(--bpmn-canvas-icon-start, var(--bpmn-canvas-legend-icon, #333333));
1782
+ }
1783
+
1784
+ .djs-palette .entry[data-action="legend.end"]::before {
1785
+ background-color: var(--bpmn-canvas-icon-end, var(--bpmn-canvas-legend-icon, #333333));
1786
+ }
1787
+
1788
+ .djs-palette .entry[data-action="legend.intermediate-event"]::before {
1789
+ background-color: var(--bpmn-canvas-icon-intermediate, var(--bpmn-canvas-legend-icon, #333333));
1790
+ }
1791
+
1792
+ .djs-palette .entry[data-action="legend.task"]::before {
1793
+ background-color: var(--bpmn-canvas-icon-task, var(--bpmn-canvas-legend-icon, #333333));
1794
+ }
1795
+
1796
+ .djs-palette .entry[data-action="legend.subprocess"]::before {
1797
+ background-color: var(--bpmn-canvas-icon-subprocess, var(--bpmn-canvas-legend-icon, #333333));
1798
+ }
1799
+
1800
+ .djs-palette .entry[data-action="legend.external-process"]::before {
1801
+ background-color: var(--bpmn-canvas-icon-external, var(--bpmn-canvas-legend-icon, #333333));
1802
+ }
1803
+
1804
+ .djs-palette .entry[data-action="legend.gateway-or"]::before {
1805
+ background-color: var(--bpmn-canvas-icon-gateway, var(--bpmn-canvas-legend-icon, #333333));
1806
+ }
1807
+
1808
+ .djs-palette .entry[data-action="legend.gateway-and"]::before {
1809
+ background-color: var(--bpmn-canvas-icon-gateway, var(--bpmn-canvas-legend-icon, #333333));
1810
+ }
1811
+
1812
+ .djs-palette .entry[data-action="legend.data-input"]::before {
1813
+ background-color: var(--bpmn-canvas-icon-data, var(--bpmn-canvas-legend-icon, #333333));
1814
+ }
1815
+
1816
+ .djs-palette .entry[data-action="legend.data-output"]::before {
1817
+ background-color: var(--bpmn-canvas-icon-data, var(--bpmn-canvas-legend-icon, #333333));
1818
+ }
1819
+
1820
+ .djs-palette .entry[data-action="legend.external-input"]::before {
1821
+ background-color: var(--bpmn-canvas-icon-external, var(--bpmn-canvas-legend-icon, #333333));
1822
+ }
1823
+
1824
+ .djs-palette .entry[data-action="legend.process-output"]::before {
1825
+ background-color: var(--bpmn-canvas-icon-external, var(--bpmn-canvas-legend-icon, #333333));
1826
+ }
1827
+
1828
+ .djs-palette .entry[data-action="legend.document"]::before {
1829
+ background-color: var(--bpmn-canvas-icon-document, var(--bpmn-canvas-legend-icon, #333333));
1830
+ }
1831
+
1832
+ .djs-palette .entry[data-action="legend.application"]::before {
1833
+ background-color: var(--bpmn-canvas-icon-application, var(--bpmn-canvas-legend-icon, #333333));
1834
+ }
1835
+
1836
+ .djs-palette .entry[data-action="legend.lane"]::before {
1837
+ background-color: var(--bpmn-canvas-icon-lane, var(--bpmn-canvas-legend-icon, #333333));
1838
+ }
1839
+
1840
+ .djs-palette .entry[data-action="legend.sequence-flow"]::before {
1841
+ background-color: var(--bpmn-canvas-icon-flow, var(--bpmn-canvas-legend-icon, #333333));
1842
+ }
1843
+
1844
+ .bpmn-canvas--colored .djs-palette .entry[data-action="create.start-event"] {
1845
+ color: var(--bpmn-canvas-icon-start);
1846
+ }
1847
+
1848
+ .bpmn-canvas--colored .djs-palette .entry[data-action="create.intermediate-event"] {
1849
+ color: var(--bpmn-canvas-icon-intermediate);
1850
+ }
1851
+
1852
+ .bpmn-canvas--colored .djs-palette .entry[data-action="create.end-event"] {
1853
+ color: var(--bpmn-canvas-icon-end);
1854
+ }
1855
+
1856
+ .bpmn-canvas--colored .djs-palette .entry[data-action="create.exclusive-gateway"] {
1857
+ color: var(--bpmn-canvas-icon-gateway);
1858
+ }
1859
+
1860
+ .bpmn-canvas--colored .djs-palette .entry[data-action="create.task"] {
1861
+ color: var(--bpmn-canvas-icon-task);
1862
+ }
1863
+
1864
+ .bpmn-canvas--colored .djs-palette .entry[data-action="create.data-object"] {
1865
+ color: var(--bpmn-canvas-icon-data);
1866
+ }
1867
+
1868
+ .bpmn-canvas--colored .djs-palette .entry[data-action="create.data-store"] {
1869
+ color: var(--bpmn-canvas-icon-data);
1870
+ }
1871
+
1872
+ .bpmn-canvas--colored .djs-palette .entry[data-action="create.subprocess-expanded"] {
1873
+ color: var(--bpmn-canvas-icon-subprocess);
1874
+ }
1875
+
1876
+ .bpmn-canvas--colored .djs-palette .entry[data-action="create.participant-expanded"] {
1877
+ color: var(--bpmn-canvas-icon-pool);
1878
+ }
1879
+
1880
+
1881
+ /* Workshop primitives: menu and tabs. Themed by custom properties; neutral light defaults,
1882
+ a dark set under prefers-color-scheme, and system colours in forced-colors mode. */
1883
+ .bpmn-workshop,
1884
+ .bpmn-workshop-menu,
1885
+ .bpmn-workshop-tabs {
1886
+ --bpmn-workshop-bg: #ffffff;
1887
+ --bpmn-workshop-fg: #1f2328;
1888
+ --bpmn-workshop-muted: #57606a;
1889
+ --bpmn-workshop-border: #8c959f;
1890
+ --bpmn-workshop-accent: #0550ae;
1891
+ --bpmn-workshop-focus: #0969da;
1892
+ --bpmn-workshop-hover: #eaeef2;
1893
+ --bpmn-workshop-radius: 6px;
1894
+ }
1895
+
1896
+ @media (prefers-color-scheme: dark) {
1897
+ .bpmn-workshop,
1898
+ .bpmn-workshop-menu,
1899
+ .bpmn-workshop-tabs {
1900
+ --bpmn-workshop-bg: #1f2328;
1901
+ --bpmn-workshop-fg: #e6edf3;
1902
+ --bpmn-workshop-muted: #9da7b3;
1903
+ --bpmn-workshop-border: #6e7681;
1904
+ --bpmn-workshop-accent: #79c0ff;
1905
+ --bpmn-workshop-focus: #58a6ff;
1906
+ --bpmn-workshop-hover: #30363d;
1907
+ }
1908
+ }
1909
+
1910
+ .bpmn-workshop-menu {
1911
+ position: relative;
1912
+ display: inline-block;
1913
+ font: inherit;
1914
+ color: var(--bpmn-workshop-fg);
1915
+ }
1916
+
1917
+ .bpmn-workshop-menu__trigger {
1918
+ display: inline-flex;
1919
+ align-items: center;
1920
+ gap: 4px;
1921
+ font: inherit;
1922
+ color: var(--bpmn-workshop-fg);
1923
+ background: var(--bpmn-workshop-bg);
1924
+ border: 1px solid var(--bpmn-workshop-border);
1925
+ border-radius: var(--bpmn-workshop-radius);
1926
+ padding: 4px 8px;
1927
+ cursor: pointer;
1928
+ }
1929
+
1930
+ .bpmn-workshop-menu__trigger:disabled {
1931
+ color: var(--bpmn-workshop-muted);
1932
+ cursor: not-allowed;
1933
+ opacity: 0.7;
1934
+ }
1935
+
1936
+ .bpmn-workshop-menu__popup {
1937
+ position: absolute;
1938
+ top: calc(100% + 2px);
1939
+ left: 0;
1940
+ z-index: 20;
1941
+ min-width: 100%;
1942
+ width: max-content;
1943
+ max-width: min(320px, 90vw);
1944
+ padding: 4px;
1945
+ background: var(--bpmn-workshop-bg);
1946
+ color: var(--bpmn-workshop-fg);
1947
+ border: 1px solid var(--bpmn-workshop-border);
1948
+ border-radius: var(--bpmn-workshop-radius);
1949
+ box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);
1950
+ }
1951
+
1952
+ .bpmn-workshop-menu__popup[hidden] {
1953
+ display: none;
1954
+ }
1955
+
1956
+ .bpmn-workshop-menu__item {
1957
+ display: flex;
1958
+ align-items: flex-start;
1959
+ gap: 6px;
1960
+ width: 100%;
1961
+ font: inherit;
1962
+ text-align: left;
1963
+ color: inherit;
1964
+ background: transparent;
1965
+ border: 0;
1966
+ border-radius: calc(var(--bpmn-workshop-radius) - 2px);
1967
+ padding: 6px 8px;
1968
+ cursor: pointer;
1969
+ }
1970
+
1971
+ .bpmn-workshop-menu__item:hover,
1972
+ .bpmn-workshop-menu__item:focus {
1973
+ background: var(--bpmn-workshop-hover);
1974
+ }
1975
+
1976
+ .bpmn-workshop-menu__item[aria-disabled="true"] {
1977
+ color: var(--bpmn-workshop-muted);
1978
+ cursor: not-allowed;
1979
+ }
1980
+
1981
+ .bpmn-workshop-menu__mark {
1982
+ display: inline-flex;
1983
+ width: 16px;
1984
+ flex: none;
1985
+ color: var(--bpmn-workshop-accent);
1986
+ }
1987
+
1988
+ .bpmn-workshop-menu__text {
1989
+ display: flex;
1990
+ flex-direction: column;
1991
+ min-width: 0;
1992
+ }
1993
+
1994
+ .bpmn-workshop-menu__desc {
1995
+ font-size: 0.85em;
1996
+ color: var(--bpmn-workshop-muted);
1997
+ white-space: normal;
1998
+ }
1999
+
2000
+ .bpmn-workshop-tabs {
2001
+ display: flex;
2002
+ gap: 2px;
2003
+ min-width: 0;
2004
+ overflow-x: auto;
2005
+ border-bottom: 1px solid var(--bpmn-workshop-border);
2006
+ font: inherit;
2007
+ color: var(--bpmn-workshop-fg);
2008
+ }
2009
+
2010
+ .bpmn-workshop-tabs__tab {
2011
+ flex: 0 1 auto;
2012
+ min-width: 0;
2013
+ max-width: 220px;
2014
+ font: inherit;
2015
+ color: var(--bpmn-workshop-muted);
2016
+ background: transparent;
2017
+ border: 0;
2018
+ border-bottom: 2px solid transparent;
2019
+ border-radius: var(--bpmn-workshop-radius) var(--bpmn-workshop-radius) 0 0;
2020
+ padding: 6px 10px;
2021
+ cursor: pointer;
2022
+ }
2023
+
2024
+ .bpmn-workshop-tabs__tab[aria-selected="true"] {
2025
+ color: var(--bpmn-workshop-fg);
2026
+ border-bottom-color: var(--bpmn-workshop-accent);
2027
+ font-weight: 600;
2028
+ }
2029
+
2030
+ .bpmn-workshop-tabs__tab:hover {
2031
+ background: var(--bpmn-workshop-hover);
2032
+ }
2033
+
2034
+ .bpmn-workshop-tabs__label {
2035
+ display: block;
2036
+ overflow: hidden;
2037
+ text-overflow: ellipsis;
2038
+ white-space: nowrap;
2039
+ }
2040
+
2041
+ .bpmn-workshop-menu__trigger:focus-visible,
2042
+ .bpmn-workshop-menu__item:focus-visible,
2043
+ .bpmn-workshop-tabs__tab:focus-visible {
2044
+ outline: 2px solid var(--bpmn-workshop-focus);
2045
+ outline-offset: 1px;
2046
+ }
2047
+
2048
+ @media (forced-colors: active) {
2049
+ .bpmn-workshop-menu__trigger,
2050
+ .bpmn-workshop-menu__popup {
2051
+ border-color: CanvasText;
2052
+ }
2053
+ .bpmn-workshop-menu__item:focus,
2054
+ .bpmn-workshop-tabs__tab[aria-selected="true"] {
2055
+ forced-color-adjust: none;
2056
+ background: Highlight;
2057
+ color: HighlightText;
2058
+ }
2059
+ .bpmn-workshop-tabs {
2060
+ border-bottom-color: CanvasText;
2061
+ }
2062
+ }
2063
+
2064
+ /* Shell of the BPMN workshop: toolbar, buttons, notices, panel, canvas and the busy veil.
2065
+ Themed by the same custom properties as the primitives (see workshop.css). */
2066
+ .bpmn-workshop {
2067
+ --bw-bg: var(--bpmn-workshop-bg, #ffffff);
2068
+ --bw-fg: var(--bpmn-workshop-fg, #1f2328);
2069
+ --bw-border: var(--bpmn-workshop-border, #6b7280);
2070
+ --bw-muted: var(--bpmn-workshop-muted, #4b5563);
2071
+ --bw-accent: var(--bpmn-workshop-accent, #0b5cad);
2072
+ --bw-focus: var(--bpmn-workshop-focus, #0b5cad);
2073
+ display: flex;
2074
+ flex-direction: column;
2075
+ min-height: 0;
2076
+ width: 100%;
2077
+ height: 100%;
2078
+ background: var(--bw-bg);
2079
+ color: var(--bw-fg);
2080
+ font: inherit;
2081
+ }
2082
+
2083
+ .bpmn-workshop__toolbar {
2084
+ display: flex;
2085
+ flex-wrap: wrap;
2086
+ align-items: center;
2087
+ gap: 4px;
2088
+ padding: 4px 6px;
2089
+ border-bottom: 1px solid var(--bw-border);
2090
+ }
2091
+
2092
+ .bpmn-workshop__button {
2093
+ display: inline-flex;
2094
+ align-items: center;
2095
+ gap: 4px;
2096
+ min-height: 28px;
2097
+ min-width: 28px;
2098
+ padding: 2px 6px;
2099
+ border: 1px solid transparent;
2100
+ border-radius: var(--bpmn-workshop-radius, 6px);
2101
+ background: transparent;
2102
+ color: inherit;
2103
+ font: inherit;
2104
+ cursor: pointer;
2105
+ }
2106
+
2107
+ .bpmn-workshop__button:hover:not(:disabled) {
2108
+ border-color: var(--bw-border);
2109
+ background: color-mix(in srgb, var(--bw-fg) 8%, transparent);
2110
+ }
2111
+
2112
+ .bpmn-workshop__button:focus-visible {
2113
+ outline: 2px solid var(--bw-focus);
2114
+ outline-offset: 1px;
2115
+ }
2116
+
2117
+ .bpmn-workshop__button:disabled {
2118
+ opacity: 0.5;
2119
+ cursor: not-allowed;
2120
+ }
2121
+
2122
+ .bpmn-workshop__notices {
2123
+ display: flex;
2124
+ flex-direction: column;
2125
+ gap: 2px;
2126
+ padding: 4px 6px;
2127
+ border-bottom: 1px solid var(--bw-border);
2128
+ }
2129
+
2130
+ .bpmn-workshop__notice {
2131
+ display: flex;
2132
+ align-items: center;
2133
+ justify-content: space-between;
2134
+ gap: 8px;
2135
+ padding: 2px 6px;
2136
+ border-left: 3px solid var(--bw-accent);
2137
+ font-size: 0.9em;
2138
+ }
2139
+
2140
+ .bpmn-workshop__notice--error {
2141
+ border-left-color: #b42318;
2142
+ }
2143
+
2144
+ .bpmn-workshop__notice--warning {
2145
+ border-left-color: #a15c00;
2146
+ }
2147
+
2148
+ .bpmn-workshop__panel {
2149
+ position: relative;
2150
+ flex: 1 1 auto;
2151
+ min-height: 0;
2152
+ }
2153
+
2154
+ .bpmn-workshop__panel:focus-visible {
2155
+ outline: 2px solid var(--bw-focus);
2156
+ outline-offset: -2px;
2157
+ }
2158
+
2159
+ .bpmn-workshop__canvas {
2160
+ position: absolute;
2161
+ inset: 0;
2162
+ }
2163
+
2164
+ .bpmn-workshop__veil {
2165
+ position: absolute;
2166
+ inset: 0;
2167
+ display: flex;
2168
+ align-items: flex-start;
2169
+ justify-content: center;
2170
+ padding-top: 12px;
2171
+ background: color-mix(in srgb, var(--bw-bg) 55%, transparent);
2172
+ pointer-events: all;
2173
+ }
2174
+
2175
+ .bpmn-workshop__busy {
2176
+ padding: 4px 10px;
2177
+ border: 1px solid var(--bw-border);
2178
+ border-radius: 999px;
2179
+ background: var(--bw-bg);
2180
+ color: var(--bw-fg);
2181
+ font-size: 0.9em;
2182
+ }
2183
+
2184
+ /* While busy the palette is hidden and nothing can be picked. */
2185
+ .bpmn-workshop--busy .djs-palette,
2186
+ .bpmn-workshop--busy .djs-context-pad {
2187
+ display: none;
2188
+ }
2189
+
2190
+ @media (prefers-color-scheme: dark) {
2191
+ .bpmn-workshop {
2192
+ --bw-bg: var(--bpmn-workshop-bg, #0d1117);
2193
+ --bw-fg: var(--bpmn-workshop-fg, #e6edf3);
2194
+ --bw-border: var(--bpmn-workshop-border, #8b949e);
2195
+ --bw-muted: var(--bpmn-workshop-muted, #9aa4ae);
2196
+ --bw-accent: var(--bpmn-workshop-accent, #58a6ff);
2197
+ --bw-focus: var(--bpmn-workshop-focus, #58a6ff);
2198
+ }
2199
+ }
2200
+ `,L=new WeakSet,R=new Map;function z(e){let t=e?.href??``,n=R.get(t);return n===void 0&&(n=I.split(F).map((t,n)=>{if(n===0)return t;let r=/^inline-\d{2}\.svg/.exec(t)?.[0];if(!r)throw Error(`unknown inline asset in the generated CSS`);return G(r,e)+t.slice(r.length)}).join(``),R.set(t,n)),n}var B=`data-bpmn-canvas-font`,V=`data-bpmn-canvas-styles`;function H(e){let t=t=>e?new URL(`bpmn-font/font/${t}`,e).href:``;return`@font-face{font-family:'bpmn';src:url('${e?t(`bpmn.woff2`):new URL(`/assets/bpmn-DaJ2be00.woff2`,``+import.meta.url).href}') format('woff2'),url('${e?t(`bpmn.woff`):new URL(`/assets/bpmn-DaGVGZ7K.woff`,``+import.meta.url).href}') format('woff'),url('${e?t(`bpmn.ttf`):new URL(`/assets/bpmn-CZlEAdL6.ttf`,``+import.meta.url).href}') format('truetype');font-weight:normal;font-style:normal;}`}function U(e){let t=new URL(e);if(!/^(https?|file):$/.test(t.protocol))throw Error(`assetBase must be an absolute http(s) URL, got ${e}`);if(t.search||t.hash)throw Error(`assetBase must name a directory, without query or fragment, got ${e}`);return t.pathname.endsWith(`/`)||(t.pathname+=`/`),t}function W(e){return e?new URL(`bpmn-font/font/bpmn.woff2`,e).href:new URL(`/assets/bpmn-DaJ2be00.woff2`,``+import.meta.url).href}function G(e,t){if(t)return new URL(`inline/${e}`,t).href;let n=P()[e];if(!n)throw Error(`unknown inline asset ${e}`);return n}function K(e,t,n,r){let i=(e.ownerDocument??e).createElement(`style`);i.setAttribute(t,``),r&&i.setAttribute(`nonce`,r),i.textContent=n,e.appendChild(i)}function q(e,t,n){let r=e.getRootNode(),i=e.ownerDocument;L.has(i)||(L.add(i),i.head.querySelector(`style[${B}]`)||K(i.head,B,H(n),t));let a=r instanceof ShadowRoot?r:i.head;L.has(a)||(L.add(a),(a instanceof ShadowRoot||!i.head.querySelector(`style[${V}]`))&&K(a,V,z(n),t))}var se=.85,J=24;function ce(e){if(e.length===0)return null;let t=1/0,n=1/0,r=-1/0,i=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),i=Math.max(i,a.y+a.height);return{x:t,y:n,width:r-t,height:i-n}}var le=new Set([`bpmn:Participant`,`bpmn:Lane`,`label`]);function ue(e){let t=e.find(e=>e.type===`bpmn:StartEvent`);if(t)return t;let n=e.filter(e=>!le.has(e.type));return n.length===0?null:n.reduce((e,t)=>t.x<e.x||t.x===e.x&&t.y<e.y?t:e)}function de(e,t,n=0,r=!1){let i=ce(e),a=t.width-n-48;if(!i||a<=0||t.height<=0)return null;let o=Math.min(a/(i.width+2*J),t.height/(i.height+2*J));if(r||o>=.6){let e=Math.min(o,1),r=t.width/e,a=t.height/e;return{mode:`fit`,scale:e,viewbox:{x:i.x-J-n/e,y:i.y+i.height/2-a/2,width:r,height:a}}}let s=se,c=t.width/s,l=t.height/s,u=n/s,d=ue(e)??i,f=i.x-J-u;d.x+d.width>f+u+(c-u)*.5&&(f=d.x-u-(c-u)*.2);let p=Math.max(i.y-J,d.y+d.height/2-l/3);return p=Math.min(p,Math.max(i.y-J,i.y+i.height+J-l)),{mode:`anchor`,viewbox:{x:f,y:p,width:c,height:l},scale:s}}function Y(){let e=Error(`Operation aborted: superseded or canvas destroyed`);return e.name=`AbortError`,e}var fe=`.bjs-drilldown, [data-marker='sub-process'], [data-marker='process-icon'], .legend-marker`,pe={standard:56,legend:112,colored:56},me=1.15,he=.87,ge=.2,X=4,_e=class{ready;instanceId=ie();root;host;options;modeler;_state=`loading`;destroyed=!1;epoch=0;navSeq=0;queue=Promise.resolve();loading=0;touched=!1;inputXml=``;baseRevision;revisionCounter=0;lastRevision;activeId;diagrams=[];planeIds=new Map;diagnostics=[];hostReadOnly;lossyGate=!1;inLayout=!1;wheelListener;wheelCapture=!1;drilldownListener;abortListener;profileId;tokens;fitMode;fittedOnce=!1;resizeObserver;lastSize=``;lastHistory=``;watermarkRefusal;assetProblems=[];assetBase;assetsChecked=!1;history={past:[],future:[]};capturing=!1;constructor(e,t){this.host=e,this.options=t,this.hostReadOnly=t.readOnly===!0,this.profileId=t.profile??`standard`,this.tokens=t.profile===`colored`?t.coloredTokens:t.legendTokens,this.fitMode=t.fitMode??`readable`,this.baseRevision=t.revision,this.root=e.ownerDocument.createElement(`div`),this.root.className=`bpmn-canvas`,this.root.dataset.bpmnCanvasInstance=this.instanceId,t.watermark?.hidden===!0&&(String(t.watermark.license??``).trim()===``?this.watermarkRefusal={code:`watermark-refused`,severity:`warning`,message:`The bpmn.io logo stays visible: hiding it needs watermark.license, the reference of the license that allows it.`}:this.root.dataset.bpmnCanvasWatermark=`hidden`),e.appendChild(this.root);let n=[];if(t.assetBase!==void 0)try{this.assetBase=U(t.assetBase)}catch(e){n.push({code:`asset-load-failed`,severity:`error`,message:`assetBase is not usable (${Q(e)}); fonts and images are looked up next to the bundle instead.`})}if((t.styles??`auto`)===`auto`)try{q(e,t.styleNonce,this.assetBase)}catch(e){n.push({code:`styles-missing`,severity:`error`,message:`The canvas styles could not be installed (${Q(e)}). Set assetBase to the absolute URL of the package's dist/assets/ directory.`})}t.signal&&(t.signal.aborted?this.destroy():(this.abortListener=()=>this.destroy(),t.signal.addEventListener(`abort`,this.abortListener,{once:!0})));let r=++this.epoch;if(this.queue=this.init(),this.watermarkRefusal){let e=this.watermarkRefusal;Promise.resolve().then(()=>{this.destroyed||this.emit(e)})}for(let e of n)Promise.resolve().then(()=>this.reportAsset(e));let i=t.xml===void 0?this.queue:this.enqueue(r,()=>this.applyXml(t.xml,t.revision,r));this.ready=i.then(()=>void 0,()=>void 0)}get state(){return this._state}setState(e){this._state!==e&&(this._state=e,this.options.onStateChange?.(e))}emit(e){this.options.onDiagnostic?.(e)}reportAsset(e){if(this.destroyed)return;this.assetProblems.push(e),this.emit(e);let t=this.root.ownerDocument,n=this.root.querySelector(`:scope > .bpmn-canvas__asset-notice`);n||(n=t.createElement(`div`),n.className=`bpmn-canvas__asset-notice`,n.setAttribute(`role`,`alert`),Object.assign(n.style,{position:`absolute`,left:`8px`,right:`8px`,top:`8px`,zIndex:`10`,pointerEvents:`none`,padding:`8px 10px`,background:`#fff4e5`,color:`#5f3700`,border:`1px solid #e0a050`,borderRadius:`4px`,font:`13px/1.4 system-ui, sans-serif`}),this.root.style.position=`relative`,this.root.append(n));let r=t.createElement(`div`);r.textContent=`BPMN canvas: ${e.message}`,n.append(r),this.root.getBoundingClientRect().height<64&&(this.root.style.minHeight=`120px`)}scheduleAssetCheck(){this.assetsChecked||(this.assetsChecked=!0,this.checkAssets().catch(()=>void 0))}async checkAssets(){let e=this.root.ownerDocument,t=e.defaultView,n=e.fonts;if(!t||!n)return;let r=this.options.styles===`external`,i=()=>t.getComputedStyle(this.root).getPropertyValue(`--bpmn-canvas-styles`).trim()===`1`;if(i()||await ye(t,5e3),this.destroyed||this.assetProblems.some(e=>e.code===`styles-missing`))return;if(!i()){this.reportAsset({code:`styles-missing`,severity:`error`,message:r?`the stylesheet is not applied: load styles.css from the package, or use styles: "auto".`:`the styles are not applied: a Content-Security-Policy may block them (pass styleNonce).`});return}let a=!1;try{let e=await n.load(`14px bpmn`);a=e.length>0&&e.every(e=>e.status===`loaded`)}catch{a=!1}if(this.destroyed)return;let o=r?`next to styles.css`:this.assetBase?`under ${this.assetBase.href}`:`next to the bundle`;if(!a){let e=``;try{e=r?``:W(this.assetBase)}catch{}this.reportAsset({code:`asset-load-failed`,severity:`error`,message:`the BPMN icon font did not load ${e?`from ${e}`:o}, so palette and marker icons are missing. Set assetBase, or allow it in font-src.`})}if(r)return;let s=``;try{s=G(`inline-01.svg`,this.assetBase)}catch{}let c=s!==``&&await be(t,s,8e3);this.destroyed||c||this.reportAsset({code:`asset-load-failed`,severity:`error`,message:`the images did not load ${s?`from ${s}`:o}, so palette icons are missing. Set assetBase, or allow it in img-src.`})}assertLive(e){if(this.destroyed||e!==this.epoch)throw Y()}enqueue(e,t){let n=this.queue.then(()=>(this.assertLive(e),t()));return this.queue=n.then(()=>void 0,()=>void 0),n.catch(()=>void 0),n}tokensFor(e){return this.tokens}async init(){try{let[e,t,n]=await Promise.all([D(),O(this.profileId,this.tokensFor(this.profileId)),this.layoutModules()]);if(this.destroyed)return;this.createModeler(e,t,n),this.setupResizeObserver()}catch(e){if(this.destroyed)return;let t={code:`import-failed`,severity:`error`,message:`Engine failed to load: ${String(e?.message??e)}`};this.diagnostics=[t],this.setState(`error`),this.emit(t)}}createModeler(e,t,n){let r=this.options.zoomLimits,i=new e.Modeler({container:this.root,additionalModules:[N,M,...t.modelerModules,...n],bpmnCanvas:re(this.instanceId,t,this.options.paletteColumns),...r?{zoomScroll:{...r.min===void 0?{}:{minZoom:r.min},...r.max===void 0?{}:{maxZoom:r.max}}}:{}});this.modeler=i;let a=i.get(`eventBus`);return a.on(`commandStack.changed`,e=>this.onStackChanged(e.trigger)),a.on(`element.click`,e=>this.onElementClick(e)),a.on(`root.set`,e=>this.onRootSet(e.element)),a.on(`keyboard.keydown`,2e3,e=>{let t=e.keyEvent;if(!t)return;let n=i.get(`commandStack`);if(h(t)&&!n.canUndo()&&this.history.past.length>0)return this.undo(),!0;if(g(t)&&!n.canRedo()&&this.history.future.length>0)return this.redo(),!0}),this.setupDrilldown(i),this.setupWheel(i),this.applyReadOnly(),i}async layoutModules(){try{return[(await e(()=>import(`./layout-T3X333Za.js`),[])).BpmnCanvasLayoutModule]}catch{return[]}}removeWheel(){this.wheelListener&&this.root.removeEventListener(`wheel`,this.wheelListener,{capture:this.wheelCapture}),this.wheelListener=void 0}setupWheel(e){this.removeWheel();let t=this.options.wheel??`zoom`;if(t===`zoom`)return;let n=e.get(`zoomScroll`);if(t===`page-scroll`){if(!n)return;n.toggle(!1),this.wheelListener=e=>{if(!e.ctrlKey&&!e.metaKey)return;e.preventDefault();let t=this.root.getBoundingClientRect();n.stepZoom(e.deltaY<0?1:-1,{x:e.clientX-t.left,y:e.clientY-t.top})},this.wheelCapture=!1,this.root.addEventListener(`wheel`,this.wheelListener,{passive:!1})}else this.wheelListener=e=>{if(e.ctrlKey||e.metaKey||e.deltaY===0)return;e.preventDefault(),e.stopPropagation();let t=this.root.getBoundingClientRect();this.zoomBy(e.deltaY<0?me:he,{x:e.clientX-t.left,y:e.clientY-t.top})},this.wheelCapture=!0,this.root.addEventListener(`wheel`,this.wheelListener,{passive:!1,capture:!0})}setupResizeObserver(){typeof ResizeObserver<`u`&&(this.resizeObserver=new ResizeObserver(([e])=>{let t=e?.contentRect;if(this.destroyed||!t||t.width===0||t.height===0)return;let n=`${Math.round(t.width)}x${Math.round(t.height)}`;n!==this.lastSize&&(this.lastSize=n,this.modeler&&this.diagrams.length!==0&&(this.modeler.get(`canvas`).resized(),(!this.fittedOnce||this.fitMode===`whole`)&&this.applyFit(this.fitMode)))}),this.resizeObserver.observe(this.root))}removeDrilldown(){this.drilldownListener&&this.root.removeEventListener(`click`,this.drilldownListener,{capture:!0}),this.drilldownListener=void 0}setupDrilldown(e){this.removeDrilldown(),(this.options.drilldown??`native`)===`event`&&(this.drilldownListener=t=>{let n=t.target?.closest?.(`.bjs-drilldown`);if(!n)return;t.preventDefault(),t.stopPropagation();let r=n.closest(`[data-container-id]`)?.getAttribute(`data-container-id`),i=r?e.get(`elementRegistry`).get(r):void 0;i&&this.onElementClick({element:i,originalEvent:t})},this.root.addEventListener(`click`,this.drilldownListener,{capture:!0}))}onRootSet(e){if(this.destroyed||this.loading>0||!this.modeler)return;let t=e?.businessObject?.id,n=[...this.planeIds].find(([,e])=>e===t)?.[0];n&&n!==this.activeId&&(this.activeId=n,this.resetHistory(),this.options.onChange?.({revision:this.lastRevision??`${this.instanceId}:${this.revisionCounter}`,baseRevision:this.baseRevision,cause:`diagram-switch`,diagramId:n}))}onElementClick(e){let t=e.element,n=t?.businessObject;if(!t||!n||!t.parent||!this.options.onElementClick)return;let r=e.originalEvent?.target,i=typeof n.calledElement==`string`&&n.calledElement?n.calledElement:void 0;this.options.onElementClick({id:t.id,type:t.type,name:typeof n.name==`string`?n.name:``,...i===void 0?{}:{calledElement:i},marker:!!r?.closest?.(fe)})}emitHistory(){if(this.destroyed||this.capturing||!this.options.onHistoryChange)return;let e={canUndo:this.canUndo(),canRedo:this.canRedo()},t=`${e.canUndo}${e.canRedo}`;t!==this.lastHistory&&(this.lastHistory=t,this.options.onHistoryChange(e))}onStackChanged(e){if(this.destroyed||this.capturing||(this.loading===0&&e===`execute`&&(this.history.future=[]),this.emitHistory(),this.loading>0||e===`clear`||!this.activeId))return;this.touched=!0;let t=this.inLayout?`layout`:e===`undo`?`undo`:e===`redo`?`redo`:`edit`;this.lastRevision=`${this.instanceId}:${++this.revisionCounter}`,this.options.onChange?.({revision:this.lastRevision,baseRevision:this.baseRevision,cause:t,diagramId:this.activeId})}isEffectivelyReadOnly(){return this.hostReadOnly||this.lossyGate}applyReadOnly(){let e=this.isEffectivelyReadOnly();this.root.classList.toggle(`bpmn-canvas--readonly`,e),this.modeler?.get(`bpmnCanvasReadOnly`)?.setReadOnly(e)}async applyXml(e,t,n){let r=this.modeler;if(!r)return{applied:!1,reason:`invalid`};this.loading++;try{let i=[];v(e)&&i.push({code:`comments-present`,severity:`warning`,destructive:!0,message:`XML comments are dropped on save.`});let a;try{let t=await r.get(`moddle`).fromXML(e);a=t.rootElement,i.push(...y(t.warnings),...C(a))}catch(t){return this.reject(n,e,[{code:`invalid-xml`,severity:`error`,message:String(t?.message??t).split(`
2201
+ `)[0]??`invalid XML`}])}if(this.assertLive(n),(a.diagrams??[]).length===0)return this.reject(n,e,i);let o=this.activeId,s=o!==void 0&&(a.diagrams??[]).some(e=>e.id===o)?o:void 0;try{await r.importXML(e,s)}catch(t){return this.assertLive(n),this.setState(`error`),this.reject(n,e,[...i,{code:`import-failed`,severity:`error`,message:String(t?.message??t).split(`
2202
+ `)[0]??`import failed`}])}this.assertLive(n),this.inputXml=e,this.touched=!1,this.baseRevision=t,this.lastRevision=void 0,this.diagnostics=i;let c=(a.diagrams??[]).filter(e=>typeof e.id==`string`&&e.id!==``);this.diagrams=c.map(e=>({id:e.id,name:oe(e)})),this.planeIds=new Map(c.map(e=>[e.id,e.plane.bpmnElement?.id??``])),this.activeId=s??this.diagrams[0]?.id,this.history={past:[],future:[]},this.lossyGate=T(i)&&this.options.allowLossyEdit!==!0,this.applyReadOnly(),this.fittedOnce=!1,this.initialFit(),this.setState(`ready`),this.emitHistory();for(let e of i)this.emit(e);return this.scheduleAssetCheck(),this.lossyGate&&this.emit({code:`read-only-lossy`,severity:`warning`,message:`The document would lose content on save, so it is open read-only. Set allowLossyEdit to edit anyway.`}),{applied:!0}}finally{this.loading--}}reject(e,t,n){this.assertLive(e),this.diagrams.length===0&&(this.inputXml=t,this.diagnostics=n,this.setState(`error`));for(let e of n)this.emit(e);return{applied:!1,reason:`invalid`}}setXml(e,t={}){if(this.destroyed)return Promise.reject(Y());let n=t.revision;if(n!==void 0&&(n===this.baseRevision||n===this.lastRevision))return Promise.resolve({applied:!1,reason:`echo`});let r=++this.epoch;return this.enqueue(r,()=>this.applyXml(e,n,r))}async getXml(){let e=this.epoch;await this.queue,this.assertLive(e);let t=this.modeler;if(!t||this.diagrams.length===0)return this.inputXml;let n=t.get(`directEditing`);if(n?.isActive()&&n.complete(),!this.touched)return this.inputXml;let r;try{r=await this.saveLive(t,e)}catch(t){this.assertLive(e);let n={code:`save-failed`,severity:`error`,message:String(t?.message??t)};throw this.emit(n),t}return this.assertLive(e),r}getDiagrams(){return this.diagrams}getActiveDiagramId(){return this.activeId}selectDiagram(e){if(this.destroyed)return Promise.reject(Y());let t=this.epoch,n=++this.navSeq;return this.enqueue(t,async()=>{if(n!==this.navSeq)throw Y();let r=this.modeler;if(!r||!this.diagrams.some(t=>t.id===e)){let t=Error(`Unknown diagram id "${e}"`);throw t.name=`UnknownDiagramError`,t}if(e===this.activeId)return;let i=r.get(`directEditing`);i?.isActive()&&i.complete(),this.loading++;try{await r.open(e)}finally{this.loading--}if(this.assertLive(t),n!==this.navSeq)throw Y();this.activeId=e,this.history={past:[],future:[]},this.applyFit(this.fitMode),this.emitHistory(),this.options.onChange?.({revision:this.lastRevision??`${this.instanceId}:${this.revisionCounter}`,baseRevision:this.baseRevision,cause:`diagram-switch`,diagramId:e})})}getDiagnostics(){return[...this.watermarkRefusal?[this.watermarkRefusal]:[],...this.assetProblems,...this.diagnostics]}setReadOnly(e){this.destroyed||(this.hostReadOnly=e,this.applyReadOnly())}isReadOnly(){return this.isEffectivelyReadOnly()}getReadOnlyReason(){return this.hostReadOnly?`host`:this.lossyGate?`lossy`:void 0}initialFit(){let e=this.root.getBoundingClientRect();e.width>0&&e.height>0&&this.applyFit(this.fitMode)}applyFit(e,t){let n=this.modeler;if(this.destroyed||!n||this.diagrams.length===0)return;let r=n.get(`canvas`);try{let i=[];for(let e of n.get(`elementRegistry`).getAll())if(e.type!==`bpmn:Process`&&e.type!==`bpmn:Collaboration`){if(typeof e.x==`number`&&typeof e.y==`number`&&typeof e.width==`number`&&typeof e.height==`number`)i.push({x:e.x,y:e.y,width:e.width,height:e.height,type:e.type});else if(Array.isArray(e.waypoints))for(let t of e.waypoints)i.push({x:t.x,y:t.y,width:1,height:1,type:e.type})}let a=this.root.querySelector(`.djs-palette`)?.getBoundingClientRect(),o=this.root.getBoundingClientRect().left,s=a&&a.width>0?a.right-o+8:0,c=de(i,r.getSize(),t??Math.max(s,pe[this.profileId]),e===`whole`);c?r.viewbox(c.viewbox):r.zoom(`fit-viewport`,`auto`),this.fittedOnce=!0}catch{}}fit(e={}){this.applyFit(e.mode??`whole`,e.inset)}setFitMode(e){if(this.destroyed||(this.fitMode=e,!this.modeler||this.diagrams.length===0))return;let t=this.root.ownerDocument.defaultView,n=()=>{!this.destroyed&&this.modeler&&(this.modeler.get(`canvas`).resized(),this.applyFit(e))};t?.requestAnimationFrame?t.requestAnimationFrame(n):n()}zoomLimits(){return{min:this.options.zoomLimits?.min??ge,max:this.options.zoomLimits?.max??X}}getZoom(){let e=this.modeler&&this.diagrams.length>0?this.modeler.get(`canvas`).zoom():1;return typeof e==`number`?e:1}zoomTo(e,t=`auto`){if(this.destroyed||!this.modeler||this.diagrams.length===0)return;let{min:n,max:r}=this.zoomLimits();this.modeler.get(`canvas`).zoom(Math.min(r,Math.max(n,e)),t)}zoomBy(e,t=`auto`){this.zoomTo(this.getZoom()*e,t)}setProfile(e,t){if(this.destroyed)return Promise.reject(Y());let n=this.epoch;return this.enqueue(n,async()=>{let r;try{r=await this.prepareSwitch(n,e,t)}catch(e){throw this.assertLive(n),e}this.assertLive(n);let{engine:i,next:a,layout:o,old:s,hadDocument:c,xml:l,view:u,captured:d}=r;c&&(this.history={past:[...d.past,...this.history.past],future:d.future.length>0?d.future:this.history.future},this.capHistory()),this.loading++;try{this.removeWheel(),this.removeDrilldown(),s?.destroy(),this.modeler=void 0,this.profileId=e,this.tokens=t;let n=this.createModeler(i,a,o);if(c){if(await n.importXML(l,this.activeId),this.destroyed)throw Y();u&&n.get(`canvas`).viewbox({x:u.x,y:u.y,width:u.width,height:u.height})}}catch(e){throw this.destroyed||e?.name===`AbortError`?Y():(this.setState(`error`),this.emit({code:`import-failed`,severity:`error`,message:`Profile switch failed: ${String(e?.message??e)}`}),e)}finally{this.loading--}if(this.destroyed)throw Y();c&&this.activeId&&(this.inputXml=l,this.touched=!1,this.emitHistory(),this.options.onChange?.({revision:this.lastRevision??`${this.instanceId}:${this.revisionCounter}`,baseRevision:this.baseRevision,cause:`profile-switch`,diagramId:this.activeId}))})}async prepareSwitch(e,t,n){let[r,i,a]=await Promise.all([D(),O(t,n),this.layoutModules()]);this.assertLive(e);let o=this.modeler,s=!!o&&this.diagrams.length>0,c=this.inputXml,l,u={past:[],future:[]};if(o&&s){let t=o.get(`directEditing`);t?.isActive()&&t.complete(),this.touched&&(c=await this.saveLive(o,e)),this.assertLive(e),l=o.get(`canvas`).viewbox(),u=await this.captureHistory(o,e),this.assertLive(e)}return{engine:r,next:i,layout:a,old:o,hadDocument:s,xml:c,view:l,captured:u}}stack(){return this.modeler?.get(`commandStack`)}canUndo(){return(this.stack()?.canUndo()??!1)||this.history.past.length>0}canRedo(){return(this.stack()?.canRedo()??!1)||this.history.future.length>0}undo(){if(this.destroyed)return;let e=this.stack();e?.canUndo()?e.undo():this.history.past.length>0&&!this.isEffectivelyReadOnly()&&this.moveHistory(`undo`).catch(()=>void 0)}redo(){if(this.destroyed)return;let e=this.stack();e?.canRedo()?e.redo():this.history.future.length>0&&!this.isEffectivelyReadOnly()&&this.moveHistory(`redo`).catch(()=>void 0)}resetHistory(){(this.history.past.length!==0||this.history.future.length!==0)&&(this.history={past:[],future:[]},this.emitHistory())}capHistory(){let{past:e,future:t}=this.history;for(;e.length+t.length>Z;)e.length>=t.length?e.pop():t.pop()}async saveLive(e,t){let n;try{n=(await e.saveXML({format:!0})).xml}catch(e){throw this.assertLive(t),e}return this.assertLive(t),n}async captureHistory(e,t){let n=e.get(`commandStack`);if(!n.canUndo()&&!n.canRedo())return{past:[],future:[]};let r=e.get(`bpmnCanvasReadOnly`),i=r?.isReadOnly()??!1,a=()=>this.saveLive(e,t);this.capturing=!0,this.loading++,r?.setReadOnly(!1);let o=0;try{let e=[];for(;n.canUndo()&&e.length<Z;)n.undo(),o--,e.push(await a()),this.assertLive(t);for(;o<0;)n.redo(),o++;let r=[];for(;n.canRedo()&&r.length<Z;)n.redo(),o++,r.push(await a()),this.assertLive(t);for(;o>0;)n.undo(),o--;return{past:e,future:r}}finally{try{for(;!this.destroyed&&o<0;)n.redo(),o++;for(;!this.destroyed&&o>0;)n.undo(),o--}finally{r?.setReadOnly(i),this.loading--,this.capturing=!1}}}moveHistory(e){let t=this.epoch;return this.enqueue(t,async()=>{let n=this.modeler;if(!n||this.diagrams.length===0||this.isEffectivelyReadOnly())return;let r=e===`undo`?this.history.past[0]:this.history.future[0];if(r===void 0)return;let i=await this.saveLive(n,t);this.assertLive(t);let a=await this.captureHistory(n,t);this.assertLive(t);let o=n.get(`canvas`).viewbox();this.loading++;try{try{await n.importXML(r,this.activeId)}catch{this.assertLive(t),await n.importXML(r)}}finally{this.loading--}this.assertLive(t),n.get(`canvas`).viewbox({x:o.x,y:o.y,width:o.width,height:o.height}),e===`undo`?(this.history.past.shift(),this.history.future=[i,...a.future,...this.history.future]):(this.history.future.shift(),this.history.past=[i,...a.past,...this.history.past]),this.capHistory(),this.inputXml=r,this.touched=!1,this.lastRevision=`${this.instanceId}:${++this.revisionCounter}`,this.emitHistory(),this.activeId&&this.options.onChange?.({revision:this.lastRevision,baseRevision:this.baseRevision,cause:e,diagramId:this.activeId})})}autoLayout(){if(this.destroyed)return Promise.reject(Y());let e=this.epoch;return this.enqueue(e,async()=>{let t=this.modeler,n=t?.get(`bpmnCanvasLayout`);if(!t||!n||this.diagrams.length===0)return this.emit({code:`layout-unsupported`,severity:`warning`,message:`No document is displayed, so there is nothing to lay out.`}),{changed:0,skipped:[]};if(this.isEffectivelyReadOnly())return this.emit({code:`layout-unsupported`,severity:`warning`,message:`The canvas is read-only.`}),{changed:0,skipped:[]};this.inLayout=!0;try{let t=await n.run(()=>!this.destroyed&&e===this.epoch);return this.assertLive(e),(t.changed===0||t.skipped.length>0)&&this.emit({code:`layout-unsupported`,severity:`warning`,ids:t.skipped,message:t.changed===0?`Nothing could be laid out.`:`${t.skipped.length} element(s) were not placed.`}),t}catch(t){throw this.assertLive(e),t?.name===`AbortError`||this.emit({code:`layout-failed`,severity:`error`,message:String(t?.message??t)}),t}finally{this.inLayout=!1}})}destroy(){if(!this.destroyed){this.destroyed=!0,this.history={past:[],future:[]},this.epoch++,this.navSeq++,this.options.signal&&this.abortListener&&this.options.signal.removeEventListener(`abort`,this.abortListener),this.removeWheel(),this.removeDrilldown(),this.resizeObserver?.disconnect(),this.resizeObserver=void 0;try{this.modeler?.destroy()}finally{this.modeler=void 0,this.root.remove(),this.setState(`destroyed`)}}}};function ve(e,t={}){return new _e(e,t)}var Z=100;function Q(e){return e instanceof Error?e.message:String(e)}function ye(e,t){return e.document.readyState===`complete`?new Promise(t=>e.setTimeout(t,50)):new Promise(n=>{let r=()=>{e.removeEventListener(`load`,r),n()};e.addEventListener(`load`,r),e.setTimeout(r,t)})}function be(e,t,n){return new Promise(r=>{let i=new e.Image,a=e.setTimeout(()=>r(!1),n);i.onload=()=>{e.clearTimeout(a),r(!0)},i.onerror=()=>{e.clearTimeout(a),r(!1)},i.src=t})}function $(e){return{code:e.code,path:``,message:e.message,severity:e.severity===`error`?`error`:`warning`,source:`bpmn-canvas`,...e.ids===void 0?{}:{detail:{ids:e.ids}}}}async function xe(e,t,n,r){let i=new AbortController,a=ve(e,{xml:t.xml,readOnly:!0,styles:`auto`,signal:i.signal,...t.assetBase===void 0?{}:{assetBase:t.assetBase},...t.watermark===void 0?{}:{watermark:t.watermark},onDiagnostic:e=>n($(e))}),o=!1,s=()=>{o||(o=!0,r?.removeEventListener(`abort`,s),i.abort(),a.destroy())};r?.addEventListener(`abort`,s,{once:!0}),r?.aborted&&s();try{await a.ready}catch(e){throw s(),e}if(o)return s;for(let e of a.getDiagnostics())n($(e));return s}export{c as a,ee as c,p as d,g as f,s as i,m as l,h as m,r as n,l as o,d as p,o as r,xe as renderBpmn,f as s,n as t,u};