Home
last modified time | relevance | path

Searched refs:pI (Results 1 – 3 of 3) sorted by relevance

/plugin/bpmnio/vendor/dmn-js/dist/
H A Ddmn-modeler.production.min.js12 `,pI=/<|>|'|"|&|\n\r|\n/g,Zw=/<|>|&/g;function Pi(n){this.prefixMap={},this.uriMap={},this.used={},this.wellknown=[],this.custom=[],this.parent=n,this.defaultPrefixMap=n&&n.defaultPrefixMap||{}}Pi.prototype.mapDefaultPrefixes=function(n){this.defaultPrefixMap=n};Pi.prototype.defaultUriByPrefix=function(n){return this.defaultPrefixMap[n]};Pi.prototype.byUri=function(n){return this.uriMap[n]||this.parent&&this.parent.byUri(n)};Pi.prototype.add=function(n,e){this.uriMap[n.uri]=n,e?this.wellknown.push(n):this.custom.push(n),this.mapPrefix(n.prefix,n.uri)};Pi.prototype.uriByPrefix=function(n){return this.prefixMap[n||"xmlns"]||this.parent&&this.parent.uriByPrefix(n)};Pi.prototype.mapPrefix=function(n,e){this.prefixMap[n||"xmlns"]=e};Pi.prototype.getNSKey=function(n){return n.prefix!==void 0?n.uri+"|"+n.prefix:n.uri};Pi.prototype.logUsed=function(n){var e=n.uri,t=this.getNSKey(n);this.used[t]=this.byUri(e),this.parent&&this.parent.logUsed(n)};Pi.prototype.getUsed=function(n){var e=[].concat(this.wellknown,this.custom);return e.filter(t=>{var i=this.getNSKey(t);return this.used[i]})};function mI(n){return n.charAt(0).toLowerCase()+n.slice(1)}function gI(n,e){return Kw(e)?mI(n):n}function Jw(n,e){n.super_=e,n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}function e1(n){return Ie(n)?n:(n.prefix?n.prefix+":":"")+n.localName}function yI(n){return n.getUsed().filter(function(e){return e.prefix!=="xml"}).map(function(e){var t="xmlns"+(e.prefix?":"+e.prefix:"");return{name:t,value:e.uri}})}function vI(n,e){return e.isGeneric?T({localName:e.ns.localName},n):T({localName:gI(e.ns.localName,e.$pkg)},n)}function xI(n,e){return T({localName:e.ns.localName},n)}function bI(n){var e=n.$descriptor;return Ee(e.properties,function(t){var i=t.name;if(t.isVirtual||!Zr(n,i))return!1;var r=n[i];return r===t.default||r===null?!1:t.isMany?r.length:!0})}var _I={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},wI={"<":"lt",">":"gt","&":"amp"};function t1(n,e,t){return n=Ie(n)?n:""+n,n.replace(e,function(i){return"&"+t[i]+";"})}function CI(n){return t1(n,pI,_I)}function EI(n){return t1(n,Zw,wI)}function SI(n){return Ee(n,function(e){return e.isAttr})}function OI(n){return Ee(n,function(e){return!e.isAttr})}function av(n){this.tagName=n}av.prototype.build=function(n){return this.element=n,this};av.prototype.serializeTo=function(n){n.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()};function ns(){}ns.prototype.serializeValue=ns.prototype.serializeTo=function(n){n.append(this.escape?EI(this.value):this.value)};ns.prototype.build=function(n,e){return this.value=e,n.type==="String"&&e.search(Zw)!==-1&&(this.escape=!0),this};function lv(n){this.tagName=n}Jw(lv,ns);lv.prototype.serializeTo=function(n){n.appendIndent().append("<"+this.tagName+">"),this.serializeValue(n),n.append("</"+this.tagName+">").appendNewLine()};function je(n,e){this.body=[],this.attrs=[],this.parent=n,this.propertyDescriptor=e}je.prototype.build=function(n){this.element=n;var e=n.$descriptor,t=this.propertyDescriptor,i,r,o=e.isGeneric;return o?i=this.parseGenericNsAttributes(n):i=this.parseNsAttributes(n),t?this.ns=this.nsPropertyTagName(t):this.ns=this.nsTagName(e),this.tagName=this.addTagName(this.ns),o?this.parseGenericContainments(n):(r=bI(n),this.parseAttributes(SI(r)),this.parseContainments(OI(r))),this.parseGenericAttributes(n,i),this};je.prototype.nsTagName=function(n){var e=this.logNamespaceUsed(n.ns);return vI(e,n)};je.prototype.nsPropertyTagName=function(n){var e=this.logNamespaceUsed(n.ns);return xI(e,n)};je.prototype.isLocalNs=function(n){return n.uri===this.ns.uri};je.prototype.nsAttributeName=function(n){var e;if(Ie(n)?e=Rt(n):e=n.ns,n.inherited)return{localName:e.localName};var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),this.isLocalNs(t)?{localName:e.localName}:T({localName:e.localName},t)};je.prototype.parseGenericNsAttributes=function(n){return Object.entries(n).filter(([e,t])=>!e.startsWith("$")&&this.parseNsAttribute(n,e,t)).map(([e,t])=>({name:e,value:t}))};je.prototype.parseGenericContainments=function(n){var e=n.$body;e&&this.body.push(new ns().build({type:"String"},e));var t=n.$children;t&&k(t,i=>{this.body.push(new je(this).build(i))})};je.prototype.parseNsAttribute=function(n,e,t){var i=n.$model,r=Rt(e),o;if(r.prefix==="xmlns"&&(o={prefix:r.localName,uri:t}),!r.prefix&&r.localName==="xmlns"&&(o={uri:t}),!o)return{name:e,value:t};if(i&&i.getPackage(t))this.logNamespace(o,!0,!0);else{var s=this.logNamespaceUsed(o,!0);this.getNamespaces().logUsed(s)}};je.prototype.parseNsAttributes=function(n){var e=this,t=n.$attrs,i=[];return k(t,function(r,o){var s=e.parseNsAttribute(n,o,r);s&&i.push(s)}),i};je.prototype.parseGenericAttributes=function(n,e){var t=this;k(e,function(i){try{t.addAttribute(t.nsAttributeName(i.name),i.value)}catch(r){typeof console!="undefined"&&console.warn(`missing namespace information for <${i.name}=${i.value}> on`,n,r)}})};je.prototype.parseContainments=function(n){var e=this,t=this.body,i=this.element;k(n,function(r){var o=i.get(r.name),s=r.isReference,a=r.isMany;if(a||(o=[o]),r.isBody)t.push(new ns().build(r,o[0]));else if(ev(r.type))k(o,function(c){t.push(new lv(e.addTagName(e.nsPropertyTagName(r))).build(r,c))});else if(s)k(o,function(c){t.push(new av(e.addTagName(e.nsPropertyTagName(r))).build(c))});else{var l=Xw(r);k(o,function(c){var u;l?l===Gw?u=new je(e,r):u=new Xd(e,r,l):u=new je(e),t.push(u.build(c))})}})};je.prototype.getNamespaces=function(n){var e=this.namespaces,t=this.parent,i;return e||(i=t&&t.getNamespaces(),n||!i?this.namespaces=e=new Pi(i):e=i),e};je.prototype.logNamespace=function(n,e,t){var i=this.getNamespaces(t),r=n.uri,o=n.prefix,s=i.byUri(r);return(!s||t)&&i.add(n,e),i.mapPrefix(o,r),n};je.prototype.logNamespaceUsed=function(n,e){var t=this.getNamespaces(e),i=n.prefix,r=n.uri,o,s,a;if(!i&&!r)return{localName:n.localName};if(a=t.defaultUriByPrefix(i),r=r||a||t.uriByPrefix(i),!r)throw new Error("no namespace uri given for prefix <"+i+">");if(n=t.byUri(r),!n&&!i&&(n=this.logNamespace({uri:r},a===r,!0)),!n){for(o=i,s=1;t.uriByPrefix(o);)o=i+"_"+s++;n=this.logNamespace({prefix:o,uri:r},a===r)}return i&&t.mapPrefix(i,r),n};je.prototype.parseAttributes=function(n){var e=this,t=this.element;k(n,function(i){var r=t.get(i.name);if(i.isReference)if(!i.isMany)r=r.id;else{var o=[];k(r,function(s){o.push(s.id)}),r=o.join(" ")}e.addAttribute(e.nsAttributeName(i),r)})};je.prototype.addTagName=function(n){var e=this.logNamespaceUsed(n);return this.getNamespaces().logUsed(e),e1(n)};je.prototype.addAttribute=function(n,e){var t=this.attrs;Ie(e)&&(e=CI(e));var i=Iw(t,function(o){return o.name.localName===n.localName&&o.name.uri===n.uri&&o.name.prefix===n.prefix}),r={name:n,value:e};i!==-1?t.splice(i,1,r):t.push(r)};je.prototype.serializeAttributes=function(n){var e=this.attrs,t=this.namespaces;t&&(e=yI(t).concat(e)),k(e,function(i){n.append(" ").append(e1(i.name)).append('="').append(i.value).append('"')})};je.prototype.serializeTo=function(n){var e=this.body[0],t=e&&e.constructor!==ns;n.appendIndent().append("<"+this.tagName),this.serializeAttributes(n),n.append(e?">":" />"),e&&(t&&n.appendNewLine().indent(),k(this.body,function(i){i.serializeTo(n)}),t&&n.unindent().appendIndent(),n.append("</"+this.tagName+">")),n.appendNewLine()};function Xd(n,e,t){je.call(this,n,e),this.serialization=t}Jw(Xd,je);Xd.prototype.parseNsAttributes=function(n){var e=je.prototype.parseNsAttributes.call(this,n).filter(s=>s.name!==this.serialization),t=n.$descriptor;if(t.name===this.propertyDescriptor.type)return e;var i=this.typeNs=this.nsTagName(t);this.getNamespaces().logUsed(this.typeNs);var r=n.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(this.serialization),(i.prefix?i.prefix+":":"")+o+t.ns.localName),e};Xd.prototype.isLocalNs=function(n){return n.uri===(this.typeNs||this.ns).uri};function kI(){this.value="",this.write=function(n){this.value+=n}}function RI(n,e){var t=[""];this.append=function(i){return n.write(i),this},this.appendNewLine=function(){return e&&n.write(` function
[all...]
/plugin/openlayersmap/ol/
H A Dol.js.map1pI,EAAI6rB,EAAUm+G,GAGlB,MAAMC,EAAW,CAACD,EAAMD,GAElBj0G,EAAQ,CAAC91B,EAAGD,GAEZmqI,EAAgB,CAAC,EAA…
/plugin/dirtylittlehelper/script/
Dmermaid.min.js.map1pI,EAASI,EAAYzmI,EAAMA,EAAKonI,oBAGlCD,EAAYrrI,UAAU,QAAQmB,MAAK,SAASnL,GAC1C,IAAIkO,EAAOsV,EAAEtV,…