Home
last modified time | relevance | path

Searched defs:createType (Results 1 – 5 of 5) sorted by relevance

/plugin/authgooglesheets/vendor/google/apiclient-services/src/BigtableAdmin/
DModification.php22 protected $createType = ColumnFamily::class; variable in Google\\Service\\BigtableAdmin\\Modification
/plugin/authgooglesheets/vendor/google/apiclient-services/src/DriveActivity/
DActionDetail.php24 protected $createType = Create::class; variable in Google\\Service\\DriveActivity\\ActionDetail
/plugin/bpmnio/vendor/dmn-js/dist/
H A Ddmn-viewer.production.min.js8 */var kC=/["'&<>]/;Ng.exports=CC;function CC(n){var e=""+n,t=kC.exec(e);if(!t)return e;var i,r="",s=0,o=0;for(s=t.index;s<e.length;s++){switch(e.charCodeAt(s)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}o!==s&&(r+=e.substring(o,s)),o=s+1,r+=i}return o!==s?r+e.substring(o,s):r}});var Cs=Object.prototype.toString,Db=Object.prototype.hasOwnProperty;function fa(n){return n===void 0}function ht(n){return n!==void 0}function ha(n){return n==null}function _e(n){return Cs.call(n)==="[object Array]"}function dt(n){return Cs.call(n)==="[object Object]"}function Ce(n){return Cs.call(n)==="[object Number]"}function Ie(n){let e=Cs.call(n);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"||e==="[object Proxy]"}function tt(n){return Cs.call(n)==="[object String]"}function Ss(n,e){return!ha(n)&&Db.call(n,e)}function we(n,e){let t=Sc(e),i;return B(n,function(r,s){if(t(r,s))return i=r,!1}),i}function Qd(n,e){let t=Sc(e),i=_e(n)?-1:void 0;return B(n,function(r,s){if(t(r,s))return i=s,!1}),i}function Qn(n,e){let t=Sc(e),i=[];return B(n,function(r,s){t(r,s)&&i.push(r)}),i}function B(n,e){let t,i;if(fa(n))return;let r=_e(n)?Ib:Bb;for(let s in n)if(Ss(n,s)&&(t=n[s],i=e(t,r(s)),i===!1))return t}function wt(n,e,t){return B(n,function(i,r){t=e(t,i,r)}),t}function Es(n,e){return!!wt(n,function(t,i,r){return t&&e(i,r)},!0)}function zd(n,e){let t=[];return B(n,function(i,r){t.push(e(i,r))}),t}function Cc(n){return function(e){return Es(n,function(t,i){return e[i]===t})}}function Sc(n){return Ie(n)?n:e=>e===n}function Bb(n){return n}function Ib(n){return Number(n)}function Gi(n,e){let t,i,r,s;function o(f){let h=Date.now(),d=f?0:s+e-h;if(d>0)return a(d);n.apply(r,i),l()}function a(f){t=setTimeout(o,f)}function l(){t&&clearTimeout(t),t=s=i=r=void 0}function c(){t&&o(!0),l()}function u(...f){s=Date.now(),i=f,r=this,t||a(e)}return u.flush=c,u.cancel=l,u}function Wd(n,e){let t=!1;return function(...i){t||(n(...i),t=!0,setTimeout(()=>{t=!1},e))}}function Ft(n,e){return n.bind(e)}function D(n,...e){return Object.assign(n,...e)}function Hd(n,e,t){let i=n;return B(e,function(r,s){if(typeof r!="number"&&typeof r!="string")throw new Error("illegal key type: "+typeof r+". Key should be of type number or string.");if(r==="constructor")throw new Error("illegal key: constructor");if(r==="__proto__")throw new Error("illegal key: __proto__");let o=e[s+1],a=i[r];ht(o)&&ha(a)&&(a=i[r]=isNaN(+o)?{}:[]),fa(o)?fa(t)?delete i[r]:i[r]=t:i=a}),n}function Xd(n,e){let t={},i=Object(n);return B(e,function(r){r in i&&(t[r]=n[r])}),t}var da="__fn",Ud=1e3,$b=Array.prototype.slice;function ye(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}ye.prototype.on=function(n,e,t,i){if(n=_e(n)?n:[n],Ie(e)&&(i=t,t=e,e=Ud),!Ce(e))throw new Error("priority must be a number");var r=t;i&&(r=Ft(t,i),r[da]=t[da]||t);var s=this;n.forEach(function(o){s._addListener(o,{priority:e,callback:r,next:null})})};ye.prototype.once=function(n,e,t,i){var r=this;if(Ie(e)&&(i=t,t=e,e=Ud),!Ce(e))throw new Error("priority must be a number");function s(){s.__isTomb=!0;var o=t.apply(i,arguments);return r.off(n,s),o}s[da]=t,this.on(n,e,s)};ye.prototype.off=function(n,e){n=_e(n)?n:[n];var t=this;n.forEach(function(i){t._removeListener(i,e)})};ye.prototype.createEvent=function(n){var e=new As;return e.init(n),e};ye.prototype.fire=function(n,e){var t,i,r,s;if(s=$b.call(arguments),typeof n=="object"&&(e=n,n=e.type),!n)throw new Error("no event type specified");if(i=this._listeners[n],!!i){e instanceof As?t=e:t=this.createEvent(e),s[0]=t;var o=t.type;n!==o&&(t.type=n);try{r=this._invokeListeners(t,s,i)}finally{n!==o&&(t.type=o)}return r===void 0&&t.defaultPrevented&&(r=!1),r}};ye.prototype.handleError=function(n){return this.fire("error",{error:n})===!1};ye.prototype._destroy=function(){this._listeners={}};ye.prototype._invokeListeners=function(n,e,t){for(var i;t&&!n.cancelBubble;)i=this._invokeListener(n,e,t),t=t.next;return i};ye.prototype._invokeListener=function(n,e,t){var i;if(t.callback.__isTomb)return i;try{i=Lb(t.callback,e),i!==void 0&&(n.returnValue=i,n.stopPropagation()),i===!1&&n.preventDefault()}catch(r){if(!this.handleError(r))throw console.error("unhandled error in event listener",r),r}return i};ye.prototype._addListener=function(n,e){var t=this._getListeners(n),i;if(!t){this._setListeners(n,e);return}for(;t;){if(t.priority<e.priority){e.next=t,i?i.next=e:this._setListeners(n,e);return}i=t,t=t.next}i.next=e};ye.prototype._getListeners=function(n){return this._listeners[n]};ye.prototype._setListeners=function(n,e){this._listeners[n]=e};ye.prototype._removeListener=function(n,e){var t=this._getListeners(n),i,r,s;if(!e){this._setListeners(n,null);return}for(;t;)i=t.next,s=t.callback,(s===e||s[da]===e)&&(r?r.next=i:this._setListeners(n,i)),r=t,t=i};function As(){}As.prototype.stopPropagation=function(){this.cancelBubble=!0};As.prototype.preventDefault=function(){this.defaultPrevented=!0};As.prototype.init=function(n){D(this,n||{})};function Lb(n,e){return n.apply(null,e)}function _c(){}_c.prototype.get=function(n){return this.$model.properties.get(this,n)};_c.prototype.set=function(n,e){this.$model.properties.set(this,n,e)};function Kd(n,e){this.model=n,this.properties=e}Kd.prototype.createType=function(n){var e=this.model,t=this.properties,i=Object.create(_c.prototype);B(n.properties,function(o){!o.isMany&&o.default!==void 0&&(i[o.name]=o.default)}),t.defineModel(i,e),t.defineDescriptor(i,n);var r=n.ns.name;function s(o){t.define(this,"$type",{value:r,enumerable:!0}),t.define(this,"$attrs",{value:{}}),t.define(this,"$parent",{writable:!0}),B(o,Ft(function(a,l){this.set(l,a)},this))}return s.prototype=i,s.hasType=i.$instanceOf=this.model.hasType,t.defineModel(s,e),t.defineDescriptor(s,n),s};var Nb={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},Gd={String:function(n){return n},Boolean:function(n){return n==="true"},Integer:function(n){return parseInt(n,10)},Real:function(n){return parseFloat(n)}};function pa(n,e){var t=Gd[n];return t?t(e):e}function Ec(n){return!!Nb[n]}function Tc(n){return!!Gd[n]}function Te(n,e){var t=n.split(/:/),i,r;if(t.length===1)i=n,r=e;else if(t.length===2)i=t[1],r=t[0];else throw new Error("expected <prefix:localName> or <localName>, got "+n);return n=(r?r+":":"")+i,{name:n,prefix:r,localName:i}}function pt(n){this.ns=n,this.name=n.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}pt.prototype.build=function(){return Xd(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])};pt.prototype.addProperty=function(n,e,t){typeof e=="boolean"&&(t=e,e=void 0),this.addNamedProperty(n,t!==!1);var i=this.properties;e!==void 0?i.splice(e,0,n):i.push(n)};pt.prototype.replaceProperty=function(n,e,t){var i=n.ns,r=this.properties,s=this.propertiesByName,o=n.name!==e.name;if(n.isId){if(!e.isId)throw new Error("property <"+e.ns.name+"> must be id property to refine <"+n.ns.name+">");this.setIdProperty(e,!1)}if(n.isBody){if(!e.isBody)throw new Error("property <"+e.ns.name+"> must be body property to refine <"+n.ns.name+">");this.setBodyProperty(e,!1)}var a=r.indexOf(n);if(a===-1)throw new Error("property <"+i.name+"> not found in property list");r.splice(a,1),this.addProperty(e,t?void 0:a,o),s[i.name]=s[i.localName]=e};pt.prototype.redefineProperty=function(n,e,t){var i=n.ns.prefix,r=e.split("#"),s=Te(r[0],i),o=Te(r[1],s.prefix).name,a=this.propertiesByName[o];if(a)this.replaceProperty(a,n,t);else throw new Error("refined property <"+o+"> not found");delete n.redefines};pt.prototype.addNamedProperty=function(n,e){var t=n.ns,i=this.propertiesByName;e&&(this.assertNotDefined(n,t.name),this.assertNotDefined(n,t.localName)),i[t.name]=i[t.localName]=n};pt.prototype.removeNamedProperty=function(n){var e=n.ns,t=this.propertiesByName;delete t[e.name],delete t[e.localName]};pt.prototype.setBodyProperty=function(n,e){if(e&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+n.ns.name+">)");this.bodyProperty=n};pt.prototype.setIdProperty=function(n,e){if(e&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+n.ns.name+">)");this.idProperty=n};pt.prototype.assertNotTrait=function(n){if((n.extends||[]).length)throw new Error(`cannot create <${n.name}> extending <${n.extends}>`)};pt.prototype.assertNotDefined=function(n,e){var t=n.name,i=this.propertiesByName[t];if(i)throw new Error("property <"+t+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+n.definedBy.ns.name+"#"+n.ns.name+"> not allowed without redefines")};pt.prototype.hasProperty=function(n){return this.propertiesByName[n]};pt.prototype.addTrait=function(n,e){e&&this.assertNotTrait(n);var t=this.allTypesByName,i=this.allTypes,r=n.name;r in t||(B(n.properties,Ft(function(s){s=D({},s,{name:s.ns.localName,inherited:e}),Object.defineProperty(s,"definedBy",{value:n});var o=s.replaces,a=s.redefines;o||a?this.redefineProperty(s,o||a,o):(s.isBody&&this.setBodyProperty(s),s.isId&&this.setIdProperty(s),this.addProperty(s))},this)),i.push(n),t[r]=n)};function zn(n,e){this.packageMap={},this.typeMap={},this.packages=[],this.properties=e,B(n,Ft(this.registerPackage,this))}zn.prototype.getPackage=function(n){return this.packageMap[n]};zn.prototype.getPackages=function(){return this.packages};zn.prototype.registerPackage=function(n){n=D({},n);var e=this.packageMap;Yd(e,n,"prefix"),Yd(e,n,"uri"),B(n.types,Ft(function(t){this.registerType(t,n)},this)),e[n.uri]=e[n.prefix]=n,this.packages.push(n)};zn.prototype.registerType=function(n,e){n=D({},n,{superClass:(n.superClass||[]).slice(),extends:(n.extends||[]).slice(),properties:(n.properties||[]).slice(),meta:D(n.meta||{})});var t=Te(n.name,e.prefix),i=t.name,r={};B(n.properties,Ft(function(s){var o=Te(s.name,t.prefix),a=o.name;Ec(s.type)||(s.type=Te(s.type,o.prefix).name),D(s,{ns:o,name:a}),r[a]=s},this)),D(n,{ns:t,name:i,propertiesByName:r}),B(n.extends,Ft(function(s){var o=Te(s,t.prefix),a=this.typeMap[o.name];a.traits=a.traits||[],a.traits.push(i)},this)),this.definePackage(n,e),this.typeMap[i]=n};zn.prototype.mapTypes=function(n,e,t){var i=Ec(n.name)?{name:n.name}:this.typeMap[n.name],r=this;function s(l,c){var u=Te(l,Ec(l)?"":n.prefix);r.mapTypes(u,e,c)}function o(l){return s(l,!0)}function a(l){return s(l,!1)}if(!i)throw new Error("unknown type <"+n.name+">");B(i.superClass,t?o:a),e(i,!t),B(i.traits,o)};zn.prototype.getEffectiveDescriptor=function(n){var e=Te(n),t=new pt(e);this.mapTypes(e,function(r,s){t.addTrait(r,s)});var i=t.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i};zn.prototype.definePackage=function(n,e){this.properties.define(n,"$pkg",{value:e})};function Yd(n,e,t){var i=e[t];if(i in n)throw new Error("package with "+t+" <"+i+"> already defined")}function pi(n){this.model=n}pi.prototype.set=function(n,e,t){if(!tt(e)||!e.length)throw new TypeError("property name must be a non-empty string");var i=this.getProperty(n,e),r=i&&i.name;qb(t)?i?delete n[r]:delete n.$attrs[Ac(e)]:i?r in n?n[r]=t:Jd(n,i,t):n.$attrs[Ac(e)]=t};pi.prototype.get=function(n,e){var t=this.getProperty(n,e);if(!t)return n.$attrs[Ac(e)];var i=t.name;return!n[i]&&t.isMany&&Jd(n,t,[]),n[i]};pi.prototype.define=function(n,e,t){if(!t.writable){var i=t.value;t=D({},t,{get:function(){return i}}),delete t.value}Object.defineProperty(n,e,t)};pi.prototype.defineDescriptor=function(n,e){this.define(n,"$descriptor",{value:e})};pi.prototype.defineModel=function(n,e){this.define(n,"$model",{value:e})};pi.prototype.getProperty=function(n,e){var t=this.model,i=t.getPropertyDescriptor(n,e);if(i)return i;if(e.includes(":"))return null;let r=t.config.strict;if(typeof r!="undefined"){let s=new TypeError(`unknown property <${e}> on <${n.$type}>`);if(r)throw s;typeof console!="undefined"&&console.warn(s)}return null};function qb(n){return typeof n=="undefined"}function Jd(n,e,t){Object.defineProperty(n,e.name,{enumerable:!e.isReference,writable:!0,value:t,configurable:!0})}function Ac(n){return n.replace(/^:/,"")}function nt(n,e={}){this.properties=new pi(this),this.factory=new Kd(this,this.properties),this.registry=new zn(n,this.properties),this.typeCache={},this.config=e}nt.prototype.create=function(n,e){var t=this.getType(n);if(!t)throw new Error("unknown type <"+n+">");return new t(e)};nt.prototype.getType=function(n){var e=this.typeCache,t=tt(n)?n:n.ns.name,i=e[t];return i||(n=this.registry.getEffectiveDescriptor(t),i=e[t]=this.factory.createType(n)),i};nt.prototype.createAny=function(n,e,t){var i=Te(n),r={$type:n,$instanceOf:function(o){return o===this.$type},get:function(o){return this[o]},set:function(o,a){Hd(this,[o],a)}},s={name:n,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:e}};return this.properties.defineDescriptor(r,s),this.properties.defineModel(r,this),this.properties.define(r,"get",{enumerable:!1,writable:!0}),this.properties.define(r,"set",{enumerable:!1,writable:!0}),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),B(t,function(o,a){dt(o)&&o.value!==void 0?r[o.name]=o.value:r[a]=o}),r};nt.prototype.getPackage=function(n){return this.registry.getPackage(n)};nt.prototype.getPackages=function(){return this.registry.getPackages()};nt.prototype.getElementDescriptor=function(n){return n.$descriptor};nt.prototype.hasType=function(n,e){e===void 0&&(e=n,n=this);var t=n.$model.getElementDescriptor(n);return e in t.allTypesByName};nt.prototype.getPropertyDescriptor=function(n,e){return this.getElementDescriptor(n).propertiesByName[e]};nt.prototype.getTypeDescriptor=function(n){return this.registry.typeMap[n]};var Zd=String.fromCharCode,Fb=Object.prototype.hasOwnProperty,jb=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,_s={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(_s).forEach(function(n){_s[n.toUpperCase()]=_s[n]});function Vb(n,e,t,i){return i?Fb.call(_s,i)?_s[i]:"&"+i+";":Zd(e||parseInt(t,16))}function mi(n){return n.length>3&&n.indexOf("&")!==-1?n.replace(jb,Vb):n}var ep="non-whitespace outside of root node";function Ji(n){return new Error(n)}function tp(n){return"missing namespace for prefix <"+n+">"}function ma(n){return{get:n,enumerable:!0}}function Qb(n){var e={},t;for(t in n)e[t]=n[t];return e}function Mc(n){return n+"$uri"}function zb(n){var e={},t,i;for(t in n)i=n[t],e[i]=i,e[Mc(i)]=t;return e}function np(){return{line:0,column:0}}function Wb(n){throw n}function Rc(n){if(!this)return new Rc(n);var e=n&&n.proxy,t,i,r,s,o=Wb,a,l,c,u,f=np,h=!1,d=!1,p=null,m=!1,y;function g(b){b instanceof Error||(b=Ji(b)),p=b,o(b,f)}function w(b){a&&(b instanceof Error||(b=Ji(b)),a(b,f))}this.on=function(b,C){if(typeof C!="function")throw Ji("required args <name, cb>");switch(b){case"openTag":i=C;break;case"text":t=C;break;case"closeTag":r=C;break;case"error":o=C;break;case"warn":a=C;break;case"cdata":s=C;break;case"attention":u=C;break;case"question":c=C;break;case"comment":l=C;break;default:throw Ji("unsupported event: "+b)}return this},this.ns=function(b){if(typeof b=="undefined"&&(b={}),typeof b!="object")throw Ji("required args <nsMap={}>");var C={},k;for(k in b)C[k]=b[k];return d=!0,y=C,this},this.parse=function(b){if(typeof b!="string")throw Ji("required args <xml=string>");return p=null,x(b),f=np,m=!1,p},this.stop=function(){m=!0};function x(b){var C=d?[]:null,k=d?zb(y):null,O,v=[],A=0,S=!1,M=!1,_=0,P=0,j,oe,ee,Y,Zt,ct,Ae,ut,qe,et="",Nt=0,ft;function Fn(){if(ft!==null)return ft;var jn,fi,en,hi=d&&k.xmlns,xn=d&&h?[]:null,de=Nt,Be=et,di=Be.length,jd,Vn,bn,tn,ne,Ki={},Vd={},qt,W,te;e:for(;de<di;de++)if(qt=!1,W=Be.charCodeAt(de),!(W===32||W<14&&W>8)){for((W<65||W>122||W>90&&W<97)&&W!==95&&W!==58&&(w("illegal first char attribute name"),qt=!0),te=de+1;te<di;te++)if(W=Be.charCodeAt(te),!(W>96&&W<123||W>64&&W<91||W>47&&W<59||W===46||W===45||W===95)){if(W===32||W<14&&W>8){w("missing attribute value"),de=te;continue e}if(W===61)break;w("illegal attribute name char"),qt=!0}if(ne=Be.substring(de,te),ne==="xmlns:xmlns"&&(w("illegal declaration of xmlns"),qt=!0),W=Be.charCodeAt(te+1),W===34)te=Be.indexOf('"',de=te+2),te===-1&&(te=Be.indexOf("'",de),te!==-1&&(w("attribute value quote missmatch"),qt=!0));else if(W===39)te=Be.indexOf("'",de=te+2),te===-1&&(te=Be.indexOf('"',de),te!==-1&&(w("attribute value quote missmatch"),qt=!0));else for(w("missing attribute value quotes"),qt=!0,te=te+1;te<di&&(W=Be.charCodeAt(te+1),!(W===32||W<14&&W>8));te++);for(te===-1&&(w("missing closing quotes"),te=di,qt=!0),qt||(bn=Be.substring(de,te)),de=te;te+1<di&&(W=Be.charCodeAt(te+1),!(W===32||W<14&&W>8));te++)de===te&&(w("illegal character after attribute end"),qt=!0);if(de=te+1,qt)continue e;if(ne in Vd){w("attribute <"+ne+"> already defined");continue}if(Vd[ne]=!0,!d){Ki[ne]=bn;continue}if(h){if(Vn=ne==="xmlns"?"xmlns":ne.charCodeAt(0)===120&&ne.substr(0,6)==="xmlns:"?ne.substr(6):null,Vn!==null){if(jn=mi(bn),fi=Mc(Vn),tn=y[jn],!tn){if(Vn==="xmlns"||fi in k&&k[fi]!==jn)do tn="ns"+A++;while(typeof k[tn]!="undefined");else tn=Vn;y[jn]=tn}k[Vn]!==tn&&(jd||(k=Qb(k),jd=!0),k[Vn]=tn,Vn==="xmlns"&&(k[Mc(tn)]=jn,hi=tn),k[fi]=jn),Ki[ne]=bn;continue}xn.push(ne,bn);continue}if(W=ne.indexOf(":"),W===-1){Ki[ne]=bn;continue}if(!(en=k[ne.substring(0,W)])){w(tp(ne.substring(0,W)));continue}ne=hi===en?ne.substr(W+1):en+ne.substr(W),Ki[ne]=bn}if(h)for(de=0,di=xn.length;de<di;de++){if(ne=xn[de++],bn=xn[de],W=ne.indexOf(":"),W!==-1){if(!(en=k[ne.substring(0,W)])){w(tp(ne.substring(0,W)));continue}ne=hi===en?ne.substr(W+1):en+ne.substr(W)}Ki[ne]=bn}return ft=Ki}function ua(){for(var jn=/(\r\n|\r|\n)/g,fi=0,en=0,hi=0,xn=P,de,Be;_>=hi&&(de=jn.exec(b),!(!de||(xn=de[0].length+de.index,xn>_)));)fi+=1,hi=xn;return _==-1?(en=xn,Be=b.substring(P)):P===0?Be=b.substring(P,_):(en=_-hi,Be=P==-1?b.substring(_):b.substring(_,P+1)),{data:Be,line:fi,column:en}}for(f=ua,e&&(qe=Object.create({},{name:ma(function(){return Ae}),originalName:ma(function(){return ut}),attrs:ma(Fn),ns:ma(function(){return k})}));P!==-1;){if(b.charCodeAt(P)===60?_=P:_=b.indexOf("<",P),_===-1){if(v.length)return g("unexpected end of file");if(P===0)return g("missing start tag");P<b.length&&b.substring(P).trim()&&w(ep);return}if(P!==_){if(v.length){if(t&&(t(b.substring(P,_),mi,f),m))return}else if(b.substring(P,_).trim()&&(w(ep),m))return}if(Y=b.charCodeAt(_+1),Y===33){if(ee=b.charCodeAt(_+2),ee===91&&b.substr(_+3,6)==="CDATA["){if(P=b.indexOf("]]>",_),P===-1)return g("unclosed cdata");if(s&&(s(b.substring(_+9,P),f),m))return;P+=3;continue}if(ee===45&&b.charCodeAt(_+3)===45){if(P=b.indexOf("-->",_),P===-1)return g("unclosed comment");if(l&&(l(b.substring(_+4,P),mi,f),m))return;P+=3;continue}}if(Y===63){if(P=b.indexOf("?>",_),P===-1)return g("unclosed question");if(c&&(c(b.substring(_,P+2),f),m))return;P+=2;continue}for(j=_+1;;j++){if(Zt=b.charCodeAt(j),isNaN(Zt))return P=-1,g("unclosed tag");if(Zt===34)ee=b.indexOf('"',j+1),j=ee!==-1?ee:j;else if(Zt===39)ee=b.indexOf("'",j+1),j=ee!==-1?ee:j;else if(Zt===62){P=j;break}}if(Y===33){if(u&&(u(b.substring(_,P+1),mi,f),m))return;P+=1;continue}if(ft={},Y===47){if(S=!1,M=!0,!v.length)return g("missing open tag");if(j=Ae=v.pop(),ee=_+2+j.length,b.substring(_+2,ee)!==j)return g("closing tag mismatch");for(;ee<P;ee++)if(Y=b.charCodeAt(ee),!(Y===32||Y>8&&Y<14))return g("close tag")}else{if(b.charCodeAt(P-1)===47?(j=Ae=b.substring(_+1,P-1),S=!0,M=!0):(j=Ae=b.substring(_+1,P),S=!0,M=!1),!(Y>96&&Y<123||Y>64&&Y<91||Y===95||Y===58))return g("illegal first char nodeName");for(ee=1,oe=j.length;ee<oe;ee++)if(Y=j.charCodeAt(ee),!(Y>96&&Y<123||Y>64&&Y<91||Y>47&&Y<59||Y===45||Y===95||Y==46)){if(Y===32||Y<14&&Y>8){Ae=j.substring(0,ee),ft=null;break}return g("invalid nodeName")}M||v.push(Ae)}if(d){if(O=k,S&&(M||C.push(O),ft===null&&(h=j.indexOf("xmlns",ee)!==-1)&&(Nt=ee,et=j,Fn(),h=!1)),ut=Ae,Y=Ae.indexOf(":"),Y!==-1){if(ct=k[Ae.substring(0,Y)],!ct)return g("missing namespace on <"+ut+">");Ae=Ae.substr(Y+1)}else ct=k.xmlns;ct&&(Ae=ct+":"+Ae)}if(S&&(Nt=ee,et=j,i&&(e?i(qe,mi,M,f):i(Ae,Fn,mi,M,f),m)))return;if(M){if(r&&(r(e?qe:Ae,mi,S,f),m))return;d&&(S?k=O:k=C.pop())}P+=1}}}function ip(n){return n.xml&&n.xml.tagAlias==="lowerCase"}var Pc={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},rp="property";function sp(n){return n.xml&&n.xml.serialize}function Hb(n){let e=sp(n);return e!==rp&&(e||null)}function Xb(n){return n.charAt(0).toUpperCase()+n.slice(1)}function op(n,e){return ip(e)?n.prefix+":"+Xb(n.localName):n.name}function Ub(n,e){var t=n.name,i=n.localName,r=e&&e.xml&&e.xml.typePrefix;return r&&i.indexOf(r)===0?n.prefix+":"+i.slice(r.length):t}function Yb(n,e,t){let i=Te(n,e.xmlns),r=`${e[i.prefix]||i.prefix}:${i.localName}`,s=Te(r);var o=t.getPackage(s.prefix);return Ub(s,o)}function Wn(n){return new Error(n)}function wn(n){return n.$descriptor}function Kb(n){D(this,n),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw Wn("expected element");var t=this.elementsById,i=wn(e),r=i.idProperty,s;if(r&&(s=e.get(r.name),s)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(s))throw new Error("illegal ID <"+s+">");if(t[s])throw Wn("duplicate ID <"+s+">");t[s]=e}},this.addWarning=function(e){this.warnings.push(e)}}function Ts(){}Ts.prototype.handleEnd=function(){};Ts.prototype.handleText=function(){};Ts.prototype.handleNode=function(){};function Dc(){}Dc.prototype=Object.create(Ts.prototype);Dc.prototype.handleNode=function(){return this};function er(){}er.prototype=Object.create(Ts.prototype);er.prototype.handleText=function(n){this.body=(this.body||"")+n};function Ms(n,e){this.property=n,this.context=e}Ms.prototype=Object.create(er.prototype);Ms.prototype.handleNode=function(n){if(this.element)throw Wn("expected no sub nodes");return this.element=this.createReference(n),this};Ms.prototype.handleEnd=function(){this.element.id=this.body};Ms.prototype.createReference=function(n){return{property:this.property.ns.name,id:""}};function Bc(n,e){this.element=e,this.propertyDesc=n}Bc.prototype=Object.create(er.prototype);Bc.prototype.handleEnd=function(){var n=this.body||"",e=this.element,t=this.propertyDesc;n=pa(t.type,n),t.isMany?e.get(t.name).push(n):e.set(t.name,n)};function ga(){}ga.prototype=Object.create(er.prototype);ga.prototype.handleNode=function(n){var e=this,t=this.element;return t?e=this.handleChild(n):(t=this.element=this.createElement(n),this.context.addElement(t)),e};function Fe(n,e,t){this.model=n,this.type=n.getType(e),this.context=t}Fe.prototype=Object.create(ga.prototype);Fe.prototype.addReference=function(n){this.context.addReference(n)};Fe.prototype.handleText=function(n){var e=this.element,t=wn(e),i=t.bodyProperty;if(!i)throw Wn("unexpected body text <"+n+">");er.prototype.handleText.call(this,n)};Fe.prototype.handleEnd=function(){var n=this.body,e=this.element,t=wn(e),i=t.bodyProperty;i&&n!==void 0&&(n=pa(i.type,n),e.set(i.name,n))};Fe.prototype.createElement=function(n){var e=n.attributes,t=this.type,i=wn(t),r=this.context,s=new t({}),o=this.model,a;return B(e,function(l,c){var u=i.propertiesByName[c],f;u&&u.isReference?u.isMany?(f=l.split(" "),B(f,function(h){r.addReference({element:s,property:u.ns.name,id:h})})):r.addReference({element:s,property:u.ns.name,id:l}):(u?l=pa(u.type,l):c==="xmlns"?c=":"+c:(a=Te(c,i.ns.prefix),o.getPackage(a.prefix)&&r.addWarning({message:"unknown attribute <"+c+">",element:s,property:c,value:l})),s.set(c,l))}),s};Fe.prototype.getPropertyForNode=function(n){var e=n.name,t=Te(e),i=this.type,r=this.model,s=wn(i),o=t.name,a=s.propertiesByName[o];if(a&&!a.isAttr){let c=Hb(a);if(c){let u=n.attributes[c];if(u){let f=Yb(u,n.ns,r),h=r.getType(f);return D({},a,{effectiveType:wn(h).name})}}return a}var l=r.getPackage(t.prefix);if(l){let c=op(t,l),u=r.getType(c);if(a=we(s.properties,function(f){return!f.isVirtual&&!f.isReference&&!f.isAttribute&&u.hasType(f.type)}),a)return D({},a,{effectiveType:wn(u).name})}else if(a=we(s.properties,function(c){return!c.isReference&&!c.isAttribute&&c.type==="Element"}),a)return a;throw Wn("unrecognized element <"+t.name+">")};Fe.prototype.toString=function(){return"ElementDescriptor["+wn(this.type).name+"]"};Fe.prototype.valueHandler=function(n,e){return new Bc(n,e)};Fe.prototype.referenceHandler=function(n){return new Ms(n,this.context)};Fe.prototype.handler=function(n){return n==="Element"?new Zi(this.model,n,this.context):new Fe(this.model,n,this.context)};Fe.prototype.handleChild=function(n){var e,t,i,r;if(e=this.getPropertyForNode(n),i=this.element,t=e.effectiveType||e.type,Tc(t))return this.valueHandler(e,i);e.isReference?r=this.referenceHandler(e).handleNode(n):r=this.handler(t).handleNode(n);var s=r.element;return s!==void 0&&(e.isMany?i.get(e.name).push(s):i.set(e.name,s),e.isReference?(D(s,{element:i}),this.context.addReference(s)):s.$parent=i),r};function Ic(n,e,t){Fe.call(this,n,e,t)}Ic.prototype=Object.create(Fe.prototype);Ic.prototype.createElement=function(n){var e=n.name,t=Te(e),i=this.model,r=this.type,s=i.getPackage(t.prefix),o=s&&op(t,s)||e;if(!r.hasType(o))throw Wn("unexpected element <"+n.originalName+">");return Fe.prototype.createElement.call(this,n)};function Zi(n,e,t){this.model=n,this.context=t}Zi.prototype=Object.create(ga.prototype);Zi.prototype.createElement=function(n){var e=n.name,t=Te(e),i=t.prefix,r=n.ns[i+"$uri"],s=n.attributes;return this.model.createAny(e,r,s)};Zi.prototype.handleChild=function(n){var e=new Zi(this.model,"Element",this.context).handleNode(n),t=this.element,i=e.element,r;return i!==void 0&&(r=t.$children=t.$children||[],r.push(i),i.$parent=t),e};Zi.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function ya(n){n instanceof nt&&(n={model:n}),D(this,{lax:!1},n)}ya.prototype.fromXML=function(n,e,t){var i=e.rootHandler;e instanceof Fe?(i=e,e={}):typeof e=="string"?(i=this.handler(e),e={}):typeof i=="string"&&(i=this.handler(i));var r=this.model,s=this.lax,o=new Kb(D({},e,{rootHandler:i})),a=new Rc({proxy:!0}),l=Gb();i.context=o,l.push(i);function c(C,k,O){var v=k(),A=v.line,S=v.column,M=v.data;M.charAt(0)==="<"&&M.indexOf(" ")!==-1&&(M=M.slice(0,M.indexOf(" "))+">");var _="unparsable content "+(M?M+" ":"")+`detected method in Kd
H A Ddmn-modeler.production.min.js8 */var R5=/["'&<>]/;TR.exports=T5;function T5(n){var e=""+n,t=R5.exec(e);if(!t)return e;var i,r="",o=0,s=0;for(o=t.index;o<e.length;o++){switch(e.charCodeAt(o)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}s!==o&&(r+=e.substring(s,o)),s=o+1,r+=i}return s!==o?r+e.substring(s,o):r}});function Dw(n){return Array.prototype.concat.apply([],n)}var zu=Object.prototype.toString,KD=Object.prototype.hasOwnProperty;function Hu(n){return n===void 0}function Me(n){return n!==void 0}function Yr(n){return n==null}function F(n){return zu.call(n)==="[object Array]"}function Pe(n){return zu.call(n)==="[object Object]"}function se(n){return zu.call(n)==="[object Number]"}function ge(n){let e=zu.call(n);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"||e==="[object Proxy]"}function Ie(n){return zu.call(n)==="[object String]"}function Zr(n,e){return!Yr(n)&&KD.call(n,e)}function ye(n,e){let t=Xy(e),i;return k(n,function(r,o){if(t(r,o))return i=r,!1}),i}function Iw(n,e){let t=Xy(e),i=F(n)?-1:void 0;return k(n,function(r,o){if(t(r,o))return i=o,!1}),i}function Ee(n,e){let t=Xy(e),i=[];return k(n,function(r,o){t(r,o)&&i.push(r)}),i}function k(n,e){let t,i;if(Hu(n))return;let r=F(n)?XD:GD;for(let o in n)if(Zr(n,o)&&(t=n[o],i=e(t,r(o)),i===!1))return t}function st(n,e,t){return k(n,function(i,r){t=e(t,i,r)}),t}function kt(n,e){return!!st(n,function(t,i,r){return t&&e(i,r)},!0)}function zd(n,e){return!!ye(n,e)}function Vt(n,e){let t=[];return k(n,function(i,r){t.push(e(i,r))}),t}function di(n){return n&&Object.keys(n)||[]}function Lw(n){return di(n).length}function Wu(n){return Vt(n,e=>e)}function ur(n,e,t={}){return e=Gy(e),k(n,function(i){let r=e(i)||"_",o=t[r];o||(o=t[r]=[]),o.push(i)}),t}function Bw(n,...e){n=Gy(n);let t={};return k(e,r=>ur(r,n,t)),Vt(t,function(r,o){return r[0]})}function Fn(n,e){e=Gy(e);let t=[];return k(n,function(i,r){let o=e(i,r),s={d:o,v:i};for(var a=0;a<t.length;a++){let{d:l}=t[a];if(o<l){t.splice(a,0,s);return}}t.push(s)}),Vt(t,i=>i.v)}function la(n){return function(e){return kt(n,function(t,i){return e[i]===t})}}function Gy(n){return ge(n)?n:e=>e[n]}function Xy(n){return ge(n)?n:e=>e===n}function GD(n){return n}function XD(n){return Number(n)}function Mi(n,e){let t,i,r,o;function s(f){let h=Date.now(),d=f?0:o+e-h;if(d>0)return a(d);n.apply(r,i),l()}function a(f){t=setTimeout(s,f)}function l(){t&&clearTimeout(t),t=o=i=r=void 0}function c(){t&&s(!0),l()}function u(...f){o=Date.now(),i=f,r=this,t||a(e)}return u.flush=c,u.cancel=l,u}function Nw(n,e){let t=!1;return function(...i){t||(n(...i),t=!0,setTimeout(()=>{t=!1},e))}}function at(n,e){return n.bind(e)}function T(n,...e){return Object.assign(n,...e)}function $w(n,e,t){let i=n;return k(e,function(r,o){if(typeof r!="number"&&typeof r!="string")throw new Error("illegal key type: "+typeof r+". Key should be of type number or string.");if(r==="constructor")throw new Error("illegal key: constructor");if(r==="__proto__")throw new Error("illegal key: __proto__");let s=e[o+1],a=i[r];Me(s)&&Yr(a)&&(a=i[r]=isNaN(+s)?{}:[]),Hu(s)?Hu(t)?delete i[r]:i[r]=t:i=a}),n}function hn(n,e){let t={},i=Object(n);return k(e,function(r){r in i&&(t[r]=n[r])}),t}function Uu(n,e){let t={},i=Object(n);return k(i,function(r,o){e.indexOf(o)===-1&&(t[o]=r)}),t}var Wd="__fn",jw=1e3,YD=Array.prototype.slice;function ut(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}ut.prototype.on=function(n,e,t,i){if(n=F(n)?n:[n],ge(e)&&(i=t,t=e,e=jw),!se(e))throw new Error("priority must be a number");var r=t;i&&(r=at(t,i),r[Wd]=t[Wd]||t);var o=this;n.forEach(function(s){o._addListener(s,{priority:e,callback:r,next:null})})};ut.prototype.once=function(n,e,t,i){var r=this;if(ge(e)&&(i=t,t=e,e=jw),!se(e))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var s=t.apply(i,arguments);return r.off(n,o),s}o[Wd]=t,this.on(n,e,o)};ut.prototype.off=function(n,e){n=F(n)?n:[n];var t=this;n.forEach(function(i){t._removeListener(i,e)})};ut.prototype.createEvent=function(n){var e=new Qu;return e.init(n),e};ut.prototype.fire=function(n,e){var t,i,r,o;if(o=YD.call(arguments),typeof n=="object"&&(e=n,n=e.type),!n)throw new Error("no event type specified");if(i=this._listeners[n],!!i){e instanceof Qu?t=e:t=this.createEvent(e),o[0]=t;var s=t.type;n!==s&&(t.type=n);try{r=this._invokeListeners(t,o,i)}finally{n!==s&&(t.type=s)}return r===void 0&&t.defaultPrevented&&(r=!1),r}};ut.prototype.handleError=function(n){return this.fire("error",{error:n})===!1};ut.prototype._destroy=function(){this._listeners={}};ut.prototype._invokeListeners=function(n,e,t){for(var i;t&&!n.cancelBubble;)i=this._invokeListener(n,e,t),t=t.next;return i};ut.prototype._invokeListener=function(n,e,t){var i;if(t.callback.__isTomb)return i;try{i=ZD(t.callback,e),i!==void 0&&(n.returnValue=i,n.stopPropagation()),i===!1&&n.preventDefault()}catch(r){if(!this.handleError(r))throw console.error("unhandled error in event listener",r),r}return i};ut.prototype._addListener=function(n,e){var t=this._getListeners(n),i;if(!t){this._setListeners(n,e);return}for(;t;){if(t.priority<e.priority){e.next=t,i?i.next=e:this._setListeners(n,e);return}i=t,t=t.next}i.next=e};ut.prototype._getListeners=function(n){return this._listeners[n]};ut.prototype._setListeners=function(n,e){this._listeners[n]=e};ut.prototype._removeListener=function(n,e){var t=this._getListeners(n),i,r,o;if(!e){this._setListeners(n,null);return}for(;t;)i=t.next,o=t.callback,(o===e||o[Wd]===e)&&(r?r.next=i:this._setListeners(n,i)),r=t,t=i};function Qu(){}Qu.prototype.stopPropagation=function(){this.cancelBubble=!0};Qu.prototype.preventDefault=function(){this.defaultPrevented=!0};Qu.prototype.init=function(n){T(this,n||{})};function ZD(n,e){return n.apply(null,e)}function Jy(){}Jy.prototype.get=function(n){return this.$model.properties.get(this,n)};Jy.prototype.set=function(n,e){this.$model.properties.set(this,n,e)};function qw(n,e){this.model=n,this.properties=e}qw.prototype.createType=function(n){var e=this.model,t=this.properties,i=Object.create(Jy.prototype);k(n.properties,function(s){!s.isMany&&s.default!==void 0&&(i[s.name]=s.default)}),t.defineModel(i,e),t.defineDescriptor(i,n);var r=n.ns.name;function o(s){t.define(this,"$type",{value:r,enumerable:!0}),t.define(this,"$attrs",{value:{}}),t.define(this,"$parent",{writable:!0}),k(s,at(function(a,l){this.set(l,a)},this))}return o.prototype=i,o.hasType=i.$instanceOf=this.model.hasType,t.defineModel(o,e),t.defineDescriptor(o,n),o};var JD={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},Vw={String:function(n){return n},Boolean:function(n){return n==="true"},Integer:function(n){return parseInt(n,10)},Real:function(n){return parseFloat(n)}};function Ud(n,e){var t=Vw[n];return t?t(e):e}function Yy(n){return!!JD[n]}function ev(n){return!!Vw[n]}function Rt(n,e){var t=n.split(/:/),i,r;if(t.length===1)i=n,r=e;else if(t.length===2)i=t[1],r=t[0];else throw new Error("expected <prefix:localName> or <localName>, got "+n);return n=(r?r+":":"")+i,{name:n,prefix:r,localName:i}}function Cn(n){this.ns=n,this.name=n.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}Cn.prototype.build=function(){return hn(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])};Cn.prototype.addProperty=function(n,e,t){typeof e=="boolean"&&(t=e,e=void 0),this.addNamedProperty(n,t!==!1);var i=this.properties;e!==void 0?i.splice(e,0,n):i.push(n)};Cn.prototype.replaceProperty=function(n,e,t){var i=n.ns,r=this.properties,o=this.propertiesByName,s=n.name!==e.name;if(n.isId){if(!e.isId)throw new Error("property <"+e.ns.name+"> must be id property to refine <"+n.ns.name+">");this.setIdProperty(e,!1)}if(n.isBody){if(!e.isBody)throw new Error("property <"+e.ns.name+"> must be body property to refine <"+n.ns.name+">");this.setBodyProperty(e,!1)}var a=r.indexOf(n);if(a===-1)throw new Error("property <"+i.name+"> not found in property list");r.splice(a,1),this.addProperty(e,t?void 0:a,s),o[i.name]=o[i.localName]=e};Cn.prototype.redefineProperty=function(n,e,t){var i=n.ns.prefix,r=e.split("#"),o=Rt(r[0],i),s=Rt(r[1],o.prefix).name,a=this.propertiesByName[s];if(a)this.replaceProperty(a,n,t);else throw new Error("refined property <"+s+"> not found");delete n.redefines};Cn.prototype.addNamedProperty=function(n,e){var t=n.ns,i=this.propertiesByName;e&&(this.assertNotDefined(n,t.name),this.assertNotDefined(n,t.localName)),i[t.name]=i[t.localName]=n};Cn.prototype.removeNamedProperty=function(n){var e=n.ns,t=this.propertiesByName;delete t[e.name],delete t[e.localName]};Cn.prototype.setBodyProperty=function(n,e){if(e&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+n.ns.name+">)");this.bodyProperty=n};Cn.prototype.setIdProperty=function(n,e){if(e&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+n.ns.name+">)");this.idProperty=n};Cn.prototype.assertNotTrait=function(n){if((n.extends||[]).length)throw new Error(`cannot create <${n.name}> extending <${n.extends}>`)};Cn.prototype.assertNotDefined=function(n,e){var t=n.name,i=this.propertiesByName[t];if(i)throw new Error("property <"+t+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+n.definedBy.ns.name+"#"+n.ns.name+"> not allowed without redefines")};Cn.prototype.hasProperty=function(n){return this.propertiesByName[n]};Cn.prototype.addTrait=function(n,e){e&&this.assertNotTrait(n);var t=this.allTypesByName,i=this.allTypes,r=n.name;r in t||(k(n.properties,at(function(o){o=T({},o,{name:o.ns.localName,inherited:e}),Object.defineProperty(o,"definedBy",{value:n});var s=o.replaces,a=o.redefines;s||a?this.redefineProperty(o,s||a,s):(o.isBody&&this.setBodyProperty(o),o.isId&&this.setIdProperty(o),this.addProperty(o))},this)),i.push(n),t[r]=n)};function Jr(n,e){this.packageMap={},this.typeMap={},this.packages=[],this.properties=e,k(n,at(this.registerPackage,this))}Jr.prototype.getPackage=function(n){return this.packageMap[n]};Jr.prototype.getPackages=function(){return this.packages};Jr.prototype.registerPackage=function(n){n=T({},n);var e=this.packageMap;Fw(e,n,"prefix"),Fw(e,n,"uri"),k(n.types,at(function(t){this.registerType(t,n)},this)),e[n.uri]=e[n.prefix]=n,this.packages.push(n)};Jr.prototype.registerType=function(n,e){n=T({},n,{superClass:(n.superClass||[]).slice(),extends:(n.extends||[]).slice(),properties:(n.properties||[]).slice(),meta:T(n.meta||{})});var t=Rt(n.name,e.prefix),i=t.name,r={};k(n.properties,at(function(o){var s=Rt(o.name,t.prefix),a=s.name;Yy(o.type)||(o.type=Rt(o.type,s.prefix).name),T(o,{ns:s,name:a}),r[a]=o},this)),T(n,{ns:t,name:i,propertiesByName:r}),k(n.extends,at(function(o){var s=Rt(o,t.prefix),a=this.typeMap[s.name];a.traits=a.traits||[],a.traits.push(i)},this)),this.definePackage(n,e),this.typeMap[i]=n};Jr.prototype.mapTypes=function(n,e,t){var i=Yy(n.name)?{name:n.name}:this.typeMap[n.name],r=this;function o(l,c){var u=Rt(l,Yy(l)?"":n.prefix);r.mapTypes(u,e,c)}function s(l){return o(l,!0)}function a(l){return o(l,!1)}if(!i)throw new Error("unknown type <"+n.name+">");k(i.superClass,t?s:a),e(i,!t),k(i.traits,s)};Jr.prototype.getEffectiveDescriptor=function(n){var e=Rt(n),t=new Cn(e);this.mapTypes(e,function(r,o){t.addTrait(r,o)});var i=t.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i};Jr.prototype.definePackage=function(n,e){this.properties.define(n,"$pkg",{value:e})};function Fw(n,e,t){var i=e[t];if(i in n)throw new Error("package with "+t+" <"+i+"> already defined")}function es(n){this.model=n}es.prototype.set=function(n,e,t){if(!Ie(e)||!e.length)throw new TypeError("property name must be a non-empty string");var i=this.getProperty(n,e),r=i&&i.name;eI(t)?i?delete n[r]:delete n.$attrs[Zy(e)]:i?r in n?n[r]=t:Hw(n,i,t):n.$attrs[Zy(e)]=t};es.prototype.get=function(n,e){var t=this.getProperty(n,e);if(!t)return n.$attrs[Zy(e)];var i=t.name;return!n[i]&&t.isMany&&Hw(n,t,[]),n[i]};es.prototype.define=function(n,e,t){if(!t.writable){var i=t.value;t=T({},t,{get:function(){return i}}),delete t.value}Object.defineProperty(n,e,t)};es.prototype.defineDescriptor=function(n,e){this.define(n,"$descriptor",{value:e})};es.prototype.defineModel=function(n,e){this.define(n,"$model",{value:e})};es.prototype.getProperty=function(n,e){var t=this.model,i=t.getPropertyDescriptor(n,e);if(i)return i;if(e.includes(":"))return null;let r=t.config.strict;if(typeof r!="undefined"){let o=new TypeError(`unknown property <${e}> on <${n.$type}>`);if(r)throw o;typeof console!="undefined"&&console.warn(o)}return null};function eI(n){return typeof n=="undefined"}function Hw(n,e,t){Object.defineProperty(n,e.name,{enumerable:!e.isReference,writable:!0,value:t,configurable:!0})}function Zy(n){return n.replace(/^:/,"")}function dn(n,e={}){this.properties=new es(this),this.factory=new qw(this,this.properties),this.registry=new Jr(n,this.properties),this.typeCache={},this.config=e}dn.prototype.create=function(n,e){var t=this.getType(n);if(!t)throw new Error("unknown type <"+n+">");return new t(e)};dn.prototype.getType=function(n){var e=this.typeCache,t=Ie(n)?n:n.ns.name,i=e[t];return i||(n=this.registry.getEffectiveDescriptor(t),i=e[t]=this.factory.createType(n)),i};dn.prototype.createAny=function(n,e,t){var i=Rt(n),r={$type:n,$instanceOf:function(s){return s===this.$type},get:function(s){return this[s]},set:function(s,a){$w(this,[s],a)}},o={name:n,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:e}};return this.properties.defineDescriptor(r,o),this.properties.defineModel(r,this),this.properties.define(r,"get",{enumerable:!1,writable:!0}),this.properties.define(r,"set",{enumerable:!1,writable:!0}),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),k(t,function(s,a){Pe(s)&&s.value!==void 0?r[s.name]=s.value:r[a]=s}),r};dn.prototype.getPackage=function(n){return this.registry.getPackage(n)};dn.prototype.getPackages=function(){return this.registry.getPackages()};dn.prototype.getElementDescriptor=function(n){return n.$descriptor};dn.prototype.hasType=function(n,e){e===void 0&&(e=n,n=this);var t=n.$model.getElementDescriptor(n);return e in t.allTypesByName};dn.prototype.getPropertyDescriptor=function(n,e){return this.getElementDescriptor(n).propertiesByName[e]};dn.prototype.getTypeDescriptor=function(n){return this.registry.typeMap[n]};var zw=String.fromCharCode,tI=Object.prototype.hasOwnProperty,nI=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,Ku={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(Ku).forEach(function(n){Ku[n.toUpperCase()]=Ku[n]});function iI(n,e,t,i){return i?tI.call(Ku,i)?Ku[i]:"&"+i+";":zw(e||parseInt(t,16))}function ts(n){return n.length>3&&n.indexOf("&")!==-1?n.replace(nI,iI):n}var Ww="non-whitespace outside of root node";function ca(n){return new Error(n)}function Uw(n){return"missing namespace for prefix <"+n+">"}function Qd(n){return{get:n,enumerable:!0}}function rI(n){var e={},t;for(t in n)e[t]=n[t];return e}function tv(n){return n+"$uri"}function oI(n){var e={},t,i;for(t in n)i=n[t],e[i]=i,e[tv(i)]=t;return e}function Qw(){return{line:0,column:0}}function sI(n){throw n}function nv(n){if(!this)return new nv(n);var e=n&&n.proxy,t,i,r,o,s=sI,a,l,c,u,f=Qw,h=!1,d=!1,p=null,m=!1,g;function b(x){x instanceof Error||(x=ca(x)),p=x,s(x,f)}function _(x){a&&(x instanceof Error||(x=ca(x)),a(x,f))}this.on=function(x,C){if(typeof C!="function")throw ca("required args <name, cb>");switch(x){case"openTag":i=C;break;case"text":t=C;break;case"closeTag":r=C;break;case"error":s=C;break;case"warn":a=C;break;case"cdata":o=C;break;case"attention":u=C;break;case"question":c=C;break;case"comment":l=C;break;default:throw ca("unsupported event: "+x)}return this},this.ns=function(x){if(typeof x=="undefined"&&(x={}),typeof x!="object")throw ca("required args <nsMap={}>");var C={},E;for(E in x)C[E]=x[E];return d=!0,g=C,this},this.parse=function(x){if(typeof x!="string")throw ca("required args <xml=string>");return p=null,v(x),f=Qw,m=!1,p},this.stop=function(){m=!0};function v(x){var C=d?[]:null,E=d?oI(g):null,S,w=[],R=0,A=!1,I=!1,D=0,N=0,W,Re,_e,ue,re,me,Ue,$e,Ct,Nt="",fn=0,ct;function Ti(){if(ct!==null)return ct;var fi,$n,jn,ar=d&&E.xmlns,lr=d&&h?[]:null,Je=fn,$t=Nt,Jo=$t.length,Tw,Xr,cr,Ai,Ae,aa={},Aw={},hi,oe,Oe;e:for(;Je<Jo;Je++)if(hi=!1,oe=$t.charCodeAt(Je),!(oe===32||oe<14&&oe>8)){for((oe<65||oe>122||oe>90&&oe<97)&&oe!==95&&oe!==58&&(_("illegal first char attribute name"),hi=!0),Oe=Je+1;Oe<Jo;Oe++)if(oe=$t.charCodeAt(Oe),!(oe>96&&oe<123||oe>64&&oe<91||oe>47&&oe<59||oe===46||oe===45||oe===95)){if(oe===32||oe<14&&oe>8){_("missing attribute value"),Je=Oe;continue e}if(oe===61)break;_("illegal attribute name char"),hi=!0}if(Ae=$t.substring(Je,Oe),Ae==="xmlns:xmlns"&&(_("illegal declaration of xmlns"),hi=!0),oe=$t.charCodeAt(Oe+1),oe===34)Oe=$t.indexOf('"',Je=Oe+2),Oe===-1&&(Oe=$t.indexOf("'",Je),Oe!==-1&&(_("attribute value quote missmatch"),hi=!0));else if(oe===39)Oe=$t.indexOf("'",Je=Oe+2),Oe===-1&&(Oe=$t.indexOf('"',Je),Oe!==-1&&(_("attribute value quote missmatch"),hi=!0));else for(_("missing attribute value quotes"),hi=!0,Oe=Oe+1;Oe<Jo&&(oe=$t.charCodeAt(Oe+1),!(oe===32||oe<14&&oe>8));Oe++);for(Oe===-1&&(_("missing closing quotes"),Oe=Jo,hi=!0),hi||(cr=$t.substring(Je,Oe)),Je=Oe;Oe+1<Jo&&(oe=$t.charCodeAt(Oe+1),!(oe===32||oe<14&&oe>8));Oe++)Je===Oe&&(_("illegal character after attribute end"),hi=!0);if(Je=Oe+1,hi)continue e;if(Ae in Aw){_("attribute <"+Ae+"> already defined");continue}if(Aw[Ae]=!0,!d){aa[Ae]=cr;continue}if(h){if(Xr=Ae==="xmlns"?"xmlns":Ae.charCodeAt(0)===120&&Ae.substr(0,6)==="xmlns:"?Ae.substr(6):null,Xr!==null){if(fi=ts(cr),$n=tv(Xr),Ai=g[fi],!Ai){if(Xr==="xmlns"||$n in E&&E[$n]!==fi)do Ai="ns"+R++;while(typeof E[Ai]!="undefined");else Ai=Xr;g[fi]=Ai}E[Xr]!==Ai&&(Tw||(E=rI(E),Tw=!0),E[Xr]=Ai,Xr==="xmlns"&&(E[tv(Ai)]=fi,ar=Ai),E[$n]=fi),aa[Ae]=cr;continue}lr.push(Ae,cr);continue}if(oe=Ae.indexOf(":"),oe===-1){aa[Ae]=cr;continue}if(!(jn=E[Ae.substring(0,oe)])){_(Uw(Ae.substring(0,oe)));continue}Ae=ar===jn?Ae.substr(oe+1):jn+Ae.substr(oe),aa[Ae]=cr}if(h)for(Je=0,Jo=lr.length;Je<Jo;Je++){if(Ae=lr[Je++],cr=lr[Je],oe=Ae.indexOf(":"),oe!==-1){if(!(jn=E[Ae.substring(0,oe)])){_(Uw(Ae.substring(0,oe)));continue}Ae=ar===jn?Ae.substr(oe+1):jn+Ae.substr(oe)}aa[Ae]=cr}return ct=aa}function Zo(){for(var fi=/(\r\n|\r|\n)/g,$n=0,jn=0,ar=0,lr=N,Je,$t;D>=ar&&(Je=fi.exec(x),!(!Je||(lr=Je[0].length+Je.index,lr>D)));)$n+=1,ar=lr;return D==-1?(jn=lr,$t=x.substring(N)):N===0?$t=x.substring(N,D):(jn=D-ar,$t=N==-1?x.substring(D):x.substring(D,N+1)),{data:$t,line:$n,column:jn}}for(f=Zo,e&&(Ct=Object.create({},{name:Qd(function(){return Ue}),originalName:Qd(function(){return $e}),attrs:Qd(Ti),ns:Qd(function(){return E})}));N!==-1;){if(x.charCodeAt(N)===60?D=N:D=x.indexOf("<",N),D===-1){if(w.length)return b("unexpected end of file");if(N===0)return b("missing start tag");N<x.length&&x.substring(N).trim()&&_(Ww);return}if(N!==D){if(w.length){if(t&&(t(x.substring(N,D),ts,f),m))return}else if(x.substring(N,D).trim()&&(_(Ww),m))return}if(ue=x.charCodeAt(D+1),ue===33){if(_e=x.charCodeAt(D+2),_e===91&&x.substr(D+3,6)==="CDATA["){if(N=x.indexOf("]]>",D),N===-1)return b("unclosed cdata");if(o&&(o(x.substring(D+9,N),f),m))return;N+=3;continue}if(_e===45&&x.charCodeAt(D+3)===45){if(N=x.indexOf("-->",D),N===-1)return b("unclosed comment");if(l&&(l(x.substring(D+4,N),ts,f),m))return;N+=3;continue}}if(ue===63){if(N=x.indexOf("?>",D),N===-1)return b("unclosed question");if(c&&(c(x.substring(D,N+2),f),m))return;N+=2;continue}for(W=D+1;;W++){if(re=x.charCodeAt(W),isNaN(re))return N=-1,b("unclosed tag");if(re===34)_e=x.indexOf('"',W+1),W=_e!==-1?_e:W;else if(re===39)_e=x.indexOf("'",W+1),W=_e!==-1?_e:W;else if(re===62){N=W;break}}if(ue===33){if(u&&(u(x.substring(D,N+1),ts,f),m))return;N+=1;continue}if(ct={},ue===47){if(A=!1,I=!0,!w.length)return b("missing open tag");if(W=Ue=w.pop(),_e=D+2+W.length,x.substring(D+2,_e)!==W)return b("closing tag mismatch");for(;_e<N;_e++)if(ue=x.charCodeAt(_e),!(ue===32||ue>8&&ue<14))return b("close tag")}else{if(x.charCodeAt(N-1)===47?(W=Ue=x.substring(D+1,N-1),A=!0,I=!0):(W=Ue=x.substring(D+1,N),A=!0,I=!1),!(ue>96&&ue<123||ue>64&&ue<91||ue===95||ue===58))return b("illegal first char nodeName");for(_e=1,Re=W.length;_e<Re;_e++)if(ue=W.charCodeAt(_e),!(ue>96&&ue<123||ue>64&&ue<91||ue>47&&ue<59||ue===45||ue===95||ue==46)){if(ue===32||ue<14&&ue>8){Ue=W.substring(0,_e),ct=null;break}return b("invalid nodeName")}I||w.push(Ue)}if(d){if(S=E,A&&(I||C.push(S),ct===null&&(h=W.indexOf("xmlns",_e)!==-1)&&(fn=_e,Nt=W,Ti(),h=!1)),$e=Ue,ue=Ue.indexOf(":"),ue!==-1){if(me=E[Ue.substring(0,ue)],!me)return b("missing namespace on <"+$e+">");Ue=Ue.substr(ue+1)}else me=E.xmlns;me&&(Ue=me+":"+Ue)}if(A&&(fn=_e,Nt=W,i&&(e?i(Ct,ts,I,f):i(Ue,Ti,ts,I,f),m)))return;if(I){if(r&&(r(e?Ct:Ue,ts,A,f),m))return;d&&(A?E=S:E=C.pop())}N+=1}}}function Kw(n){return n.xml&&n.xml.tagAlias==="lowerCase"}var iv={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Gw="property";function Xw(n){return n.xml&&n.xml.serialize}function aI(n){let e=Xw(n);return e!==Gw&&(e||null)}function lI(n){return n.charAt(0).toUpperCase()+n.slice(1)}function Yw(n,e){return Kw(e)?n.prefix+":"+lI(n.localName):n.name}function cI(n,e){var t=n.name,i=n.localName,r=e&&e.xml&&e.xml.typePrefix;return r&&i.indexOf(r)===0?n.prefix+":"+i.slice(r.length):t}function uI(n,e,t){let i=Rt(n,e.xmlns),r=`${e[i.prefix]||i.prefix}:${i.localName}`,o=Rt(r);var s=t.getPackage(o.prefix);return cI(o,s)}function eo(n){return new Error(n)}function fr(n){return n.$descriptor}function fI(n){T(this,n),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw eo("expected element");var t=this.elementsById,i=fr(e),r=i.idProperty,o;if(r&&(o=e.get(r.name),o)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(o))throw new Error("illegal ID <"+o+">");if(t[o])throw eo("duplicate ID <"+o+">");t[o]=e}},this.addWarning=function(e){this.warnings.push(e)}}function Gu(){}Gu.prototype.handleEnd=function(){};Gu.prototype.handleText=function(){};Gu.prototype.handleNode=function(){};function rv(){}rv.prototype=Object.create(Gu.prototype);rv.prototype.handleNode=function(){return this};function fa(){}fa.prototype=Object.create(Gu.prototype);fa.prototype.handleText=function(n){this.body=(this.body||"")+n};function Xu(n,e){this.property=n,this.context=e}Xu.prototype=Object.create(fa.prototype);Xu.prototype.handleNode=function(n){if(this.element)throw eo("expected no sub nodes");return this.element=this.createReference(n),this};Xu.prototype.handleEnd=function(){this.element.id=this.body};Xu.prototype.createReference=function(n){return{property:this.property.ns.name,id:""}};function ov(n,e){this.element=e,this.propertyDesc=n}ov.prototype=Object.create(fa.prototype);ov.prototype.handleEnd=function(){var n=this.body||"",e=this.element,t=this.propertyDesc;n=Ud(t.type,n),t.isMany?e.get(t.name).push(n):e.set(t.name,n)};function Kd(){}Kd.prototype=Object.create(fa.prototype);Kd.prototype.handleNode=function(n){var e=this,t=this.element;return t?e=this.handleChild(n):(t=this.element=this.createElement(n),this.context.addElement(t)),e};function Ht(n,e,t){this.model=n,this.type=n.getType(e),this.context=t}Ht.prototype=Object.create(Kd.prototype);Ht.prototype.addReference=function(n){this.context.addReference(n)};Ht.prototype.handleText=function(n){var e=this.element,t=fr(e),i=t.bodyProperty;if(!i)throw eo("unexpected body text <"+n+">");fa.prototype.handleText.call(this,n)};Ht.prototype.handleEnd=function(){var n=this.body,e=this.element,t=fr(e),i=t.bodyProperty;i&&n!==void 0&&(n=Ud(i.type,n),e.set(i.name,n))};Ht.prototype.createElement=function(n){var e=n.attributes,t=this.type,i=fr(t),r=this.context,o=new t({}),s=this.model,a;return k(e,function(l,c){var u=i.propertiesByName[c],f;u&&u.isReference?u.isMany?(f=l.split(" "),k(f,function(h){r.addReference({element:o,property:u.ns.name,id:h})})):r.addReference({element:o,property:u.ns.name,id:l}):(u?l=Ud(u.type,l):c==="xmlns"?c=":"+c:(a=Rt(c,i.ns.prefix),s.getPackage(a.prefix)&&r.addWarning({message:"unknown attribute <"+c+">",element:o,property:c,value:l})),o.set(c,l))}),o};Ht.prototype.getPropertyForNode=function(n){var e=n.name,t=Rt(e),i=this.type,r=this.model,o=fr(i),s=t.name,a=o.propertiesByName[s];if(a&&!a.isAttr){let c=aI(a);if(c){let u=n.attributes[c];if(u){let f=uI(u,n.ns,r),h=r.getType(f);return T({},a,{effectiveType:fr(h).name})}}return a}var l=r.getPackage(t.prefix);if(l){let c=Yw(t,l),u=r.getType(c);if(a=ye(o.properties,function(f){return!f.isVirtual&&!f.isReference&&!f.isAttribute&&u.hasType(f.type)}),a)return T({},a,{effectiveType:fr(u).name})}else if(a=ye(o.properties,function(c){return!c.isReference&&!c.isAttribute&&c.type==="Element"}),a)return a;throw eo("unrecognized element <"+t.name+">")};Ht.prototype.toString=function(){return"ElementDescriptor["+fr(this.type).name+"]"};Ht.prototype.valueHandler=function(n,e){return new ov(n,e)};Ht.prototype.referenceHandler=function(n){return new Xu(n,this.context)};Ht.prototype.handler=function(n){return n==="Element"?new ua(this.model,n,this.context):new Ht(this.model,n,this.context)};Ht.prototype.handleChild=function(n){var e,t,i,r;if(e=this.getPropertyForNode(n),i=this.element,t=e.effectiveType||e.type,ev(t))return this.valueHandler(e,i);e.isReference?r=this.referenceHandler(e).handleNode(n):r=this.handler(t).handleNode(n);var o=r.element;return o!==void 0&&(e.isMany?i.get(e.name).push(o):i.set(e.name,o),e.isReference?(T(o,{element:i}),this.context.addReference(o)):o.$parent=i),r};function sv(n,e,t){Ht.call(this,n,e,t)}sv.prototype=Object.create(Ht.prototype);sv.prototype.createElement=function(n){var e=n.name,t=Rt(e),i=this.model,r=this.type,o=i.getPackage(t.prefix),s=o&&Yw(t,o)||e;if(!r.hasType(s))throw eo("unexpected element <"+n.originalName+">");return Ht.prototype.createElement.call(this,n)};function ua(n,e,t){this.model=n,this.context=t}ua.prototype=Object.create(Kd.prototype);ua.prototype.createElement=function(n){var e=n.name,t=Rt(e),i=t.prefix,r=n.ns[i+"$uri"],o=n.attributes;return this.model.createAny(e,r,o)};ua.prototype.handleChild=function(n){var e=new ua(this.model,"Element",this.context).handleNode(n),t=this.element,i=e.element,r;return i!==void 0&&(r=t.$children=t.$children||[],r.push(i),i.$parent=t),e};ua.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function Gd(n){n instanceof dn&&(n={model:n}),T(this,{lax:!1},n)}Gd.prototype.fromXML=function(n,e,t){var i=e.rootHandler;e instanceof Ht?(i=e,e={}):typeof e=="string"?(i=this.handler(e),e={}):typeof i=="string"&&(i=this.handler(i));var r=this.model,o=this.lax,s=new fI(T({},e,{rootHandler:i})),a=new nv({proxy:!0}),l=hI();i.context=s,l.push(i);function c(C,E,S){var w=E(),R=w.line,A=w.column,I=w.data;I.charAt(0)==="<"&&I.indexOf(" ")!==-1&&(I=I.slice(0,I.indexOf(" "))+">");var D="unparsable content "+(I?I+" ":"")+`detected method in Fw
[all...]
/plugin/bpmnioeditor/vendor/bpmnio-js/
Dbpmn-modeler.production.min.js7 …=Ct.abs,Mt=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,Dt=/(-?\d*\.?\d*(?:e[-+]?\d…