@sentropic/design-system-elements 0.1.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.
- package/LICENSE.THIRD-PARTY.md +44 -1
- package/README.md +123 -12
- package/catalog.json +401 -7
- package/dist/browser/chunks/{Modeler-BfAmwsmK.js → Modeler-D87tL_OJ.js} +4 -4
- package/dist/browser/chunks/Viewer-D9zjRrp2.js +4 -0
- package/dist/browser/chunks/bpmn-canvas-BevbP_6a.js +1 -0
- package/dist/browser/chunks/bpmn-mount-BhO_zb0S.js +2202 -0
- package/dist/browser/chunks/dist-DRauAwm2.js +6 -0
- package/dist/browser/chunks/{entropic-CM5BHERN.js → entropic-MwNVEq6w.js} +639 -0
- package/dist/browser/chunks/focus-renderer-BWm7DlQD.js +55 -0
- package/dist/browser/chunks/{forge-B8hrW4lA.js → forge-CzwO8Hbe.js} +639 -0
- package/dist/browser/chunks/layout-T3X333Za.js +1 -0
- package/dist/browser/elements.js +671 -6
- package/dist/browser/sri.json +52 -45
- package/dist/contracts/bar-chart.js +2 -2
- package/dist/contracts/decision-dossier.d.ts +4 -8
- package/dist/contracts/decision-dossier.js +8 -12
- package/dist/contracts/index.d.ts +1 -0
- package/dist/contracts/index.js +2 -0
- package/dist/contracts/time-series-chart.d.ts +49 -0
- package/dist/contracts/time-series-chart.js +37 -0
- package/dist/dossier/dossier-mount.js +845 -0
- package/dist/dossier/renderer/dossier.css +2 -0
- package/dist/element/bpmn-mount.d.ts +11 -0
- package/dist/element/bpmn-mount.js +56 -0
- package/dist/element/bpmn-types.d.ts +27 -0
- package/dist/element/bpmn-types.js +12 -0
- package/dist/element/bpmn.d.ts +10 -0
- package/dist/element/bpmn.js +39 -0
- package/dist/element/dom/dossier-mount.d.ts +25 -0
- package/dist/element/dom/dossier-review-mount.d.ts +25 -0
- package/dist/element/dom/dossier-review-state.svelte.d.ts +13 -0
- package/dist/element/dom/engines/bpmn-canvas.d.ts +11 -0
- package/dist/element/dom/engines/bpmn-canvas.js +11 -0
- package/dist/element/dom/engines/dossier-diagrams.d.ts +5 -0
- package/dist/element/dom/engines/dossier-evidence.d.ts +9 -0
- package/dist/element/dom/engines/dossier-styles.d.ts +21 -0
- package/dist/element/dom/engines/focus-renderer.d.ts +60 -0
- package/dist/element/dom/engines/focus-snapshot.d.ts +3 -0
- package/dist/element/dom/intents.d.ts +20 -0
- package/dist/element/markdown/minimal-markdown.d.ts +1 -2
- package/dist/element/markdown/minimal-markdown.js +19 -1
- package/dist/element/validator.d.ts +26 -0
- package/dist/element/validator.js +54 -0
- package/dist/focus-diagrams/diagram-layout.d.ts +140 -0
- package/dist/focus-diagrams/diagram-layout.js +190 -0
- package/dist/focus-diagrams/diagram-source.d.ts +11 -0
- package/dist/focus-diagrams/diagram-source.js +147 -0
- package/dist/focus-diagrams/dossier-views.d.ts +21 -0
- package/dist/focus-diagrams/dossier-views.js +57 -0
- package/dist/focus-diagrams/ecosystem.json +853 -0
- package/dist/focus-kit/index.html +13 -0
- package/dist/focus-kit/renderer/dossier.css +2 -0
- package/dist/focus-kit/renderer/dossier.js +845 -0
- package/dist/focus-kit-manifest.json +1 -0
- package/dist/focus-kit.d.ts +9 -0
- package/dist/focus-kit.js +30 -0
- package/dist/format-time-series-markdown.d.ts +5 -0
- package/dist/format-time-series-markdown.js +24 -0
- package/dist/generator/parity.js +6 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/ports/dossier-views.d.ts +3 -0
- package/dist/ports/dossier-views.js +3 -0
- package/dist/ports/focus.d.ts +0 -1
- package/dist/ports/types.d.ts +0 -1
- package/dist/shells/BarChart.html +8494 -0
- package/dist/shells/BarChart.js +8482 -0
- package/dist/shells/DecisionDossier.html +8502 -0
- package/dist/shells/DecisionDossier.js +8490 -0
- package/dist/shells/TimeSeriesChart.html +8475 -0
- package/dist/shells/TimeSeriesChart.js +8463 -0
- package/dist/shells/manifest.json +108 -0
- package/dist/structure/interpreter.d.ts +1 -1
- package/dist/structure/interpreter.js +14 -4
- package/dist/time-series.d.ts +13 -0
- package/dist/time-series.js +15 -0
- package/dist/validate/envelope.js +5 -1
- package/dist/validate/time-series.d.ts +5 -0
- package/dist/validate/time-series.js +28 -0
- package/fixtures/time-series-multi.json +46 -0
- package/fixtures/time-series-single.json +28 -0
- package/fixtures/time-series-thresholds.json +52 -0
- package/package.json +40 -6
- package/schemas/BarChart.v1.json +2 -2
- package/schemas/DecisionDossier.v1.json +155 -5
- package/schemas/TimeSeriesChart.v1.json +287 -0
- package/skill/SKILL.md +27 -0
- package/dist/browser/chunks/Viewer-eYLzc3fD.js +0 -4
- package/dist/browser/chunks/bpmn-canvas-DeAWdJFy.js +0 -2207
- package/dist/browser/chunks/dist-O6_2ByYB.js +0 -1
- package/dist/browser/chunks/focus-renderer-BgsZGo7n.js +0 -8
- package/dist/browser/chunks/layout-q0TR9-aY.js +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{E as e,_ as t,a as n,d as r,l as i,n as a,o,s,t as c,v as l,w as u}from"./dist-Co2MgHWm.js";var d=Object.defineProperty,f=(e,t)=>{let n={};for(var r in e)d(n,r,{get:e[r],enumerable:!0});return t||d(n,Symbol.toStringTag,{value:`Module`}),n};function p(){}p.prototype.get=function(e){return this.$model.properties.get(this,e)},p.prototype.set=function(e,t){this.$model.properties.set(this,e,t)};function m(e,t){this.model=e,this.properties=t}m.prototype.createType=function(e){var t=this.model,n=this.properties,r=Object.create(p.prototype);i(e.properties,function(e){!e.isMany&&e.default!==void 0&&(r[e.name]=e.default)}),n.defineModel(r,t),n.defineDescriptor(r,e);var o=e.ns.name;function s(e){n.define(this,`$type`,{value:o,enumerable:!0}),n.define(this,`$attrs`,{value:{}}),n.define(this,`$parent`,{writable:!0}),i(e,a(function(e,t){this.set(t,e)},this))}return s.prototype=r,s.hasType=r.$instanceOf=this.model.hasType,n.defineModel(s,t),n.defineDescriptor(s,e),s};var h=c(Object.create(null),{String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0}),g=c(Object.create(null),{String:function(e){return e},Boolean:function(e){return e===`true`},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}});function _(e,t){var n=g[e];return n?n(t):t}function v(e){return!!h[e]}function y(e){return!!g[e]}function b(e,t){var n=e.split(/:/),r,i;if(n.length===1)r=e,i=t;else if(n.length===2)r=n[1],i=n[0];else throw Error(`expected <prefix:localName> or <localName>, got `+e);return e=(i?i+`:`:``)+r,{name:e,prefix:i,localName:r}}function x(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName=Object.create(null),this.properties=[],this.propertiesByName=Object.create(null)}x.prototype.build=function(){return u(this,[`ns`,`name`,`allTypes`,`allTypesByName`,`properties`,`propertiesByName`,`bodyProperty`,`idProperty`])},x.prototype.addProperty=function(e,t,n){typeof t==`boolean`&&(n=t,t=void 0),this.addNamedProperty(e,n!==!1);var r=this.properties;t===void 0?r.push(e):r.splice(t,0,e)},x.prototype.replaceProperty=function(e,t,n){var r=e.ns,i=this.properties,a=this.propertiesByName,o=e.name!==t.name;if(e.isId){if(!t.isId)throw Error(`property <`+t.ns.name+`> must be id property to refine <`+e.ns.name+`>`);this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw Error(`property <`+t.ns.name+`> must be body property to refine <`+e.ns.name+`>`);this.setBodyProperty(t,!1)}var s=i.indexOf(e);if(s===-1)throw Error(`property <`+r.name+`> not found in property list`);i.splice(s,1),this.addProperty(t,n?void 0:s,o),a[r.name]=a[r.localName]=t},x.prototype.redefineProperty=function(e,t,n){var r=e.ns.prefix,i=t.split(`#`),a=b(i[0],r),o=b(i[1],a.prefix).name,s=this.propertiesByName[o];if(s)this.replaceProperty(s,e,n);else throw Error(`refined property <`+o+`> not found`);delete e.redefines},x.prototype.addNamedProperty=function(e,t){var n=e.ns,r=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),r[n.name]=r[n.localName]=e},x.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},x.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw Error(`body property defined multiple times (<`+this.bodyProperty.ns.name+`>, <`+e.ns.name+`>)`);this.bodyProperty=e},x.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw Error(`id property defined multiple times (<`+this.idProperty.ns.name+`>, <`+e.ns.name+`>)`);this.idProperty=e},x.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw Error(`cannot create <${e.name}> extending <${e.extends}>`)},x.prototype.assertNotDefined=function(e,t){var n=e.name,r=this.propertiesByName[n];if(r)throw Error(`property <`+n+`> already defined; override of <`+r.definedBy.ns.name+`#`+r.ns.name+`> by <`+e.definedBy.ns.name+`#`+e.ns.name+`> not allowed without redefines`)},x.prototype.hasProperty=function(e){return this.propertiesByName[e]},x.prototype.addTrait=function(e,t){t&&this.assertNotTrait(e);var n=this.allTypesByName,r=this.allTypes,o=e.name;o in n||(i(e.properties,a(function(n){n=c({},n,{name:n.ns.localName,inherited:t}),Object.defineProperty(n,"definedBy",{value:e});var r=n.replaces,i=n.redefines;r||i?this.redefineProperty(n,r||i,r):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))},this)),r.push(e),n[o]=e)};function S(e,t){this.packageMap=Object.create(null),this.typeMap=Object.create(null),this.packages=[],this.properties=t,i(e,a(this.registerPackage,this))}S.prototype.getPackage=function(e){return this.packageMap[e]},S.prototype.getPackages=function(){return this.packages},S.prototype.registerPackage=function(e){e=c({},e);var t=this.packageMap;C(t,e,`prefix`),C(t,e,`uri`),i(e.types,a(function(t){this.registerType(t,e)},this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},S.prototype.registerType=function(e,t){e=c({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:c({},e.meta||{})});var n=b(e.name,t.prefix),r=n.name,o=Object.create(null);i(e.properties,a(function(e){var t=b(e.name,n.prefix),r=t.name;v(e.type)||(e.type=b(e.type,t.prefix).name),c(e,{ns:t,name:r}),o[r]=e},this)),c(e,{ns:n,name:r,propertiesByName:o}),i(e.extends,a(function(e){var t=b(e,n.prefix),i=this.typeMap[t.name];i.traits=i.traits||[],i.traits.push(r)},this)),this.definePackage(e,t),this.typeMap[r]=e},S.prototype.mapTypes=function(e,t,n){var r=v(e.name)?{name:e.name}:this.typeMap[e.name],a=this;function o(n,r){var i=b(n,v(n)?``:e.prefix);a.mapTypes(i,t,r)}function s(e){return o(e,!0)}function c(e){return o(e,!1)}if(!r)throw Error(`unknown type <`+e.name+`>`);i(r.superClass,n?s:c),t(r,!n),i(r.traits,s)},S.prototype.getEffectiveDescriptor=function(e){var t=b(e),n=new x(t);this.mapTypes(t,function(e,t){n.addTrait(e,t)});var r=n.build();return this.definePackage(r,r.allTypes[r.allTypes.length-1].$pkg),r},S.prototype.definePackage=function(e,t){this.properties.define(e,`$pkg`,{value:t})};function C(e,t,n){var r=t[n];if(r in e)throw Error(`package with `+n+` <`+r+`> already defined`)}function w(e){this.model=e}w.prototype.set=function(e,t,n){if(!l(t)||!t.length)throw TypeError(`property name must be a non-empty string`);var r=this.getProperty(e,t),i=r&&r.name;T(n)?r?delete e[i]:delete e.$attrs[D(t)]:r?i in e?e[i]=n:E(e,r,n):e.$attrs[D(t)]=n},w.prototype.get=function(e,t){var n=this.getProperty(e,t);if(!n)return e.$attrs[D(t)];var r=n.name;return!e[r]&&n.isMany&&E(e,n,[]),e[r]},w.prototype.define=function(e,t,n){if(!n.writable){var r=n.value;n=c({},n,{get:function(){return r}}),delete n.value}Object.defineProperty(e,t,n)},w.prototype.defineDescriptor=function(e,t){this.define(e,`$descriptor`,{value:t})},w.prototype.defineModel=function(e,t){this.define(e,`$model`,{value:t})},w.prototype.getProperty=function(e,t){var n=this.model,r=n.getPropertyDescriptor(e,t);if(r)return r;if(t.includes(`:`))return null;let i=n.config.strict;if(i!==void 0){let n=TypeError(`unknown property <${t}> on <${e.$type}>`);if(i)throw n;typeof console<`u`&&console.warn(n)}return null};function T(e){return e===void 0}function E(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function D(e){return e.replace(/^:/,``)}function O(e,t={}){this.properties=new w(this),this.factory=new m(this,this.properties),this.registry=new S(e,this.properties),this.typeCache=Object.create(null),this.config=t}O.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw Error(`unknown type <`+e+`>`);return new n(t)},O.prototype.getType=function(e){var t=this.typeCache,n=l(e)?e:e.ns.name,r=t[n];return r||=(e=this.registry.getEffectiveDescriptor(n),t[n]=this.factory.createType(e)),r},O.prototype.createAny=function(n,r,a){var o=b(n),s={$type:n,$instanceOf:function(e){return e===this.$type},get:function(e){return this[e]},set:function(t,n){e(this,[t],n)}},c={name:n,isGeneric:!0,ns:{prefix:o.prefix,localName:o.localName,uri:r}};return this.properties.defineDescriptor(s,c),this.properties.defineModel(s,this),this.properties.define(s,`get`,{enumerable:!1,writable:!0}),this.properties.define(s,`set`,{enumerable:!1,writable:!0}),this.properties.define(s,`$parent`,{enumerable:!1,writable:!0}),this.properties.define(s,`$instanceOf`,{enumerable:!1,writable:!0}),i(a,function(e,n){t(e)&&e.value!==void 0?s[e.name]=e.value:s[n]=e}),s},O.prototype.getPackage=function(e){return this.registry.getPackage(e)},O.prototype.getPackages=function(){return this.registry.getPackages()},O.prototype.getElementDescriptor=function(e){return e.$descriptor},O.prototype.hasType=function(e,t){t===void 0&&(t=e,e=this);var n=e.$model.getElementDescriptor(e);return t in n.allTypesByName},O.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},O.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var k=String.fromCharCode,ee=Object.prototype.hasOwnProperty,A=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,j={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`};Object.keys(j).forEach(function(e){j[e.toUpperCase()]=j[e]});function M(e,t,n,r){return r?ee.call(j,r)?j[r]:`&`+r+`;`:k(t||parseInt(n,16))}function N(e){return e.length>3&&e.indexOf(`&`)!==-1?e.replace(A,M):e}var te=`non-whitespace outside of root node`;function P(e){return Error(e)}function ne(e){return`missing namespace for prefix <`+e+`>`}function re(e){return{get:e,enumerable:!0}}function ie(e,t,n,r){n in t||(t[n]=n in e?e[n]:null),e[n]=r}function ae(e,t){var n,r;for(n in t)r=t[n],r===null?delete e[n]:e[n]=r}function oe(e){return e+`$uri`}function F(e){var t=Object.create(null),n,r;for(n in e)r=e[n],t[r]=r,t[oe(r)]=n;return t}function I(){return{line:0,column:0}}function L(e){throw e}function R(e){if(!this)return new R(e);var t=e&&e.proxy,n,r,i,a,o=L,s,c,l,u,d=I,f=!1,p=!1,m=``,h=!1,g=!1,_=null,v=!1,y,b,x,S;function C(e){e instanceof Error||(e=P(e)),_=e,o(e,d)}function w(e){s&&(e instanceof Error||(e=P(e)),s(e,d))}this.on=function(e,t){if(typeof t!=`function`)throw P(`required args <name, cb>`);switch(e){case`openTag`:r=t;break;case`text`:n=t;break;case`closeTag`:i=t;break;case`error`:o=t;break;case`warn`:s=t;break;case`cdata`:a=t;break;case`attention`:u=t;break;case`question`:l=t;break;case`comment`:c=t;break;default:throw P(`unsupported event: `+e)}return this},this.ns=function(e){if(e===void 0&&(e={}),typeof e!=`object`)throw P(`required args <nsMap={}>`);var t=Object.create(null),n;for(n in e)t[n]=e[n];return g=!0,S=t,this};function T(){y=g?[]:null,b=g?F(S):null,x=[],d=I,v=!1,_=null,p=!1,m=``}this.parse=function(e){if(typeof e!=`string`)throw P(`required args <xml=string>`);if(f)throw P(`parse during stream; call end() first`);return T(),E(e),d=I,v=!1,_},this.write=function(e){if(typeof e!=`string`)throw P(`required args <xml=string>`);return f||=(T(),!0),_||(m=E(m+e,!0)||``),this},this.end=function(){return f||T(),f=!1,_||E(m),m=``,d=I,v=!1,_},this.stop=function(){v=!0};function E(e,o=!1){var s=null,f,m,_=0,T=!1,E=!1,D=0,O=0,k,ee,A,j,M,P,F,I,L,R=``,z=0,B;function V(e,t){var n=e.indexOf(`:`);if(n===-1)return e;var r=b[e.substring(0,n)];return r?t===r?e.substr(n+1):r+e.substr(n):(w(ne(e.substring(0,n))),null)}function H(){if(B!==null)return B;var e,t,n=g&&b.xmlns,r=g&&h?[]:null,i=z,a=R,o=a.length,c,l,u,d,p={},v=new Set,y,x,T;parseAttr:for(;i<o;i++)if(y=!1,x=a.charCodeAt(i),!(x===32||x<14&&x>8)){for((x<65||x>122||x>90&&x<97)&&x!==95&&x!==58&&(w(`illegal first char attribute name`),y=!0),T=i+1;T<o;T++)if(x=a.charCodeAt(T),!(x>96&&x<123||x>64&&x<91||x>47&&x<59||x===46||x===45||x===95)){if(x===32||x<14&&x>8){w(`missing attribute value`),i=T;continue parseAttr}if(x===61)break;w(`illegal attribute name char`),y=!0}if(d=a.substring(i,T),d===`xmlns:xmlns`&&(w(`illegal declaration of xmlns`),y=!0),x=a.charCodeAt(T+1),x===34)T=a.indexOf(`"`,i=T+2),T===-1&&(T=a.indexOf(`'`,i),T!==-1&&(w(`attribute value quote missmatch`),y=!0));else if(x===39)T=a.indexOf(`'`,i=T+2),T===-1&&(T=a.indexOf(`"`,i),T!==-1&&(w(`attribute value quote missmatch`),y=!0));else for(w(`missing attribute value quotes`),y=!0,T+=1;T<o&&(x=a.charCodeAt(T+1),!(x===32||x<14&&x>8));T++);for(T===-1&&(w(`missing closing quotes`),T=o,y=!0),y||(l=a.substring(i,T)),d===`xmlns:xml`&&l!==`http://www.w3.org/XML/1998/namespace`&&C(`illegal value of xmlns:xml`),i=T;T+1<o&&(x=a.charCodeAt(T+1),!(x===32||x<14&&x>8));T++)i===T&&(w(`illegal character after attribute end`),y=!0);if(i=T+1,y)continue parseAttr;if(v.has(d))w(`attribute <`+d+`> already defined`);else if(v.add(d),!g)p[d]=l;else if(h){if(c=d===`xmlns`?`xmlns`:d.charCodeAt(0)===120&&d.substr(0,6)===`xmlns:`?d.substr(6):null,c!==null){if(e=N(l),t=oe(c),u=S[e],!u){if(c===`xmlns`||t in b&&b[t]!==e)do u=`ns`+_++;while(b[u]!==void 0);else u=c;S[e]=u}b[c]!==u&&(f||=Object.create(null),s=null,m=null,ie(b,f,c,u),c===`xmlns`&&(ie(b,f,oe(u),e),n=u),ie(b,f,t,e)),p[d]=l;continue}r.push(d,l)}else d=V(d,n),d!==null&&(p[d]=l)}if(h)for(i=0,o=r.length;i<o;i++)d=V(r[i++],n),l=r[i],d!==null&&(p[d]=l);return B=p}function se(){for(var t=/(\r\n|\r|\n)/g,n=0,r=0,i=0,a=O,o,s;D>=i&&(o=t.exec(e),!(!o||(a=o[0].length+o.index,a>D)));)n+=1,i=a;return D==-1?(r=a,s=e.substring(O)):O===0?s=e.substring(O,D):(r=D-i,s=O==-1?e.substring(D):e.substring(D,O+1)),{data:s,line:n,column:r}}for(d=se,t&&(L=Object.create({},{name:re(function(){return F}),originalName:re(function(){return I}),attrs:re(H),ns:re(function(){return m||=Object.assign(Object.create(null),b),m})}));O!==-1;){if(D=e.charCodeAt(O)===60?O:e.indexOf(`<`,O),D===-1){if(o)return e.substring(O);if(x.length)return C(`unexpected end of file`);if(!p)return C(`missing start tag`);O<e.length&&e.substring(O).trim()&&w(te);return}if(p||=!0,O!==D){if(x.length){if(n&&(n(e.substring(O,D),N,d),v))return}else if(e.substring(O,D).trim()&&(w(te),v))return}if(j=e.charCodeAt(D+1),j===33){if(A=e.charCodeAt(D+2),A===91&&e.substr(D+3,6)===`CDATA[`){if(O=e.indexOf(`]]>`,D),O===-1)return o?e.substring(D):C(`unclosed cdata`);if(a&&(a(e.substring(D+9,O),d),v))return;O+=3;continue}if(A===45&&e.charCodeAt(D+3)===45){if(O=e.indexOf(`-->`,D),O===-1)return o?e.substring(D):C(`unclosed comment`);if(c&&(c(e.substring(D+4,O),N,d),v))return;O+=3;continue}}if(j===63){if(O=e.indexOf(`?>`,D),O===-1)return o?e.substring(D):C(`unclosed question`);if(l&&(l(e.substring(D,O+2),d),v))return;O+=2}else{for(k=D+1;;k++){if(M=e.charCodeAt(k),isNaN(M))return o?e.substring(D):(O=-1,C(`unclosed tag`));if(M===34)A=e.indexOf(`"`,k+1),k=A===-1?k:A;else if(M===39)A=e.indexOf(`'`,k+1),k=A===-1?k:A;else if(M===62){O=k;break}}if(j===33){if(u&&(u(e.substring(D,O+1),N,d),v))return;O+=1}else{if(B={},j===47){if(T=!1,E=!0,!x.length)return C(`missing open tag`);if(k=F=x.pop(),A=D+2+k.length,e.substring(D+2,A)!==k)return C(`closing tag mismatch`);for(;A<O;A++)if(j=e.charCodeAt(A),!(j===32||j>8&&j<14))return C(`close tag`)}else{if(e.charCodeAt(O-1)===47?(k=F=e.substring(D+1,O-1),T=!0,E=!0):(k=F=e.substring(D+1,O),T=!0,E=!1),!(j>96&&j<123||j>64&&j<91||j===95||j===58))return C(`illegal first char nodeName`);for(A=1,ee=k.length;A<ee;A++)if(j=k.charCodeAt(A),!(j>96&&j<123||j>64&&j<91||j>47&&j<59||j===45||j===95||j==46)){if(j===32||j<14&&j>8){F=k.substring(0,A),B=null;break}return C(`invalid nodeName`)}E||x.push(F)}if(g){T&&(f=null,B===null&&(h=k.indexOf(`xmlns`,A)!==-1)&&(z=A,R=k,H(),h=!1),E||y.push(f)),I=F,s===null&&(s=Object.create(null));var ce=s[F];if(ce!==void 0)F=ce;else{if(j=F.indexOf(`:`),j!==-1){if(P=b[F.substring(0,j)],!P)return C(`missing namespace on <`+I+`>`);F=F.substr(j+1)}else P=b.xmlns;P&&(F=P+`:`+F),s[I]=F}}if(T&&(z=A,R=k,r&&(t?r(L,N,E,d):r(F,H,N,E,d),v)))return;if(E){if(i&&(i(t?L:F,N,T,d),v))return;g&&(T||(f=y.pop()),f&&(ae(b,f),f=null,s=null,m=null))}O+=1}}}}}function z(e){return e.xml&&e.xml.tagAlias===`lowerCase`}var B={xsi:`http://www.w3.org/2001/XMLSchema-instance`,xml:`http://www.w3.org/XML/1998/namespace`},V=`property`;function H(e){return e.xml&&e.xml.serialize}function se(e){let t=H(e);return t!==V&&(t||null)}function ce(e){return e.charAt(0).toUpperCase()+e.slice(1)}function le(e,t){return z(t)?e.prefix+`:`+ce(e.localName):e.name}function ue(e,t){var n=e.name,r=e.localName,i=t&&t.xml&&t.xml.typePrefix;return i&&r.indexOf(i)===0?e.prefix+`:`+r.slice(i.length):n}function de(e,t,n){let r=b(e,t.xmlns),i=b(`${t[r.prefix]||r.prefix}:${r.localName}`);return ue(i,n.getPackage(i.prefix))}function U(e){return Error(e)}function W(e){return e.$descriptor}function fe(e){c(this,e),this.elementsById=Object.create(null),this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw U(`expected element`);var t=this.elementsById,n=W(e).idProperty,r;if(n&&(r=e.get(n.name),r)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(r))throw Error(`illegal ID <`+r+`>`);if(t[r])throw U(`duplicate ID <`+r+`>`);t[r]=e}},this.addWarning=function(e){this.warnings.push(e)}}function G(){}G.prototype.handleEnd=function(){},G.prototype.handleText=function(){},G.prototype.handleNode=function(){};function pe(){}pe.prototype=Object.create(G.prototype),pe.prototype.handleNode=function(){return this};function K(){}K.prototype=Object.create(G.prototype),K.prototype.handleText=function(e){this.body=(this.body||``)+e};function q(e,t){this.property=e,this.context=t}q.prototype=Object.create(K.prototype),q.prototype.handleNode=function(e){if(this.element)throw U(`expected no sub nodes`);return this.element=this.createReference(e),this},q.prototype.handleEnd=function(){this.element.id=this.body},q.prototype.createReference=function(e){return{property:this.property.ns.name,id:``}};function me(e,t){this.element=t,this.propertyDesc=e}me.prototype=Object.create(K.prototype),me.prototype.handleEnd=function(){var e=this.body||``,t=this.element,n=this.propertyDesc;e=_(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)};function he(){}he.prototype=Object.create(K.prototype),he.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t};function J(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}J.prototype=Object.create(he.prototype),J.prototype.addReference=function(e){this.context.addReference(e)},J.prototype.handleText=function(e){var t=this.element;if(!W(t).bodyProperty)throw U(`unexpected body text <`+e+`>`);K.prototype.handleText.call(this,e)},J.prototype.handleEnd=function(){var e=this.body,t=this.element,n=W(t).bodyProperty;n&&e!==void 0&&(e=_(n.type,e),t.set(n.name,e))},J.prototype.createElement=function(e){var t=e.attributes,n=this.type,r=W(n),a=this.context,o=new n({}),s=this.model,c;return i(t,function(e,t){var n=r.propertiesByName[t],l;n&&n.isReference?n.isMany?(l=e.split(` `),i(l,function(e){a.addReference({element:o,property:n.ns.name,id:e})})):a.addReference({element:o,property:n.ns.name,id:e}):(n?e=_(n.type,e):t===`xmlns`?t=`:`+t:(c=b(t,r.ns.prefix),s.getPackage(c.prefix)&&a.addWarning({message:`unknown attribute <`+t+`>`,element:o,property:t,value:e})),o.set(t,e))}),o},J.prototype.getPropertyForNode=function(e){var t=e.name,n=b(t),r=this.type,i=this.model,a=W(r),s=n.name,l=a.propertiesByName[s];if(l&&!l.isAttr){let t=se(l);if(t){let n=e.attributes[t];if(n){let t=de(n,e.ns,i),r=i.getType(t);return c({},l,{effectiveType:W(r).name})}}return l}var u=i.getPackage(n.prefix);if(u){let e=le(n,u),t=i.getType(e);if(l=o(a.properties,function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&t.hasType(e.type)}),l)return c({},l,{effectiveType:W(t).name})}else if(l=o(a.properties,function(e){return!e.isReference&&!e.isAttribute&&e.type===`Element`}),l)return l;throw U(`unrecognized element <`+n.name+`>`)},J.prototype.toString=function(){return`ElementDescriptor[`+W(this.type).name+`]`},J.prototype.valueHandler=function(e,t){return new me(e,t)},J.prototype.referenceHandler=function(e){return new q(e,this.context)},J.prototype.handler=function(e){return e===`Element`?new Y(this.model,e,this.context):new J(this.model,e,this.context)},J.prototype.handleChild=function(e){var t=this.getPropertyForNode(e),n,r=this.element,i;if(n=t.effectiveType||t.type,y(n))return this.valueHandler(t,r);i=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e);var a=i.element;return a!==void 0&&(t.isMany?r.get(t.name).push(a):r.set(t.name,a),t.isReference?(c(a,{element:r}),this.context.addReference(a)):a.$parent=r),i};function ge(e,t,n){J.call(this,e,t,n)}ge.prototype=Object.create(J.prototype),ge.prototype.createElement=function(e){var t=e.name,n=b(t),r=this.model,i=this.type,a=r.getPackage(n.prefix),o=a&&le(n,a)||t;if(!i.hasType(o))throw U(`unexpected element <`+e.originalName+`>`);return J.prototype.createElement.call(this,e)};function Y(e,t,n){this.model=e,this.context=n}Y.prototype=Object.create(he.prototype),Y.prototype.createElement=function(e){var t=e.name,n=b(t).prefix,r=e.ns[n+`$uri`],i=e.attributes;return this.model.createAny(t,r,i)},Y.prototype.handleChild=function(e){var t=new Y(this.model,`Element`,this.context).handleNode(e),n=this.element,r=t.element,i;return r!==void 0&&(i=n.$children=n.$children||[],i.push(r),r.$parent=n),t},Y.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function _e(e){e instanceof O&&(e={model:e}),c(this,{lax:!1},e)}_e.prototype.fromXML=function(e,t,n){var r=t.rootHandler;t instanceof J?(r=t,t={}):typeof t==`string`?(r=this.handler(t),t={}):typeof r==`string`&&(r=this.handler(r));var i=this.model,a=this.lax,o=new fe(c({},t,{rootHandler:r})),s=new R({proxy:!0}),l=ve();r.context=o,l.push(r);function u(e,t,n){var r=t(),i=r.line,a=r.column,s=r.data;s.charAt(0)===`<`&&s.indexOf(` `)!==-1&&(s=s.slice(0,s.indexOf(` `))+`>`);var c=`unparsable content `+(s?s+` `:``)+`detected
|
|
2
|
+
line: `+i+`
|
|
3
|
+
column: `+a+`
|
|
4
|
+
nested error: `+e.message;if(n)return o.addWarning({message:c,error:e}),!0;throw U(c)}function d(e,t){return u(e,t,!0)}function f(){for(var e=o.elementsById,t=o.references,n=0,r;r=t[n];n++){var i=r.element,a=e[r.id],s=W(i).propertiesByName[r.property];if(a||o.addWarning({message:`unresolved reference <`+r.id+`>`,element:r.element,property:r.property,value:r.id}),s.isMany){var c=i.get(s.name),l=c.indexOf(r);l===-1&&(l=c.length),a?c[l]=a:c.splice(l,1)}else i.set(s.name,a)}}function p(){l.pop().handleEnd()}var m=/^<\?xml /i,h=/ encoding="([^"]+)"/i,g=/^utf-8$/i;function _(e){if(m.test(e)){var t=h.exec(e),n=t&&t[1];n&&!g.test(n)&&o.addWarning({message:`unsupported document encoding <`+n+`>, falling back to UTF-8`})}}function v(e,t){var n=l.peek();try{l.push(n.handleNode(e))}catch(e){u(e,t,a)&&l.push(new pe)}}function y(e,t){try{l.peek().handleText(e)}catch(e){d(e,t)}}function b(e,t){e.trim()&&y(e,t)}var x=i.getPackages().reduce(function(e,t){return e[t.uri]=t.prefix,e},Object.entries(B).reduce(function(e,[t,n]){return e[n]=t,e},i.config&&i.config.nsMap||{}));return s.ns(x).on(`openTag`,function(e,t,n,r){var i=e.attrs||{},a=Object.keys(i).reduce(function(e,n){return e[n]=t(i[n]),e},{});v({name:e.name,originalName:e.originalName,attributes:a,ns:e.ns},r)}).on(`question`,_).on(`closeTag`,p).on(`cdata`,y).on(`text`,function(e,t,n){b(t(e),n)}).on(`error`,u).on(`warn`,d),new Promise(function(t,n){var i;try{s.parse(e),f()}catch(e){i=e}var a=r.element;!i&&!a&&(i=U(`failed to parse document as <`+r.type.$descriptor.name+`>`));var c=o.warnings,l=o.references,u=o.elementsById;return i?(i.warnings=c,n(i)):t({rootElement:a,elementsById:u,references:l,warnings:c})})},_e.prototype.handler=function(e){return new ge(this.model,e)};function ve(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var ye=`<?xml version="1.0" encoding="UTF-8"?>
|
|
5
|
+
`,be=/<|>|'|"|&|\n\r|\n/g,xe=/<|>|&/g;function X(e){this.prefixMap={},this.uriMap={},this.used={},this.wellknown=[],this.custom=[],this.parent=e,this.defaultPrefixMap=e&&e.defaultPrefixMap||{}}X.prototype.mapDefaultPrefixes=function(e){this.defaultPrefixMap=e},X.prototype.defaultUriByPrefix=function(e){return this.defaultPrefixMap[e]},X.prototype.resolve=function(e){for(var t=this;t;){var n=e(t);if(n)return n;t=t.parent}},X.prototype.eachScope=function(e){for(var t=this;t;)e(t),t=t.parent},X.prototype.byUri=function(e){return this.resolve(function(t){return t.uriMap[e]})},X.prototype.add=function(e,t){this.uriMap[e.uri]=e,t?this.wellknown.push(e):this.custom.push(e),this.mapPrefix(e.prefix,e.uri)},X.prototype.uriByPrefix=function(e){var t=e||`xmlns`;return this.resolve(function(e){return e.prefixMap[t]})},X.prototype.mapPrefix=function(e,t){this.prefixMap[e||`xmlns`]=t},X.prototype.getNSKey=function(e){return e.prefix===void 0?e.uri:e.uri+`|`+e.prefix},X.prototype.logUsed=function(e){var t=e.uri,n=this.getNSKey(e),r=this.byUri(t);this.eachScope(function(e){e.used[n]=r})},X.prototype.getUsed=function(e){return[].concat(this.wellknown,this.custom).filter(e=>{var t=this.getNSKey(e);return this.used[t]})};function Se(e){return e.charAt(0).toLowerCase()+e.slice(1)}function Ce(e,t){return z(t)?Se(e):e}function we(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Te(e){return l(e)?e:(e.prefix?e.prefix+`:`:``)+e.localName}function Ee(e){return e.getUsed().filter(function(e){return e.prefix!==`xml`}).map(function(e){return{name:`xmlns`+(e.prefix?`:`+e.prefix:``),value:Ne(e.uri)}})}function De(e,t){return t.isGeneric?c({localName:t.ns.localName},e):c({localName:Ce(t.ns.localName,t.$pkg)},e)}function Oe(e,t){return c({localName:t.ns.localName},e)}function ke(e){var t=e.$descriptor;return n(t.properties,function(t){var n=t.name;if(t.isVirtual||!r(e,n))return!1;var i=e[n];return i===t.default||i===null?!1:!t.isMany||i.length})}var Ae={"\n":`#10`,"\n\r":`#10`,'"':`#34`,"'":`#39`,"<":`#60`,">":`#62`,"&":`#38`},je={"<":`lt`,">":`gt`,"&":`amp`};function Me(e,t,n){return e=l(e)?e:``+e,e.replace(t,function(e){return`&`+n[e]+`;`})}function Ne(e){return Me(e,be,Ae)}function Pe(e){return Me(e,xe,je)}function Fe(e){return n(e,function(e){return e.isAttr})}function Ie(e){return n(e,function(e){return!e.isAttr})}function Le(e){this.tagName=e}Le.prototype.build=function(e){return this.element=e,this},Le.prototype.serializeTo=function(e){e.appendIndent().append(`<`+this.tagName+`>`+Pe(this.element.id)+`</`+this.tagName+`>`).appendNewLine()};function Z(){}Z.prototype.serializeValue=Z.prototype.serializeTo=function(e){e.append(this.escape?Pe(this.value):this.value)},Z.prototype.build=function(e,t){return this.value=t,e.type===`String`&&t.search(xe)!==-1&&(this.escape=!0),this};function Re(e){this.tagName=e}we(Re,Z),Re.prototype.serializeTo=function(e){e.appendIndent().append(`<`+this.tagName+`>`),this.serializeValue(e),e.append(`</`+this.tagName+`>`).appendNewLine()};function Q(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}Q.prototype.build=function(e){return We(this,e),this},Q.prototype.enter=function(e){this.element=e;var t=e.$descriptor,n=this.propertyDescriptor,r=t.isGeneric;if(this.otherAttrs=r?this.parseGenericNsAttributes(e):this.parseNsAttributes(e),this.ns=n?this.nsPropertyTagName(n):this.nsTagName(t),this.tagName=this.addTagName(this.ns),r)return this.collectGenericContainments(e);var i=ke(e);return this.parseAttributes(Fe(i)),this.collectContainments(Ie(i))},Q.prototype.exit=function(){this.parseGenericAttributes(this.element,this.otherAttrs)},Q.prototype.nsTagName=function(e){return De(this.logNamespaceUsed(e.ns),e)},Q.prototype.nsPropertyTagName=function(e){return Oe(this.logNamespaceUsed(e.ns),e)},Q.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},Q.prototype.nsAttributeName=function(e){var t=l(e)?b(e):e.ns;if(e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:c({localName:t.localName},n)},Q.prototype.parseGenericNsAttributes=function(e){return Object.entries(e).filter(([t,n])=>!t.startsWith(`$`)&&this.parseNsAttribute(e,t,n)).map(([e,t])=>({name:e,value:t}))},Q.prototype.collectGenericContainments=function(e){var t=this,n=[],r=e.$body;r&&n.push({create:function(){return new Z().build({type:`String`},r)}});var a=e.$children;return a&&i(a,function(e){n.push({create:function(){return new Q(t)},element:e})}),n},Q.prototype.parseNsAttribute=function(e,t,n){var r=e.$model,i=b(t),a;if(i.prefix===`xmlns`&&(a={prefix:i.localName,uri:n}),!i.prefix&&i.localName===`xmlns`&&(a={uri:n}),!a)return{name:t,value:n};if(r&&r.getPackage(n))this.logNamespace(a,!0,!0);else{var o=this.logNamespaceUsed(a,!0);this.getNamespaces().logUsed(o)}},Q.prototype.parseNsAttributes=function(e){var t=this,n=e.$attrs,r=[];return i(n,function(n,i){var a=t.parseNsAttribute(e,i,n);a&&r.push(a)}),r},Q.prototype.parseGenericAttributes=function(e,t){var n=this;i(t,function(t){try{n.addAttribute(n.nsAttributeName(t.name),t.value)}catch(n){typeof console<`u`&&console.warn(`missing namespace information for <${t.name}=${t.value}> on`,e,n)}})},Q.prototype.collectContainments=function(e){var t=this,n=this.element,r=[];return i(e,function(e){var a=n.get(e.name),o=e.isReference;if(e.isMany||(a=[a]),e.isBody)r.push({create:function(){return new Z().build(e,a[0])}});else if(y(e.type))i(a,function(n){r.push({create:function(){return new Re(t.addTagName(t.nsPropertyTagName(e))).build(e,n)}})});else if(o)i(a,function(n){r.push({create:function(){return new Le(t.addTagName(t.nsPropertyTagName(e))).build(n)}})});else{var s=H(e);i(a,function(n){r.push({create:function(){return s?s===V?new Q(t,e):new Be(t,e,s):new Q(t)},element:n})})}}),r},Q.prototype.getNamespaces=function(e){var t=this.namespaces;if(!t){var n=this.getParentNamespaces();e||!n?this.namespaces=t=new X(n):t=n}return t},Q.prototype.getParentNamespaces=function(){if(this.parentNamespaces!==void 0)return this.parentNamespaces;for(var e=null,t=this.parent;t;){if(t.namespaces){e=t.namespaces;break}if(t.parentNamespaces!==void 0){e=t.parentNamespaces;break}t=t.parent}return this.parentNamespaces=e},Q.prototype.logNamespace=function(e,t,n){var r=this.getNamespaces(n),i=e.uri,a=e.prefix;return(!r.byUri(i)||n)&&r.add(e,t),r.mapPrefix(a,i),e},Q.prototype.logNamespaceUsed=function(e,t){var n=this.getNamespaces(t),r=e.prefix,i=e.uri,a,o,s;if(!r&&!i)return{localName:e.localName};if(s=n.defaultUriByPrefix(r),i=i||s||n.uriByPrefix(r),!i)throw Error(`no namespace uri given for prefix <`+r+`>`);if(e=n.byUri(i),!e&&!r&&(e=this.logNamespace({uri:i},s===i,!0)),!e){for(a=r,o=1;n.uriByPrefix(a);)a=r+`_`+o++;e=this.logNamespace({prefix:a,uri:i},s===i)}return r&&n.mapPrefix(r,i),e},Q.prototype.parseAttributes=function(e){var t=this,n=this.element;i(e,function(e){var r=n.get(e.name);if(e.isReference){if(!e.isMany)r=r.id;else{var a=[];i(r,function(e){a.push(e.id)}),r=a.join(` `)}}t.addAttribute(t.nsAttributeName(e),r)})},Q.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),Te(e)},Q.prototype.addAttribute=function(e,t){var n=this.attrs;l(t)&&(t=Ne(t));var r=s(n,function(t){return t.name.localName===e.localName&&t.name.uri===e.uri&&t.name.prefix===e.prefix}),i={name:e,value:t};r===-1?n.push(i):n.splice(r,1,i)},Q.prototype.serializeAttributes=function(e){var t=this.attrs,n=this.namespaces;n&&(t=Ee(n).concat(t)),i(t,function(t){e.append(` `).append(Te(t.name)).append(`="`).append(t.value).append(`"`)})},Q.prototype.serializeTo=function(e){ze(this,e)};function ze(e,t){for(var n=[{serializer:e,index:0,opened:!1,indent:!1}];n.length;){var r=n[n.length-1],i=r.serializer;if(!r.opened){var a=i.body[0];if(r.indent=a&&a.constructor!==Z,t.appendIndent().append(`<`+i.tagName),i.serializeAttributes(t),t.append(a?`>`:` />`),r.opened=!0,!a){t.appendNewLine(),n.pop();continue}r.indent&&t.appendNewLine().indent()}if(r.index<i.body.length){var o=i.body[r.index++];o instanceof Q?n.push({serializer:o,index:0,opened:!1,indent:!1}):o.serializeTo(t)}else r.indent&&t.unindent().appendIndent(),t.append(`</`+i.tagName+`>`).appendNewLine(),n.pop()}}function Be(e,t,n){Q.call(this,e,t),this.serialization=n}we(Be,Q),Be.prototype.parseNsAttributes=function(e){var t=Q.prototype.parseNsAttributes.call(this,e).filter(e=>e.name!==this.serialization),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var r=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var i=e.$model.getPackage(r.uri),a=i.xml&&i.xml.typePrefix||``;return this.addAttribute(this.nsAttributeName(this.serialization),(r.prefix?r.prefix+`:`:``)+a+n.ns.localName),t},Be.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri};function Ve(){this.value=``,this.write=function(e){this.value+=e}}function He(e,t){var n=[``];this.append=function(t){return e.write(t),this},this.appendNewLine=function(){return t&&e.write(`
|
|
6
|
+
`),this},this.appendIndent=function(){return t&&e.write(n.join(` `)),this},this.indent=function(){return n.push(``),this},this.unindent=function(){return n.pop(),this}}function Ue(e){e=c({format:!1,preamble:!0},e||{});function t(t,n){var r=n||new Ve,i=new He(r,e.format);e.preamble&&i.append(ye);var a=new Q,o=t.$model;if(a.getNamespaces().mapDefaultPrefixes(Ge(o)),a.build(t).serializeTo(i),!n)return r.value}return{toXML:t}}function We(e,t){for(var n=[{serializer:e,children:e.enter(t),index:0}];n.length;){var r=n[n.length-1];if(r.index>=r.children.length)r.serializer.exit(),n.pop();else{var i=r.children[r.index++],a=i.create();r.serializer.body.push(a),i.element&&n.push({serializer:a,children:a.enter(i.element),index:0})}}}function Ge(e){let t=e.config&&e.config.nsMap||{},n={};for(let e in B)n[e]=B[e];for(let e in t){let r=t[e];n[r]=e}for(let t of e.getPackages())n[t.prefix]=t.uri;return n}var Ke=f({BpmnModdle:()=>Je});function $(e,t){O.call(this,e,t)}$.prototype=Object.create(O.prototype),$.prototype.fromXML=function(e,t,n){l(t)||(n=t,t=`bpmn:Definitions`);var r=new _e(c({model:this,lax:!0},n)),i=r.handler(t);return r.fromXML(e,i)},$.prototype.toXML=function(e,t){var n=new Ue(t);return new Promise(function(t,r){try{return t({xml:n.toXML(e)})}catch(e){return r(e)}})};var qe={bpmn:{name:`BPMN20`,uri:`http://www.omg.org/spec/BPMN/20100524/MODEL`,prefix:`bpmn`,associations:[],types:[{name:`Interface`,superClass:[`RootElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`operations`,type:`Operation`,isMany:!0},{name:`implementationRef`,isAttr:!0,type:`String`}]},{name:`Operation`,superClass:[`BaseElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`inMessageRef`,type:`Message`,isReference:!0},{name:`outMessageRef`,type:`Message`,isReference:!0},{name:`errorRef`,type:`Error`,isMany:!0,isReference:!0},{name:`implementationRef`,isAttr:!0,type:`String`}]},{name:`EndPoint`,superClass:[`RootElement`]},{name:`Auditing`,superClass:[`BaseElement`]},{name:`GlobalTask`,superClass:[`CallableElement`],properties:[{name:`resources`,type:`ResourceRole`,isMany:!0}]},{name:`Monitoring`,superClass:[`BaseElement`]},{name:`Performer`,superClass:[`ResourceRole`]},{name:`Process`,superClass:[`FlowElementsContainer`,`CallableElement`],properties:[{name:`processType`,type:`ProcessType`,isAttr:!0},{name:`isClosed`,isAttr:!0,type:`Boolean`},{name:`auditing`,type:`Auditing`},{name:`monitoring`,type:`Monitoring`},{name:`properties`,type:`Property`,isMany:!0},{name:`laneSets`,isMany:!0,replaces:`FlowElementsContainer#laneSets`,type:`LaneSet`},{name:`flowElements`,isMany:!0,replaces:`FlowElementsContainer#flowElements`,type:`FlowElement`},{name:`artifacts`,type:`Artifact`,isMany:!0},{name:`resources`,type:`ResourceRole`,isMany:!0},{name:`correlationSubscriptions`,type:`CorrelationSubscription`,isMany:!0},{name:`supports`,type:`Process`,isMany:!0,isReference:!0},{name:`definitionalCollaborationRef`,type:`Collaboration`,isAttr:!0,isReference:!0},{name:`isExecutable`,isAttr:!0,type:`Boolean`}]},{name:`LaneSet`,superClass:[`BaseElement`],properties:[{name:`lanes`,type:`Lane`,isMany:!0},{name:`name`,isAttr:!0,type:`String`}]},{name:`Lane`,superClass:[`BaseElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`partitionElementRef`,type:`BaseElement`,isAttr:!0,isReference:!0},{name:`partitionElement`,type:`BaseElement`},{name:`flowNodeRef`,type:`FlowNode`,isMany:!0,isReference:!0},{name:`childLaneSet`,type:`LaneSet`,xml:{serialize:`xsi:type`}}]},{name:`GlobalManualTask`,superClass:[`GlobalTask`]},{name:`ManualTask`,superClass:[`Task`]},{name:`UserTask`,superClass:[`Task`],properties:[{name:`renderings`,type:`Rendering`,isMany:!0},{name:`implementation`,isAttr:!0,type:`String`}]},{name:`Rendering`,superClass:[`BaseElement`]},{name:`HumanPerformer`,superClass:[`Performer`]},{name:`PotentialOwner`,superClass:[`HumanPerformer`]},{name:`GlobalUserTask`,superClass:[`GlobalTask`],properties:[{name:`implementation`,isAttr:!0,type:`String`},{name:`renderings`,type:`Rendering`,isMany:!0}]},{name:`Gateway`,isAbstract:!0,superClass:[`FlowNode`],properties:[{name:`gatewayDirection`,type:`GatewayDirection`,default:`Unspecified`,isAttr:!0}]},{name:`EventBasedGateway`,superClass:[`Gateway`],properties:[{name:`instantiate`,default:!1,isAttr:!0,type:`Boolean`},{name:`eventGatewayType`,type:`EventBasedGatewayType`,isAttr:!0,default:`Exclusive`}]},{name:`ComplexGateway`,superClass:[`Gateway`],properties:[{name:`activationCondition`,type:`Expression`,xml:{serialize:`xsi:type`}},{name:`default`,type:`SequenceFlow`,isAttr:!0,isReference:!0}]},{name:`ExclusiveGateway`,superClass:[`Gateway`],properties:[{name:`default`,type:`SequenceFlow`,isAttr:!0,isReference:!0}]},{name:`InclusiveGateway`,superClass:[`Gateway`],properties:[{name:`default`,type:`SequenceFlow`,isAttr:!0,isReference:!0}]},{name:`ParallelGateway`,superClass:[`Gateway`]},{name:`RootElement`,isAbstract:!0,superClass:[`BaseElement`]},{name:`Relationship`,superClass:[`BaseElement`],properties:[{name:`type`,isAttr:!0,type:`String`},{name:`direction`,type:`RelationshipDirection`,isAttr:!0},{name:`source`,isMany:!0,isReference:!0,type:`Element`},{name:`target`,isMany:!0,isReference:!0,type:`Element`}]},{name:`BaseElement`,isAbstract:!0,properties:[{name:`id`,isAttr:!0,type:`String`,isId:!0},{name:`documentation`,type:`Documentation`,isMany:!0},{name:`extensionDefinitions`,type:`ExtensionDefinition`,isMany:!0,isReference:!0},{name:`extensionElements`,type:`ExtensionElements`}]},{name:`Extension`,properties:[{name:`mustUnderstand`,default:!1,isAttr:!0,type:`Boolean`},{name:`definition`,type:`ExtensionDefinition`,isAttr:!0,isReference:!0}]},{name:`ExtensionDefinition`,properties:[{name:`name`,isAttr:!0,type:`String`},{name:`extensionAttributeDefinitions`,type:`ExtensionAttributeDefinition`,isMany:!0}]},{name:`ExtensionAttributeDefinition`,properties:[{name:`name`,isAttr:!0,type:`String`},{name:`type`,isAttr:!0,type:`String`},{name:`isReference`,default:!1,isAttr:!0,type:`Boolean`},{name:`extensionDefinition`,type:`ExtensionDefinition`,isAttr:!0,isReference:!0}]},{name:`ExtensionElements`,properties:[{name:`valueRef`,isAttr:!0,isReference:!0,type:`Element`},{name:`values`,type:`Element`,isMany:!0},{name:`extensionAttributeDefinition`,type:`ExtensionAttributeDefinition`,isAttr:!0,isReference:!0}]},{name:`Documentation`,superClass:[`BaseElement`],properties:[{name:`text`,type:`String`,isBody:!0},{name:`textFormat`,default:`text/plain`,isAttr:!0,type:`String`}]},{name:`Event`,isAbstract:!0,superClass:[`FlowNode`,`InteractionNode`],properties:[{name:`properties`,type:`Property`,isMany:!0}]},{name:`IntermediateCatchEvent`,superClass:[`CatchEvent`]},{name:`IntermediateThrowEvent`,superClass:[`ThrowEvent`]},{name:`EndEvent`,superClass:[`ThrowEvent`]},{name:`StartEvent`,superClass:[`CatchEvent`],properties:[{name:`isInterrupting`,default:!0,isAttr:!0,type:`Boolean`}]},{name:`ThrowEvent`,isAbstract:!0,superClass:[`Event`],properties:[{name:`dataInputs`,type:`DataInput`,isMany:!0},{name:`dataInputAssociations`,type:`DataInputAssociation`,isMany:!0},{name:`inputSet`,type:`InputSet`},{name:`eventDefinitions`,type:`EventDefinition`,isMany:!0},{name:`eventDefinitionRef`,type:`EventDefinition`,isMany:!0,isReference:!0}]},{name:`CatchEvent`,isAbstract:!0,superClass:[`Event`],properties:[{name:`parallelMultiple`,isAttr:!0,type:`Boolean`,default:!1},{name:`dataOutputs`,type:`DataOutput`,isMany:!0},{name:`dataOutputAssociations`,type:`DataOutputAssociation`,isMany:!0},{name:`outputSet`,type:`OutputSet`},{name:`eventDefinitions`,type:`EventDefinition`,isMany:!0},{name:`eventDefinitionRef`,type:`EventDefinition`,isMany:!0,isReference:!0}]},{name:`BoundaryEvent`,superClass:[`CatchEvent`],properties:[{name:`cancelActivity`,default:!0,isAttr:!0,type:`Boolean`},{name:`attachedToRef`,type:`Activity`,isAttr:!0,isReference:!0}]},{name:`EventDefinition`,isAbstract:!0,superClass:[`RootElement`]},{name:`CancelEventDefinition`,superClass:[`EventDefinition`]},{name:`ErrorEventDefinition`,superClass:[`EventDefinition`],properties:[{name:`errorRef`,type:`Error`,isAttr:!0,isReference:!0}]},{name:`TerminateEventDefinition`,superClass:[`EventDefinition`]},{name:`EscalationEventDefinition`,superClass:[`EventDefinition`],properties:[{name:`escalationRef`,type:`Escalation`,isAttr:!0,isReference:!0}]},{name:`Escalation`,properties:[{name:`structureRef`,type:`ItemDefinition`,isAttr:!0,isReference:!0},{name:`name`,isAttr:!0,type:`String`},{name:`escalationCode`,isAttr:!0,type:`String`}],superClass:[`RootElement`]},{name:`CompensateEventDefinition`,superClass:[`EventDefinition`],properties:[{name:`waitForCompletion`,isAttr:!0,type:`Boolean`,default:!0},{name:`activityRef`,type:`Activity`,isAttr:!0,isReference:!0}]},{name:`TimerEventDefinition`,superClass:[`EventDefinition`],properties:[{name:`timeDate`,type:`Expression`,xml:{serialize:`xsi:type`}},{name:`timeCycle`,type:`Expression`,xml:{serialize:`xsi:type`}},{name:`timeDuration`,type:`Expression`,xml:{serialize:`xsi:type`}}]},{name:`LinkEventDefinition`,superClass:[`EventDefinition`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`target`,type:`LinkEventDefinition`,isReference:!0},{name:`source`,type:`LinkEventDefinition`,isMany:!0,isReference:!0}]},{name:`MessageEventDefinition`,superClass:[`EventDefinition`],properties:[{name:`messageRef`,type:`Message`,isAttr:!0,isReference:!0},{name:`operationRef`,type:`Operation`,isReference:!0}]},{name:`ConditionalEventDefinition`,superClass:[`EventDefinition`],properties:[{name:`condition`,type:`Expression`,xml:{serialize:`xsi:type`}}]},{name:`SignalEventDefinition`,superClass:[`EventDefinition`],properties:[{name:`signalRef`,type:`Signal`,isAttr:!0,isReference:!0}]},{name:`Signal`,superClass:[`RootElement`],properties:[{name:`structureRef`,type:`ItemDefinition`,isAttr:!0,isReference:!0},{name:`name`,isAttr:!0,type:`String`}]},{name:`ImplicitThrowEvent`,superClass:[`ThrowEvent`]},{name:`DataState`,superClass:[`BaseElement`],properties:[{name:`name`,isAttr:!0,type:`String`}]},{name:`ItemAwareElement`,superClass:[`BaseElement`],properties:[{name:`itemSubjectRef`,type:`ItemDefinition`,isAttr:!0,isReference:!0},{name:`dataState`,type:`DataState`}]},{name:`DataAssociation`,superClass:[`BaseElement`],properties:[{name:`sourceRef`,type:`ItemAwareElement`,isMany:!0,isReference:!0},{name:`targetRef`,type:`ItemAwareElement`,isReference:!0},{name:`transformation`,type:`FormalExpression`,xml:{serialize:`property`}},{name:`assignment`,type:`Assignment`,isMany:!0}]},{name:`DataInput`,superClass:[`ItemAwareElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`isCollection`,default:!1,isAttr:!0,type:`Boolean`},{name:`inputSetRef`,type:`InputSet`,isMany:!0,isVirtual:!0,isReference:!0},{name:`inputSetWithOptional`,type:`InputSet`,isMany:!0,isVirtual:!0,isReference:!0},{name:`inputSetWithWhileExecuting`,type:`InputSet`,isMany:!0,isVirtual:!0,isReference:!0}]},{name:`DataOutput`,superClass:[`ItemAwareElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`isCollection`,default:!1,isAttr:!0,type:`Boolean`},{name:`outputSetRef`,type:`OutputSet`,isMany:!0,isVirtual:!0,isReference:!0},{name:`outputSetWithOptional`,type:`OutputSet`,isMany:!0,isVirtual:!0,isReference:!0},{name:`outputSetWithWhileExecuting`,type:`OutputSet`,isMany:!0,isVirtual:!0,isReference:!0}]},{name:`InputSet`,superClass:[`BaseElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`dataInputRefs`,type:`DataInput`,isMany:!0,isReference:!0},{name:`optionalInputRefs`,type:`DataInput`,isMany:!0,isReference:!0},{name:`whileExecutingInputRefs`,type:`DataInput`,isMany:!0,isReference:!0},{name:`outputSetRefs`,type:`OutputSet`,isMany:!0,isReference:!0}]},{name:`OutputSet`,superClass:[`BaseElement`],properties:[{name:`dataOutputRefs`,type:`DataOutput`,isMany:!0,isReference:!0},{name:`name`,isAttr:!0,type:`String`},{name:`inputSetRefs`,type:`InputSet`,isMany:!0,isReference:!0},{name:`optionalOutputRefs`,type:`DataOutput`,isMany:!0,isReference:!0},{name:`whileExecutingOutputRefs`,type:`DataOutput`,isMany:!0,isReference:!0}]},{name:`Property`,superClass:[`ItemAwareElement`],properties:[{name:`name`,isAttr:!0,type:`String`}]},{name:`DataInputAssociation`,superClass:[`DataAssociation`]},{name:`DataOutputAssociation`,superClass:[`DataAssociation`]},{name:`InputOutputSpecification`,superClass:[`BaseElement`],properties:[{name:`dataInputs`,type:`DataInput`,isMany:!0},{name:`dataOutputs`,type:`DataOutput`,isMany:!0},{name:`inputSets`,type:`InputSet`,isMany:!0},{name:`outputSets`,type:`OutputSet`,isMany:!0}]},{name:`DataObject`,superClass:[`FlowElement`,`ItemAwareElement`],properties:[{name:`isCollection`,default:!1,isAttr:!0,type:`Boolean`}]},{name:`InputOutputBinding`,properties:[{name:`inputDataRef`,type:`InputSet`,isAttr:!0,isReference:!0},{name:`outputDataRef`,type:`OutputSet`,isAttr:!0,isReference:!0},{name:`operationRef`,type:`Operation`,isAttr:!0,isReference:!0}]},{name:`Assignment`,superClass:[`BaseElement`],properties:[{name:`from`,type:`Expression`,xml:{serialize:`xsi:type`}},{name:`to`,type:`Expression`,xml:{serialize:`xsi:type`}}]},{name:`DataStore`,superClass:[`RootElement`,`ItemAwareElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`capacity`,isAttr:!0,type:`Integer`},{name:`isUnlimited`,default:!0,isAttr:!0,type:`Boolean`}]},{name:`DataStoreReference`,superClass:[`ItemAwareElement`,`FlowElement`],properties:[{name:`dataStoreRef`,type:`DataStore`,isAttr:!0,isReference:!0}]},{name:`DataObjectReference`,superClass:[`ItemAwareElement`,`FlowElement`],properties:[{name:`dataObjectRef`,type:`DataObject`,isAttr:!0,isReference:!0}]},{name:`ConversationLink`,superClass:[`BaseElement`],properties:[{name:`sourceRef`,type:`InteractionNode`,isAttr:!0,isReference:!0},{name:`targetRef`,type:`InteractionNode`,isAttr:!0,isReference:!0},{name:`name`,isAttr:!0,type:`String`}]},{name:`ConversationAssociation`,superClass:[`BaseElement`],properties:[{name:`innerConversationNodeRef`,type:`ConversationNode`,isAttr:!0,isReference:!0},{name:`outerConversationNodeRef`,type:`ConversationNode`,isAttr:!0,isReference:!0}]},{name:`CallConversation`,superClass:[`ConversationNode`],properties:[{name:`calledCollaborationRef`,type:`Collaboration`,isAttr:!0,isReference:!0},{name:`participantAssociations`,type:`ParticipantAssociation`,isMany:!0}]},{name:`Conversation`,superClass:[`ConversationNode`]},{name:`SubConversation`,superClass:[`ConversationNode`],properties:[{name:`conversationNodes`,type:`ConversationNode`,isMany:!0}]},{name:`ConversationNode`,isAbstract:!0,superClass:[`InteractionNode`,`BaseElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`participantRef`,type:`Participant`,isMany:!0,isReference:!0},{name:`messageFlowRefs`,type:`MessageFlow`,isMany:!0,isReference:!0},{name:`correlationKeys`,type:`CorrelationKey`,isMany:!0}]},{name:`GlobalConversation`,superClass:[`Collaboration`]},{name:`PartnerEntity`,superClass:[`RootElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`participantRef`,type:`Participant`,isMany:!0,isReference:!0}]},{name:`PartnerRole`,superClass:[`RootElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`participantRef`,type:`Participant`,isMany:!0,isReference:!0}]},{name:`CorrelationProperty`,superClass:[`RootElement`],properties:[{name:`correlationPropertyRetrievalExpression`,type:`CorrelationPropertyRetrievalExpression`,isMany:!0},{name:`name`,isAttr:!0,type:`String`},{name:`type`,type:`ItemDefinition`,isAttr:!0,isReference:!0}]},{name:`Error`,superClass:[`RootElement`],properties:[{name:`structureRef`,type:`ItemDefinition`,isAttr:!0,isReference:!0},{name:`name`,isAttr:!0,type:`String`},{name:`errorCode`,isAttr:!0,type:`String`}]},{name:`CorrelationKey`,superClass:[`BaseElement`],properties:[{name:`correlationPropertyRef`,type:`CorrelationProperty`,isMany:!0,isReference:!0},{name:`name`,isAttr:!0,type:`String`}]},{name:`Expression`,superClass:[`BaseElement`],isAbstract:!1,properties:[{name:`body`,isBody:!0,type:`String`}]},{name:`FormalExpression`,superClass:[`Expression`],properties:[{name:`language`,isAttr:!0,type:`String`},{name:`evaluatesToTypeRef`,type:`ItemDefinition`,isAttr:!0,isReference:!0}]},{name:`Message`,superClass:[`RootElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`itemRef`,type:`ItemDefinition`,isAttr:!0,isReference:!0}]},{name:`ItemDefinition`,superClass:[`RootElement`],properties:[{name:`itemKind`,type:`ItemKind`,isAttr:!0},{name:`structureRef`,isAttr:!0,type:`String`},{name:`isCollection`,default:!1,isAttr:!0,type:`Boolean`},{name:`import`,type:`Import`,isAttr:!0,isReference:!0}]},{name:`FlowElement`,isAbstract:!0,superClass:[`BaseElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`auditing`,type:`Auditing`},{name:`monitoring`,type:`Monitoring`},{name:`categoryValueRef`,type:`CategoryValue`,isMany:!0,isReference:!0}]},{name:`SequenceFlow`,superClass:[`FlowElement`],properties:[{name:`isImmediate`,isAttr:!0,type:`Boolean`},{name:`conditionExpression`,type:`Expression`,xml:{serialize:`xsi:type`}},{name:`sourceRef`,type:`FlowNode`,isAttr:!0,isReference:!0},{name:`targetRef`,type:`FlowNode`,isAttr:!0,isReference:!0}]},{name:`FlowElementsContainer`,isAbstract:!0,superClass:[`BaseElement`],properties:[{name:`laneSets`,type:`LaneSet`,isMany:!0},{name:`flowElements`,type:`FlowElement`,isMany:!0}]},{name:`CallableElement`,isAbstract:!0,superClass:[`RootElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`ioSpecification`,type:`InputOutputSpecification`,xml:{serialize:`property`}},{name:`supportedInterfaceRef`,type:`Interface`,isMany:!0,isReference:!0},{name:`ioBinding`,type:`InputOutputBinding`,isMany:!0,xml:{serialize:`property`}}]},{name:`FlowNode`,isAbstract:!0,superClass:[`FlowElement`],properties:[{name:`incoming`,type:`SequenceFlow`,isMany:!0,isReference:!0},{name:`outgoing`,type:`SequenceFlow`,isMany:!0,isReference:!0},{name:`lanes`,type:`Lane`,isMany:!0,isVirtual:!0,isReference:!0}]},{name:`CorrelationPropertyRetrievalExpression`,superClass:[`BaseElement`],properties:[{name:`messagePath`,type:`FormalExpression`},{name:`messageRef`,type:`Message`,isAttr:!0,isReference:!0}]},{name:`CorrelationPropertyBinding`,superClass:[`BaseElement`],properties:[{name:`dataPath`,type:`FormalExpression`},{name:`correlationPropertyRef`,type:`CorrelationProperty`,isAttr:!0,isReference:!0}]},{name:`Resource`,superClass:[`RootElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`resourceParameters`,type:`ResourceParameter`,isMany:!0}]},{name:`ResourceParameter`,superClass:[`BaseElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`isRequired`,isAttr:!0,type:`Boolean`},{name:`type`,type:`ItemDefinition`,isAttr:!0,isReference:!0}]},{name:`CorrelationSubscription`,superClass:[`BaseElement`],properties:[{name:`correlationKeyRef`,type:`CorrelationKey`,isAttr:!0,isReference:!0},{name:`correlationPropertyBinding`,type:`CorrelationPropertyBinding`,isMany:!0}]},{name:`MessageFlow`,superClass:[`BaseElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`sourceRef`,type:`InteractionNode`,isAttr:!0,isReference:!0},{name:`targetRef`,type:`InteractionNode`,isAttr:!0,isReference:!0},{name:`messageRef`,type:`Message`,isAttr:!0,isReference:!0}]},{name:`MessageFlowAssociation`,superClass:[`BaseElement`],properties:[{name:`innerMessageFlowRef`,type:`MessageFlow`,isAttr:!0,isReference:!0},{name:`outerMessageFlowRef`,type:`MessageFlow`,isAttr:!0,isReference:!0}]},{name:`InteractionNode`,isAbstract:!0,properties:[{name:`incomingConversationLinks`,type:`ConversationLink`,isMany:!0,isVirtual:!0,isReference:!0},{name:`outgoingConversationLinks`,type:`ConversationLink`,isMany:!0,isVirtual:!0,isReference:!0}]},{name:`Participant`,superClass:[`InteractionNode`,`BaseElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`interfaceRef`,type:`Interface`,isMany:!0,isReference:!0},{name:`participantMultiplicity`,type:`ParticipantMultiplicity`},{name:`endPointRefs`,type:`EndPoint`,isMany:!0,isReference:!0},{name:`processRef`,type:`Process`,isAttr:!0,isReference:!0}]},{name:`ParticipantAssociation`,superClass:[`BaseElement`],properties:[{name:`innerParticipantRef`,type:`Participant`,isAttr:!0,isReference:!0},{name:`outerParticipantRef`,type:`Participant`,isAttr:!0,isReference:!0}]},{name:`ParticipantMultiplicity`,properties:[{name:`minimum`,default:0,isAttr:!0,type:`Integer`},{name:`maximum`,default:1,isAttr:!0,type:`Integer`}],superClass:[`BaseElement`]},{name:`Collaboration`,superClass:[`RootElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`isClosed`,isAttr:!0,type:`Boolean`},{name:`participants`,type:`Participant`,isMany:!0},{name:`messageFlows`,type:`MessageFlow`,isMany:!0},{name:`artifacts`,type:`Artifact`,isMany:!0},{name:`conversations`,type:`ConversationNode`,isMany:!0},{name:`conversationAssociations`,type:`ConversationAssociation`},{name:`participantAssociations`,type:`ParticipantAssociation`,isMany:!0},{name:`messageFlowAssociations`,type:`MessageFlowAssociation`,isMany:!0},{name:`correlationKeys`,type:`CorrelationKey`,isMany:!0},{name:`choreographyRef`,type:`Choreography`,isMany:!0,isReference:!0},{name:`conversationLinks`,type:`ConversationLink`,isMany:!0}]},{name:`ChoreographyActivity`,isAbstract:!0,superClass:[`FlowNode`],properties:[{name:`participantRef`,type:`Participant`,isMany:!0,isReference:!0},{name:`initiatingParticipantRef`,type:`Participant`,isAttr:!0,isReference:!0},{name:`correlationKeys`,type:`CorrelationKey`,isMany:!0},{name:`loopType`,type:`ChoreographyLoopType`,default:`None`,isAttr:!0}]},{name:`CallChoreography`,superClass:[`ChoreographyActivity`],properties:[{name:`calledChoreographyRef`,type:`Choreography`,isAttr:!0,isReference:!0},{name:`participantAssociations`,type:`ParticipantAssociation`,isMany:!0}]},{name:`SubChoreography`,superClass:[`ChoreographyActivity`,`FlowElementsContainer`],properties:[{name:`artifacts`,type:`Artifact`,isMany:!0}]},{name:`ChoreographyTask`,superClass:[`ChoreographyActivity`],properties:[{name:`messageFlowRef`,type:`MessageFlow`,isMany:!0,isReference:!0}]},{name:`Choreography`,superClass:[`Collaboration`,`FlowElementsContainer`]},{name:`GlobalChoreographyTask`,superClass:[`Choreography`],properties:[{name:`initiatingParticipantRef`,type:`Participant`,isAttr:!0,isReference:!0}]},{name:`TextAnnotation`,superClass:[`Artifact`],properties:[{name:`text`,type:`String`},{name:`textFormat`,default:`text/plain`,isAttr:!0,type:`String`}]},{name:`Group`,superClass:[`Artifact`],properties:[{name:`categoryValueRef`,type:`CategoryValue`,isAttr:!0,isReference:!0}]},{name:`Association`,superClass:[`Artifact`],properties:[{name:`associationDirection`,type:`AssociationDirection`,isAttr:!0},{name:`sourceRef`,type:`BaseElement`,isAttr:!0,isReference:!0},{name:`targetRef`,type:`BaseElement`,isAttr:!0,isReference:!0}]},{name:`Category`,superClass:[`RootElement`],properties:[{name:`categoryValue`,type:`CategoryValue`,isMany:!0},{name:`name`,isAttr:!0,type:`String`}]},{name:`Artifact`,isAbstract:!0,superClass:[`BaseElement`]},{name:`CategoryValue`,superClass:[`BaseElement`],properties:[{name:`categorizedFlowElements`,type:`FlowElement`,isMany:!0,isVirtual:!0,isReference:!0},{name:`value`,isAttr:!0,type:`String`}]},{name:`Activity`,isAbstract:!0,superClass:[`FlowNode`],properties:[{name:`isForCompensation`,default:!1,isAttr:!0,type:`Boolean`},{name:`default`,type:`SequenceFlow`,isAttr:!0,isReference:!0},{name:`ioSpecification`,type:`InputOutputSpecification`,xml:{serialize:`property`}},{name:`boundaryEventRefs`,type:`BoundaryEvent`,isMany:!0,isReference:!0},{name:`properties`,type:`Property`,isMany:!0},{name:`dataInputAssociations`,type:`DataInputAssociation`,isMany:!0},{name:`dataOutputAssociations`,type:`DataOutputAssociation`,isMany:!0},{name:`startQuantity`,default:1,isAttr:!0,type:`Integer`},{name:`resources`,type:`ResourceRole`,isMany:!0},{name:`completionQuantity`,default:1,isAttr:!0,type:`Integer`},{name:`loopCharacteristics`,type:`LoopCharacteristics`}]},{name:`ServiceTask`,superClass:[`Task`],properties:[{name:`implementation`,isAttr:!0,type:`String`},{name:`operationRef`,type:`Operation`,isAttr:!0,isReference:!0}]},{name:`SubProcess`,superClass:[`Activity`,`FlowElementsContainer`,`InteractionNode`],properties:[{name:`triggeredByEvent`,default:!1,isAttr:!0,type:`Boolean`},{name:`artifacts`,type:`Artifact`,isMany:!0}]},{name:`LoopCharacteristics`,isAbstract:!0,superClass:[`BaseElement`]},{name:`MultiInstanceLoopCharacteristics`,superClass:[`LoopCharacteristics`],properties:[{name:`isSequential`,default:!1,isAttr:!0,type:`Boolean`},{name:`behavior`,type:`MultiInstanceBehavior`,default:`All`,isAttr:!0},{name:`loopCardinality`,type:`Expression`,xml:{serialize:`xsi:type`}},{name:`loopDataInputRef`,type:`ItemAwareElement`,isReference:!0},{name:`loopDataOutputRef`,type:`ItemAwareElement`,isReference:!0},{name:`inputDataItem`,type:`DataInput`,xml:{serialize:`property`}},{name:`outputDataItem`,type:`DataOutput`,xml:{serialize:`property`}},{name:`complexBehaviorDefinition`,type:`ComplexBehaviorDefinition`,isMany:!0},{name:`completionCondition`,type:`Expression`,xml:{serialize:`xsi:type`}},{name:`oneBehaviorEventRef`,type:`EventDefinition`,isAttr:!0,isReference:!0},{name:`noneBehaviorEventRef`,type:`EventDefinition`,isAttr:!0,isReference:!0}]},{name:`StandardLoopCharacteristics`,superClass:[`LoopCharacteristics`],properties:[{name:`testBefore`,default:!1,isAttr:!0,type:`Boolean`},{name:`loopCondition`,type:`Expression`,xml:{serialize:`xsi:type`}},{name:`loopMaximum`,type:`Integer`,isAttr:!0}]},{name:`CallActivity`,superClass:[`Activity`,`InteractionNode`],properties:[{name:`calledElement`,type:`String`,isAttr:!0}]},{name:`Task`,superClass:[`Activity`,`InteractionNode`]},{name:`SendTask`,superClass:[`Task`],properties:[{name:`implementation`,isAttr:!0,type:`String`},{name:`operationRef`,type:`Operation`,isAttr:!0,isReference:!0},{name:`messageRef`,type:`Message`,isAttr:!0,isReference:!0}]},{name:`ReceiveTask`,superClass:[`Task`],properties:[{name:`implementation`,isAttr:!0,type:`String`},{name:`instantiate`,default:!1,isAttr:!0,type:`Boolean`},{name:`operationRef`,type:`Operation`,isAttr:!0,isReference:!0},{name:`messageRef`,type:`Message`,isAttr:!0,isReference:!0}]},{name:`ScriptTask`,superClass:[`Task`],properties:[{name:`scriptFormat`,isAttr:!0,type:`String`},{name:`script`,type:`String`}]},{name:`BusinessRuleTask`,superClass:[`Task`],properties:[{name:`implementation`,isAttr:!0,type:`String`}]},{name:`AdHocSubProcess`,superClass:[`SubProcess`],properties:[{name:`completionCondition`,type:`Expression`,xml:{serialize:`xsi:type`}},{name:`ordering`,type:`AdHocOrdering`,isAttr:!0},{name:`cancelRemainingInstances`,default:!0,isAttr:!0,type:`Boolean`}]},{name:`Transaction`,superClass:[`SubProcess`],properties:[{name:`protocol`,isAttr:!0,type:`String`},{name:`method`,isAttr:!0,type:`String`}]},{name:`GlobalScriptTask`,superClass:[`GlobalTask`],properties:[{name:`scriptLanguage`,isAttr:!0,type:`String`},{name:`script`,isAttr:!0,type:`String`}]},{name:`GlobalBusinessRuleTask`,superClass:[`GlobalTask`],properties:[{name:`implementation`,isAttr:!0,type:`String`}]},{name:`ComplexBehaviorDefinition`,superClass:[`BaseElement`],properties:[{name:`condition`,type:`FormalExpression`},{name:`event`,type:`ImplicitThrowEvent`}]},{name:`ResourceRole`,superClass:[`BaseElement`],properties:[{name:`resourceRef`,type:`Resource`,isReference:!0},{name:`resourceParameterBindings`,type:`ResourceParameterBinding`,isMany:!0},{name:`resourceAssignmentExpression`,type:`ResourceAssignmentExpression`},{name:`name`,isAttr:!0,type:`String`}]},{name:`ResourceParameterBinding`,properties:[{name:`expression`,type:`Expression`,xml:{serialize:`xsi:type`}},{name:`parameterRef`,type:`ResourceParameter`,isAttr:!0,isReference:!0}],superClass:[`BaseElement`]},{name:`ResourceAssignmentExpression`,properties:[{name:`expression`,type:`Expression`,xml:{serialize:`xsi:type`}}],superClass:[`BaseElement`]},{name:`Import`,properties:[{name:`importType`,isAttr:!0,type:`String`},{name:`location`,isAttr:!0,type:`String`},{name:`namespace`,isAttr:!0,type:`String`}]},{name:`Definitions`,superClass:[`BaseElement`],properties:[{name:`name`,isAttr:!0,type:`String`},{name:`targetNamespace`,isAttr:!0,type:`String`},{name:`expressionLanguage`,default:`http://www.w3.org/1999/XPath`,isAttr:!0,type:`String`},{name:`typeLanguage`,default:`http://www.w3.org/2001/XMLSchema`,isAttr:!0,type:`String`},{name:`imports`,type:`Import`,isMany:!0},{name:`extensions`,type:`Extension`,isMany:!0},{name:`rootElements`,type:`RootElement`,isMany:!0},{name:`diagrams`,isMany:!0,type:`bpmndi:BPMNDiagram`},{name:`exporter`,isAttr:!0,type:`String`},{name:`relationships`,type:`Relationship`,isMany:!0},{name:`exporterVersion`,isAttr:!0,type:`String`}]}],enumerations:[{name:`ProcessType`,literalValues:[{name:`None`},{name:`Public`},{name:`Private`}]},{name:`GatewayDirection`,literalValues:[{name:`Unspecified`},{name:`Converging`},{name:`Diverging`},{name:`Mixed`}]},{name:`EventBasedGatewayType`,literalValues:[{name:`Parallel`},{name:`Exclusive`}]},{name:`RelationshipDirection`,literalValues:[{name:`None`},{name:`Forward`},{name:`Backward`},{name:`Both`}]},{name:`ItemKind`,literalValues:[{name:`Physical`},{name:`Information`}]},{name:`ChoreographyLoopType`,literalValues:[{name:`None`},{name:`Standard`},{name:`MultiInstanceSequential`},{name:`MultiInstanceParallel`}]},{name:`AssociationDirection`,literalValues:[{name:`None`},{name:`One`},{name:`Both`}]},{name:`MultiInstanceBehavior`,literalValues:[{name:`None`},{name:`One`},{name:`All`},{name:`Complex`}]},{name:`AdHocOrdering`,literalValues:[{name:`Parallel`},{name:`Sequential`}]}],xml:{tagAlias:`lowerCase`,typePrefix:`t`}},bpmndi:{name:`BPMNDI`,uri:`http://www.omg.org/spec/BPMN/20100524/DI`,prefix:`bpmndi`,types:[{name:`BPMNDiagram`,properties:[{name:`plane`,type:`BPMNPlane`,redefines:`di:Diagram#rootElement`},{name:`labelStyle`,type:`BPMNLabelStyle`,isMany:!0}],superClass:[`di:Diagram`]},{name:`BPMNPlane`,properties:[{name:`bpmnElement`,isAttr:!0,isReference:!0,type:`bpmn:BaseElement`,redefines:`di:DiagramElement#modelElement`}],superClass:[`di:Plane`]},{name:`BPMNShape`,properties:[{name:`bpmnElement`,isAttr:!0,isReference:!0,type:`bpmn:BaseElement`,redefines:`di:DiagramElement#modelElement`},{name:`isHorizontal`,isAttr:!0,type:`Boolean`},{name:`isExpanded`,isAttr:!0,type:`Boolean`},{name:`isMarkerVisible`,isAttr:!0,type:`Boolean`},{name:`label`,type:`BPMNLabel`},{name:`isMessageVisible`,isAttr:!0,type:`Boolean`},{name:`participantBandKind`,type:`ParticipantBandKind`,isAttr:!0},{name:`choreographyActivityShape`,type:`BPMNShape`,isAttr:!0,isReference:!0}],superClass:[`di:LabeledShape`]},{name:`BPMNEdge`,properties:[{name:`label`,type:`BPMNLabel`},{name:`bpmnElement`,isAttr:!0,isReference:!0,type:`bpmn:BaseElement`,redefines:`di:DiagramElement#modelElement`},{name:`sourceElement`,isAttr:!0,isReference:!0,type:`di:DiagramElement`,redefines:`di:Edge#source`},{name:`targetElement`,isAttr:!0,isReference:!0,type:`di:DiagramElement`,redefines:`di:Edge#target`},{name:`messageVisibleKind`,type:`MessageVisibleKind`,isAttr:!0,default:`initiating`}],superClass:[`di:LabeledEdge`]},{name:`BPMNLabel`,properties:[{name:`labelStyle`,type:`BPMNLabelStyle`,isAttr:!0,isReference:!0,redefines:`di:DiagramElement#style`}],superClass:[`di:Label`]},{name:`BPMNLabelStyle`,properties:[{name:`font`,type:`dc:Font`}],superClass:[`di:Style`]}],enumerations:[{name:`ParticipantBandKind`,literalValues:[{name:`top_initiating`},{name:`middle_initiating`},{name:`bottom_initiating`},{name:`top_non_initiating`},{name:`middle_non_initiating`},{name:`bottom_non_initiating`}]},{name:`MessageVisibleKind`,literalValues:[{name:`initiating`},{name:`non_initiating`}]}],associations:[]},dc:{name:`DC`,uri:`http://www.omg.org/spec/DD/20100524/DC`,prefix:`dc`,types:[{name:`Boolean`},{name:`Integer`},{name:`Real`},{name:`String`},{name:`Font`,properties:[{name:`name`,type:`String`,isAttr:!0},{name:`size`,type:`Real`,isAttr:!0},{name:`isBold`,type:`Boolean`,isAttr:!0},{name:`isItalic`,type:`Boolean`,isAttr:!0},{name:`isUnderline`,type:`Boolean`,isAttr:!0},{name:`isStrikeThrough`,type:`Boolean`,isAttr:!0}]},{name:`Point`,properties:[{name:`x`,type:`Real`,default:`0`,isAttr:!0},{name:`y`,type:`Real`,default:`0`,isAttr:!0}]},{name:`Bounds`,properties:[{name:`x`,type:`Real`,default:`0`,isAttr:!0},{name:`y`,type:`Real`,default:`0`,isAttr:!0},{name:`width`,type:`Real`,isAttr:!0},{name:`height`,type:`Real`,isAttr:!0}]}],associations:[]},di:{name:`DI`,uri:`http://www.omg.org/spec/DD/20100524/DI`,prefix:`di`,types:[{name:`DiagramElement`,isAbstract:!0,properties:[{name:`id`,isAttr:!0,isId:!0,type:`String`},{name:`extension`,type:`Extension`},{name:`owningDiagram`,type:`Diagram`,isReadOnly:!0,isVirtual:!0,isReference:!0},{name:`owningElement`,type:`DiagramElement`,isReadOnly:!0,isVirtual:!0,isReference:!0},{name:`modelElement`,isReadOnly:!0,isVirtual:!0,isReference:!0,type:`Element`},{name:`style`,type:`Style`,isReadOnly:!0,isVirtual:!0,isReference:!0},{name:`ownedElement`,type:`DiagramElement`,isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:`Node`,isAbstract:!0,superClass:[`DiagramElement`]},{name:`Edge`,isAbstract:!0,superClass:[`DiagramElement`],properties:[{name:`source`,type:`DiagramElement`,isReadOnly:!0,isVirtual:!0,isReference:!0},{name:`target`,type:`DiagramElement`,isReadOnly:!0,isVirtual:!0,isReference:!0},{name:`waypoint`,isUnique:!1,isMany:!0,type:`dc:Point`,xml:{serialize:`xsi:type`}}]},{name:`Diagram`,isAbstract:!0,properties:[{name:`id`,isAttr:!0,isId:!0,type:`String`},{name:`rootElement`,type:`DiagramElement`,isReadOnly:!0,isVirtual:!0},{name:`name`,isAttr:!0,type:`String`},{name:`documentation`,isAttr:!0,type:`String`},{name:`resolution`,isAttr:!0,type:`Real`},{name:`ownedStyle`,type:`Style`,isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:`Shape`,isAbstract:!0,superClass:[`Node`],properties:[{name:`bounds`,type:`dc:Bounds`}]},{name:`Plane`,isAbstract:!0,superClass:[`Node`],properties:[{name:`planeElement`,type:`DiagramElement`,subsettedProperty:`DiagramElement-ownedElement`,isMany:!0}]},{name:`LabeledEdge`,isAbstract:!0,superClass:[`Edge`],properties:[{name:`ownedLabel`,type:`Label`,isReadOnly:!0,subsettedProperty:`DiagramElement-ownedElement`,isMany:!0,isVirtual:!0}]},{name:`LabeledShape`,isAbstract:!0,superClass:[`Shape`],properties:[{name:`ownedLabel`,type:`Label`,isReadOnly:!0,subsettedProperty:`DiagramElement-ownedElement`,isMany:!0,isVirtual:!0}]},{name:`Label`,isAbstract:!0,superClass:[`Node`],properties:[{name:`bounds`,type:`dc:Bounds`}]},{name:`Style`,isAbstract:!0,properties:[{name:`id`,isAttr:!0,isId:!0,type:`String`}]},{name:`Extension`,properties:[{name:`values`,isMany:!0,type:`Element`}]}],associations:[],xml:{tagAlias:`lowerCase`}},bioc:{name:`bpmn.io colors for BPMN`,uri:`http://bpmn.io/schema/bpmn/biocolor/1.0`,prefix:`bioc`,types:[{name:`ColoredShape`,extends:[`bpmndi:BPMNShape`],properties:[{name:`stroke`,isAttr:!0,type:`String`},{name:`fill`,isAttr:!0,type:`String`}]},{name:`ColoredEdge`,extends:[`bpmndi:BPMNEdge`],properties:[{name:`stroke`,isAttr:!0,type:`String`},{name:`fill`,isAttr:!0,type:`String`}]}],enumerations:[],associations:[]},color:{name:`BPMN in Color`,uri:`http://www.omg.org/spec/BPMN/non-normative/color/1.0`,prefix:`color`,types:[{name:`ColoredLabel`,extends:[`bpmndi:BPMNLabel`],properties:[{name:`color`,isAttr:!0,type:`String`}]},{name:`ColoredShape`,extends:[`bpmndi:BPMNShape`],properties:[{name:`background-color`,isAttr:!0,type:`String`},{name:`border-color`,isAttr:!0,type:`String`}]},{name:`ColoredEdge`,extends:[`bpmndi:BPMNEdge`],properties:[{name:`border-color`,isAttr:!0,type:`String`}]}],enumerations:[],associations:[]}};function Je(e,t){return new $(c({},qe,e),t)}export{Ke as n,Je as t};
|