camunda-bpmn-js 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/camunda-cloud-modeler.development.js +5 -4
- package/dist/camunda-cloud-modeler.production.min.js +1 -1
- package/dist/camunda-cloud-navigated-viewer.development.js +5 -4
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +5 -4
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/lib/base/Modeler.d.ts +15 -15
- package/lib/base/NavigatedViewer.d.ts +2 -2
- package/lib/base/Viewer.d.ts +2 -2
- package/lib/camunda-cloud/ElementTemplatesValidator.d.ts +1 -1
- package/lib/camunda-cloud/Modeler.d.ts +3 -3
- package/lib/camunda-cloud/NavigatedViewer.d.ts +3 -3
- package/lib/camunda-cloud/Viewer.d.ts +3 -3
- package/lib/camunda-cloud/features/rules/BpmnRules.d.ts +32 -32
- package/lib/camunda-cloud/features/rules/index.d.ts +6 -6
- package/lib/camunda-cloud/util/commonModules.d.ts +9 -9
- package/lib/camunda-platform/Modeler.d.ts +3 -3
- package/lib/camunda-platform/NavigatedViewer.d.ts +5 -5
- package/lib/camunda-platform/Viewer.d.ts +5 -5
- package/lib/camunda-platform/util/commonModules.d.ts +9 -9
- package/lib/util/ExtensionElementsUtil.d.ts +24 -24
- package/package.json +2 -2
|
@@ -172,4 +172,4 @@
|
|
|
172
172
|
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var s=n.apply(null,r);s&&e.push(s)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var a in r)t.call(r,a)&&r[a]&&e.push(a);else e.push(r.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(x_);var w_=Qt(x_.exports);const __=1024;let E_=0,P_=class{constructor(e,t){this.from=e,this.to=t}};class k_{constructor(e={}){this.id=E_++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=$_.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}k_.closedBy=new k_({deserialize:e=>e.split(" ")}),k_.openedBy=new k_({deserialize:e=>e.split(" ")}),k_.group=new k_({deserialize:e=>e.split(" ")}),k_.contextHash=new k_({perNode:!0}),k_.lookAhead=new k_({perNode:!0}),k_.mounted=new k_({perNode:!0});class S_{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}}const T_=Object.create(null);class $_{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):T_,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),i=new $_(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(i)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return i}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(k_.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return e=>{for(let n=e.prop(k_.group),i=-1;i<(n?n.length:0);i++){let r=t[i<0?e.name:n[i]];if(r)return r}}}}$_.none=new $_("",Object.create(null),0,8);class C_{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let i=null;for(let t of e){let e=t(n);e&&(i||(i=Object.assign({},n.props)),i[e[0].id]=e[1])}t.push(i?new $_(n.name,i,n.id,n.flags):n)}return new C_(t)}}const M_=new WeakMap,A_=new WeakMap;var R_;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(R_||(R_={}));class D_{constructor(e,t,n,i,r){if(this.type=e,this.children=t,this.positions=n,this.length=i,this.props=null,r&&r.length){this.props=Object.create(null);for(let[e,t]of r)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=this.prop(k_.mounted);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new F_(this.topNode,e)}cursorAt(e,t=0,n=0){let i=M_.get(this)||this.topNode,r=new F_(i);return r.moveTo(e,t),M_.set(this,r._tree),r}get topNode(){return new Q_(this,0,0,null)}resolve(e,t=0){let n=z_(M_.get(this)||this.topNode,e,t,!1);return M_.set(this,n),n}resolveInner(e,t=0){let n=z_(A_.get(this)||this.topNode,e,t,!0);return A_.set(this,n),n}iterate(e){let{enter:t,leave:n,from:i=0,to:r=this.length}=e;for(let o=this.cursor((e.mode||0)|R_.IncludeAnonymous);;){let e=!1;if(o.from<=r&&o.to>=i&&(o.type.isAnonymous||!1!==t(o))){if(o.firstChild())continue;e=!0}for(;e&&n&&!o.type.isAnonymous&&n(o),!o.nextSibling();){if(!o.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:W_($_.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new D_(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new D_($_.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:r=__,reused:o=[],minRepeatType:s=i.types.length}=e,a=Array.isArray(n)?new j_(n,n.length):n,l=i.types,c=0,p=0;function u(e,t,n,y,v){let{id:b,start:O,end:x,size:w}=a,_=p;for(;w<0;){if(a.next(),-1==w){let t=o[b];return n.push(t),void y.push(O-e)}if(-3==w)return void(c=b);if(-4==w)return void(p=b);throw new RangeError(`Unrecognized record size: ${w}`)}let E,P,k=l[b],S=O-e;if(x-O<=r&&(P=m(a.pos-t,v))){let t=new Uint16Array(P.size-P.skip),n=a.pos-P.size,r=t.length;for(;a.pos>n;)r=g(P.start,t,r);E=new q_(t,x-P.start,i),S=P.start-e}else{let e=a.pos-w;a.next();let t=[],n=[],i=b>=s?b:-1,o=0,l=x;for(;a.pos>e;)i>=0&&a.id==i&&a.size>=0?(a.end<=l-r&&(d(t,n,O,o,a.end,l,i,_),o=t.length,l=a.end),a.next()):u(O,e,t,n,i);if(i>=0&&o>0&&o<t.length&&d(t,n,O,o,O,l,i,_),t.reverse(),n.reverse(),i>-1&&o>0){let e=h(k);E=W_(k,t,n,0,t.length,0,x-O,e,e)}else E=f(k,t,n,x-O,_-x)}n.push(E),y.push(S)}function h(e){return(t,n,i)=>{let r,o,s=0,a=t.length-1;if(a>=0&&(r=t[a])instanceof D_){if(!a&&r.type==e&&r.length==i)return r;(o=r.prop(k_.lookAhead))&&(s=n[a]+r.length+o)}return f(e,t,n,i,s)}}function d(e,t,n,r,o,s,a,l){let c=[],p=[];for(;e.length>r;)c.push(e.pop()),p.push(t.pop()+n-o);e.push(f(i.types[a],c,p,s-o,l-s)),t.push(o-n)}function f(e,t,n,i,r=0,o){if(c){let e=[k_.contextHash,c];o=o?[e].concat(o):[e]}if(r>25){let e=[k_.lookAhead,r];o=o?[e].concat(o):[e]}return new D_(e,t,n,i,o)}function m(e,t){let n=a.fork(),i=0,o=0,l=0,c=n.end-r,p={size:0,start:0,skip:0};e:for(let r=n.pos-e;n.pos>r;){let e=n.size;if(n.id==t&&e>=0){p.size=i,p.start=o,p.skip=l,l+=4,i+=4,n.next();continue}let a=n.pos-e;if(e<0||a<r||n.start<c)break;let u=n.id>=s?4:0,h=n.start;for(n.next();n.pos>a;){if(n.size<0){if(-3!=n.size)break e;u+=4}else n.id>=s&&(u+=4);n.next()}o=h,i+=e,l+=u}return(t<0||i==e)&&(p.size=i,p.start=o,p.skip=l),p.size>4?p:void 0}function g(e,t,n){let{id:i,start:r,end:o,size:l}=a;if(a.next(),l>=0&&i<s){let s=n;if(l>4){let i=a.pos-(l-4);for(;a.pos>i;)n=g(e,t,n)}t[--n]=s,t[--n]=o-e,t[--n]=r-e,t[--n]=i}else-3==l?c=i:-4==l&&(p=i);return n}let y=[],v=[];for(;a.pos>0;)u(e.start||0,e.bufferStart||0,y,v,-1);let b=null!==(t=e.length)&&void 0!==t?t:y.length?v[0]+y[0].length:0;return new D_(l[e.topID],y.reverse(),v.reverse(),b)}(e)}}D_.empty=new D_($_.none,[],[],0);class j_{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new j_(this.buffer,this.index)}}class q_{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return $_.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],i=this.set.types[t],r=i.name;if(/\W/.test(r)&&!i.isError&&(r=JSON.stringify(r)),n==(e+=4))return r;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return r+"("+o.join(",")+")"}findChild(e,t,n,i,r){let{buffer:o}=this,s=-1;for(let a=e;a!=t&&!(B_(r,i,o[a+1],o[a+2])&&(s=a,n>0));a=o[a+3]);return s}slice(e,t,n){let i=this.buffer,r=new Uint16Array(t-e),o=0;for(let s=e,a=0;s<t;){r[a++]=i[s++],r[a++]=i[s++]-n;let t=r[a++]=i[s++]-n;r[a++]=i[s++]-e,o=Math.max(o,t)}return new q_(r,o,this.set)}}function B_(e,t,n,i){switch(e){case-2:return n<t;case-1:return i>=t&&n<t;case 0:return n<t&&i>t;case 1:return n<=t&&i>t;case 2:return i>t;case 4:return!0}}function N_(e,t){let n=e.childBefore(t);for(;n;){let t=n.lastChild;if(!t||t.to!=n.to)break;t.type.isError&&t.from==t.to?(e=n,n=t.prevSibling):n=t}return e}function z_(e,t,n,i){for(var r;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!i&&e instanceof Q_&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=i?0:R_.IgnoreOverlays;if(i)for(let i=e,s=i.parent;s;i=s,s=i.parent)i instanceof Q_&&i.index<0&&(null===(r=s.enter(t,n,o))||void 0===r?void 0:r.from)!=i.from&&(e=s);for(;;){let i=e.enter(t,n,o);if(!i)return e;e=i}}class Q_{constructor(e,t,n,i){this._tree=e,this.from=t,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,i,r=0){for(let o=this;;){for(let{children:s,positions:a}=o._tree,l=t>0?s.length:-1;e!=l;e+=t){let l=s[e],c=a[e]+o.from;if(B_(i,n,c,c+l.length))if(l instanceof q_){if(r&R_.ExcludeBuffers)continue;let s=l.findChild(0,l.buffer.length,t,n-c,i);if(s>-1)return new V_(new L_(o,l,e,c),null,s)}else if(r&R_.IncludeAnonymous||!l.type.isAnonymous||U_(l)){let s;if(!(r&R_.IgnoreMounts)&&l.props&&(s=l.prop(k_.mounted))&&!s.overlay)return new Q_(s.tree,c,e,o);let a=new Q_(l,c,e,o);return r&R_.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(t<0?l.children.length-1:0,t,n,i)}}if(r&R_.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let i;if(!(n&R_.IgnoreOverlays)&&(i=this._tree.prop(k_.mounted))&&i.overlay){let n=e-this.from;for(let{from:e,to:r}of i.overlay)if((t>0?e<=n:e<n)&&(t<0?r>=n:r>n))return new Q_(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new F_(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return z_(this,e,t,!1)}resolveInner(e,t=0){return z_(this,e,t,!0)}enterUnfinishedNodesBefore(e){return N_(this,e)}getChild(e,t=null,n=null){let i=X_(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return X_(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return I_(this,e)}}function X_(e,t,n,i){let r=e.cursor(),o=[];if(!r.firstChild())return o;if(null!=n)for(;!r.type.is(n);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(t)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function I_(e,t,n=t.length-1){for(let i=e.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[n]&&t[n]!=i.name)return!1;n--}}return!0}class L_{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class V_{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new V_(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&R_.ExcludeBuffers)return null;let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new V_(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new V_(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new V_(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new F_(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,r=n.buffer[this.index+3];if(r>i){let o=n.buffer[this.index+1];e.push(n.slice(i,r,o)),t.push(0)}return new D_(this.type,e,t,this.to-this.from)}resolve(e,t=0){return z_(this,e,t,!1)}resolveInner(e,t=0){return z_(this,e,t,!0)}enterUnfinishedNodesBefore(e){return N_(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let i=X_(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return X_(this,e,t,n)}get node(){return this}matchContext(e){return I_(this,e)}}class F_{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Q_)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return!!e&&(e instanceof Q_?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&R_.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&R_.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&R_.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(i.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=i)}else({index:t,_parent:n}=this._tree);for(;n;({index:t,_parent:n}=n))if(t>-1)for(let i=t+e,r=e<0?-1:n._tree.children.length;i!=r;i+=e){let e=n._tree.children[i];if(this.mode&R_.IncludeAnonymous||e instanceof q_||!e.type.isAnonymous||U_(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,r=this.stack.length;r>=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;t=o,n=r+1;break e}i=this.stack[--r]}for(let e=n;e<this.stack.length;e++)t=new V_(this.buffer,t,this.stack[e]);return this.bufferNode=new V_(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let i=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;i&&t&&t(this),i=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return I_(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let i=e.length-1,r=this.stack.length-1;i>=0;r--){if(r<0)return I_(this.node,e,i);let o=n[t.buffer[this.stack[r]]];if(!o.isAnonymous){if(e[i]&&e[i]!=o.name)return!1;i--}}return!0}}function U_(e){return e.children.some((e=>e instanceof q_||!e.type.isAnonymous||U_(e)))}const H_=new WeakMap;function Y_(e,t){if(!e.isAnonymous||t instanceof q_||t.type!=e)return 1;let n=H_.get(t);if(null==n){n=1;for(let i of t.children){if(i.type!=e||!(i instanceof D_)){n=1;break}n+=Y_(e,i)}H_.set(t,n)}return n}function W_(e,t,n,i,r,o,s,a,l){let c=0;for(let n=i;n<r;n++)c+=Y_(e,t[n]);let p=Math.ceil(1.5*c/8),u=[],h=[];return function t(n,i,r,s,a){for(let c=r;c<s;){let r=c,d=i[c],f=Y_(e,n[c]);for(c++;c<s;c++){let t=Y_(e,n[c]);if(f+t>=p)break;f+=t}if(c==r+1){if(f>p){let e=n[r];t(e.children,e.positions,0,e.children.length,i[r]+a);continue}u.push(n[r])}else{let t=i[c-1]+n[c-1].length-d;u.push(W_(e,n,i,r,c,d,t,null,l))}h.push(d+a-o)}}(t,n,i,r,0),(a||l)(u,h,s)}class G_{constructor(e,t,n,i,r=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(r?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let i=[new G_(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&i.push(n);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],r=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let c=s<t.length?t[s]:null,p=c?c.fromA:1e9;if(p-a>=n)for(;o&&o.from<p;){let t=o;if(a>=t.from||p<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,p)-l;t=e>=n?null:new G_(e,n,t.tree,t.offset+l,s>0,!!c)}if(t&&i.push(t),o.to>p)break;o=r<e.length?e[r++]:null}if(!c)break;a=c.toA,l=c.toA-c.toB}return i}}class Z_{startParse(e,t,n){return"string"==typeof e&&(e=new K_(e)),n=n?n.length?n.map((e=>new P_(e.from,e.to))):[new P_(0,0)]:[new P_(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let e=i.advance();if(e)return e}}}class K_{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}class J_{constructor(e,t,n,i,r){this.parser=e,this.parse=t,this.overlay=n,this.target=i,this.ranges=r}}class eE{constructor(e,t,n,i,r,o,s){this.parser=e,this.predicate=t,this.mounts=n,this.index=i,this.start=r,this.target=o,this.prev=s,this.depth=0,this.ranges=[]}}const tE=new k_({perNode:!0});class nE{constructor(e,t,n,i,r){this.nest=t,this.input=n,this.fragments=i,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new D_(e.type,e.children,e.positions,e.length,e.propValues.concat([[tE,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[k_.mounted.id]=new S_(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].ranges[0].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new aE(this.fragments),t=null,n=null,i=new F_(new Q_(this.baseTree,this.ranges[0].from,0,null),R_.IncludeAnonymous|R_.IgnoreMounts);e:for(let r,o;null==this.stoppedAt||i.from<this.stoppedAt;){let s,a=!0;if(e.hasNode(i)){if(t){let e=t.mounts.find((e=>e.frag.from<=i.from&&e.frag.to>=i.to&&e.mount.overlay));if(e)for(let n of e.mount.overlay){let r=n.from+e.pos,o=n.to+e.pos;r>=i.from&&o<=i.to&&!t.ranges.some((e=>e.from<o&&e.to>r))&&t.ranges.push({from:r,to:o})}}a=!1}else if(n&&(o=iE(n.ranges,i.from,i.to)))a=2!=o;else if(!i.type.isAnonymous&&i.from<i.to&&(r=this.nest(i,this.input))){i.tree||oE(i);let o=e.findMounts(i.from,r.parser);if("function"==typeof r.overlay)t=new eE(r.parser,r.overlay,o,this.inner.length,i.from,i.tree,t);else{let e=lE(this.ranges,r.overlay||[new P_(i.from,i.to)]);e.length&&this.inner.push(new J_(r.parser,r.parser.startParse(this.input,pE(o,e),e),r.overlay?r.overlay.map((e=>new P_(e.from-i.from,e.to-i.from))):null,i.tree,e)),r.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):a=!1}}else t&&(s=t.predicate(i))&&(!0===s&&(s=new P_(i.from,i.to)),s.from<s.to&&t.ranges.push(s));if(a&&i.firstChild())t&&t.depth++,n&&n.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(t&&!--t.depth){let e=lE(this.ranges,t.ranges);e.length&&this.inner.splice(t.index,0,new J_(t.parser,t.parser.startParse(this.input,pE(t.mounts,e),e),t.ranges.map((e=>new P_(e.from-t.start,e.to-t.start))),t.target,e)),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function iE(e,t,n){for(let i of e){if(i.from>=n)break;if(i.to>t)return i.from<=t&&i.to>=n?2:1}return 0}function rE(e,t,n,i,r,o){if(t<n){let s=e.buffer[t+1];i.push(e.slice(t,n,s)),r.push(s-o)}}function oE(e){let{node:t}=e,n=0;do{e.parent(),n++}while(!e.tree);let i=0,r=e.tree,o=0;for(;o=r.positions[i]+e.from,!(o<=t.from&&o+r.children[i].length>=t.to);i++);let s=r.children[i],a=s.buffer;r.children[i]=function e(n,i,r,l,c){let p=n;for(;a[p+2]+o<=t.from;)p=a[p+3];let u=[],h=[];rE(s,n,p,u,h,l);let d=a[p+1],f=a[p+2],m=d+o==t.from&&f+o==t.to&&a[p]==t.type.id;return u.push(m?t.toTree():e(p+4,a[p+3],s.set.types[a[p]],d,f-d)),h.push(d-l),rE(s,a[p+3],i,u,h,l),new D_(r,u,h,c)}(0,a.length,$_.none,0,s.length);for(let i=0;i<=n;i++)e.childAfter(t.from)}class sE{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(R_.IncludeAnonymous|R_.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)t.to>=e&&t.enter(n,1,R_.IgnoreOverlays|R_.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof D_))break;t=t.children[0]}return!1}}let aE=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=null!==(t=n.tree.prop(tE))&&void 0!==t?t:n.to,this.inner=new sE(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(tE))&&void 0!==e?e:t.to,this.inner=new sE(t.tree,-t.offset)}}findMounts(e,t){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let r=null===(n=e.tree)||void 0===n?void 0:n.prop(k_.mounted);if(r&&r.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let n=this.fragments[t];if(n.from>=e.to)break;n.tree==this.curFrag.tree&&i.push({frag:n,pos:e.from-n.offset,mount:r})}}}return i}};function lE(e,t){let n=null,i=t;for(let r=1,o=0;r<e.length;r++){let s=e[r-1].to,a=e[r].from;for(;o<i.length;o++){let e=i[o];if(e.from>=a)break;e.to<=s||(n||(i=n=t.slice()),e.from<s?(n[o]=new P_(e.from,s),e.to>a&&n.splice(o+1,0,new P_(a,e.to))):e.to>a?n[o--]=new P_(a,e.to):n.splice(o--,1))}}return i}function cE(e,t,n,i){let r=0,o=0,s=!1,a=!1,l=-1e9,c=[];for(;;){let p=r==e.length?1e9:s?e[r].to:e[r].from,u=o==t.length?1e9:a?t[o].to:t[o].from;if(s!=a){let e=Math.max(l,n),t=Math.min(p,u,i);e<t&&c.push(new P_(e,t))}if(l=Math.min(p,u),1e9==l)break;p==l&&(s?(s=!1,r++):s=!0),u==l&&(a?(a=!1,o++):a=!0)}return c}function pE(e,t){let n=[];for(let{pos:i,mount:r,frag:o}of e){let e=i+(r.overlay?r.overlay[0].from:0),s=e+r.tree.length,a=Math.max(o.from,e),l=Math.min(o.to,s);if(r.overlay){let s=r.overlay.map((e=>new P_(e.from+i,e.to+i))),c=cE(t,s,a,l);for(let t=0,i=a;;t++){let s=t==c.length,a=s?l:c[t].from;if(a>i&&n.push(new G_(i,a,r.tree,-e,o.from>=i||o.openStart,o.to<=a||o.openEnd)),s)break;i=c[t].to}}else n.push(new G_(a,l,r.tree,-e,o.from>=e||o.openStart,o.to<=s||o.openEnd))}return n}class uE{constructor(e,t,n,i,r,o,s,a,l,c=0,p){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=r,this.score=o,this.buffer=s,this.bufferBase=a,this.curContext=l,this.lookAhead=c,this.parent=p}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new uE(e,[],t,n,n,0,[],0,i?new hE(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,i=65535&e,{parser:r}=this.p,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==n)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),i<r.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,4,!0),void this.reduceContext(i,this.reducePos);let s=this.stack.length-3*(n-1)-(262144&e?6:0),a=s?this.stack[s-2]:this.p.ranges[0].from,l=this.reducePos-a;l>=2e3&&!(null===(t=this.p.parser.nodeSet.types[i])||void 0===t?void 0:t.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSize<l&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=l));let c=s?this.stack[s-1]:0,p=this.bufferBase+this.buffer.length-c;if(i<r.minRepeatTerm||131072&e){let e=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,a,e,p+4,!0)}if(262144&e)this.state=this.stack[s];else{let e=this.stack[s-3];this.state=r.getGoto(e,i,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(i,a)}storeNode(e,t,n,i=4,r=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,i=this.buffer.length;if(0==i&&e.parent&&(i=e.bufferBase-e.parent.bufferBase,e=e.parent),i>0&&0==e.buffer[i-4]&&e.buffer[i-1]>-1){if(t==n)return;if(e.buffer[i-2]>=t)return void(e.buffer[i-2]=n)}}if(r&&this.pos!=n){let r=this.buffer.length;if(r>0&&0!=this.buffer[r-4])for(;r>0&&this.buffer[r-2]>n;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4);this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=n,this.buffer[r+3]=i}else this.buffer.push(e,t,n,i)}shift(e,t,n){let i=this.pos;if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let r=e,{parser:o}=this.p;(n>this.pos||t<=o.maxNode)&&(this.pos=n,o.stateFlag(r,1)||(this.reducePos=n)),this.pushState(r,i),this.shiftContext(t,i),t<=o.maxNode&&this.buffer.push(t,i,n,4)}else this.pos=n,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,n,4)}apply(e,t,n){65536&e?this.reduce(e):this.shift(e,t,n)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new uE(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new fE(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(0==(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let i,r=0;r<t.length;r+=2)(i=t[r+1])!=this.state&&this.p.parser.hasAction(i,e)&&n.push(t[r],i);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let i=t[e+1];n.some(((e,t)=>1&t&&e==i))||n.push(t[e],i)}t=n}let n=[];for(let e=0;e<t.length&&n.length<4;e+=2){let i=t[e+1];if(i==this.state)continue;let r=this.split();r.pushState(i,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(t[e],this.pos),r.score-=200,n.push(r)}return n}forceReduce(){let e=this.p.parser.stateSlot(this.state,5);if(0==(65536&e))return!1;let{parser:t}=this.p;if(!t.validAction(this.state,e)){let n=e>>19,i=65535&e,r=this.stack.length-3*n;if(r<0||t.getGoto(this.stack[r],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.reducePos,this.reducePos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.reducePos,this.reducePos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new hE(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class hE{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}var dE;!function(e){e[e.Insert=200]="Insert",e[e.Delete=190]="Delete",e[e.Reduce=100]="Reduce",e[e.MaxNext=4]="MaxNext",e[e.MaxInsertStackDepth=300]="MaxInsertStackDepth",e[e.DampenInsertStackDepth=120]="DampenInsertStackDepth",e[e.MinBigReduction=2e3]="MinBigReduction"}(dE||(dE={}));class fE{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class mE{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new mE(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new mE(this.stack,this.pos,this.index)}}function gE(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let i=0,r=0;i<e.length;){let o=0;for(;;){let t=e.charCodeAt(i++),n=!1;if(126==t){o=65535;break}t>=92&&t--,t>=34&&t--;let r=t-32;if(r>=46&&(r-=46,n=!0),o+=r,n)break;o*=46}n?n[r++]=o:n=new t(o)}return n}class yE{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const vE=new yE;class bE{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=vE,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,r=this.pos+e;for(;r<n.from;){if(!i)return null;let e=this.ranges[--i];r-=n.from-e.to,n=e}for(;t<0?r>n.to:r>=n.to;){if(i==this.ranges.length-1)return null;let e=this.ranges[++i];r+=e.from-n.to,n=e}return r}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,n,i=this.chunkOff+e;if(i>=0&&i<this.chunk.length)t=this.pos+e,n=this.chunk.charCodeAt(i);else{let i=this.resolveOffset(e,1);if(null==i)return-1;if(t=i,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,i=this.range;for(;i.to<=t;)i=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>i.to&&(this.chunk2=this.chunk2.slice(0,i.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=vE,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}}class OE{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;!function(e,t,n,i,r,o){let s=0,a=1<<i,{dialect:l}=n.p.parser;e:for(;0!=(a&e[s]);){let n=e[s+1];for(let i=s+3;i<n;i+=2)if((e[i+1]&a)>0){let n=e[i];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||_E(n,t.token.value,r,o))){t.acceptToken(n);break}}let i=t.next,c=0,p=e[s+2];if(!(t.next<0&&p>c&&65535==e[n+3*p-3]&&65535==e[n+3*p-3])){for(;c<p;){let r=c+p>>1,o=n+r+(r<<1),a=e[o],l=e[o+1]||65536;if(i<a)p=r;else{if(!(i>=l)){s=e[o+2],t.advance();continue e}c=r+1}}break}s=e[n+3*p-1]}}(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}OE.prototype.contextual=OE.prototype.fallback=OE.prototype.extend=!1,OE.prototype.fallback=OE.prototype.extend=!1;class xE{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function wE(e,t,n){for(let i,r=t;65535!=(i=e[r]);r++)if(i==n)return r-t;return-1}function _E(e,t,n,i){let r=wE(n,i,t);return r<0||wE(n,i,e)<r}const EE="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let PE=null;var kE;function SE(e,t,n){let i=e.cursor(R_.IncludeAnonymous);for(i.moveTo(t);;)if(!(n<0?i.childBefore(t):i.childAfter(t)))for(;;){if((n<0?i.to<t:i.from>t)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:e.length}}!function(e){e[e.Margin=25]="Margin"}(kE||(kE={}));class TE{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new yE))}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:r}=i,o=i.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,a=0;for(let i=0;i<r.length;i++){if(0==(1<<i&o))continue;let l=r[i],c=this.tokens[i];if((!n||l.fallback)&&((l.contextual||c.start!=e.pos||c.mask!=o||c.context!=s)&&(this.updateCachedToken(c,l,e),c.mask=o,c.context=s),c.lookAhead>c.end+25&&(a=Math.max(c.lookAhead,a)),0!=c.value)){let i=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!l.extend&&(n=c,t>i))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||(n=new yE,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new yE,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){let i=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(i,e),n),e.value>-1){let{parser:t}=n.p;for(let i=0;i<t.specialized.length;i++)if(t.specialized[i]==e.value){let r=t.specializers[i](this.stream.read(e.start,e.end),n);if(r>=0&&n.p.parser.dialect.allows(r>>1)){0==(1&r)?e.value=r>>1:e.extended=r>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,n,i){for(let t=0;t<i;t+=3)if(this.actions[t]==e)return i;return this.actions[i++]=e,this.actions[i++]=t,this.actions[i++]=n,i}addActions(e,t,n,i){let{state:r}=e,{parser:o}=e.p,{data:s}=o;for(let e=0;e<2;e++)for(let a=o.stateSlot(r,e?2:1);;a+=3){if(65535==s[a]){if(1!=s[a+1]){0==i&&2==s[a+1]&&(i=this.putAction(qE(s,a+2),t,n,i));break}a=qE(s,a+2)}s[a]==t&&(i=this.putAction(qE(s,a+1),t,n,i))}return i}}var $E;!function(e){e[e.Distance=5]="Distance",e[e.MaxRemainingPerStep=3]="MaxRemainingPerStep",e[e.MinBufferLengthPrune=500]="MinBufferLengthPrune",e[e.ForceReduceLimit=10]="ForceReduceLimit",e[e.CutDepth=15e3]="CutDepth",e[e.CutTo=9e3]="CutTo",e[e.MaxLeftAssociativeReductionCount=300]="MaxLeftAssociativeReductionCount",e[e.MaxStackCount=12]="MaxStackCount"}($E||($E={}));class CE{constructor(e,t,n,i){this.parser=e,this.input=t,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new bE(t,i),this.tokens=new TE(e,this.stream),this.topTerm=e.top[1];let{from:r}=i[0];this.stacks=[uE.start(this,e.top[0],r)],this.fragments=n.length&&this.stream.end-r>4*e.bufferLength?new class{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?SE(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?SE(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],i=this.index[t];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let r=n.children[i],o=this.start[t]+n.positions[i];if(o>e)return this.nextStart=o,null;if(r instanceof D_){if(o==e){if(o<this.safeFrom)return null;let e=o+r.length;if(e<=this.safeTo){let t=r.prop(k_.lookAhead);if(!t||e+t<this.fragment.to)return r}}this.index[t]++,o+r.length>=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+r.length}}}(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,i=this.minStackPos,r=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<n.length;o++){let s=n[o];for(;;){if(this.tokens.mainToken=null,s.pos>i)r.push(s);else{if(this.advanceStack(s,r,n))continue;{e||(e=[],t=[]),e.push(s);let n=this.tokens.getMainToken(s);t.push(n.value,n.end)}}break}}if(!r.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}(e);if(t)return this.stackToTree(t);if(this.parser.strict)throw EE&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+i);this.recovering||(this.recovering=5)}if(this.recovering&&e){let n=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,r);if(n)return this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(r.length>e)for(r.sort(((e,t)=>t.score-e.score));r.length>e;)r.pop();r.some((e=>e.reducePos>i))&&this.recovering--}else if(r.length>1){e:for(let e=0;e<r.length-1;e++){let t=r[e];for(let n=e+1;n<r.length;n++){let i=r[n];if(t.sameState(i)||t.buffer.length>500&&i.buffer.length>500){if(!((t.score-i.score||t.buffer.length-i.buffer.length)>0)){r.splice(e--,1);continue e}r.splice(n--,1)}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let e=1;e<r.length;e++)r[e].pos<this.minStackPos&&(this.minStackPos=r[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let i=e.pos,{parser:r}=this,o=EE?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let s=this.fragments.nodeAt(i);s;){let i=this.parser.nodeSet.types[s.type.id]==s.type?r.getGoto(e.state,s.type.id):-1;if(i>-1&&s.length&&(!t||(s.prop(k_.contextHash)||0)==n))return e.useNode(s,i),EE&&console.log(o+this.stackID(e)+` (via reuse of ${r.getName(s.type.id)})`),!0;if(!(s instanceof D_)||0==s.children.length||s.positions[0]>0)break;let a=s.children[0];if(!(a instanceof D_&&0==s.positions[0]))break;s=a}}let s=r.stateSlot(e.state,4);if(s>0)return e.reduce(s),EE&&console.log(o+this.stackID(e)+` (via always-reduce ${r.getName(65535&s)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let s=0;s<a.length;){let l=a[s++],c=a[s++],p=a[s++],u=s==a.length||!n,h=u?e:e.split();if(h.apply(l,c,p),EE&&console.log(o+this.stackID(h)+` (via ${0==(65536&l)?"shift":`reduce of ${r.getName(65535&l)}`} for ${r.getName(c)} @ ${i}${h==e?"":", split"})`),u)return!0;h.pos>i?t.push(h):n.push(h)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return ME(e,t),!0}}runRecovery(e,t,n){let i=null,r=!1;for(let o=0;o<e.length;o++){let s=e[o],a=t[o<<1],l=t[1+(o<<1)],c=EE?this.stackID(s)+" -> ":"";if(s.deadEnd){if(r)continue;if(r=!0,s.restart(),EE&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,n))continue}let p=s.split(),u=c;for(let e=0;p.forceReduce()&&e<10;e++){if(EE&&console.log(u+this.stackID(p)+" (via force-reduce)"),this.advanceFully(p,n))break;EE&&(u=this.stackID(p)+" -> ")}for(let e of s.recoverByInsert(a))EE&&console.log(c+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>s.pos?(l==s.pos&&(l++,a=0),s.recoverByDelete(a,l),EE&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(a)})`),ME(s,n)):(!i||i.score<s.score)&&(i=s)}return i}stackToTree(e){return e.close(),D_.build({buffer:mE.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(PE||(PE=new WeakMap)).get(e);return t||PE.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function ME(e,t){for(let n=0;n<t.length;n++){let i=t[n];if(i.pos==e.pos&&i.sameState(e))return void(t[n].score<e.score&&(t[n]=e))}t.push(e)}class AE{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||0==this.disabled[e]}}const RE=e=>e;class DE{constructor(e){this.start=e.start,this.shift=e.shift||RE,this.reduce=e.reduce||RE,this.reuse=e.reuse||RE,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class jE extends Z_{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let n=0;n<e.repeatNodeCount;n++)t.push("");let n=Object.keys(e.topRules).map((t=>e.topRules[t][1])),i=[];for(let e=0;e<t.length;e++)i.push([]);function r(e,t,n){i[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=k_[e]);for(let n=1;n<t.length;){let i=t[n++];if(i>=0)r(i,e,t[n++]);else{let o=t[n+-i];for(let s=-i;s>0;s--)r(t[n++],e,o);n++}}}this.nodeSet=new C_(t.map(((t,r)=>$_.define({name:r>=this.minRepeatTerm?void 0:t,id:r,props:i[r],top:n.indexOf(r)>-1,error:0==r,skipped:e.skippedNodes&&e.skippedNodes.indexOf(r)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=__;let o=gE(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(BE),this.states=gE(e.states,Uint32Array),this.data=gE(e.stateData),this.goto=gE(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map((e=>"number"==typeof e?new OE(o,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new CE(this,e,t,n);for(let r of this.wrappers)i=r(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return-1;for(let r=i[t+1];;){let t=i[r++],o=1&t,s=i[r++];if(o&&n)return s;for(let n=r+(t>>1);r<n;r++)if(i[r]==e)return s;if(o)return-1}}hasAction(e,t){let n=this.data;for(let i=0;i<2;i++)for(let r,o=this.stateSlot(e,i?2:1);;o+=3){if(65535==(r=n[o])){if(1!=n[o+1]){if(2==n[o+1])return qE(n,o+2);break}r=n[o=qE(n,o+2)]}if(r==t||0==r)return qE(n,o+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){if(t==this.stateSlot(e,4))return!0;for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])return!1;n=qE(this.data,n+2)}if(t==qE(this.data,n+1))return!0}}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=qE(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(jE.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,i)=>{let r=e.specializers.find((e=>e.from==n.external));if(!r)return n;let o=Object.assign(Object.assign({},n),{external:r.to});return t.specializers[i]=BE(o),o}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let i of e.split(" ")){let e=t.indexOf(i);e>=0&&(n[e]=!0)}let i=null;for(let e=0;e<t.length;e++)if(!n[e])for(let n,r=this.dialects[t[e]];65535!=(n=this.data[r++]);)(i||(i=new Uint8Array(this.maxTerm+1)))[n]=1;return new AE(e,n,i)}static deserialize(e){return new jE(e)}}function qE(e,t){return e[t]|e[t+1]<<16}function BE(e){if(e.external){let t=e.extend?1:0;return(n,i)=>e.external(n,i)<<1|t}return e.get}let NE=0;class zE{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=NE++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new zE([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new XE;return t=>t.modified.indexOf(e)>-1?t:XE.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let QE=0;class XE{constructor(){this.instances=[],this.id=QE++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>n.base==e&&function(e,t){return e.length==t.length&&e.every(((e,n)=>e==t[n]))}(t,n.modified)));if(n)return n;let i=[],r=new zE(i,e,t);for(let e of t)e.instances.push(r);let o=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let i=0,r=t.length;i<r;i++)t.push(t[i].concat(e[n]));return t.sort(((e,t)=>t.length-e.length))}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)i.push(XE.get(t,e));return r}}function IE(e){let t=Object.create(null);for(let n in e){let i=e[n];Array.isArray(i)||(i=[i]);for(let e of n.split(" "))if(e){let n=[],r=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){r=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!i)throw new RangeError("Invalid path: "+e);if(n.push("*"==i[0]?"":'"'==i[0][0]?JSON.parse(i[0]):i[0]),t+=i[0].length,t==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){r=0;break}if("/"!=s)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let s=n.length-1,a=n[s];if(!a)throw new RangeError("Invalid path: "+e);let l=new VE(i,r,s>0?n.slice(0,s):null);t[a]=l.sort(t[a])}}return LE.add(t)}const LE=new k_;class VE{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function FE(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:i,all:r=null}=t||{};return{style:e=>{let t=r;for(let i of e)for(let e of i.set){let i=n[e.id];if(i){t=t?t+" "+i:i;break}}return t},scope:i}}function UE(e,t,n,i=0,r=e.length){let o=new HE(i,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),i,r,"",o.highlighters),o.flush(r)}VE.empty=new VE([],2,null);class HE{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,r){let{type:o,from:s,to:a}=e;if(s>=n||a<=t)return;o.isTop&&(r=this.highlighters.filter((e=>!e.scope||e.scope(o))));let l=i,c=function(e){let t=e.type.prop(LE);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||VE.empty,p=function(e,t){let n=null;for(let i of e){let e=i.style(t);e&&(n=n?n+" "+e:e)}return n}(r,c.tags);if(p&&(l&&(l+=" "),l+=p,1==c.mode&&(i+=(i?" ":"")+p)),this.startSpan(e.from,l),c.opaque)return;let u=e.tree&&e.tree.prop(k_.mounted);if(u&&u.overlay){let o=e.node.enter(u.overlay[0].from+s,1),c=this.highlighters.filter((e=>!e.scope||e.scope(u.tree.type))),p=e.firstChild();for(let h=0,d=s;;h++){let f=h<u.overlay.length?u.overlay[h]:null,m=f?f.from+s:a,g=Math.max(t,d),y=Math.min(n,m);if(g<y&&p)for(;e.from<y&&(this.highlightRange(e,g,y,i,r),this.startSpan(Math.min(y,e.to),l),!(e.to>=m)&&e.nextSibling()););if(!f||m>n)break;d=f.to+s,d>t&&(this.highlightRange(o.cursor(),Math.max(t,f.from+s),Math.min(n,d),i,c),this.startSpan(d,l))}p&&e.parent()}else if(e.firstChild()){do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,r),this.startSpan(Math.min(n,e.to),l)}}while(e.nextSibling());e.parent()}}}const YE=zE.define,WE=YE(),GE=YE(),ZE=YE(GE),KE=YE(GE),JE=YE(),eP=YE(JE),tP=YE(JE),nP=YE(),iP=YE(nP),rP=YE(),oP=YE(),sP=YE(),aP=YE(sP),lP=YE(),cP={comment:WE,lineComment:YE(WE),blockComment:YE(WE),docComment:YE(WE),name:GE,variableName:YE(GE),typeName:ZE,tagName:YE(ZE),propertyName:KE,attributeName:YE(KE),className:YE(GE),labelName:YE(GE),namespace:YE(GE),macroName:YE(GE),literal:JE,string:eP,docString:YE(eP),character:YE(eP),attributeValue:YE(eP),number:tP,integer:YE(tP),float:YE(tP),bool:YE(JE),regexp:YE(JE),escape:YE(JE),color:YE(JE),url:YE(JE),keyword:rP,self:YE(rP),null:YE(rP),atom:YE(rP),unit:YE(rP),modifier:YE(rP),operatorKeyword:YE(rP),controlKeyword:YE(rP),definitionKeyword:YE(rP),moduleKeyword:YE(rP),operator:oP,derefOperator:YE(oP),arithmeticOperator:YE(oP),logicOperator:YE(oP),bitwiseOperator:YE(oP),compareOperator:YE(oP),updateOperator:YE(oP),definitionOperator:YE(oP),typeOperator:YE(oP),controlOperator:YE(oP),punctuation:sP,separator:YE(sP),bracket:aP,angleBracket:YE(aP),squareBracket:YE(aP),paren:YE(aP),brace:YE(aP),content:nP,heading:iP,heading1:YE(iP),heading2:YE(iP),heading3:YE(iP),heading4:YE(iP),heading5:YE(iP),heading6:YE(iP),contentSeparator:YE(nP),list:YE(nP),quote:YE(nP),emphasis:YE(nP),strong:YE(nP),link:YE(nP),monospace:YE(nP),strikethrough:YE(nP),inserted:YE(),deleted:YE(),changed:YE(),invalid:YE(),meta:lP,documentMeta:YE(lP),annotation:YE(lP),processingInstruction:YE(lP),definition:zE.defineModifier(),constant:zE.defineModifier(),function:zE.defineModifier(),standard:zE.defineModifier(),local:zE.defineModifier(),special:zE.defineModifier()};FE([{tag:cP.link,class:"tok-link"},{tag:cP.heading,class:"tok-heading"},{tag:cP.emphasis,class:"tok-emphasis"},{tag:cP.strong,class:"tok-strong"},{tag:cP.keyword,class:"tok-keyword"},{tag:cP.atom,class:"tok-atom"},{tag:cP.bool,class:"tok-bool"},{tag:cP.url,class:"tok-url"},{tag:cP.labelName,class:"tok-labelName"},{tag:cP.inserted,class:"tok-inserted"},{tag:cP.deleted,class:"tok-deleted"},{tag:cP.literal,class:"tok-literal"},{tag:cP.string,class:"tok-string"},{tag:cP.number,class:"tok-number"},{tag:[cP.regexp,cP.escape,cP.special(cP.string)],class:"tok-string2"},{tag:cP.variableName,class:"tok-variableName"},{tag:cP.local(cP.variableName),class:"tok-variableName tok-local"},{tag:cP.definition(cP.variableName),class:"tok-variableName tok-definition"},{tag:cP.special(cP.variableName),class:"tok-variableName2"},{tag:cP.definition(cP.propertyName),class:"tok-propertyName tok-definition"},{tag:cP.typeName,class:"tok-typeName"},{tag:cP.namespace,class:"tok-namespace"},{tag:cP.className,class:"tok-className"},{tag:cP.macroName,class:"tok-macroName"},{tag:cP.propertyName,class:"tok-propertyName"},{tag:cP.operator,class:"tok-operator"},{tag:cP.comment,class:"tok-comment"},{tag:cP.meta,class:"tok-meta"},{tag:cP.invalid,class:"tok-invalid"},{tag:cP.punctuation,class:"tok-punctuation"}]);class pP{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),hP.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),hP.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new mP(this),r=new mP(e);for(let e=t,o=t;;){if(i.next(e),r.next(e),e=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(o+=i.value.length,i.done||o>=n)return!0}}iter(e=1){return new mP(this,e)}iterRange(e,t=this.length){return new gP(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new yP(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new uP(e):hP.from(uP.split(e,[])):pP.empty}}class uP extends pP{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let r=0;;r++){let o=this.text[r],s=i+o.length;if((t?n:s)>=e)return new vP(i,s,n,o);i=s+1,n++}}decompose(e,t,n,i){let r=e<=0&&t>=this.length?this:new uP(fP(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&i){let e=n.pop(),t=dP(r.text,e.text.slice(),0,r.length);if(t.length<=32)n.push(new uP(t,e.length+r.length));else{let e=t.length>>1;n.push(new uP(t.slice(0,e)),new uP(t.slice(e)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof uP))return super.replace(e,t,n);let i=dP(this.text,dP(n.text,fP(this.text,0,e)),t),r=this.length+n.length-(t-e);return i.length<=32?new uP(i,r):hP.from(uP.split(i,[]),r)}sliceString(e,t=this.length,n="\n"){let i="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let s=this.text[o],a=r+s.length;r>e&&o&&(i+=n),e<a&&t>r&&(i+=s.slice(Math.max(0,e-r),t-r)),r=a+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let r of e)n.push(r),i+=r.length+1,32==n.length&&(t.push(new uP(n,i)),n=[],i=-1);return i>-1&&t.push(new uP(n,i)),t}}class hP extends pP{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,i){for(let r=0;;r++){let o=this.children[r],s=i+o.length,a=n+o.lines-1;if((t?a:s)>=e)return o.lineInner(e,t,n,i);i=s+1,n=a+1}}decompose(e,t,n,i){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let s=this.children[r],a=o+s.length;if(e<=a&&t>=o){let r=i&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!r?n.push(s):s.decompose(e-o,t-o,n,r)}o=a+1}}replace(e,t,n){if(n.lines<this.lines)for(let i=0,r=0;i<this.children.length;i++){let o=this.children[i],s=r+o.length;if(e>=r&&t<=s){let a=o.replace(e-r,t-r,n),l=this.lines-o.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let r=this.children.slice();return r[i]=a,new hP(r,this.length-(t-e)+n.length)}return super.replace(r,s,a)}r=s+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let i="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let s=this.children[r],a=o+s.length;o>e&&r&&(i+=n),e<a&&t>o&&(i+=s.sliceString(e-o,t-o,n)),o=a+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof hP))return 0;let n=0,[i,r,o,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,r+=t){if(i==o||r==s)return n;let a=this.children[i],l=e.children[r];if(a!=l)return n+a.scanIdentical(l,t);n+=a.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new uP(n,t)}let i=Math.max(32,n>>5),r=i<<1,o=i>>1,s=[],a=0,l=-1,c=[];function p(e){let t;if(e.lines>r&&e instanceof hP)for(let t of e.children)p(t);else e.lines>o&&(a>o||!a)?(u(),s.push(e)):e instanceof uP&&a&&(t=c[c.length-1])instanceof uP&&e.lines+t.lines<=32?(a+=e.lines,l+=e.length+1,c[c.length-1]=new uP(t.text.concat(e.text),t.length+1+e.length)):(a+e.lines>i&&u(),a+=e.lines,l+=e.length+1,c.push(e))}function u(){0!=a&&(s.push(1==c.length?c[0]:hP.from(c,l)),l=-1,a=c.length=0)}for(let t of e)p(t);return u(),1==s.length?s[0]:new hP(s,t)}}function dP(e,t,n=0,i=1e9){for(let r=0,o=0,s=!0;o<e.length&&r<=i;o++){let a=e[o],l=r+a.length;l>=n&&(l>i&&(a=a.slice(0,i-r)),r<n&&(a=a.slice(n-r)),s?(t[t.length-1]+=a,s=!1):t.push(a)),r=l+1}return t}function fP(e,t,n){return dP(e,[""],t,n)}pP.empty=new uP([""],0);class mP{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof uP?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],r=this.offsets[n],o=r>>1,s=i instanceof uP?i.text.length:i.children.length;if(o==(t>0?s:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(i instanceof uP){let r=i.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let r=i.children[o+(t<0?-1:0)];e>r.length?(e-=r.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(r),this.offsets.push(t>0?1:(r instanceof uP?r.text.length:r.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class gP{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new mP(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class yP{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(pP.prototype[Symbol.iterator]=function(){return this.iter()},mP.prototype[Symbol.iterator]=gP.prototype[Symbol.iterator]=yP.prototype[Symbol.iterator]=function(){return this});let vP=class{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}},bP="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;e<bP.length;e++)bP[e]+=bP[e-1];function OP(e){for(let t=1;t<bP.length;t+=2)if(bP[t]>e)return bP[t-1]<=e;return!1}function xP(e){return e>=127462&&e<=127487}const wP=8205;function _P(e,t,n=!0,i=!0){return(n?EP:PP)(e,t,i)}function EP(e,t,n){if(t==e.length)return t;t&&kP(e.charCodeAt(t))&&SP(e.charCodeAt(t-1))&&t--;let i=TP(e,t);for(t+=CP(i);t<e.length;){let r=TP(e,t);if(i==wP||r==wP||n&&OP(r))t+=CP(r),i=r;else{if(!xP(r))break;{let n=0,i=t-2;for(;i>=0&&xP(TP(e,i));)n++,i-=2;if(n%2==0)break;t+=2}}}return t}function PP(e,t,n){for(;t>0;){let i=EP(e,t-2,n);if(i<t)return i;t--}return 0}function kP(e){return e>=56320&&e<57344}function SP(e){return e>=55296&&e<56320}function TP(e,t){let n=e.charCodeAt(t);if(!SP(n)||t+1==e.length)return n;let i=e.charCodeAt(t+1);return kP(i)?i-56320+(n-55296<<10)+65536:n}function $P(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function CP(e){return e<65536?1:2}const MP=/\r\n?|\n/;var AP=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(AP||(AP={}));class RP{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,i=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(n,i,r),i+=r):i+=o,n+=r}}iterChangedRanges(e,t=!1){BP(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];i<0?e.push(n,i):e.push(i,n)}return new RP(e)}composeDesc(e){return this.empty?e:e.empty?this:zP(this,e)}mapDesc(e,t=!1){return e.empty?this:NP(this,e,t)}mapPos(e,t=-1,n=AP.Simple){let i=0,r=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],a=this.sections[o++],l=i+s;if(a<0){if(l>e)return r+(e-i);r+=s}else{if(n!=AP.Simple&&l>=e&&(n==AP.TrackDel&&i<e&&l>e||n==AP.TrackBefore&&i<e||n==AP.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!s)return e==i||t<0?r:r+a;r+=a}i=l}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return r}touchesRange(e,t=e){for(let n=0,i=0;n<this.sections.length&&i<=t;){let r=i+this.sections[n++];if(this.sections[n++]>=0&&i<=t&&r>=e)return!(i<e&&r>t)||"cover";i=r}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];e+=(e?" ":"")+n+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new RP(e)}static create(e){return new RP(e)}}class DP extends RP{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return BP(this,((t,n,i,r,o)=>e=e.replace(i,i+(n-t),o)),!1),e}mapDesc(e,t=!1){return NP(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,r=0;i<t.length;i+=2){let o=t[i],s=t[i+1];if(s>=0){t[i]=s,t[i+1]=o;let a=i>>1;for(;n.length<a;)n.push(pP.empty);n.push(o?e.slice(r,r+o):pP.empty)}r+=o}return new DP(t,n)}compose(e){return this.empty?e:e.empty?this:zP(this,e,!0)}map(e,t=!1){return e.empty?this:NP(this,e,t,!0)}iterChanges(e,t=!1){BP(this,e,t)}get desc(){return RP.create(this.sections)}filter(e){let t=[],n=[],i=[],r=new QP(this);e:for(let o=0,s=0;;){let a=o==e.length?1e9:e[o++];for(;s<a||s==a&&0==r.len;){if(r.done)break e;let e=Math.min(r.len,a-s);jP(i,e,-1);let o=-1==r.ins?-1:0==r.off?r.ins:0;jP(t,e,o),o>0&&qP(n,t,r.text),r.forward(e),s+=e}let l=e[o++];for(;s<l;){if(r.done)break e;let e=Math.min(r.len,l-s);jP(t,e,-1),jP(i,e,-1==r.ins?-1:0==r.off?r.ins:0),r.forward(e),s+=e}}return{changes:new DP(t,n),filtered:RP.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],i=this.sections[t+1];i<0?e.push(n):0==i?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let i=[],r=[],o=0,s=null;function a(e=!1){if(!e&&!i.length)return;o<t&&jP(i,t-o,-1);let n=new DP(i,r);s=s?s.compose(n.map(s)):n,i=[],r=[],o=0}return function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof DP){if(l.length!=t)throw new RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);a(),s=s?s.compose(l.map(s)):l}else{let{from:e,to:s=e,insert:c}=l;if(e>s||e<0||s>t)throw new RangeError(`Invalid change range ${e} to ${s} (in doc of length ${t})`);let p=c?"string"==typeof c?pP.of(c.split(n||MP)):c:pP.empty,u=p.length;if(e==s&&0==u)return;e<o&&a(),e>o&&jP(i,e-o,-1),jP(i,s-e,u),qP(r,i,p),o=s}}(e),a(!s),s}static empty(e){return new DP(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;i<e.length;i++){let r=e[i];if("number"==typeof r)t.push(r,-1);else{if(!Array.isArray(r)||"number"!=typeof r[0]||r.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)t.push(r[0],0);else{for(;n.length<i;)n.push(pP.empty);n[i]=pP.of(r.slice(1)),t.push(r[0],n[i].length)}}}return new DP(t,n)}static createSet(e,t){return new DP(e,t)}}function jP(e,t,n,i=!1){if(0==t&&n<=0)return;let r=e.length-2;r>=0&&n<=0&&n==e[r+1]?e[r]+=t:0==t&&0==e[r]?e[r+1]+=n:i?(e[r]+=t,e[r+1]+=n):e.push(t,n)}function qP(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<i;)e.push(pP.empty);e.push(n)}}function BP(e,t,n){let i=e.inserted;for(let r=0,o=0,s=0;s<e.sections.length;){let a=e.sections[s++],l=e.sections[s++];if(l<0)r+=a,o+=a;else{let c=r,p=o,u=pP.empty;for(;c+=a,p+=l,l&&i&&(u=u.append(i[s-2>>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)a=e.sections[s++],l=e.sections[s++];t(r,c,o,p,u),r=c,o=p}}}function NP(e,t,n,i=!1){let r=[],o=i?[]:null,s=new QP(e),a=new QP(t);for(let e=-1;;)if(-1==s.ins&&-1==a.ins){let e=Math.min(s.len,a.len);jP(r,e,-1),s.forward(e),a.forward(e)}else if(a.ins>=0&&(s.ins<0||e==s.i||0==s.off&&(a.len<s.len||a.len==s.len&&!n))){let t=a.len;for(jP(r,a.ins,-1);t;){let n=Math.min(s.len,t);s.ins>=0&&e<s.i&&s.len<=n&&(jP(r,0,s.ins),o&&qP(o,r,s.text),e=s.i),s.forward(n),t-=n}a.next()}else{if(!(s.ins>=0)){if(s.done&&a.done)return o?DP.createSet(r,o):RP.create(r);throw new Error("Mismatched change set lengths")}{let t=0,n=s.len;for(;n;)if(-1==a.ins){let e=Math.min(n,a.len);t+=e,n-=e,a.forward(e)}else{if(!(0==a.ins&&a.len<n))break;n-=a.len,a.next()}jP(r,t,e<s.i?s.ins:0),o&&e<s.i&&qP(o,r,s.text),e=s.i,s.forward(s.len-n)}}}function zP(e,t,n=!1){let i=[],r=n?[]:null,o=new QP(e),s=new QP(t);for(let e=!1;;){if(o.done&&s.done)return r?DP.createSet(i,r):RP.create(i);if(0==o.ins)jP(i,o.len,0,e),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");{let t=Math.min(o.len2,s.len),n=i.length;if(-1==o.ins){let n=-1==s.ins?-1:s.off?0:s.ins;jP(i,t,n,e),r&&n&&qP(r,i,s.text)}else-1==s.ins?(jP(i,o.off?0:o.len,t,e),r&&qP(r,i,o.textBit(t))):(jP(i,o.off?0:o.len,s.off?0:s.ins,e),r&&!s.off&&qP(r,i,s.text));e=(o.ins>t||s.ins>=0&&s.len>t)&&(e||i.length>n),o.forward2(t),s.forward(t)}}else jP(i,0,s.ins,e),r&&qP(r,i,s.text),s.next()}}class QP{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?pP.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?pP.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class XP{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new XP(n,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return IP.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return IP.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return IP.range(e.anchor,e.head)}static create(e,t,n){return new XP(e,t,n)}}class IP{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:IP.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;t<this.ranges.length;t++)if(!this.ranges[t].eq(e.ranges[t]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new IP([this.main],0)}addRange(e,t=!0){return IP.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,IP.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new IP(e.ranges.map((e=>XP.fromJSON(e))),e.main)}static single(e,t=e){return new IP([IP.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;i<e.length;i++){let r=e[i];if(r.empty?r.from<=n:r.from<n)return IP.normalized(e.slice(),t);n=r.to}return new IP(e,t)}static cursor(e,t=0,n,i){return XP.create(e,e,(0==t?0:t<0?4:8)|(null==n?3:Math.min(2,n))|(null!=i?i:33554431)<<5)}static range(e,t,n,i){let r=(null!=n?n:33554431)<<5|(null==i?3:Math.min(2,i));return t<e?XP.create(t,e,24|r):XP.create(e,t,(t>e?4:0)|r)}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let n=1;n<e.length;n++){let i=e[n],r=e[n-1];if(i.empty?i.from<=r.to:i.from<r.to){let o=r.from,s=Math.max(i.to,r.to);n<=t&&t--,e.splice(--n,2,i.anchor>i.head?IP.range(s,o):IP.range(o,s))}}return new IP(e,t)}}function LP(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let VP=0;class FP{constructor(e,t,n,i,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=VP++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}static define(e={}){return new FP(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:UP),!!e.static,e.enables)}of(e){return new HP([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new HP(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new HP(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function UP(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class HP{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=VP++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,r=this.id,o=e[r]>>1,s=2==this.type,a=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?a=!0:"selection"==n?l=!0:0==(1&(null!==(t=e[n.id])&&void 0!==t?t:1))&&c.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||WP(e,c)){let t=n(e);if(s?!YP(t,e.values[o],i):!i(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[r];if(null!=l){let r=ak(t,l);if(this.dependencies.every((n=>n instanceof FP?t.facet(n)===e.facet(n):!(n instanceof KP)||t.field(n,!1)==e.field(n,!1)))||(s?YP(a=n(e),r,i):i(a=n(e),r)))return e.values[o]=r,0}else a=n(e);return e.values[o]=a,1}}}}function YP(e,t,n){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1;return!0}function WP(e,t){let n=!1;for(let i of t)1&sk(e,i)&&(n=!0);return n}function GP(e,t,n){let i=n.map((t=>e[t.id])),r=n.map((e=>e.type)),o=i.filter((e=>!(1&e))),s=e[t.id]>>1;function a(e){let n=[];for(let t=0;t<i.length;t++){let o=ak(e,i[t]);if(2==r[t])for(let e of o)n.push(e);else n.push(o)}return t.combine(n)}return{create(e){for(let t of i)sk(e,t);return e.values[s]=a(e),1},update(e,n){if(!WP(e,o))return 0;let i=a(e);return t.compare(i,e.values[s])?0:(e.values[s]=i,1)},reconfigure(e,r){let o=WP(e,i),l=r.config.facets[t.id],c=r.facet(t);if(l&&!o&&UP(n,l))return e.values[s]=c,0;let p=a(e);return t.compare(p,c)?(e.values[s]=c,0):(e.values[s]=p,1)}}}const ZP=FP.define({static:!0});class KP{constructor(e,t,n,i,r){this.id=e,this.createF=t,this.updateF=n,this.compareF=i,this.spec=r,this.provides=void 0}static define(e){let t=new KP(VP++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(ZP).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let i=e.values[t],r=this.updateF(i,n);return this.compareF(i,r)?0:(e.values[t]=r,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,ZP.of({field:this,create:e})]}get extension(){return this}}const JP={lowest:4,low:3,default:2,high:1,highest:0};function ek(e){return t=>new nk(t,e)}const tk={highest:ek(JP.highest),high:ek(JP.high),default:ek(JP.default),low:ek(JP.low),lowest:ek(JP.lowest)};class nk{constructor(e,t){this.inner=e,this.prec=t}}class ik{of(e){return new rk(this,e)}reconfigure(e){return ik.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class rk{constructor(e,t){this.compartment=e,this.inner=t}}class ok{constructor(e,t,n,i,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let i=[],r=Object.create(null),o=new Map;for(let n of function(e,t,n){let i=[[],[],[],[],[]],r=new Map;function o(e,s){let a=r.get(e);if(null!=a){if(a<=s)return;let t=i[a].indexOf(e);t>-1&&i[a].splice(t,1),e instanceof rk&&n.delete(e.compartment)}if(r.set(e,s),Array.isArray(e))for(let t of e)o(t,s);else if(e instanceof rk){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let i=t.get(e.compartment)||e.inner;n.set(e.compartment,i),o(i,s)}else if(e instanceof nk)o(e.inner,e.prec);else if(e instanceof KP)i[s].push(e),e.provides&&o(e.provides,s);else if(e instanceof HP)i[s].push(e),e.facet.extensions&&o(e.facet.extensions,JP.default);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(t,s)}}return o(e,JP.default),i.reduce(((e,t)=>e.concat(t)))}(e,t,o))n instanceof KP?i.push(n):(r[n.facet.id]||(r[n.facet.id]=[])).push(n);let s=Object.create(null),a=[],l=[];for(let e of i)s[e.id]=l.length<<1,l.push((t=>e.slot(t)));let c=null==n?void 0:n.config.facets;for(let e in r){let t=r[e],i=t[0].facet,o=c&&c[e]||[];if(t.every((e=>0==e.type)))if(s[i.id]=a.length<<1|1,UP(o,t))a.push(n.facet(i));else{let e=i.combine(t.map((e=>e.value)));a.push(n&&i.compare(e,n.facet(i))?n.facet(i):e)}else{for(let e of t)0==e.type?(s[e.id]=a.length<<1|1,a.push(e.value)):(s[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));s[i.id]=l.length<<1,l.push((e=>GP(e,i,t)))}}let p=l.map((e=>e(s)));return new ok(e,o,p,s,a,r)}}function sk(e,t){if(1&t)return 2;let n=t>>1,i=e.status[n];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;e.status[n]=4;let r=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|r}function ak(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const lk=FP.define(),ck=FP.define({combine:e=>e.some((e=>e)),static:!0}),pk=FP.define({combine:e=>e.length?e[0]:void 0,static:!0}),uk=FP.define(),hk=FP.define(),dk=FP.define(),fk=FP.define({combine:e=>!!e.length&&e[0]});class mk{constructor(e,t){this.type=e,this.value=t}static define(){return new gk}}class gk{of(e){return new mk(this,e)}}class yk{constructor(e){this.map=e}of(e){return new vk(this,e)}}class vk{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new vk(this.type,t)}is(e){return this.type==e}static define(e={}){return new yk(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let e=i.map(t);e&&n.push(e)}return n}}vk.reconfigure=vk.define(),vk.appendConfig=vk.define();class bk{constructor(e,t,n,i,r,o){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,n&&LP(n,t.newLength),r.some((e=>e.type==bk.time))||(this.annotations=r.concat(bk.time.of(Date.now())))}static create(e,t,n,i,r,o){return new bk(e,t,n,i,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(bk.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function Ok(e,t){let n=[];for(let i=0,r=0;;){let o,s;if(i<e.length&&(r==t.length||t[r]>=e[i]))o=e[i++],s=e[i++];else{if(!(r<t.length))return n;o=t[r++],s=t[r++]}!n.length||n[n.length-1]<o?n.push(o,s):n[n.length-1]<s&&(n[n.length-1]=s)}}function xk(e,t,n){var i;let r,o,s;return n?(r=t.changes,o=DP.empty(t.changes.length),s=e.changes.compose(t.changes)):(r=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),s=e.changes.compose(r)),{changes:s,selection:t.selection?t.selection.map(o):null===(i=e.selection)||void 0===i?void 0:i.map(r),effects:vk.mapEffects(e.effects,r).concat(vk.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function wk(e,t,n){let i=t.selection,r=Pk(t.annotations);return t.userEvent&&(r=r.concat(bk.userEvent.of(t.userEvent))),{changes:t.changes instanceof DP?t.changes:DP.of(t.changes||[],n,e.facet(pk)),selection:i&&(i instanceof IP?i:IP.single(i.anchor,i.head)),effects:Pk(t.effects),annotations:r,scrollIntoView:!!t.scrollIntoView}}function _k(e,t,n){let i=wk(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(n=!1);for(let r=1;r<t.length;r++){!1===t[r].filter&&(n=!1);let o=!!t[r].sequential;i=xk(i,wk(e,t[r],o?i.changes.newLength:e.doc.length),o)}let r=bk.create(e,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return function(e){let t=e.startState,n=t.facet(dk),i=e;for(let r=n.length-1;r>=0;r--){let o=n[r](e);o&&Object.keys(o).length&&(i=xk(i,wk(t,o,e.changes.newLength),!0))}return i==e?e:bk.create(t,e.changes,e.selection,i.effects,i.annotations,i.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let i of t.facet(uk)){let t=i(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:Ok(n,t))}if(!0!==n){let i,r;if(!1===n)r=e.changes.invertedDesc,i=DP.empty(t.doc.length);else{let t=e.changes.filter(n);i=t.changes,r=t.filtered.mapDesc(t.changes).invertedDesc}e=bk.create(t,i,e.selection&&e.selection.map(r),vk.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let i=t.facet(hk);for(let n=i.length-1;n>=0;n--){let r=i[n](e);e=r instanceof bk?r:Array.isArray(r)&&1==r.length&&r[0]instanceof bk?r[0]:_k(t,Pk(r),!1)}return e}(r):r)}bk.time=mk.define(),bk.userEvent=mk.define(),bk.addToHistory=mk.define(),bk.remote=mk.define();const Ek=[];function Pk(e){return null==e?Ek:Array.isArray(e)?e:[e]}var kk=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(kk||(kk={}));const Sk=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Tk;try{Tk=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}function $k(e){return t=>{if(!/\S/.test(t))return kk.Space;if(function(e){if(Tk)return Tk.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Sk.test(n)))return!0}return!1}(t))return kk.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return kk.Word;return kk.Other}}class Ck{constructor(e,t,n,i,r,o){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)sk(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null!=n)return sk(this,n),ak(this,n);if(t)throw new RangeError("Field is not present in this state")}update(...e){return _k(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:i,compartments:r}=n;for(let t of e.effects)t.is(ik.reconfigure)?(n&&(r=new Map,n.compartments.forEach(((e,t)=>r.set(t,e))),n=null),r.set(t.value.compartment,t.value.extension)):t.is(vk.reconfigure)?(n=null,i=t.value):t.is(vk.appendConfig)&&(n=null,i=Pk(i).concat(t.value));if(n)t=e.startState.values.slice();else{n=ok.resolve(i,r,this),t=new Ck(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values}new Ck(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:IP.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),r=[n.range],o=Pk(n.effects);for(let n=1;n<t.ranges.length;n++){let s=e(t.ranges[n]),a=this.changes(s.changes),l=a.map(i);for(let e=0;e<n;e++)r[e]=r[e].map(l);let c=i.mapDesc(a,!0);r.push(s.range.map(c)),i=i.compose(l),o=vk.mapEffects(o,l).concat(vk.mapEffects(Pk(s.effects),c))}return{changes:i,selection:IP.create(r,t.mainIndex),effects:o}}changes(e=[]){return e instanceof DP?e:DP.of(e,this.doc.length,this.facet(Ck.lineSeparator))}toText(e){return pP.of(e.split(this.facet(Ck.lineSeparator)||MP))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(sk(this,t),ak(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let i=e[n];i instanceof KP&&null!=this.config.address[i.id]&&(t[n]=i.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(n)for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)){let r=n[t],o=e[t];i.push(r.init((e=>r.spec.fromJSON(o,e))))}return Ck.create({doc:e.doc,selection:IP.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=ok.resolve(e.extensions||[],new Map),n=e.doc instanceof pP?e.doc:pP.of((e.doc||"").split(t.staticFacet(Ck.lineSeparator)||MP)),i=e.selection?e.selection instanceof IP?e.selection:IP.single(e.selection.anchor,e.selection.head):IP.single(0);return LP(i,n.length),t.staticFacet(ck)||(i=i.asSingle()),new Ck(t,n,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(Ck.tabSize)}get lineBreak(){return this.facet(Ck.lineSeparator)||"\n"}get readOnly(){return this.facet(fk)}phrase(e,...t){for(let t of this.facet(Ck.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let i=+(n||1);return!i||i>t.length?e:t[i-1]}))),e}languageDataAt(e,t,n=-1){let i=[];for(let r of this.facet(lk))for(let o of r(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){return $k(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-n,s=e-n;for(;o>0;){let e=_P(t,o,!1);if(r(t.slice(e,o))!=kk.Word)break;o=e}for(;s<i;){let e=_P(t,s);if(r(t.slice(s,e))!=kk.Word)break;s=e}return o==s?null:IP.range(o+n,s+n)}}function Mk(e,t,n={}){let i={};for(let t of e)for(let e of Object.keys(t)){let r=t[e],o=i[e];if(void 0===o)i[e]=r;else if(o===r||void 0===r);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);i[e]=n[e](o,r)}}for(let e in t)void 0===i[e]&&(i[e]=t[e]);return i}Ck.allowMultipleSelections=ck,Ck.tabSize=FP.define({combine:e=>e.length?e[0]:4}),Ck.lineSeparator=pk,Ck.readOnly=fk,Ck.phrases=FP.define({compare(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length==i.length&&n.every((n=>e[n]==t[n]))}}),Ck.languageData=lk,Ck.changeFilter=uk,Ck.transactionFilter=hk,Ck.transactionExtender=dk,ik.reconfigure=vk.define();class Ak{eq(e){return this==e}range(e,t=e){return Rk.create(e,t,this)}}Ak.prototype.startSide=Ak.prototype.endSide=0,Ak.prototype.point=!1,Ak.prototype.mapMode=AP.TrackDel;class Rk{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Rk(e,t,n)}}function Dk(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class jk{constructor(e,t,n,i){this.from=e,this.to=t,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,i=0){let r=n?this.to:this.from;for(let o=i,s=r.length;;){if(o==s)return o;let i=o+s>>1,a=r[i]-e||(n?this.value[i].endSide:this.value[i].startSide)-t;if(i==o)return a>=0?o:s;a>=0?s=i:o=i+1}}between(e,t,n,i){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,r);r<o;r++)if(!1===i(this.from[r]+e,this.to[r]+e,this.value[r]))return!1}map(e,t){let n=[],i=[],r=[],o=-1,s=-1;for(let a=0;a<this.value.length;a++){let l,c,p=this.value[a],u=this.from[a]+e,h=this.to[a]+e;if(u==h){let e=t.mapPos(u,p.startSide,p.mapMode);if(null==e)continue;if(l=c=e,p.startSide!=p.endSide&&(c=t.mapPos(u,p.endSide),c<l))continue}else if(l=t.mapPos(u,p.startSide),c=t.mapPos(h,p.endSide),l>c||l==c&&p.startSide>0&&p.endSide<=0)continue;(c-l||p.endSide-p.startSide)<0||(o<0&&(o=l),p.point&&(s=Math.max(s,c-l)),n.push(p),i.push(l-o),r.push(c-o))}return{mapped:n.length?new jk(i,r,n,s):null,pos:o}}}class qk{constructor(e,t,n,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}static create(e,t,n,i){return new qk(e,t,n,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:r=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Dk)),this.isEmpty)return t.length?qk.of(t):this;let s=new zk(this,null,-1).goto(0),a=0,l=[],c=new Bk;for(;s.value||a<t.length;)if(a<t.length&&(s.from-t[a].from||s.startSide-t[a].value.startSide)>=0){let e=t[a++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(s.chunkIndex)<t[a].from)&&(!o||i>this.chunkEnd(s.chunkIndex)||r<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||i>s.to||r<s.from||o(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value)||l.push(Rk.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?qk.empty:this.nextLayer.update({add:l,filter:o,filterFrom:i,filterTo:r}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],i=-1;for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r],a=e.touchesRange(o,o+s.length);if(!1===a)i=Math.max(i,s.maxPoint),t.push(s),n.push(e.mapPos(o));else if(!0===a){let{mapped:r,pos:a}=s.map(o,e);r&&(i=Math.max(i,r.maxPoint),t.push(r),n.push(a))}}let r=this.nextLayer.map(e);return 0==t.length?r:new qk(n,t,r||qk.empty,i)}between(e,t,n){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let r=this.chunkPos[i],o=this.chunk[i];if(t>=r&&e<=r+o.length&&!1===o.between(r,e-r,t-r,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return Qk.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Qk.from(e).goto(t)}static compare(e,t,n,i,r=-1){let o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),s=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),a=Nk(o,s,n),l=new Ik(o,a,r),c=new Ik(s,a,r);n.iterGaps(((e,t,n)=>Lk(l,e,c,t,n,i))),n.empty&&0==n.length&&Lk(l,0,c,0,0,i)}static eq(e,t,n=0,i){null==i&&(i=999999999);let r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(r.length!=o.length)return!1;if(!r.length)return!0;let s=Nk(r,o),a=new Ik(r,s,0).goto(n),l=new Ik(o,s,0).goto(n);for(;;){if(a.to!=l.to||!Vk(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>i)return!0;a.next(),l.next()}}static spans(e,t,n,i,r=-1){let o=new Ik(e,null,r).goto(t),s=t,a=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),r=o.pointFrom<t?n.length+1:Math.min(n.length,a);i.point(s,e,o.point,n,r,o.pointRank),a=Math.min(o.openEnd(e),n.length)}else e>s&&(i.span(s,e,o.active,a),a=o.openEnd(e));if(o.to>n)return a+(o.point&&o.to>n?1:0);s=o.to,o.next()}}static of(e,t=!1){let n=new Bk;for(let i of e instanceof Rk?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let i=e[n];if(Dk(t,i)>0)return e.slice().sort(Dk);t=i}return e}(e):e)n.add(i.from,i.to,i.value);return n.finish()}}qk.empty=new qk([],[],null,-1),qk.empty.nextLayer=qk.empty;class Bk{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(e){this.chunks.push(new jk(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Bk)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(qk.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=qk.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Nk(e,t,n){let i=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&i.set(t.chunk[e],t.chunkPos[e]);let r=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let o=i.get(e.chunk[t]);null==o||(n?n.mapPos(o):o)!=e.chunkPos[t]||(null==n?void 0:n.touchesRange(o,o+e.chunk[t].length))||r.add(e.chunk[t])}return r}class zk{constructor(e,t,n,i=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Qk{constructor(e){this.heap=e}static from(e,t=null,n=-1){let i=[];for(let r=0;r<e.length;r++)for(let o=e[r];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&i.push(new zk(o,t,n,r));return 1==i.length?i[0]:new Qk(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)Xk(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)Xk(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Xk(this.heap,0)}}}function Xk(e,t){for(let n=e[t];;){let i=1+(t<<1);if(i>=e.length)break;let r=e[i];if(i+1<e.length&&r.compare(e[i+1])>=0&&(r=e[i+1],i++),n.compare(r)<0)break;e[i]=n,e[t]=r,t=i}}class Ik{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Qk.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Fk(this.active,e),Fk(this.activeTo,e),Fk(this.activeRank,e),this.minActive=Hk(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:i,rank:r}=this.cursor;for(;t<this.activeRank.length&&this.activeRank[t]<=r;)t++;Uk(this.active,t,n),Uk(this.activeTo,t,i),Uk(this.activeRank,t,r),e&&Uk(e,t,this.cursor.from),this.minActive=Hk(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&Fk(n,i)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function Lk(e,t,n,i,r,o){e.goto(t),n.goto(i);let s=i+r,a=i,l=i-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,i=t<0?e.to+l:n.to,r=Math.min(i,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&Vk(e.activeForPoint(e.to+l),n.activeForPoint(n.to))||o.comparePoint(a,r,e.point,n.point):r>a&&!Vk(e.active,n.active)&&o.compareRange(a,r,e.active,n.active),i>s)break;a=i,t<=0&&e.next(),t>=0&&n.next()}}function Vk(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function Fk(e,t){for(let n=t,i=e.length-1;n<i;n++)e[n]=e[n+1];e.pop()}function Uk(e,t,n){for(let n=e.length-1;n>=t;n--)e[n+1]=e[n];e[t]=n}function Hk(e,t){let n=-1,i=1e9;for(let r=0;r<t.length;r++)(t[r]-i||e[r].endSide-e[n].endSide)<0&&(n=r,i=t[r]);return n}function Yk(e,t,n=e.length){let i=0;for(let r=0;r<n;)9==e.charCodeAt(r)?(i+=t-i%t,r++):(i++,r=_P(e,r));return i}const Wk="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),Gk="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Zk="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class Kk{constructor(e,t){this.rules=[];let{finish:n}=t||{};function i(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function r(e,t,o,s){let a=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let n in t){let s=t[n];if(/&/.test(n))r(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),s,o);else if(s&&"object"==typeof s){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");r(i(n),s,a,c)}else null!=s&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+s+";")}(a.length||c)&&o.push((!n||l||s?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let t in e)r(i(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=Zk[Wk]||1;return Zk[Wk]=e+1,"ͼ"+e.toString(36)}static mount(e,t){(e[Gk]||new eS(e)).mount(Array.isArray(t)?t:[t])}}let Jk=null;class eS{constructor(e){if(!e.head&&e.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(Jk)return e.adoptedStyleSheets=[Jk.sheet].concat(e.adoptedStyleSheets),e[Gk]=Jk;this.sheet=new CSSStyleSheet,e.adoptedStyleSheets=[this.sheet].concat(e.adoptedStyleSheets),Jk=this}else{this.styleTag=(e.ownerDocument||e).createElement("style");let t=e.head||e;t.insertBefore(this.styleTag,t.firstChild)}this.modules=[],e[Gk]=this}mount(e){let t=this.sheet,n=0,i=0;for(let r=0;r<e.length;r++){let o=e[r],s=this.modules.indexOf(o);if(s<i&&s>-1&&(this.modules.splice(s,1),i--,s=-1),-1==s){if(this.modules.splice(i++,0,o),t)for(let e=0;e<o.rules.length;e++)t.insertRule(o.rules[e],n++)}else{for(;i<s;)n+=this.modules[i++].rules.length;n+=o.rules.length,i++}}if(!t){let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e}}}for(var tS={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},nS={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},iS="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),rS="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),oS="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),sS=rS||iS&&+iS[1]<57,aS=0;aS<10;aS++)tS[48+aS]=tS[96+aS]=String(aS);for(aS=1;aS<=24;aS++)tS[aS+111]="F"+aS;for(aS=65;aS<=90;aS++)tS[aS]=String.fromCharCode(aS+32),nS[aS]=String.fromCharCode(aS);for(var lS in tS)nS.hasOwnProperty(lS)||(nS[lS]=tS[lS]);function cS(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function pS(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function uS(e,t){if(!t.anchorNode)return!1;try{return pS(e,t.anchorNode)}catch(e){return!1}}function hS(e){return 3==e.nodeType?ES(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function dS(e,t,n,i){return!!n&&(mS(e,t,n,i,-1)||mS(e,t,n,i,1))}function fS(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function mS(e,t,n,i,r){for(;;){if(e==n&&t==i)return!0;if(t==(r<0?0:gS(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=fS(e)+(r<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=r<0?gS(e):0}}}function gS(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}const yS={left:0,right:0,top:0,bottom:0};function vS(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function bS(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class OS{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){this.set(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}set(e,t,n,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=i}}let xS,wS=null;function _S(e){if(e.setActive)return e.setActive();if(wS)return e.focus(wS);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==wS?{get preventScroll(){return wS={preventScroll:!0},!0}}:void 0),!wS){wS=!1;for(let e=0;e<t.length;){let n=t[e++],i=t[e++],r=t[e++];n.scrollTop!=i&&(n.scrollTop=i),n.scrollLeft!=r&&(n.scrollLeft=r)}}}function ES(e,t,n=t){let i=xS||(xS=document.createRange());return i.setEnd(e,n),i.setStart(e,t),i}function PS(e,t,n){let i={key:t,code:t,keyCode:n,which:n,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,e.dispatchEvent(r);let o=new KeyboardEvent("keyup",i);return o.synthetic=!0,e.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function kS(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}class SS{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new SS(e.parentNode,fS(e),t)}static after(e,t){return new SS(e.parentNode,fS(e)+1,t)}}const TS=[];class $S{constructor(){this.parent=null,this.dom=null,this.dirty=2}get editorView(){if(!this.parent)throw new Error("Accessing view in orphan content view");return this.parent.editorView}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}coordsAt(e,t){return null}sync(e){if(2&this.dirty){let t,n=this.dom,i=null;for(let r of this.children){if(r.dirty){if(!r.dom&&(t=i?i.nextSibling:n.firstChild)){let e=$S.get(t);(!e||!e.parent&&e.canReuseDOM(r))&&r.reuseDOM(t)}r.sync(e),r.dirty=0}if(t=i?i.nextSibling:n.firstChild,e&&!e.written&&e.node==n&&t!=r.dom&&(e.written=!0),r.dom.parentNode==n)for(;t&&t!=r.dom;)t=CS(t);else n.insertBefore(r.dom,t);i=r.dom}for(t=i?i.nextSibling:n.firstChild,t&&e&&e.node==n&&(e.written=!0);t;)t=CS(t)}else if(1&this.dirty)for(let t of this.children)t.dirty&&(t.sync(e),t.dirty=0)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let i=0==gS(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==i&&t.firstChild!=t.lastChild&&(i=e==t.firstChild?-1:1),e=t}n=i<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!$S.get(n);)n=n.nextSibling;if(!n)return this.length;for(let e=0,t=0;;e++){let i=this.children[e];if(i.dom==n)return t;t+=i.length+i.breakAfter}}domBoundsAround(e,t,n=0){let i=-1,r=-1,o=-1,s=-1;for(let a=0,l=n,c=n;a<this.children.length;a++){let n=this.children[a],p=l+n.length;if(l<e&&p>t)return n.domBoundsAround(e,t,l);if(p>=e&&-1==i&&(i=a,r=l),l>t&&n.dom.parentNode==this.dom){o=a,s=c;break}c=p,l=p+n.breakAfter}return{from:r,to:s<0?n+this.length:s,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=TS){this.markDirty();for(let n=e;n<t;n++){let e=this.children[n];e.parent==this&&e.destroy()}this.children.splice(e,t-e,...n);for(let e=0;e<n.length;e++)n[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new MS(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}merge(e,t,n,i,r,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor}getSide(){return 0}destroy(){this.parent=null}}function CS(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}$S.prototype.breakAfter=0;class MS{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function AS(e,t,n,i,r,o,s,a,l){let{children:c}=e,p=c.length?c[t]:null,u=o.length?o[o.length-1]:null,h=u?u.breakAfter:s;if(!(t==i&&p&&!s&&!h&&o.length<2&&p.merge(n,r,o.length?u:null,0==n,a,l))){if(i<c.length){let e=c[i];e&&r<e.length?(t==i&&(e=e.split(r),r=0),!h&&u&&e.merge(0,r,u,!0,0,l)?o[o.length-1]=e:(r&&e.merge(0,r,null,!1,0,l),o.push(e))):(null==e?void 0:e.breakAfter)&&(u?u.breakAfter=1:s=1),i++}for(p&&(p.breakAfter=s,n>0&&(!s&&o.length&&p.merge(n,p.length,o[0],!1,a,0)?p.breakAfter=o.shift().breakAfter:(n<p.length||p.children.length&&0==p.children[p.children.length-1].length)&&p.merge(n,p.length,null,!1,a,0),t++));t<i&&o.length;)if(c[i-1].become(o[o.length-1]))i--,o.pop(),l=o.length?0:a;else{if(!c[t].become(o[0]))break;t++,o.shift(),a=o.length?0:l}!o.length&&t&&i<c.length&&!c[t-1].breakAfter&&c[i].merge(0,0,c[t-1],!1,a,l)&&t--,(t<i||o.length)&&e.replaceChildren(t,i,o)}}function RS(e,t,n,i,r,o){let s=e.childCursor(),{i:a,off:l}=s.findPos(n,1),{i:c,off:p}=s.findPos(t,-1),u=t-n;for(let e of i)u+=e.length;e.length+=u,AS(e,c,p,a,l,i,0,r,o)}let DS="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},jS="undefined"!=typeof document?document:{documentElement:{style:{}}};const qS=/Edge\/(\d+)/.exec(DS.userAgent),BS=/MSIE \d/.test(DS.userAgent),NS=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(DS.userAgent),zS=!!(BS||NS||qS),QS=!zS&&/gecko\/(\d+)/i.test(DS.userAgent),XS=!zS&&/Chrome\/(\d+)/.exec(DS.userAgent),IS="webkitFontSmoothing"in jS.documentElement.style,LS=!zS&&/Apple Computer/.test(DS.vendor),VS=LS&&(/Mobile\/\w+/.test(DS.userAgent)||DS.maxTouchPoints>2);var FS={mac:VS||/Mac/.test(DS.platform),windows:/Win/.test(DS.platform),linux:/Linux|X11/.test(DS.platform),ie:zS,ie_version:BS?jS.documentMode||6:NS?+NS[1]:qS?+qS[1]:0,gecko:QS,gecko_version:QS?+(/Firefox\/(\d+)/.exec(DS.userAgent)||[0,0])[1]:0,chrome:!!XS,chrome_version:XS?+XS[1]:0,ios:VS,android:/Android\b/.test(DS.userAgent),webkit:IS,safari:LS,webkit_version:IS?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=jS.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class US extends $S{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return(!n||n instanceof US&&!(this.length-(t-e)+n.length>256))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new US(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new SS(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return YS(this.dom,e,t)}}class HS extends $S{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let e of t)e.setParent(this)}setAttrs(e){if(kS(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e)}merge(e,t,n,i,r,o){return(!n||!(!(n instanceof HS&&n.mark.eq(this.mark))||e&&r<=0||t<this.length&&o<=0))&&(RS(this,e,t,n?n.children:[],r-1,o-1),this.markDirty(),!0)}split(e){let t=[],n=0,i=-1,r=0;for(let o of this.children){let s=n+o.length;s>e&&t.push(n<e?o.split(e-n):o),i<0&&n>=e&&(i=r),n=s,r++}let o=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new HS(this.mark,t,o)}domAtPos(e){return eT(this,e)}coordsAt(e,t){return nT(this,e,t)}}function YS(e,t,n){let i=e.nodeValue.length;t>i&&(t=i);let r=t,o=t,s=0;0==t&&n<0||t==i&&n>=0?FS.chrome||FS.gecko||(t?(r--,s=1):o<i&&(o++,s=-1)):n<0?r--:o<i&&o++;let a=ES(e,r,o).getClientRects();if(!a.length)return yS;let l=a[(s?s<0:n>=0)?0:a.length-1];return FS.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,(e=>e.width))||l),s?vS(l,s<0):l||null}class WS extends $S{constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}static create(e,t,n){return new(e.customView||WS)(e,t,n)}split(e){let t=WS.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,i,r,o){return!(n&&(!(n instanceof WS&&this.widget.compare(n.widget))||e>0&&r<=0||t<this.length&&o<=0))&&(this.length=e+(n?n.length:0)+(this.length-t),!0)}become(e){return e.length==this.length&&e instanceof WS&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.eq(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return pP.empty;let e=this;for(;e.parent;)e=e.parent;let t=e.editorView,n=t&&t.state.doc,i=this.posAtStart;return n?n.slice(i,i+this.length):pP.empty}domAtPos(e){return 0==e?SS.before(this.dom):SS.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.dom.getClientRects(),i=null;if(!n.length)return yS;for(let t=e>0?n.length-1:0;i=n[t],!(e>0?0==t:t==n.length-1||i.top<i.bottom);t+=e>0?-1:1);return this.length?i:vS(i,this.side>0)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class GS extends WS{domAtPos(e){let{topView:t,text:n}=this.widget;return t?ZS(e,0,t,n,((e,t)=>e.domAtPos(t)),(e=>new SS(n,Math.min(e,n.nodeValue.length)))):new SS(n,Math.min(e,n.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:n,text:i}=this.widget;return n?KS(e,t,n,i):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:n,text:i}=this.widget;return n?ZS(e,t,n,i,((e,t,n)=>e.coordsAt(t,n)),((e,t)=>YS(i,e,t))):YS(i,e,t)}destroy(){var e;super.destroy(),null===(e=this.widget.topView)||void 0===e||e.destroy()}get isEditable(){return!0}canReuseDOM(){return!0}}function ZS(e,t,n,i,r,o){if(n instanceof HS){for(let s=n.dom.firstChild;s;s=s.nextSibling){let n=$S.get(s);if(!n)return o(e,t);let a=pS(s,i),l=n.length+(a?i.nodeValue.length:0);if(e<l||e==l&&n.getSide()<=0)return a?ZS(e,t,n,i,r,o):r(n,e,t);e-=l}return r(n,n.length,-1)}return n.dom==i?o(e,t):r(n,e,t)}function KS(e,t,n,i){if(n instanceof HS)for(let r of n.children){let n=0,o=pS(r.dom,i);if(pS(r.dom,e))return n+(o?KS(e,t,r,i):r.localPosFromDOM(e,t));n+=o?i.nodeValue.length:r.length}else if(n.dom==i)return Math.min(t,i.nodeValue.length);return n.localPosFromDOM(e,t)}class JS extends $S{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof JS&&e.side==this.side}split(){return new JS(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return SS.before(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){let t=this.dom.getBoundingClientRect(),n=function(e,t){let n=e.parent,i=n?n.children.indexOf(e):-1;for(;n&&i>=0;)if(t<0?i>0:i<n.children.length){let e=n.children[i+t];if(e instanceof US){let n=e.coordsAt(t<0?e.length:0,t);if(n)return n}i+=t}else{if(!(n instanceof HS&&n.parent)){let e=n.dom.lastChild;if(e&&"BR"==e.nodeName)return e.getClientRects()[0];break}i=n.parent.children.indexOf(n)+(t<0?0:1),n=n.parent}return}(this,this.side>0?-1:1);return n&&n.top<t.bottom&&n.bottom>t.top?{left:t.left,right:t.right,top:n.top,bottom:n.bottom}:t}get overrideDOMText(){return pP.empty}}function eT(e,t){let n=e.dom,{children:i}=e,r=0;for(let e=0;r<i.length;r++){let o=i[r],s=e+o.length;if(!(s==e&&o.getSide()<=0)){if(t>e&&t<s&&o.dom.parentNode==n)return o.domAtPos(t-e);if(t<=e)break;e=s}}for(let e=r;e>0;e--){let t=i[e-1];if(t.dom.parentNode==n)return t.domAtPos(t.length)}for(let e=r;e<i.length;e++){let t=i[e];if(t.dom.parentNode==n)return t.domAtPos(0)}return new SS(n,0)}function tT(e,t,n){let i,{children:r}=e;n>0&&t instanceof HS&&r.length&&(i=r[r.length-1])instanceof HS&&i.mark.eq(t.mark)?tT(i,t.children[0],n-1):(r.push(t),t.setParent(e)),e.length+=t.length}function nT(e,t,n){let i=null,r=-1,o=null,s=-1;!function e(t,n){for(let a=0,l=0;a<t.children.length&&l<=n;a++){let c=t.children[a],p=l+c.length;p>=n&&(c.children.length?e(c,n-l):!o&&(p>n||l==p&&c.getSide()>0)?(o=c,s=n-l):(l<n||l==p&&c.getSide()<0)&&(i=c,r=n-l)),l=p}}(e,t);let a=(n<0?i:o)||i||o;return a?a.coordsAt(Math.max(0,a==i?r:s),n):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=hS(t);return n[n.length-1]||null}(e)}function iT(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}function rT(e,t){if(e==t)return!0;if(!e||!t)return!1;let n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let r of n)if(-1==i.indexOf(r)||e[r]!==t[r])return!1;return!0}function oT(e,t,n){let i=null;if(t)for(let r in t)n&&r in n||e.removeAttribute(i=r);if(n)for(let r in n)t&&t[r]==n[r]||e.setAttribute(i=r,n[r]);return!!i}US.prototype.children=WS.prototype.children=JS.prototype.children=TS;class sT{eq(e){return!1}updateDOM(e){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}ignoreEvent(e){return!0}get customView(){return null}destroy(e){}}var aT=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(aT||(aT={}));class lT extends Ak{constructor(e,t,n,i){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=i}get heightRelevant(){return!1}static mark(e){return new cT(e)}static widget(e){let t=e.side||0,n=!!e.block;return t+=n?t>0?3e8:-4e8:t>0?1e8:-1e8,new uT(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,i=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:r,end:o}=hT(e,i);t=(r?i?-3e8:-1:5e8)-1,n=1+(o?i?2e8:1:-6e8)}return new uT(e,t,n,i,e.widget||null,!0)}static line(e){return new pT(e)}static set(e,t=!1){return qk.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}lT.none=qk.empty;class cT extends lT{constructor(e){let{start:t,end:n}=hT(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof cT&&this.tagName==e.tagName&&this.class==e.class&&rT(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}cT.prototype.point=!1;class pT extends lT{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof pT&&this.spec.class==e.spec.class&&rT(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}pT.prototype.mapMode=AP.TrackBefore,pT.prototype.point=!0;class uT extends lT{constructor(e,t,n,i,r,o){super(t,n,r,e),this.block=i,this.isReplace=o,this.mapMode=i?t<=0?AP.TrackBefore:AP.TrackAfter:AP.TrackDel}get type(){return this.startSide<this.endSide?aT.WidgetRange:this.startSide<=0?aT.WidgetBefore:aT.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&this.widget.estimatedHeight>=5}eq(e){return e instanceof uT&&function(e,t){return e==t||!!(e&&t&&e.compare(t))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function hT(e,t=!1){let{inclusiveStart:n,inclusiveEnd:i}=e;return null==n&&(n=e.inclusive),null==i&&(i=e.inclusive),{start:null!=n?n:t,end:null!=i?i:t}}function dT(e,t,n,i=0){let r=n.length-1;r>=0&&n[r]+i>=e?n[r]=Math.max(n[r],t):n.push(e,t)}uT.prototype.point=!0;class fT extends $S{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,i,r,o){if(n){if(!(n instanceof fT))return!1;this.dom||n.transferDOM(this)}return i&&this.setDeco(n?n.attrs:null),RS(this,e,t,n?n.children:[],r,o),!0}split(e){let t=new fT;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:i}=this.childPos(e);i&&(t.append(this.children[n].split(i),0),this.children[n].merge(i,this.children[n].length,null,!1,0,0),n++);for(let e=n;e<this.children.length;e++)t.append(this.children[e],0);for(;n>0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){rT(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){tT(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=iT(t,this.attrs||{})),n&&(this.attrs=iT({class:n},this.attrs||{}))}domAtPos(e){return eT(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}sync(e){var t;this.dom?4&this.dirty&&(kS(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(oT(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e);let n=this.dom.lastChild;for(;n&&$S.get(n)instanceof HS;)n=n.lastChild;if(!(n&&this.length&&("BR"==n.nodeName||0!=(null===(t=$S.get(n))||void 0===t?void 0:t.isEditable)||FS.ios&&this.children.some((e=>e instanceof US))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e=0;for(let t of this.children){if(!(t instanceof US)||/[^ -~]/.test(t.text))return null;let n=hS(t.dom);if(1!=n.length)return null;e+=n[0].width}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length}:null}coordsAt(e,t){return nT(this,e,t)}become(e){return!1}get type(){return aT.Text}static find(e,t){for(let n=0,i=0;n<e.children.length;n++){let r=e.children[n],o=i+r.length;if(o>=t){if(r instanceof fT)return r;if(o>t)break}i=o+r.breakAfter}return null}}class mT extends $S{constructor(e,t,n){super(),this.widget=e,this.length=t,this.type=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,i,r,o){return!(n&&(!(n instanceof mT&&this.widget.compare(n.widget))||e>0&&r<=0||t<this.length&&o<=0))&&(this.length=e+(n?n.length:0)+(this.length-t),!0)}domAtPos(e){return 0==e?SS.before(this.dom):SS.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new mT(this.widget,t,this.type);return n.breakAfter=this.breakAfter,n}get children(){return TS}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):pP.empty}domBoundsAround(){return null}become(e){return e instanceof mT&&e.type==this.type&&e.widget.constructor==this.widget.constructor&&(e.widget.eq(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class gT{constructor(e,t,n,i){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof mT&&e.type==aT.WidgetBefore)}getLine(){return this.curLine||(this.content.push(this.curLine=new fT),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(yT(new JS(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:i}=this.cursor.next(this.skip);if(this.skip=0,i)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(yT(new US(this.text.slice(this.textOff,this.textOff+i)),t),n),this.atCursorPos=!0,this.textOff+=i,e-=i,n=0}}span(e,t,n,i){this.buildText(t-e,n,i),this.pos=t,this.openStart<0&&(this.openStart=i)}point(e,t,n,i,r,o){if(this.disallowBlockEffectsFor[o]&&n instanceof uT){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=t-e;if(n instanceof uT)if(n.block){let{type:e}=n;e!=aT.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new mT(n.widget||new vT("div"),s,e))}else{let o=WS.create(n.widget||new vT("span"),s,s?0:n.startSide),a=this.atCursorPos&&!o.isEditable&&r<=i.length&&(e<t||n.startSide>0),l=!o.isEditable&&(e<t||r>i.length||n.startSide<=0),c=this.getLine();2!=this.pendingBuffer||a||(this.pendingBuffer=0),this.flushBuffer(i),a&&(c.append(yT(new JS(1),i),r),r=i.length+Math.max(0,r-i.length)),c.append(yT(o,i),r),this.atCursorPos=l,this.pendingBuffer=l?e<t||r>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,n,i,r){let o=new gT(e,t,n,r);return o.openEnd=qk.spans(i,t,n,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function yT(e,t){for(let n of t)e=new HS(n,[e],e.length);return e}class vT extends sT{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}}const bT=FP.define(),OT=FP.define(),xT=FP.define(),wT=FP.define(),_T=FP.define(),ET=FP.define(),PT=FP.define({combine:e=>e.some((e=>e))}),kT=FP.define({combine:e=>e.some((e=>e))});class ST{constructor(e,t="nearest",n="nearest",i=5,r=5){this.range=e,this.y=t,this.x=n,this.yMargin=i,this.xMargin=r}map(e){return e.empty?this:new ST(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const TT=vk.define({map:(e,t)=>e.map(t)});function $T(e,t,n){let i=e.facet(wT);i.length?i[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const CT=FP.define({combine:e=>!e.length||e[0]});let MT=0;const AT=FP.define();class RT{constructor(e,t,n,i){this.id=e,this.create=t,this.domEventHandlers=n,this.extension=i(this)}static define(e,t){const{eventHandlers:n,provide:i,decorations:r}=t||{};return new RT(MT++,e,n,(e=>{let t=[AT.of(e)];return r&&t.push(BT.of((t=>{let n=t.plugin(e);return n?r(n):lT.none}))),i&&t.push(i(e)),t}))}static fromClass(e,t){return RT.define((t=>new e(t)),t)}}class DT{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if($T(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){$T(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){$T(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const jT=FP.define(),qT=FP.define(),BT=FP.define(),NT=FP.define(),zT=FP.define(),QT=FP.define();class XT{constructor(e,t,n,i){this.fromA=e,this.toA=t,this.fromB=n,this.toB=i}join(e){return new XT(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let i=e[t-1];if(!(i.fromA>n.toA)){if(i.toA<n.fromA)break;n=n.join(i),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e;let n=[];for(let i=0,r=0,o=0,s=0;;i++){let a=i==e.length?null:e[i],l=o-s,c=a?a.fromB:1e9;for(;r<t.length&&t[r]<c;){let e=t[r],i=t[r+1],o=Math.max(s,e),a=Math.min(c,i);if(o<=a&&new XT(o+l,a+l,o,a).addToSet(n),i>c)break;r+=2}if(!a)return n;new XT(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),o=a.toA,s=a.toB}}}class IT{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=DP.empty(this.startState.doc.length);for(let e of n)this.changes=this.changes.compose(e.changes);let i=[];this.changes.iterChangedRanges(((e,t,n,r)=>i.push(new XT(e,t,n,r)))),this.changedRanges=i;let r=e.hasFocus;r!=e.inputState.notifiedFocused&&(e.inputState.notifiedFocused=r,this.flags|=1)}static create(e,t,n){return new IT(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var LT=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(LT||(LT={}));const VT=LT.LTR,FT=LT.RTL;function UT(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const HT=UT("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),YT=UT("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),WT=Object.create(null),GT=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);WT[t]=n,WT[n]=-t}const ZT=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class KT{constructor(e,t,n){this.from=e,this.to=t,this.level=n}get dir(){return this.level%2?FT:VT}side(e,t){return this.dir==t==e?this.to:this.from}static find(e,t,n,i){let r=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=t&&s.to>=t){if(s.level==n)return o;(r<0||(0!=i?i<0?s.from<t:s.to>t:e[r].level>s.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}const JT=[];function e$(e){return[new KT(0,e,0)]}let t$="";function n$(e,t,n,i,r){var o;let s=i.head-e.from,a=-1;if(0==s){if(!r||!e.length)return null;t[0].level!=n&&(s=t[0].side(!1,n),a=0)}else if(s==e.length){if(r)return null;let e=t[t.length-1];e.level!=n&&(s=e.side(!0,n),a=t.length-1)}a<0&&(a=KT.find(t,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));let l=t[a];s==l.side(r,n)&&(l=t[a+=r?1:-1],s=l.side(!r,n));let c=r==(l.dir==n),p=_P(e.text,s,c);if(t$=e.text.slice(Math.min(s,p),Math.max(s,p)),p!=l.side(r,n))return IP.cursor(p+e.from,c?-1:1,l.level);let u=a==(r?t.length-1:0)?null:t[a+(r?1:-1)];return u||l.level==n?u&&u.level<l.level?IP.cursor(u.side(!r,n)+e.from,r?1:-1,u.level):IP.cursor(p+e.from,r?-1:1,l.level):IP.cursor(r?e.to:e.from,r?-1:1,n)}const i$="";class r${constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(Ck.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=i$}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let i=e;;){this.findPointBefore(n,i),this.readNode(i);let e=i.nextSibling;if(e==t)break;let r=$S.get(i),o=$S.get(e);(r&&o?r.breakAfter:(r?r.breakAfter:o$(i))||o$(e)&&("BR"!=i.nodeName||i.cmIgnore))&&this.lineBreak(),i=e}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let r,o=-1,s=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(r=i.exec(t))&&(o=r.index,s=r[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=s-1);n=o+s}}readNode(e){if(e.cmIgnore)return;let t=$S.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+Math.min(t,n.offset))}}function o$(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class s${constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class a$ extends $S{constructor(e){super(),this.view=e,this.compositionDeco=lT.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new fT],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new XT(0,0,0,e.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=lT.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){let n=c$(e);if(!n)return lT.none;let{from:i,to:r,node:o,text:s}=n,a=t.mapPos(i,1),l=Math.max(a,t.mapPos(r,-1)),{state:c}=e,p=3==o.nodeType?o.nodeValue:new r$([],c).readRange(o.firstChild,null).text;if(l-a<p.length)if(c.doc.sliceString(a,Math.min(c.doc.length,a+p.length),i$)==p)l=a+p.length;else{if(c.doc.sliceString(Math.max(0,l-p.length),l,i$)!=p)return lT.none;a=l-p.length}else if(c.doc.sliceString(a,l,i$)!=p)return lT.none;let u=$S.get(o);u instanceof GS?u=u.widget.topView:u&&(u.parent=null);return lT.set(lT.replace({widget:new p$(o,s,u),inclusive:!0}).range(a,l))}(this.view,e.changes)),(FS.ie||FS.chrome)&&!this.compositionDeco.size&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let n=function(e,t,n){let i=new h$;return qk.compare(e,t,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return t=XT.extendWithRanges(t,n),(0!=this.dirty||0!=t.length)&&(this.updateInner(t,e.startState.doc.length),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t);let{observer:n}=this.view;n.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=FS.chrome||FS.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(e),this.dirty=0,e&&(e.written||n.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}));let i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof mT&&e.widget instanceof l$&&i.push(e.dom);n.updateGaps(i)}updateChildren(e,t){let n=this.childCursor(t);for(let t=e.length-1;;t--){let i=t>=0?e[t]:null;if(!i)break;let{fromA:r,toA:o,fromB:s,toB:a}=i,{content:l,breakAtStart:c,openStart:p,openEnd:u}=gT.build(this.view.state.doc,s,a,this.decorations,this.dynamicDecorationMap),{i:h,off:d}=n.findPos(o,1),{i:f,off:m}=n.findPos(r,-1);AS(this,f,m,h,d,l,c,p,u)}}updateSelection(e=!1,t=!1){if(!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),!t&&!this.mayControlSelection())return;let n=this.forceSelection;this.forceSelection=!1;let i=this.view.state.selection.main,r=this.domAtPos(i.anchor),o=i.empty?r:this.domAtPos(i.head);if(FS.gecko&&i.empty&&(1==(s=r).node.nodeType&&s.node.firstChild&&(0==s.offset||"false"==s.node.childNodes[s.offset-1].contentEditable)&&(s.offset==s.node.childNodes.length||"false"==s.node.childNodes[s.offset].contentEditable))){let e=document.createTextNode("");this.view.observer.ignore((()=>r.node.insertBefore(e,r.node.childNodes[r.offset]||null))),r=o=new SS(e,0),n=!0}var s;let a=this.view.observer.selectionRange;!n&&a.focusNode&&dS(r.node,r.offset,a.anchorNode,a.anchorOffset)&&dS(o.node,o.offset,a.focusNode,a.focusOffset)||(this.view.observer.ignore((()=>{FS.android&&FS.chrome&&this.dom.contains(a.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(a.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=cS(this.view.root);if(e)if(i.empty){if(FS.gecko){let e=function(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(t<e.childNodes.length&&"false"==e.childNodes[t].contentEditable?2:0)}(r.node,r.offset);if(e&&3!=e){let t=u$(r.node,r.offset,1==e?1:-1);t&&(r=new SS(t,1==e?0:t.nodeValue.length))}}e.collapse(r.node,r.offset),null!=i.bidiLevel&&null!=a.cursorBidiLevel&&(a.cursorBidiLevel=i.bidiLevel)}else if(e.extend){e.collapse(r.node,r.offset);try{e.extend(o.node,o.offset)}catch(e){}}else{let t=document.createRange();i.anchor>i.head&&([r,o]=[o,r]),t.setEnd(o.node,o.offset),t.setStart(r.node,r.offset),e.removeAllRanges(),e.addRange(t)}else;})),this.view.observer.setSelectionRange(r,o)),this.impreciseAnchor=r.precise?null:new SS(a.anchorNode,a.anchorOffset),this.impreciseHead=o.precise?null:new SS(a.focusNode,a.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:e}=this,t=e.state.selection.main,n=cS(e.root),{anchorNode:i,anchorOffset:r}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let o=fT.find(this,t.head);if(!o)return;let s=o.posAtStart;if(t.head==s||t.head==s+o.length)return;let a=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!a||!l||a.bottom>l.top)return;let c=this.domAtPos(t.head+t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let p=e.observer.selectionRange;e.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=t.from&&n.collapse(i,r)}mayControlSelection(){let e=this.view.root.activeElement;return e==this.dom||uS(this.dom,this.view.observer.selectionRange)&&!(e&&this.dom.contains(e))}nearest(e){for(let t=e;t;){let e=$S.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(n<e.length||e instanceof fT)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){for(let n=this.length,i=this.children.length-1;;i--){let r=this.children[i],o=n-r.breakAfter-r.length;if(e>o||e==o&&r.type!=aT.WidgetBefore&&r.type!=aT.WidgetAfter&&(!i||2==t||this.children[i-1].breakAfter||this.children[i-1].type==aT.WidgetBefore&&t>-2))return r.coordsAt(e-o,t);n=o}}measureVisibleLineHeights(e){let t=[],{from:n,to:i}=e,r=this.view.contentDOM.clientWidth,o=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,a=this.view.textDirection==LT.LTR;for(let e=0,l=0;l<this.children.length;l++){let c=this.children[l],p=e+c.length;if(p>i)break;if(e>=n){let n=c.dom.getBoundingClientRect();if(t.push(n.height),o){let t=c.dom.lastChild,i=t?hS(t):[];if(i.length){let t=i[i.length-1],o=a?t.right-n.left:n.right-t.left;o>s&&(s=o,this.minWidth=r,this.minWidthFrom=e,this.minWidthTo=p)}}}e=p+c.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?LT.RTL:LT.LTR}measureTextSize(){for(let e of this.children)if(e instanceof fT){let t=e.measureTextSize();if(t)return t}let e,t,n=document.createElement("div");return n.className="cm-line",n.style.width="99999px",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(n);let i=hS(n.firstChild)[0];e=n.getBoundingClientRect().height,t=i?i.width/27:7,n.remove()})),{lineHeight:e,charWidth:t}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new MS(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,i=0;;i++){let r=i==t.viewports.length?null:t.viewports[i],o=r?r.from-1:this.length;if(o>n){let i=t.lineBlockAt(o).bottom-t.lineBlockAt(n).top;e.push(lT.replace({widget:new l$(i),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!r)break;n=r.to+1}return lT.set(e)}updateDeco(){let e=this.view.state.facet(BT).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;t<e.length+3;t++)this.dynamicDecorationMap[t]=!1;return this.decorations=[...e,this.compositionDeco,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){let t,{range:n}=e,i=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1);if(!i)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,t.left),top:Math.min(i.top,t.top),right:Math.max(i.right,t.right),bottom:Math.max(i.bottom,t.bottom)});let r=0,o=0,s=0,a=0;for(let e of this.view.state.facet(zT).map((e=>e(this.view))))if(e){let{left:t,right:n,top:i,bottom:l}=e;null!=t&&(r=Math.max(r,t)),null!=n&&(o=Math.max(o,n)),null!=i&&(s=Math.max(s,i)),null!=l&&(a=Math.max(a,l))}let l={left:i.left-r,top:i.top-s,right:i.right+o,bottom:i.bottom+a};!function(e,t,n,i,r,o,s,a){let l=e.ownerDocument,c=l.defaultView||window;for(let p=e;p;)if(1==p.nodeType){let e,u=p==l.body;if(u)e=bS(c);else{if(p.scrollHeight<=p.clientHeight&&p.scrollWidth<=p.clientWidth){p=p.assignedSlot||p.parentNode;continue}let t=p.getBoundingClientRect();e={left:t.left,right:t.left+p.clientWidth,top:t.top,bottom:t.top+p.clientHeight}}let h=0,d=0;if("nearest"==r)t.top<e.top?(d=-(e.top-t.top+s),n>0&&t.bottom>e.bottom+d&&(d=t.bottom-e.bottom+d+s)):t.bottom>e.bottom&&(d=t.bottom-e.bottom+s,n<0&&t.top-d<e.top&&(d=-(e.top+d-t.top+s)));else{let i=t.bottom-t.top,o=e.bottom-e.top;d=("center"==r&&i<=o?t.top+i/2-o/2:"start"==r||"center"==r&&n<0?t.top-s:t.bottom-o+s)-e.top}if("nearest"==i?t.left<e.left?(h=-(e.left-t.left+o),n>0&&t.right>e.right+h&&(h=t.right-e.right+h+o)):t.right>e.right&&(h=t.right-e.right+o,n<0&&t.left<e.left+h&&(h=-(e.left+h-t.left+o))):h=("center"==i?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==i==a?t.left-o:t.right-(e.right-e.left)+o)-e.left,h||d)if(u)c.scrollBy(h,d);else{let e=0,n=0;if(d){let e=p.scrollTop;p.scrollTop+=d,n=p.scrollTop-e}if(h){let t=p.scrollLeft;p.scrollLeft+=h,e=p.scrollLeft-t}t={left:t.left-e,top:t.top-n,right:t.right-e,bottom:t.bottom-n},e&&Math.abs(e-h)<1&&(i="nearest"),n&&Math.abs(n-d)<1&&(r="nearest")}if(u)break;p=p.assignedSlot||p.parentNode}else{if(11!=p.nodeType)break;p=p.host}}(this.view.scrollDOM,l,n.head<n.anchor?-1:1,e.x,e.y,e.xMargin,e.yMargin,this.view.textDirection==LT.LTR)}}class l$ extends sT{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}}function c$(e){let t=e.observer.selectionRange,n=t.focusNode&&u$(t.focusNode,t.focusOffset,0);if(!n)return null;let i=e.docView.nearest(n);if(!i)return null;if(i instanceof fT){let e=n;for(;e.parentNode!=i.dom;)e=e.parentNode;let t=e.previousSibling;for(;t&&!$S.get(t);)t=t.previousSibling;let r=t?$S.get(t).posAtEnd:i.posAtStart;return{from:r,to:r,node:e,text:n}}{for(;;){let{parent:e}=i;if(!e)return null;if(e instanceof fT)break;i=e}let e=i.posAtStart;return{from:e,to:e+i.length,node:i.dom,text:n}}}class p$ extends sT{constructor(e,t,n){super(),this.top=e,this.text=t,this.topView=n}eq(e){return this.top==e.top&&this.text==e.text}toDOM(){return this.top}ignoreEvent(){return!1}get customView(){return GS}}function u$(e,t,n){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0&&n<=0)t=gS(e=e.childNodes[t-1]);else{if(!(1==e.nodeType&&t<e.childNodes.length&&n>=0))return null;e=e.childNodes[t],t=0}}}class h${constructor(){this.changes=[]}compareRange(e,t){dT(e,t,this.changes)}comparePoint(e,t){dT(e,t,this.changes)}}function d$(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function f$(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function m$(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function g$(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function y$(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function v$(e,t,n){let i,r,o,s,a,l,c,p,u=!1;for(let h=e.firstChild;h;h=h.nextSibling){let e=hS(h);for(let d=0;d<e.length;d++){let f=e[d];r&&m$(r,f)&&(f=g$(y$(f,r.bottom),r.top));let m=d$(t,f),g=f$(n,f);if(0==m&&0==g)return 3==h.nodeType?b$(h,t,n):v$(h,t,n);(!i||s>g||s==g&&o>m)&&(i=h,r=f,o=m,s=g,u=!m||(m>0?d<e.length-1:d>0)),0==m?n>f.bottom&&(!c||c.bottom<f.bottom)?(a=h,c=f):n<f.top&&(!p||p.top>f.top)&&(l=h,p=f):c&&m$(c,f)?c=y$(c,f.bottom):p&&m$(p,f)&&(p=g$(p,f.top))}}if(c&&c.bottom>=n?(i=a,r=c):p&&p.top<=n&&(i=l,r=p),!i)return{node:e,offset:0};let h=Math.max(r.left,Math.min(r.right,t));return 3==i.nodeType?b$(i,h,n):u&&"false"!=i.contentEditable?v$(i,h,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,i)+(t>=(r.left+r.right)/2?1:0)}}function b$(e,t,n){let i=e.nodeValue.length,r=-1,o=1e9,s=0;for(let a=0;a<i;a++){let i=ES(e,a,a+1).getClientRects();for(let l=0;l<i.length;l++){let c=i[l];if(c.top==c.bottom)continue;s||(s=t-c.left);let p=(c.top>n?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&p<o){let n=t>=(c.left+c.right)/2,i=n;if(FS.chrome||FS.gecko){ES(e,a).getBoundingClientRect().left==c.right&&(i=!n)}if(p<=0)return{node:e,offset:a+(i?1:0)};r=a+(i?1:0),o=p}}}return{node:e,offset:r>-1?r:s>0?e.nodeValue.length:0}}function O$(e,{x:t,y:n},i,r=-1){var o;let s,a=e.contentDOM.getBoundingClientRect(),l=a.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,p=n-l;if(p<0)return 0;if(p>c)return e.state.doc.length;for(let t=e.defaultLineHeight/2,n=!1;s=e.elementAtHeight(p),s.type!=aT.Text;)for(;p=r>0?s.bottom+t:s.top-t,!(p>=0&&p<=c);){if(n)return i?null:0;n=!0,r=-r}n=l+p;let u=s.from;if(u<e.viewport.from)return 0==e.viewport.from?0:i?null:x$(e,a,s,t,n);if(u>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:i?null:x$(e,a,s,t,n);let h=e.dom.ownerDocument,d=e.root.elementFromPoint?e.root:h,f=d.elementFromPoint(t,n);f&&!e.contentDOM.contains(f)&&(f=null),f||(t=Math.max(a.left+1,Math.min(a.right-1,t)),f=d.elementFromPoint(t,n),f&&!e.contentDOM.contains(f)&&(f=null));let m,g=-1;if(f&&0!=(null===(o=e.docView.nearest(f))||void 0===o?void 0:o.isEditable))if(h.caretPositionFromPoint){let e=h.caretPositionFromPoint(t,n);e&&({offsetNode:m,offset:g}=e)}else if(h.caretRangeFromPoint){let i=h.caretRangeFromPoint(t,n);i&&(({startContainer:m,startOffset:g}=i),(!e.contentDOM.contains(m)||FS.safari&&function(e,t,n){let i;if(3!=e.nodeType||t!=(i=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return ES(e,i-1,i).getBoundingClientRect().left>n}(m,g,t)||FS.chrome&&function(e,t,n){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}let i=1==e.nodeType?e.getBoundingClientRect():ES(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-i.left>5}(m,g,t))&&(m=void 0))}if(!m||!e.docView.dom.contains(m)){let i=fT.find(e.docView,u);if(!i)return p>s.top+s.height/2?s.to:s.from;({node:m,offset:g}=v$(i.dom,t,n))}return e.docView.posFromDOM(m,g)}function x$(e,t,n,i,r){let o=Math.round((i-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){o+=Math.floor((r-n.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+function(e,t,n,i){for(let i=0,r=0;;){if(r>=t)return i;if(i==e.length)break;r+=9==e.charCodeAt(i)?n-r%n:1,i=_P(e,i)}return!0===i?-1:e.length}(s,o,e.state.tabSize)}function w$(e,t,n,i){let r=e.state.doc.lineAt(t.head),o=e.bidiSpans(r),s=e.textDirectionAt(r.from);for(let a=t,l=null;;){let t=n$(r,o,s,a,n),c=t$;if(!t){if(r.number==(n?e.state.doc.lines:1))return a;c="\n",r=e.state.doc.line(r.number+(n?1:-1)),o=e.bidiSpans(r),t=IP.cursor(n?r.from:r.to)}if(l){if(!l(c))return a}else{if(!i)return t;l=i(c)}a=t}}function _$(e,t,n){let i=e.state.facet(NT).map((t=>t(e)));for(;;){let e=!1;for(let r of i)r.between(n.from-1,n.from+1,((i,r,o)=>{n.from>i&&n.from<r&&(n=t.head>n.from?IP.cursor(i,1):IP.cursor(r,-1),e=!0)}));if(!e)return n}}class E${constructor(e){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;let t=(t,n)=>{this.ignoreDuringComposition(n)||"keydown"==n.type&&this.keydown(e,n)||(this.mustFlushObserver(n)&&e.observer.forceFlush(),this.runCustomHandlers(n.type,e,n)?n.preventDefault():t(e,n))};for(let n in M$){let i=M$[n];e.contentDOM.addEventListener(n,(n=>{C$(e,n)&&t(i,n)}),A$[n]),this.registeredEvents.push(n)}e.scrollDOM.addEventListener("mousedown",(n=>{n.target==e.scrollDOM&&t(M$.mousedown,n)})),FS.chrome&&102==FS.chrome_version&&e.scrollDOM.addEventListener("wheel",(()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout((()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""}),100)}),{passive:!0}),this.notifiedFocused=e.hasFocus,FS.safari&&e.contentDOM.addEventListener("input",(()=>null))}setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}ensureHandlers(e,t){var n;let i;this.customHandlers=[];for(let r of t)if(i=null===(n=r.update(e).spec)||void 0===n?void 0:n.domEventHandlers){this.customHandlers.push({plugin:r.value,handlers:i});for(let t in i)this.registeredEvents.indexOf(t)<0&&"scroll"!=t&&(this.registeredEvents.push(t),e.contentDOM.addEventListener(t,(n=>{C$(e,n)&&this.runCustomHandlers(t,e,n)&&n.preventDefault()})))}}runCustomHandlers(e,t,n){for(let i of this.customHandlers){let r=i.handlers[e];if(r)try{if(r.call(i.plugin,n,t)||n.defaultPrevented)return!0}catch(e){$T(t.state,e)}}return!1}runScrollHandlers(e,t){this.lastScrollTop=e.scrollDOM.scrollTop,this.lastScrollLeft=e.scrollDOM.scrollLeft;for(let n of this.customHandlers){let i=n.handlers.scroll;if(i)try{i.call(n.plugin,t,e)}catch(t){$T(e.state,t)}}}keydown(e,t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()<this.lastEscPress+2e3)return!0;if(FS.android&&FS.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))return e.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return!(!FS.ios||t.synthetic||t.altKey||t.metaKey||!((n=P$.find((e=>e.keyCode==t.keyCode)))&&!t.ctrlKey||k$.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey))&&(this.pendingIOSKey=n||t,setTimeout((()=>this.flushIOSKey(e)),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,PS(e.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(FS.safari&&!FS.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(e){return"keydown"==e.type&&229!=e.keyCode}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const P$=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],k$="dthko",S$=[16,17,18,20,91,92,224,225];function T$(e){return.7*e+8}class $${constructor(e,t,n,i){this.view=e,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM);let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Ck.allowMultipleSelections)&&function(e,t){let n=e.state.facet(bT);return n.length?n[0](t):FS.mac?t.metaKey:t.ctrlKey}(e,t),this.dragMove=function(e,t){let n=e.state.facet(OT);return n.length?n[0](t):FS.mac?!t.altKey:!t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let i=cS(e.root);if(!i||0==i.rangeCount)return!0;let r=i.getRangeAt(0).getClientRects();for(let e=0;e<r.length;e++){let n=r[e];if(n.left<=t.clientX&&n.right>=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)||1!=V$(t))&&null,!1===this.dragging&&(t.preventDefault(),this.select(t))}move(e){var t;if(0==e.buttons)return this.destroy();if(!1!==this.dragging)return;this.select(this.lastEvent=e);let n=0,i=0,r=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};e.clientX<=r.left?n=-T$(r.left-e.clientX):e.clientX>=r.right&&(n=T$(e.clientX-r.right)),e.clientY<=r.top?i=-T$(r.top-e.clientY):e.clientY>=r.bottom&&(i=T$(e.clientY-r.bottom)),this.setScrollSpeed(n,i)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}select(e){let t=this.style.get(e,this.extend,this.multiple);!this.mustSelect&&t.eq(this.view.state.selection)&&t.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:t,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}function C$(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,i=t.target;i!=e.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(n=$S.get(i))&&n.ignoreEvent(t))return!1;return!0}const M$=Object.create(null),A$=Object.create(null),R$=FS.ie&&FS.ie_version<15||FS.ios&&FS.webkit_version<604;function D$(e,t){let n,{state:i}=e,r=1,o=i.toText(t),s=o.lines==i.selection.ranges.length,a=null!=U$&&i.selection.ranges.every((e=>e.empty))&&U$==o.toString();if(a){let e=-1;n=i.changeByRange((n=>{let a=i.doc.lineAt(n.from);if(a.from==e)return{range:n};e=a.from;let l=i.toText((s?o.line(r++).text:t)+i.lineBreak);return{changes:{from:a.from,insert:l},range:IP.cursor(n.from+l.length)}}))}else n=s?i.changeByRange((e=>{let t=o.line(r++);return{changes:{from:e.from,to:e.to,insert:t.text},range:IP.cursor(e.from+t.length)}})):i.replaceSelection(o);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function j$(e,t,n,i){if(1==i)return IP.cursor(t,n);if(2==i)return function(e,t,n=1){let i=e.charCategorizer(t),r=e.doc.lineAt(t),o=t-r.from;if(0==r.length)return IP.cursor(t);0==o?n=1:o==r.length&&(n=-1);let s=o,a=o;n<0?s=_P(r.text,o,!1):a=_P(r.text,o);let l=i(r.text.slice(s,a));for(;s>0;){let e=_P(r.text,s,!1);if(i(r.text.slice(e,s))!=l)break;s=e}for(;a<r.length;){let e=_P(r.text,a);if(i(r.text.slice(a,e))!=l)break;a=e}return IP.range(s+r.from,a+r.from)}(e.state,t,n);{let n=fT.find(e.docView,t),i=e.state.doc.lineAt(n?n.posAtEnd:t),r=n?n.posAtStart:i.from,o=n?n.posAtEnd:i.to;return o<e.state.doc.length&&o==i.to&&o++,IP.range(r,o)}}M$.keydown=(e,t)=>{e.inputState.setSelectionOrigin("select"),27==t.keyCode?e.inputState.lastEscPress=Date.now():S$.indexOf(t.keyCode)<0&&(e.inputState.lastEscPress=0)},M$.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},M$.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},A$.touchstart=A$.touchmove={passive:!0},M$.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return;let n=null;for(let i of e.state.facet(xT))if(n=i(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=z$(e,t),i=V$(t),r=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),r=r.map(e.changes))},get(t,o,s){let a=z$(e,t),l=j$(e,a.pos,a.bias,i);if(n.pos!=a.pos&&!o){let t=j$(e,n.pos,n.bias,i),r=Math.min(t.from,l.from),o=Math.max(t.to,l.to);l=r<l.from?IP.range(r,o):IP.range(o,r)}return o?r.replaceRange(r.main.extend(l.from,l.to)):s&&r.ranges.length>1&&r.ranges.some((e=>e.eq(l)))?function(e,t){for(let n=0;;n++)if(e.ranges[n].eq(t))return IP.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}(r,l):s?r.addRange(l):IP.create([l])}}}(e,t)),n){let i=e.root.activeElement!=e.contentDOM;i&&e.observer.ignore((()=>_S(e.contentDOM))),e.inputState.startMouseSelection(new $$(e,t,n,i))}};let q$=(e,t)=>e>=t.top&&e<=t.bottom,B$=(e,t,n)=>q$(t,n)&&e>=n.left&&e<=n.right;function N$(e,t,n,i){let r=fT.find(e.docView,t);if(!r)return 1;let o=t-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;let s=r.coordsAt(o,-1);if(s&&B$(n,i,s))return-1;let a=r.coordsAt(o,1);return a&&B$(n,i,a)?1:s&&q$(i,s)?-1:1}function z$(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:N$(e,n,t.clientX,t.clientY)}}const Q$=FS.ie&&FS.ie_version<=11;let X$=null,I$=0,L$=0;function V$(e){if(!Q$)return e.detail;let t=X$,n=L$;return X$=e,L$=Date.now(),I$=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(I$+1)%3:1}function F$(e,t,n,i){if(!n)return;let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:o}=e.inputState,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:n},l=e.state.changes(s?[s,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}M$.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:i}=e.inputState;i&&(i.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove")},M$.drop=(e,t)=>{if(!t.dataTransfer)return;if(e.state.readOnly)return t.preventDefault();let n=t.dataTransfer.files;if(n&&n.length){t.preventDefault();let i=Array(n.length),r=0,o=()=>{++r==n.length&&F$(e,t,i.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=o,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(i[e]=t.result),o()},t.readAsText(n[e])}}else F$(e,t,t.dataTransfer.getData("Text"),!0)},M$.paste=(e,t)=>{if(e.state.readOnly)return t.preventDefault();e.observer.flush();let n=R$?null:t.clipboardData;n?(D$(e,n.getData("text/plain")),t.preventDefault()):function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),D$(e,n.value)}),50)}(e)};let U$=null;function H$(e){setTimeout((()=>{e.hasFocus!=e.inputState.notifiedFocused&&e.update([])}),10)}M$.copy=M$.cut=(e,t)=>{let{text:n,ranges:i,linewise:r}=function(e){let t=[],n=[],i=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let r=-1;for(let{from:i}of e.selection.ranges){let o=e.doc.lineAt(i);o.number>r&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),r=o.number}i=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:i}}(e.state);if(!n&&!r)return;U$=r?n:null;let o=R$?null:t.clipboardData;o?(t.preventDefault(),o.clearData(),o.setData("text/plain",n)):function(e,t){let n=e.dom.parentNode;if(!n)return;let i=n.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=t,i.focus(),i.selectionEnd=t.length,i.selectionStart=0,setTimeout((()=>{i.remove(),e.focus()}),50)}(e,n),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"})},M$.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),H$(e)},M$.blur=e=>{e.observer.clearSelectionRange(),H$(e)},M$.compositionstart=M$.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},M$.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionFirstChange=null,FS.chrome&&FS.android&&e.observer.flushSoon(),setTimeout((()=>{e.inputState.composing<0&&e.docView.compositionDeco.size&&e.update([])}),50)},M$.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},M$.beforeinput=(e,t)=>{var n;let i;if(FS.chrome&&FS.android&&(i=P$.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}};const Y$=["pre-wrap","normal","pre-line","break-spaces"];class W${constructor(e){this.lineWrapping=e,this.doc=pP.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength)),this.lineHeight*n}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Y$.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let i=e[n];i<0?n++:this.heightSamples[Math.floor(10*i)]||(t=!0,this.heightSamples[Math.floor(10*i)]=!0)}return t}refresh(e,t,n,i,r){let o=Y$.indexOf(e)>-1,s=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=n,this.lineLength=i,s){this.heightSamples={};for(let e=0;e<r.length;e++){let t=r[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return s}}class G${constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class Z${constructor(e,t,n,i,r){this.from=e,this.length=t,this.top=n,this.height=i,this.type=r}get to(){return this.from+this.length}get bottom(){return this.top+this.height}join(e){let t=(Array.isArray(this.type)?this.type:[this]).concat(Array.isArray(e.type)?e.type:[e]);return new Z$(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var K$=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(K$||(K$={}));const J$=.001;class eC{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>J$&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return eC.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,i){let r=this;for(let o=i.length-1;o>=0;o--){let{fromA:s,toA:a,fromB:l,toB:c}=i[o],p=r.lineAt(s,K$.ByPosNoHeight,t,0,0),u=p.to>=a?p:r.lineAt(a,K$.ByPosNoHeight,t,0,0);for(c+=u.to-a,a=u.to;o>0&&p.from<=i[o-1].toA;)s=i[o-1].fromA,l=i[o-1].fromB,o--,s<p.from&&(p=r.lineAt(s,K$.ByPosNoHeight,t,0,0));l+=p.from-s,s=p.from;let h=sC.build(n,e,l,c);r=r.replace(s,a,h)}return r.updateHeight(n,0)}static empty(){return new nC(0,0)}static of(e){if(1==e.length)return e[0];let t=0,n=e.length,i=0,r=0;for(;;)if(t==n)if(i>2*r){let r=e[t-1];r.break?e.splice(--t,1,r.left,null,r.right):e.splice(--t,1,r.left,r.right),n+=1+r.break,i-=r.size}else{if(!(r>2*i))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,r-=t.size}}else if(i<r){let n=e[t++];n&&(i+=n.size)}else{let t=e[--n];t&&(r+=t.size)}let o=0;return null==e[t-1]?(o=1,t--):null==e[t]&&(o=1,n++),new rC(eC.of(e.slice(0,t)),o,eC.of(e.slice(n)))}}eC.prototype.size=1;class tC extends eC{constructor(e,t,n){super(e,t),this.type=n}blockAt(e,t,n,i){return new Z$(i,this.length,n,this.height,this.type)}lineAt(e,t,n,i,r){return this.blockAt(0,n,i,r)}forEachLine(e,t,n,i,r,o){e<=r+this.length&&t>=r&&o(this.blockAt(0,n,i,r))}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more&&this.setHeight(e,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class nC extends tC{constructor(e,t){super(e,t,aT.Text),this.collapsed=0,this.widgetHeight=0}replace(e,t,n){let i=n[0];return 1==n.length&&(i instanceof nC||i instanceof iC&&4&i.flags)&&Math.abs(this.length-i.length)<10?(i instanceof iC?i=new nC(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):eC.of(n)}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more?this.setHeight(e,i.heights[i.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class iC extends eC{constructor(e){super(e,0)}lines(e,t){let n=e.lineAt(t).number,i=e.lineAt(t+this.length).number;return{firstLine:n,lastLine:i,lineHeight:this.height/(i-n+1)}}blockAt(e,t,n,i){let{firstLine:r,lastLine:o,lineHeight:s}=this.lines(t,i),a=Math.max(0,Math.min(o-r,Math.floor((e-n)/s))),{from:l,length:c}=t.line(r+a);return new Z$(l,c,n+s*a,s,aT.Text)}lineAt(e,t,n,i,r){if(t==K$.ByHeight)return this.blockAt(e,n,i,r);if(t==K$.ByPosNoHeight){let{from:t,to:i}=n.lineAt(e);return new Z$(t,i-t,0,0,aT.Text)}let{firstLine:o,lineHeight:s}=this.lines(n,r),{from:a,length:l,number:c}=n.lineAt(e);return new Z$(a,l,i+s*(c-o),s,aT.Text)}forEachLine(e,t,n,i,r,o){let{firstLine:s,lineHeight:a}=this.lines(n,r);for(let l=Math.max(e,r),c=Math.min(r+this.length,t);l<=c;){let t=n.lineAt(l);l==e&&(i+=a*(t.number-s)),o(new Z$(t.from,t.length,i,a,aT.Text)),i+=a,l=t.to+1}}replace(e,t,n){let i=this.length-t;if(i>0){let e=n[n.length-1];e instanceof iC?n[n.length-1]=new iC(e.length+i):n.push(null,new iC(i-1))}if(e>0){let t=n[0];t instanceof iC?n[0]=new iC(e+t.length):n.unshift(new iC(e-1),null)}return eC.of(n)}decomposeLeft(e,t){t.push(new iC(e-1),null)}decomposeRight(e,t){t.push(null,new iC(this.length-e-1))}updateHeight(e,t=0,n=!1,i){let r=t+this.length;if(i&&i.from<=t+this.length&&i.more){let n=[],o=Math.max(t,i.from),s=-1,a=e.heightChanged;for(i.from>t&&n.push(new iC(i.from-t-1).updateHeight(e,t));o<=r&&i.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let r=i.heights[i.index++];-1==s?s=r:Math.abs(r-s)>=J$&&(s=-2);let a=new nC(t,r);a.outdated=!1,n.push(a),o+=t+1}o<=r&&n.push(null,new iC(r-o).updateHeight(e,o));let l=eC.of(n);return e.heightChanged=a||s<0||Math.abs(l.height-this.height)>=J$||Math.abs(s-this.lines(e.doc,t).lineHeight)>=J$,l}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class rC extends eC{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,i){let r=n+this.left.height;return e<r?this.left.blockAt(e,t,n,i):this.right.blockAt(e,t,r,i+this.left.length+this.break)}lineAt(e,t,n,i,r){let o=i+this.left.height,s=r+this.left.length+this.break,a=t==K$.ByHeight?e<o:e<s,l=a?this.left.lineAt(e,t,n,i,r):this.right.lineAt(e,t,n,o,s);if(this.break||(a?l.to<s:l.from>s))return l;let c=t==K$.ByPosNoHeight?K$.ByPosNoHeight:K$.ByPos;return a?l.join(this.right.lineAt(s,c,n,o,s)):this.left.lineAt(s,c,n,i,r).join(l)}forEachLine(e,t,n,i,r,o){let s=i+this.left.height,a=r+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,n,i,r,o),t>=a&&this.right.forEachLine(e,t,n,s,a,o);else{let l=this.lineAt(a,K$.ByPos,n,i,r);e<l.from&&this.left.forEachLine(e,l.from-1,n,i,r,o),l.to>=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,s,a,o)}}replace(e,t,n){let i=this.left.length+this.break;if(t<i)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,t-i,n));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let e of n)r.push(e);if(e>0&&oC(r,o-1),t<this.length){let e=r.length;this.decomposeRight(t,r),oC(r,e)}return eC.of(r)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,i=n+this.break;if(e>=i)return this.right.decomposeRight(e-i,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<i&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?eC.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,i){let{left:r,right:o}=this,s=t+r.length+this.break,a=null;return i&&i.from<=t+r.length&&i.more?a=r=r.updateHeight(e,t,n,i):r.updateHeight(e,t,n),i&&i.from<=s+o.length&&i.more?a=o=o.updateHeight(e,s,n,i):o.updateHeight(e,s,n),a?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function oC(e,t){let n,i;null==e[t]&&(n=e[t-1])instanceof iC&&(i=e[t+1])instanceof iC&&e.splice(t-1,3,new iC(n.length+1+i.length))}class sC{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof nC?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new nC(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let i=n.widget?n.widget.estimatedHeight:0;i<0&&(i=this.oracle.lineHeight);let r=t-e;n.block?this.addBlock(new tC(r,i,n.type)):(r||i>=5)&&this.addLineDeco(i,r)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new nC(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new iC(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof nC)return e;let t=new nC(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine(),e.type!=aT.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,e.type!=aT.WidgetBefore&&(this.covering=e)}addLineDeco(e,t){let n=this.ensureLine();n.length+=t,n.collapsed+=t,n.widgetHeight=Math.max(n.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof nC||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new nC(0,-1));let n=e;for(let e of this.nodes)e instanceof nC&&e.updateHeight(this.oracle,n),n+=e?e.length:1;return this.nodes}static build(e,t,n,i){let r=new sC(n,e);return qk.spans(t,n,i,r,0),r.finish(n)}}class aC{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,i){(e<t||n&&n.heightRelevant||i&&i.heightRelevant)&&dT(e,t,this.changes,5)}}function lC(e,t){let n=e.getBoundingClientRect(),i=e.ownerDocument,r=i.defaultView||window,o=Math.max(0,n.left),s=Math.min(r.innerWidth,n.right),a=Math.max(0,n.top),l=Math.min(r.innerHeight,n.bottom);for(let t=e.parentNode;t&&t!=i.body;)if(1==t.nodeType){let n=t,i=window.getComputedStyle(n);if((n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=i.overflow){let i=n.getBoundingClientRect();o=Math.max(o,i.left),s=Math.min(s,i.right),a=Math.max(a,i.top),l=t==e.parentNode?i.bottom:Math.min(l,i.bottom)}t="absolute"==i.position||"fixed"==i.position?n.offsetParent:n.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:o-n.left,right:Math.max(o,s)-n.left,top:a-(n.top+t),bottom:Math.max(a,l)-(n.top+t)}}function cC(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class pC{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let i=e[n],r=t[n];if(i.from!=r.from||i.to!=r.to||i.size!=r.size)return!1}return!0}draw(e){return lT.replace({widget:new uC(this.size,e)}).range(this.from,this.to)}}class uC extends sT{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class hC{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaler=yC,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=LT.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(qT).some((e=>"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new W$(t),this.stateDeco=e.facet(BT).filter((e=>"function"!=typeof e)),this.heightMap=eC.empty().applyChanges(this.stateDeco,pP.empty,this.heightOracle.setDoc(e.doc),[new XT(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=lT.set(this.lineGaps.map((e=>e.draw(!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let i=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>i>=e&&i<=t))){let{from:t,to:n}=this.lineBlockAt(i);e.push(new dC(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?yC:new vC(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:bC(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(BT).filter((e=>"function"!=typeof e));let i=e.changedRanges,r=XT.extendWithRanges(i,function(e,t,n){let i=new aC;return qk.compare(e,t,n,i,0),i.changes}(n,this.stateDeco,e?e.changes:DP.empty(this.state.doc.length))),o=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=o&&(e.flags|=2);let s=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<s.from||t.range.head>s.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t));let a=!e.changes.empty||2&e.flags||s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,this.updateForViewport(),a&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(kT)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,r=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?LT.RTL:LT.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),s=o||this.mustMeasureContent||this.contentDOMHeight!=t.clientHeight;this.contentDOMHeight=t.clientHeight,this.mustMeasureContent=!1;let a=0,l=0,c=parseInt(n.paddingTop)||0,p=parseInt(n.paddingBottom)||0;this.paddingTop==c&&this.paddingBottom==p||(this.paddingTop=c,this.paddingBottom=p,a|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(s=!0),this.editorWidth=e.scrollDOM.clientWidth,a|=8);let u=(this.printing?cC:lC)(t,this.paddingTop),h=u.top-this.pixelViewport.top,d=u.bottom-this.pixelViewport.bottom;this.pixelViewport=u;let f=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(f!=this.inView&&(this.inView=f,f&&(s=!0)),!this.inView&&!this.scrollTarget)return 0;let m=t.clientWidth;if(this.contentDOMWidth==m&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=m,this.editorHeight=e.scrollDOM.clientHeight,a|=8),s){let t=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(t)&&(o=!0),o||i.lineWrapping&&Math.abs(m-this.contentDOMWidth)>i.charWidth){let{lineHeight:n,charWidth:s}=e.docView.measureTextSize();o=n>0&&i.refresh(r,n,s,m/s,t),o&&(e.docView.minWidth=0,a|=8)}h>0&&d>0?l=Math.max(h,d):h<0&&d<0&&(l=Math.min(h,d)),i.heightChanged=!1;for(let n of this.viewports){let r=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(o?eC.empty().applyChanges(this.stateDeco,pP.empty,this.heightOracle,[new XT(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,o,new G$(n.from,r))}i.heightChanged&&(a|=2)}let g=!this.viewportIsAppropriate(this.viewport,l)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return g&&(this.viewport=this.getViewport(l,this.scrollTarget)),this.updateForViewport(),(2&a||g)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),a|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),a}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,r=this.state.doc,{visibleTop:o,visibleBottom:s}=this,a=new dC(i.lineAt(o-1e3*n,K$.ByHeight,r,0,0).from,i.lineAt(s+1e3*(1-n),K$.ByHeight,r,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=i.lineAt(e,K$.ByPos,r,0,0);n="center"==t.y?(s.top+s.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e<a.from?s.top:s.bottom-o,a=new dC(i.lineAt(n-500,K$.ByHeight,r,0,0).from,i.lineAt(n+o+500,K$.ByHeight,r,0,0).to)}}return a}mapViewport(e,t){let n=t.mapPos(e.from,-1),i=t.mapPos(e.to,1);return new dC(this.heightMap.lineAt(n,K$.ByPos,this.state.doc,0,0).from,this.heightMap.lineAt(i,K$.ByPos,this.state.doc,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,K$.ByPos,this.state.doc,0,0),{bottom:r}=this.heightMap.lineAt(t,K$.ByPos,this.state.doc,0,0),{visibleTop:o,visibleBottom:s}=this;return(0==e||i<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||r>=s+Math.max(10,Math.min(n,250)))&&i>o-2e3&&r<s+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let i of e)t.touchesRange(i.from,i.to)||n.push(new pC(t.mapPos(i.from),t.mapPos(i.to),i.size));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,i=n?1e4:2e3,r=i>>1,o=i<<1;if(this.defaultTextDirection!=LT.LTR&&!n)return[];let s=[],a=(i,o,l,c)=>{if(o-i<r)return;let p=this.state.selection.main,u=[p.from];p.empty||u.push(p.to);for(let e of u)if(e>i&&e<o)return a(i,e-10,l,c),void a(e+10,o,l,c);let h=function(e,t){for(let n of e)if(t(n))return n;return}(e,(e=>e.from>=l.from&&e.to<=l.to&&Math.abs(e.from-i)<r&&Math.abs(e.to-o)<r&&!u.some((t=>e.from<t&&e.to>t))));if(!h){if(o<l.to&&t&&n&&t.visibleRanges.some((e=>e.from<=o&&e.to>=o))){let e=t.moveToLineBoundary(IP.cursor(o),!1,!0).head;e>i&&(o=e)}h=new pC(i,o,this.gapSize(l,i,o,c))}s.push(h)};for(let e of this.viewportLines){if(e.length<o)continue;let t=fC(e.from,e.to,this.stateDeco);if(t.total<o)continue;let r,s,l=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let n,o,a=i/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=l){let i=gC(t,l),r=((this.visibleBottom-this.visibleTop)/2+a)/e.height;n=i-r,o=i+r}else n=(this.visibleTop-e.top-a)/e.height,o=(this.visibleBottom-e.top+a)/e.height;r=mC(t,n),s=mC(t,o)}else{let e,n,o=t.total*this.heightOracle.charWidth,a=i*this.heightOracle.charWidth;if(null!=l){let i=gC(t,l),r=((this.pixelViewport.right-this.pixelViewport.left)/2+a)/o;e=i-r,n=i+r}else e=(this.pixelViewport.left-a)/o,n=(this.pixelViewport.right+a)/o;r=mC(t,e),s=mC(t,n)}r>e.from&&a(e.from,r,e,t),s<e.to&&a(s,e.to,e,t)}return s}gapSize(e,t,n,i){let r=gC(i,n)-gC(i,t);return this.heightOracle.lineWrapping?e.height*r:i.total*this.heightOracle.charWidth*r}updateLineGaps(e){pC.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=lT.set(e.map((e=>e.draw(this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];qk.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||bC(this.heightMap.lineAt(e,K$.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(e){return bC(this.heightMap.lineAt(this.scaler.fromDOM(e),K$.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(e){return bC(this.heightMap.blockAt(this.scaler.fromDOM(e),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class dC{constructor(e,t){this.from=e,this.to=t}}function fC(e,t,n){let i=[],r=e,o=0;return qk.spans(n,e,t,{span(){},point(e,t){e>r&&(i.push({from:r,to:e}),o+=e-r),r=t}},20),r<t&&(i.push({from:r,to:t}),o+=t-r),{total:o,ranges:i}}function mC({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let i=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:r}=t[e],o=r-n;if(i<=o)return n+i;i-=o}}function gC(e,t){let n=0;for(let{from:i,to:r}of e.ranges){if(t<=r){n+=t-i;break}n+=r-i}return n/e.total}const yC={toDOM:e=>e,fromDOM:e=>e,scale:1};class vC{constructor(e,t,n){let i=0,r=0,o=0;this.viewports=n.map((({from:n,to:r})=>{let o=t.lineAt(n,K$.ByPos,e,0,0).top,s=t.lineAt(r,K$.ByPos,e,0,0).bottom;return i+=s-o,{from:n,to:r,top:o,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-i)/(t.height-i);for(let e of this.viewports)e.domTop=o+(e.top-r)*this.scale,o=e.domBottom=e.domTop+(e.bottom-e.top),r=e.bottom}toDOM(e){for(let t=0,n=0,i=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.top)return i+(e-n)*this.scale;if(e<=r.bottom)return r.domTop+(e-r.top);n=r.bottom,i=r.domBottom}}fromDOM(e){for(let t=0,n=0,i=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.domTop)return n+(e-i)/this.scale;if(e<=r.domBottom)return r.top+(e-r.domTop);n=r.bottom,i=r.domBottom}}}function bC(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),i=t.toDOM(e.bottom);return new Z$(e.from,e.length,n,i-n,Array.isArray(e.type)?e.type.map((e=>bC(e,t))):e.type)}const OC=FP.define({combine:e=>e.join(" ")}),xC=FP.define({combine:e=>e.indexOf(!0)>-1}),wC=Kk.newName(),_C=Kk.newName(),EC=Kk.newName(),PC={"&light":"."+_C,"&dark":"."+EC};function kC(e,t,n){return new Kk(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const SC=kC("."+wC,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},PC);class TC{constructor(e,t,n,i){this.typeOver=i,this.bounds=null,this.text="";let{impreciseHead:r,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=r||o?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:o}=e.observer.selectionRange;n&&(t.push(new s$(n,i)),r==n&&o==i||t.push(new s$(r,o)));return t}(e),n=new r$(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,i=2==e.length?e[1].pos:n;return n>-1&&i>-1?IP.single(n+t,i+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=r&&r.node==t.focusNode&&r.offset==t.focusOffset||!pS(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),i=o&&o.node==t.anchorNode&&o.offset==t.anchorOffset||!pS(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);this.newSel=IP.single(i,n)}}}function $C(e,t){let n,{newSel:i}=t,r=e.state.selection.main;if(t.bounds){let{from:i,to:o}=t.bounds,s=r.from,a=null;(8===e.inputState.lastKeyCode&&e.inputState.lastKeyTime>Date.now()-100||FS.android&&t.text.length<o-i)&&(s=r.to,a="end");let l=function(e,t,n,i){let r=Math.min(e.length,t.length),o=0;for(;o<r&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==r&&e.length==t.length)return null;let s=e.length,a=t.length;for(;s>0&&a>0&&e.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;if("end"==i){n-=s+Math.max(0,o-Math.min(s,a))-o}if(s<o&&e.length<t.length){o-=n<=o&&n>=s?o-n:0,a=o+(a-s),s=o}else if(a<o){o-=n<=o&&n>=a?o-n:0,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}(e.state.doc.sliceString(i,o,i$),t.text,s-i,a);l&&(FS.chrome&&13==e.inputState.lastKeyCode&&l.toB==l.from+2&&t.text.slice(l.from,l.toB)==i$+i$&&l.toB--,n={from:i+l.from,to:i+l.toA,insert:pP.of(t.text.slice(l.from,l.toB).split(i$))})}else i&&(!e.hasFocus&&e.state.facet(CT)||i.main.eq(r))&&(i=null);if(!n&&!i)return!1;if(!n&&t.typeOver&&!r.empty&&i&&i.main.empty?n={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,r.to)}:n&&n.from>=r.from&&n.to<=r.to&&(n.from!=r.from||n.to!=r.to)&&r.to-r.from-(n.to-n.from)<=4?n={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,r.to))}:(FS.mac||FS.android)&&n&&n.from==n.to&&n.from==r.head-1&&/^\. ?$/.test(n.insert.toString())?(i&&2==n.insert.length&&(i=IP.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:pP.of([" "])}):FS.chrome&&n&&n.from==n.to&&n.from==r.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(i&&(i=IP.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:pP.of([" "])}),n){let t=e.state;if(FS.ios&&e.inputState.flushIOSKey(e))return!0;if(FS.android&&(n.from==r.from&&n.to==r.to&&1==n.insert.length&&2==n.insert.lines&&PS(e.contentDOM,"Enter",13)||n.from==r.from-1&&n.to==r.to&&0==n.insert.length&&PS(e.contentDOM,"Backspace",8)||n.from==r.from&&n.to==r.to+1&&0==n.insert.length&&PS(e.contentDOM,"Delete",46)))return!0;let o,s=n.insert.toString();if(e.state.facet(ET).some((t=>t(e,n.from,n.to,s))))return!0;if(e.inputState.composing>=0&&e.inputState.composing++,n.from>=r.from&&n.to<=r.to&&n.to-n.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==n.from+n.insert.length)&&e.inputState.composing<0){let i=r.from<n.from?t.sliceDoc(r.from,n.from):"",s=r.to>n.to?t.sliceDoc(n.to,r.to):"";o=t.replaceSelection(e.state.toText(i+n.insert.sliceString(0,void 0,e.state.lineBreak)+s))}else{let s=t.changes(n),a=i&&!t.selection.main.eq(i.main)&&i.main.to<=s.newLength?i.main:void 0;if(t.selection.ranges.length>1&&e.inputState.composing>=0&&n.to<=r.to&&n.to>=r.to-10){let i=e.state.sliceDoc(n.from,n.to),l=c$(e)||e.state.doc.lineAt(r.head),c=r.to-n.to,p=r.to-r.from;o=t.changeByRange((o=>{if(o.from==r.from&&o.to==r.to)return{changes:s,range:a||o.map(s)};let u=o.to-c,h=u-i.length;if(o.to-o.from!=p||e.state.sliceDoc(h,u)!=i||l&&o.to>=l.from&&o.from<=l.to)return{range:o};let d=t.changes({from:h,to:u,insert:n.insert}),f=o.to-r.to;return{changes:d,range:a?IP.range(Math.max(0,a.anchor+f),Math.max(0,a.head+f)):o.map(d)}}))}else o={changes:s,selection:a&&t.selection.replaceRange(a)}}let a="input.type";return e.composing&&(a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),e.dispatch(o,{scrollIntoView:!0,userEvent:a}),!0}if(i&&!i.main.eq(r)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:i,scrollIntoView:t,userEvent:n}),!0}return!1}const CC={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},MC=FS.ie&&FS.ie_version<=11;class AC{constructor(e){this.view=e,this.active=!1,this.selectionRange=new OS,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(FS.ie&&FS.ie_version<=11||FS.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),MC&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()})),this.resizeScroll.observe(e.scrollDOM),this.resizeContent=new ResizeObserver((()=>this.view.requestMeasure())),this.resizeContent.observe(e.contentDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runScrollHandlers(this.view,e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,i=this.selectionRange;if(n.state.facet(CT)?n.root.activeElement!=this.dom:!uS(n.dom,i))return;let r=i.anchorNode&&n.docView.nearest(i.anchorNode);r&&r.ignoreEvent(e)?t||(this.selectionChanged=!1):(FS.ie&&FS.ie_version<=11||FS.android&&FS.chrome)&&!n.state.selection.main.empty&&i.focusNode&&dS(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=FS.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let i=t.startContainer,r=t.startOffset,o=t.endContainer,s=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);dS(a.node,a.offset,o,s)&&([i,r,o,s]=[o,s,i,r]);return{anchorNode:i,anchorOffset:r,focusNode:o,focusOffset:s}}(this.view)||cS(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=uS(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let n=t.focusNode,i=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=i)return!1;for(;;)if(i){if(1!=n.nodeType)return!1;let e=n.childNodes[i-1];"false"==e.contentEditable?i--:(n=e,i=gS(n))}else{if(n==e)return!0;i=fS(n),n=n.parentNode}}(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,CC),MC&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),MC&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),!this.flush()&&e.force&&PS(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(n=this.delayedAndroidKey)||void 0===n?void 0:n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame((()=>{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}processRecords(){let e=this.queue;for(let t of this.observer.takeRecords())e.push(t);e.length&&(this.queue=[]);let t=-1,n=-1,i=!1;for(let r of e){let e=this.readMutation(r);e&&(e.typeOver&&(i=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:i}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),i=this.selectionChanged&&uS(this.dom,this.selectionRange);return e<0&&!i?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new TC(this.view,e,t,n))}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return!1;let n=this.view.state,i=$C(this.view,t);return this.view.state==n&&this.view.update([]),i}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.dirty|=4),"childList"==e.type){let n=RC(t,e.previousSibling||e.target.previousSibling,-1),i=RC(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:i?t.posBefore(i):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n,i;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect(),null===(i=this.resizeContent)||void 0===i||i.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function RC(e,t,n){for(;t;){let i=$S.get(t);if(i&&i.parent==e)return i;let r=t.parentNode;t=r!=e.dom?r:n>0?t.nextSibling:t.previousSibling}return null}class DC{constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new hC(e.state||Ck.create(e)),this.plugins=this.state.facet(AT).map((e=>new DT(e)));for(let e of this.plugins)e.update(this);this.observer=new AC(this),this.inputState=new E$(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new a$(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...e){this._dispatch(1==e.length&&e[0]instanceof bk?e[0]:this.state.update(...e))}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,i=!1,r=this.state;for(let t of e){if(t.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=t.state}if(this.destroyed)return void(this.viewState.state=r);let o=this.observer.delayedAndroidKey,s=null;if(o?(this.observer.clearDelayedAndroidKey(),s=this.observer.readChange(),(s&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(s=null)):this.observer.clear(),r.facet(Ck.phrases)!=this.state.facet(Ck.phrases))return this.setState(r);t=IT.create(this,r,e);let a=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(a&&(a=a.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;a=new ST(e.empty?e:IP.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(TT)&&(a=e.value)}this.viewState.update(t,a),this.bidiCache=BC.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(QT)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(OC)!=t.state.facet(OC)&&(this.viewState.mustMeasureContent=!0),(n||i||a||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let e of this.state.facet(_T))e(t);s&&!$C(this,s)&&o.force&&PS(this.contentDOM,o.key,o.keyCode)}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new hC(e),this.plugins=e.facet(AT).map((e=>new DT(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView=new a$(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(AT),n=e.state.facet(AT);if(t!=n){let i=[];for(let r of n){let n=t.indexOf(r);if(n<0)i.push(new DT(r));else{let t=this.plugins[n];t.mustUpdate=e,i.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=i,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this)}measure(e=!0){if(this.destroyed)return;this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,{scrollHeight:n,scrollTop:i,clientHeight:r}=this.scrollDOM,o=i>n-r-4?n:i;try{for(let e=0;;e++){this.updateState=1;let n=this.viewport,i=this.viewState.lineBlockAtHeight(o),r=this.viewState.measure(this);if(!r&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let s=[];4&r||([this.measureRequests,s]=[s,this.measureRequests]);let a=s.map((e=>{try{return e.read(this)}catch(e){return $T(this.state,e),qC}})),l=IT.create(this,this.state,[]),c=!1,p=!1;l.flags|=r,t?t.flags|=r:t=l,this.updateState=2,l.empty||(this.updatePlugins(l),this.inputState.update(l),this.updateAttrs(),c=this.docView.update(l));for(let e=0;e<s.length;e++)if(a[e]!=qC)try{let t=s[e];t.write&&t.write(a[e],this)}catch(e){$T(this.state,e)}if(this.viewState.editorHeight)if(this.viewState.scrollTarget)this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,p=!0;else{let e=this.viewState.lineBlockAt(i.from).top-i.top;(e>1||e<-1)&&(this.scrollDOM.scrollTop+=e,p=!0)}if(c&&this.docView.updateSelection(!0),this.viewport.from==n.from&&this.viewport.to==n.to&&!p&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(_T))e(t)}get themeClasses(){return wC+" "+(this.state.facet(xC)?EC:_C)+" "+this.state.facet(OC)}updateAttrs(){let e=NC(this,jT,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(CT)?"true":"false",class:"cm-content",style:`${FS.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),NC(this,qT,t);let n=this.observer.ignore((()=>{let n=oT(this.contentDOM,this.contentAttrs,t),i=oT(this.dom,this.editorAttrs,e);return n||i}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)if(e.is(DC.announce)){t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value}}mountStyles(){this.styleModules=this.state.facet(QT),Kk.mount(this.root,this.styleModules.concat(SC).reverse())}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return _$(this,e,w$(this,e,t,n))}moveByGroup(e,t){return _$(this,e,w$(this,e,t,(t=>function(e,t,n){let i=e.state.charCategorizer(t),r=i(n);return e=>{let t=i(e);return r==kk.Space&&(r=t),r==t}}(this,e.head,t))))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,i){let r=e.state.doc.lineAt(t.head),o=i&&e.lineWrapping?e.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),i=e.textDirectionAt(r.from),s=e.posAtCoords({x:n==(i==LT.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=s)return IP.cursor(s,n?-1:1)}let s=fT.find(e.docView,t.head),a=s?n?s.posAtEnd:s.posAtStart:n?r.to:r.from;return IP.cursor(a,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return _$(this,e,function(e,t,n,i){let r=t.head,o=n?1:-1;if(r==(n?e.state.doc.length:0))return IP.cursor(r,t.assoc);let s,a=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(r),p=e.documentTop;if(c)null==a&&(a=c.left-l.left),s=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(r);null==a&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(r-t.from))),s=(o<0?t.top:t.bottom)+p}let u=l.left+a,h=null!=i?i:e.defaultLineHeight>>1;for(let n=0;;n+=10){let i=s+(h+n)*o,c=O$(e,{x:u,y:i},!1,o);if(i<l.top||i>l.bottom||(o<0?c<r:c>r))return IP.cursor(c,t.assoc,void 0,a)}}(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),O$(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let i=this.state.doc.lineAt(e),r=this.bidiSpans(i);return vS(n,r[KT.find(r,e-i.from,-1,t)].dir==LT.LTR==t>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(PT)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>jC)return e$(e.length);let t=this.textDirectionAt(e.from);for(let n of this.bidiCache)if(n.from==e.from&&n.dir==t)return n.order;let n=function(e,t){let n=e.length,i=t==VT?1:2,r=t==VT?2:1;if(!e||1==i&&!ZT.test(e))return e$(n);for(let t=0,r=i,s=i;t<n;t++){let n=(o=e.charCodeAt(t))<=247?HT[o]:1424<=o&&o<=1524?2:1536<=o&&o<=1785?YT[o-1536]:1774<=o&&o<=2220?4:8192<=o&&o<=8203?256:64336<=o&&o<=65023?4:8204==o?256:1;512==n?n=r:8==n&&4==s&&(n=16),JT[t]=4==n?2:n,7&n&&(s=n),r=n}var o;for(let e=0,t=i,r=i;e<n;e++){let i=JT[e];if(128==i)e<n-1&&t==JT[e+1]&&24&t?i=JT[e]=t:JT[e]=256;else if(64==i){let i=e+1;for(;i<n&&64==JT[i];)i++;let o=e&&8==t||i<n&&8==JT[i]?1==r?1:8:256;for(let t=e;t<i;t++)JT[t]=o;e=i-1}else 8==i&&1==r&&(JT[e]=1);t=i,7&i&&(r=i)}for(let t,o,s,a=0,l=0,c=0;a<n;a++)if(o=WT[t=e.charCodeAt(a)])if(o<0){for(let e=l-3;e>=0;e-=3)if(GT[e+1]==-o){let t=GT[e+2],n=2&t?i:4&t?1&t?r:i:0;n&&(JT[a]=JT[GT[e]]=n),l=e;break}}else{if(189==GT.length)break;GT[l++]=a,GT[l++]=t,GT[l++]=c}else if(2==(s=JT[a])||1==s){let e=s==i;c=e?0:1;for(let t=l-3;t>=0;t-=3){let n=GT[t+2];if(2&n)break;if(e)GT[t+2]|=2;else{if(4&n)break;GT[t+2]|=4}}}for(let e=0;e<n;e++)if(256==JT[e]){let t=e+1;for(;t<n&&256==JT[t];)t++;let r=1==(e?JT[e-1]:i),o=r==(1==(t<n?JT[t]:i))?r?1:2:i;for(let n=e;n<t;n++)JT[n]=o;e=t-1}let s=[];if(1==i)for(let e=0;e<n;){let t=e,i=1!=JT[e++];for(;e<n&&i==(1!=JT[e]);)e++;if(i)for(let n=e;n>t;){let e=n,i=2!=JT[--n];for(;n>t&&i==(2!=JT[n-1]);)n--;s.push(new KT(n,e,i?2:1))}else s.push(new KT(t,e,0))}else for(let e=0;e<n;){let t=e,i=2==JT[e++];for(;e<n&&i==(2==JT[e]);)e++;s.push(new KT(t,e,i?1:2))}return s}(e.text,t);return this.bidiCache.push(new BC(e.from,e.to,t,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||FS.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{_S(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return TT.of(new ST("number"==typeof e?IP.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return RT.define((()=>({})),{eventHandlers:e})}static theme(e,t){let n=Kk.newName(),i=[OC.of(n),QT.of(kC(`.${n}`,e))];return t&&t.dark&&i.push(xC.of(!0)),i}static baseTheme(e){return tk.lowest(QT.of(kC("."+wC,e,PC)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),i=n&&$S.get(n)||$S.get(e);return(null===(t=null==i?void 0:i.rootView)||void 0===t?void 0:t.view)||null}}DC.styleModule=QT,DC.inputHandler=ET,DC.perLineTextDirection=PT,DC.exceptionSink=wT,DC.updateListener=_T,DC.editable=CT,DC.mouseSelectionStyle=xT,DC.dragMovesSelection=OT,DC.clickAddsSelectionRange=bT,DC.decorations=BT,DC.atomicRanges=NT,DC.scrollMargins=zT,DC.darkTheme=xC,DC.contentAttributes=qT,DC.editorAttributes=jT,DC.lineWrapping=DC.contentAttributes.of({class:"cm-lineWrapping"}),DC.announce=vk.define();const jC=4096,qC={};class BC{constructor(e,t,n,i){this.from=e,this.to=t,this.dir=n,this.order=i}static update(e,t){if(t.empty)return e;let n=[],i=e.length?e[e.length-1].dir:LT.LTR;for(let r=Math.max(0,e.length-10);r<e.length;r++){let o=e[r];o.dir!=i||t.touchesRange(o.from,o.to)||n.push(new BC(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.order))}return n}}function NC(e,t,n){for(let i=e.state.facet(t),r=i.length-1;r>=0;r--){let t=i[r],o="function"==typeof t?t(e):t;o&&iT(o,n)}return n}const zC=FS.mac?"mac":FS.windows?"win":FS.linux?"linux":"key";function QC(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const XC=tk.default(DC.domEventHandlers({keydown:(e,t)=>function(e,t,n,i){let r=function(e){var t=!(sS&&(e.ctrlKey||e.altKey||e.metaKey)||oS&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?nS:tS)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),o=TP(r,0),s=CP(o)==r.length&&" "!=r,a="",l=!1;VC&&VC.view==n&&VC.scope==i&&(a=VC.prefix+" ",(l=S$.indexOf(t.keyCode)<0)&&(VC=null));let c,p,u=new Set,h=e=>{if(e){for(let i of e.run)if(!u.has(i)&&(u.add(i),i(n,t)))return!0;e.preventDefault&&(l=!0)}return!1},d=e[i];if(d){if(h(d[a+QC(r,t,!s)]))return!0;if(s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(FS.windows&&t.ctrlKey&&t.altKey)&&(c=tS[t.keyCode])&&c!=r){if(h(d[a+QC(c,t,!0)]))return!0;if(t.shiftKey&&(p=nS[t.keyCode])!=r&&p!=c&&h(d[a+QC(p,t,!1)]))return!0}else if(s&&t.shiftKey&&h(d[a+QC(r,t,!0)]))return!0;if(h(d._any))return!0}return l}(function(e){let t=e.facet(IC),n=LC.get(t);n||LC.set(t,n=function(e,t=zC){let n=Object.create(null),i=Object.create(null),r=(e,t)=>{let n=i[e];if(null==n)i[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,i,o,s)=>{var a,l;let c=n[e]||(n[e]=Object.create(null)),p=i.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let i,r,o,s,a=n[n.length-1];"Space"==a&&(a=" ");for(let e=0;e<n.length-1;++e){const a=n[e];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))i=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))o=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);"mac"==t?s=!0:r=!0}}return i&&(a="Alt-"+a),r&&(a="Ctrl-"+a),s&&(a="Meta-"+a),o&&(a="Shift-"+a),a}(e,t)));for(let t=1;t<p.length;t++){let n=p.slice(0,t).join(" ");r(n,!0),c[n]||(c[n]={preventDefault:!0,run:[t=>{let i=VC={view:t,prefix:n,scope:e};return setTimeout((()=>{VC==i&&(VC=null)}),FC),!0}]})}let u=p.join(" ");r(u,!1);let h=c[u]||(c[u]={preventDefault:!1,run:(null===(l=null===(a=c._any)||void 0===a?void 0:a.run)||void 0===l?void 0:l.slice())||[]});o&&h.run.push(o),s&&(h.preventDefault=!0)};for(let i of e){let e=i.scope?i.scope.split(" "):["editor"];if(i.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,run:[]});for(let t in e)e[t].run.push(i.any)}let r=i[t]||i.key;if(r)for(let t of e)o(t,r,i.run,i.preventDefault),i.shift&&o(t,"Shift-"+r,i.shift,i.preventDefault)}return n}(t.reduce(((e,t)=>e.concat(t)),[])));return n}(t.state),e,t,"editor")})),IC=FP.define({enables:XC}),LC=new WeakMap;let VC=null;const FC=4e3;FS.ios;const UC="-10000px";class HC{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e)),this.tooltipViews=this.tooltips.map(n)}update(e){var t;let n=e.state.facet(this.facet),i=n.filter((e=>e));if(n===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let r=[];for(let t=0;t<i.length;t++){let n=i[t],o=-1;if(n){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==n.create&&(o=e)}if(o<0)r[t]=this.createTooltipView(n);else{let n=r[t]=this.tooltipViews[o];n.update&&n.update(e)}}}for(let e of this.tooltipViews)r.indexOf(e)<0&&(e.dom.remove(),null===(t=e.destroy)||void 0===t||t.call(e));return this.input=n,this.tooltips=i,this.tooltipViews=r,!0}}function YC(e={}){return GC.of(e)}function WC(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const GC=FP.define({combine:e=>{var t,n,i;return{position:FS.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(i=e.find((e=>e.tooltipSpace)))||void 0===i?void 0:i.tooltipSpace)||WC}}}),ZC=RT.fromClass(class{constructor(e){this.view=e,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(GC);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new HC(e,eM,(e=>this.createTooltip(e))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e);t&&this.observeIntersection();let n=t||e.geometryChanged,i=e.state.facet(GC);if(i.position!=this.position){this.position=i.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=UC,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(GC).tooltipSpace(this.view)}}writeMeasure(e){let{editor:t,space:n}=e,i=[];for(let r=0;r<this.manager.tooltips.length;r++){let o=this.manager.tooltips[r],s=this.manager.tooltipViews[r],{dom:a}=s,l=e.pos[r],c=e.size[r];if(!l||l.bottom<=Math.max(t.top,n.top)||l.top>=Math.min(t.bottom,n.bottom)||l.right<Math.max(t.left,n.left)-.1||l.left>Math.min(t.right,n.right)+.1){a.style.top=UC;continue}let p=o.arrow?s.dom.querySelector(".cm-tooltip-arrow"):null,u=p?7:0,h=c.right-c.left,d=c.bottom-c.top,f=s.offset||JC,m=this.view.textDirection==LT.LTR,g=c.width>n.right-n.left?m?n.left:n.right-c.width:m?Math.min(l.left-(p?14:0)+f.x,n.right-h):Math.max(n.left,l.left-h+(p?14:0)-f.x),y=!!o.above;!o.strictSide&&(y?l.top-(c.bottom-c.top)-f.y<n.top:l.bottom+(c.bottom-c.top)+f.y>n.bottom)&&y==n.bottom-l.bottom>l.top-n.top&&(y=!y);let v=(y?l.top-n.top:n.bottom-l.bottom)-u;if(v<d&&!1!==s.resize){if(v<this.view.defaultLineHeight){a.style.top=UC;continue}a.style.height=(d=v)+"px"}else a.style.height&&(a.style.height="");let b=y?l.top-d-u-f.y:l.bottom+u+f.y,O=g+h;if(!0!==s.overlap)for(let e of i)e.left<O&&e.right>g&&e.top<b+d&&e.bottom>b&&(b=y?e.top-d-2-u:e.bottom+u+2);"absolute"==this.position?(a.style.top=b-e.parent.top+"px",a.style.left=g-e.parent.left+"px"):(a.style.top=b+"px",a.style.left=g+"px"),p&&(p.style.left=l.left+(m?f.x:-f.x)-(g+14-7)+"px"),!0!==s.overlap&&i.push({left:g,top:b,right:O,bottom:b+d}),a.classList.toggle("cm-tooltip-above",y),a.classList.toggle("cm-tooltip-below",!y),s.positioned&&s.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=UC}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),KC=DC.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),JC={x:0,y:0},eM=FP.define({enables:[ZC,KC]}),tM=FP.define();class nM{constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new HC(e,tM,(e=>this.createHostedView(e)))}static create(e){return new nM(e)}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}}const iM=eM.compute([tM],(e=>{let t=e.facet(tM).filter((e=>e));return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.filter((e=>null!=e.end)).map((e=>e.end))),create:nM.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class rM{constructor(e,t,n,i,r){this.view=e,this.source=t,this.field=n,this.setHover=i,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{lastMove:e}=this,t=this.view.contentDOM.contains(e.target)?this.view.posAtCoords(e):null;if(null==t)return;let n=this.view.coordsAtPos(t);if(null==n||e.y<n.top||e.y>n.bottom||e.x<n.left-this.view.defaultCharacterWidth||e.x>n.right+this.view.defaultCharacterWidth)return;let i=this.view.bidiSpans(this.view.state.doc.lineAt(t)).find((e=>e.from<=t&&e.to>=t)),r=i&&i.dir==LT.RTL?-1:1,o=this.source(this.view,t,e.x<n.left?-r:r);if(null==o?void 0:o.then){let e=this.pending={pos:t};o.then((t=>{this.pending==e&&(this.pending=null,t&&this.view.dispatch({effects:this.setHover.of(t)}))}),(e=>$T(this.view.state,e,"hover tooltip")))}else o&&this.view.dispatch({effects:this.setHover.of(o)})}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let n=this.active;if(n&&!oM(this.lastMove.target)||this.pending){let{pos:i}=n||this.pending,r=null!==(t=null==n?void 0:n.end)&&void 0!==t?t:i;(i==r?this.view.posAtCoords(this.lastMove)==i:function(e,t,n,i,r,o){let s=document.createRange(),a=e.domAtPos(t),l=e.domAtPos(n);s.setEnd(l.node,l.offset),s.setStart(a.node,a.offset);let c=s.getClientRects();s.detach();for(let e=0;e<c.length;e++){let t=c[e];if(Math.max(t.top-r,r-t.bottom,t.left-i,i-t.right)<=o)return!0}return!1}(this.view,i,r,e.clientX,e.clientY,6))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!oM(e.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function oM(e){for(let t=e;t;t=t.parentNode)if(1==t.nodeType&&t.classList.contains("cm-tooltip"))return!0;return!1}function sM(e,t={}){let n=vk.define(),i=KP.define({create:()=>null,update(e,i){if(e&&(t.hideOnChange&&(i.docChanged||i.selection)||t.hideOn&&t.hideOn(i,e)))return null;if(e&&i.docChanged){let t=i.changes.mapPos(e.pos,-1,AP.TrackDel);if(null==t)return null;let n=Object.assign(Object.create(null),e);n.pos=t,null!=e.end&&(n.end=i.changes.mapPos(e.end)),e=n}for(let t of i.effects)t.is(n)&&(e=t.value),t.is(aM)&&(e=null);return e},provide:e=>tM.from(e)});return[i,RT.define((r=>new rM(r,e,i,n,t.hoverTime||300))),iM]}const aM=vk.define(),lM=FP.define({combine(e){let t,n;for(let i of e)t=t||i.topContainer,n=n||i.bottomContainer;return{topContainer:t,bottomContainer:n}}}),cM=RT.fromClass(class{constructor(e){this.input=e.state.facet(hM),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(lM);this.top=new pM(e,!0,t.topContainer),this.bottom=new pM(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(lM);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new pM(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new pM(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(hM);if(n!=this.input){let t=n.filter((e=>e)),i=[],r=[],o=[],s=[];for(let n of t){let t,a=this.specs.indexOf(n);a<0?(t=n(e.view),s.push(t)):(t=this.panels[a],t.update&&t.update(e)),i.push(t),(t.top?r:o).push(t)}this.specs=t,this.panels=i,this.top.sync(r),this.bottom.sync(o);for(let e of s)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>DC.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class pM{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=uM(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=uM(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function uM(e){let t=e.nextSibling;return e.remove(),t}const hM=FP.define({enables:cM});class dM extends Ak{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}dM.prototype.elementClass="",dM.prototype.toDOM=void 0,dM.prototype.mapMode=AP.TrackBefore,dM.prototype.startSide=dM.prototype.endSide=-1,dM.prototype.point=!0;const fM=FP.define(),mM=FP.define(),gM=FP.define({combine:e=>e.some((e=>e))});function yM(e){let t=[vM];return e&&!1===e.fixed&&t.push(gM.of(!0)),t}const vM=RT.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=e.state.facet(mM).map((t=>new wM(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(gM),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,i=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(i<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(gM)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=qk.iter(this.view.state.facet(fM),this.view.viewport.from),i=[],r=this.gutters.map((e=>new xM(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks){let t;if(Array.isArray(e.type)){for(let n of e.type)if(n.type==aT.Text){t=n;break}}else t=e.type==aT.Text?e:void 0;if(t){i.length&&(i=[]),OM(n,i,e.from);for(let e of r)e.line(this.view,t,i)}}for(let e of r)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(mM),n=e.state.facet(mM),i=e.docChanged||e.heightChanged||e.viewportChanged||!qk.eq(e.startState.facet(fM),e.state.facet(fM),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of n){let n=t.indexOf(i);n<0?r.push(new wM(this.view,i)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>DC.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==LT.LTR?{left:n.dom.offsetWidth}:{right:n.dom.offsetWidth}:null}))});function bM(e){return Array.isArray(e)?e:[e]}function OM(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class xM{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=qk.iter(e.markers,t.from)}line(e,t,n){let i=[];OM(this.cursor,i,t.from),n.length&&(i=i.concat(n));let r=this.gutter.config.lineMarker(e,t,i);r&&i.unshift(r);let o=this.gutter;if(0==i.length&&!o.config.renderEmptyElements)return;let s=t.top-this.height;if(this.i==o.elements.length){let n=new _M(e,t.height,s,i);o.elements.push(n),o.dom.appendChild(n.dom)}else o.elements[this.i].update(e,t.height,s,i);this.height=t.bottom,this.i++}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class wM{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(i=>{let r,o=i.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();r=(e.top+e.bottom)/2}else r=i.clientY;let s=e.lineBlockAtHeight(r-e.documentTop);t.domEventHandlers[n](e,s,i)&&i.preventDefault()}));this.markers=bM(t.markers(e)),t.initialSpacer&&(this.spacer=new _M(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=bM(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!qk.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class _M{constructor(e,t,n,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,i)}update(e,t,n,i){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,t){let n="cm-gutterElement",i=this.dom.firstChild;for(let r=0,o=0;;){let s=o,a=r<t.length?t[r++]:null,l=!1;if(a){let e=a.elementClass;e&&(n+=" "+e);for(let e=o;e<this.markers.length;e++)if(this.markers[e].compare(a)){s=e,l=!0;break}}else s=this.markers.length;for(;o<s;){let e=this.markers[o++];if(e.toDOM){e.destroy(i);let t=i.nextSibling;i.remove(),i=t}}if(!a)break;a.toDOM&&(l?i=i.nextSibling:this.dom.insertBefore(a.toDOM(e),i)),l&&o++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}const EM=FP.define(),PM=FP.define({combine:e=>Mk(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let i=n[e],r=t[e];n[e]=i?(e,t,n)=>i(e,t,n)||r(e,t,n):r}return n}})});class kM extends dM{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function SM(e,t){return e.state.facet(PM).formatNumber(t,e.state)}const TM=mM.compute([PM],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(EM),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new kM(SM(e,e.state.doc.lineAt(t.from).number)),lineMarkerChange:e=>e.startState.facet(PM)!=e.state.facet(PM),initialSpacer:e=>new kM(SM(e,CM(e.state.doc.lines))),updateSpacer(e,t){let n=SM(t.view,CM(t.view.state.doc.lines));return n==e.number?e:new kM(n)},domEventHandlers:e.facet(PM).domEventHandlers})));function $M(e={}){return[PM.of(e),yM(),TM]}function CM(e){let t=9;for(;t<e;)t=10*t+9;return t}var MM;const AM=new k_;class RM{constructor(e,t,n=[],i=""){this.data=e,this.name=i,Ck.prototype.hasOwnProperty("tree")||Object.defineProperty(Ck.prototype,"tree",{get(){return qM(this)}}),this.parser=t,this.extension=[FM.of(this),Ck.languageData.of(((e,t,n)=>e.facet(DM(e,t,n))))].concat(n)}isActiveAt(e,t,n=-1){return DM(e,t,n)==this.data}findRegions(e){let t=e.facet(FM);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(e,t)=>{if(e.prop(AM)==this.data)return void n.push({from:t,to:t+e.length});let r=e.prop(k_.mounted);if(r){if(r.tree.prop(AM)==this.data){if(r.overlay)for(let e of r.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(r.overlay){let e=n.length;if(i(r.tree,r.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let r=e.children[n];r instanceof D_&&i(r,e.positions[n]+t)}};return i(qM(e),0),n}get allowsNesting(){return!0}}function DM(e,t,n){let i=e.facet(FM);if(!i)return null;let r=i.data;if(i.allowsNesting)for(let i=qM(e).topNode;i;i=i.enter(t,n,R_.ExcludeBuffers))r=i.type.prop(AM)||r;return r}RM.setState=vk.define();class jM extends RM{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=(n=e.languageData,FP.define({combine:n?e=>e.concat(n):void 0}));var n;return new jM(t,e.parser.configure({props:[AM.add((e=>e.isTop?t:void 0))]}),e.name)}configure(e,t){return new jM(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function qM(e){let t=e.field(RM.state,!1);return t?t.tree:D_.empty}class BM{constructor(e,t=e.length){this.doc=e,this.length=t,this.cursorPos=0,this.string="",this.cursor=e.iter()}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let NM=null;class zM{constructor(e,t,n=[],i,r,o,s,a){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=r,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new zM(e,t,[],D_.empty,0,n,[],null)}startParse(){return this.parser.startParse(new BM(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=D_.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i){if(this.fragments=this.withoutTempSkipped(G_.addTree(i,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=i,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(G_.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=NM;NM=this;try{return e()}finally{NM=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=QM(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:r,viewport:o,skipped:s}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,i,r)=>t.push({fromA:e,toA:n,fromB:i,toB:r}))),n=G_.applyChanges(n,t),i=D_.empty,r=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){s=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);n<i&&s.push({from:n,to:i})}}}return new zM(this.parser,t,n,i,r,o,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:i}=this.skipped[t];n<e.to&&i>e.from&&(this.fragments=QM(this.fragments,n,i),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Z_{createParse(t,n,i){let r=i[0].from,o=i[i.length-1].to,s={parsedPos:r,advance(){let t=NM;if(t){for(let e of i)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new D_($_.none,[],[],o-r)},stoppedAt:null,stopAt(){}};return s}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return NM}}function QM(e,t,n){return G_.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class XM{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new XM(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=zM.create(e.facet(FM).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new XM(n)}}RM.state=KP.define({create:XM.init,update(e,t){for(let e of t.effects)if(e.is(RM.setState))return e.value;return t.startState.facet(FM)!=t.state.facet(FM)?XM.init(t.state):e.apply(t)}});let IM=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(IM=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const LM="undefined"!=typeof navigator&&(null===(MM=navigator.scheduling)||void 0===MM?void 0:MM.isInputPending)?()=>navigator.scheduling.isInputPending():null,VM=RT.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(RM.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(RM.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=IM(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:i}}=this.view,r=n.field(RM.state);if(r.tree==r.context.tree&&r.context.isDone(i+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!LM?Math.max(25,e.timeRemaining()-5):1e9),s=r.context.treeLen<i&&n.doc.length>i+1e3,a=r.context.work((()=>LM&&LM()||Date.now()>o),i+(s?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:RM.setState.of(new XM(r.context))})),this.chunkBudget>0&&(!a||s)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>$T(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),FM=FP.define({combine:e=>e.length?e[0]:null,enables:e=>[RM.state,VM,DC.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class UM{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const HM=FP.define(),YM=FP.define({combine:e=>{if(!e.length)return" ";if(!/^(?: +|\t+)$/.test(e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return e[0]}});function WM(e){let t=e.facet(YM);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function GM(e,t){let n="",i=e.tabSize;if(9==e.facet(YM).charCodeAt(0))for(;t>=i;)n+="\t",t-=i;for(let e=0;e<t;e++)n+=" ";return n}function ZM(e,t){e instanceof Ck&&(e=new KM(e));for(let n of e.state.facet(HM)){let i=n(e,t);if(void 0!==i)return i}let n=qM(e.state);return n?function(e,t,n){return tA(t.resolveInner(n).enterUnfinishedNodesBefore(n),n,e)}(e,n,t):null}class KM{constructor(e,t={}){this.state=e,this.options=t,this.unit=WM(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:r}=this.options;return null!=i&&i>=n.from&&i<=n.to?r&&i==e?{text:"",from:e}:(t<0?i<e:i<=e)?{text:n.text.slice(i-n.from),from:i}:{text:n.text.slice(0,i-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:i}=this.lineAt(e,t);return n.slice(e-i,Math.min(n.length,e+100-i))}column(e,t=1){let{text:n,from:i}=this.lineAt(e,t),r=this.countColumn(n,e-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(r+=o-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return Yk(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let e=r(i);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const JM=new k_;function eA(e){let t=e.type.prop(JM);if(t)return t;let n,i=e.firstChild;if(i&&(n=i.type.prop(k_.closedBy))){let t=e.lastChild,i=t&&n.indexOf(t.name)>-1;return e=>sA(e,!0,1,void 0,i&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?nA:null}function tA(e,t,n){for(;e;e=e.parent){let i=eA(e);if(i)return i(iA.create(n,t,e))}return null}function nA(){return 0}class iA extends KM{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new iA(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(rA(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?tA(e,this.pos,this.base):0}}function rA(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function oA({closing:e,align:t=!0,units:n=1}){return i=>sA(i,t,n,e)}function sA(e,t,n,i,r){let o=e.textAfter,s=o.match(/^\s*/)[0].length,a=i&&o.slice(s,s+i.length)==i||r==e.pos+s,l=t?function(e){let t=e.node,n=t.childAfter(t.from),i=t.lastChild;if(!n)return null;let r=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),s=null==r||r<=o.from?o.to:Math.min(o.to,r);for(let e=n.to;;){let r=t.childAfter(e);if(!r||r==i)return null;if(!r.type.isSkipped)return r.from<s?n:null;e=r.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}function aA({except:e,units:t=1}={}){return n=>{let i=e&&e.test(n.textAfter);return n.baseIndent+(i?0:t*n.unit)}}const lA=200;function cA(){return Ck.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:i}=e.newSelection.main,r=n.lineAt(i);if(i>r.from+lA)return e;let o=n.sliceString(r.from,i);if(!t.some((e=>e.test(o))))return e;let{state:s}=e,a=-1,l=[];for(let{head:e}of s.selection.ranges){let t=s.doc.lineAt(e);if(t.from==a)continue;a=t.from;let n=ZM(s,t.from);if(null==n)continue;let i=/^\s*/.exec(t.text)[0],r=GM(s,n);i!=r&&l.push({from:t.from,to:t.from+i.length,insert:r})}return l.length?[e,{changes:l,sequential:!0}]:e}))}const pA=new k_;function uA(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}class hA{constructor(e,t){let n;function i(e){let t=Kk.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const r="string"==typeof t.all?t.all:t.all?i(t.all):void 0,o=t.scope;this.scope=o instanceof RM?e=>e.prop(AM)==o.data:o?e=>e==o:void 0,this.style=FE(e.map((e=>({tag:e.tag,class:e.class||i(Object.assign({},e,{tag:null}))}))),{all:r}).style,this.module=n?new Kk(n):null,this.themeType=t.themeType}static define(e,t){return new hA(e,t||{})}}const dA=FP.define(),fA=FP.define({combine:e=>e.length?[e[0]]:null});function mA(e){let t=e.facet(dA);return t.length?t:e.facet(fA)}function gA(e,t){let n,i=[vA];return e instanceof hA&&(e.module&&i.push(DC.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?i.push(fA.of(e)):n?i.push(dA.computeN([DC.darkTheme],(t=>t.facet(DC.darkTheme)==("dark"==n)?[e]:[]))):i.push(dA.of(e)),i}class yA{constructor(e){this.markCache=Object.create(null),this.tree=qM(e.state),this.decorations=this.buildDeco(e,mA(e.state))}update(e){let t=qM(e.state),n=mA(e.state),i=n!=mA(e.startState);t.length<e.view.viewport.to&&!i&&t.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n))}buildDeco(e,t){if(!t||!this.tree.length)return lT.none;let n=new Bk;for(let{from:i,to:r}of e.visibleRanges)UE(this.tree,t,((e,t,i)=>{n.add(e,t,this.markCache[i]||(this.markCache[i]=lT.mark({class:i})))}),i,r);return n.finish()}}const vA=tk.high(RT.fromClass(yA,{decorations:e=>e.decorations}));cP.meta,cP.link,cP.heading,cP.emphasis,cP.strong,cP.strikethrough,cP.keyword,cP.atom,cP.bool,cP.url,cP.contentSeparator,cP.labelName,cP.literal,cP.inserted,cP.string,cP.deleted,cP.regexp,cP.escape,cP.string,cP.variableName,cP.variableName,cP.typeName,cP.namespace,cP.className,cP.variableName,cP.macroName,cP.propertyName,cP.comment,cP.invalid;const bA=DC.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),OA=1e4,xA="()[]{}",wA=FP.define({combine:e=>Mk(e,{afterCursor:!0,brackets:xA,maxScanDistance:OA,renderMatch:PA})}),_A=lT.mark({class:"cm-matchingBracket"}),EA=lT.mark({class:"cm-nonmatchingBracket"});function PA(e){let t=[],n=e.matched?_A:EA;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const kA=KP.define({create:()=>lT.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],i=t.state.facet(wA);for(let e of t.state.selection.ranges){if(!e.empty)continue;let r=CA(t.state,e.head,-1,i)||e.head>0&&CA(t.state,e.head-1,1,i)||i.afterCursor&&(CA(t.state,e.head,1,i)||e.head<t.state.doc.length&&CA(t.state,e.head+1,-1,i));r&&(n=n.concat(i.renderMatch(r,t.state)))}return lT.set(n,!0)},provide:e=>DC.decorations.from(e)}),SA=[kA,bA];function TA(e={}){return[wA.of(e),SA]}function $A(e,t,n){let i=e.prop(t<0?k_.openedBy:k_.closedBy);if(i)return i;if(1==e.name.length){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function CA(e,t,n,i={}){let r=i.maxScanDistance||OA,o=i.brackets||xA,s=qM(e),a=s.resolveInner(t,n);for(let i=a;i;i=i.parent){let r=$A(i.type,n,o);if(r&&i.from<i.to)return MA(e,t,n,i,r,o)}return function(e,t,n,i,r,o,s){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},p=e.doc.iterRange(t,n>0?e.doc.length:0),u=0;for(let e=0;!p.next().done&&e<=o;){let o=p.value;n<0&&(e+=o.length);let a=t+e*n;for(let e=n>0?0:o.length-1,t=n>0?o.length:-1;e!=t;e+=n){let t=s.indexOf(o[e]);if(!(t<0||i.resolveInner(a+e,1).type!=r))if(t%2==0==n>0)u++;else{if(1==u)return{start:c,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};u--}}n>0&&(e+=o.length)}return p.done?{start:c,matched:!1}:null}(e,t,n,s,a.type,r,o)}function MA(e,t,n,i,r,o){let s=i.parent,a={from:i.from,to:i.to},l=0,c=null==s?void 0:s.cursor();if(c&&(n<0?c.childBefore(i.from):c.childAfter(i.to)))do{if(n<0?c.to<=i.from:c.from>=i.to){if(0==l&&r.indexOf(c.type.name)>-1&&c.from<c.to)return{start:a,end:{from:c.from,to:c.to},matched:!0};if($A(c.type,n,o))l++;else if($A(c.type,-n,o)){if(0==l)return{start:a,end:c.from==c.to?void 0:{from:c.from,to:c.to},matched:!1};l--}}}while(n<0?c.prevSibling():c.nextSibling());return{start:a,matched:!1}}const AA=Object.create(null),RA=[$_.none],DA=[],jA=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])jA[e]=BA(AA,t);function qA(e,t){DA.indexOf(e)>-1||(DA.push(e),console.warn(t))}function BA(e,t){let n=null;for(let i of t.split(".")){let t=e[i]||cP[i];t?"function"==typeof t?n?n=t(n):qA(i,`Modifier ${i} used at start of tag`):n?qA(i,`Tag ${i} used as modifier`):n=t:qA(i,`Unknown highlighting tag ${i}`)}if(!n)return 0;let i=t.replace(/ /g,"_"),r=$_.define({id:RA.length,name:i,props:[IE({[i]:n})]});return RA.push(r),r.id}class NA{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=qM(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),i=t.text.slice(n-t.from,this.pos-t.from),r=i.search(LA(e,!1));return r<0?null:{from:n+r,to:this.pos,text:i.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function zA(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function QA(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,i]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let e=1;e<i.length;e++)n[i[e]]=!0}let i=zA(t)+zA(n)+"*$";return[new RegExp("^"+i),new RegExp(i)]}(t);return e=>{let r=e.matchBefore(i);return r||e.explicit?{from:r?r.from:e.pos,options:t,validFor:n}:null}}class XA{constructor(e,t,n){this.completion=e,this.source=t,this.match=n}}function IA(e){return e.selection.main.head}function LA(e,t){var n;let{source:i}=e,r=t&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp(`${r?"^":""}(?:${i})${o?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const VA=mk.define();function FA(e,t){const n=t.completion.apply||t.completion.label;let i=t.source;var r,o,s,a;"string"==typeof n?e.dispatch(Object.assign(Object.assign({},(r=e.state,o=n,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange((e=>{if(e==r.selection.main)return{changes:{from:s,to:a,insert:o},range:IP.cursor(s+o.length)};let t=a-s;return!e.empty||t&&r.sliceDoc(e.from-t,e.from)!=r.sliceDoc(s,a)?{range:e}:{changes:{from:e.from-t,to:e.from,insert:o},range:IP.cursor(e.from-t+o.length)}}))),{userEvent:"input.complete"}))),{annotations:VA.of(t.completion)})):n(e,t.completion,i.from,i.to)}const UA=new WeakMap;function HA(e){if(!Array.isArray(e))return e;let t=UA.get(e);return t||UA.set(e,t=QA(e)),t}class YA{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let t=0;t<e.length;){let n=TP(e,t),i=CP(n);this.chars.push(n);let r=e.slice(t,t+i),o=r.toUpperCase();this.folded.push(TP(o==r?r.toLowerCase():o,0)),t+=i}this.astral=e.length!=this.chars.length}match(e){if(0==this.pattern.length)return[0];if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:i,precise:r,byWord:o}=this;if(1==t.length){let i=TP(e,0);return i==t[0]?[0,0,CP(i)]:i==n[0]?[-200,0,CP(i)]:null}let s=e.indexOf(this.pattern);if(0==s)return[0,0,this.pattern.length];let a=t.length,l=0;if(s<0){for(let r=0,o=Math.min(e.length,200);r<o&&l<a;){let o=TP(e,r);o!=t[l]&&o!=n[l]||(i[l++]=r),r+=CP(o)}if(l<a)return null}let c=0,p=0,u=!1,h=0,d=-1,f=-1,m=/[a-z]/.test(e),g=!0;for(let i=0,l=Math.min(e.length,200),y=0;i<l&&p<a;){let l=TP(e,i);s<0&&(c<a&&l==t[c]&&(r[c++]=i),h<a&&(l==t[h]||l==n[h]?(0==h&&(d=i),f=i+1,h++):h=0));let v,b=l<255?l>=48&&l<=57||l>=97&&l<=122?2:l>=65&&l<=90?1:0:(v=$P(l))!=v.toLowerCase()?1:v!=v.toUpperCase()?2:0;(!i||1==b&&m||0==y&&0!=b)&&(t[p]==l||n[p]==l&&(u=!0)?o[p++]=i:o.length&&(g=!1)),y=b,i+=CP(l)}return p==a&&0==o[0]&&g?this.result((u?-200:0)-100,o,e):h==a&&0==d?[-200-e.length,0,f]:s>-1?[-700-e.length,s,s+this.pattern.length]:h==a?[-900-e.length,d,f]:p==a?this.result((u?-200:0)-100-700+(g?0:-1100),o,e):2==t.length?null:this.result((i[0]?-700:0)-200-1100,i,e)}result(e,t,n){let i=[e-n.length],r=1;for(let e of t){let t=e+(this.astral?CP(TP(n,e)):1);r>1&&i[r-1]==e?i[r-1]=t:(i[r++]=e,i[r++]=t)}return i}}const WA=FP.define({combine:e=>Mk(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>GA(e(n),t(n)),optionClass:(e,t)=>n=>GA(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function GA(e,t){return e?t?e+" "+t:e:t}function ZA(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let i=Math.floor((e-t)/n);return{from:e-(i+1)*n,to:e-i*n}}class KA{constructor(e,t){this.view=e,this.stateField=t,this.info=null,this.placeInfo={read:()=>this.measureInfo(),write:e=>this.positionInfo(e),key:this},this.space=null,this.currentClass="";let n=e.state.field(t),{options:i,selected:r}=n.open,o=e.state.facet(WA);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n){let i=document.createElement("span");i.className="cm-completionLabel";let{label:r}=e,o=0;for(let e=1;e<n.length;){let t=n[e++],s=n[e++];t>o&&i.appendChild(document.createTextNode(r.slice(o,t)));let a=i.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(r.slice(t,s))),a.className="cm-completionMatchedText",o=s}return o<r.length&&i.appendChild(document.createTextNode(r.slice(o))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort(((e,t)=>e.position-t.position)).map((e=>e.render))}(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=ZA(i.length,r,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(t=>{for(let n,r=t.target;r&&r!=this.dom;r=r.parentNode)if("LI"==r.nodeName&&(n=/-(\d+)$/.exec(r.id))&&+n[1]<i.length)return FA(e,i[+n[1]]),void t.preventDefault()})),this.list=this.dom.appendChild(this.createListBox(i,n.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfo)}))}mount(){this.updateSel()}update(e){var t,n,i;let r=e.state.field(this.stateField),o=e.startState.field(this.stateField);this.updateTooltipClass(e.state),r!=o&&(this.updateSel(),(null===(t=r.open)||void 0===t?void 0:t.disabled)!=(null===(n=o.open)||void 0===n?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(null===(i=r.open)||void 0===i?void 0:i.disabled)))}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfo)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=ZA(t.options.length,t.selected,this.view.state.facet(WA).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfo)}))),this.updateSelectedOption(t.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:n}=t.options[t.selected],{info:i}=n;if(!i)return;let r="string"==typeof i?document.createTextNode(i):i(n);if(!r)return;"then"in r?r.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t)})).catch((e=>$T(this.view.state,e,"completion info"))):this.addInfoPane(r)}}addInfoPane(e){let t=this.info=document.createElement("div");t.className="cm-tooltip cm-completionInfo",t.appendChild(e),this.dom.appendChild(t),this.view.requestMeasure(this.placeInfo)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,i=this.range.from;n;n=n.nextSibling,i++)i==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&function(e,t){let n=e.getBoundingClientRect(),i=t.getBoundingClientRect();i.top<n.top?e.scrollTop-=n.top-i.top:i.bottom>n.bottom&&(e.scrollTop+=i.bottom-n.bottom)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),r=this.space;if(!r){let e=this.dom.ownerDocument.defaultView||window;r={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}if(i.top>Math.min(r.bottom,t.bottom)-10||i.bottom<Math.max(r.top,t.top)+10)return null;let o,s=this.view.textDirection==LT.RTL,a=s,l=!1,c="",p="",u=t.left-r.left,h=r.right-t.right;if(a&&u<Math.min(n.width,h)?a=!1:!a&&h<Math.min(n.width,u)&&(a=!0),n.width<=(a?u:h))c=Math.max(r.top,Math.min(i.top,r.bottom-n.height))-t.top+"px",o=Math.min(400,a?u:h)+"px";else{l=!0,o=Math.min(400,(s?t.right:r.right-t.left)-30)+"px";let e=r.bottom-t.bottom;e>=n.height||e>t.top?c=i.bottom-t.top+"px":p=t.bottom-i.top+"px"}return{top:c,bottom:p,maxWidth:o,class:l?s?"left-narrow":"right-narrow":a?"left":"right"}}positionInfo(e){this.info&&(e?(this.info.style.top=e.top,this.info.style.bottom=e.bottom,this.info.style.maxWidth=e.maxWidth,this.info.className="cm-tooltip cm-completionInfo cm-completionInfo-"+e.class):this.info.style.top="-1e6px")}createListBox(e,t,n){const i=document.createElement("ul");i.id=t,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions"));for(let r=n.from;r<n.to;r++){let{completion:n,match:o}=e[r];const s=i.appendChild(document.createElement("li"));s.id=t+"-"+r,s.setAttribute("role","option");let a=this.optionClass(n);a&&(s.className=a);for(let e of this.optionContent){let t=e(n,this.view.state,o);t&&s.appendChild(t)}}return n.from&&i.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&i.classList.add("cm-completionListIncompleteBottom"),i}}function JA(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class eR{constructor(e,t,n,i,r,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=i,this.selected=r,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new eR(this.options,iR(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,i,r){let o=function(e,t){let n=[],i=0;for(let r of e)if(r.hasResult())if(!1===r.result.filter){let e=r.result.getMatch;for(let t of r.result.options){let o=[1e9-i++];if(e)for(let n of e(t))o.push(n);n.push(new XA(t,r,o))}}else{let e,i=new YA(t.sliceDoc(r.from,r.to));for(let t of r.result.options)(e=i.match(t.label))&&(null!=t.boost&&(e[0]+=t.boost),n.push(new XA(t,r,e)))}let r=[],o=null,s=t.facet(WA).compareCompletions;for(let e of n.sort(((e,t)=>t.match[0]-e.match[0]||s(e.completion,t.completion))))!o||o.label!=e.completion.label||o.detail!=e.completion.detail||null!=o.type&&null!=e.completion.type&&o.type!=e.completion.type||o.apply!=e.completion.apply?r.push(e):JA(e.completion)>JA(o)&&(r[r.length-1]=e),o=e.completion;return r}(e,t);if(!o.length)return i&&e.some((e=>1==e.state))?new eR(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let s=t.facet(WA).selectOnOpen?0:-1;if(i&&i.selected!=s&&-1!=i.selected){let e=i.options[i.selected].completion;for(let t=0;t<o.length;t++)if(o[t].completion==e){s=t;break}}return new eR(o,iR(n,s),{pos:e.reduce(((e,t)=>t.hasResult()?Math.min(e,t.from):e),1e8),create:(a=hR,e=>new KA(e,a)),above:r.aboveCursor},i?i.timestamp:Date.now(),s,!1);var a}map(e){return new eR(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class tR{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new tR(rR,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(WA),i=(n.override||t.languageDataAt("autocomplete",IA(t)).map(HA)).map((t=>{let i=this.active.find((e=>e.source==t))||new sR(t,this.active.some((e=>0!=e.state))?1:0);return i.update(e,n)}));i.length==this.active.length&&i.every(((e,t)=>e==this.active[t]))&&(i=this.active);let r=this.open;r&&e.docChanged&&(r=r.map(e.changes)),e.selection||i.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,i=0;;){for(;n<e.length&&!e[n].hasResult;)n++;for(;i<t.length&&!t[i].hasResult;)i++;let r=n==e.length,o=i==t.length;if(r||o)return r==o;if(e[n++].result!=t[i++].result)return!1}}(i,this.active)?r=eR.build(i,t,this.id,r,n):r&&r.disabled&&!i.some((e=>1==e.state))&&(r=null),!r&&i.every((e=>1!=e.state))&&i.some((e=>e.hasResult()))&&(i=i.map((e=>e.hasResult()?new sR(e.source,0):e)));for(let t of e.effects)t.is(uR)&&(r=r&&r.setSelected(t.value,this.id));return i==this.active&&r==this.open?this:new tR(i,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:nR}}const nR={"aria-autocomplete":"list"};function iR(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const rR=[];function oR(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class sR{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=oR(e),i=this;n?i=i.handleUserEvent(e,n,t):e.docChanged?i=i.handleChange(e):e.selection&&0!=i.state&&(i=new sR(i.source,0));for(let t of e.effects)if(t.is(lR))i=new sR(i.source,1,t.value?IA(e.state):-1);else if(t.is(cR))i=new sR(i.source,0);else if(t.is(pR))for(let e of t.value)e.source==i.source&&(i=e);return i}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new sR(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(IA(e.startState))?new sR(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new sR(this.source,this.state,e.mapPos(this.explicitPos))}}class aR extends sR{constructor(e,t,n,i,r){super(e,2,t),this.result=n,this.from=i,this.to=r}hasResult(){return!0}handleUserEvent(e,t,n){var i;let r=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),s=IA(e.state);if((this.explicitPos<0?s<=r:s<this.from)||s>o||"delete"==t&&IA(e.startState)==this.from)return new sR(this.source,"input"==t&&n.activateOnTyping?1:0);let a,l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,i){if(!e)return!1;let r=t.sliceDoc(n,i);return"function"==typeof e?e(r,n,i,t):LA(e,!0).test(r)}(this.result.validFor,e.state,r,o)?new aR(this.source,l,this.result,r,o):this.result.update&&(a=this.result.update(this.result,r,o,new NA(e.state,s,l>=0)))?new aR(this.source,l,a,a.from,null!==(i=a.to)&&void 0!==i?i:IA(e.state)):new sR(this.source,1,l)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new sR(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new aR(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const lR=vk.define(),cR=vk.define(),pR=vk.define({map:(e,t)=>e.map((e=>e.map(t)))}),uR=vk.define(),hR=KP.define({create:()=>tR.start(),update:(e,t)=>e.update(t),provide:e=>[eM.from(e,(e=>e.tooltip)),DC.contentAttributes.from(e,(e=>e.attrs))]});function dR(e,t="option"){return n=>{let i=n.state.field(hR,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<n.state.facet(WA).interactionDelay)return!1;let r,o=1;"page"==t&&(r=function(e,t){let n=e.plugin(ZC);if(!n)return null;let i=n.manager.tooltips.indexOf(t);return i<0?null:n.manager.tooltipViews[i]}(n,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));let{length:s}=i.open.options,a=i.open.selected>-1?i.open.selected+o*(e?1:-1):e?0:s-1;return a<0?a="page"==t?0:s-1:a>=s&&(a="page"==t?s-1:0),n.dispatch({effects:uR.of(a)}),!0}}class fR{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const mR=RT.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(hR).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(hR);if(!e.selectionSet&&!e.docChanged&&e.startState.field(hR)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!oR(e)));for(let t=0;t<this.running.length;t++){let i=this.running[t];if(n||i.updates.length+e.transactions.length>50&&Date.now()-i.time>1e3){for(let e of i.context.abortListeners)try{e()}catch(e){$T(this.view.state,e)}i.context.abortListeners=null,this.running.splice(t--,1)}else i.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let t of e.transactions)"input"==oR(t)?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(hR);for(let e of t.active)1!=e.state||this.running.some((t=>t.active.source==e.source))||this.startQuery(e)}startQuery(e){let{state:t}=this.view,n=IA(t),i=new NA(t,n,e.explicitPos==n),r=new fR(e,i);this.running.push(r),Promise.resolve(e.source(i)).then((e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:cR.of(null)}),$T(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),50))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(WA);for(let i=0;i<this.running.length;i++){let r=this.running[i];if(void 0===r.done)continue;if(this.running.splice(i--,1),r.done){let i=new aR(r.active.source,r.active.explicitPos,r.done,r.done.from,null!==(e=r.done.to)&&void 0!==e?e:IA(r.updates.length?r.updates[0].startState:this.view.state));for(let e of r.updates)i=i.update(e,n);if(i.hasResult()){t.push(i);continue}}let o=this.view.state.field(hR).active.find((e=>e.source==r.active.source));if(o&&1==o.state)if(null==r.done){let e=new sR(r.active.source,0);for(let t of r.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:pR.of(t)})}},{eventHandlers:{blur(){let e=this.view.state.field(hR,!1);e&&e.tooltip&&this.view.state.facet(WA).closeOnBlur&&this.view.dispatch({effects:cR.of(null)})},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:lR.of(!1)})),20),this.composing=0}}}),gR=DC.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class yR{constructor(e,t,n,i){this.field=e,this.line=t,this.from=n,this.to=i}}class vR{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,AP.TrackDel),n=e.mapPos(this.to,1,AP.TrackDel);return null==t||null==n?null:new vR(this.field,t,n)}}class bR{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],i=[t],r=e.doc.lineAt(t),o=/^\s*/.exec(r.text)[0];for(let r of this.lines){if(n.length){let n=o,s=/^\t*/.exec(r)[0].length;for(let t=0;t<s;t++)n+=e.facet(YM);i.push(t+n.length-s),r=n+r.slice(s)}n.push(r),t+=r.length+1}let s=this.fieldPositions.map((e=>new vR(e.field,i[e.line]+e.from,i[e.line]+e.to)));return{text:n,ranges:s}}static parse(e){let t,n=[],i=[],r=[];for(let o of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(o);){let e=t[1]?+t[1]:null,s=t[2]||t[3]||"",a=-1;for(let t=0;t<n.length;t++)(null!=e?n[t].seq==e:s&&n[t].name==s)&&(a=t);if(a<0){let t=0;for(;t<n.length&&(null==e||null!=n[t].seq&&n[t].seq<e);)t++;n.splice(t,0,{seq:e,name:s}),a=t;for(let e of r)e.field>=a&&e.field++}r.push(new yR(a,i.length,t.index,t.index+s.length)),o=o.slice(0,t.index)+s+o.slice(t.index+t[0].length)}for(let e;e=/\\([{}])/.exec(o);){o=o.slice(0,e.index)+e[1]+o.slice(e.index+e[0].length);for(let t of r)t.line==i.length&&t.from>e.index&&(t.from--,t.to--)}i.push(o)}return new bR(i,r)}}let OR=lT.widget({widget:new class extends sT{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),xR=lT.mark({class:"cm-snippetField"});class wR{constructor(e,t){this.ranges=e,this.active=t,this.deco=lT.set(e.map((e=>(e.from==e.to?OR:xR).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let i=n.map(e);if(!i)return null;t.push(i)}return new wR(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const _R=vk.define({map:(e,t)=>e&&e.map(t)}),ER=vk.define(),PR=KP.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(_R))return n.value;if(n.is(ER)&&e)return new wR(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>DC.decorations.from(e,(e=>e?e.deco:lT.none))});function kR(e,t){return IP.create(e.filter((e=>e.field==t)).map((e=>IP.range(e.from,e.to))))}function SR(e){let t=bR.parse(e);return(e,n,i,r)=>{let{text:o,ranges:s}=t.instantiate(e.state,i),a={changes:{from:i,to:r,insert:pP.of(o)},scrollIntoView:!0};if(s.length&&(a.selection=kR(s,0)),s.length>1){let t=new wR(s,0),n=a.effects=[_R.of(t)];void 0===e.state.field(PR,!1)&&n.push(vk.appendConfig.of([PR,MR,RR,gR]))}e.dispatch(e.state.update(a))}}function TR(e){return({state:t,dispatch:n})=>{let i=t.field(PR,!1);if(!i||e<0&&0==i.active)return!1;let r=i.active+e,o=e>0&&!i.ranges.some((t=>t.field==r+e));return n(t.update({selection:kR(i.ranges,r),effects:_R.of(o?null:new wR(i.ranges,r))})),!0}}const $R=[{key:"Tab",run:TR(1),shift:TR(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(PR,!1)&&(t(e.update({effects:_R.of(null)})),!0)}],CR=FP.define({combine:e=>e.length?e[0]:$R}),MR=tk.highest(IC.compute([CR],(e=>e.facet(CR))));function AR(e,t){return Object.assign(Object.assign({},t),{apply:SR(e)})}const RR=DC.domEventHandlers({mousedown(e,t){let n,i=t.state.field(PR,!1);if(!i||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let r=i.ranges.find((e=>e.from<=n&&e.to>=n));return!(!r||r.field==i.active)&&(t.dispatch({selection:kR(i.ranges,r.field),effects:_R.of(i.ranges.some((e=>e.field>r.field))?new wR(i.ranges,r.field):null)}),!0)}}),DR={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},jR=vk.define({map(e,t){let n=t.mapPos(e,-1,AP.TrackAfter);return null==n?void 0:n}}),qR=vk.define({map:(e,t)=>t.mapPos(e)}),BR=new class extends Ak{};BR.startSide=1,BR.endSide=-1;const NR=KP.define({create:()=>qk.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,i=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(i,-1)&&(e=qk.empty)}e=e.map(t.changes);for(let n of t.effects)n.is(jR)?e=e.update({add:[BR.range(n.value,n.value+1)]}):n.is(qR)&&(e=e.update({filter:e=>e!=n.value}));return e}});function zR(){return[LR,NR]}const QR="()[]{}<>";function XR(e){for(let t=0;t<QR.length;t+=2)if(QR.charCodeAt(t)==e)return QR.charAt(t+1);return $P(e<128?e:e+1)}const IR="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),LR=DC.inputHandler.of(((e,t,n,i)=>{if((IR?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let r=e.state.selection.main;if(i.length>2||2==i.length&&1==CP(TP(i,0))||t!=r.from||n!=r.to)return!1;let o=function(e,t){let n=function(e,t){return e.languageDataAt("closeBrackets",t)[0]||DR}(e,e.selection.main.head),i=n.brackets||DR.brackets;for(let r of i){let o=XR(TP(r,0));if(t==r)return o==r?YR(e,r,i.indexOf(r+r+r)>-1,n):UR(e,r,o,n.before||DR.before);if(t==o&&VR(e,e.selection.main.from))return HR(e,r,o)}return null}(e.state,i);return!!o&&(e.dispatch(o),!0)}));function VR(e,t){let n=!1;return e.field(NR).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function FR(e,t){let n=e.sliceString(t,t+2);return n.slice(0,CP(TP(n,0)))}function UR(e,t,n,i){let r=null,o=e.changeByRange((o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:jR.of(o.to+t.length),range:IP.range(o.anchor+t.length,o.head+t.length)};let s=FR(e.doc,o.head);return!s||/\s/.test(s)||i.indexOf(s)>-1?{changes:{insert:t+n,from:o.head},effects:jR.of(o.head+t.length),range:IP.cursor(o.head+t.length)}:{range:r=o}}));return r?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function HR(e,t,n){let i=null,r=e.selection.ranges.map((t=>t.empty&&FR(e.doc,t.head)==n?IP.cursor(t.head+n.length):i=t));return i?null:e.update({selection:IP.create(r,e.selection.mainIndex),scrollIntoView:!0,effects:e.selection.ranges.map((({from:e})=>qR.of(e)))})}function YR(e,t,n,i){let r=i.stringPrefixes||DR.stringPrefixes,o=null,s=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:jR.of(i.to+t.length),range:IP.range(i.anchor+t.length,i.head+t.length)};let s,a=i.head,l=FR(e.doc,a);if(l==t){if(WR(e,a))return{changes:{insert:t+t,from:a},effects:jR.of(a+t.length),range:IP.cursor(a+t.length)};if(VR(e,a)){let i=n&&e.sliceDoc(a,a+3*t.length)==t+t+t;return{range:IP.cursor(a+t.length*(i?3:1)),effects:qR.of(a)}}}else{if(n&&e.sliceDoc(a-2*t.length,a)==t+t&&(s=GR(e,a-2*t.length,r))>-1&&WR(e,s))return{changes:{insert:t+t+t+t,from:a},effects:jR.of(a+t.length),range:IP.cursor(a+t.length)};if(e.charCategorizer(a)(l)!=kk.Word&&GR(e,a,r)>-1&&!function(e,t,n,i){let r=qM(e).resolveInner(t,-1),o=i.reduce(((e,t)=>Math.max(e,t.length)),0);for(let s=0;s<5;s++){let s=e.sliceDoc(r.from,Math.min(r.to,r.from+n.length+o)),a=s.indexOf(n);if(!a||a>-1&&i.indexOf(s.slice(0,a))>-1){let t=r.firstChild;for(;t&&t.from==r.from&&t.to-t.from>n.length+a;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=r.to==t&&r.parent;if(!l)break;r=l}return!1}(e,a,t,r))return{changes:{insert:t+t,from:a},effects:jR.of(a+t.length),range:IP.cursor(a+t.length)}}return{range:o=i}}));return o?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function WR(e,t){let n=qM(e).resolveInner(t+1);return n.parent&&n.from==t}function GR(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=kk.Word)return t;for(let r of n){let n=t-r.length;if(e.sliceDoc(n,t)==r&&i(e.sliceDoc(n-1,n))!=kk.Word)return n}return-1}function ZR(e={}){return[hR,WA.of(e),mR,JR,gR]}const KR=[{key:"Ctrl-Space",run:e=>!!e.state.field(hR,!1)&&(e.dispatch({effects:lR.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(hR,!1);return!(!t||!t.active.some((e=>0!=e.state)))&&(e.dispatch({effects:cR.of(null)}),!0)}},{key:"ArrowDown",run:dR(!0)},{key:"ArrowUp",run:dR(!1)},{key:"PageDown",run:dR(!0,"page")},{key:"PageUp",run:dR(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(hR,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||Date.now()-t.open.timestamp<e.state.facet(WA).interactionDelay)&&(t.open.disabled||FA(e,t.open.options[t.open.selected]),!0)}}],JR=tk.highest(IC.computeN([WA],(e=>e.facet(WA).defaultKeymap?[KR]:[])));function eD(e,t){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=e(t,n);return!!r&&(i(n.update(r)),!0)}}const tD=eD(aD,0),nD=eD(sD,0),iD=eD(((e,t)=>sD(e,t,function(e){let t=[];for(let n of e.selection.ranges){let i=e.doc.lineAt(n.from),r=n.to<=i.to?i:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>i.from?t[o].to=r.to:t.push({from:i.from,to:r.to})}return t}(t))),0);function rD(e,t=e.selection.main.head){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const oD=50;function sD(e,t,n=t.selection.ranges){let i=n.map((e=>rD(t,e.from).block));if(!i.every((e=>e)))return null;let r=n.map(((e,n)=>function(e,{open:t,close:n},i,r){let o,s,a=e.sliceDoc(i-oD,i),l=e.sliceDoc(r,r+oD),c=/\s*$/.exec(a)[0].length,p=/^\s*/.exec(l)[0].length,u=a.length-c;if(a.slice(u-t.length,u)==t&&l.slice(p,p+n.length)==n)return{open:{pos:i-c,margin:c&&1},close:{pos:r+p,margin:p&&1}};r-i<=2*oD?o=s=e.sliceDoc(i,r):(o=e.sliceDoc(i,i+oD),s=e.sliceDoc(r-oD,r));let h=/^\s*/.exec(o)[0].length,d=/\s*$/.exec(s)[0].length,f=s.length-d-n.length;return o.slice(h,h+t.length)==t&&s.slice(f,f+n.length)==n?{open:{pos:i+h+t.length,margin:/\s/.test(o.charAt(h+t.length))?1:0},close:{pos:r-d-n.length,margin:/\s/.test(s.charAt(f-1))?1:0}}:null}(t,i[n],e.from,e.to)));if(2!=e&&!r.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>r[t]?[]:[{from:e.from,insert:i[t].open+" "},{from:e.to,insert:" "+i[t].close}])))};if(1!=e&&r.some((e=>e))){let e=[];for(let t,n=0;n<r.length;n++)if(t=r[n]){let r=i[n],{open:o,close:s}=t;e.push({from:o.pos-r.open.length,to:o.pos+o.margin},{from:s.pos-s.margin,to:s.pos+r.close.length})}return{changes:e}}return null}function aD(e,t,n=t.selection.ranges){let i=[],r=-1;for(let{from:e,to:o}of n){let n=i.length,s=1e9;for(let n=e;n<=o;){let a=t.doc.lineAt(n);if(a.from>r&&(e==o||o>a.from)){r=a.from;let e=rD(t,n).line;if(!e)continue;let o=/^\s*/.exec(a.text)[0].length,l=o==a.length,c=a.text.slice(o,o+e.length)==e?o:-1;o<a.text.length&&o<s&&(s=o),i.push({line:a,comment:c,token:e,indent:o,empty:l,single:!1})}n=a.to+1}if(s<1e9)for(let e=n;e<i.length;e++)i[e].indent<i[e].line.text.length&&(i[e].indent=s);i.length==n+1&&(i[n].single=!0)}if(2!=e&&i.some((e=>e.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:n,indent:r,empty:o,single:s}of i)!s&&o||e.push({from:t.from+r,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&i.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:r}of i)if(n>=0){let i=t.from+n,o=i+r.length;" "==t.text[o-t.from]&&o++,e.push({from:i,to:o})}return{changes:e}}return null}function lD(e,t){return IP.create(e.ranges.map(t),e.mainIndex)}function cD(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function pD({state:e,dispatch:t},n){let i=lD(e.selection,n);return!i.eq(e.selection)&&(t(cD(e,i)),!0)}function uD(e,t){return IP.cursor(t?e.to:e.from)}function hD(e,t){return pD(e,(n=>n.empty?e.moveByChar(n,t):uD(n,t)))}function dD(e){return e.textDirectionAt(e.state.selection.main.head)==LT.LTR}const fD=e=>hD(e,!dD(e)),mD=e=>hD(e,dD(e));function gD(e,t){return pD(e,(n=>n.empty?e.moveByGroup(n,t):uD(n,t)))}function yD(e,t,n){if(t.type.prop(n))return!0;let i=t.to-t.from;return i&&(i>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function vD(e,t,n){let i,r,o=qM(e).resolveInner(t.head),s=n?k_.closedBy:k_.openedBy;for(let i=t.head;;){let t=n?o.childAfter(i):o.childBefore(i);if(!t)break;yD(e,t,s)?o=t:i=n?t.to:t.from}return r=o.type.prop(s)&&(i=n?CA(e,o.from,1):CA(e,o.to,-1))&&i.matched?n?i.end.to:i.end.from:n?o.to:o.from,IP.cursor(r,n?-1:1)}function bD(e,t){return pD(e,(n=>{if(!n.empty)return uD(n,t);let i=e.moveVertically(n,t);return i.head!=n.head?i:e.moveToLineBoundary(n,t)}))}const OD=e=>bD(e,!1),xD=e=>bD(e,!0);function wD(e){return Math.max(e.defaultLineHeight,Math.min(e.dom.clientHeight,innerHeight)-5)}function _D(e,t){let{state:n}=e,i=lD(n.selection,(n=>n.empty?e.moveVertically(n,t,wD(e)):uD(n,t)));if(i.eq(n.selection))return!1;let r,o=e.coordsAtPos(n.selection.main.head),s=e.scrollDOM.getBoundingClientRect();return o&&o.top>s.top&&o.bottom<s.bottom&&o.top-s.top<=e.scrollDOM.scrollHeight-e.scrollDOM.scrollTop-e.scrollDOM.clientHeight&&(r=DC.scrollIntoView(i.main.head,{y:"start",yMargin:o.top-s.top})),e.dispatch(cD(n,i),{effects:r}),!0}const ED=e=>_D(e,!1),PD=e=>_D(e,!0);function kD(e,t,n){let i=e.lineBlockAt(t.head),r=e.moveToLineBoundary(t,n);if(r.head==t.head&&r.head!=(n?i.to:i.from)&&(r=e.moveToLineBoundary(t,n,!1)),!n&&r.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;n&&t.head!=i.from+n&&(r=IP.cursor(i.from+n))}return r}function SD(e,t){let n=lD(e.state.selection,(e=>{let n=t(e);return IP.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(cD(e.state,n)),!0)}function TD(e,t){return SD(e,(n=>e.moveByChar(n,t)))}const $D=e=>TD(e,!dD(e)),CD=e=>TD(e,dD(e));function MD(e,t){return SD(e,(n=>e.moveByGroup(n,t)))}function AD(e,t){return SD(e,(n=>e.moveVertically(n,t)))}const RD=e=>AD(e,!1),DD=e=>AD(e,!0);function jD(e,t){return SD(e,(n=>e.moveVertically(n,t,wD(e))))}const qD=e=>jD(e,!1),BD=e=>jD(e,!0),ND=({state:e,dispatch:t})=>(t(cD(e,{anchor:0})),!0),zD=({state:e,dispatch:t})=>(t(cD(e,{anchor:e.doc.length})),!0),QD=({state:e,dispatch:t})=>(t(cD(e,{anchor:e.selection.main.anchor,head:0})),!0),XD=({state:e,dispatch:t})=>(t(cD(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function ID(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:i}=e,r=i.changeByRange((i=>{let{from:r,to:o}=i;if(r==o){let i=t(r);i<r?(n="delete.backward",i=LD(e,i,!1)):i>r&&(n="delete.forward",i=LD(e,i,!0)),r=Math.min(r,i),o=Math.max(o,i)}else r=LD(e,r,!1),o=LD(e,o,!0);return r==o?{range:i}:{changes:{from:r,to:o},range:IP.cursor(r)}}));return!r.changes.empty&&(e.dispatch(i.update(r,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?DC.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function LD(e,t,n){if(e instanceof DC)for(let i of e.state.facet(DC.atomicRanges).map((t=>t(e))))i.between(t,t,((e,i)=>{e<t&&i>t&&(t=n?i:e)}));return t}const VD=(e,t)=>ID(e,(n=>{let i,r,{state:o}=e,s=o.doc.lineAt(n);if(!t&&n>s.from&&n<s.from+200&&!/[^ \t]/.test(i=s.text.slice(0,n-s.from))){if("\t"==i[i.length-1])return n-1;let e=Yk(i,o.tabSize)%WM(o)||WM(o);for(let t=0;t<e&&" "==i[i.length-1-t];t++)n--;r=n}else r=_P(s.text,n-s.from,t,t)+s.from,r==n&&s.number!=(t?o.doc.lines:1)&&(r+=t?1:-1);return r})),FD=e=>VD(e,!1),UD=e=>VD(e,!0),HD=(e,t)=>ID(e,(n=>{let i=n,{state:r}=e,o=r.doc.lineAt(i),s=r.charCategorizer(i);for(let e=null;;){if(i==(t?o.to:o.from)){i==n&&o.number!=(t?r.doc.lines:1)&&(i+=t?1:-1);break}let a=_P(o.text,i-o.from,t)+o.from,l=o.text.slice(Math.min(i,a)-o.from,Math.max(i,a)-o.from),c=s(l);if(null!=e&&c!=e)break;" "==l&&i==n||(e=c),i=a}return i})),YD=e=>HD(e,!1),WD=e=>ID(e,(t=>{let n=e.lineBlockAt(t).to;return t<n?n:Math.min(e.state.doc.length,t+1)}));function GD(e){let t=[],n=-1;for(let i of e.selection.ranges){let r=e.doc.lineAt(i.from),o=e.doc.lineAt(i.to);if(i.empty||i.to!=o.from||(o=e.doc.lineAt(i.to-1)),n>=r.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(i)}else t.push({from:r.from,to:o.to,ranges:[i]});n=o.number+1}return t}function ZD(e,t,n){if(e.readOnly)return!1;let i=[],r=[];for(let t of GD(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),s=o.length+1;if(n){i.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak});for(let n of t.ranges)r.push(IP.range(Math.min(e.doc.length,n.anchor+s),Math.min(e.doc.length,n.head+s)))}else{i.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text});for(let e of t.ranges)r.push(IP.range(e.anchor-s,e.head-s))}}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:IP.create(r,e.selection.mainIndex),userEvent:"move.line"})),!0)}function KD(e,t,n){if(e.readOnly)return!1;let i=[];for(let t of GD(e))n?i.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):i.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const JD=tj(!1),ej=tj(!0);function tj(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=t.changeByRange((n=>{let{from:i,to:r}=n,o=t.doc.lineAt(i),s=!e&&i==r&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,i=qM(e).resolveInner(t),r=i.childBefore(t),o=i.childAfter(t);return r&&o&&r.to<=t&&o.from>=t&&(n=r.type.prop(k_.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(o.from).from?{from:r.to,to:o.from}:null}(t,i);e&&(i=r=(r<=o.to?o:t.doc.lineAt(r)).to);let a=new KM(t,{simulateBreak:i,simulateDoubleBreak:!!s}),l=ZM(a,i);for(null==l&&(l=/^\s*/.exec(t.doc.lineAt(i).text)[0].length);r<o.to&&/\s/.test(o.text[r-o.from]);)r++;s?({from:i,to:r}=s):i>o.from&&i<o.from+100&&!/\S/.test(o.text.slice(0,i))&&(i=o.from);let c=["",GM(t,l)];return s&&c.push(GM(t,a.lineIndent(o.from,-1))),{changes:{from:i,to:r,insert:pP.of(c)},range:IP.cursor(i+1+c[1].length)}}));return n(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function nj(e,t){let n=-1;return e.changeByRange((i=>{let r=[];for(let o=i.from;o<=i.to;){let s=e.doc.lineAt(o);s.number>n&&(i.empty||i.to>s.from)&&(t(s,r,i),n=s.number),o=s.to+1}let o=e.changes(r);return{changes:r,range:IP.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}}))}const ij=[{key:"ArrowLeft",run:fD,shift:$D,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>gD(e,!dD(e)),shift:e=>MD(e,!dD(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>pD(e,(t=>kD(e,t,!dD(e)))),shift:e=>SD(e,(t=>kD(e,t,!dD(e)))),preventDefault:!0},{key:"ArrowRight",run:mD,shift:CD,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>gD(e,dD(e)),shift:e=>MD(e,dD(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>pD(e,(t=>kD(e,t,dD(e)))),shift:e=>SD(e,(t=>kD(e,t,dD(e)))),preventDefault:!0},{key:"ArrowUp",run:OD,shift:RD,preventDefault:!0},{mac:"Cmd-ArrowUp",run:ND,shift:QD},{mac:"Ctrl-ArrowUp",run:ED,shift:qD},{key:"ArrowDown",run:xD,shift:DD,preventDefault:!0},{mac:"Cmd-ArrowDown",run:zD,shift:XD},{mac:"Ctrl-ArrowDown",run:PD,shift:BD},{key:"PageUp",run:ED,shift:qD},{key:"PageDown",run:PD,shift:BD},{key:"Home",run:e=>pD(e,(t=>kD(e,t,!1))),shift:e=>SD(e,(t=>kD(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:ND,shift:QD},{key:"End",run:e=>pD(e,(t=>kD(e,t,!0))),shift:e=>SD(e,(t=>kD(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:zD,shift:XD},{key:"Enter",run:JD},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:FD,shift:FD},{key:"Delete",run:UD},{key:"Mod-Backspace",mac:"Alt-Backspace",run:YD},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>HD(e,!0)},{mac:"Mod-Backspace",run:e=>ID(e,(t=>{let n=e.lineBlockAt(t).from;return t>n?n:Math.max(0,t-1)}))},{mac:"Mod-Delete",run:WD}].concat([{key:"Ctrl-b",run:fD,shift:$D,preventDefault:!0},{key:"Ctrl-f",run:mD,shift:CD},{key:"Ctrl-p",run:OD,shift:RD},{key:"Ctrl-n",run:xD,shift:DD},{key:"Ctrl-a",run:e=>pD(e,(t=>IP.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>SD(e,(t=>IP.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>pD(e,(t=>IP.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>SD(e,(t=>IP.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:UD},{key:"Ctrl-h",run:FD},{key:"Ctrl-k",run:WD},{key:"Ctrl-Alt-h",run:YD},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:pP.of(["",""])},range:IP.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,i=e.doc.lineAt(n),r=n==i.from?n-1:_P(i.text,n-i.from,!1)+i.from,o=n==i.to?n+1:_P(i.text,n-i.from,!0)+i.from;return{changes:{from:r,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(r,n))},range:IP.cursor(o)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:PD}].map((e=>({mac:e.key,run:e.run,shift:e.shift})))),rj=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>pD(e,(t=>vD(e.state,t,!dD(e)))),shift:e=>SD(e,(t=>vD(e.state,t,!dD(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>pD(e,(t=>vD(e.state,t,dD(e)))),shift:e=>SD(e,(t=>vD(e.state,t,dD(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>ZD(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>KD(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>ZD(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>KD(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,i=null;return n.ranges.length>1?i=IP.create([n.main]):n.main.empty||(i=IP.create([IP.cursor(n.main.head)])),!!i&&(t(cD(e,i)),!0)}},{key:"Mod-Enter",run:ej},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=GD(e).map((({from:t,to:n})=>IP.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:IP.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=lD(e.selection,(t=>{var n;let i=qM(e).resolveInner(t.head,1);for(;!(i.from<t.from&&i.to>=t.to||i.to>t.to&&i.from<=t.from)&&(null===(n=i.parent)||void 0===n?void 0:n.parent);)i=i.parent;return IP.range(i.to,i.from)}));return t(cD(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(nj(e,((t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let r=Yk(i,e.tabSize),o=0,s=GM(e,Math.max(0,r-WM(e)));for(;o<i.length&&o<s.length&&i.charCodeAt(o)==s.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+i.length,insert:s.slice(o)})})),{userEvent:"delete.dedent"})),!0)},{key:"Mod-]",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(nj(e,((t,n)=>{n.push({from:t.from,insert:e.facet(YM)})})),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),i=new KM(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),r=nj(e,((t,r,o)=>{let s=ZM(i,t.from);if(null==s)return;/\S/.test(t.text)||(s=0);let a=/^\s*/.exec(t.text)[0],l=GM(e,s);(a!=l||o.from<t.from+a.length)&&(n[t.from]=s,r.push({from:t.from,to:t.from+a.length,insert:l}))}));return r.changes.empty||t(e.update(r,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(GD(t).map((({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n})))),i=lD(t.selection,(t=>e.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let i=!1,r=lD(e.selection,(t=>{let r=CA(e,t.head,-1)||CA(e,t.head,1)||t.head>0&&CA(e,t.head-1,1)||t.head<e.doc.length&&CA(e,t.head+1,-1);if(!r||!r.end)return t;i=!0;let o=r.start.from==t.head?r.end.to:r.end.from;return n?IP.range(t.anchor,o):IP.cursor(o)}));return!!i&&(t(cD(e,r)),!0)}(e,t,!1)},{key:"Mod-/",run:e=>{let t=rD(e.state);return t.line?tD(e):!!t.block&&iD(e)}},{key:"Alt-A",run:nD}].concat(ij);function oj(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];"string"==typeof r?e.setAttribute(i,r):null!=r&&(e[i]=r)}t++}for(;t<arguments.length;t++)sj(e,arguments[t]);return e}function sj(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)sj(e,t[n])}}class aj{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class lj{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let i=e,r=n.facet(xj).markerFilter;r&&(i=r(i));let o=lT.set(i.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?lT.widget({widget:new Pj(e),diagnostic:e}).range(e.from):lT.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity},diagnostic:e}).range(e.from,e.to))),!0);return new lj(o,t,cj(o))}}function cj(e,t=null,n=0){let i=null;return e.between(n,1e9,((e,n,{spec:r})=>{if(!t||r.diagnostic==t)return i=new aj(e,n,r.diagnostic),!1})),i}function pj(e,t){return!(!e.effects.some((e=>e.is(hj)))&&!e.changes.touchesRange(t.pos))}function uj(e,t){return e.field(mj,!1)?t:t.concat(vk.appendConfig.of([mj,DC.decorations.compute([mj],(e=>{let{selected:t,panel:n}=e.field(mj);return t&&n&&t.from!=t.to?lT.set([gj.range(t.from,t.to)]):lT.none})),sM(yj,{hideOn:pj}),$j]))}const hj=vk.define(),dj=vk.define(),fj=vk.define(),mj=KP.define({create:()=>new lj(lT.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),i=null;if(e.selected){let r=t.changes.mapPos(e.selected.from,1);i=cj(n,e.selected.diagnostic,r)||cj(n,null,r)}e=new lj(n,e.panel,i)}for(let n of t.effects)n.is(hj)?e=lj.init(n.value,e.panel,t.state):n.is(dj)?e=new lj(e.diagnostics,n.value?Sj.open:null,e.selected):n.is(fj)&&(e=new lj(e.diagnostics,e.panel,n.value));return e},provide:e=>[hM.from(e,(e=>e.panel)),DC.decorations.from(e,(e=>e.diagnostics))]}),gj=lT.mark({class:"cm-lintRange cm-lintRange-active"});function yj(e,t,n){let{diagnostics:i}=e.state.field(mj),r=[],o=2e8,s=0;i.between(t-(n<0?1:0),t+(n>0?1:0),((e,i,{spec:a})=>{t>=e&&t<=i&&(e==i||(t>e||n>0)&&(t<i||n<0))&&(r.push(a.diagnostic),o=Math.min(e,o),s=Math.max(i,s))}));let a=e.state.facet(xj).tooltipFilter;return a&&(r=a(r)),r.length?{pos:o,end:s,above:e.state.doc.lineAt(o).to<s,create:()=>({dom:vj(e,r)})}:null}function vj(e,t){return oj("ul",{class:"cm-tooltip-lint"},t.map((t=>Ej(e,t,!1))))}const bj=e=>{let t=e.state.field(mj,!1);return!(!t||!t.panel)&&(e.dispatch({effects:dj.of(!1)}),!0)},Oj=RT.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(xj);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){let e=Date.now();if(e<this.lintTime-10)setTimeout(this.run,this.lintTime-e);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet(xj);Promise.all(t.map((e=>Promise.resolve(e(this.view))))).then((t=>{let n=t.reduce(((e,t)=>e.concat(t)));this.view.state.doc==e.doc&&this.view.dispatch(function(e,t){return{effects:uj(e,[hj.of(t)])}}(this.view.state,n))}),(e=>{$T(this.view.state,e)}))}}update(e){let t=e.state.facet(xj);(e.docChanged||t!=e.startState.facet(xj))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),xj=FP.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},Mk(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null})),enables:Oj});function wj(e,t={}){return xj.of({source:e,config:t})}function _j(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;e<n.length;e++){let i=n[e];if(/[a-zA-Z]/.test(i)&&!t.some((e=>e.toLowerCase()==i.toLowerCase()))){t.push(i);continue e}}t.push("")}return t}function Ej(e,t,n){var i;let r=n?_j(t.actions):[];return oj("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},oj("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(i=t.actions)||void 0===i?void 0:i.map(((n,i)=>{let o=i=>{i.preventDefault();let r=cj(e.state.field(mj).diagnostics,t);r&&n.apply(e,r.from,r.to)},{name:s}=n,a=r[i]?s.indexOf(r[i]):-1,l=a<0?s:[s.slice(0,a),oj("u",s.slice(a,a+1)),s.slice(a+1)];return oj("button",{type:"button",class:"cm-diagnosticAction",onclick:o,onmousedown:o,"aria-label":` Action: ${s}${a<0?"":` (access key "${r[i]})"`}.`},l)})),t.source&&oj("div",{class:"cm-diagnosticSource"},t.source))}class Pj extends sT{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return oj("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class kj{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Ej(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Sj{constructor(e){this.view=e,this.items=[];this.list=oj("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)bj(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],i=_j(n.actions);for(let r=0;r<i.length;r++)if(i[r].toUpperCase().charCodeAt(0)==t.keyCode){let t=cj(this.view.state.field(mj).diagnostics,n);t&&n.actions[r].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=oj("div",{class:"cm-panel-lint"},this.list,oj("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>bj(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(mj).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(mj),n=0,i=!1,r=null;for(e.between(0,this.view.state.doc.length,((e,o,{spec:s})=>{let a,l=-1;for(let e=n;e<this.items.length;e++)if(this.items[e].diagnostic==s.diagnostic){l=e;break}l<0?(a=new kj(this.view,s.diagnostic),this.items.splice(n,0,a),i=!0):(a=this.items[l],l>n&&(this.items.splice(n,l-n),i=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),r=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();0==this.items.length&&(this.items.push(new kj(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),r?(this.list.setAttribute("aria-activedescendant",r.id),this.view.requestMeasure({key:this,read:()=>({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{e.top<t.top?this.list.scrollTop-=t.top-e.top:e.bottom>t.bottom&&(this.list.scrollTop+=e.bottom-t.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=cj(this.view.state.field(mj).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:fj.of(t)})}static open(e){return new Sj(e)}}function Tj(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const $j=DC.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Tj("#d11")},".cm-lintRange-warning":{backgroundImage:Tj("orange")},".cm-lintRange-info":{backgroundImage:Tj("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});class Cj{constructor(e,t,n,i,r,o,s){this.type=e,this.value=t,this.from=n,this.hash=i,this.end=r,this.children=o,this.positions=s,this.hashProp=[[k_.contextHash,i]]}static create(e,t,n,i,r){return new Cj(e,t,n,i+(i<<8)+e+(t<<4)|0,r,[],[])}addChild(e,t){e.prop(k_.contextHash)!=this.hash&&(e=new D_(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from));let i=new D_(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new D_($_.none,e,t,n,this.hashProp)});return i}}var Mj;!function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.URL=33]="URL",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel"}(Mj||(Mj={}));class Aj{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class Rj{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return Bj(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let i=t;i<e;i++)n+=9==this.text.charCodeAt(i)?4-n%4:1;return n}findColumn(e){let t=0;for(let n=0;t<this.text.length&&n<e;t++)n+=9==this.text.charCodeAt(t)?4-n%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e="";for(let t=0;t<this.basePos;t++)e+=" ";return e+this.text.slice(this.basePos)}}function Dj(e,t,n){if(n.pos==n.text.length||e!=t.block&&n.indent>=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let i=(e.type==Mj.OrderedList?Vj:Lj)(n,t,!1);return i>0&&(e.type!=Mj.BulletList||Xj(n,t,!1)<0)&&n.text.charCodeAt(n.pos+i-1)==e.value}const jj={[Mj.Blockquote]:(e,t,n)=>62==n.next&&(n.markers.push(vq(Mj.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(qj(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0),[Mj.ListItem]:(e,t,n)=>!(n.indent<n.baseIndent+e.value&&n.next>-1)&&(n.moveBaseColumn(n.baseIndent+e.value),!0),[Mj.OrderedList]:Dj,[Mj.BulletList]:Dj,[Mj.Document]:()=>!0};function qj(e){return 32==e||9==e||10==e||13==e}function Bj(e,t=0){for(;t<e.length&&qj(e.charCodeAt(t));)t++;return t}function Nj(e,t,n){for(;t>n&&qj(e.charCodeAt(t-1));)t--;return t}function zj(e){if(96!=e.next&&126!=e.next)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return-1;if(96==e.next)for(let n=t;n<e.text.length;n++)if(96==e.text.charCodeAt(n))return-1;return t}function Qj(e){return 62!=e.next?-1:32==e.text.charCodeAt(e.pos+1)?2:1}function Xj(e,t,n){if(42!=e.next&&45!=e.next&&95!=e.next)return-1;let i=1;for(let t=e.pos+1;t<e.text.length;t++){let n=e.text.charCodeAt(t);if(n==e.next)i++;else if(!qj(n))return-1}return n&&45==e.next&&Uj(e)>-1&&e.depth==t.stack.length||i<3?-1:1}function Ij(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function Lj(e,t,n){return 45!=e.next&&43!=e.next&&42!=e.next||e.pos!=e.text.length-1&&!qj(e.text.charCodeAt(e.pos+1))||!(!n||Ij(t,Mj.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?-1:1}function Vj(e,t,n){let i=e.pos,r=e.next;for(;r>=48&&r<=57;){if(i++,i==e.text.length)return-1;r=e.text.charCodeAt(i)}return i==e.pos||i>e.pos+9||46!=r&&41!=r||i<e.text.length-1&&!qj(e.text.charCodeAt(i+1))||n&&!Ij(t,Mj.OrderedList)&&(e.skipSpace(i+1)==e.text.length||i>e.pos+1||49!=e.next)?-1:i+1-e.pos}function Fj(e){if(35!=e.next)return-1;let t=e.pos+1;for(;t<e.text.length&&35==e.text.charCodeAt(t);)t++;if(t<e.text.length&&32!=e.text.charCodeAt(t))return-1;let n=t-e.pos;return n>6?-1:n}function Uj(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let n=t;for(;t<e.text.length&&qj(e.text.charCodeAt(t));)t++;return t==e.text.length?n:-1}const Hj=/^[ \t]*$/,Yj=/-->/,Wj=/\?>/,Gj=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Yj],[/^\s*<\?/,Wj],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,Hj],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,Hj]];function Zj(e,t,n){if(60!=e.next)return-1;let i=e.text.slice(e.pos);for(let e=0,t=Gj.length-(n?1:0);e<t;e++)if(Gj[e][0].test(i))return e;return-1}function Kj(e,t){let n=e.countIndent(t,e.pos,e.indent),i=e.countIndent(e.skipSpace(t),t,n);return i>=n+5?n+1:i}function Jj(e,t,n){let i=e.length-1;i>=0&&e[i].to==t&&e[i].type==Mj.CodeText?e[i].to=n:e.push(vq(Mj.CodeText,t,n))}const eq={LinkReference:void 0,IndentedCode(e,t){let n=t.baseIndent+4;if(t.indent<n)return!1;let i=t.findColumn(n),r=e.lineStart+i,o=e.lineStart+t.text.length,s=[],a=[];for(Jj(s,r,o);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length){Jj(a,e.lineStart-1,e.lineStart);for(let e of t.markers)a.push(e)}else{if(t.indent<n)break;{if(a.length){for(let e of a)e.type==Mj.CodeText?Jj(s,e.from,e.to):s.push(e);a=[]}Jj(s,e.lineStart-1,e.lineStart);for(let e of t.markers)s.push(e);o=e.lineStart+t.text.length;let n=e.lineStart+t.findColumn(t.baseIndent+4);n<o&&Jj(s,n,o)}}return a.length&&(a=a.filter((e=>e.type!=Mj.CodeText)),a.length&&(t.markers=a.concat(t.markers))),e.addNode(e.buffer.writeElements(s,-r).finish(Mj.CodeBlock,o-r),r),!0},FencedCode(e,t){let n=zj(t);if(n<0)return!1;let i=e.lineStart+t.pos,r=t.next,o=n-t.pos,s=t.skipSpace(n),a=Nj(t.text,t.text.length,s),l=[vq(Mj.CodeMark,i,i+o)];s<a&&l.push(vq(Mj.CodeInfo,e.lineStart+s,e.lineStart+a));for(let n=!0;e.nextLine()&&t.depth>=e.stack.length;n=!1){let i=t.pos;if(t.indent-t.baseIndent<4)for(;i<t.text.length&&t.text.charCodeAt(i)==r;)i++;if(i-t.pos>=o&&t.skipSpace(i)==t.text.length){for(let e of t.markers)l.push(e);l.push(vq(Mj.CodeMark,e.lineStart+t.pos,e.lineStart+i)),e.nextLine();break}{n||Jj(l,e.lineStart-1,e.lineStart);for(let e of t.markers)l.push(e);let i=e.lineStart+t.basePos,r=e.lineStart+t.text.length;i<r&&Jj(l,i,r)}}return e.addNode(e.buffer.writeElements(l,-i).finish(Mj.FencedCode,e.prevLineEnd()-i),i),!0},Blockquote(e,t){let n=Qj(t);return!(n<0)&&(e.startContext(Mj.Blockquote,t.pos),e.addNode(Mj.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+n),null)},HorizontalRule(e,t){if(Xj(t,e,!1)<0)return!1;let n=e.lineStart+t.pos;return e.nextLine(),e.addNode(Mj.HorizontalRule,n),!0},BulletList(e,t){let n=Lj(t,e,!1);if(n<0)return!1;e.block.type!=Mj.BulletList&&e.startContext(Mj.BulletList,t.basePos,t.next);let i=Kj(t,t.pos+1);return e.startContext(Mj.ListItem,t.basePos,i-t.baseIndent),e.addNode(Mj.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(i),null},OrderedList(e,t){let n=Vj(t,e,!1);if(n<0)return!1;e.block.type!=Mj.OrderedList&&e.startContext(Mj.OrderedList,t.basePos,t.text.charCodeAt(t.pos+n-1));let i=Kj(t,t.pos+n);return e.startContext(Mj.ListItem,t.basePos,i-t.baseIndent),e.addNode(Mj.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(i),null},ATXHeading(e,t){let n=Fj(t);if(n<0)return!1;let i=t.pos,r=e.lineStart+i,o=Nj(t.text,t.text.length,i),s=o;for(;s>i&&t.text.charCodeAt(s-1)==t.next;)s--;s!=o&&s!=i&&qj(t.text.charCodeAt(s-1))||(s=t.text.length);let a=e.buffer.write(Mj.HeaderMark,0,n).writeElements(e.parser.parseInline(t.text.slice(i+n+1,s),r+n+1),-r);s<t.text.length&&a.write(Mj.HeaderMark,s-i,o-i);let l=a.finish(Mj.ATXHeading1-1+n,t.text.length-i);return e.nextLine(),e.addNode(l,r),!0},HTMLBlock(e,t){let n=Zj(t,0,!1);if(n<0)return!1;let i=e.lineStart+t.pos,r=Gj[n][1],o=[],s=r!=Hj;for(;!r.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){s=!1;break}for(let e of t.markers)o.push(e)}s&&e.nextLine();let a=r==Yj?Mj.CommentBlock:r==Wj?Mj.ProcessingInstructionBlock:Mj.HTMLBlock,l=e.prevLineEnd();return e.addNode(e.buffer.writeElements(o,-i).finish(a,l-i),i),!0},SetextHeading:void 0};class tq{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,n){if(-1==this.stage)return!1;let i=n.content+"\n"+t.scrub(),r=this.advance(i);return r>-1&&r<i.length&&this.complete(e,n,r)}finish(e,t){return(2==this.stage||3==this.stage)&&Bj(t.content,this.pos)==t.content.length&&this.complete(e,t,t.content.length)}complete(e,t,n){return e.addLeafElement(t,vq(Mj.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(!1===e&&(this.stage=-1),!1)}advance(e){for(;;){if(-1==this.stage)return-1;if(0==this.stage){if(!this.nextStage(Cq(e,this.pos,this.start,!0)))return-1;if(58!=e.charCodeAt(this.pos))return this.stage=-1;this.elts.push(vq(Mj.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else{if(1!=this.stage){if(2==this.stage){let t=Bj(e,this.pos),n=0;if(t>this.pos){let i=$q(e,t,this.start);if(i){let t=nq(e,i.to-this.start);t>0&&(this.nextStage(i),n=t)}}return n||(n=nq(e,this.pos)),n>0&&n<e.length?n:-1}return nq(e,this.pos)}if(!this.nextStage(Tq(e,Bj(e,this.pos),this.start)))return-1}}}}function nq(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(10==n)break;if(!qj(n))return-1}return t}class iq{nextLine(e,t,n){let i=t.depth<e.stack.length?-1:Uj(t),r=t.next;if(i<0)return!1;let o=vq(Mj.HeaderMark,e.lineStart+t.pos,e.lineStart+i);return e.nextLine(),e.addLeafElement(n,vq(61==r?Mj.SetextHeading1:Mj.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),o])),!0}finish(){return!1}}const rq={LinkReference:(e,t)=>91==t.content.charCodeAt(0)?new tq(t):null,SetextHeading:()=>new iq},oq=[(e,t)=>Fj(t)>=0,(e,t)=>zj(t)>=0,(e,t)=>Qj(t)>=0,(e,t)=>Lj(t,e,!0)>=0,(e,t)=>Vj(t,e,!0)>=0,(e,t)=>Xj(t,e,!0)>=0,(e,t)=>Zj(t,0,!0)>=0],sq={text:"",end:0};class aq{constructor(e,t,n,i){this.parser=e,this.input=t,this.ranges=i,this.line=new Rj,this.atEnd=!1,this.dontInject=new Set,this.stoppedAt=null,this.rangeI=0,this.to=i[i.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=i[0].from,this.block=Cj.create(Mj.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new Dq(n,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(null!=this.stoppedAt&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(;e.depth<this.stack.length;)this.finishContext();for(let t of e.markers)this.addNode(t.type,t.from,t.to);if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let t of this.parser.blockParsers)if(t){let n=t(this,e);if(0!=n){if(1==n)return null;e.forward();continue e}}break}let t=new Aj(this.lineStart+e.pos,e.text.slice(e.pos));for(let e of this.parser.leafBlockParsers)if(e){let n=e(this,t);n&&t.parsers.push(n)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4)for(let n of this.parser.endLeafBlock)if(n(this,e,t))break e;for(let n of t.parsers)if(n.nextLine(this,e,t))return null;t.content+="\n"+e.scrub();for(let n of e.markers)t.marks.push(n)}return this.finishLeaf(t),null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);if(!t)return!1;let n=t,i=this.absoluteLineStart+t;for(let e=1;e<this.ranges.length;e++){let t=this.ranges[e-1].to,r=this.ranges[e].from;t>=this.lineStart&&r<i&&(n-=r-t)}return this.lineStart+=n,this.absoluteLineStart+=t,this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=sq;if(t.end=e,e>=this.to)t.text="";else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let e=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<t.end;){n++;let i=this.ranges[n].from,r=this.lineChunkAt(i);t.end=i+r.length,t.text=t.text.slice(0,this.ranges[n-1].to-e)+r,e=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(t);e.depth<this.stack.length;e.depth++){let t=this.stack[e.depth],n=this.parser.skipContextMarkup[t.type];if(!n)throw new Error("Unhandled block context "+Mj[t.type]);if(!n(t,this,e))break;e.forward()}}lineChunkAt(e){let t,n=this.input.chunk(e);if(this.input.lineChunks)t="\n"==n?"":n;else{let e=n.indexOf("\n");t=e<0?n:n.slice(0,e)}return e+t.length>this.to?t.slice(0,this.to-e):t}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=Cj.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){"number"==typeof e&&(e=new D_(this.parser.nodeSet.types[e],fq,fq,(null!=n?n:this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(Aq(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?lq(this.ranges,0,e.topNode,this.ranges[0].from,this.dontInject):e}finishLeaf(e){for(let t of e.parsers)if(t.finish(this,e))return;let t=Aq(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(Mj.Paragraph,e.content.length),e.start)}elt(e,t,n,i){return"string"==typeof e?vq(this.parser.getNodeType(e),t,n,i):new yq(e,t)}get buffer(){return new mq(this.parser.nodeSet)}}function lq(e,t,n,i,r){if(r.has(n.tree))return n.tree;let o=e[t].to,s=[],a=[],l=n.from+i;function c(n,r){for(;r?n>=o:n>o;){let r=e[t+1].from-o;i+=r,n+=r,t++,o=e[t].to}}for(let p=n.firstChild;p;p=p.nextSibling){c(p.from+i,!0);let n,u=p.from+i;p.to+i>o?(n=lq(e,t,p,i,r),c(p.to+i,!1)):n=p.toTree(),s.push(n),a.push(u-l)}return c(n.to+i,!1),new D_(n.type,s,a,n.to+i-l,n.tree?n.tree.propValues:void 0)}class cq extends Z_{constructor(e,t,n,i,r,o,s,a,l){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=i,this.endLeafBlock=r,this.skipContextMarkup=o,this.inlineParsers=s,this.inlineNames=a,this.wrappers=l,this.nodeTypes=Object.create(null);for(let t of e.types)this.nodeTypes[t.name]=t.id}createParse(e,t,n){let i=new aq(this,e,t,n);for(let r of this.wrappers)i=r(i,e,t,n);return i}configure(e){let t=uq(e);if(!t)return this;let{nodeSet:n,skipContextMarkup:i}=this,r=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),s=this.blockNames.slice(),a=this.inlineParsers.slice(),l=this.inlineNames.slice(),c=this.endLeafBlock.slice(),p=this.wrappers;if(pq(t.defineNodes)){i=Object.assign({},i);let e,r=n.types.slice();for(let n of t.defineNodes){let{name:t,block:o,composite:s,style:a}="string"==typeof n?{name:n}:n;if(r.some((e=>e.name==t)))continue;s&&(i[r.length]=(e,t,n)=>s(t,n,e.value));let l=r.length,c=s?["Block","BlockContext"]:o?l>=Mj.ATXHeading1&&l<=Mj.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;r.push($_.define({id:l,name:t,props:c&&[[k_.group,c]]})),a&&(e||(e={}),Array.isArray(a)||a instanceof zE?e[t]=a:Object.assign(e,a))}n=new C_(r),e&&(n=n.extend(IE(e)))}if(pq(t.props)&&(n=n.extend(...t.props)),pq(t.remove))for(let e of t.remove){let t=this.blockNames.indexOf(e),n=this.inlineNames.indexOf(e);t>-1&&(r[t]=o[t]=void 0),n>-1&&(a[n]=void 0)}if(pq(t.parseBlock))for(let e of t.parseBlock){let t=s.indexOf(e.name);if(t>-1)r[t]=e.parse,o[t]=e.leaf;else{let t=e.before?hq(s,e.before):e.after?hq(s,e.after)+1:s.length-1;r.splice(t,0,e.parse),o.splice(t,0,e.leaf),s.splice(t,0,e.name)}e.endLeaf&&c.push(e.endLeaf)}if(pq(t.parseInline))for(let e of t.parseInline){let t=l.indexOf(e.name);if(t>-1)a[t]=e.parse;else{let t=e.before?hq(l,e.before):e.after?hq(l,e.after)+1:l.length-1;a.splice(t,0,e.parse),l.splice(t,0,e.name)}}return t.wrap&&(p=p.concat(t.wrap)),new cq(n,r,o,s,c,i,a,l,p)}getNodeType(e){let t=this.nodeTypes[e];if(null==t)throw new RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new Mq(this,e,t);e:for(let e=t;e<n.end;){let t=n.char(e);for(let i of this.inlineParsers)if(i){let r=i(n,t,e);if(r>=0){e=r;continue e}}e++}return n.resolveMarkers(0)}}function pq(e){return null!=e&&e.length>0}function uq(e){if(!Array.isArray(e))return e;if(0==e.length)return null;let t=uq(e[0]);if(1==e.length)return t;let n=uq(e.slice(1));if(!n||!t)return t||n;let i=(e,t)=>(e||fq).concat(t||fq),r=t.wrap,o=n.wrap;return{props:i(t.props,n.props),defineNodes:i(t.defineNodes,n.defineNodes),parseBlock:i(t.parseBlock,n.parseBlock),parseInline:i(t.parseInline,n.parseInline),remove:i(t.remove,n.remove),wrap:r?o?(e,t,n,i)=>r(o(e,t,n,i),t,n,i):r:o}}function hq(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let dq=[$_.none];for(let e,t=1;e=Mj[t];t++)dq[t]=$_.define({id:t,name:e,props:t>=Mj.Escape?[]:[[k_.group,t in jj?["Block","BlockContext"]:["Block","LeafBlock"]]]});const fq=[];class mq{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,i=0){return this.content.push(e,t,n,4+4*i),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return D_.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}}class gq{constructor(e,t,n,i=fq){this.type=e,this.from=t,this.to=n,this.children=i}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new mq(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}}class yq{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return fq}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}}function vq(e,t,n,i){return new gq(e,t,n,i)}const bq={resolve:"Emphasis",mark:"EmphasisMark"},Oq={resolve:"Emphasis",mark:"EmphasisMark"},xq={},wq={};class _q{constructor(e,t,n,i){this.type=e,this.from=t,this.to=n,this.side=i}}const Eq="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let Pq=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Pq=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch(e){}const kq={Escape(e,t,n){if(92!=t||n==e.end-1)return-1;let i=e.char(n+1);for(let t=0;t<Eq.length;t++)if(Eq.charCodeAt(t)==i)return e.append(vq(Mj.Escape,n,n+2));return-1},Entity(e,t,n){if(38!=t)return-1;let i=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n+1,n+31));return i?e.append(vq(Mj.Entity,n,n+1+i[0].length)):-1},InlineCode(e,t,n){if(96!=t||n&&96==e.char(n-1))return-1;let i=n+1;for(;i<e.end&&96==e.char(i);)i++;let r=i-n,o=0;for(;i<e.end;i++)if(96==e.char(i)){if(o++,o==r&&96!=e.char(i+1))return e.append(vq(Mj.InlineCode,n,i+1,[vq(Mj.CodeMark,n,n+r),vq(Mj.CodeMark,i+1-r,i+1)]))}else o=0;return-1},HTMLTag(e,t,n){if(60!=t||n==e.end-1)return-1;let i=e.slice(n+1,e.end),r=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(i);if(r)return e.append(vq(Mj.URL,n,n+1+r[0].length));let o=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(i);if(o)return e.append(vq(Mj.Comment,n,n+1+o[0].length));let s=/^\?[^]*?\?>/.exec(i);if(s)return e.append(vq(Mj.ProcessingInstruction,n,n+1+s[0].length));let a=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(i);return a?e.append(vq(Mj.HTMLTag,n,n+1+a[0].length)):-1},Emphasis(e,t,n){if(95!=t&&42!=t)return-1;let i=n+1;for(;e.char(i)==t;)i++;let r=e.slice(n-1,n),o=e.slice(i,i+1),s=Pq.test(r),a=Pq.test(o),l=/\s|^$/.test(r),c=/\s|^$/.test(o),p=!c&&(!a||l||s),u=!l&&(!s||c||a),h=p&&(42==t||!u||s),d=u&&(42==t||!p||a);return e.append(new _q(95==t?bq:Oq,n,i,(h?1:0)|(d?2:0)))},HardBreak(e,t,n){if(92==t&&10==e.char(n+1))return e.append(vq(Mj.HardBreak,n,n+2));if(32==t){let t=n+1;for(;32==e.char(t);)t++;if(10==e.char(t)&&t>=n+2)return e.append(vq(Mj.HardBreak,n,t+1))}return-1},Link:(e,t,n)=>91==t?e.append(new _q(xq,n,n+1,1)):-1,Image:(e,t,n)=>33==t&&91==e.char(n+1)?e.append(new _q(wq,n,n+2,1)):-1,LinkEnd(e,t,n){if(93!=t)return-1;for(let t=e.parts.length-1;t>=0;t--){let i=e.parts[t];if(i instanceof _q&&(i.type==xq||i.type==wq)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let r=e.takeContent(t),o=e.parts[t]=Sq(e,r,i.type==xq?Mj.Link:Mj.Image,i.from,n+1);if(i.type==xq)for(let n=0;n<t;n++){let t=e.parts[n];t instanceof _q&&t.type==xq&&(t.side=0)}return o.to}}return-1}};function Sq(e,t,n,i,r){let{text:o}=e,s=e.char(r),a=r;if(t.unshift(vq(Mj.LinkMark,i,i+(n==Mj.Image?2:1))),t.push(vq(Mj.LinkMark,r-1,r)),40==s){let n,i=e.skipSpace(r+1),s=Tq(o,i-e.offset,e.offset);s&&(i=e.skipSpace(s.to),n=$q(o,i-e.offset,e.offset),n&&(i=e.skipSpace(n.to))),41==e.char(i)&&(t.push(vq(Mj.LinkMark,r,r+1)),a=i+1,s&&t.push(s),n&&t.push(n),t.push(vq(Mj.LinkMark,i,a)))}else if(91==s){let n=Cq(o,r-e.offset,e.offset,!1);n&&(t.push(n),a=n.to)}return vq(n,i,a,t)}function Tq(e,t,n){if(60==e.charCodeAt(t)){for(let i=t+1;i<e.length;i++){let r=e.charCodeAt(i);if(62==r)return vq(Mj.URL,t+n,i+1+n);if(60==r||10==r)return!1}return null}{let i=0,r=t;for(let t=!1;r<e.length;r++){let n=e.charCodeAt(r);if(qj(n))break;if(t)t=!1;else if(40==n)i++;else if(41==n){if(!i)break;i--}else 92==n&&(t=!0)}return r>t?vq(Mj.URL,t+n,r+n):r==e.length&&null}}function $q(e,t,n){let i=e.charCodeAt(t);if(39!=i&&34!=i&&40!=i)return!1;let r=40==i?41:i;for(let i=t+1,o=!1;i<e.length;i++){let s=e.charCodeAt(i);if(o)o=!1;else{if(s==r)return vq(Mj.LinkTitle,t+n,i+1+n);92==s&&(o=!0)}}return null}function Cq(e,t,n,i){for(let r=!1,o=t+1,s=Math.min(e.length,o+999);o<s;o++){let s=e.charCodeAt(o);if(r)r=!1;else{if(93==s)return!i&&vq(Mj.LinkLabel,t+n,o+1+n);if(i&&!qj(s)&&(i=!1),91==s)return!1;92==s&&(r=!0)}}return null}class Mq{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,i,r){return this.append(new _q(e,t,n,(i?1:0)|(r?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t<this.parts.length;t++){let n=this.parts[t];if(!(n instanceof _q&&n.type.resolve&&2&n.side))continue;let i,r=n.type==bq||n.type==Oq,o=n.to-n.from,s=t-1;for(;s>=e;s--){let e=this.parts[s];if(e instanceof _q&&1&e.side&&e.type==n.type&&!(r&&(1&n.side||2&e.side)&&(e.to-e.from+o)%3==0&&((e.to-e.from)%3||o%3))){i=e;break}}if(!i)continue;let a=n.type.resolve,l=[],c=i.from,p=n.to;if(r){let e=Math.min(2,i.to-i.from,o);c=i.to-e,p=n.from+e,a=1==e?"Emphasis":"StrongEmphasis"}i.type.mark&&l.push(this.elt(i.type.mark,c,i.to));for(let e=s+1;e<t;e++)this.parts[e]instanceof gq&&l.push(this.parts[e]),this.parts[e]=null;n.type.mark&&l.push(this.elt(n.type.mark,n.from,p));let u=this.elt(a,c,p,l);this.parts[s]=r&&i.from!=c?new _q(i.type,i.from,c,i.side):null,(this.parts[t]=r&&n.to!=p?new _q(n.type,p,n.to,n.side):null)?this.parts.splice(t,0,u):this.parts[t]=u}let t=[];for(let n=e;n<this.parts.length;n++){let e=this.parts[n];e instanceof gq&&t.push(e)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof _q&&n.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return Bj(this.text,e-this.offset)+this.offset}elt(e,t,n,i){return"string"==typeof e?vq(this.parser.getNodeType(e),t,n,i):new yq(e,t)}}function Aq(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),i=0;for(let e of t){for(;i<n.length&&n[i].to<e.to;)i++;if(i<n.length&&n[i].from<e.from){let t=n[i];t instanceof gq&&(n[i]=new gq(t.type,t.from,t.to,Aq(t.children,[e])))}else n.splice(i++,0,e)}return n}const Rq=[Mj.CodeBlock,Mj.ListItem,Mj.OrderedList,Mj.BulletList];class Dq{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&"\n"!=this.input.read(e-1,e);)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let i=e+this.fragment.offset;for(;n.to<=i;)if(!n.parent())return!1;for(;;){if(n.from>=i)return this.fragment.from<=t;if(!n.childAfter(i))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(k_.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),r=e.absoluteLineStart,o=r,s=e.block.children.length,a=o,l=s;for(;;){if(t.to-n>i){if(t.type.isAnonymous&&t.firstChild())continue;break}if(e.dontInject.add(t.tree),e.addNode(t.tree,t.from-n),t.type.is("Block")&&(Rq.indexOf(t.type.id)<0?(o=t.to-n,s=e.block.children.length):(o=a,s=l,a=t.to-n,l=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>s;)e.block.children.pop(),e.block.positions.pop();return o-r}}const jq=IE({"Blockquote/...":cP.quote,HorizontalRule:cP.contentSeparator,"ATXHeading1/... SetextHeading1/...":cP.heading1,"ATXHeading2/... SetextHeading2/...":cP.heading2,"ATXHeading3/...":cP.heading3,"ATXHeading4/...":cP.heading4,"ATXHeading5/...":cP.heading5,"ATXHeading6/...":cP.heading6,"Comment CommentBlock":cP.comment,Escape:cP.escape,Entity:cP.character,"Emphasis/...":cP.emphasis,"StrongEmphasis/...":cP.strong,"Link/... Image/...":cP.link,"OrderedList/... BulletList/...":cP.list,"BlockQuote/...":cP.quote,"InlineCode CodeText":cP.monospace,URL:cP.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":cP.processingInstruction,"CodeInfo LinkLabel":cP.labelName,LinkTitle:cP.string,Paragraph:cP.content}),qq=new cq(new C_(dq).extend(jq),Object.keys(eq).map((e=>eq[e])),Object.keys(eq).map((e=>rq[e])),Object.keys(eq),oq,jj,Object.keys(kq).map((e=>kq[e])),Object.keys(kq),[]);cP.strikethrough,cP.processingInstruction;cP.heading,cP.content,cP.processingInstruction;function Bq(e,t,n){return(i,r,o)=>{if(r!=e||i.char(o+1)==e)return-1;let s=[i.elt(n,o,o+1)];for(let r=o+1;r<i.end;r++){let a=i.char(r);if(a==e)return i.addElement(i.elt(t,o,r+1,s.concat(i.elt(n,r,r+1))));if(92==a&&s.push(i.elt("Escape",r,2+r++)),qj(a))break}return-1}}cP.list,cP.atom,cP.special(cP.content),cP.processingInstruction,Bq(94,"Superscript","SuperscriptMark"),cP.special(cP.content),cP.processingInstruction,Bq(126,"Subscript","SubscriptMark"),cP.character;const Nq=120,zq=121,Qq=126,Xq=7,Iq=8,Lq=9,Vq=10,Fq=137,Uq=18,Hq=26,Yq=36,Wq=143,Gq=144,Zq=145,Kq=146,Jq=47,eB=151,tB=69,nB=152,iB=71,rB=75,oB=158,sB=78,aB=79,lB=80,cB=88,pB=97,uB=99,hB=100,dB="undefined"!=typeof process&&process.env&&/\bfparse(:dbg)?\b/.test(process.env.LOG),fB="undefined"!=typeof process&&process.env&&/\bfparse:dbg\b/.test(process.env.LOG),mB="undefined"!=typeof process&&process.env&&/\bcontext\b/.test(process.env.LOG),gB=[9,11,12,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],yB=bB("\n\r"),vB=bB("'./-+*");function bB(e){return Array.from(e).map((e=>e.charCodeAt(0)))}function OB(e){return e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}function xB(e){return gB.includes(e)}function wB(e,t){return t.concat(e.split(/\n/g).join("\n"+t))}function _B(e,t=0){const n=e.peek(t);return i=n,vB.includes(i)?{offset:1,token:String.fromCharCode(n)}:null;var i}function EB(e,t=0,n=!1){for(let r=!1,o=[],s=0;;s++){const a=e.peek(t+s);if(!(63===(i=a)||95===i||i>=65&&i<=90||i>=97&&i<=122||i>=161&&!OB(i)&&!xB(i)||(r||n)&&OB(a)))return o.length?{token:String.fromCharCode(...o),offset:s}:null;r||(r=!0),o.push(a)}var i}function PB(e,t){for(let n=!1,i=0;;i++){if(!xB(e.peek(t+i)))return n?{token:" ",offset:i}:null;n||(n=!0)}}const kB={[Nq]:"identifier",[zq]:"nameIdentifier"},SB=new xE(((e,t)=>{fB&&console.log("%s: T <identifier | nameIdentifier>",e.pos);const n=function(e,t){const n=t.contextKeys(),i=t.tokens;for(let t=0,r=[],o=null;;){const s=i.length+r.length>0,a=r.length>0,l=EB(e,t,s)||s&&_B(e,t)||a&&PB(e,t);if(!l)return o;const{token:c,offset:p}=l;if(t+=p," "===c)continue;r=[...r,c];const u=[...i,...r].join(" ");if(n.some((e=>e===u))){const e=r[0];o={token:e,offset:e.length,term:zq}}if(DB.some((e=>e===u))){const e=r[0];o={token:e,offset:e.length,term:Nq}}if(!n.some((e=>e.startsWith(u)))&&!DB.some((e=>e.startsWith(u))))return o}}(e,t.context),i=t.context.tokens,r=n||EB(e,0,i.length>0);r&&(e.advance(r.offset),e.acceptToken(n?n.term:Nq),dB&&console.log("%s: MATCH <%s> <%s>",e.pos,n?kB[n.term]:"identifier",r.token))}),{contextual:!0}),TB=new xE(((e,t)=>{fB&&console.log("%s: T <propertyIdentifier>",e.pos);const n=EB(e,0,t.context.tokens.length>0);n&&(e.advance(n.offset),e.acceptToken(119),dB&&console.log("%s: MATCH <propertyIdentifier> <%s>",e.pos,n.token))})),$B=new xE(((e,t)=>{let n;fB&&console.log("%s: T <insertSemi>",e.pos);let i=!1;for(n=0;;n++){const t=e.peek(n);if(!gB.includes(t)){yB.includes(t)&&(i=!0);break}}if(i){const t=EB(e,n+1);if(PB(e,n+1)||t&&/^(then|else|return|satisfies)$/.test(t.token))return;dB&&console.log("%s: MATCH <insertSemi>",e.pos),e.acceptToken(122)}})),CB={153:"FunctionInvocation",[nB]:"FilterExpression",[eB]:"PathExpression"},MB={173:"Context",171:"FunctionDefinition",129:"ForExpression",169:"List",138:"IfExpression",139:"QuantifiedExpression"},AB={96:"Context",89:"FunctionDefinition",4:"ForExpression",[cB]:"List",[Uq]:"IfExpression",22:"QuantifiedExpression",67:"PathExpression",[iB]:"FunctionInvocation",[tB]:"FilterExpression",40:"ArithmeticExpression"};let RB=class e{constructor(e){this.fn=e}get(e){return this.fn(e)}static of(t){return new e(t)}};const DB=Object.keys({"date and time":1,date:1,time:1,duration:1});let jB=class e{constructor({name:e="Expressions",tokens:t=[],children:n=[],parent:i=null,context:r={},value:o,raw:s}={}){this.name=e,this.tokens=t,this.children=n,this.parent=i,this.context=r,this.value=o,this.raw=s}enterScope(e){const t=this.of({name:e,parent:this});return mB&&console.log("[%s] enter",t.path,t.context),t}exitScope(e){return this.parent?(mB&&console.log("[%s] exit %o\n%s",this.path,this.context,wB(e," ")),this.parent.pushChild(this)):(mB&&console.log("[%s] NO exit %o\n%s",this.path,this.context,wB(e," ")),this)}token(e){return mB&&console.log("[%s] token <%s> + <%s>",this.path,this.tokens.join(" "),e),this.assign({tokens:[...this.tokens,e]})}literal(e){return mB&&console.log("[%s] literal %o",this.path,e),this.pushChild(this.of({name:"Literal",value:e}))}computedValue(){for(let e=this;;e=zB(e.children)){if(!e)return null;if(e.value)return e.value}}contextKeys(){return Object.keys(this.context).map(qB)}get path(){return this.parent?.path?.concat(" > ",this.name)||this.name}get(e){const t=[e,e&&qB(e)],n=Object.keys(this.context).find((e=>t.includes(qB(e))));if(void 0===n)return;const i=this.context[n];return i instanceof RB?i.get(this):i}resolveName(){const e=this.tokens.join(" "),t=this.assign({tokens:[]}),n=this.of({name:"VariableName",parent:t,value:this.get(e),raw:e});return mB&&console.log("[%s] resolve name <%s=%s>",n.path,e,this.get(e)),t.pushChild(n)}pushChild(e){if(!e)return this;const t=this.assign({children:[...this.children,e]});return e.parent=t,t}pushChildren(e){let t=this;for(const n of e)t=t.pushChild(n);return t}declareName(){if(0===this.tokens.length)throw Error("no tokens to declare name");const e=this.tokens.join(" ");return mB&&console.log("[%s] declareName <%s>",this.path,e),this.assign({tokens:[]}).pushChild(this.of({name:"Name",value:e}))}define(e,t){if("string"!=typeof e)return mB&&console.log("[%s] no define <%s=%s>",this.path,e,t),this;mB&&console.log("[%s] define <%s=%s>",this.path,e,t);const n={...this.context,[e]:t};return this.assign({context:n})}assign(t={}){return e.of({...this,...t})}of(t={}){const n={context:this.context,parent:this.parent};return e.of({...n,...t})}static of(t){const{name:n,tokens:i=[],children:r=[],parent:o=null,context:s={},value:a,raw:l}=t;return new e({name:n,tokens:[...i],children:[...r],context:{...s},parent:o,value:a,raw:l})}};function qB(e){return e.replace(/\s*([./\-'+*])\s*/g," $1 ").replace(/\s{2,}/g," ").trim()}function BB(e,t,n){const i=e.children.filter((e=>e.name!==t)),r=e.children.filter((e=>e.name===t)),o=i[0],s=i[Math.max(1,i.length-1)],a=o.computedValue(),l=s?.computedValue()||null;return e.assign({children:r}).enterScope(t).pushChildren(i).exitScope(n).define(a,l)}const NB=function(e={}){const t=jB.of({context:e});return new DE({start:t,reduce(e,t,n,i){if(t===Uq){const[t,n]=e.children.slice(-2);e=e.assign({value:{...t?.computedValue(),...n?.computedValue()}})}if(t===cB&&(e=e.assign({value:e.children.reduce(((e,t)=>({...e,...t?.computedValue()})),{})})),t===tB){const[t,n]=e.children.slice(-2);e=e.assign({value:t?.computedValue()})}if(t===iB){const[t,...n]=e.children;"get value"===t?.raw&&(e=function(e,t){if(!t.length)return e.assign({value:null});"Name"===t[0].name&&(t=function(e,t){const n={};for(let t=0;t<e.length;t+=2){const[i,r]=e.slice(t,t+2);n[i.value]=r}return t.map((e=>n[e]))}(t,["m","key"]));if(2!==t.length)return e.assign({value:null});const[n,i]=t,r=i?.computedValue(),o=n?.computedValue();if(!o||"object"!=typeof o||"string"!=typeof r)return e.assign({value:null});return e.assign({value:[qB(r),r].reduce(((e,t)=>t in o?o[t]:e),null)})}(e,n))}const r=MB[t];if(r)return e.enterScope(r);const o=CB[t];if(o){const{children:n,context:i}=e,r=n.slice(0,-1),s=zB(n);let a=null;return t===eB&&(a=s?.computedValue()),t===nB&&(a={...i,...s?.computedValue(),item:s?.computedValue()}),e.assign({children:r}).enterScope(o).pushChild(s).assign({context:a||i})}const s=i.read(i.pos,n.pos);if(AB[t])return e.exitScope(s);if(t===pB){const t=e.children.filter((e=>"ContextEntry"!==e.name)),n=t[0],i=zB(t);return BB(e,"ContextEntry",s).assign({value:{...e.value,[n.computedValue()]:i?.computedValue()}})}if(t===Xq||t===Hq)return BB(e,"InExpression",s);if(t===Fq)return e.define("partial",RB.of((e=>zB(e.children)?.computedValue())));if(t===rB){const t=zB(e.children).computedValue();return e.define(t,1)}if(t===Wq||t===Gq||t===Zq){const t=e.children.slice(0,-1),n=zB(e.children);return e.assign({children:t}).enterScope("ArithmeticExpression").pushChild(n)}if(t===Kq)return e.enterScope("ArithmeticExpression");if(t===Lq||t===Vq||t===hB)return e.token(s);if(t===aB)return e.literal(s.replace(/^"|"$/g,""));if(t===lB)return e.literal("true"===s);if(t===sB)return e.literal(parseFloat(s));if(t===oB)return e.literal(null);if(t===Jq)return e.resolveName();if(t===Iq||t===uB)return e.declareName();if((t===Qq||t===Yq)&&e.tokens.length>0)throw new Error("uncleared name");if(t===Qq){let t=e;for(;t.parent;)t=t.exitScope(s);return t}return e}})}({});function zB(e){return e[e.length-1]}const QB=IE({StringLiteral:cP.string,NumericLiteral:cP.number,BooleanLiteral:cP.bool,"AtLiteral!":cP.special(cP.string),CompareOp:cP.compareOperator,ArithOp:cP.arithmeticOperator,"for if then else some every satisfies between return":cP.controlKeyword,"in instance of and or":cP.operatorKeyword,function:cP.definitionKeyword,as:cP.keyword,"Type/...":cP.typeName,Wildcard:cP.special,null:cP.null,LineComment:cP.lineComment,BlockComment:cP.blockComment,'VariableName! "?"':cP.variableName,"DateTimeConstructor! SpecialFunctionName!":cP.function(cP.special(cP.variableName)),"List Interval":cP.list,Context:cP.definition(cP.literal),"Name!":cP.definition(cP.variableName),"Key/Name! ContextEntryType/Name!":cP.definition(cP.propertyName),"PathExpression/VariableName!":cP.function(cP.propertyName),"FormalParameter/ParameterName!":cP.function(cP.definition(cP.variableName)),"( )":cP.paren,"[ ]":cP.squareBracket,"{ }":cP.brace,".":cP.derefOperator,", ;":cP.separator,"..":cP.punctuation}),XB={__proto__:null,for:10,in:30,return:34,if:38,then:40,else:42,some:46,every:48,satisfies:55,or:58,and:62,between:70,instance:86,of:89,days:99,time:101,duration:103,years:105,months:107,date:109,list:115,context:121,function:128,null:154,true:324,false:324,"?":168,external:184,not:207},IB=jE.deserialize({version:14,states:"IWO`QYOOO$gQYOOOOQU'#Ce'#CeO$qQYO'#C`O%zQ^O'#FOOOQQ'#Fd'#FdO'dQYO'#FdO`QYO'#DUOOQU'#Em'#EmO)QQ^O'#D]OOQO'#Fk'#FkO,PQWO'#DuOOQU'#D|'#D|OOQU'#D}'#D}OOQU'#EO'#EOO,UOWO'#ERO,PQWO'#EPOOQU'#EP'#EPOOQU'#Fq'#FqOOQU'#Fo'#FoOOQQ'#Fv'#FvO.yQYO'#FvO0wQYO'#FvOOQU'#ET'#ETO2sQYO'#EVOOQU'#FQ'#FQO4UQ^O'#FQO5hQYO'#EWO5rQWO'#EXOOQP'#GP'#GPO5wQXO'#E`OOQU'#Fz'#FzOOQU'#FP'#FPOOQQ'#Eh'#EhQ`QYOOOOQQ'#FR'#FROOQQ'#F['#F[O2sQYO'#CnOOQQ'#F]'#F]O$qQYO'#CrO6SQYO'#DvOOQU'#Fp'#FpO6XQYO'#EQOOQO'#EQ'#EQO2sQYO'#EUO`QYO'#ETOOQO'#F}'#F}O7bQYO'#DQO8UQWO'#F`OOQO'#DS'#DSO8aQYO'#FdQOQWOOO8hQWOOO9[QYO'#CdO9iQYO'#FTOOQQ'#Cc'#CcO9nQYO'#FSOOQQ'#Cb'#CbO9vQYO,58zO`QYO,59hOOQQ'#Fa'#FaOOQQ'#Fb'#FbOOQQ'#Fc'#FcO`QYO,59pO`QYO,59pO`QYO,59pOOQQ'#Fi'#FiO$qQYO,5:]OOQQ'#Fj'#FjO2sQYO,5:_OOQQ,5;j,5;jO`QYO,59dO`QYO,59fO2sQYO,59hO;fQYO,59hO;mQYO,59rOOQU,5:h,5:hO;rQ^O,59pOOQU-E8k-E8kO>qQYO'#FlOOQU,5:a,5:aOOQU,5:m,5:mOOQU,5:k,5:kO>{QYO,5:qOOQU,5;l,5;lO?SQYO'#FnO?aQWO,5:rO?fQYO,5:sOOQP'#Ed'#EdO@YQXO'#EcOOQO'#Eb'#EbO@aQWO'#EaO@fQWO'#GQO@nQWO,5:zOOQQ-E8f-E8fO@sQYO,59YO9iQYO'#F_OOQQ'#Cv'#CvO@zQYO'#F^OOQQ'#Cu'#CuOASQYO,59^OAXQYO,5:bOA^QYO,5:lOAcQYO,5:pOAjQ^O,5:oO2sQYO'#ElOCSQWO,5;zO2sQYOOOOQR'#Cf'#CfOOQQ'#Ei'#EiOCyQYO,59OO2sQYO,5;oOOQQ'#FW'#FWO$qQYO'#EjODZQYO,5;nO`QYO1G.fOOQQ'#FZ'#FZOEjQ^O1G/SOI]Q^O1G/[OIgQ^O1G/[OK_Q^O1G/[OOQU1G/w1G/wOLtQYO1G/yOMyQ^O1G/OO!!aQ^O1G/QO!$}QYO1G/SO!%UQYO1G/SOOQU1G/S1G/SO!&tQYO1G/^O!'`Q^O'#CdOOQO'#Dy'#DyO!(rQWO'#DxO!(wQWO'#FmOOQO'#Dw'#DwOOQO'#Dz'#DzO!)PQWO,5<WOOQU'#Fy'#FyOOQU1G0]1G0]O2sQYO'#ErO!)UQWO,5<YOOQU'#F|'#F|OOQU1G0^1G0^O!)aQWO'#EZO!)lQWO'#GOOOQO'#EY'#EYO!)tQWO1G0_OOQP'#Et'#EtO!)yQXO,5:}O2sQYO,5:{O!*QQXO'#EuO!*YQWO,5<lOOQU1G0f1G0fO2sQYO1G.tO2sQYO,5;yO$qQYO'#EkO!*bQYO,5;xO`QYO1G.xO!*jQYO1G/|OOQO1G0W1G0WO2sQYO1G0[OOQO,5;W,5;WOOQO-E8j-E8jO!*oQWOOOOQQ-E8g-E8gO!*tQYO'#ClOOQQ1G1Z1G1ZOOQQ,5;U,5;UOOQQ-E8h-E8hO!+RQ^O7+$QOOQU7+%e7+%eO`QYO7+$nO!,kQWO7+$nO!,pQ^O'#D[OOQU'#DZ'#DZO!/oQYO'#D^O!/tQYO'#D^O!/yQYO'#D^O!0OQ`O'#DfO!0TQ`O'#DiO!0YQ`O'#DmOOQU7+$x7+$xO2sQYO,5:dO$qQYO'#EqO!0_QWO,5<XOOQU1G1r1G1rO!0gQYO,5;^OOQO-E8p-E8pO!&tQYO,5:uO$qQYO'#EsO!0tQWO,5<jO!0|QYO7+%yOOQP-E8r-E8rO!1TQYO1G0gOOQO,5;a,5;aOOQO-E8s-E8sO!1_QYO7+$`O!1fQYO1G1eOOQQ,5;V,5;VOOQQ-E8i-E8iO!1pQ^O7+$dOOQO7+%h7+%hO!4WQYO7+%vO2sQYO,59WO!5lQ^O<<HYOOQU<<HY<<HYO$qQYO'#EnO!7OQ^O,59vO!9}QYO,59xO!:SQYO,59xO!:XQYO,59xO!:^QYO,5:QO$qQYO,5:TO!:xQbO,5:XO!;PQYO1G0OOOQO,5;],5;]OOQO-E8o-E8oOOQO1G0a1G0aOOQO,5;_,5;_OOQO-E8q-E8qO!;ZQ^O'#E]OOQU<<Ie<<IeO`QYO<<IeO`QYO<<GzO!<sQ^O'#FjOOQU'#Fw'#FwOOQU<<Ib<<IbO!?rQYO1G.rOOQU,5;Y,5;YOOQU-E8l-E8lO!?|QYO1G/dOOQU1G/d1G/dO!@RQbO'#D]O!@dQ`O'#D[O!@oQ`O1G/lO!@tQWO'#DlO!@yQ`O'#FeOOQO'#Dk'#DkO!ARQ`O1G/oOOQO'#Dp'#DpO!AWQ`O'#FgOOQO'#Do'#DoO!A`Q`O1G/sOOQUAN?PAN?PO!AeQ^OAN=fOOQU7+%O7+%OO!B}Q`O,59vOOQU7+%W7+%WO!:^QYO,5:WO$qQYO'#EoO!CYQ`O,5<POOQU7+%Z7+%ZO!:^QYO'#EpO!CbQ`O,5<RO!CjQ`O7+%_OOQO1G/r1G/rOOQO,5;Z,5;ZOOQO-E8m-E8mOOQO,5;[,5;[OOQO-E8n-E8nO!&tQYO<<HyOOQUAN>eAN>eO!CoQ^O'#FQO2sQYO'#ETO2sQYO,59hO2sQYO,59pO2sQYO,59pO2sQYO,59pO2sQYO,59dO2sQYO,59fO!EvQYO,59hO!E}QYO,5:oO2sQYO1G.fO!FqQYO1G/SO!HxQYO1G/[O!ISQYO1G/[O!JXQYO1G/OO!KyQYO1G/QO2sQYO1G.xO!LsQYO7+$QO2sQYO7+$nO!MgQYO7+%yO!MqQYO7+$dO!NeQYO<<HYO$qQYO'#EnO# RQYO'#E]O2sQYO<<IeO2sQYO<<GzO# uQYOAN=fO!:^QYO<<HyO2sQYO'#DUO#!iQ^O'#DQO9vQYO,58zO#$RQYO,59^O#$WQYO1G/SO#$_QWO1G0_O#$dQYO7+$`O#$kQ`O7+%_O$qQYO'#C`O$qQYO'#CrO2sQYO,59hO?fQYO,5:sO2sQYO1G.tO#$pQ`O1G/sO#$uQWO'#EXO#$zQYO,59YO!:xQbO,5:XO2sQYO'#CnO#%RQ`O'#Dm",stateData:"#%W~O#pOS#qOSPOSQOS~OTsOZUO[TOctOgvOhvOr}OueO!S{O!T{O!UxO!WzO!b!OO!fdO!hfO!oyO!viO#RmO#lQO#mQO$f[O$g]O$h^O$i_O~OTsO[TOctOgvOhvOr&pOueO!S{O!T{O!UxO!WzO!b!OO!fdO!hfO!oyO!viO#RmO#lQO#mQO$f[O$g]O$h^O$i_O~OZ!SO#Z!UO~P!|O#lQO#mQO~OZ!^O[!^O]!_O^!_O_!lOm!iOo!jOq!]Or!]Os!kOy!`O{!mO!h!fO#x!dOu$_X~O#n!hO$u!hOT#rXc#rXg#rXh#rX!S#rX!T#rX!U#rX!W#rX!b#rX!f#rX!o#rX!v#rX#R#rX#j#rX#l#rX#m#rX$f#rX$g#rX$h#rX$i#rX~P$yO$f!nOT$WXZ$WX[$WXc$WXg$WXh$WXr$WXu$WX!S$WX!T$WX!U$WX!W$WX!b$WX!f$WX!h$WX!o$WX!v$WX#R$WX#l$WX#m$WX$g$WX$h$WX$i$WX~O#lQO#mQOT!PXZ!PX[!PX]!PX^!PX_!PXc!PXg!PXh!PXm!PXo!PXq!PXr!PXs!PXu!PXy!PX{!PX!S!PX!T!PX!U!PX!W!PX!b!PX!f!PX!h!PX!o!PX!v!PX#R!PX#j!PX#n!PX#x!PX$f!PX$g!PX$h!PX$i!PX$u!PX#|!PXw!PXd!PX#{!PXa!PX#Q!PXe!PXk!PX~Ou!qO~O$g]O~OT$jXT$lXc$jXc$lXg$jXg$lXh$jXh$lXr$jXr$lXu$jXu$lX!S$jX!S$lX!T$jX!T$lX!U$jX!U$lX!W$jX!W$lX!b$jX!b$lX!f$jX!f$lX!h$jX!h$lX!o$jX!o$lX!v$jX!v$lX#R$jX#R$lX$f$jX$f$lX$g$jX$g$lX$h$jX$h$lX$i$jX$i$lX~OZ$jXZ$lX[$jX[$lX#l$jX#l$lX#m$jX#m$lX~P,ZOT$jXc$jXg$jXh$jXr$jXu$jX!S$jX!T$jX!U$jX!W$jX!b$jX!f$jX!h$jX!o$jX!v$jX#R$jX$f$jX$g$jX$h$jX$i$jX~OT$oXZ$jXZ$oX[$jX[$oXc$oXg$oXh$oXr$oXu$oX!S$oX!T$oX!U$oX!W$oX!b$oX!f$oX!h$oX!o$oX!v$oX#R$oX#l$jX#l$oX#m$jX#m$oX$f$oX$g$oX$h$oX$i$oX~P/gOZUO~P!|O#n!vOZ#tX[#tX]#tX^#tX_#tXm#tXo#tXq#tXr#tXs#tXu#tXy#tX{#tX!f#tX!h#tX#j#tX#x#tX~OT#tXc#tXg#tXh#tX!S#tX!T#tX!U#tX!W#tX!b#tX!o#tX!v#tX#R#tX#l#tX#m#tX#n#tX$f#tX$g#tX$h#tX$i#tX$u#tX~P2zOZUO!f$bP~P!|Ou!yO~O#k!zO$g]O#Q$tP~Oo#XO~Oo#YOu!tX~OZ!^O[!^O]!_O^!_O_&wOm&uOo&vOq&qOr&qOs'gOy!`O{!mO!h!fO#x!dOu$_X~O#jtX#|tXwtX!ftXdtX#{tXatX#QtXetXktX~P6aO#|#]O#j$SXw$SX~O#j#YX~P'dOu#_O~OZ#`O[#`O]#`O^#`O#lQO#mQO#x#`O#y#`O$YWX~O_WXwWX#|WX~P8mO_#dO~O#|#eOa#vX~Oa#hO~OTsOZUO[TOctOgvOhvOr}O!S{O!T{O!UxO!WzO!b!OO!fdO!hfO!oyO!viO#RmO#lQO#mQO$f[O$g]O$h^O$i_O~Ou#rO~P9{O|#tO~O{!mO!h!fO#x!dOTxaZxa[xa]xa^xa_xacxagxahxamxaoxaqxarxasxau$_Xyxa!Sxa!Txa!Uxa!Wxa!bxa!fxa!oxa!vxa#Rxa#jxa#lxa#mxa#nxa$fxa$gxa$hxa$ixa$uxa#|xawxadxa#{xaaxa#Qxaexakxa~OZUOw$bP~P!|Ow#|O~P6aO#|$OO!f$bXw$bX~P6aO!f$QO~O#lQO#mQOw$rP~OZ#`O[#`O]#`O^#`O#k!zO#x#`O#y#`O~O$Y#VX~P?qO$Y$YO~O#|$ZO#Q$tX~O#Q$]O~Od$^O~P6aO#|$`Ok$QX~Ok$bO~O!V$cO~O!S$dO~O#{$eO~P6aOT!wac!wag!wah!wa!S!wa!T!wa!U!wa!W!wa!b!wa!f!wa!o!wa!v!wa#R!wa#j!wa#l!wa#m!wa#n!wa$f!wa$g!wa$h!wa$i!wa$u!wa~P$yO#|#]O#j$Saw$Sa~OZ#`O[#`O]#`O^#`O#lQO#mQO#x#`O#y#`O~O_Wa$YWawWa#|Wa~PC_O#|#eOa#va~OZ!^O[!^O]!_O^!_Oy!`O{!mO!h!fO#x!dO_pimpiopiqpirpispiu$_X!fpi#jpi~OTpicpigpihpi!Spi!Tpi!Upi!Wpi!bpi!opi!vpi#Rpi#lpi#mpi#npi$fpi$gpi$hpi$ipi$upi~PDcOy!`O{!mO!h!fO#x!dOTxiZxi[xi_xicxigxihximxioxiqxirxisxiu$_X!Sxi!Txi!Uxi!Wxi!bxi!fxi!oxi!vxi#Rxi#jxi#lxi#mxi#nxi$fxi$gxi$hxi$ixi$uxi~O]!_O^!_O~PF|O]xi^xi~PF|O{!mO!h!fO#x!dOZxi[xi]xi^xi_ximxioxiqxirxisxiu$_X!fxi#jxi#|xiwxidxi#{xiaxi#Qxiexikxi~OTxicxigxihxiyxi!Sxi!Txi!Uxi!Wxi!bxi!oxi!vxi#Rxi#lxi#mxi#nxi$fxi$gxi$hxi$ixi$uxi~PIqO!f$oO~P6aOZ!^O[!^O]!_O^!_O_!lOo!jOq!]Or!]Os!kOy!`O{!mO!h!fO#x!dOu$_X~OTlicliglihlimli!Sli!Tli!Uli!Wli!bli!fli!oli!vli#Rli#jli#lli#mli#nli$fli$gli$hli$ili$uli~PL{OZ!^O[!^O]!_O^!_O_!lOq!]Or!]Os!kOy!`O{!mO!h!fO#x!dOu$_X~OTnicnignihnimnioni!Sni!Tni!Uni!Wni!bni!fni!oni!vni#Rni#jni#lni#mni#nni$fni$gni$hni$ini$uni~P! fOZ!^O[!^O]!_O^!_O_&wOm&uOq&qOr&qOs'gOy!`O{!mO!h!fO#x!dOu$_X~Oo$pO~P!$POTsOZUO[TOctOgvOhvOr&pOueO!S{O!T{O!UxO!WzO!b!OO!fdO!hfO!oyO!viO#RmO#lQO#mQO$f[O$g]O$h^O$i_O~P,ZO!R$tO!U$uO!W$vO!Z$wO!^$xO!b$yO#lQO#mQO~OZ#aX[#aX]#aX^#aX_#aXm#aXo#aXq#aXr#aXs#aXu#aXw#aXy#aX{#aX!h#aX#l#aX#m#aX#n#aX#x#aX#|#aX~P8mO$Y${O~O#|$|Ow$aX~Ow%OO~O#|$OO!f$baw$ba~O$Y%ROw!}X#|!}X~O#|%SOw$rX~Ow%UO~O$Y#Va~P?qO#k!zO$g]O~O#|$ZO#Q$ta~O#|$`Ok$Qa~O!T%`O~Ow!TO~O#{%bOa`X#|`X~P6aOTSqcSqgSqhSq!SSq!TSq!USq!WSq!bSq!fSq!oSq!vSq#RSq#jSq#lSq#mSq#nSq$fSq$gSq$hSq$iSq$uSq~P$yOw%dO~O#x%eOT!OXZ!OX[!OX]!OX^!OX_!OXc!OXg!OXh!OXm!OXo!OXq!OXr!OXs!OXu!OXy!OX{!OX!S!OX!T!OX!U!OX!W!OX!b!OX!f!OX!h!OX!o!OX!v!OX#R!OX#j!OX#l!OX#m!OX#n!OX$f!OX$g!OX$h!OX$i!OX$u!OX#|!OXw!OXd!OX#{!OXa!OX#Q!OXe!OXk!OX~Oo%gO~Oo%hO~Oo%iO~O![%jO~O![%kO~O![%lO~O#|$|Ow$aa~O!f#fa#|#faw#fa~P6aO#|%SOw$ra~O#O%uO~P`O#Q#Ti#|#Ti~P6aOe%vO~P6aOk$Ri#|$Ri~P6aOTfqcfqgfqhfq!Sfq!Tfq!Ufq!Wfq!bfq!ffq!ofq!vfq#Rfq#jfq#lfq#mfq#nfq$ffq$gfq$hfq$ifq$ufq~P$yOZ!^O[!^O]!_O^!_O_&wOm&uOo&vOq&qOr&qOs'gOy!`O{!mO#x!dOu$_X~Ow%xO!f%xO!h%wO~P!3YOZ!^O[!^O]!_O^!_Oy!`O{!mO!h!fO#x!dO_pympyopyqpyrpyspyu$_X!fpy#jpy~OTpycpygpyhpy!Spy!Tpy!Upy!Wpy!bpy!opy!vpy#Rpy#lpy#mpy#npy$fpy$gpy$hpy$ipy$upy~P!4eO#x%eOT!OaZ!Oa[!Oa]!Oa^!Oa_!Oac!Oag!Oah!Oam!Oao!Oaq!Oar!Oas!Oau!Oay!Oa{!Oa!S!Oa!T!Oa!U!Oa!W!Oa!b!Oa!f!Oa!h!Oa!o!Oa!v!Oa#R!Oa#j!Oa#l!Oa#m!Oa#n!Oa$f!Oa$g!Oa$h!Oa$i!Oa$u!Oa#|!Oaw!Oad!Oa#{!Oaa!Oa#Q!Oae!Oak!Oa~O!S%}O~O!V%}O~O!S&OO~O!R$tO!U$uO!W$vO!Z$wO!^$xO!b'oO#lQO#mQO~O!X$ZP~P!:^Ow!li#|!li~P6aOT#PXc#PXg#PXh#PX!S#PX!T#PX!U#PX!W#PX!b#PX!f#PX!o#PX!v#PX#R#PX#j#PX#l#PX#m#PX#n#PX$f#PX$g#PX$h#PX$i#PX$u#PX~P$yOT$^XZ$^X[$^X]$kX^$kX_$kXc$^Xg$^Xh$^Xm$kXo$kXq$kXr$^Xs$kXu$^Xy$kX{$kX!S$^X!T$^X!U$^X!W$^X!b$^X!f$^X!h$^X!o$^X!v$^X#R$^X#j$kX#l$^X#m$^X#n$kX#x$kX$f$^X$g$^X$h$^X$i$^X$u$kX#|$kXw$kXd$kX#{$kXa$kX#Q$kXe$kXk$kX~Oa`i#|`i~P6aO!T&^O~O#lQO#mQO!X!PX#x!PX#|!PX~O#x'VO!X!OX#|!OX~O!X&`O~O$Y&aO~O#|&bO!X$XX~O!X&dO~O#|&eO!X$ZX~O!X&gO~OTb!Rcb!Rgb!Rhb!R!Sb!R!Tb!R!Ub!R!Wb!R!bb!R!fb!R!ob!R!vb!R#Rb!R#jb!R#lb!R#mb!R#nb!R$fb!R$gb!R$hb!R$ib!R$ub!R~P$yO#x'VO!X!Oa#|!Oa~O#|&bO!X$Xa~O#|&eO!X$Za~O$[&mO~O#|#tXw#tXd#tX#{#tXa#tX#Q#tXe#tXk#tX~P2zOTsOZUO[TOctOgvOhvOr&pO!S{O!T{O!UxO!WzO!b!OO!fdO!hfO!oyO!viO#RmO#lQO#mQO$f[O$g]O$h^O$i_O~Ou#rO~P!D]O#j!wa#|!waw!wa!f!wad!wa#{!waa!wa#Q!wae!wak!wa~P6aO#|piwpidpi#{piapi#Qpiepikpi~PDcOy!`O{!mO!h!fO#x!dOZxi[xi_ximxioxiqxirxisxiu$_X#jxi#|xiwxi!fxidxi#{xiaxi#Qxiexikxi~O]!_O^!_O~P!G_Oy!`O~PIqOZ!^O[!^O]!_O^!_O_&wOo&vOq&qOr&qOs'gOy!`O{!mO!h!fO#x!dOu$_X~Omli#jli#|liwli!flidli#{liali#Qlielikli~P!IZOZ!^O[!^O]!_O^!_O_&wOq&qOr&qOs'gOy!`O{!mO!h!fO#x!dOu$_X~Omnioni#jni#|niwni!fnidni#{niani#Qnienikni~P!KOO#jSq#|SqwSq!fSqdSq#{SqaSq#QSqeSqkSq~P6aOZUO#O'XO~P!|O#jfq#|fqwfq!ffqdfq#{fqafq#Qfqefqkfq~P6aO#|pywpydpy#{pyapy#Qpyepykpy~P!4eO#j#PX#|#PXw#PX!f#PXd#PX#{#PXa#PX#Q#PXe#PXk#PX~P6aO#jb!R#|b!Rwb!R!fb!Rdb!R#{b!Rab!R#Qb!Reb!Rkb!R~P6aOTtXctXgtXhtX!StX!TtX!UtX!WtX!btX!ftX!otX!vtX#RtX#jtX#ltX#mtX#ntX$ftX$gtX$htX$itX$utX~P$yOk'PO~Oo'RO~P!$POw'SO~Oe'YO~P6aO$['[O~O!X'dO~Ou'hO~Od'iO~P6aO!['mO~O",goto:"!$f$uPPPP$vP&Q&W&_&t(sPPPPP(|P$vPPP$vPP)P)VP$vP$vP$vPPP)^P)jP$vP$vPP)s*Y*e*YPPPPPPP*YPP*YP,V,Y*YP,`,f$vP$vP$v,m-w-z.Q-wP.Z/e.Z.Z0v2QP$v3[$v4f4f5p5vP5}PP4f6V6]0r6aP6iP6l6r6y7P7V7]8y9T9Z9a9g9m9s9yPPPPPPPP:P:T=X>c?o?sPP?xPP@O@UAbBnBrBwB|CxDvEvGSPGVPGZHZIZJeJkJn$vJtJtPPPPLOMYM]Ng=XNj! t! w!#T!#X!$c#aiOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nQ![RR'_'eS!YR'eR$l#eU!WR#e'eU#Sw$`'fY#v!q!y$|%S'hT&S%k&b#zWOPVXhkru|}!]!a!b!c!e!g!i!j!k!l#]#_#c#g#r#t$O$Y$^$_$b$e$p${%R%U%b%e%j%l%u%v&P&a&e&m&p&q&r&s&t&u&v&w&y'P'R'S'V'X'Y'[']'g'i'm'nh!VRw!y#e$`$|%S%k&b'e'f'hU#a!V#b#uR#u!qU#a!V#b#uT$W!{$XR$k#cQ#WwR'`'fS#Uw'fR%]$`U!QP#_#rS#s!l&wR$f#]Q!TPQ$h#_R$q#rQ$z#tQ%p%RQ&R%jU&W%l&e'mQ&h&aT&n&m'[c$s#t%R%j%l&a&e&m'['mrjOVr}!]!a!b!c!i!j!l#g$b$p%U%u%vQ#m!eU$r#t%R&mS%{%e'V[&Q%j%l&a&e'['m!m&oPhku|!g!k!q#]#_#c#r$O$Y$^$_$e${%b&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR&V%kQ&T%kR&i&bQ&Z%lR'j'mS&X%l'mR&k&e#aYOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR#{!qQ#x!qR%n$|S#w!q$|V$S!y%S'h#abOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'n#`bOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nQ!s_T!|n$Z#a`OPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'n#aaOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'n#agOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'n#aoOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nQ$V!yR'b'hS$T!y'hR%q%SS%t%U'ST&[%u'XQ#OnR%X$ZT!}n$ZS!{n$ZT$W!{$XR!TPQrOR#QrS#b!V#uR$i#bQ#f!YR$m#fQ$a#UR%^$aQ#^!QR$g#^#jXOPVhkru|}!]!a!b!c!e!g!i!j!k!l!q#]#_#c#g#r#t$O$Y$^$_$b$e$p${%R%U%b%e%u%v&m&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nS!pX&P_&P%j%l&a&e'V'['mQ%f$rS%|%f&_R&_&QQ&c&TR&j&cQ&f&XR&l&fQ$}#xR%o$}Q$P!wR%Q$PQ%T$TR%r%TQ$X!{R%V$XQ$[#OR%Y$[TqOrSSOrY!PP#]#_#r&wS!oV']Q!uhS!wk!qQ#RuQ#Z|Q#[}Q#i!]Q#j!aQ#k!bS#l!c&tQ#n!gQ#o!iQ#p!jQ#q!kQ$j#cQ$n#gQ%P$OQ%W$YQ%Z$^Q%[$_Q%_$bQ%a$eQ%c$pQ%m${S%s%U%uQ%z%bQ&]%vQ&x&pQ&z&qQ&{&rQ&|&sQ&}&uQ'O&vQ'Q&yQ'T'PQ'U'RS'W'S'XQ'Z'YQ'^!lQ'a'gQ'c'iR'l'n#apOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nrROVr}!]!a!b!c!i!j!l#g$b$p%U%u%v!m'ePhku|!g!k!q#]#_#c#r$O$Y$^$_$e${%b&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nT!ZR'eV!XR#e'eQ#c!WR$_#SQ#g![R&y'_ruOVr}!]!a!b!c!i!j!l#g$b$p%U%u%v!m'nPhku|!g!k!q#]#_#c#r$O$Y$^$_$e${%b&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nrwOVr}!]!a!b!c!i!j!l#g$b$p%U%u%v!m'fPhku|!g!k!q#]#_#c#r$O$Y$^$_$e${%b&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nT#Vw'fV#Tw$`'fV!RP#_#rf!aS#[#i#o#p$n%_%c%s&]'^!X&r!P!u!w#R#Z#n#q$j%P%W%Z%[%a%m%z&x&z&}'O'Q'T'U'W'Z'a'c'lh!bS#[#i#j#o#p$n%_%c%s&]'^!Z&s!P!u!w#R#Z#n#q$j%P%W%Z%[%a%m%z&x&z&{&}'O'Q'T'U'W'Z'a'c'lj!cS#[#i#j#k#o#p$n%_%c%s&]'^!]&t!P!u!w#R#Z#n#q$j%P%W%Z%[%a%m%z&x&z&{&|&}'O'Q'T'U'W'Z'a'c'lrVOVr}!]!a!b!c!i!j!l#g$b$p%U%u%v!m']Phku|!g!k!q#]#_#c#r$O$Y$^$_$e${%b&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR&U%kT&Y%l'm!{!eS!P!o!u!w#R#Z#[#i#j#k#l#n#o#p#q$j$n%P%W%Z%[%_%a%c%m%s%z&]&x&z&{&|&}'O'Q'T'U'W'Z'^'a'c'l!{!gS!P!o!u!w#R#Z#[#i#j#k#l#n#o#p#q$j$n%P%W%Z%[%_%a%c%m%s%z&]&x&z&{&|&}'O'Q'T'U'W'Z'^'a'c'l#aZOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nQ!rZR!t`R#y!qQ!xkR#z!q#acOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'n#a|OPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR%y%a#ahOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR#}!u#akOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR$R!xrlOVr}!]!a!b!c!i!j!l#g$b$p%U%u%v!m'kPhku|!g!k!q#]#_#c#r$O$Y$^$_$e${%b&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nT$U!y'h#anOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR#Pn",nodeNames:"⚠ LineComment BlockComment Expressions ForExpression for InExpressions InExpression Name Identifier Identifier ArithOp ArithOp ArithOp ArithOp in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between PositiveUnaryTest ( PositiveUnaryTests ) ArithmeticExpression ArithOp InstanceOfExpression instance of Type QualifiedName VariableName SpecialType days time duration years months date > ListType list < ContextType context ContextEntryTypes ContextEntryType FunctionType function ArgumentTypes ArgumentType PathExpression ] FilterExpression [ FunctionInvocation SpecialFunctionName NamedParameters NamedParameter ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral DateTimeConstructor AtLiteral ? SimplePositiveUnaryTest Interval ParenthesizedExpression List FunctionDefinition FormalParameters FormalParameter external FunctionBody } { Context ContextEntry Key Name Identifier UnaryTests Wildcard not",maxTerm:175,context:NB,nodeProps:[["group",-17,4,18,22,28,30,32,40,42,67,69,71,84,85,87,88,89,96,"Expression",47,"Expression Expression",-5,77,78,79,80,81,"Expression Literal"],["closedBy",37,")",70,"]",95,"}"],["openedBy",39,"(",68,"[",94,"{"]],propSources:[QB],skippedNodes:[0,1,2],repeatNodeCount:14,tokenData:"+l~RuXY#fYZ$ZZ[#f]^$Zpq#fqr$`rs$kwx&cxy&hyz&mz{&r{|'P|}'U}!O'Z!O!P'h!P!Q(Q!Q![){![!]*^!]!^*c!^!_*h!_!`$f!`!a*w!b!c+R!}#O+W#P#Q+]#Q#R&z#o#p+b#q#r+g$f$g#f#BY#BZ#f$IS$I_#f$I|$I}$Z$I}$JO$Z$JT$JU#f$KV$KW#f&FU&FV#f?HT?HU#f~#kY#p~XY#fZ[#fpq#f$f$g#f#BY#BZ#f$IS$I_#f$JT$JU#f$KV$KW#f&FU&FV#f?HT?HU#f~$`O#q~~$cP!_!`$f~$kOq~~$pW$g~OY$kZr$krs%Ys#O$k#O#P%_#P;'S$k;'S;=`&]<%lO$k~%_O$g~~%bRO;'S$k;'S;=`%k;=`O$k~%pX$g~OY$kZr$krs%Ys#O$k#O#P%_#P;'S$k;'S;=`&];=`<%l$k<%lO$k~&`P;=`<%l$k~&hO#y~~&mOu~~&rOw~~&wP^~z{&z~'POy~~'UO[~~'ZO#|~R'`PZP!`!a'cQ'hO$[Q~'mQ#x~!O!P's!Q!['x~'xO#{~~'}P$f~!Q!['x~(VQ]~z{(]!P!Q)d~(`TOz(]z{(o{;'S(];'S;=`)^<%lO(]~(rVOz(]z{(o{!P(]!P!Q)X!Q;'S(];'S;=`)^<%lO(]~)^OQ~~)aP;=`<%l(]~)iSP~OY)dZ;'S)d;'S;=`)u<%lO)d~)xP;=`<%l)d~*QQ$f~!O!P*W!Q![){~*ZP!Q!['x~*cO$Y~~*hO$u~R*oP![QrP!_!`*rP*wOrPR+OP!XQrP!_!`*r~+WO$i~~+]O!h~~+bO!f~~+gO#R~~+lO#Q~",tokenizers:[TB,SB,$B,0,1],topRules:{Expressions:[0,3],UnaryTests:[1,101]},dynamicPrecedences:{30:-1,71:-1,73:-1,126:-1},specialized:[{term:120,get:e=>XB[e]||-1}],tokenPrec:0}),LB=120,VB=121,FB=126,UB=7,HB=8,YB=9,WB=10,GB=137,ZB=18,KB=26,JB=36,eN=143,tN=144,nN=145,iN=146,rN=47,oN=69,sN=71,aN=75,lN=158,cN=78,pN=79,uN=80,hN=96,dN=97,fN=99,mN=100,gN="undefined"!=typeof process&&process.env&&/\bfparse(:dbg)?\b/.test(process.env.LOG),yN="undefined"!=typeof process&&process.env&&/\bfparse:dbg\b/.test(process.env.LOG),vN="undefined"!=typeof process&&process.env&&/\bcontext\b/.test(process.env.LOG),bN=[9,11,12,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],ON=wN("\n\r"),xN=wN("'./-+*");function wN(e){return Array.from(e).map((e=>e.charCodeAt(0)))}function _N(e){return e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}function EN(e){return bN.includes(e)}function PN(e,t){return t.concat(e.split(/\n/g).join("\n"+t))}function kN(e,t=0){const n=e.peek(t);return i=n,xN.includes(i)?{offset:1,token:String.fromCharCode(n)}:null;var i}function SN(e,t=0,n=!1){for(let r=!1,o=[],s=0;;s++){const a=e.peek(t+s);if(!(63===(i=a)||95===i||i>=65&&i<=90||i>=97&&i<=122||i>=161&&!_N(i)&&!EN(i)||(r||n)&&_N(a)))return o.length?{token:String.fromCharCode(...o),offset:s}:null;r||(r=!0),o.push(a)}var i}function TN(e,t){for(let n=!1,i=0;;i++){if(!EN(e.peek(t+i)))return n?{token:" ",offset:i}:null;n||(n=!0)}}const $N={[LB]:"identifier",[VB]:"nameIdentifier"},CN=new xE(((e,t)=>{yN&&console.log("%s: T <identifier | nameIdentifier>",e.pos);const n=function(e,t){const n=t.contextKeys(),i=t.tokens;for(let t=0,r=[],o=null;;){const s=i.length+r.length>0,a=r.length>0,l=SN(e,t,s)||s&&kN(e,t)||a&&TN(e,t);if(!l)return o;const{token:c,offset:p}=l;if(t+=p," "===c)continue;r=[...r,c];const u=[...i,...r].join(" ");if(n.some((e=>e===u))){const e=r[0];o={token:e,offset:e.length,term:VB}}if(BN.some((e=>e===u))){const e=r[0];o={token:e,offset:e.length,term:LB}}if(!n.some((e=>e.startsWith(u)))&&!BN.some((e=>e.startsWith(u))))return o}}(e,t.context),i=t.context.tokens,r=n||SN(e,0,i.length>0);r&&(e.advance(r.offset),e.acceptToken(n?n.term:LB),gN&&console.log("%s: MATCH <%s> <%s>",e.pos,n?$N[n.term]:"identifier",r.token))}),{contextual:!0}),MN=new xE(((e,t)=>{yN&&console.log("%s: T <propertyIdentifier>",e.pos);const n=SN(e,0,t.context.tokens.length>0);n&&(e.advance(n.offset),e.acceptToken(119),gN&&console.log("%s: MATCH <propertyIdentifier> <%s>",e.pos,n.token))})),AN=new xE(((e,t)=>{let n;yN&&console.log("%s: T <insertSemi>",e.pos);let i=!1;for(n=0;;n++){const t=e.peek(n);if(!bN.includes(t)){ON.includes(t)&&(i=!0);break}}if(i){const t=SN(e,n+1);if(TN(e,n+1)||t&&/^(then|else|return|satisfies)$/.test(t.token))return;gN&&console.log("%s: MATCH <insertSemi>",e.pos),e.acceptToken(122)}})),RN={153:"FunctionInvocation",152:"FilterExpression",151:"PathExpression"},DN={167:"Context",165:"FunctionDefinition",129:"ForExpression",138:"IfExpression",139:"QuantifiedExpression"},jN={[hN]:"Context",89:"FunctionDefinition",4:"ForExpression",[ZB]:"IfExpression",22:"QuantifiedExpression",67:"PathExpression",[sN]:"FunctionInvocation",[oN]:"FilterExpression",40:"ArithmeticExpression"};let qN=class e{constructor(e){this.fn=e}get(e){return this.fn(e)}static of(t){return new e(t)}};const BN=Object.keys({"date and time":1,date:1,time:1,duration:1});let NN=class e{constructor({name:e="Expressions",tokens:t=[],children:n=[],parent:i=null,context:r={},value:o,raw:s}={}){this.name=e,this.tokens=t,this.children=n,this.parent=i,this.context=r,this.value=o,this.raw=s}enterScope(e){const t=this.of({name:e,parent:this});return vN&&console.log("[%s] enter",t.path,t.context),t}exitScope(e){return this.parent?(vN&&console.log("[%s] exit %o\n%s",this.path,this.context,PN(e," ")),this.parent.pushChild(this)):(vN&&console.log("[%s] NO exit %o\n%s",this.path,this.context,PN(e," ")),this)}token(e){return vN&&console.log("[%s] token <%s> + <%s>",this.path,this.tokens.join(" "),e),this.assign({tokens:[...this.tokens,e]})}literal(e){return vN&&console.log("[%s] literal %o",this.path,e),this.pushChild(this.of({name:"Literal",value:e}))}computedValue(){for(let e=this;;e=e.children.slice(-1)[0]){if(!e)return null;if(e.value)return e.value}}contextKeys(){return Object.keys(this.context).map(zN)}get path(){return this.parent?.path?.concat(" > ",this.name)||this.name}get(e){const t=[e,e&&zN(e)],n=Object.keys(this.context).find((e=>t.includes(zN(e))));if(void 0===n)return;const i=this.context[n];return i instanceof qN?i.get(this):i}resolveName(){const e=this.tokens.join(" "),t=this.assign({tokens:[]}),n=this.of({name:"VariableName",parent:t,value:this.get(e),raw:e});return vN&&console.log("[%s] resolve name <%s=%s>",n.path,e,this.get(e)),t.pushChild(n)}pushChild(e){if(!e)return this;const t=this.assign({children:[...this.children,e]});return e.parent=t,t}pushChildren(e){let t=this;for(const n of e)t=t.pushChild(n);return t}declareName(){if(0===this.tokens.length)throw Error("no tokens to declare name");const e=this.tokens.join(" ");return vN&&console.log("[%s] declareName <%s>",this.path,e),this.assign({tokens:[]}).pushChild(this.of({name:"Name",value:e}))}define(e,t){if("string"!=typeof e)return vN&&console.log("[%s] no define <%s=%s>",this.path,e,t),this;vN&&console.log("[%s] define <%s=%s>",this.path,e,t);const n={...this.context,[e]:t};return this.assign({context:n})}assign(t={}){return e.of({...this,...t})}of(t={}){const n={context:this.context,parent:this.parent};return e.of({...n,...t})}static of(t){const{name:n,tokens:i=[],children:r=[],parent:o=null,context:s={},value:a,raw:l}=t;return new e({name:n,tokens:[...i],children:[...r],context:{...s},parent:o,value:a,raw:l})}};function zN(e){return e.replace(/\s*([./\-'+*])\s*/g," $1 ").replace(/\s{2,}/g," ").trim()}function QN(e,t,n){const i=e.children.filter((e=>e.name!==t)),r=e.children.filter((e=>e.name===t)),o=i[0],s=i[Math.max(1,i.length-1)],a=o.computedValue(),l=s?.computedValue()||null;return e.assign({children:r}).enterScope(t).pushChildren(i).exitScope(n).define(a,l)}const XN=function(e={}){const t=NN.of({context:e});return new DE({start:t,reduce(e,t,n,i){if(t===hN&&(e=e.assign({value:e.context})),t===ZB){const[t,n]=e.children.slice(-2);e=e.assign({value:{...t?.computedValue(),...n?.computedValue()}})}if(t===oN){const[t,n]=e.children.slice(-2);e=e.assign({value:t?.computedValue()})}if(t===sN){const[t,...n]=e.children;"get value"===t?.raw&&(e=function(e,t){if(!t.length)return e.assign({value:null});"Name"===t[0].name&&(t=function(e,t){const n={};for(let t=0;t<e.length;t+=2){const[i,r]=e.slice(t,t+2);n[i.value]=r}return t.map((e=>n[e]))}(t,["m","key"]));if(2!==t.length)return e.assign({value:null});const[n,i]=t,r=i?.computedValue(),o=n?.computedValue();if(!o||"object"!=typeof o||"string"!=typeof r)return e.assign({value:null});return e.assign({value:[zN(r),r].reduce(((e,t)=>t in o?o[t]:e),null)})}(e,n))}const r=DN[t];if(r)return e.enterScope(r);const o=RN[t];if(o){const t=e.children.slice(0,-1),n=e.children.slice(-1)[0];return e.assign({children:t}).enterScope(o).pushChild(n).assign({context:{...e.context,...n?.computedValue()}})}const s=i.read(i.pos,n.pos);if(jN[t])return e.exitScope(s);if(t===dN)return QN(e,"ContextEntry",s);if(t===UB||t===KB)return QN(e,"InExpression",s);if(t===GB)return e.define("partial",qN.of((e=>e.children[e.children.length-1]?.computedValue())));if(t===aN){const[t]=e.children.slice(-1),n=t.computedValue();return e.define(n,1)}if(t===eN||t===tN||t===nN){const t=e.children.slice(0,-1),n=e.children.slice(-1)[0];return e.assign({children:t}).enterScope("ArithmeticExpression").pushChild(n)}if(t===iN)return e.enterScope("ArithmeticExpression");if(t===YB||t===WB||t===mN)return e.token(s);if(t===pN)return e.literal(s.replace(/^"|"$/g,""));if(t===uN)return e.literal("true"===s);if(t===cN)return e.literal(parseFloat(s));if(t===lN)return e.literal(null);if(t===rN)return e.resolveName();if(t===HB||t===fN)return e.declareName();if((t===FB||t===JB)&&e.tokens.length>0)throw new Error("uncleared name");if(t===FB){let t=e;for(;t.parent;)t=t.exitScope(s);return t}return e}})}({});const IN=IE({StringLiteral:cP.string,NumericLiteral:cP.number,BooleanLiteral:cP.bool,"AtLiteral!":cP.special(cP.string),CompareOp:cP.compareOperator,ArithOp:cP.arithmeticOperator,"for if then else some every satisfies between return":cP.controlKeyword,"in instance of and or":cP.operatorKeyword,function:cP.definitionKeyword,as:cP.keyword,"Type/...":cP.typeName,Wildcard:cP.special,null:cP.null,LineComment:cP.lineComment,BlockComment:cP.blockComment,'VariableName! "?"':cP.variableName,"DateTimeConstructor! SpecialFunctionName!":cP.function(cP.special(cP.variableName)),"List Interval":cP.list,Context:cP.definition(cP.literal),"Name!":cP.definition(cP.variableName),"Key/Name! ContextEntryType/Name!":cP.definition(cP.propertyName),"PathExpression/VariableName!":cP.function(cP.propertyName),"FormalParameter/ParameterName!":cP.function(cP.definition(cP.variableName)),"( )":cP.paren,"[ ]":cP.squareBracket,"{ }":cP.brace,".":cP.derefOperator,", ;":cP.separator,"..":cP.punctuation}),LN={__proto__:null,for:10,in:30,return:34,if:38,then:40,else:42,some:46,every:48,satisfies:55,or:58,and:62,between:70,instance:86,of:89,days:99,time:101,duration:103,years:105,months:107,date:109,list:115,context:121,function:128,null:154,true:324,false:324,"?":168,external:184,not:207},VN=jE.deserialize({version:14,states:"!%SO`QYOOO$gQYOOOOQU'#Ce'#CeO$qQYO'#C`O%zQ^O'#FOOOQQ'#Fd'#FdO'dQYO'#FdO`QYO'#DUOOQU'#Em'#EmO)QQ^O'#D]OOQO'#Fk'#FkO,PQWO'#DuOOQU'#D|'#D|OOQU'#D}'#D}OOQU'#EO'#EOO,UOWO'#ERO,PQWO'#EPOOQU'#EP'#EPOOQU'#Fq'#FqOOQU'#Fo'#FoOOQU'#ET'#ETO,ZQYO'#EVOOQU'#FQ'#FQO-oQ^O'#FQO/RQYO'#EWO/]QWO'#EXOOQP'#Fy'#FyO/bQXO'#E`OOQU'#Fv'#FvOOQU'#FP'#FPOOQQ'#Eh'#EhQ`QYOOOOQQ'#FR'#FROOQQ'#F['#F[O,ZQYO'#CnOOQQ'#F]'#F]O$qQYO'#CrO/mQYO'#DvOOQU'#Fp'#FpO/rQYO'#EQOOQO'#EQ'#EQO,ZQYO'#EUO`QYO'#ETOOQO'#Fw'#FwO1UQYO'#DQO1lQWO'#F`OOQO'#DS'#DSO1wQYO'#FdQOQWOOO2OQWOOO2rQYO'#CdO3PQYO'#FTOOQQ'#Cc'#CcO3UQYO'#FSOOQQ'#Cb'#CbO3^QYO,58zO`QYO,59hOOQQ'#Fa'#FaOOQQ'#Fb'#FbOOQQ'#Fc'#FcO`QYO,59pO`QYO,59pO`QYO,59pOOQQ'#Fi'#FiO$qQYO,5:]OOQQ'#Fj'#FjO,ZQYO,5:_OOQQ,5;j,5;jO`QYO,59dO`QYO,59fO,ZQYO,59hO4|QYO,59hO5TQYO,59rOOQU,5:h,5:hO5YQ^O,59pOOQU-E8k-E8kO8XQYO'#FlOOQU,5:a,5:aOOQU,5:m,5:mOOQU,5:k,5:kO8cQYO,5:qOOQU,5;l,5;lO:nQYO,5:pO:xQWO,5:rO:}QYO,5:sOOQP'#Ed'#EdO;qQXO'#EcOOQO'#Eb'#EbO;xQWO'#EaO;}QWO'#FzO<VQWO,5:zOOQQ-E8f-E8fO=]QYO,59YO3PQYO'#F_OOQQ'#Cv'#CvO=dQYO'#F^OOQQ'#Cu'#CuO=lQYO,59^O=qQYO,5:bO=vQYO,5:lO9jQYO,5:pO={Q^O,5:oO,ZQYO'#ElO?eQWO,5;zO,ZQYOOOOQR'#Cf'#CfOOQQ'#Ei'#EiO@[QYO,59OO,ZQYO,5;oOOQQ'#FW'#FWO$qQYO'#EjO@lQYO,5;nO`QYO1G.fOOQQ'#FZ'#FZO@tQ^O1G/SOCZQ^O1G/[OEpQ^O1G/[OJlQ^O1G/[OOQU1G/w1G/wOKYQYO1G/yOMgQ^O1G/OO!!TQ^O1G/QO!#cQYO1G/SO,ZQYO1G/SOOQU1G/S1G/SO!#jQYO1G/^O!$UQ^O'#CdO!%hQYO'#FnOOQO'#Dy'#DyO!%rQWO'#DxO!%wQWO'#FmOOQO'#Dw'#DwOOQO'#Dz'#DzO!&PQWO,5<WOOQU1G0]1G0]O,ZQYO1G0[O,ZQYO'#ErO!&UQWO,5<YOOQU1G0^1G0^O!&aQWO'#EZO!&lQWO'#FxOOQO'#EY'#EYO!&tQWO1G0_OOQP'#Et'#EtO!&yQXO,5:}O,ZQYO,5:{O!'QQXO'#EuO!'YQWO,5<fOOQU1G0f1G0fO!'bQYO1G.tO,ZQYO,5;yO$qQYO'#EkO!)OQYO,5;xO`QYO1G.xO!)WQYO1G/|OOQO1G0W1G0WOOQO,5;W,5;WOOQO-E8j-E8jO!)]QWOOOOQQ-E8g-E8gO!)bQYO'#ClOOQQ1G1Z1G1ZOOQQ,5;U,5;UOOQQ-E8h-E8hO!)oQ^O7+$QOOQU7+%e7+%eO`QYO7+$nO!+XQYO,5:qO!+`QWO7+$nO!+eQ^O'#D[OOQU'#DZ'#DZO!.dQYO'#D^O!.iQYO'#D^O!.nQYO'#D^O!.sQ`O'#DfO!.xQ`O'#DiO!.}Q`O'#DmOOQU7+$x7+$xO,ZQYO,5:dO$qQYO'#EqO!/SQWO,5<XOOQU1G1r1G1rO!0YQYO7+%vO!0gQYO,5;^OOQO-E8p-E8pO!#jQYO,5:uO$qQYO'#EsO!0tQWO,5<dO!0|QYO7+%yOOQP-E8r-E8rO!1TQYO1G0gOOQO,5;a,5;aOOQO-E8s-E8sO!3tQ^O7+$`O!3{QYO1G1eOOQQ,5;V,5;VOOQQ-E8i-E8iO!4VQ^O7+$dOOQO7+%h7+%hO,ZQYO,59WO!5oQ^O<<HYOOQU<<HY<<HYO$qQYO'#EnO!8UQ^O,59vO!;TQYO,59xO!;YQYO,59xO!;_QYO,59xO!;dQYO,5:QO$qQYO,5:TO!<OQbO,5:XO!<VQYO1G0OOOQO,5;],5;]OOQO-E8o-E8oO!<aQ^O<<IbOOQU<<Ib<<IbOOQO1G0a1G0aOOQO,5;_,5;_OOQO-E8q-E8qO!?`Q^O'#E]OOQU<<Ie<<IeO`QYO<<IeO`QYO<<GzO!@xQYO1G.rOOQU,5;Y,5;YOOQU-E8l-E8lO!ASQYO1G/dOOQU1G/d1G/dO!AXQbO'#D]O!AjQ`O'#D[O!AuQ`O1G/lO!AzQWO'#DlO!BPQ`O'#FeOOQO'#Dk'#DkO!BXQ`O1G/oOOQO'#Dp'#DpO!B^Q`O'#FgOOQO'#Do'#DoO!BfQ`O1G/sOOQUAN?PAN?PO!BkQ^OAN=fOOQU7+%O7+%OO!DTQ`O,59vOOQU7+%W7+%WO!;dQYO,5:WO$qQYO'#EoO!D`Q`O,5<POOQU7+%Z7+%ZO!;dQYO'#EpO!DhQ`O,5<RO!DpQ`O7+%_OOQO1G/r1G/rOOQO,5;Z,5;ZOOQO-E8m-E8mOOQO,5;[,5;[OOQO-E8n-E8nO!#jQYO<<HyOOQUAN>eAN>eO!DuQ^O'#FQO,ZQYO'#ETO,ZQYO,59hO,ZQYO,59pO,ZQYO,59pO,ZQYO,59pO,ZQYO,59dO,ZQYO,59fO!FyQYO,59hO!GQQYO,5:oO,ZQYO1G.fO!GqQYO1G/SO!I_QYO1G/[O!J{QYO1G/[O!MvQYO1G/OO# kQYO1G/QO# {QYO1G.tO,ZQYO1G.xO##iQYO7+$QO,ZQYO7+$nO#$YQYO7+%yO#&QQYO7+$`O#&XQYO7+$`O#&`Q^O7+$`O#&gQYO7+$dO#'WQYO<<HYO$qQYO'#EnO#(tQYO'#E]O,ZQYO<<IeO,ZQYO<<GzO#)eQYOAN=fO!;dQYO<<HyO,ZQYO'#DUO#*UQ^O'#DQO3^QYO,58zO#+nQYO,59YO#+uQYO,59^O#+zQYO1G/SO#,RQWO1G0_O!'bQYO1G.tO#,WQ`O7+%_O# {QYO1G.tO$qQYO'#C`O,ZQYO'#CnO$qQYO'#CrO,ZQYO,59hO:}QYO,5:sO#,]QYO,59YO#,dQ`O1G/sO#,iQYO,59YO#,pQWO'#EXO,ZQYO'#CnO!'bQYO'#ETO!'bQYO,59hO!'bQYO,59pO!'bQYO,59pO!'bQYO,59pO!'bQYO,59dO!'bQYO,59fO#.`QYO,59hO#/hQ^O,5:oO!'bQYO1G.fO#1TQ^O1G/SO#1[Q^O1G/[O#1cQ^O1G/[O#1jQ^O1G/OO#2QQ^O1G/QO!'bQYO1G.xO#2eQ^O7+$QO!'bQYO7+$nO#4QQYO7+%yO#4XQ^O7+$dO#5tQ^O<<HYO!<OQbO,5:XO#5{Q^O'#E]O!'bQYO<<IeP!'bQYO<<GzP#7hQ^OAN=fO#8kQ^O'#DQO,ZQYO'#CnO!'bQYO'#DUO3^QYO,58zO#:WQYO,59^O#:]QYO1G/SO#:dQWO1G0_O#:iQ`O'#DmO# {QYO'#ETO# {QYO,59hO# {QYO,59pO# {QYO,59pO# {QYO,59pO# {QYO,59dO# {QYO,59fO#<XQYO,59hO#=aQYO,5:oO# {QYO1G.fO#>TQYO1G/SO#>[QYO1G/[O#>cQYO1G/[O#>jQYO1G/OO#?QQYO1G/QO# {QYO1G.xO#?eQYO7+$QO# {QYO7+$nO#@XQYO7+%yO#@`QYO7+$dO#ASQYO<<HYO#AZQYO'#E]O# {QYO<<IeP# {QYO<<GzP#A}QYOAN=fO# {QYO'#DUO3^QYO,58zO#CQQYO,59^O#CVQYO1G/SO#C^QWO1G0_O$qQYO'#C`O$qQYO'#CrO,ZQYO,59hO:}QYO,5:sO#CcQWO'#EXO$qQYO'#C`O$qQYO'#CrO#ChQYO'#DQO,ZQYO,59hO:}QYO,5:sO#DRQWO'#EX",stateData:"#DW~O#pOS#qOSPOSQOS~OTpOZUO[TOcqOgsOhsOrzOueO!SxO!TxO!UuO!WwO!b{O!fyO!hhO!ovO!vfO#RjO#lQO#mQO$f[O$g]O$h^O$i_O~OTpO[TOcqOgsOhsOr&lOueO!SxO!TxO!UuO!WwO!b{O!fyO!hhO!ovO!vfO#RjO#lQO#mQO$f[O$g]O$h^O$i_O~OZ!PO#Z!RO~P!|O#lQO#mQO~OZ!ZO[!ZO]![O^![O_!iOm!fOo!gOq!YOr!YOs!hOy!]O{!jO!h!cO#x!aOu$_X~O#n!eO$o!eOT#rXc#rXg#rXh#rX!S#rX!T#rX!U#rX!W#rX!b#rX!f#rX!o#rX!v#rX#R#rX#j#rX#l#rX#m#rX$f#rX$g#rX$h#rX$i#rX~P$yO$f!kOT$WXZ$WX[$WXc$WXg$WXh$WXr$WXu$WX!S$WX!T$WX!U$WX!W$WX!b$WX!f$WX!h$WX!o$WX!v$WX#R$WX#l$WX#m$WX$g$WX$h$WX$i$WX~O#lQO#mQOT!PXZ!PX[!PX]!PX^!PX_!PXc!PXg!PXh!PXm!PXo!PXq!PXr!PXs!PXu!PXy!PX{!PX!S!PX!T!PX!U!PX!W!PX!b!PX!f!PX!h!PX!o!PX!v!PX#R!PX#j!PX#n!PX#x!PX$f!PX$g!PX$h!PX$i!PX$o!PX#|!PXw!PX#{!PXd!PXa!PX#Q!PXe!PXk!PX~Ou!nO~O$g]O~OZUO~P!|O#n!sOZ#tX[#tX]#tX^#tX_#tXm#tXo#tXq#tXr#tXs#tXu#tXy#tX{#tX!f#tX!h#tX#j#tX#x#tXe#tX~OT#tXc#tXg#tXh#tX!S#tX!T#tX!U#tX!W#tX!b#tX!o#tX!v#tX#R#tX#l#tX#m#tX#n#tX$f#tX$g#tX$h#tX$i#tX$o#tX~P,bOZUO!f$bP~P!|Ou!vO~O#k!wO$g]O#Q$nP~Oo#UO~Oo#VOu!tX~OZ!ZO[!ZO]![O^![Oy!]O{!jO!h!cO#x!aOu$_X#jtX#|tXwtX#{tX!ftXdtXatX#QtXktX~O_&sOm&qOo&rOq&mOr&mOs'jO~P/zO#|#YO#j$SXw$SX~O#j#YX~P'dOu#[O~OZ#]O[#]O]#]O^#]O#lQO#mQO#x#]O#y#]O$YWX~O_WXwWX#|WX~P2TO_#aO~O#|#bOa#vX~Oa#eO~OTpOZUO[TOcqOgsOhsOrzO!SxO!TxO!UuO!WwO!b{O!fyO!hhO!ovO!vfO#RjO#lQO#mQO$f[O$g]O$h^O$i_O~Ou#oO~P3cO|#qO~O{!jO!h!cO#x!aOTxaZxa[xa]xa^xa_xacxagxahxamxaoxaqxarxasxau$_Xyxa!Sxa!Txa!Uxa!Wxa!bxa!fxa!oxa!vxa#Rxa#jxa#lxa#mxa#nxa$fxa$gxa$hxa$ixa$oxa#|xawxa#{xadxaaxa#Qxaexakxa~OZUOw$bP~P!|OZ!ZO[!ZO]![O^![O_&sOm&qOo&rOq&mOr&mOs'jOw#zOy!]O{!jO!h!cO#x!aO#{#{Ou$_X~OZ!ZO[!ZO]![O^![O_&sOm&qOo&rOq&mOr&mOs'jOy!]O{!jO!h!cO#x!aO#{#{Ou$_X~O#|#|O!f$bX~P9jO!f$OO~O#lQO#mQOw$lP~OZ#]O[#]O]#]O^#]O#k!wO#x#]O#y#]O~O$Y#VX~P;YO$Y$VO~O#|$WO#Q$nX~O#Q$YO~OZ!ZO[!ZO]![O^![O_&sOm&qOo&rOq&mOr&mOs'jOy!]O{!jO!h!cO#x!aOu$_X~Od$ZO~P<[O#|$]Ok$QX~Ok$_O~O!V$`O~O!S$aO~OT!wac!wag!wah!wa!S!wa!T!wa!U!wa!W!wa!b!wa!f!wa!o!wa!v!wa#R!wa#j!wa#l!wa#m!wa#n!wa$f!wa$g!wa$h!wa$i!wa$o!wa~P$yO#|#YO#j$Saw$Sa~OZ#]O[#]O]#]O^#]O#lQO#mQO#x#]O#y#]O~O_Wa$YWawWa#|Wa~P?pO#|#bOa#va~OZ!ZO[!ZO]![O^![Oy!]O{!jO!h!cO#x!aOTpi_picpigpihpimpiopiqpirpispiu$_X!Spi!Tpi!Upi!Wpi!bpi!fpi!opi!vpi#Rpi#jpi#lpi#mpi#npi$fpi$gpi$hpi$ipi$opi~O]![O^![Oy!]O{!jO!h!cO#x!aOTxiZxi[xi_xicxigxihximxioxiqxirxisxiu$_X!Sxi!Txi!Uxi!Wxi!bxi!fxi!oxi!vxi#Rxi#jxi#lxi#mxi#nxi$fxi$gxi$hxi$ixi$oxi~Oy!]O{!jO!h!cO#x!aOTxiZxi[xi]xi^xi_xicxigxihximxioxiqxirxisxiu$_X!Sxi!Txi!Uxi!Wxi!bxi!fxi!oxi!vxi#Rxi#jxi#lxi#mxi#nxi$fxi$gxi$hxi$ixi$oxi~O{!jO!h!cO#x!aOTxiZxi[xi]xi^xi_xicxigxihximxioxiqxirxisxiu$_X!Sxi!Txi!Uxi!Wxi!bxi!fxi!oxi!vxi#Rxi#jxi#lxi#mxi#nxi$fxi$gxi$hxi$ixi$oxiexi~Oyxi#|xiwxi#{xidxiaxi#Qxikxi~PHVO!f$kO~P<[OZ!ZO[!ZO]![O^![Oy!]O{!jO!h!cO#x!aOTlicliglihlimliu$_X!Sli!Tli!Uli!Wli!bli!fli!oli!vli#Rli#jli#lli#mli#nli$fli$gli$hli$ili$oli~O_!iOo!gOq!YOr!YOs!hO~PKaOZ!ZO[!ZO]![O^![Oy!]O{!jO!h!cO#x!aOTnicnignihnimnioniu$_X!Sni!Tni!Uni!Wni!bni!fni!oni!vni#Rni#jni#lni#mni#nni$fni$gni$hni$ini$oni~O_!iOq!YOr!YOs!hO~PMzOZ!ZO[!ZO]![O^![O_&sOm&qOq&mOr&mOs'jOy!]O{!jO!h!cO#x!aOu$_X~Oo$lO~P!!eO!R$qO!U$rO!W$sO!Z$tO!^$uO!b$vO#lQO#mQO~OZ#aX[#aX]#aX^#aX_#aXm#aXo#aXq#aXr#aXs#aXu#aXw#aXy#aX{#aX!h#aX#l#aX#m#aX#n#aX#x#aX#|#aX~P2TO#|#|Ow$bX~P<[O$Y$xO~O#|$yOw$aX~Ow${O~O#|#|O!f$baw$ba~O$Y%POw!}X#|!}X~O#|%QOw$lX~Ow%SO~O$Y#Va~P;YO#k!wO$g]O~O#|$WO#Q$na~OTpOZUO[TOcqOgsOhsOr'qOueO!SxO!TxO!UuO!WwO!b{O!fyO!hhO!ovO!vfO#RjO#lQO#mQO$f[O$g]O$h^O$i_O~O#|$]Ok$Qa~O!T%^O~Ow!QO~O#{%_Oa`X#|`X~P<[OTSqcSqgSqhSq!SSq!TSq!USq!WSq!bSq!fSq!oSq!vSq#RSq#jSq#lSq#mSq#nSq$fSq$gSq$hSq$iSq$oSq~P$yO#|tX~P8cOw%aO~O#x%bOT!OXZ!OX[!OX]!OX^!OX_!OXc!OXg!OXh!OXm!OXo!OXq!OXr!OXs!OXu!OXy!OX{!OX!S!OX!T!OX!U!OX!W!OX!b!OX!f!OX!h!OX!o!OX!v!OX#R!OX#j!OX#l!OX#m!OX#n!OX$f!OX$g!OX$h!OX$i!OX$o!OX#|!OXw!OX#{!OXd!OXa!OX#Q!OXe!OXk!OX~Oo%dO~Oo%eO~Oo%fO~O![%gO~O![%hO~O![%iO~O#|$yOw$aa~OZ!ZO[!ZO]![O^![O_&sOm&qOo&rOq&mOr&mOs'jOy!]O{!jO#x!aOu$_X~Ow%nO!f%nO!h%mO~P!/[O!f#fa#|#faw#fa~P<[O#|%QOw$la~O#O%tO~P`O#Q#Ti#|#Ti~P<[OZ!ZO[!ZO]![O^![O_'xOm'vOo'wOq'rOr'rOs)]Oy!]O{!jO!h!cO#x!aOTbqcbqgbqhbqu$_X!Sbq!Tbq!Ubq!Wbq!bbq!fbq!obq!vbq#Rbq#jbq#lbq#mbq#nbq$fbq$gbq$hbq$ibq$obq~Oe%uO~P!1_Ok$Ri#|$Ri~P<[OTfqcfqgfqhfq!Sfq!Tfq!Ufq!Wfq!bfq!ffq!ofq!vfq#Rfq#jfq#lfq#mfq#nfq$ffq$gfq$hfq$ifq$ofq~P$yOZ!ZO[!ZO]![O^![Oy!]O{!jO!h!cO#x!aOTpy_pycpygpyhpympyopyqpyrpyspyu$_X!Spy!Tpy!Upy!Wpy!bpy!fpy!opy!vpy#Rpy#jpy#lpy#mpy#npy$fpy$gpy$hpy$ipy$opy~O#x%bOT!OaZ!Oa[!Oa]!Oa^!Oa_!Oac!Oag!Oah!Oam!Oao!Oaq!Oar!Oas!Oau!Oay!Oa{!Oa!S!Oa!T!Oa!U!Oa!W!Oa!b!Oa!f!Oa!h!Oa!o!Oa!v!Oa#R!Oa#j!Oa#l!Oa#m!Oa#n!Oa$f!Oa$g!Oa$h!Oa$i!Oa$o!Oa#|!Oaw!Oa#{!Oad!Oaa!Oa#Q!Oae!Oak!Oa~O!S%yO~O!V%yO~O!S%zO~O!R$qO!U$rO!W$sO!Z$tO!^$uO!b(dO#lQO#mQO~O!X$ZP~P!;dOw!li#|!li~P<[OT$^XZ$^X[$^X]!xy^!xy_!xyc$^Xg$^Xh$^Xm!xyo!xyq!xyr$^Xs!xyu$^Xy!xy{!xy!S$^X!T$^X!U$^X!W$^X!b$^X!f$^X!h$^X!o$^X!v$^X#R$^X#j!xy#l$^X#m$^X#n!xy#x!xy$f$^X$g$^X$h$^X$i$^X$o!xy#|!xyw!xy#{!xyd!xya!xy#Q!xye!xyk!xy~OT#PXc#PXg#PXh#PX!S#PX!T#PX!U#PX!W#PX!b#PX!f#PX!o#PX!v#PX#R#PX#j#PX#l#PX#m#PX#n#PX$f#PX$g#PX$h#PX$i#PX$o#PX~P$yOa`i#|`i~P<[O!T&YO~O#lQO#mQO!X!PX#x!PX#|!PX~O#x'VO!X!OX#|!OX~O!X&[O~O$Y&]O~O#|&^O!X$XX~O!X&`O~O#|&aO!X$ZX~O!X&cO~OTb!Rcb!Rgb!Rhb!R!Sb!R!Tb!R!Ub!R!Wb!R!bb!R!fb!R!ob!R!vb!R#Rb!R#jb!R#lb!R#mb!R#nb!R$fb!R$gb!R$hb!R$ib!R$ob!R~P$yO#x'VO!X!Oa#|!Oa~O#|&^O!X$Xa~O#|&aO!X$Za~O$[&iO~O#|#tXw#tX#{#tXd#tXa#tX#Q#tXk#tX~P,bOTpOZUO[TOcqOgsOhsOr&lO!SxO!TxO!UuO!WwO!b{O!fyO!hhO!ovO!vfO#RjO#lQO#mQO$f[O$g]O$h^O$i_O~Ou#oO~P!E`O#j!wa#|!waw!wa#{!wa!f!wad!waa!wa#Q!wak!wa~P<[OZ!ZO[!ZO]![O^![Oy!]O{!jO!h!cO#x!aO_pimpiopiqpirpispiu$_X#jpi#|piwpi#{pi!fpidpiapi#Qpikpi~O]![O^![Oy!]O{!jO!h!cO#x!aOZxi[xi_ximxioxiqxirxisxiu$_X#jxi#|xiwxi#{xi!fxidxiaxi#Qxikxi~Oy!]O{!jO!h!cO#x!aOZxi[xi]xi^xi_ximxioxiqxirxisxiu$_X#jxi#|xiwxi#{xi!fxidxiaxi#Qxikxi~OZ!ZO[!ZO]![O^![Oy!]O{!jO!h!cO#x!aOmliu$_X#jli#|liwli#{li!flidliali#Qlikli~O_&sOo&rOq&mOr&mOs'jO~P!LiOZ!ZO[!ZO]![O^![Oy!]O{!jO!h!cO#x!aOmnioniu$_X#jni#|niwni#{ni!fnidniani#Qnikni~O_&sOq&mOr&mOs'jO~P!NZOTpOZUO[TOcqOgsOhsOr(eOueO!SxO!TxO!UuO!WwO!b{O!fyO!hhO!ovO!vfO#RjO#lQO#mQO$f[O$g]O$h^O$i_O~O#jSq#|SqwSq#{Sq!fSqdSqaSq#QSqkSq~P<[OZUO#O'XO~P!|OZ!ZO[!ZO]![O^![O_(lOm(jOo(kOq(fOr(fOs)VOy!]O{!jO!h!cO#x!aOu$_X#jbq#|bqwbq#{bq!fbqdbqabq#Qbqkbq~Oe'YO~P#$dOebq~P#$dOebq~P!1_O#jfq#|fqwfq#{fq!ffqdfqafq#Qfqkfq~P<[OZ!ZO[!ZO]![O^![Oy!]O{!jO!h!cO#x!aO_pympyopyqpyrpyspyu$_X#jpy#|pywpy#{py!fpydpyapy#Qpykpy~O#j#PX#|#PXw#PX#{#PX!f#PXd#PXa#PX#Q#PXk#PX~P<[O#jb!R#|b!Rwb!R#{b!R!fb!Rdb!Rab!R#Qb!Rkb!R~P<[OTtXctXgtXhtX!StX!TtX!UtX!WtX!btX!ftX!otX!vtX#RtX#jtX#ltX#mtX#ntX$ftX$gtX$htX$itX$otX~P$yOd&{O~P<[Ok&|O~Oo'OO~P!!eOw'PO~O$['[O~Od'dO~P<[O!X'eO~Od'fO~P<[Ou'kO~OTpOZUO[TOcqOgsOhsOr'qO!SxO!TxO!UuO!WwO!b{O!fyO!hhO!ovO!vfO#RjO#lQO#mQO$f[O$g]O$h^O$i_O~Ou#oO~P#,uOZ!ZO[!ZO]![O^![O_'xOm'vOo'wOq'rOr'rOs)]Oy!]O{!jO!h!cO#x!aOu$_X~OT!wac!wae!wag!wah!wa!S!wa!T!wa!U!wa!W!wa!b!wa!f!wa!o!wa!v!wa#R!wa#j!wa#l!wa#m!wa#n!wa$f!wa$g!wa$h!wa$i!wa$o!wa~P#.gOepi~P@tOexi~PCZOexi~PEpO_'xOo'wOq'rOr'rOs)]Oeli~PKaO_'xOq'rOr'rOs)]Oeni~PMzOTSqcSqeSqgSqhSq!SSq!TSq!USq!WSq!bSq!fSq!oSq!vSq#RSq#jSq#lSq#mSq#nSq$fSq$gSq$hSq$iSq$oSq~P#.gO#O(YO~P!'bOTfqcfqefqgfqhfq!Sfq!Tfq!Ufq!Wfq!bfq!ffq!ofq!vfq#Rfq#jfq#lfq#mfq#nfq$ffq$gfq$hfq$ifq$ofq~P#.gOepy~P!5oOT#PXc#PXe#PXg#PXh#PX!S#PX!T#PX!U#PX!W#PX!b#PX!f#PX!o#PX!v#PX#R#PX#j#PX#l#PX#m#PX#n#PX$f#PX$g#PX$h#PX$i#PX$o#PX~P#.gOZ!ZO[!ZO]![O^![O_'xOm'vOo'wOq'rOr'rOs)]Oy!]O{!jO!h!cO#x!aOu$_X~Qb!RTtXctXetXgtXhtX!StX!TtX!UtX!WtX!btX!ftX!otX!vtX#RtX#jtX#ltX#mtX#ntX$ftX$gtX$htX$itX$otX~P#.gOk(QO~Oo(SO~P!!eOw(TO~O![(WO~OTpOZUO[TOcqOgsOhsOr(eO!SxO!TxO!UuO!WwO!b{O!fyO!hhO!ovO!vfO#RjO#lQO#mQO$f[O$g]O$h^O$i_O~Ou#oO~P#:nOZ!ZO[!ZO]![O^![O_(lOm(jOo(kOq(fOr(fOs)VOy!]O{!jO!h!cO#x!aOu$_X~Oe!wa#j!wa#|!waw!wa#{!wa!f!wad!waa!wa#Q!wak!wa~P#<`Oepi~P!GqOexi~P!I_Oexi~P!J{O_(lOo(kOq(fOr(fOs)VOeli~P!LiO_(lOq(fOr(fOs)VOeni~P!NZOeSq#jSq#|SqwSq#{Sq!fSqdSqaSq#QSqkSq~P#<`O#O({O~P# {Oefq#jfq#|fqwfq#{fq!ffqdfqafq#Qfqkfq~P#<`Oepy~P#'WOe#PX#j#PX#|#PXw#PX#{#PX!f#PXd#PXa#PX#Q#PXk#PX~P#<`OZ!ZO[!ZO]![O^![O_(lOm(jOo(kOq(fOr(fOs)VOy!]O{!jO!h!cO#x!aOu$_X~Qb!Rk(tO~Oo(vO~P!!eOw(wO~Ou)WO~O_(lOm(jOo(kOq(fOr(fOs)VOetX~P/zOu)^O~O",goto:"!7p$oPPPP$pP&p&|'V'r*mPPPPP*vP$pPPP$pPP*y+VP$pP$pP$pPPP+`P+nP$pP$pPP+w,^,i,^PPPPPPP,^PP,^P/P/S,^P/Y/`$pP$pP$p/g1g1j1p1gP1{3{1{1{6S8SP$p:S$p<S<S>S>`P>iPP<S>u>{6O?PP?XP?[?b?i?o?u?{B_BiBoBuB{CSCYC`PPPPPPPPCfCjHvJvL|MSPPMZPPMaMm! s!#y!$P!$W!$]!%y!'k!)a!+gP!+jP!+n!-`!/Q!1Q!1W!1Z$p!1a!1aPPPPHv!3a!5g!5m!7m${fOPVehoryz!Y!^!_!`!d!f!g!h!i!n#Y#[#`#d#o#{#|$V$Z$[$_$l$x%S%_%t%u&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]Q!XRQ'_'gQ(`)YR)P)TW!VR'g)T)YR$h#bY!TR#b'g)T)YY#Pt$]'i)U)Z^#t!n!v$y%Q'k)W)^T&O%h&^%fWOPVXehoryz!Y!^!_!`!b!d!f!g!h!i#Y#[#`#d#o#q#{#|$V$Z$[$_$l$x%P%S%_%b%g%i%t%u%{&]&a&i&l&m&n&o&p&q&r&s&u&{&|'O'P'V'X'Y'[']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(W(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]t!SRt!v#b$]$y%Q%h&^'g'i'k)T)U)W)Y)Z)^U#^!S#_#rR#r!nU#^!S#_#rT$T!x$UR$g#`Q#TtQ'a'iQ(a)ZR)Q)UW#Rt'i)U)ZR%Z$]U}P#[#oW#p!i&s'x(lR$b#YQ!QPQ$d#[R$n#oQ$w#qQ%o%PQ%}%gU&S%i&a(WQ&d&]T&j&i'[c$p#q%P%g%i&]&a&i'[(W!fgOVoz!Y!^!_!`!f!g!i#d$Z$_$l%S%t%u'd'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(_Q#j!bU$o#q%P&iS%w%b'V[%|%g%i&]&a'[(W#e&kPehry!d!h!n#Y#[#`#o#{#|$V$[$x%_&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'f'h'j'p(^(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]R&R%hQ&P%hR&e&^Q&V%iR'm(WS&T%i(WR&g&a${YOPVehoryz!Y!^!_!`!d!f!g!h!i!n#Y#[#`#d#o#{#|$V$Z$[$_$l$x%S%_%t%u&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]R#y!nQ#v!nR%k$yS#u!n$yZ$P!v%Q'k)W)^${bOPVehoryz!Y!^!_!`!d!f!g!h!i!n#Y#[#`#d#o#{#|$V$Z$[$_$l$x%S%_%t%u&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]$zbOPVehoryz!Y!^!_!`!d!f!g!h!i!n#Y#[#`#d#o#{#|$V$Z$[$_$l$x%S%_%t%u&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]Q!p_T!yk$W${`OPVehoryz!Y!^!_!`!d!f!g!h!i!n#Y#[#`#d#o#{#|$V$Z$[$_$l$x%S%_%t%u&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]${aOPVehoryz!Y!^!_!`!d!f!g!h!i!n#Y#[#`#d#o#{#|$V$Z$[$_$l$x%S%_%t%u&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]${dOPVehoryz!Y!^!_!`!d!f!g!h!i!n#Y#[#`#d#o#{#|$V$Z$[$_$l$x%S%_%t%u&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]${lOPVehoryz!Y!^!_!`!d!f!g!h!i!n#Y#[#`#d#o#{#|$V$Z$[$_$l$x%S%_%t%u&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]Q$S!vQ'c'kQ(c)^R)S)WW$Q!v'k)W)^R%p%QW%s%S'P(T(wX&W%t'X(Y({Q!{kR%V$WT!zk$WS!xk$WT$T!x$UR!QPQoOR!}oS#_!S#rR$e#_Q#c!VR$i#cQ$^#RR%[$^Q#Z}R$c#Z%UXOPVehoryz!Y!^!_!`!b!d!f!g!h!i!n#Y#[#`#d#o#q#{#|$V$Z$[$_$l$x%P%S%_%b%t%u&i&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]S!mX%{_%{%g%i&]&a'V'[(WQ%c$oS%x%c&ZR&Z%|Q&_&PR&f&_Q&b&TR&h&bQ$z#vR%l$zS#}!t#sR%O#}Q%R$QR%q%RQ$U!xR%T$UQ$X!{R%W$XTnOoSSOoW|P#Y#[&sW!lV'](_)OQ!reQ!thQ#OrQ#WyQ#XzQ#f!YQ#g!^Q#h!_W#i!`&p'u(iQ#k!dQ#l!fQ#m!gQ#n!hQ#s!nQ$f#`Q$j#dQ$m#oQ$|#{Q$}#|Q%U$VQ%X$ZQ%Y$[Q%]$_Q%`$lQ%j$xS%r%S%tQ%v%_Q&X%uQ&t&lQ&v&mQ&w&nQ&x&oQ&y&qQ&z&rQ&}&uQ'Q&{Q'R'fQ'S'dQ'T&|Q'U'OS'W'P'XQ'Z'YQ'^!iQ'`'hQ'b'jQ'l'pQ'n(^Q'y'qQ'{'rQ'|'sQ'}'tQ(O'vQ(P'wQ(R'zQ(U(QQ(V(SS(X(T(YQ([(ZQ(]'xQ(b)]Q(m(eQ(o(fQ(p(gQ(q(hQ(r(jQ(s(kQ(u(nQ(x(tQ(y(vS(z(w({Q(}(|Q)R)VR)[(l${mOPVehoryz!Y!^!_!`!d!f!g!h!i!n#Y#[#`#d#o#{#|$V$Z$[$_$l$x%S%_%t%u&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]rROVoz!Y!^!_!`!f!g!i#d$_$l%S%t%u!p'gPehry!d!h!n#Y#[#`#o#{#|$V$[$x%_&l&m&n&o&p&q&r&s&u&|'O'P'X'Y']'h'j'p(^)V)]r)T&{'f(e(f(g(h(i(j(k(l(n(t(v(w({(|)Os)Y$Z'd'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(_X!WR'g)T)YZ!UR#b'g)T)YQ#`!TR$[#PQ#d!XQ&u'_Q'z(`R(n)PrrOVoz!Y!^!_!`!f!g!i#d$_$l%S%t%u!p'hPehry!d!h!n#Y#[#`#o#{#|$V$[$x%_&l&m&n&o&p&q&r&s&u&|'O'P'X'Y']'h'j'p(^)V)]r'p$Z'd'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(_s(^&{'f(e(f(g(h(i(j(k(l(n(t(v(w({(|)OrtOVoz!Y!^!_!`!f!g!i#d$_$l%S%t%u!p'iPehry!d!h!n#Y#[#`#o#{#|$V$[$x%_&l&m&n&o&p&q&r&s&u&|'O'P'X'Y']'h'j'p(^)V)]r)U&{'f(e(f(g(h(i(j(k(l(n(t(v(w({(|)Os)Z$Z'd'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(_X#St'i)U)ZZ#Qt$]'i)U)ZV!OP#[#of!^S#X#f#l#m$j%]%`%r&X'^!`&n|!r!t#O#W#k#n#s$f$m$|$}%U%Y%j%v&t&v&y&z&}'T'U'W'Z'`'b'l'n(b)Rh's%X'S'y'{(O(P(R(U(V(X([(]i(g'Q'R(m(o(r(s(u(x(y(z(})[h!_S#X#f#g#l#m$j%]%`%r&X'^!b&o|!r!t#O#W#k#n#s$f$m$|$}%U%Y%j%v&t&v&w&y&z&}'T'U'W'Z'`'b'l'n(b)Rj't%X'S'y'{'|(O(P(R(U(V(X([(]k(h'Q'R(m(o(p(r(s(u(x(y(z(})[j!`S#X#f#g#h#l#m$j%]%`%r&X'^!d&p|!r!t#O#W#k#n#s$f$m$|$}%U%Y%j%v&t&v&w&x&y&z&}'T'U'W'Z'`'b'l'n(b)Rl'u%X'S'y'{'|'}(O(P(R(U(V(X([(]m(i'Q'R(m(o(p(q(r(s(u(x(y(z(})[rVOVoz!Y!^!_!`!f!g!i#d$_$l%S%t%u!p']Pehry!d!h!n#Y#[#`#o#{#|$V$[$x%_&l&m&n&o&p&q&r&s&u&|'O'P'X'Y']'h'j'p(^)V)]r(_$Z'd'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(_s)O&{'f(e(f(g(h(i(j(k(l(n(t(v(w({(|)OR&Q%hT&U%i(W$_!bS|!l!r!t#O#W#X#f#g#h#i#k#l#m#n#s$f$j$m$|$}%U%X%Y%]%`%j%r%v&X&t&v&w&x&y&z&}'Q'R'S'T'U'W'Z'^'`'b'l'n'y'{'|'}(O(P(R(U(V(X([(](b(m(o(p(q(r(s(u(x(y(z(})R)[$_!dS|!l!r!t#O#W#X#f#g#h#i#k#l#m#n#s$f$j$m$|$}%U%X%Y%]%`%j%r%v&X&t&v&w&x&y&z&}'Q'R'S'T'U'W'Z'^'`'b'l'n'y'{'|'}(O(P(R(U(V(X([(](b(m(o(p(q(r(s(u(x(y(z(})R)[${ZOPVehoryz!Y!^!_!`!d!f!g!h!i!n#Y#[#`#d#o#{#|$V$Z$[$_$l$x%S%_%t%u&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]Q!oZR!q`R#w!nQ!uhR#x!n${cOPVehoryz!Y!^!_!`!d!f!g!h!i!n#Y#[#`#d#o#{#|$V$Z$[$_$l$x%S%_%t%u&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]riOVoz!Y!^!_!`!f!g!i#d$_$l%S%t%u!p'oPehry!d!h!n#Y#[#`#o#{#|$V$[$x%_&l&m&n&o&p&q&r&s&u&|'O'P'X'Y']'h'j'p(^)V)]r)X&{'f(e(f(g(h(i(j(k(l(n(t(v(w({(|)Os)_$Z'd'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(_X$R!v'k)W)^${kOPVehoryz!Y!^!_!`!d!f!g!h!i!n#Y#[#`#d#o#{#|$V$Z$[$_$l$x%S%_%t%u&l&m&n&o&p&q&r&s&u&{&|'O'P'X'Y']'d'f'h'j'p'q'r's't'u'v'w'x'z(Q(S(T(Y(Z(^(_(e(f(g(h(i(j(k(l(n(t(v(w({(|)O)V)]R!|k",nodeNames:"⚠ LineComment BlockComment Expressions ForExpression for InExpressions InExpression Name Identifier Identifier ArithOp ArithOp ArithOp ArithOp in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between PositiveUnaryTest ( PositiveUnaryTests ) ArithmeticExpression ArithOp InstanceOfExpression instance of Type QualifiedName VariableName SpecialType days time duration years months date > ListType list < ContextType context ContextEntryTypes ContextEntryType FunctionType function ArgumentTypes ArgumentType PathExpression ] FilterExpression [ FunctionInvocation SpecialFunctionName NamedParameters NamedParameter ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral DateTimeConstructor AtLiteral ? SimplePositiveUnaryTest Interval ParenthesizedExpression List FunctionDefinition FormalParameters FormalParameter external FunctionBody } { Context ContextEntry Key Name Identifier UnaryTests Wildcard not",maxTerm:169,context:XN,nodeProps:[["group",-17,4,18,22,28,30,32,40,42,67,69,71,84,85,87,88,89,96,"Expression",47,"Expression Expression",-5,77,78,79,80,81,"Expression Literal"],["closedBy",37,")",70,"]",95,"}"],["openedBy",39,"(",68,"[",94,"{"]],propSources:[IN],skippedNodes:[0,1,2],repeatNodeCount:14,tokenData:"+l~RuXY#fYZ$ZZ[#f]^$Zpq#fqr$`rs$kwx&cxy&hyz&mz{&r{|'P|}'U}!O'Z!O!P'h!P!Q(Q!Q![){![!]*^!]!^*c!^!_*h!_!`$f!`!a*w!b!c+R!}#O+W#P#Q+]#Q#R&z#o#p+b#q#r+g$f$g#f#BY#BZ#f$IS$I_#f$I|$I}$Z$I}$JO$Z$JT$JU#f$KV$KW#f&FU&FV#f?HT?HU#f~#kY#p~XY#fZ[#fpq#f$f$g#f#BY#BZ#f$IS$I_#f$JT$JU#f$KV$KW#f&FU&FV#f?HT?HU#f~$`O#q~~$cP!_!`$f~$kOq~~$pW$g~OY$kZr$krs%Ys#O$k#O#P%_#P;'S$k;'S;=`&]<%lO$k~%_O$g~~%bRO;'S$k;'S;=`%k;=`O$k~%pX$g~OY$kZr$krs%Ys#O$k#O#P%_#P;'S$k;'S;=`&];=`<%l$k<%lO$k~&`P;=`<%l$k~&hO#y~~&mOu~~&rOw~~&wP^~z{&z~'POy~~'UO[~~'ZO#|~R'`PZP!`!a'cQ'hO$[Q~'mQ#x~!O!P's!Q!['x~'xO#{~~'}P$f~!Q!['x~(VQ]~z{(]!P!Q)d~(`TOz(]z{(o{;'S(];'S;=`)^<%lO(]~(rVOz(]z{(o{!P(]!P!Q)X!Q;'S(];'S;=`)^<%lO(]~)^OQ~~)aP;=`<%l(]~)iSP~OY)dZ;'S)d;'S;=`)u<%lO)d~)xP;=`<%l)d~*QQ$f~!O!P*W!Q![){~*ZP!Q!['x~*cO$Y~~*hO$o~R*oP![QrP!_!`*rP*wOrPR+OP!XQrP!_!`*r~+WO$i~~+]O!h~~+bO!f~~+gO#R~~+lO#Q~",tokenizers:[MN,CN,AN,0,1],topRules:{Expressions:[0,3],UnaryTests:[1,101]},dynamicPrecedences:{30:-1,71:-1,73:-1,126:-1},specialized:[{term:120,get:e=>LN[e]||-1}],tokenPrec:0});function FN(e){const t=[];return e.iterate({enter:e=>{if(e.type.isError){const n=e.toString(),i=/\((.*?)\)/.exec(n),r=i&&i[1];let o;o=r?"unexpected "+r:"expression expected",t.push({from:e.from,to:e.to,severity:"error",message:o,type:"syntaxError"})}}}),t}const UN=()=>e=>{if(0===e.state.doc.length)return[];return function(e){return[...FN(e)]}(qM(e.state)).map((e=>({...e,source:"syntaxError"})))},HN=gA(hA.define([{tag:cP.strong,fontWeight:"bold"},{tag:cP.emphasis,fontStyle:"italic"}]));var YN=[DC.theme({"& .cm-lintRange":{position:"relative"},"& .cm-lintRange::after":{content:'""',width:"100%",position:"absolute",left:"0px",bottom:"-2px",height:"3px",backgroundRepeat:"repeat-x"},"& .cm-lintRange.cm-lintRange-warning, & .cm-lintRange.cm-lintRange-error":{backgroundImage:"none"},"& .cm-lintPoint::after":{bottom:"-2px"}}),HN];const WN=e=>`%23${e.slice(1)}`,GN={black:"#1f2b36",darkGrey:"#2f3d58",grey:"#404a5c",midGrey:"#576071",lightGrey:"#c5d1e5",offWhite:"#d9e0f5",snowWhite:"#eaf1ff",white:"#ffffff",mossGreen:"#7ab6aa",iceBlue:"#6cbfd8",waterBlue:"#065aaa",brightBlue:"#0a56b9",deepBlue:"#355472",red:"#9f1c15",orangeBrown:"#b4502f",yellow:"#debd71",lila:"#9a4890",purple:"#5b2c83"},ZN={lightBackground:GN.white,darkBackground:GN.snowWhite,selection:GN.snowWhite,tooltipBackground:GN.offWhite,error:GN.red,warning:GN.yellow,invalid:"#b40000"};var KN=[DC.theme({"&":{color:GN.black,backgroundColor:ZN.lightBackground},".cm-content":{caretColor:GN.darkGrey},".cm-cursor, .cm-dropCursor":{borderLeftColor:GN.darkGrey},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:ZN.selection},".cm-panels":{backgroundColor:ZN.darkBackground,color:GN.grey},".cm-panels.cm-panels-top":{borderBottom:`2px solid ${GN.black}`},".cm-panels.cm-panels-bottom":{borderTop:`2px solid ${GN.black}`},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:`1px solid ${GN.midGrey}`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:GN.offWhite},".cm-activeLine":{backgroundColor:ZN.selection},".cm-selectionMatch":{backgroundColor:GN.offWhite},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{outline:`1px solid ${GN.grey}`},"&.cm-focused .cm-matchingBracket":{backgroundColor:GN.snowWhite},".cm-gutters":{backgroundColor:"#f3f7fe",color:"#52668d",border:"none",padding:"0 5px"},".cm-activeLineGutter":{backgroundColor:ZN.selection},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:ZN.tooltipBackground},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:ZN.tooltipBackground,borderBottomColor:ZN.tooltipBackground},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:ZN.darkBackground,color:GN.midGrey}},"& .cm-lintRange.cm-lintRange-warning::after":{backgroundImage:`url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='3'><path d='m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0' stroke='${WN(ZN.warning)}' fill='none' stroke-width='1.2'/></svg>")`},"& .cm-lintRange.cm-lintRange-error::after":{backgroundImage:`url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='3'><path d='m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0' stroke='${WN(ZN.error)}' fill='none' stroke-width='1.2'/></svg>")`},"& .cm-diagnostic-warning":{border:`1px solid ${ZN.warning}`,borderLeft:`5px solid ${ZN.warning}`,background:ZN.lightBackground},"& .cm-diagnostic-error":{border:`1px solid ${ZN.error}`,borderLeft:`5px solid ${ZN.error}`,background:ZN.lightBackground},"& .cm-diagnostic":{padding:"3px 8px"}},{dark:!1}),gA(hA.define([{tag:[cP.macroName,cP.variableName],color:GN.waterBlue},{tag:[cP.special(cP.bracket)],color:GN.waterBlue,fontWeight:"bold"},{tag:[cP.color,cP.name,cP.definition(cP.name),cP.constant(cP.name),cP.standard(cP.name),cP.propertyName],color:GN.deepBlue},{tag:[cP.definition(cP.variableName),cP.function(cP.variableName),cP.function(cP.propertyName)],color:GN.brightBlue},{tag:[cP.labelName],color:GN.orangeBrown},{tag:[cP.annotation],color:ZN.invalid},{tag:[cP.number,cP.changed,cP.annotation,cP.modifier,cP.self,cP.namespace,cP.atom,cP.bool,cP.special(cP.variableName)],color:GN.red},{tag:[cP.typeName,cP.className,cP.attributeName],color:GN.lila},{tag:[cP.operator,cP.operatorKeyword,cP.tagName,cP.keyword],color:GN.purple},{tag:[cP.angleBracket,cP.squareBracket,cP.brace,cP.separator,cP.punctuation],color:GN.midGrey},{tag:[cP.regexp],color:GN.deepBlue},{tag:[cP.quote],color:GN.darkGrey},{tag:[cP.string,cP.character,cP.deleted],color:GN.orangeBrown},{tag:cP.link,color:GN.mossGreen,textDecoration:"underline",textUnderlinePosition:"under"},{tag:[cP.url,cP.escape,cP.special(cP.string)],color:GN.red},{tag:[cP.meta],color:GN.iceBlue},{tag:[cP.comment],color:GN.midGrey,fontStyle:"italic"},{tag:cP.strong,fontWeight:"bold",color:GN.deepBlue},{tag:cP.emphasis,fontStyle:"italic",color:GN.deepBlue},{tag:cP.strikethrough,textDecoration:"line-through"},{tag:cP.heading,fontWeight:"bold",color:GN.midGray},{tag:cP.special(cP.heading1),fontWeight:"bold",color:GN.darkGrey},{tag:[cP.heading1,cP.heading2,cP.heading3,cP.heading4],fontWeight:"bold",color:GN.midGrey},{tag:[cP.heading5,cP.heading6,cP.processingInstruction,cP.inserted],color:GN.grey},{tag:[cP.contentSeparator],color:GN.yellow},{tag:cP.invalid,color:GN.midGrey,borderBottom:`1px dotted ${ZN.invalid}`}]))];const JN="#f07178",ez="#fffce1",tz="#ec9e6f",nz="rgba(0, 0, 0, 0.5)",iz="#353a42",rz="#ffcc00",oz="fff890";var sz=[DC.theme({"&":{color:"#ffffff",backgroundColor:"#292d3e"},".cm-content":{caretColor:rz},"&.cm-focused .cm-cursor":{borderLeftColor:rz},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"rgba(128, 203, 196, 0.2)"},".cm-panels":{backgroundColor:"#21252b",color:"#ffffff"},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:nz},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847",outline:"1px solid #515a6b"},".cm-gutters":{background:"#292d3e",color:"#676e95",border:"none",padding:"0 5px"},".cm-activeLineGutter":{backgroundColor:nz},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:iz},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:iz,borderBottomColor:iz},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:nz,color:"#abb2bf"}},"& .cm-lintRange.cm-lintRange-warning::after":{backgroundImage:`url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='3'><path d='m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0' stroke='${"%23"+oz}' fill='none' stroke-width='1.2'/></svg>")`},"& .cm-lintRange.cm-lintRange-error::after":{backgroundImage:"url(\"data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='3'><path d='m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0' stroke='red' fill='none' stroke-width='1.2'/></svg>\")"},"& .cm-diagnostic-warning":{borderLeft:`5px solid #${oz}`,background:"#281e16"},"& .cm-diagnostic-error":{borderLeft:"5px solid red",background:"#281616"},"& .cm-diagnostic":{borderRadius:"2px",padding:"3px 8px"}},{dark:!0}),gA(hA.define([{tag:cP.heading1,color:ez},{tag:cP.heading2,color:ez},{tag:cP.heading3,color:ez},{tag:cP.heading4,color:ez},{tag:cP.heading5,color:ez},{tag:cP.heading6,color:ez},{tag:cP.special(cP.bracket),color:tz,fontWeight:"bold"},{tag:cP.keyword,color:"#c792ea"},{tag:cP.operator,color:"#89ddff"},{tag:cP.special(cP.variableName),color:"#eeffff"},{tag:cP.typeName,color:"#f07178"},{tag:cP.atom,color:"#f78c6c"},{tag:cP.number,color:"#ff5370"},{tag:cP.bool,color:"#ff5370"},{tag:cP.definition(cP.variableName),color:"#82aaff"},{tag:cP.string,color:"#c3e88d"},{tag:cP.comment,color:"#7d8799"},{tag:cP.tagName,color:"#ff5370"},{tag:cP.bracket,color:"#a2a1a4"},{tag:cP.meta,color:"#ffcb6b"},{tag:cP.special(cP.string),color:JN},{tag:cP.propertyName,color:tz},{tag:cP.variableName,color:tz},{tag:cP.attributeName,color:JN},{tag:cP.className,color:JN},{tag:cP.invalid,color:"#ffffff"}]))];const az=[...YN,...KN],lz=[...YN,...sz],cz=123,pz=125,uz=(e,t=0)=>{const n=e.peek(t)===pz,i=e.peek(t+1)===pz;return n&&i||-1===e.peek(t)},hz=new xE(((e,t)=>{let n=0;for(;!uz(e,n);)n++;n>0&&(e.advance(n),e.acceptToken(2))})),dz=(e,t=0)=>{const n=e.peek(t)===cz,i=e.peek(t+1)===cz;return n&&i||-1===e.peek(t)},fz=new xE(((e,t)=>{let n=0;for(;!dz(e,n);)n++;n>0&&(e.advance(n),e.acceptToken(3))})),mz=new xE(((e,t)=>{let n=0;for(;-1!==e.peek(n);)n++;n>0&&(e.advance(n),e.acceptToken(1))})),gz=IE({ConditionalSpanner:cP.special(cP.bracket),ConditionalSpannerClose:cP.special(cP.bracket),ConditionalSpannerCloseNl:cP.special(cP.bracket),LoopSpanner:cP.special(cP.bracket),LoopSpannerClose:cP.special(cP.bracket),LoopSpannerCloseNl:cP.special(cP.bracket),EmptyInsert:cP.special(cP.bracket),Insert:cP.special(cP.bracket)}),yz=jE.deserialize({version:14,states:"$bOQOaOOOfOXO'#CbOOO`'#Cm'#CmOqOWO'#CcOvOWO'#CfOOO`'#Cp'#CpOOO`'#Ci'#CiO{OaO'#ClO!jOSOOQOOOOOO!oOPO,58{O!tOXO,58|OOO`,58|,58|O!|OQO,58}O#ROQO,59QOOO`-E6g-E6gOOO`1G.g1G.gO#WOPO1G.gOOO`1G.h1G.hO#]OaO1G.iO#qOaO1G.lOOO`7+$R7+$RO$VOPO7+$TO$_OPO7+$WOOO`<<Go<<GoOOO`<<Gr<<Gr",stateData:"$g~ORUO_WObPOeROgSO^`P~OQYO_ZOc[O~OQ]O~OQ^O~ORUObPOeROgSO^`XW`XX`XZ`X[`X~OPXO~Oc`O~OQaOcbO~OfcO~OfdO~OceO~ORUObPOeROgSOW`PX`P~ORUObPOeROgSOZ`P[`P~OWhOXhO~OZiO[iO~O",goto:"!ZePPPPPfflPPlPPrPPz!TPP!TXQOVcdXTOVcdUVOcdR_VQXOQfcRgdXUOVcd",nodeNames:"⚠ Feel FeelBlock SimpleTextBlock Feelers Insert EmptyInsert ConditionalSpanner ConditionalSpannerClose ConditionalSpannerCloseNl LoopSpanner LoopSpannerClose LoopSpannerCloseNl",maxTerm:23,propSources:[gz],skippedNodes:[0],repeatNodeCount:1,tokenData:"%X~RR!_!`[#o#pa#q#r$r~aO_~~dP#o#pg~lQb~str!P!Q!{~uQ#]#^{#`#a!^~!OP#Y#Z!R~!UPpq!X~!^Oe~~!aP#c#d!d~!gP#c#d!j~!mP#d#e!p~!sPpq!v~!{Og~~#OQ#]#^#U#`#a#u~#XP#Y#Z#[~#_P#q#r#b~#eP#q#r#h~#mPW~YZ#p~#uOX~~#xP#c#d#{~$OP#c#d$R~$UP#d#e$X~$[P#q#r$_~$bP#q#r$e~$jPZ~YZ$m~$rO[~R$uP#q#r$xR%PPcPfQYZ%SQ%XOfQ",tokenizers:[0,1,mz,hz,fz],topRules:{Feelers:[0,4]},tokenPrec:0}),vz={ConditionalSpanner:uA,LoopSpanner:uA};const bz=e=>new UM(function(e=null){const t=yz.configure({wrap:(n=t=>"Feel"==t.name||"FeelBlock"==t.name?{parser:IB}:e&&"SimpleTextBlock"==t.name?{parser:e}:null,(e,t,i,r)=>new nE(e,n,t,i,r)),props:[pA.add(vz)]});var n;return jM.define({parser:t})}(e),[]);function Oz(e){const t=[];return e.iterate({enter:e=>{"EmptyInsert"===e.type.name&&t.push({from:e.from,to:e.to,severity:"warning",message:"this insert is empty and will be ignored",type:"emptyInsert"})}}),t}var xz=wj(function(){const e=UN();return t=>{const n=e(t);if(0===t.state.doc.length)return[];return[...n,...function(e){return[...Oz(e)]}(qM(t.state)).map((e=>({...e,source:"feelers linter"})))]}}());function wz({container:e,tooltipContainer:t,hostLanguage:n,hostLanguageParser:i,onChange:r=(()=>{}),onKeyDown:o=(()=>{}),onLint:s=(()=>{}),contentAttributes:a={},readOnly:l=!1,value:c="",enableGutters:p=!1,singleLine:u=!1,darkMode:h=!1}){const d=DC.updateListener.of((e=>{e.docChanged&&r(e.state.doc.toString())})),f=DC.updateListener.of((e=>{const t=e.transactions.flatMap((e=>e.effects)).filter((e=>e.is(hj)));if(!t.length)return;const n=t.flatMap((e=>e.value));s(n)})),m=DC.contentAttributes.of(a),g=DC.domEventHandlers({keydown:o});"string"==typeof t&&(t=document.querySelector(t));const y=t?YC({tooltipSpace:function(){return t.getBoundingClientRect()}}):[],v=bz(i||n&&(e=>"markdown"===e?qq:null)(n)),b=[TA(),d,m,zR(),cA(),g,IC.of([...rj]),v,xz,f,y,h?lz:az,...p?[$M()]:[],...u?[Ck.transactionFilter.of((e=>e.newDoc.lines>1?[]:e))]:[]];return l&&b.push(DC.editable.of(!1)),u&&c&&(c=c.toString().split("\n")[0]),this._cmEditor=new DC({state:Ck.create({doc:c,extensions:b}),parent:e}),this}wz.prototype.setValue=function(e){this._cmEditor.dispatch({changes:{from:0,to:this._cmEditor.state.doc.length,insert:e}})},wz.prototype.focus=function(e){const t=this._cmEditor;if(t.contentDOM.focus(),t.focus(),"number"==typeof e){const n=t.state.doc.length;t.dispatch({selection:{anchor:e<=n?e:n}})}},wz.prototype.getSelection=function(){return this._cmEditor.state.selection};const _z=[AR("function(${params}) ${body}",{label:"function",detail:"definition",type:"keyword"}),AR("for ${var} in ${collection} return ${value}",{label:"for",detail:"expression",type:"keyword"}),AR("every ${var} in ${collection} satisfies ${condition}",{label:"every",detail:"quantified expression",type:"keyword"}),AR("some ${var} in ${collection} satisfies ${condition}",{label:"some",detail:"quantified expression",type:"keyword"}),AR("if ${condition} then ${value}",{label:"if",detail:"block",type:"keyword"}),AR("if ${condition} then ${value} else ${other value}",{label:"if",detail:"/ else block",type:"keyword"})],Ez=jM.define({parser:VN.configure({props:[JM.add({Context:oA({closing:"}"}),"List FilterExpression":oA({closing:"]"}),"ParenthesizedExpression FunctionInvocation":oA({closing:")"}),"ForExpression QuantifiedExpression IfExpression":aA({except:/^\s*(then|else|return|satisfies)\b/}),FunctionDefinition:aA({except:/^\s*(\(|\))/})}),pA.add({Context:uA,List:uA,FunctionDefinition(e){const t=e.getChild(")");return t?{from:t.to,to:e.to}:null}})]}),languageData:{indentOnInput:/^\s*(\)|\}|\]|then|else|return|satisfies)$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}});function Pz(e){return e.from===e.to}function kz(e){return!!e&&("PathExpression"===e.name||kz(e.parent))}const Sz=[{name:"not()",description:'<ul>\n<li>parameters:<ul>\n<li><code>negand</code>: boolean</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">not(true)\n// false\n</code></pre>\n'},{name:"is defined()",description:'<p>Checks if a given value is defined. A value is defined if it exists, and it is an instance of one of the FEEL data types including <code>null</code>.</p>\n<p>The function can be used to check if a variable or a context entry (e.g. a property of a variable) exists. It allows differentiating between a <code>null</code> variable and a value that doesn't exist.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>value</code>: any</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">is defined(1)\n// true\n\nis defined(null)\n// true\n\nis defined(x)\n// false - if no variable "x" exists\n\nis defined(x.y)\n// false - if no variable "x" exists or it doesn't have a property "y"\n</code></pre>\n'},{name:"get value()",description:'<p>Returns the value of the context entry with the given key.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>context</code>: context</li>\n<li><code>key</code>: string</li>\n</ul>\n</li>\n<li>result: any</li>\n</ul>\n<pre><code class="language-feel">get value({foo: 123}, "foo")\n// 123\n</code></pre>\n'},{name:"get entries()",description:'<p>Returns the entries of the context as a list of key-value-pairs.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>context</code>: context</li>\n</ul>\n</li>\n<li>result: list of context which contains two entries for "key" and "value"</li>\n</ul>\n<pre><code class="language-feel">get entries({foo: 123})\n// [{key: "foo", value: 123}]\n</code></pre>\n'},{name:"put()",description:'<p>Add the given key and value to a context. Returns a new context that includes the entry. It might override an existing entry of the context.</p>\n<p>Returns <code>null</code> if the value is not defined.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>context</code>: context</li>\n<li><code>key</code>: string</li>\n<li><code>value</code>: any</li>\n</ul>\n</li>\n<li>result: context</li>\n</ul>\n<pre><code class="language-feel">put({x:1}, "y", 2)\n// {x:1, y:2}\n</code></pre>\n'},{name:"put all()",description:'<p>Union the given contexts (two or more). Returns a new context that includes all entries of the given contexts. It might override context entries if the keys are equal. The entries are overridden in the same order as the contexts are passed in the method.</p>\n<p>Returns <code>null</code> if one of the values is not a context.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>contexts</code>: contexts as varargs</li>\n</ul>\n</li>\n<li>result: context</li>\n</ul>\n<pre><code class="language-feel">put all({x:1}, {y:2})\n// {x:1, y:2}\n</code></pre>\n'},{name:"date()",description:'<ul>\n<li>parameters:<ul>\n<li><code>from</code>: string / date-time</li>\n<li>or <code>year</code>, <code>month</code>, <code>day</code>: number</li>\n</ul>\n</li>\n<li>result: date</li>\n</ul>\n<pre><code class="language-feel">date(birthday)\n// date("2018-04-29")\n\ndate(date and time("2012-12-25T11:00:00"))\n// date("2012-12-25")\n\ndate(2012, 12, 25)\n// date("2012-12-25")\n</code></pre>\n'},{name:"time()",description:'<ul>\n<li>parameters:<ul>\n<li><code>from</code>: string / date-time</li>\n<li>or <code>hour</code>, <code>minute</code>, <code>second</code>: number<ul>\n<li>(optional) <code>offset</code>: day-time-duration</li>\n</ul>\n</li>\n</ul>\n</li>\n<li>result: time</li>\n</ul>\n<pre><code class="language-feel">time(lunchTime)\n// time("12:00:00")\n\ntime(date and time("2012-12-25T11:00:00"))\n// time("11:00:00")\n\ntime(23, 59, 0)\n// time("23:59:00")\n\ntime(14, 30, 0, duration("PT1H"))\n// time("15:30:00")\n</code></pre>\n'},{name:"date and time()",description:'<ul>\n<li>parameters:<ul>\n<li><code>date</code>: date / date-time</li>\n<li><code>time</code>: time</li>\n<li>or <code>from</code>: string</li>\n</ul>\n</li>\n<li>result: date-time</li>\n</ul>\n<pre><code class="language-feel">date and time(date("2012-12-24"),time("T23:59:00"))\n// date and time("2012-12-24T23:59:00")\n\ndate and time(date and time("2012-12-25T11:00:00"),time("T23:59:00"))\n// date and time("2012-12-25T23:59:00")\n\ndate and time(birthday)\n// date and time("2018-04-29T009:30:00")\n</code></pre>\n'},{name:"duration()",description:'<ul>\n<li>parameters:<ul>\n<li><code>from</code>: string</li>\n</ul>\n</li>\n<li>result: day-time-duration or year-month-duration</li>\n</ul>\n<pre><code class="language-feel">duration(weekDays)\n// duration("P5D")\n\nduration(age)\n// duration("P32Y")\n</code></pre>\n'},{name:"years and months duration()",description:'<ul>\n<li>parameters:<ul>\n<li><code>from</code>: date</li>\n<li><code>to</code>: date</li>\n</ul>\n</li>\n<li>result: year-month-duration</li>\n</ul>\n<pre><code class="language-feel">years and months duration(date("2011-12-22"), date("2013-08-24"))\n// duration("P1Y8M")\n</code></pre>\n'},{name:"number()",description:'<ul>\n<li>parameters:<ul>\n<li><code>from</code>: string</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">number("1500.5")\n// 1500.5\n</code></pre>\n'},{name:"string()",description:'<ul>\n<li>parameters:<ul>\n<li><code>from</code>: any</li>\n</ul>\n</li>\n<li>result: string</li>\n</ul>\n<pre><code class="language-feel">string(1.1)\n// "1.1"\n\nstring(date("2012-12-25"))\n// "2012-12-25"\n</code></pre>\n'},{name:"context()",description:'<p>Constructs a context of the given list of key-value pairs. It is the reverse function to <a href="feel-built-in-functions-context.md#get-entries">get entries()</a>.</p>\n<p>Each key-value pair must be a context with two entries: <code>key</code> and <code>value</code>. The entry with name <code>key</code> must have a value of the type <code>string</code>.</p>\n<p>It might override context entries if the keys are equal. The entries are overridden in the same order as the contexts in the given list.</p>\n<p>Returns <code>null</code> if one of the entries is not a context or if a context doesn't contain the required entries.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>entries</code>: list of contexts</li>\n</ul>\n</li>\n<li>result: context</li>\n</ul>\n<pre><code class="language-feel">context([{"key":"a", "value":1}, {"key":"b", "value":2}])\n// {a:1, b:2}\n</code></pre>\n'},{name:"list contains()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list</li>\n<li><code>element</code>: any</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">list contains([1,2,3], 2)\n// true\n</code></pre>\n'},{name:"count()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">count([1,2,3])\n// 3\n</code></pre>\n'},{name:"min()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list of numbers</li>\n<li>or numbers as varargs</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">min([1,2,3])\n// 1\n\nmin(1,2,3)\n// 1\n</code></pre>\n'},{name:"max()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list of numbers</li>\n<li>or numbers as varargs</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">max([1,2,3])\n// 3\n\nmax(1,2,3)\n// 3\n</code></pre>\n'},{name:"sum()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list of numbers</li>\n<li>or numbers as varargs</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">sum([1,2,3])\n// 6\n\nsum(1,2,3)\n// 6\n</code></pre>\n'},{name:"product()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list of numbers</li>\n<li>or numbers as varargs</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">product([2, 3, 4])\n// 24\n\nproduct(2, 3, 4)\n// 24\n</code></pre>\n'},{name:"mean()",description:'<p>Returns the arithmetic mean (i.e. average).</p>\n<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list of numbers</li>\n<li>or numbers as varargs</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">mean([1,2,3])\n// 2\n\nmean(1,2,3)\n// 2\n</code></pre>\n'},{name:"median()",description:'<p>Returns the median element of the list of numbers.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list of numbers</li>\n<li>or numbers as varargs</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">median(8, 2, 5, 3, 4)\n// 4\n\nmedian([6, 1, 2, 3])\n// 2.5\n</code></pre>\n'},{name:"stddev()",description:'<p>Returns the standard deviation.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list of numbers</li>\n<li>or numbers as varargs</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">stddev(2, 4, 7, 5)\n// 2.0816659994661326\n\nstddev([2, 4, 7, 5])\n// 2.0816659994661326\n</code></pre>\n'},{name:"mode()",description:'<p>Returns the mode of the list of numbers.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list of numbers</li>\n<li>or numbers as varargs</li>\n</ul>\n</li>\n<li>result: list of numbers</li>\n</ul>\n<pre><code class="language-feel">mode(6, 3, 9, 6, 6)\n// [6]\n\nmode([6, 1, 9, 6, 1])\n// [1, 6]\n</code></pre>\n'},{name:"and()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list of booleans</li>\n<li>or booleans as varargs</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">and([true,false])\n// false\n\nand(false,null,true)\n// false\n</code></pre>\n'},{name:"all()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list of booleans</li>\n<li>or booleans as varargs</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">and([true,false])\n// false\n\nand(false,null,true)\n// false\n</code></pre>\n'},{name:"or()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list of booleans</li>\n<li>or booleans as varargs</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">or([false,true])\n// true\n\nor(false,null,true)\n// true\n</code></pre>\n'},{name:"any()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list of booleans</li>\n<li>or booleans as varargs</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">or([false,true])\n// true\n\nor(false,null,true)\n// true\n</code></pre>\n'},{name:"sublist()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list</li>\n<li><code>start position</code>: number</li>\n<li>(optional) <code>length</code>: number</li>\n</ul>\n</li>\n<li>result: list</li>\n</ul>\n<pre><code class="language-feel">sublist([1,2,3], 2)\n// [2,3]\n\nsublist([1,2,3], 1, 2)\n// [1,2]\n</code></pre>\n'},{name:"append()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list</li>\n<li><code>items</code>: elements as varargs</li>\n</ul>\n</li>\n<li>result: list</li>\n</ul>\n<pre><code class="language-feel">append([1], 2, 3)\n// [1,2,3]\n</code></pre>\n'},{name:"concatenate()",description:'<ul>\n<li>parameters:<ul>\n<li><code>lists</code>: lists as varargs</li>\n</ul>\n</li>\n<li>result: list</li>\n</ul>\n<pre><code class="language-feel">concatenate([1,2],[3])\n// [1,2,3]\n\nconcatenate([1],[2],[3])\n// [1,2,3]\n</code></pre>\n'},{name:"insert before()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list</li>\n<li><code>position</code>: number</li>\n<li><code>newItem</code>: any</li>\n</ul>\n</li>\n<li>result: list</li>\n</ul>\n<pre><code class="language-feel">insert before([1,3],1,2)\n// [1,2,3]\n</code></pre>\n'},{name:"remove()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list</li>\n<li><code>position</code>: number</li>\n</ul>\n</li>\n<li>result: list</li>\n</ul>\n<pre><code class="language-feel">remove([1,2,3], 2)\n// [1,3]\n</code></pre>\n'},{name:"reverse()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list</li>\n</ul>\n</li>\n<li>result: list</li>\n</ul>\n<pre><code class="language-feel">reverse([1,2,3])\n// [3,2,1]\n</code></pre>\n'},{name:"index of()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list</li>\n<li><code>match</code>: any</li>\n</ul>\n</li>\n<li>result: list of numbers</li>\n</ul>\n<pre><code class="language-feel">index of([1,2,3,2],2)\n// [2,4]\n</code></pre>\n'},{name:"union()",description:'<ul>\n<li>parameters:<ul>\n<li><code>lists</code>: lists as varargs</li>\n</ul>\n</li>\n<li>result: list</li>\n</ul>\n<pre><code class="language-feel">union([1,2],[2,3])\n// [1,2,3]\n</code></pre>\n'},{name:"distinct values()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list</li>\n</ul>\n</li>\n<li>result: list</li>\n</ul>\n<pre><code class="language-feel">distinct values([1,2,3,2,1])\n// [1,2,3]\n</code></pre>\n'},{name:"flatten()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list</li>\n</ul>\n</li>\n<li>result: list</li>\n</ul>\n<pre><code class="language-feel">flatten([[1,2],[[3]], 4])\n// [1,2,3,4]\n</code></pre>\n'},{name:"sort()",description:'<ul>\n<li>parameters:<ul>\n<li><code>list</code>: list</li>\n<li><code>precedes</code>: function with two arguments and boolean result</li>\n</ul>\n</li>\n<li>result: list</li>\n</ul>\n<pre><code class="language-feel">sort(list: [3,1,4,5,2], precedes: function(x,y) x < y)\n// [1,2,3,4,5]\n</code></pre>\n'},{name:"string join()",description:'<p>This joins a list of strings into a single string. This is similar to\nJava's <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/stream/Collectors.html#joining(java.lang.CharSequence,java.lang.CharSequence,java.lang.CharSequence)">joining</a>\nfunction.</p>\n<p>If an item of the list is <code>null</code>, the item is ignored for the result string. If an item is\nneither a string nor <code>null</code>, the function returns <code>null</code> instead of a string.</p>\n<ul>\n<li>Parameters:<ul>\n<li><code>list</code>: The list of strings to join</li>\n<li><code>delimiter</code>: (Optional) The string used between each element (default: empty string)</li>\n<li><code>prefix</code>: (Optional) The string used at the beginning of the joined result (default:\nempty string)</li>\n<li><code>suffix</code>: (Optional) The string used at the end of the joined result (default: empty\nstring)</li>\n</ul>\n</li>\n<li>Result: The joined list as a string</li>\n</ul>\n<pre><code class="language-feel">string join(["a","b","c"])\n// "abc"\nstring join(["a"], "X")\n// "a"\nstring join(["a","b","c"], ", ")\n// "a, b, c"\nstring join(["a","b","c"], ", ", "[", "]")\n// "[a, b, c]"\nstring join(["a",null,"c"])\n// "ac"\nstring join([])\n// ""\n</code></pre>\n'},{name:"decimal()",description:'<p>Round the given number at the given scale using the given rounding mode. If no rounding mode is passed in, it uses <code>HALF_EVEN</code> as default.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>n</code>: number</li>\n<li><code>scale</code>: number</li>\n<li>(optional) <code>mode</code>: string - one of <code>UP, DOWN, CEILING, FLOOR, HALF_UP, HALF_DOWN, HALF_EVEN, UNNECESSARY</code> (default: <code>HALF_EVEN</code>)</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">decimal(1/3, 2)\n// .33\n\ndecimal(1.5, 0)\n// 2\n\ndecimal(2.5, 0, "half_up")\n// 3\n</code></pre>\n'},{name:"floor()",description:'<ul>\n<li>parameters:<ul>\n<li><code>n</code>: number</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">floor(1.5)\n// 1\n\nfloor(-1.5)\n// -2\n</code></pre>\n'},{name:"ceiling()",description:'<p>Round the given number at the given scale using the ceiling rounding mode.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>n</code>: number</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">ceiling(1.5)\n// 2\n\nceiling(-1.5)\n// -1\n</code></pre>\n'},{name:"abs()",description:'<p>Returns the absolute value of the given numeric value.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>number</code>: number</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">abs(10)\n// 10\n\nabs(-10)\n// 10\n</code></pre>\n'},{name:"modulo()",description:'<p>Returns the remainder of the division of dividend by divisor.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>dividend</code>: number</li>\n<li><code>divisor</code>: number</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">modulo(12, 5)\n// 2\n</code></pre>\n'},{name:"sqrt()",description:'<p>Returns the square root.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>number</code>: number</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">sqrt(16)\n// 4\n</code></pre>\n'},{name:"log()",description:'<p>Returns the natural logarithm (base e) of the number.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>number</code>: number</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">log(10)\n// 2.302585092994046\n</code></pre>\n'},{name:"exp()",description:'<p>Returns the Euler’s number e raised to the power of number .</p>\n<ul>\n<li>parameters:<ul>\n<li><code>number</code>: number</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">exp(5)\n// 148.4131591025766\n</code></pre>\n'},{name:"odd()",description:'<p>Returns <code>true</code> if the given numeric value is odd. Otherwise, it returns <code>false</code>.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>number</code>: number</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">odd(5)\n// true\n\nodd(2)\n// false\n</code></pre>\n'},{name:"even()",description:'<p>Returns <code>true</code> if the given numeric value is even. Otherwise, it returns <code>false</code>.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>number</code>: number</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">even(5)\n// false\n\neven(2)\n// true\n</code></pre>\n'},{name:"before()",description:'<ul>\n<li>parameters:<ul>\n<li><code>point1</code>, <code>point2</code>: any</li>\n<li>or <code>range</code>: range, <code>point</code>: any</li>\n<li>or <code>point</code>: any, <code>range</code>: range</li>\n<li>or <code>range1</code>, <code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">before(1, 10)\n// true\n\nbefore(10, 1)\n// false\n\nbefore(1, [2..5])\n// true\n\nbefore([1..5], 10)\n// true\n\nbefore([1..5], [6..10])\n// true\n\nbefore([1..5),[5..10])\n// true\n</code></pre>\n'},{name:"after()",description:'<ul>\n<li>parameters:<ul>\n<li><code>point1</code>, <code>point2</code>: any</li>\n<li>or <code>range</code>: range, <code>point</code>: any</li>\n<li>or <code>point</code>: any, <code>range</code>: range</li>\n<li>or <code>range1</code>, <code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">after(10, 1)\n// true\n\nafter(1, 10)\n// false\n\nafter(12, [2..5])\n// true\n\n([1..5], 10)\n// false\n\nbefore([6..10], [1..5])\n// true\n\nbefore([5..10], [1..5))\n// true\n</code></pre>\n'},{name:"meets()",description:'<ul>\n<li>parameters:<ul>\n<li><code>range1</code>: range</li>\n<li><code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">meets([1..5], [5..10])\n// true\n\nmeets([1..3], [4..6])\n// false\n\nmeets([1..3], [3..5])\n// true\n\nmeets([1..5], (5..8])\n// false\n</code></pre>\n'},{name:"met by()",description:'<ul>\n<li>parameters:<ul>\n<li><code>range1</code>: range</li>\n<li><code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">met by([5..10], [1..5])\n// true\n\nmet by([3..4], [1..2])\n// false\n\nmet by([3..5], [1..3])\n// true\n\nmet by((5..8], [1..5))\n// false\n\nmet by([5..10], [1..5))\n// false\n</code></pre>\n'},{name:"overlaps()",description:'<ul>\n<li>parameters:<ul>\n<li><code>range1</code>: range</li>\n<li><code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">overlaps([5..10], [1..6])\n// true\n\noverlaps((3..7], [1..4])\n// true\n\noverlaps([1..3], (3..6])\n// false\n\noverlaps((5..8], [1..5))\n// false\n\noverlaps([4..10], [1..5))\n// treu\n</code></pre>\n'},{name:"overlaps before()",description:'<ul>\n<li>parameters:<ul>\n<li><code>range1</code>: range</li>\n<li><code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">overlaps before([1..5], [4..10])\n// true\n\noverlaps before([3..4], [1..2])\n// false\n\noverlaps before([1..3], (3..5])\n// false\n\noverlaps before([1..5), (3..8])\n// true\n\noverlaps before([1..5), [5..10])\n// false\n</code></pre>\n'},{name:"overlaps after()",description:'<ul>\n<li>parameters:<ul>\n<li><code>range1</code>: range</li>\n<li><code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">overlaps after([4..10], [1..5])\n// true\n\noverlaps after([3..4], [1..2])\n// false\n\noverlaps after([3..5], [1..3))\n// false\n\noverlaps after((5..8], [1..5))\n// false\n\noverlaps after([4..10], [1..5))\n// true\n</code></pre>\n'},{name:"finishes()",description:'<ul>\n<li>parameters:<ul>\n<li><code>point</code>: any, <code>range</code>: range</li>\n<li>or <code>range1</code>, <code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">finishes(5, [1..5])\n// true\n\nfinishes(10, [1..7])\n// false\n\nfinishes([3..5], [1..5])\n// true\n\nfinishes((1..5], [1..5))\n// false\n\nfinishes([5..10], [1..10))\n// false\n</code></pre>\n'},{name:"finished by()",description:'<ul>\n<li>parameters:<ul>\n<li><code>range</code>: range, <code>point</code>: any</li>\n<li>or <code>range1</code>, <code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">finishes by([5..10], 10)\n// true\n\nfinishes by([3..4], 2)\n// false\n\nfinishes by([3..5], [1..5])\n// true\n\nfinishes by((5..8], [1..5))\n// false\n\nfinishes by([5..10], (1..10))\n// true\n</code></pre>\n'},{name:"includes()",description:'<ul>\n<li>parameters:<ul>\n<li><code>range</code>: range, <code>point</code>: any</li>\n<li>or <code>range1</code>, <code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">includes([5..10], 6)\n// true\n\nincludes([3..4], 5)\n// false\n\nincludes([1..10], [4..6])\n// true\n\nincludes((5..8], [1..5))\n// false\n\nincludes([1..10], [1..5))\n// true\n</code></pre>\n'},{name:"during()",description:'<ul>\n<li>parameters:<ul>\n<li><code>point</code>: any, <code>range</code>: range</li>\n<li>or <code>range1</code>, <code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">during(5, [1..10])\n// true\n\nduring(12, [1..10])\n// false\n\nduring(1, (1..10])\n// false\n\nduring([4..6], [1..10))\n// true\n\nduring((1..5], (1..10])\n// true\n</code></pre>\n'},{name:"starts()",description:'<ul>\n<li>parameters:<ul>\n<li><code>point</code>: any, <code>range</code>: range</li>\n<li>or <code>range1</code>, <code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">starts(1, [1..5])\n// true\n\nstarts(1, (1..8])\n// false\n\nstarts((1..5], [1..5])\n// false\n\nstarts([1..10], [1..10])\n// true\n\nstarts((1..10), (1..10))\n// true\n</code></pre>\n'},{name:"started by()",description:'<ul>\n<li>parameters:<ul>\n<li><code>range</code>: range, <code>point</code>: any</li>\n<li>or <code>range1</code>, <code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">started by([1..10], 1)\n// true\n\nstarted by((1..10], 1)\n// false\n\nstarted by([1..10], [1..5])\n// true\n\nstarted by((1..10], [1..5))\n// false\n\nstarted by([1..10], [1..10))\n// true\n</code></pre>\n'},{name:"coincides()",description:'<ul>\n<li>parameters:<ul>\n<li><code>point1</code>, <code>point2</code>: any</li>\n<li>or <code>range1</code>, <code>range2</code>: range</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">coincides(5, 5)\n// true\n\ncoincides(3, 4)\n// false\n\ncoincides([1..5], [1..5])\n// true\n\ncoincides((1..5], [1..5))\n// false\n\ncoincides([1..5], [2..6])\n// false\n</code></pre>\n'},{name:"substring()",description:'<ul>\n<li>parameters:<ul>\n<li><code>string</code>: string</li>\n<li><code>start position</code>: number</li>\n<li>(optional) <code>length</code>: number</li>\n</ul>\n</li>\n<li>result: string</li>\n</ul>\n<pre><code class="language-feel">substring("foobar",3)\n// "obar"\n\nsubstring("foobar",3,3)\n// "oba"\n</code></pre>\n'},{name:"string length()",description:'<ul>\n<li>parameters:<ul>\n<li><code>string</code>: string</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">string length("foo")\n// 3\n</code></pre>\n'},{name:"upper case()",description:'<ul>\n<li>parameters:<ul>\n<li><code>string</code>: string</li>\n</ul>\n</li>\n<li>result: string</li>\n</ul>\n<pre><code class="language-feel">upper case("aBc4")\n// "ABC4"\n</code></pre>\n'},{name:"lower case()",description:'<ul>\n<li>parameters:<ul>\n<li><code>string</code>: string</li>\n</ul>\n</li>\n<li>result: string</li>\n</ul>\n<pre><code class="language-feel">lower case("aBc4")\n// "abc4"\n</code></pre>\n'},{name:"substring before()",description:'<ul>\n<li>parameters:<ul>\n<li><code>string</code>: string</li>\n<li><code>match</code>: string</li>\n</ul>\n</li>\n<li>result: string</li>\n</ul>\n<pre><code class="language-feel">substring before("foobar", "bar")\n// "foo"\n</code></pre>\n'},{name:"substring after()",description:'<ul>\n<li>parameters:<ul>\n<li><code>string</code>: string</li>\n<li><code>match</code>: string</li>\n</ul>\n</li>\n<li>result: string</li>\n</ul>\n<pre><code class="language-feel">substring after("foobar", "ob")\n// "ar"\n</code></pre>\n'},{name:"contains()",description:'<ul>\n<li>parameters:<ul>\n<li><code>string</code>: string</li>\n<li><code>match</code>: string</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">contains("foobar", "of")\n// false\n</code></pre>\n'},{name:"starts with()",description:'<ul>\n<li>parameters:<ul>\n<li><code>input</code>: string</li>\n<li><code>match</code>: string</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">starts with("foobar", "fo")\n// true\n</code></pre>\n'},{name:"ends with()",description:'<ul>\n<li>parameters:<ul>\n<li><code>input</code>: string</li>\n<li><code>match</code>: string</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">ends with("foobar", "r")\n// true\n</code></pre>\n'},{name:"matches()",description:'<ul>\n<li>parameters:<ul>\n<li><code>input</code>: string</li>\n<li><code>pattern</code>: string (regular expression)</li>\n</ul>\n</li>\n<li>result: boolean</li>\n</ul>\n<pre><code class="language-feel">matches("foobar", "^fo*bar")\n// true\n</code></pre>\n'},{name:"replace()",description:'<ul>\n<li>parameters:<ul>\n<li><code>input</code>: string</li>\n<li><code>pattern</code>: string (regular expression)</li>\n<li><code>replacement</code>: string (e.g. <code>$1</code> returns the first match group)</li>\n<li>(optional) <code>flags</code>: string ("s", "m", "i", "x")</li>\n</ul>\n</li>\n<li>result: string</li>\n</ul>\n<pre><code class="language-feel">replace("abcd", "(ab)|(a)", "[1=$1][2=$2]")\n// "[1=ab][2=]cd"\n\nreplace("0123456789", "(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3")\n// "(012) 345-6789"\n</code></pre>\n'},{name:"split()",description:'<ul>\n<li>parameters:<ul>\n<li><code>string</code>: string</li>\n<li><code>delimiter</code>: string (regular expression)</li>\n</ul>\n</li>\n<li>result: list of strings</li>\n</ul>\n<pre><code class="language-feel">split("John Doe", "\\s" )\n// ["John", "Doe"]\n\nsplit("a;b;c;;", ";")\n// ["a", "b", "c", "", ""]\n</code></pre>\n'},{name:"extract()",description:'<p>Returns all matches of the pattern in the given string. Returns an empty list if the pattern doesn't\nmatch.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>string</code>: string</li>\n<li><code>pattern</code>: string (regular expression)</li>\n</ul>\n</li>\n<li>result: list of strings</li>\n</ul>\n<pre><code class="language-feel">extract("references are 1234, 1256, 1378", "12[0-9]*")\n// ["1234","1256"]\n</code></pre>\n'},{name:"now()",description:'<p>Returns the current date and time including the timezone.</p>\n<ul>\n<li>parameters: no</li>\n<li>result: date-time with timezone</li>\n</ul>\n<pre><code class="language-feel">now()\n// date and time("2020-07-31T14:27:30@Europe/Berlin")\n</code></pre>\n'},{name:"today()",description:'<p>Returns the current date.</p>\n<ul>\n<li>parameters: no</li>\n<li>result: date</li>\n</ul>\n<pre><code class="language-feel">today()\n// date("2020-07-31")\n</code></pre>\n'},{name:"day of week()",description:'<p>Returns the day of the week according to the Gregorian calendar. Note that it always returns the English name of the day.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>date</code>: date/date-time</li>\n</ul>\n</li>\n<li>result: string</li>\n</ul>\n<pre><code class="language-feel">day of week(date("2019-09-17"))\n// "Tuesday"\n</code></pre>\n'},{name:"day of year()",description:'<p>Returns the Gregorian number of the day within the year.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>date</code>: date/date-time</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">day of year(date("2019-09-17"))\n// 260\n</code></pre>\n'},{name:"week of year()",description:'<p>Returns the Gregorian number of the week within the year, according to ISO 8601.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>date</code>: date/date-time</li>\n</ul>\n</li>\n<li>result: number</li>\n</ul>\n<pre><code class="language-feel">week of year(date("2019-09-17"))\n// 38\n</code></pre>\n'},{name:"month of year()",description:'<p>Returns the month of the week according to the Gregorian calendar. Note that it always returns the English name of the month.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>date</code>: date/date-time</li>\n</ul>\n</li>\n<li>result: string</li>\n</ul>\n<pre><code class="language-feel">month of year(date("2019-09-17"))\n// "September"\n</code></pre>\n'},{name:"abs()",description:'<p>Returns the absolute value of a given duration.</p>\n<ul>\n<li>parameters:<ul>\n<li><code>n</code>: days-time-duration/years-months-duration</li>\n</ul>\n</li>\n<li>result: duration</li>\n</ul>\n<pre><code class="language-feel">abs(duration("-PT5H"))\n// "duration("PT5H")"\n\nabs(duration("PT5H"))\n// "duration("PT5H")"\n\nabs(duration("-P2M"))\n// duration("P2M")\n</code></pre>\n'}].map((e=>AR(e.name.replace("()","(#{1})"),{label:e.name,type:"function",info:()=>Oe(`<div class="description">${e.description}<div>`),boost:-1})));var Tz=e=>{let t=qM(e.state).resolve(e.pos,-1),n=t.nextSibling;return Pz(t)||n&&n.from===e.pos&&Pz(n)?e.explicit?{from:e.pos,options:Sz}:null:t.parent&&"VariableName"!==t.parent.name||kz(t)?null:{from:t.from,options:Sz}};const $z=FP.define();var Cz=e=>{const t=e.state.facet($z)[0],n=qM(e.state).resolve(e.pos,-1);if(!kz(n))return;const i=function(e){for(;e;){if("PathExpression"===e.name)return e;e=e.parent}}(n),r=n===i?e.pos:n.from,o=Mz(i,e);let s=t;for(var a=0;a<o.length-1;a++){var l=s.find((e=>e.name===o[a].name));if(!l)return null;if("optional"!==l.isList&&!!l.isList!==o[a].isList)return;s=l.entries}if(!s)return;s=s.map((e=>({label:e.name,type:"variable",info:e.info,detail:e.detail})));return{from:r,options:s}};function Mz(e,t){let n=[];for(let i=e.firstChild;i;i=i.nextSibling)"PathExpression"===i.name?n.push(...Mz(i,t)):"FilterExpression"===i.name?n.push(...Az(i,t)):n.push({name:Rz(i,t),isList:!1});return n}function Az(e,t){const n=e.firstChild;if("PathExpression"===n.name){const e=Mz(n,t);return e[e.length-1].isList=!0,e}return[{name:Rz(n,t),isList:!0}]}function Rz(e,t){return t.state.sliceDoc(e.from,e.to)}var Dz=e=>{const t=e.state.facet($z)[0].map((e=>({label:e.name,type:"variable",info:e.info,detail:e.detail})));let n=qM(e.state).resolve(e.pos,-1),i=n.nextSibling;if(Pz(n)||i&&i.from===e.pos&&Pz(i))return e.explicit?{from:e.pos,options:t}:null;const r={from:n.from,options:t};return n.parent&&"VariableName"!==n.parent.name||kz(n)?null:r};function jz(){return[ZR({override:[Dz,Tz,QA(_z.map((e=>({...e,boost:-1})))),Cz]})]}var qz=[wj(UN())];var Bz=[DC.theme({"& .cm-content":{padding:"0px"},"& .cm-line":{padding:"0px"},"&.cm-editor.cm-focused":{outline:"none"},"& .cm-completionInfo":{whiteSpace:"pre-wrap",overflow:"hidden",textOverflow:"ellipsis"},"& .cm-completionInfo > *":{whiteSpace:"normal"},"& .cm-completionInfo ul":{margin:0,paddingLeft:"15px"},"& .cm-completionInfo pre":{marginBottom:0,whiteSpace:"pre-wrap"},"& .cm-completionInfo p":{marginTop:0},"& .cm-completionInfo p:not(:last-of-type)":{marginBottom:0}}),DC.baseTheme({"& .variableName":{color:"#10f"},"& .number":{color:"#164"},"& .string":{color:"#a11"},"& .bool":{color:"#219"},"& .function":{color:"#aa3731",fontWeight:"bold"},"& .control":{color:"#708"}}),gA(hA.define([{tag:cP.variableName,class:"variableName"},{tag:cP.name,class:"variableName"},{tag:cP.number,class:"number"},{tag:cP.string,class:"string"},{tag:cP.bool,class:"bool"},{tag:cP.function(cP.variableName),class:"function"},{tag:cP.function(cP.special(cP.variableName)),class:"function"},{tag:cP.controlKeyword,class:"control"},{tag:cP.operatorKeyword,class:"control"}]))];const Nz=new ik;function zz({container:e,tooltipContainer:t,onChange:n=(()=>{}),onKeyDown:i=(()=>{}),onLint:r=(()=>{}),readOnly:o=!1,value:s="",variables:a=[]}){const l=DC.updateListener.of((e=>{e.docChanged&&n(e.state.doc.toString())})),c=DC.updateListener.of((e=>{const t=e.transactions.flatMap((e=>e.effects)).filter((e=>e.is(hj)));if(!t.length)return;const n=t.flatMap((e=>e.value));r(n)})),p=DC.domEventHandlers({keydown:i});"string"==typeof t&&(t=document.querySelector(t));const u=t?YC({tooltipSpace:function(){return t.getBoundingClientRect()}}):[],h=[Nz.of($z.of(a)),jz(),TA(),l,zR(),cA(),p,IC.of([...rj]),new UM(Ez,[]),qz,c,u,Bz];return o&&h.push(DC.editable.of(!1)),this._cmEditor=new DC({state:Ck.create({doc:s,extensions:h}),parent:e}),this}zz.prototype.setValue=function(e){this._cmEditor.dispatch({changes:{from:0,to:this._cmEditor.state.doc.length,insert:e}})},zz.prototype.focus=function(e){const t=this._cmEditor;if(t.contentDOM.focus(),t.focus(),"number"==typeof e){const n=t.state.doc.length;t.dispatch({selection:{anchor:e<=n?e:n}})}},zz.prototype.getSelection=function(){return this._cmEditor.state.selection},zz.prototype.setVariables=function(e){this._cmEditor.dispatch({effects:Nz.reconfigure($z.of(e))})};var Qz=function(e){return O_("svg",{...e,children:O_("path",{fillRule:"evenodd",d:"m11.657 8-4.95 4.95a1 1 0 0 1-1.414-1.414L8.828 8 5.293 4.464A1 1 0 1 1 6.707 3.05L11.657 8Z"})})};Qz.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var Xz=function(e){return O_("svg",{...e,children:O_("path",{fillRule:"evenodd",d:"M9 13V9h4a1 1 0 0 0 0-2H9V3a1 1 0 1 0-2 0v4H3a1 1 0 1 0 0 2h4v4a1 1 0 0 0 2 0Z"})})};Xz.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var Iz=function(e){return O_("svg",{...e,children:O_("path",{fillRule:"evenodd",d:"M12 6v7c0 1.1-.4 1.55-1.5 1.55h-5C4.4 14.55 4 14.1 4 13V6h8Zm-1.5 1.5h-5v4.3c0 .66.5 1.2 1.111 1.2H9.39c.611 0 1.111-.54 1.111-1.2V7.5ZM13 3h-2l-1-1H6L5 3H3v1.5h10V3Z"})})};Iz.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var Lz=function(e){return O_("svg",{...e,children:O_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.637 12.637v-4.72h1.362v4.721c0 .36-.137.676-.411.95-.275.275-.591.412-.95.412H3.362c-.38 0-.703-.132-.967-.396A1.315 1.315 0 0 1 2 12.638V3.362c0-.38.132-.703.396-.967S2.982 2 3.363 2h4.553v1.363H3.363v9.274h9.274ZM14 2H9.28l-.001 1.362h2.408L5.065 9.984l.95.95 6.622-6.622v2.409H14V2Z",fill:"#818798"})})};Lz.defaultProps={width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Vz=function(e){return O_("svg",{...e,children:O_("path",{d:"M3.617 11.99c-.137.684-.392 1.19-.765 1.518-.362.328-.882.492-1.558.492H0l.309-1.579h1.264l1.515-7.64h-.912l.309-1.579h.911l.236-1.191c.137-.685.387-1.192.75-1.52C4.753.164 5.277 0 5.953 0h1.294L6.94 1.579H5.675l-.323 1.623h1.264l-.309 1.579H5.043l-1.426 7.208ZM5.605 11.021l3.029-4.155L7.28 3.202h2.073l.706 2.547h.176l1.691-2.547H14l-3.014 4.051 1.338 3.768H10.25l-.706-2.606H9.37L7.678 11.02H5.605Z",fill:"currentcolor"})})};function Fz(e){const{element:t,headerProvider:n}=e,{getElementIcon:i,getDocumentationRef:r,getElementLabel:o,getTypeLabel:s}=n,a=o(t),l=s(t),c=r&&r(t),p=i(t);return O_("div",{class:"bio-properties-panel-header",children:[O_("div",{class:"bio-properties-panel-header-icon",children:p&&O_(p,{width:"32",height:"32",viewBox:"0 0 32 32"})}),O_("div",{class:"bio-properties-panel-header-labels",children:[O_("div",{title:l,class:"bio-properties-panel-header-type",children:l}),a?O_("div",{title:a,class:"bio-properties-panel-header-label",children:a}):null]}),O_("div",{class:"bio-properties-panel-header-actions",children:c?O_("a",{rel:"noopener",class:"bio-properties-panel-header-link",href:c,title:"Open documentation",target:"_blank",children:O_(Lz,{})}):null})]})}Vz.defaultProps={width:"14",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const Uz=Pw({description:{},getDescriptionForId:()=>{}}),Hz=Pw({errors:{}}),Yz=Pw({eventBus:null}),Wz=Pw({layout:{},setLayout:()=>{},getLayoutForKey:()=>{},setLayoutForKey:()=>{}});function Gz(e){const{errors:t}=Vw(Hz);return t[e]}function Zz(e,t,n){const i=Vw(Yz);n||({eventBus:n}=i);const r=Xw(!1);n&&!r.current&&n.on(e,t),zw((()=>(n&&r.current&&n.on(e,t),r.current=!0,()=>{n&&n.off(e,t)})),[t,e,n])}function Kz(e,t){const{getLayoutForKey:n,setLayoutForKey:i}=Vw(Wz);return[n(e,t),Lw((t=>{i(e,t)}),[i])]}function Jz(e){const t=Xw();return zw((()=>{t.current=e})),t.current}function eQ(e){const{onShow:t}=Vw(Wz),n=Xw(),i=Xw(!1),r=Lw((n=>{n.id===e&&(t(),i.current||(i.current=!0))}),[e]);return zw((()=>{i.current&&n.current&&(h(n.current.focus)&&n.current.focus(),h(n.current.select)&&n.current.select(),i.current=!1)})),Zz("propertiesPanel.showEntry",r),n}function tQ(e,t,n){const[i,r]=Bw(xe(t)),o=Lw((()=>{const e=xe(t);e!==i&&r(e)}),[t,i]);zw((()=>{o()}),[o]),Zz("propertiesPanel.attach",o),Zz("propertiesPanel.detach",o),zw((()=>{const t=IntersectionObserver;if(!t)return;if(!e.current||!i)return;const r=new t((e=>{0!==i.scrollHeight&&e.forEach((e=>{e.intersectionRatio<1?n(!0):1===e.intersectionRatio&&n(!1)}))}),{root:i,rootMargin:"0px 0px 999999% 0px",threshold:[1]});return r.observe(e.current),()=>{r.unobserve(e.current)}}),[e.current,i,n])}function nQ(e){const t=Xw(e);return t.current=e,Lw(((...e)=>t.current(...e)),[])}function iQ(e){const{element:t,entries:n=[],id:i,label:r,shouldOpen:o=!1}=e,s=Xw(null),[a,l]=Kz(["groups",i,"open"],o),c=Lw((()=>l(!0)),[l]),[p,u]=Bw(!1),[d,f]=Bw(!1);zw((()=>{const e=n.find((e=>{const{id:t,isEdited:n}=e,i=xe(`[data-entry-id="${t}"]`);if(!h(n)||!i)return!1;return n(xe(".bio-properties-panel-input",i))}));u(e)}),[n]),tQ(s,"div.bio-properties-panel-scroll-container",f);const m={...Vw(Wz),onShow:c};return O_("div",{class:"bio-properties-panel-group","data-group-id":"group-"+i,ref:s,children:[O_("div",{class:w_("bio-properties-panel-group-header",p?"":"empty",a?"open":"",d&&a?"sticky":""),onClick:()=>l(!a),children:[O_("div",{title:r,class:"bio-properties-panel-group-header-title",children:r}),O_("div",{class:"bio-properties-panel-group-header-buttons",children:[p&&O_(rQ,{}),O_("button",{title:"Toggle section",class:"bio-properties-panel-group-header-button bio-properties-panel-arrow",children:O_(Qz,{class:a?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})})]})]}),O_("div",{class:w_("bio-properties-panel-group-entries",a?"open":""),children:O_(Wz.Provider,{value:m,children:n.map((e=>{const{component:n,id:i}=e;return iw(n,{...e,element:t,key:i})}))})})]})}function rQ(){return O_("div",{title:"Section contains data",class:"bio-properties-panel-dot"})}function oQ(e){const{text:t,icon:n}=e;return O_("div",{class:"bio-properties-panel open",children:O_("section",{class:"bio-properties-panel-placeholder",children:[n&&O_(n,{class:"bio-properties-panel-placeholder-icon"}),O_("p",{class:"bio-properties-panel-placeholder-text",children:t})]})})}const sQ={},aQ={};function lQ(e){const{element:t,headerProvider:n,placeholderProvider:i,groups:r,layoutConfig:o,layoutChanged:s,descriptionConfig:a,descriptionLoaded:l,eventBus:p}=e,[u,h]=Bw(cQ(o));!function(e,t){const n=Xw(!1);Qw((()=>{if(n.current)return e();n.current=!0}),t)}((()=>{const e=cQ(o);h(e)}),[o]),zw((()=>{"function"==typeof s&&s(u)}),[u,s]);const d={layout:u,setLayout:h,getLayoutForKey:(e,t)=>X(u,e,t),setLayoutForKey:(e,t)=>{const n=z({},u);Q(n,e,t),h(n)}},f=Iw((()=>function(e={}){return{...aQ,...e}}(a)),[a]);zw((()=>{"function"==typeof l&&l(f)}),[f,l]);const m={description:f,getDescriptionForId:(e,t)=>f[e]&&f[e](t)},[g,y]=Bw({});Zz("propertiesPanel.setErrors",(({errors:e})=>y(e)),p);const v={errors:g},b={eventBus:p},O={element:t};return i&&!t?O_(oQ,{...i.getEmpty()}):i&&c(t)?O_(oQ,{...i.getMultiple()}):O_(Wz.Provider,{value:O,children:O_(Hz.Provider,{value:v,children:O_(Uz.Provider,{value:m,children:O_(Wz.Provider,{value:d,children:O_(Yz.Provider,{value:b,children:O_("div",{class:"bio-properties-panel",children:[O_(Fz,{element:t,headerProvider:n}),O_("div",{class:"bio-properties-panel-scroll-container",children:r.map((e=>{const{component:n=iQ,id:i}=e;return iw(n,{...e,key:i,element:t})}))})]})})})})})})}function cQ(e={},t=sQ){return{...t,...e}}function pQ(e){const{class:t,children:n,menuItems:i=[]}=e,r=Xw(null),o=Xw(null),[s,a]=Bw(!1),l=()=>a(!1);function c(e,t){e.stopPropagation(),l(),t()}var p,u;return p=[r.current],u=()=>l(),zw((()=>{function e(e){p.some((t=>t&&t.contains(e.target)))||u()}return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})}),[...p,u]),O_("div",{class:w_("bio-properties-panel-dropdown-button",{open:s},t),onClick:function(e){o.current&&o.current.contains(e.target)||(e.stopPropagation(),a((e=>!e)))},ref:r,children:[n,O_("div",{class:"bio-properties-panel-dropdown-button__menu",ref:o,children:i.map(((e,t)=>O_(uQ,{onClick:c,item:e},t)))})]})}function uQ({item:e,onClick:t}){return e.separator?O_("div",{class:"bio-properties-panel-dropdown-button__menu-item bio-properties-panel-dropdown-button__menu-item--separator"}):e.action?O_("button",{class:"bio-properties-panel-dropdown-button__menu-item bio-properties-panel-dropdown-button__menu-item--actionable",onClick:n=>t(n,e.action),children:e.entry}):O_("div",{class:"bio-properties-panel-dropdown-button__menu-item",children:e.entry})}function hQ(e){const{children:t=null,class:n,onClick:i=(()=>{}),...r}=e;return O_("button",{...r,onClick:i,class:w_("bio-properties-panel-group-header-button",n),children:t})}function dQ(e){const{element:t,entries:n=[],id:i,label:r,open:o,remove:s}=e,[a,l]=Bw(o),{onShow:c}=Vw(Wz),p={...Vw(Wz),onShow:Lw((()=>{l(!0),h(c)&&c()}),[c,l])},u="<empty>";return O_("div",{"data-entry-id":i,class:w_("bio-properties-panel-collapsible-entry",a?"open":""),children:[O_("div",{class:"bio-properties-panel-collapsible-entry-header",onClick:()=>l(!a),children:[O_("div",{title:r||u,class:w_("bio-properties-panel-collapsible-entry-header-title",!r&&"empty"),children:r||u}),O_("button",{title:"Toggle list item",class:"bio-properties-panel-arrow bio-properties-panel-collapsible-entry-arrow",children:O_(Qz,{class:a?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})}),s?O_("button",{title:"Delete item",class:"bio-properties-panel-remove-entry",onClick:s,children:O_(Iz,{})}):null]}),O_("div",{class:w_("bio-properties-panel-collapsible-entry-entries",a?"open":""),children:O_(Wz.Provider,{value:p,children:n.map((e=>{const{component:n,id:i}=e;return iw(n,{...e,element:t,key:i})}))})})]})}function fQ(e){const{autoFocusEntry:t,autoOpen:n}=e;return zw((()=>{if(n&&t){const e=xe(`[data-entry-id="${t}"]`),n=xe(".bio-properties-panel-input",e);n&&(h(n.select)?n.select():h(n.focus)&&n.focus())}}),[n,t]),O_("div",{class:"bio-properties-panel-list-item",children:O_(dQ,{...e,open:n})})}const mQ=()=>{};function gQ(e){const{add:t,element:n,id:i,items:r,label:o,shouldOpen:s=!0,shouldSort:a=!0}=e,l=Xw(null),[c,p]=Kz(["groups",i,"open"],!1),[u,h]=Bw(!1),d=Lw((()=>p(!0)),[p]),[f,m]=Bw([]),[g,y]=Bw(!1),[v,b]=Bw(!1),O=Jz(r),x=Jz(n),w=n!==x,_=!w&&(a||s);w&&m(bQ(a?yQ(r):r)),zw((()=>{O&&a||m(bQ(r))}),[r,n]),zw((()=>{if(b(!1),_&&O&&r.length>O.length){let e=[];r.forEach((t=>{f.includes(t.id)||e.push(t.id)}));let t=f;v&&!c&&s&&E(),!c&&a&&(t=bQ(yQ(r))),t=t.filter((t=>!e.includes(t))),a?t.unshift(...e):t.push(...e),m(t),y(v)}else y(!1)}),[r,c,_,v]),zw((()=>{a&&c&&!g&&m(bQ(yQ(r)))}),[c,a]),zw((()=>{if(_&&O&&r.length<O.length){let e=[];f.forEach((t=>{vQ(r,t)&&e.push(t)})),m(e)}}),[r,_]),tQ(l,"div.bio-properties-panel-scroll-container",h);const E=()=>p(!c),P=!!r.length,k={...Vw(Wz),onShow:d};return O_("div",{class:"bio-properties-panel-group","data-group-id":"group-"+i,ref:l,children:[O_("div",{class:w_("bio-properties-panel-group-header",P?"":"empty",P&&c?"open":"",u&&c?"sticky":""),onClick:P?E:mQ,children:[O_("div",{title:o,class:"bio-properties-panel-group-header-title",children:o}),O_("div",{class:"bio-properties-panel-group-header-buttons",children:[t?O_("button",{title:"Create new list item",class:"bio-properties-panel-group-header-button bio-properties-panel-add-entry",onClick:e=>{b(!0),t(e)},children:[O_(Xz,{}),P?null:O_("span",{class:"bio-properties-panel-add-entry-label",children:"Create"})]}):null,P?O_("div",{title:`List contains ${r.length} item${1!=r.length?"s":""}`,class:"bio-properties-panel-list-badge",children:r.length}):null,P?O_("button",{title:"Toggle section",class:"bio-properties-panel-group-header-button bio-properties-panel-arrow",children:O_(Qz,{class:c?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})}):null]})]}),O_("div",{class:w_("bio-properties-panel-list",c&&P?"open":""),children:O_(Wz.Provider,{value:k,children:f.map(((e,t)=>{const i=vQ(r,e);if(!i)return;const{id:o}=i,s=g;return iw(fQ,{...i,autoOpen:s,element:n,index:t,key:o})}))})})]})}function yQ(e){return M(e,(e=>e.label.toLowerCase()))}function vQ(e,t){return g(e,(e=>e.id===t))}function bQ(e){return e.map((e=>e.id))}function OQ(e){const{element:t,forId:n,value:i}=e,r=function(e,t){const{getDescriptionForId:n}=Vw(Uz);return n(e,t)}(n,t),o=i||r;if(o)return O_("div",{class:"bio-properties-panel-description",children:o})}function xQ(e){const{id:t,label:n,onChange:i,disabled:r,value:o=!1,onFocus:s,onBlur:a}=e,[l,c]=Bw(o);zw((()=>{o!==l&&c(o)}),[o]);return O_("div",{class:"bio-properties-panel-checkbox",children:[O_("input",{ref:eQ(t),id:EQ(t),name:t,onFocus:s,onBlur:a,type:"checkbox",class:"bio-properties-panel-input",onChange:e=>{(({target:e})=>{i(e.checked)})(e),c(e.target.value)},checked:l,disabled:r}),O_("label",{for:EQ(t),class:"bio-properties-panel-label",children:n})]})}function wQ(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:s,disabled:a,onFocus:l,onBlur:c}=e,p=o(t),u=Gz(n);return O_("div",{class:"bio-properties-panel-entry bio-properties-panel-checkbox-entry","data-entry-id":n,children:[O_(xQ,{disabled:a,id:n,label:r,onChange:s,onFocus:l,onBlur:c,value:p},t),u&&O_("div",{class:"bio-properties-panel-error",children:u}),O_(OQ,{forId:n,element:t,value:i})]})}function _Q(e){return e&&!!e.checked}function EQ(e){return`bio-properties-panel-${e}`}n_(((e,t)=>{const{onInput:n,disabled:i,tooltipContainer:r,enableGutters:o,value:s,onLint:a=(()=>{}),contentAttributes:l={},hostLanguage:c=null,singleLine:p=!1}=e,u=Xw(),[h,d]=Bw(),[f,m]=Bw(s||"");!function(e,t){const[n,i]=Bw(void 0);t.current=Iw((()=>({focus:t=>{e?e.focus(t):(void 0===t&&(t=1/0),i(t))}})),[e]),zw((()=>{void 0!==n&&e&&(e.focus(n),i(!1))}),[e,n])}(h,t);const g=nQ((e=>{n(e),m(e)}));zw((()=>{let e;return e=new wz({container:u.current,onChange:g,value:f,onLint:a,contentAttributes:l,tooltipContainer:r,enableGutters:o,hostLanguage:c,singleLine:p}),d(e),()=>{a([]),u.current.innerHTML="",d(null)}}),[]),zw((()=>{h&&s!==f&&(h.setValue(s),m(s))}),[s]);return O_("div",{name:e.name,class:w_("bio-properties-panel-feelers-editor bio-properties-panel-input",f?"edited":null,i?"disabled":null),ref:u,onClick:()=>{t.current.focus()}})}));const PQ=n_(((e,t)=>{const{value:n,onInput:i,onFeelToggle:r,onLint:o=(()=>{}),disabled:s,tooltipContainer:a,variables:l}=e,c=Xw(),[p,u]=Bw(),[h,d]=Bw(n||"");!function(e,t){const[n,i]=Bw(void 0);t.current=Iw((()=>({focus:t=>{e?e.focus(t):(void 0===t&&(t=1/0),i(t))}})),[e]),zw((()=>{void 0!==n&&e&&(e.focus(n),i(!1))}),[e,n])}(p,t);const f=nQ((e=>{i(e),d(e)}));zw((()=>{let e;return e=new zz({container:c.current,onChange:f,onKeyDown:t=>{if("Backspace"!==t.key||!e)return;const n=e.getSelection(),i=n.ranges[n.mainIndex];0===i.from&&0===i.to&&r()},onLint:o,tooltipContainer:a,value:h,variables:l}),u(e),()=>{o([]),c.current.innerHTML="",u(null)}}),[]),zw((()=>{p&&n!==h&&(p.setValue(n),d(n))}),[n]),zw((()=>{p&&p.setVariables(l)}),[l]);return O_("div",{class:w_("bio-properties-panel-feel-editor-container",s?"disabled":null),children:O_("div",{name:e.name,class:w_("bio-properties-panel-input",h?"edited":null),ref:c,onClick:()=>{t.current.focus()}})})}));function kQ(e){const{active:t}=e;return t?O_("span",{class:"bio-properties-panel-feel-indicator",children:"="}):null}const SQ=()=>{};function TQ(e){const{feel:t=!1,active:n,disabled:i=!1,onClick:r=SQ}=e,o=`Click to ${n?"remove":"set a"} dynamic value with FEEL expression`;return O_("button",{class:w_("bio-properties-panel-feel-icon",n?"active":null,"required"===t?"required":"optional"),onClick:e=>{r(e),e.pointerType||e.stopPropagation()},disabled:"required"===t||i,title:"required"===t?"FEEL expression is mandatory":o,children:O_(Vz,{})})}function $Q(e){const{id:t,label:n,onInput:i,value:r,switcherLabel:o,inline:s,onFocus:a,onBlur:l,inputRef:c}=e,[p,u]=Bw(r);return zw((()=>{r!==p&&u(r)}),[r]),O_("div",{class:w_("bio-properties-panel-toggle-switch",{inline:s}),children:[O_("label",{class:"bio-properties-panel-label",for:MQ(t),children:n}),O_("div",{class:"bio-properties-panel-field-wrapper",children:[O_("label",{class:"bio-properties-panel-toggle-switch__switcher",children:[O_("input",{ref:c,id:MQ(t),class:"bio-properties-panel-input",type:"checkbox",onFocus:a,onBlur:l,name:t,onInput:e=>{(async()=>{i(!r)})(),u(e.target.value)},checked:!!p}),O_("span",{class:"bio-properties-panel-toggle-switch__slider"})]}),o&&O_("p",{class:"bio-properties-panel-toggle-switch__label",children:o})]})]})}function CQ(e){return e&&!!e.checked}function MQ(e){return`bio-properties-panel-${e}`}function AQ(e){const{debounce:t,disabled:n,displayLabel:i=!0,id:r,inputRef:o,label:s,max:a,min:l,onInput:c,step:p,value:u="",onFocus:h,onBlur:d}=e,[f,m]=Bw(u),g=Iw((()=>t((e=>{const{validity:t,value:n}=e.target;t.valid&&c(n?parseFloat(n):void 0)}))),[c,t]);return zw((()=>{u!==f&&m(u)}),[u]),O_("div",{class:"bio-properties-panel-numberfield",children:[i&&O_("label",{for:RQ(r),class:"bio-properties-panel-label",children:s}),O_("input",{id:RQ(r),ref:o,type:"number",name:r,spellCheck:"false",autoComplete:"off",disabled:n,class:"bio-properties-panel-input",max:a,min:l,onInput:e=>{g(e),m(e.target.value)},onFocus:h,onBlur:d,step:p,value:f})]})}function RQ(e){return`bio-properties-panel-${e}`}const DQ=()=>{};function jQ(e){const{debounce:t,id:n,label:i,onInput:r,onError:o,feel:s,value:a="",disabled:l=!1,variables:c,tooltipContainer:p,OptionalComponent:u=qQ}=e,[h,f]=Bw(a),m=eQ(n),g=Xw(),y=d(h)&&h.startsWith("=")||"required"===s,v=d(h)&&h.startsWith("=")?h.substring(1):h,[b,O]=Bw(void 0),x=(e=0)=>{const t=g.current.contains(document.activeElement)?document.activeElement.selectionStart:1/0;O(t+e)},w=Iw((()=>t((e=>{r(e)}))),[r,t]),_=e=>{f(e),w(e&&"="!==e?e:void 0)},E=nQ((()=>{"required"!==s&&_(y?v:"="+h)})),P=e=>{y&&(e="="+e),e!==h&&(_(e),!y&&d(e)&&e.startsWith("=")&&x(-1))},k=nQ((e=>{if(!e||!e.length)return void o(void 0);const t=e[0],n=`${t.source}: ${t.message}`;o(n)}));return zw((()=>{void 0!==b&&(m.current.focus(b),O(void 0))}),[b]),zw((()=>{a!==h&&_(a||(y?"=":""))}),[a]),zw((()=>{const e=e=>{y&&e.clipboardData.setData("application/FEEL",e.clipboardData.getData("text"))},t=e=>{if(y)return;e.clipboardData.getData("application/FEEL")&&setTimeout((()=>{E(),x()}))};return g.current.addEventListener("copy",e),g.current.addEventListener("cut",e),g.current.addEventListener("paste",t),()=>{g.current.removeEventListener("copy",e),g.current.removeEventListener("cut",e),g.current.removeEventListener("paste",t)}}),[g,y,E,x]),O_("div",{class:w_("bio-properties-panel-feel-entry",{"feel-active":y}),children:[O_("label",{for:QQ(n),class:"bio-properties-panel-label",onClick:()=>x(),children:[i,O_(TQ,{label:i,feel:s,onClick:E,active:y})]}),O_("div",{class:"bio-properties-panel-feel-container",ref:g,children:[O_(kQ,{active:y,disabled:"optional"!==s||l,onClick:E}),y?O_(PQ,{id:QQ(n),name:n,onInput:P,disabled:l,onFeelToggle:()=>{E(),x(!0)},onLint:k,value:v,variables:c,ref:m,tooltipContainer:p}):O_(u,{...e,onInput:P,contentAttributes:{id:QQ(n),"aria-label":i},value:h,ref:m})]})]})}const qQ=n_(((e,t)=>{const{id:n,disabled:i,onInput:r,value:o,onFocus:s,onBlur:a}=e,l=Xw();return t.current={focus:e=>{const t=l.current;t&&(t.focus(),"number"==typeof e&&(e>o.length&&(e=o.length),t.setSelectionRange(e,e)))}},O_("input",{id:QQ(n),type:"text",ref:l,name:n,spellCheck:"false",autoComplete:"off",disabled:i,class:"bio-properties-panel-input",onInput:e=>r(e.target.value),onFocus:s,onBlur:a,value:o||""})}));n_(((e,t)=>{const{id:n,debounce:i,disabled:r,onInput:o,value:s,min:a,max:l,step:c,onFocus:p,onBlur:u}=e,h=Xw();return t.current={focus:e=>{const t=h.current;t&&(t.focus(),"number"==typeof e&&e!==1/0&&(e>s.length&&(e=s.length),t.setSelectionRange(e,e)))}},O_(AQ,{id:n,debounce:i,disabled:r,displayLabel:!1,inputRef:h,max:l,min:a,onInput:o,step:c,value:s,onFocus:p,onBlur:u})}));const BQ=n_(((e,t)=>{const{id:n,disabled:i,onInput:r,value:o,onFocus:s,onBlur:a}=e,l=Xw();return t.current={focus:()=>{const e=l.current;e&&(e.focus(),e.setSelectionRange(0,0))}},O_("textarea",{id:QQ(n),type:"text",ref:l,name:n,spellCheck:"false",autoComplete:"off",disabled:i,class:"bio-properties-panel-input",onInput:e=>r(e.target.value),onFocus:s,onBlur:a,value:o||"","data-gramm":"false"})}));function NQ(e){const{element:t,id:n,description:i,debounce:r,disabled:o,feel:s,label:a,getValue:l,setValue:c,tooltipContainer:p,hostLanguage:u,singleLine:d,validate:f,show:m=DQ,example:g,variables:y,onFocus:v,onBlur:b}=e,[O,x]=Bw(null),[w,_]=Bw(null),[E,P]=Bw(null);let k=l(t);const S=Jz(k);zw((()=>{if(h(f)){const e=f(k)||null;_(e)}}),[k]);const T=nQ((e=>{let t=null;h(f)&&(t=f(e)||null),t?x(e):e!==k&&c(e),_(t)})),$=Lw((e=>{P(e)}),[]);S===k&&w&&(k=O);const C=Gz(n),M=E||C||w;return O_("div",{class:w_(e.class,"bio-properties-panel-entry",M?"has-error":""),"data-entry-id":n,children:[iw(jQ,{...e,debounce:r,disabled:o,feel:s,id:n,key:t,label:a,onInput:T,onError:$,onFocus:v,onBlur:b,example:g,hostLanguage:u,singleLine:d,show:m,value:k,variables:y,tooltipContainer:p,OptionalComponent:e.OptionalComponent}),M&&O_("div",{class:"bio-properties-panel-error",children:M}),O_(OQ,{forId:n,element:t,value:i})]})}function zQ(e){return!!e&&("checkbox"===e.type?!!e.checked||e.classList.contains("edited"):!!e.value||e.classList.contains("edited"))}function QQ(e){return`bio-properties-panel-${e}`}function XQ(e){const{id:t,label:n,onChange:i,options:r=[],value:o="",disabled:s,onFocus:a,onBlur:l}=e,c=eQ(t),[p,u]=Bw(o);return zw((()=>{o!==p&&u(o)}),[o]),O_("div",{class:"bio-properties-panel-select",children:[O_("label",{for:VQ(t),class:"bio-properties-panel-label",children:n}),O_("select",{ref:c,id:VQ(t),name:t,class:"bio-properties-panel-input",onInput:e=>{(({target:e})=>{i(e.value)})(e),u(e.target.value)},onFocus:a,onBlur:l,value:p,disabled:s,children:r.map(((e,t)=>e.children?O_("optgroup",{label:e.label,children:e.children.map(((e,t)=>O_("option",{value:e.value,disabled:e.disabled,children:e.label},t)))},t):O_("option",{value:e.value,disabled:e.disabled,children:e.label},t)))})]})}function IQ(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:s,getOptions:a,disabled:l,onFocus:c,onBlur:p,validate:u}=e,d=a(t),[f,m]=Bw(null),g=Gz(n),[y,v]=Bw(null);let b=o(t);const O=Jz(b);zw((()=>{if(h(u)){const e=u(b)||null;v(e)}}),[b]);O===b&&y&&(b=f);const x=g||y;return O_("div",{class:w_("bio-properties-panel-entry",x?"has-error":""),"data-entry-id":n,children:[O_(XQ,{id:n,label:r,value:b,onChange:e=>{let t=null;h(u)&&(t=u(e)||null),t?m(e):s(e),v(t)},onFocus:c,onBlur:p,options:d,disabled:l},t),x&&O_("div",{class:"bio-properties-panel-error",children:x}),O_(OQ,{forId:n,element:t,value:i})]})}function LQ(e){return e&&!!e.value}function VQ(e){return`bio-properties-panel-${e}`}function FQ(e){e.style.height="auto",e.style.height=`${e.scrollHeight+2}px`}function UQ(e){const{id:t,label:n,debounce:i,onInput:r,value:o="",disabled:s,monospace:a,onFocus:l,onBlur:c,autoResize:p,rows:u=(p?1:2)}=e,[h,d]=Bw(o),f=eQ(t),m=Iw((()=>i((({target:e})=>r(e.value.length?e.value:void 0)))),[r,i]);return Qw((()=>{p&&FQ(f.current)}),[]),zw((()=>{o!==h&&d(o)}),[o]),O_("div",{class:"bio-properties-panel-textarea",children:[O_("label",{for:WQ(t),class:"bio-properties-panel-label",children:n}),O_("textarea",{ref:f,id:WQ(t),name:t,spellCheck:"false",class:w_("bio-properties-panel-input",a?"bio-properties-panel-input-monospace":"",p?"auto-resize":""),onInput:e=>{m(e),p&&FQ(e.target),d(e.target.value)},onFocus:l,onBlur:c,rows:u,value:h,disabled:s,"data-gramm":"false"})]})}function HQ(e){const{element:t,id:n,description:i,debounce:r,label:o,getValue:s,setValue:a,rows:l,monospace:c,disabled:p,validate:u,onFocus:d,onBlur:f,autoResize:m}=e,[g,y]=Bw(null),v=Gz(n),[b,O]=Bw(null);let x=s(t);const w=Jz(x);zw((()=>{if(h(u)){const e=u(x)||null;O(e)}}),[x]);w===x&&b&&(x=g);const _=v||b;return O_("div",{class:w_("bio-properties-panel-entry",_?"has-error":""),"data-entry-id":n,children:[O_(UQ,{id:n,label:o,value:x,onInput:e=>{let t=null;h(u)&&(t=u(e)||null),t?y(e):a(e),O(t)},onFocus:d,onBlur:f,rows:l,debounce:r,monospace:c,disabled:p,autoResize:m},t),_&&O_("div",{class:"bio-properties-panel-error",children:_}),O_(OQ,{forId:n,element:t,value:i})]})}function YQ(e){return e&&!!e.value}function WQ(e){return`bio-properties-panel-${e}`}function GQ(e){const{debounce:t,disabled:n=!1,id:i,label:r,onInput:o,onFocus:s,onBlur:a,value:l=""}=e,[c,p]=Bw(l||""),u=eQ(i),h=Iw((()=>t((({target:e})=>o(e.value.length?e.value:void 0)))),[o,t]);return zw((()=>{l!==c&&p(l)}),[l]),O_("div",{class:"bio-properties-panel-textfield",children:[O_("label",{for:JQ(i),class:"bio-properties-panel-label",children:r}),O_("input",{ref:u,id:JQ(i),type:"text",name:i,spellCheck:"false",autoComplete:"off",disabled:n,class:"bio-properties-panel-input",onInput:e=>{h(e),p(e.target.value)},onFocus:s,onBlur:a,value:c})]})}function ZQ(e){const{element:t,id:n,description:i,debounce:r,disabled:o,label:s,getValue:a,setValue:l,validate:c,onFocus:p,onBlur:u}=e,[d,f]=Bw(null),m=Gz(n),[g,y]=Bw(null);let v=a(t);const b=Jz(v);zw((()=>{if(h(c)){const e=c(v)||null;y(e)}}),[v]);b===v&&g&&(v=d);const O=m||g;return O_("div",{class:w_("bio-properties-panel-entry",O?"has-error":""),"data-entry-id":n,children:[O_(GQ,{debounce:r,disabled:o,id:n,label:s,onInput:e=>{let t=null;h(c)&&(t=c(e)||null),t?f(e):l(e),y(t)},onFocus:p,onBlur:u,value:v},t),O&&O_("div",{class:"bio-properties-panel-error",children:O}),O_(OQ,{forId:n,element:t,value:i})]})}function KQ(e){return e&&!!e.value}function JQ(e){return`bio-properties-panel-${e}`}n_(((e,t)=>{const{id:n,onInput:i,value:r,onFocus:o,onBlur:s,switcherLabel:a}=e,l=Xw();return t.current={focus:()=>{const e=l.current;e&&e.focus()}},O_($Q,{id:n,value:r,inputRef:l,onInput:i,onFocus:o,onBlur:s,switcherLabel:a})})),n_(((e,t)=>{const{id:n,disabled:i,onInput:r,value:o,onFocus:s,onBlur:a}=e,l=Xw();return t.current={focus:()=>{const e=l.current;e&&e.focus()}},O_("input",{ref:l,id:QQ(n),name:n,onFocus:s,onBlur:a,type:"checkbox",class:"bio-properties-panel-input",onChange:({target:e})=>{r(e.checked)},checked:o,disabled:i})}));const eX=300;function tX(e){return function(t){return!1!==e?B(t,u(e)?e:eX):t}}tX.$inject=["config.debounceInput"];var nX={debounceInput:["factory",tX]},iX={},rX=Xt(V);Object.defineProperty(iX,"__esModule",{value:!0});var oX=rX;function sX(e){return(lX(e,"zeebe:IoMapping")||[])[0]}function aX(e){return function(e,t){var n=sX(e);return n&&n.get(t)||[]}(e,"inputParameters")}function lX(e,t,n){var i=function(e,t){var n=[],i=e.get("extensionElements");if(void 0!==i){var r=i.get("values");void 0!==r&&(n=oX.filter(r,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,t)})))}return n}(e,t);return n?(i[0]||{})[n]||[]:i}function cX(e){for(var t=[],n=e;n.$parent;)t.push(n.$parent),n=n.$parent;return t}function pX(e,t,n){n=n||0,oX.isArray(e)||(e=[e]),oX.forEach(e,(function(e,i){var r=t(e,i,n);oX.isArray(r)&&r.length&&pX(r,t,n+1)}))}function uX(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function hX(e,t,n){var i=[],r=[];return pX(e,(function(e,o,s){uX(i,e,t);var a=e.flowElements;if((-1===n||s<n)&&a&&uX(r,a,t))return a})),i}function dX(e,t){return hX(e,!t,-1)}function fX(e,t){var n=oX.findIndex(e,(function(e){return e.name===t.name&&e.scope===t.scope}));n>=0?e[n].origin=function(e,t){return e.concat(t)}(e[n].origin,t.origin):e.push(t)}function mX(e,t,n){var i,r,o,s,a=(i=n,r=t,o=cX(e),s=oX.find(o,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,"bpmn:SubProcess")&&function(e,t){return oX.find(aX(e),(function(e){return e.target===t}))}(e,r)})),s||i);return{name:t,origin:[e],scope:a}}var gX=[function(e){var t=e.elements,n=e.processVariables;return oX.isArray(t)||(t=[t]),oX.forEach(t,(function(e){var t=function(e){return(sX(e)||{}).inputParameters}(e);oX.forEach(t,(function(t){var i=mX(e,t.target,e);fX(n,i)}))})),n},function(e){var t=e.elements,n=e.processVariables;return oX.isArray(t)||(t=[t]),oX.forEach(t,(function(e){var t=e.loopCharacteristics,i=t&&function(e){const t=lX(e,"zeebe:LoopCharacteristics")[0];return t&&t.inputElement}(t);if(i){var r=mX(e,i,e);fX(n,r)}})),n},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return oX.isArray(t)||(t=[t]),oX.forEach(t,(function(e){var t=function(e){return(sX(e)||{}).outputParameters}(e);oX.forEach(t,(function(t){var r=mX(e,t.target,n);fX(i,r)}))})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return oX.isArray(t)||(t=[t]),oX.forEach(t,(function(e){var t=e.loopCharacteristics,r=t&&function(e){const t=lX(e,"zeebe:LoopCharacteristics")[0];return t&&t.outputCollection}(t);if(r){var o=mX(e,r,n);fX(i,o)}})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return oX.isArray(t)||(t=[t]),oX.forEach(t,(function(e){var t=function(e){return(lX(e,"zeebe:CalledDecision")||[])[0]}(e)||function(e){return(lX(e,"zeebe:Script")||[])[0]}(e);if(t){var r=t.resultVariable;if(r){var o=mX(e,r,n);fX(i,o)}}})),i}];function yX(e,t=[]){var n=[],i=dX([e],!1);const r=[];return oX.forEach([...gX,...t],(function(t){r.push(t({elements:i,containerElement:e,processVariables:n}))})),Promise.all(r).then((()=>n))}async function vX(e,t,n=[]){var i=await yX(t,n),r=function(e,t){var n=dX(t);return oX.find(n,(function(t){return t.id===e}))}(e,t),o=oX.filter(i,(function(e){return e.scope.id===r.id})),s=cX(r);return function(e,t){return e.concat(t)}(o,oX.filter(i,(function(e){return oX.find(s,(function(t){return t.id===e.scope.id}))})))}function bX(e){return e&&e.businessObject||e}function OX(e,t){var n=bX(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}var xX=iX.getProcessVariables=yX,wX=iX.getVariablesForElement=function(e,t=[]){return vX(function(e){const t=bX(e);if(OX(e,"bpmn:Participant"))return t.processRef.id;return t.id}(e),function(e){const t=bX(e);if(OX(t,"bpmn:Participant"))return t.processRef;if(OX(t,"bpmn:Process"))return t;let n=t;for(;n.$parent&&!OX(n,"bpmn:Process");)n=n.$parent;return n}(e),t)};iX.getVariablesForScope=vX;var _X={exports:{}};const EX=(e,t,n)=>{const i=t<0?e.length+t:t;if(i>=0&&i<e.length){const i=n<0?e.length+n:n,[r]=e.splice(t,1);e.splice(i,0,r)}};_X.exports=(e,t,n)=>(e=[...e],EX(e,t,n),e),_X.exports.mutate=EX;var PX={};Object.defineProperty(PX,"__esModule",{value:!0});var kX=rX;function SX(e){var t=function(e){return TX(e,"camunda:FormData")[0]}(e);return t&&t.get("fields")||[]}function TX(e,t,n){var i=function(e,t){var n=[],i=e.get("extensionElements");if(void 0!==i){var r=i.get("values");void 0!==r&&(n=kX.filter(r,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,t)})))}return n}(e,t);return n?(i[0]||{})[n]||[]:i}function $X(e,t){var n=function(e){return(TX(e,"camunda:InputOutput")||[])[0]}(e);return n&&n.get(t)||[]}function CX(e){for(var t=[],n=e;n.$parent;)t.push(n.$parent),n=n.$parent;return t}function MX(e,t,n){n=n||0,kX.isArray(e)||(e=[e]),kX.forEach(e,(function(e,i){var r=t(e,i,n);kX.isArray(r)&&r.length&&MX(r,t,n+1)}))}function AX(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function RX(e,t,n){var i=[],r=[];return MX(e,(function(e,o,s){AX(i,e,t);var a=e.flowElements;if((-1===n||s<n)&&a&&AX(r,a,t))return a})),i}function DX(e,t){return RX(e,!t,-1)}function jX(e,t){var n=kX.findIndex(e,(function(e){return e.name===t.name&&e.scope===t.scope}));n>=0?e[n].origin=function(e,t){return e.concat(t)}(e[n].origin,t.origin):e.push(t)}function qX(e,t,n){var i,r,o,s,a=(i=n,r=t,o=CX(e),s=kX.find(o,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,"bpmn:SubProcess")&&function(e,t){return kX.find(function(e){return $X(e,"inputParameters")}(e),(function(e){return e.name===t}))}(e,r)})),s||i);return{name:t,origin:[e],scope:a}}function BX(e,t){var n=e.eventDefinitions;return n&&t?kX.filter(n,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,t)})):n}var NX=[function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return kX.isArray(t)||(t=[t]),kX.forEach(t,(function(e){var t=function(e){return $X(e,"outputParameters")}(e);kX.forEach(t,(function(t){var r=qX(e,t.name,n);jX(i,r)}))})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return kX.isArray(t)||(t=[t]),kX.forEach(t,(function(e){var t=function(e){return e.get("camunda:resultVariable")}(e);if(t){var r=qX(e,t,n);jX(i,r)}})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return kX.isArray(t)||(t=[t]),kX.forEach(t,(function(e){var t=SX(e);kX.forEach(t,(function(t){var r=qX(e,t.id,n);jX(i,r)}))})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return kX.isArray(t)||(t=[t]),kX.forEach(t,(function(e){var t=function(e){return TX(e,"camunda:Out")}(e);kX.forEach(t,(function(t){if(!t.local){var r=qX(e,t.target,n);jX(i,r)}}))})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables,r=function(e,t){var r=qX(e,t,n);jX(i,r)};return kX.isArray(t)||(t=[t]),kX.forEach(t,(function(e){var t=function(e){return BX(e,"bpmn:ErrorEventDefinition")}(e);kX.forEach(t,(function(t){var n=t.get("errorCodeVariable"),i=t.get("errorMessageVariable");n&&r(e,n),i&&r(e,i)}));var n=function(e){return BX(e,"bpmn:EscalationEventDefinition")}(e);kX.forEach(n,(function(t){var n=t.get("escalationCodeVariable");n&&r(e,n)}))})),i}];function zX(e,t=[]){const n=[];var i=[],r=DX([e],!1);return kX.forEach([...NX,...t],(function(t){n.push(t({elements:r,containerElement:e,processVariables:i}))})),Promise.all(n).then((()=>i))}let QX;PX.getProcessVariables=zX,PX.getVariablesForScope=async function(e,t,n=[]){var i=await zX(t,n),r=function(e,t){var n=DX(t);return kX.find(n,(function(t){return t.id===e}))}(e,t),o=kX.filter(i,(function(e){return e.scope.id===r.id})),s=CX(r);return function(e,t){return e.concat(t)}(o,kX.filter(i,(function(e){return kX.find(s,(function(t){return t.id===e.scope.id}))})))};const XX=new Uint8Array(16);function IX(){if(!QX&&(QX="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!QX))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return QX(XX)}const LX=[];for(let e=0;e<256;++e)LX.push((e+256).toString(16).slice(1));var VX={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function FX(e,t,n){if(VX.randomUUID&&!t&&!e)return VX.randomUUID();const i=(e=e||{}).random||(e.rng||IX)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return(LX[e[t+0]]+LX[e[t+1]]+LX[e[t+2]]+LX[e[t+3]]+"-"+LX[e[t+4]]+LX[e[t+5]]+"-"+LX[e[t+6]]+LX[e[t+7]]+"-"+LX[e[t+8]]+LX[e[t+9]]+"-"+LX[e[t+10]]+LX[e[t+11]]+LX[e[t+12]]+LX[e[t+13]]+LX[e[t+14]]+LX[e[t+15]]).toLowerCase()}(i)}var UX=function(e,t){for(var n=e.split("."),i=t.split("."),r=0;r<3;r++){var o=Number(n[r]),s=Number(i[r]);if(o>s)return 1;if(s>o)return-1;if(!isNaN(o)&&isNaN(s))return 1;if(isNaN(o)&&!isNaN(s))return-1}return 0},HX=Qt(UX),YX="0.12.1",WX={exports:{}},GX={exports:{}},ZX=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var i,r,o;if(Array.isArray(t)){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((i=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n};!function(e){e.exports=ZX}(GX),WX.exports=pI,WX.exports.default=pI;const KX={type:"object",allOf:[{required:["name","id","appliesTo","properties"],properties:{name:{$id:"#/name",type:"string",description:"The name of the element template."},id:{$id:"#/id",type:"string",description:"The identifier of the element template."},description:{$id:"#/description",type:"string",description:"The description of the element template."},version:{$id:"#/version",type:"integer",description:"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},isDefault:{$id:"#/isDefault",type:"boolean",description:"Indicates whether the element template is a default template."},appliesTo:{$id:"#/appliesTo",type:"array",description:"List of BPMN types the template can be applied to.",default:[],items:{$id:"#/appliesTo/items",type:"string",pattern:"^[\\w\\d]+:[\\w\\d]+$",allOf:[{examples:["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],errorMessage:{pattern:'invalid item for "appliesTo", should contain namespaced property, example: "bpmn:Task"'}}},elementType:{$id:"#/elementType",type:"object",description:"The BPMN type the element will be transformed into.",default:{},required:["value"],properties:{value:{$id:"#/elementType/value",type:"string",pattern:"^[\\w\\d]+:[\\w\\d]+$",allOf:[{examples:["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],errorMessage:{pattern:'invalid item for "elementType", should contain namespaced property, example: "bpmn:Task"'}}},errorMessage:{required:{value:"missing elementType value"}}},metadata:{$id:"#/metadata",type:"object",description:"Some custom properties for further configuration.",default:{}},entriesVisible:{$id:"#/entriesVisible",type:"boolean",description:"Select whether non-template entries are visible in the properties panel."},groups:{$id:"#/groups",type:"array",description:"Custom fields can be ordered together via groups.",allOf:[{examples:[[{id:"group-1",label:"My Group"}]]}],items:{$id:"#/groups/group",type:"object",default:{},required:["id","label"],properties:{id:{$id:"#/groups/group/id",type:"string",description:"The id of the custom group"},label:{$id:"#/groups/group/label",type:"string",description:"The label of the custom group"}},errorMessage:{required:{id:'missing id for group "${0#}"',label:'missing label for group "${0#}"'}}}},documentationRef:{$id:"#/documentationRef",type:"string",pattern:"^(https|http)://.*",errorMessage:{pattern:'Malformed documentation URL, must match "^(https|http)://.*"'}}},errorMessage:{required:{name:"missing template name",id:"missing template id",appliesTo:"missing appliesTo=[]",properties:"missing properties=[]"}}}],properties:{properties:{$ref:"#/definitions/properties",$id:"#/properties"},scopes:{$id:"#/scopes",type:"array",description:"Special scoped bindings that allow you to configure nested elements.",allOf:[{examples:[[{type:"bpmn:Error",id:"Error_1",properties:[{value:"error-code",binding:{type:"property",name:"errorCode"}},{value:"error-message",binding:{type:"property",name:"camunda:errorMessage"}},{value:"error-name",binding:{type:"property",name:"name"}}]}]]}],items:{$id:"#/scopes/item",type:"object",default:{},properties:{type:{$id:"#scopes/item/type",type:"string",description:"The type of a scope.",enum:["camunda:Connector","bpmn:Error"],errorMessage:"invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"},properties:{$id:"#/scopes/properties",description:"List of properties of a scope.",default:[],allOf:[{$ref:"#/definitions/properties/allOf/0"},{$ref:"#/definitions/properties/allOf/1"}]}},required:["type","properties"],allOf:[{if:{properties:{type:{enum:["bpmn:Error"]}},required:["type"]},then:{required:["id"],errorMessage:"invalid scope ${0/type}, missing id"}}],errorMessage:{required:{type:"invalid scope, missing type",properties:"invalid scope ${0/type}, missing properties=[]"}}}}}},JX={$schema:"http://json-schema.org/draft-07/schema",type:"array",description:"List of properties of the element template.",items:{type:"object",default:{},required:["binding"],allOf:[{if:{properties:{binding:{properties:{type:{const:"property"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown","Boolean"],errorMessage:'invalid property type ${0} for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'}}}},{if:{properties:{binding:{properties:{type:{const:"camunda:executionListener"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["Hidden"],errorMessage:'invalid property type ${1/type} for binding type "camunda:executionListener"; must be "Hidden"'}}}},{if:{properties:{binding:{properties:{type:{enum:["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{if:{properties:{binding:{properties:{type:{enum:["camunda:inputParameter","camunda:field"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],properties:{binding:{$id:"#/properties/property/binding",type:"object",description:"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.",required:["type"],allOf:[{if:{properties:{type:{enum:["property","camunda:property","camunda:inputParameter","camunda:field"]}},required:["type"]},then:{required:["name"],errorMessage:"property.binding ${0/type} requires name"}},{if:{properties:{type:{const:"camunda:outputParameter"}},required:["type"]},then:{required:["source"],errorMessage:"property.binding ${0/type} requires source"}},{if:{properties:{type:{const:"camunda:in"}},required:["type"]},then:{anyOf:[{required:["variables"]},{required:["target"]}],errorMessage:"property.binding ${0/type} requires variables, target, or both"}},{if:{properties:{type:{const:"camunda:out"}},required:["type"]},then:{oneOf:[{required:["variables"],not:{anyOf:[{required:["source"]},{required:["sourceExpression"]}]}},{required:["source"],not:{anyOf:[{required:["variables"]},{required:["sourceExpression"]}]}},{required:["sourceExpression"],not:{anyOf:[{required:["variables"]},{required:["source"]}]}},{required:["variables","sourceExpression"],not:{required:["source"]}},{required:["variables","source"],not:{required:["sourceExpression"]}}],errorMessage:"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{if:{properties:{type:{const:"camunda:errorEventDefinition"}},required:["type"]},then:{oneOf:[{required:["errorRef"]}],errorMessage:"property.binding ${0/type} requires errorRef"}},{examples:[{type:"property",name:"name"},{type:"camunda:property",name:"property"},{type:"camunda:inputParameter",name:"input"},{type:"camunda:outputParameter",source:"output"},{type:"camunda:in",target:"target"},{type:"camunda:in:businessKey"},{type:"camunda:out",source:"output"},{type:"camunda:executionListener",event:"start"},{type:"camunda:field",name:"field"},{type:"camunda:errorEventDefinition",errorRef:"error"},{type:"camunda:errorEventDefinition",errorRef:"error"}]}],properties:{type:{$id:"#/properties/property/binding/type",type:"string",enum:["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],description:"The type of a property binding.",errorMessage:"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},name:{$id:"#/properties/property/binding/name",type:"string",description:"The name of a property binding."},event:{$id:"#/properties/property/binding/event",type:"string",description:"The event type of a property binding (camunda:executionListener)."},scriptFormat:{$id:"#/properties/property/binding/scriptFormat",type:"string",description:"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},source:{$id:"#/properties/property/binding/source",type:"string",description:"The source value of a property binding (camunda:outputParameter, camunda:out)."},target:{$id:"#/properties/property/binding/target",type:"string",description:"The target value of a property binding (camunda:in)."},expression:{$id:"#/properties/property/binding/expression",type:"boolean",description:"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},variables:{$id:"#/properties/property/binding/variables",type:"string",enum:["all","local"],description:"The variable mapping of a property binding (camunda:in)."},sourceExpression:{$id:"#/properties/property/binding/sourceExpression",type:"string",description:"The string containing the expression for the source attribute (camunda:out)."}}}},errorMessage:{required:'missing binding for property "${0#}"'}}},eI=new RegExp("^[\\w\\d]+:[\\w\\d]+$","u"),tI=new RegExp("^(https|http)://.*","u"),nI={required:"missingProperty",dependencies:"property",dependentRequired:"property"},iI={allOf:[{type:"array",description:"List of properties of the element template.",allOf:[{examples:[[{label:"Name",type:"String",binding:{type:"property",name:"name"}}]]}],items:{type:"object",default:{},allOf:[{if:{properties:{type:{const:"Dropdown"}},required:["type"]},then:{required:["choices"],errorMessage:'must provide choices=[] with "Dropdown" type'}}],properties:{id:{type:"string",description:"Unique identifier of the property."},value:{$id:"#/properties/property/value",type:["string","boolean"],description:"The value of a control field."},description:{$id:"#/properties/property/description",type:"string",description:"The description of a control field."},label:{$id:"#/properties/property/label",type:"string",description:"The label of a control field."},type:{$id:"#/properties/property/type",type:"string",description:"The type of a control field."},editable:{$id:"#/properties/property/editable",type:"boolean",description:"Indicates whether a control field is editable or not."},choices:{$id:"#/properties/property/choices",type:"array",description:"The choices for dropdown fields.",default:[],items:{$id:"#/properties/property/choices/item",type:"object",default:{},properties:{name:{$id:"#/properties/property/choices/item/name",type:"string",description:"The name of a choice."},value:{$id:"#/properties/property/choices/item/value",type:"string",description:"The value of a choice."}},required:["value","name"],errorMessage:{required:'{ name, value } must be specified for "Dropdown" choices'}}},constraints:{$id:"#/properties/property/constraints",type:"object",description:"The validation constraints of a control field.",allOf:[{examples:[{notEmpty:!0}]}],properties:{notEmpty:{$id:"#/properties/property/constraints/notEmpty",type:"boolean",description:"The control field must not be empty."},minLength:{$id:"#/properties/property/constraints/minLength",type:"number",description:"The minimal length of a control field value."},maxLength:{$id:"#/properties/property/constraints/maxLength",type:"number",description:"The maximal length for a control field value."},pattern:{$id:"#/properties/property/constraints/pattern",description:"A regular expression pattern for a constraint.",oneOf:[{type:"object",default:{},properties:{value:{$id:"#/properties/property/constraints/pattern/value",type:"string",description:"The regular expression of a pattern."},message:{$id:"#/properties/property/constraints/pattern/message",type:"string",description:"The validation message of a pattern."}}},{type:"string"}]}}},group:{$id:"#/properties/property/group",type:"string",description:"The custom group of a control field."},condition:{$id:"#/condition",type:"object",description:"Condition(s) to activate the binding.",allOf:[{examples:[{type:"simple",property:"httpMethod",equals:"GET"},{type:"simple",property:"httpMethod",oneOf:["POST","PUT","DELETE"]},{allMatch:[{type:"simple",property:"authType",equals:"Basic"},{type:"simple",property:"httpMethod",oneOf:["POST","PUT","DELETE"]}]}]}],definitions:{condition:{type:"object",required:["property"],properties:{type:{$id:"#/condition/type",const:"simple",description:"The type of the condition.",default:"simple"},property:{$id:"#/condition/property",type:"string",description:"The id of the property to check."}},oneOf:[{properties:{equals:{type:["string","number","boolean"]}},required:["equals"]},{properties:{oneOf:{type:"array",items:{type:["string","number"]}}},required:["oneOf"]}],errorMessage:{required:{property:"missing property name for condition"}}}},oneOf:[{$ref:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{properties:{allMatch:{$id:"#/allMatch",type:"array",items:{$ref:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},minItems:1}},required:["allMatch"]}]}}}},{$schema:"http://json-schema.org/draft-07/schema",type:"array",description:"List of properties of the element template.",items:{type:"object",default:{},required:["binding"],allOf:[{if:{properties:{binding:{properties:{type:{const:"property"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown","Boolean"],errorMessage:'invalid property type ${0} for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'}}}},{if:{properties:{binding:{properties:{type:{const:"camunda:executionListener"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["Hidden"],errorMessage:'invalid property type ${1/type} for binding type "camunda:executionListener"; must be "Hidden"'}}}},{if:{properties:{binding:{properties:{type:{enum:["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{if:{properties:{binding:{properties:{type:{enum:["camunda:inputParameter","camunda:field"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],properties:{binding:{$id:"#/properties/property/binding",type:"object",description:"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.",required:["type"],allOf:[{if:{properties:{type:{enum:["property","camunda:property","camunda:inputParameter","camunda:field"]}},required:["type"]},then:{required:["name"],errorMessage:"property.binding ${0/type} requires name"}},{if:{properties:{type:{const:"camunda:outputParameter"}},required:["type"]},then:{required:["source"],errorMessage:"property.binding ${0/type} requires source"}},{if:{properties:{type:{const:"camunda:in"}},required:["type"]},then:{anyOf:[{required:["variables"]},{required:["target"]}],errorMessage:"property.binding ${0/type} requires variables, target, or both"}},{if:{properties:{type:{const:"camunda:out"}},required:["type"]},then:{oneOf:[{required:["variables"],not:{anyOf:[{required:["source"]},{required:["sourceExpression"]}]}},{required:["source"],not:{anyOf:[{required:["variables"]},{required:["sourceExpression"]}]}},{required:["sourceExpression"],not:{anyOf:[{required:["variables"]},{required:["source"]}]}},{required:["variables","sourceExpression"],not:{required:["source"]}},{required:["variables","source"],not:{required:["sourceExpression"]}}],errorMessage:"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{if:{properties:{type:{const:"camunda:errorEventDefinition"}},required:["type"]},then:{oneOf:[{required:["errorRef"]}],errorMessage:"property.binding ${0/type} requires errorRef"}},{examples:[{type:"property",name:"name"},{type:"camunda:property",name:"property"},{type:"camunda:inputParameter",name:"input"},{type:"camunda:outputParameter",source:"output"},{type:"camunda:in",target:"target"},{type:"camunda:in:businessKey"},{type:"camunda:out",source:"output"},{type:"camunda:executionListener",event:"start"},{type:"camunda:field",name:"field"},{type:"camunda:errorEventDefinition",errorRef:"error"},{type:"camunda:errorEventDefinition",errorRef:"error"}]}],properties:{type:{$id:"#/properties/property/binding/type",type:"string",enum:["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],description:"The type of a property binding.",errorMessage:"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},name:{$id:"#/properties/property/binding/name",type:"string",description:"The name of a property binding."},event:{$id:"#/properties/property/binding/event",type:"string",description:"The event type of a property binding (camunda:executionListener)."},scriptFormat:{$id:"#/properties/property/binding/scriptFormat",type:"string",description:"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},source:{$id:"#/properties/property/binding/source",type:"string",description:"The source value of a property binding (camunda:outputParameter, camunda:out)."},target:{$id:"#/properties/property/binding/target",type:"string",description:"The target value of a property binding (camunda:in)."},expression:{$id:"#/properties/property/binding/expression",type:"boolean",description:"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},variables:{$id:"#/properties/property/binding/variables",type:"string",enum:["all","local"],description:"The variable mapping of a property binding (camunda:in)."},sourceExpression:{$id:"#/properties/property/binding/sourceExpression",type:"string",description:"The string containing the expression for the source attribute (camunda:out)."}}}},errorMessage:{required:'missing binding for property "${0#}"'}}}]},rI={type:"object",required:["property"],properties:{type:{$id:"#/condition/type",const:"simple",description:"The type of the condition.",default:"simple"},property:{$id:"#/condition/property",type:"string",description:"The id of the property to check."}},oneOf:[{properties:{equals:{type:["string","number","boolean"]}},required:["equals"]},{properties:{oneOf:{type:"array",items:{type:["string","number"]}}},required:["oneOf"]}],errorMessage:{required:{property:"missing property name for condition"}}},oI=GX.exports;function sI(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,s=0;if(Array.isArray(e)){const n=e.length;for(let i=0;i<n;i++){let n=e[i];const r=s;let h=!0;const d=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.type&&!oI(n.type,"Dropdown")){const e={};null===o?o=[e]:o.push(e),s++}var a=d===s;if(s=r,null!==o&&(r?o.length=r:o=null),a){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.choices){const e={keyword:"required",dataPath:t+"/"+i,schemaPath:"#/allOf/0/items/allOf/0/then/required",params:{missingProperty:"choices"},message:"should have required property 'choices'"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/"+i&&(0!==n.dataPath.indexOf(t+"/"+i)||"/"!==n.dataPath[t+"/"+i.length])||0!==n.schemaPath.indexOf("#/allOf/0/items/allOf/0/then")||"/"!==n.schemaPath["#/allOf/0/items/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/"+i,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",params:{errors:e},message:'must provide choices=[] with "Dropdown" type'};null===o?o=[n]:o.push(n),s++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,s=n.length}h=a=e===s}if(!h){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/0/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0!==n.id&&"string"!=typeof n.id){const e={keyword:"type",dataPath:t+"/"+i+"/id",schemaPath:"#/allOf/0/items/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.value){let e=n.value;if("string"!=typeof e&&"boolean"!=typeof e){const e={keyword:"type",dataPath:t+"/"+i+"/value",schemaPath:"#/allOf/0/items/properties/value/type",params:{type:iI.allOf[0].items.properties.value.type},message:"should be string,boolean"};null===o?o=[e]:o.push(e),s++}}if(void 0!==n.description&&"string"!=typeof n.description){const e={keyword:"type",dataPath:t+"/"+i+"/description",schemaPath:"#/allOf/0/items/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.label&&"string"!=typeof n.label){const e={keyword:"type",dataPath:t+"/"+i+"/label",schemaPath:"#/allOf/0/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.type&&"string"!=typeof n.type){const e={keyword:"type",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/0/items/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.editable&&"boolean"!=typeof n.editable){const e={keyword:"type",dataPath:t+"/"+i+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.choices){let e=n.choices;if(Array.isArray(e)){const n=e.length;for(let r=0;r<n;r++){let n=e[r];if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.value){const e={keyword:"required",dataPath:t+"/"+i+"/choices/"+r,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty:"value"},message:"should have required property 'value'"};null===o?o=[e]:o.push(e),s++}if(void 0===n.name){const e={keyword:"required",dataPath:t+"/"+i+"/choices/"+r,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.name&&"string"!=typeof n.name){const e={keyword:"type",dataPath:t+"/"+i+"/choices/"+r+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.value&&"string"!=typeof n.value){const e={keyword:"type",dataPath:t+"/"+i+"/choices/"+r+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/choices/"+r,schemaPath:"#/allOf/0/items/properties/choices/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/"+i+"/choices/"+r&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/items/properties/choices/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(40))&&(e[n.keyword].push(n),n.emUsed=!0);for(const a in e)if(e[a].length){const l={keyword:"errorMessage",dataPath:t+"/"+i+"/choices/"+r,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",params:{errors:e[a]},message:a in n?n[a]():iI.allOf[0].items.properties.choices.items.errorMessage[a]};null===o?o=[l]:o.push(l),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}if(void 0!==n.constraints){let e=n.constraints;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.notEmpty&&"boolean"!=typeof e.notEmpty){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.minLength&&"number"!=typeof e.minLength){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.maxLength&&"number"!=typeof e.maxLength){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.pattern){let n=e.pattern;const r=s;let a=!1,c=null;const p=s;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0!==n.value&&"string"!=typeof n.value){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.message&&"string"!=typeof n.message){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}(l=p===s)&&(a=!0,c=0);const u=s;if("string"!=typeof n){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}var l;if((l=u===s)&&a?(a=!1,c=[c,1]):l&&(a=!0,c=1),a)s=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas:c},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}}if(void 0!==n.group&&"string"!=typeof n.group){const e={keyword:"type",dataPath:t+"/"+i+"/group",schemaPath:"#/allOf/0/items/properties/group/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.condition){let e=n.condition;if(!e||"object"!=typeof e||Array.isArray(e)){const e={keyword:"type",dataPath:t+"/"+i+"/condition",schemaPath:"#/allOf/0/items/properties/condition/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}const r=s;let a=!1,l=null;const h=s,d=s;let f=!1,m=null;const g=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.equals){const e={keyword:"required",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty:"equals"},message:"should have required property 'equals'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.equals){let n=e.equals;if("string"!=typeof n&&"number"!=typeof n&&"boolean"!=typeof n){const e={keyword:"type",dataPath:t+"/"+i+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type:rI.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};null===o?o=[e]:o.push(e),s++}}}(c=g===s)&&(f=!0,m=0);const y=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.oneOf){const e={keyword:"required",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty:"oneOf"},message:"should have required property 'oneOf'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.oneOf){let n=e.oneOf;if(Array.isArray(n)){const e=n.length;for(let r=0;r<e;r++){let e=n[r];if("string"!=typeof e&&"number"!=typeof e){const e={keyword:"type",dataPath:t+"/"+i+"/condition/oneOf/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type:rI.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}}var c;if((c=y===s)&&f?(f=!1,m=[m,1]):c&&(f=!0,m=1),f)s=d,null!==o&&(d?o.length=d:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas:m},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.property){const e={keyword:"required",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty:"property"},message:"should have required property 'property'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.type&&!oI(e.type,"simple")){const e={keyword:"const",dataPath:t+"/"+i+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue:"simple"},message:"should be equal to constant"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.property&&"string"!=typeof e.property){const e={keyword:"type",dataPath:t+"/"+i+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:{property:[]}},n={required:{}};let r,a;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/"+i+"/condition"&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition")&&/^\/[^\/]*$/.test(n.schemaPath.slice(81))&&(r=nI[n.keyword],a=e[n.keyword][n.params[r]],a&&(a.push(n),n.emUsed=!0));for(const r in e)for(const l in e[r])if(a=e[r][l],a.length){const e=n[r]&&n[r][l],c={keyword:"errorMessage",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors:a},message:e?e():rI.errorMessage[r][l]};null===o?o=[c]:o.push(c),s++}const l=[];for(const e of o)e.emUsed||l.push(e);o=l,s=l.length}(u=h===s)&&(a=!0,l=0);const v=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.allMatch){const e={keyword:"required",dataPath:t+"/"+i+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/required",params:{missingProperty:"allMatch"},message:"should have required property 'allMatch'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.allMatch){let n=e.allMatch;if(Array.isArray(n)){if(n.length<1){const e={keyword:"minItems",dataPath:t+"/"+i+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit:1},message:"should NOT have fewer than 1 items"};null===o?o=[e]:o.push(e),s++}const e=n.length;for(let r=0;r<e;r++){let e=n[r];const a=s;let l=!1,c=null;const u=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.equals){const e={keyword:"required",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty:"equals"},message:"should have required property 'equals'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.equals){let n=e.equals;if("string"!=typeof n&&"number"!=typeof n&&"boolean"!=typeof n){const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type:rI.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};null===o?o=[e]:o.push(e),s++}}}(p=u===s)&&(l=!0,c=0);const h=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.oneOf){const e={keyword:"required",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty:"oneOf"},message:"should have required property 'oneOf'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.oneOf){let n=e.oneOf;if(Array.isArray(n)){const e=n.length;for(let a=0;a<e;a++){let e=n[a];if("string"!=typeof e&&"number"!=typeof e){const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/oneOf/"+a,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type:rI.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}}var p;if((p=h===s)&&l?(l=!1,c=[c,1]):p&&(l=!0,c=1),l)s=a,null!==o&&(a?o.length=a:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas:c},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.property){const e={keyword:"required",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty:"property"},message:"should have required property 'property'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.type&&!oI(e.type,"simple")){const e={keyword:"const",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue:"simple"},message:"should be equal to constant"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.property&&"string"!=typeof e.property){const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:{property:[]}},n={required:{}};let a,l;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/"+i+"/condition/allMatch/"+r&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition")&&/^\/[^\/]*$/.test(n.schemaPath.slice(81))&&(a=nI[n.keyword],l=e[n.keyword][n.params[a]],l&&(l.push(n),n.emUsed=!0));for(const a in e)for(const c in e[a])if(l=e[a][c],l.length){const e=n[a]&&n[a][c],p={keyword:"errorMessage",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors:l},message:e?e():rI.errorMessage[a][c]};null===o?o=[p]:o.push(p),s++}const c=[];for(const e of o)e.emUsed||c.push(e);o=c,s=c.length}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}}var u;if((u=v===s)&&a?(a=!1,l=[l,1]):u&&(a=!0,l=1),a)s=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i,schemaPath:"#/allOf/0/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t,schemaPath:"#/allOf/0/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}if(Array.isArray(e)){const n=e.length;for(let i=0;i<n;i++){let n=e[i];const r=s;let a=!0;const l=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.binding){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.binding){let e=n.binding;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type&&!oI(e.type,"property")){const e={};null===o?o=[e]:o.push(e),s++}}var h=l===s;if(s=r,null!==o&&(r?o.length=r:o=null),h){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0!==n.type){let e=n.type;if("String"!==e&&"Text"!==e&&"Hidden"!==e&&"Dropdown"!==e&&"Boolean"!==e){const e={keyword:"enum",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues:iI.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/"+i+"/type")||"/"!==e.dataPath[t+"/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type")||"/"!==e.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors:n},message:"invalid property type "+JSON.stringify(e)+' for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}}a=h=e===s}if(!a){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const c=s;let p=!0;const u=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.binding){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.binding){let e=n.binding;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type&&!oI(e.type,"camunda:executionListener")){const e={};null===o?o=[e]:o.push(e),s++}}var d=u===s;if(s=c,null!==o&&(c?o.length=c:o=null),d){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0!==n.type){if("Hidden"!==n.type){const e={keyword:"enum",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues:iI.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/"+i+"/type"&&(0!==n.dataPath.indexOf(t+"/"+i+"/type")||"/"!==n.dataPath[t+"/"+i+"/type".length])||0!==n.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type")||"/"!==n.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors:e},message:"invalid property type "+JSON.stringify(n&&n.type)+' for binding type "camunda:executionListener"; must be "Hidden"'};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}}p=d=e===s}if(!p){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const k=s;let S=!0;const T=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.binding){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.binding){let e=n.binding;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type){let t=e.type;if("camunda:property"!==t&&"camunda:outputParameter"!==t&&"camunda:in"!==t&&"camunda:in:businessKey"!==t&&"camunda:out"!==t&&"camunda:errorEventDefinition"!==t){const e={};null===o?o=[e]:o.push(e),s++}}}var f=T===s;if(s=k,null!==o&&(k?o.length=k:o=null),f){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0!==n.type){let e=n.type;if("String"!==e&&"Hidden"!==e&&"Dropdown"!==e){const e={keyword:"enum",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues:iI.allOf[1].items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const r=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/"+i+"/type")||"/"!==e.dataPath[t+"/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/type")||"/"!==e.schemaPath["#/allOf/1/items/allOf/2/then/properties/type".length]||(r.push(e),e.emUsed=!0);if(r.length){const a={keyword:"errorMessage",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors:r},message:"invalid property type "+JSON.stringify(e)+" for binding type "+JSON.stringify(n&&n.binding&&n.binding.type)+"; must be any of { String, Hidden, Dropdown }"};null===o?o=[a]:o.push(a),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}S=f=e===s}if(!S){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const $=s;let C=!0;const M=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.binding){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.binding){let e=n.binding;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type){let t=e.type;if("camunda:inputParameter"!==t&&"camunda:field"!==t){const e={};null===o?o=[e]:o.push(e),s++}}}var m=M===s;if(s=$,null!==o&&($?o.length=$:o=null),m){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0!==n.type){let e=n.type;if("String"!==e&&"Text"!==e&&"Hidden"!==e&&"Dropdown"!==e){const e={keyword:"enum",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues:iI.allOf[1].items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const r=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/"+i+"/type")||"/"!==e.dataPath[t+"/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/type")||"/"!==e.schemaPath["#/allOf/1/items/allOf/3/then/properties/type".length]||(r.push(e),e.emUsed=!0);if(r.length){const a={keyword:"errorMessage",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors:r},message:"invalid property type "+JSON.stringify(e)+" for binding type "+JSON.stringify(n&&n.binding&&n.binding.type)+"; must be any of { String, Text, Hidden, Dropdown }"};null===o?o=[a]:o.push(a),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}C=m=e===s}if(!C){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.binding){const e={keyword:"required",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/required",params:{missingProperty:"binding"},message:"should have required property 'binding'"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.binding){let e=n.binding;const r=s;let a=!0;const l=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type){let t=e.type;if("property"!==t&&"camunda:property"!==t&&"camunda:inputParameter"!==t&&"camunda:field"!==t){const e={};null===o?o=[e]:o.push(e),s++}}var g=l===s;if(s=r,null!==o&&(r?o.length=r:o=null),g){const n=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.name){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/binding"&&(0!==e.dataPath.indexOf(t+"/"+i+"/binding")||"/"!==e.dataPath[t+"/"+i+"/binding".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then")||"/"!==e.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors:n},message:"property.binding "+JSON.stringify(e&&e.type)+" requires name"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}a=g=n===s}if(!a){const e={keyword:"if",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const c=s;let p=!0;const u=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type&&!oI(e.type,"camunda:outputParameter")){const e={};null===o?o=[e]:o.push(e),s++}var y=u===s;if(s=c,null!==o&&(c?o.length=c:o=null),y){const n=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.source){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/binding"&&(0!==e.dataPath.indexOf(t+"/"+i+"/binding")||"/"!==e.dataPath[t+"/"+i+"/binding".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then")||"/"!==e.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors:n},message:"property.binding "+JSON.stringify(e&&e.type)+" requires source"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}p=y=n===s}if(!p){const e={keyword:"if",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const h=s;let d=!0;const f=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type&&!oI(e.type,"camunda:in")){const e={};null===o?o=[e]:o.push(e),s++}var v=f===s;if(s=h,null!==o&&(h?o.length=h:o=null),v){const n=s,r=s;let a=!1;const l=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.variables){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),s++}var b=l===s;if(a=a||b,!a){const n=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.target){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty:"target"},message:"should have required property 'target'"};null===o?o=[e]:o.push(e),s++}b=n===s;a=a||b}if(a)s=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"anyOf",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/binding"&&(0!==e.dataPath.indexOf(t+"/"+i+"/binding")||"/"!==e.dataPath[t+"/"+i+"/binding".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then")||"/"!==e.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors:n},message:"property.binding "+JSON.stringify(e&&e.type)+" requires variables, target, or both"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}d=v=n===s}if(!d){const e={keyword:"if",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const m=s;let k=!0;const S=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type&&!oI(e.type,"camunda:out")){const e={};null===o?o=[e]:o.push(e),s++}var O=S===s;if(s=m,null!==o&&(m?o.length=m:o=null),O){const n=s,r=s;let a=!1,l=null;const c=s,p=s,u=s,h=s;let d=!1;const f=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.source){const e={};null===o?o=[e]:o.push(e),s++}var x=f===s;if(d=d||x,!d){const t=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.sourceExpression){const e={};null===o?o=[e]:o.push(e),s++}x=t===s;d=d||x}if(d)s=h,null!==o&&(h?o.length=h:o=null);else{const e={};null===o?o=[e]:o.push(e),s++}if(u===s){const e={keyword:"not",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),s++}else s=p,null!==o&&(p?o.length=p:o=null);if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.variables){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),s++}(E=c===s)&&(a=!0,l=0);const m=s,g=s,y=s,v=s;let b=!1;const P=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.variables){const e={};null===o?o=[e]:o.push(e),s++}var w=P===s;if(b=b||w,!b){const t=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.sourceExpression){const e={};null===o?o=[e]:o.push(e),s++}w=t===s;b=b||w}if(b)s=v,null!==o&&(v?o.length=v:o=null);else{const e={};null===o?o=[e]:o.push(e),s++}if(y===s){const e={keyword:"not",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),s++}else s=g,null!==o&&(g?o.length=g:o=null);if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.source){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),s++}if((E=m===s)&&a)a=!1,l=[l,1];else{E&&(a=!0,l=1);const n=s,r=s,c=s,p=s;let u=!1;const h=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.variables){const e={};null===o?o=[e]:o.push(e),s++}var _=h===s;if(u=u||_,!u){const t=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.source){const e={};null===o?o=[e]:o.push(e),s++}_=t===s;u=u||_}if(u)s=p,null!==o&&(p?o.length=p:o=null);else{const e={};null===o?o=[e]:o.push(e),s++}if(c===s){const e={keyword:"not",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),s++}else s=r,null!==o&&(r?o.length=r:o=null);if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.sourceExpression){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty:"sourceExpression"},message:"should have required property 'sourceExpression'"};null===o?o=[e]:o.push(e),s++}if((E=n===s)&&a)a=!1,l=[l,2];else{E&&(a=!0,l=2);const n=s,r=s,c=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.source){const e={};null===o?o=[e]:o.push(e),s++}if(c===s){const e={keyword:"not",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),s++}else s=r,null!==o&&(r?o.length=r:o=null);if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.variables){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),s++}if(void 0===e.sourceExpression){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty:"sourceExpression"},message:"should have required property 'sourceExpression'"};null===o?o=[e]:o.push(e),s++}}if((E=n===s)&&a)a=!1,l=[l,3];else{E&&(a=!0,l=3);const n=s,r=s,c=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.sourceExpression){const e={};null===o?o=[e]:o.push(e),s++}var E;if(c===s){const e={keyword:"not",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),s++}else s=r,null!==o&&(r?o.length=r:o=null);if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.variables){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),s++}if(void 0===e.source){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),s++}}(E=n===s)&&a?(a=!1,l=[l,4]):E&&(a=!0,l=4)}}}if(a)s=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/binding"&&(0!==e.dataPath.indexOf(t+"/"+i+"/binding")||"/"!==e.dataPath[t+"/"+i+"/binding".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/3/then")||"/"!==e.schemaPath["#/allOf/1/items/properties/binding/allOf/3/then".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors:n},message:"property.binding "+JSON.stringify(e&&e.type)+" requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}k=O=n===s}if(!k){const e={keyword:"if",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const T=s;let $=!0;const C=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type&&!oI(e.type,"camunda:errorEventDefinition")){const e={};null===o?o=[e]:o.push(e),s++}var P=C===s;if(s=T,null!==o&&(T?o.length=T:o=null),P){const n=s,r=s;let a=!1,l=null;const c=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.errorRef){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty:"errorRef"},message:"should have required property 'errorRef'"};null===o?o=[e]:o.push(e),s++}if(c===s&&(a=!0,l=0),a)s=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/binding"&&(0!==e.dataPath.indexOf(t+"/"+i+"/binding")||"/"!==e.dataPath[t+"/"+i+"/binding".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/4/then")||"/"!==e.schemaPath["#/allOf/1/items/properties/binding/allOf/4/then".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors:n},message:"property.binding "+JSON.stringify(e&&e.type)+" requires errorRef"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}$=P=n===s}if(!$){const e={keyword:"if",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.type){let n=e.type;if("string"!=typeof n){const e={keyword:"type",dataPath:t+"/"+i+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if("property"!==n&&"camunda:property"!==n&&"camunda:inputParameter"!==n&&"camunda:outputParameter"!==n&&"camunda:in"!==n&&"camunda:out"!==n&&"camunda:in:businessKey"!==n&&"camunda:executionListener"!==n&&"camunda:field"!==n&&"camunda:errorEventDefinition"!==n){const e={keyword:"enum",dataPath:t+"/"+i+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues:iI.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/"+i+"/binding/type"&&(0!==n.dataPath.indexOf(t+"/"+i+"/binding/type")||"/"!==n.dataPath[t+"/"+i+"/binding/type".length])||0!==n.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type")||"/"!==n.schemaPath["#/allOf/1/items/properties/binding/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors:e},message:"invalid property.binding type "+JSON.stringify(n)+"; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/"+i+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.event&&"string"!=typeof e.event){const e={keyword:"type",dataPath:t+"/"+i+"/binding/event",schemaPath:"#/allOf/1/items/properties/binding/properties/event/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.scriptFormat&&"string"!=typeof e.scriptFormat){const e={keyword:"type",dataPath:t+"/"+i+"/binding/scriptFormat",schemaPath:"#/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.source&&"string"!=typeof e.source){const e={keyword:"type",dataPath:t+"/"+i+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.target&&"string"!=typeof e.target){const e={keyword:"type",dataPath:t+"/"+i+"/binding/target",schemaPath:"#/allOf/1/items/properties/binding/properties/target/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.expression&&"boolean"!=typeof e.expression){const e={keyword:"type",dataPath:t+"/"+i+"/binding/expression",schemaPath:"#/allOf/1/items/properties/binding/properties/expression/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.variables){let n=e.variables;if("string"!=typeof n){const e={keyword:"type",dataPath:t+"/"+i+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if("all"!==n&&"local"!==n){const e={keyword:"enum",dataPath:t+"/"+i+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues:iI.allOf[1].items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.sourceExpression&&"string"!=typeof e.sourceExpression){const e={keyword:"type",dataPath:t+"/"+i+"/binding/sourceExpression",schemaPath:"#/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:[]},n={required:function(){return'missing binding for property "'+JSON.stringify(i)+'"'}};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/1/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(15))&&(e[n.keyword].push(n),n.emUsed=!0);for(const r in e)if(e[r].length){const a={keyword:"errorMessage",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/errorMessage",params:{errors:e[r]},message:r in n?n[r]():iI.allOf[1].items.errorMessage[r]};null===o?o=[a]:o.push(a),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}}}else{const e={keyword:"type",dataPath:t,schemaPath:"#/allOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}return sI.errors=o,0===s}const aI={type:"array",description:"List of properties of the element template.",allOf:[{examples:[[{label:"Name",type:"String",binding:{type:"property",name:"name"}}]]}],items:{type:"object",default:{},allOf:[{if:{properties:{type:{const:"Dropdown"}},required:["type"]},then:{required:["choices"],errorMessage:'must provide choices=[] with "Dropdown" type'}}],properties:{id:{type:"string",description:"Unique identifier of the property."},value:{$id:"#/properties/property/value",type:["string","boolean"],description:"The value of a control field."},description:{$id:"#/properties/property/description",type:"string",description:"The description of a control field."},label:{$id:"#/properties/property/label",type:"string",description:"The label of a control field."},type:{$id:"#/properties/property/type",type:"string",description:"The type of a control field."},editable:{$id:"#/properties/property/editable",type:"boolean",description:"Indicates whether a control field is editable or not."},choices:{$id:"#/properties/property/choices",type:"array",description:"The choices for dropdown fields.",default:[],items:{$id:"#/properties/property/choices/item",type:"object",default:{},properties:{name:{$id:"#/properties/property/choices/item/name",type:"string",description:"The name of a choice."},value:{$id:"#/properties/property/choices/item/value",type:"string",description:"The value of a choice."}},required:["value","name"],errorMessage:{required:'{ name, value } must be specified for "Dropdown" choices'}}},constraints:{$id:"#/properties/property/constraints",type:"object",description:"The validation constraints of a control field.",allOf:[{examples:[{notEmpty:!0}]}],properties:{notEmpty:{$id:"#/properties/property/constraints/notEmpty",type:"boolean",description:"The control field must not be empty."},minLength:{$id:"#/properties/property/constraints/minLength",type:"number",description:"The minimal length of a control field value."},maxLength:{$id:"#/properties/property/constraints/maxLength",type:"number",description:"The maximal length for a control field value."},pattern:{$id:"#/properties/property/constraints/pattern",description:"A regular expression pattern for a constraint.",oneOf:[{type:"object",default:{},properties:{value:{$id:"#/properties/property/constraints/pattern/value",type:"string",description:"The regular expression of a pattern."},message:{$id:"#/properties/property/constraints/pattern/message",type:"string",description:"The validation message of a pattern."}}},{type:"string"}]}}},group:{$id:"#/properties/property/group",type:"string",description:"The custom group of a control field."},condition:{$id:"#/condition",type:"object",description:"Condition(s) to activate the binding.",allOf:[{examples:[{type:"simple",property:"httpMethod",equals:"GET"},{type:"simple",property:"httpMethod",oneOf:["POST","PUT","DELETE"]},{allMatch:[{type:"simple",property:"authType",equals:"Basic"},{type:"simple",property:"httpMethod",oneOf:["POST","PUT","DELETE"]}]}]}],definitions:{condition:{type:"object",required:["property"],properties:{type:{$id:"#/condition/type",const:"simple",description:"The type of the condition.",default:"simple"},property:{$id:"#/condition/property",type:"string",description:"The id of the property to check."}},oneOf:[{properties:{equals:{type:["string","number","boolean"]}},required:["equals"]},{properties:{oneOf:{type:"array",items:{type:["string","number"]}}},required:["oneOf"]}],errorMessage:{required:{property:"missing property name for condition"}}}},oneOf:[{$ref:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{properties:{allMatch:{$id:"#/allMatch",type:"array",items:{$ref:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},minItems:1}},required:["allMatch"]}]}}}};function lI(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,s=0;if(Array.isArray(e)){const n=e.length;for(let i=0;i<n;i++){let n=e[i];const r=s;let h=!0;const d=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.type&&!oI(n.type,"Dropdown")){const e={};null===o?o=[e]:o.push(e),s++}var a=d===s;if(s=r,null!==o&&(r?o.length=r:o=null),a){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.choices){const e={keyword:"required",dataPath:t+"/"+i,schemaPath:"#/items/allOf/0/then/required",params:{missingProperty:"choices"},message:"should have required property 'choices'"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/"+i&&(0!==n.dataPath.indexOf(t+"/"+i)||"/"!==n.dataPath[t+"/"+i.length])||0!==n.schemaPath.indexOf("#/items/allOf/0/then")||"/"!==n.schemaPath["#/items/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/"+i,schemaPath:"#/items/allOf/0/then/errorMessage",params:{errors:e},message:'must provide choices=[] with "Dropdown" type'};null===o?o=[n]:o.push(n),s++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,s=n.length}h=a=e===s}if(!h){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0!==n.id&&"string"!=typeof n.id){const e={keyword:"type",dataPath:t+"/"+i+"/id",schemaPath:"#/items/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.value){let e=n.value;if("string"!=typeof e&&"boolean"!=typeof e){const e={keyword:"type",dataPath:t+"/"+i+"/value",schemaPath:"#/items/properties/value/type",params:{type:aI.items.properties.value.type},message:"should be string,boolean"};null===o?o=[e]:o.push(e),s++}}if(void 0!==n.description&&"string"!=typeof n.description){const e={keyword:"type",dataPath:t+"/"+i+"/description",schemaPath:"#/items/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.label&&"string"!=typeof n.label){const e={keyword:"type",dataPath:t+"/"+i+"/label",schemaPath:"#/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.type&&"string"!=typeof n.type){const e={keyword:"type",dataPath:t+"/"+i+"/type",schemaPath:"#/items/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.editable&&"boolean"!=typeof n.editable){const e={keyword:"type",dataPath:t+"/"+i+"/editable",schemaPath:"#/items/properties/editable/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.choices){let e=n.choices;if(Array.isArray(e)){const n=e.length;for(let r=0;r<n;r++){let n=e[r];if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.value){const e={keyword:"required",dataPath:t+"/"+i+"/choices/"+r,schemaPath:"#/items/properties/choices/items/required",params:{missingProperty:"value"},message:"should have required property 'value'"};null===o?o=[e]:o.push(e),s++}if(void 0===n.name){const e={keyword:"required",dataPath:t+"/"+i+"/choices/"+r,schemaPath:"#/items/properties/choices/items/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.name&&"string"!=typeof n.name){const e={keyword:"type",dataPath:t+"/"+i+"/choices/"+r+"/name",schemaPath:"#/items/properties/choices/items/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.value&&"string"!=typeof n.value){const e={keyword:"type",dataPath:t+"/"+i+"/choices/"+r+"/value",schemaPath:"#/items/properties/choices/items/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/choices/"+r,schemaPath:"#/items/properties/choices/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/"+i+"/choices/"+r&&n.keyword in e&&0===n.schemaPath.indexOf("#/items/properties/choices/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(32))&&(e[n.keyword].push(n),n.emUsed=!0);for(const a in e)if(e[a].length){const l={keyword:"errorMessage",dataPath:t+"/"+i+"/choices/"+r,schemaPath:"#/items/properties/choices/items/errorMessage",params:{errors:e[a]},message:a in n?n[a]():aI.items.properties.choices.items.errorMessage[a]};null===o?o=[l]:o.push(l),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/choices",schemaPath:"#/items/properties/choices/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}if(void 0!==n.constraints){let e=n.constraints;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.notEmpty&&"boolean"!=typeof e.notEmpty){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/notEmpty",schemaPath:"#/items/properties/constraints/properties/notEmpty/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.minLength&&"number"!=typeof e.minLength){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/minLength",schemaPath:"#/items/properties/constraints/properties/minLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.maxLength&&"number"!=typeof e.maxLength){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/maxLength",schemaPath:"#/items/properties/constraints/properties/maxLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.pattern){let n=e.pattern;const r=s;let a=!1,c=null;const p=s;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0!==n.value&&"string"!=typeof n.value){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/pattern/value",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.message&&"string"!=typeof n.message){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/pattern/message",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}(l=p===s)&&(a=!0,c=0);const u=s;if("string"!=typeof n){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}var l;if((l=u===s)&&a?(a=!1,c=[c,1]):l&&(a=!0,c=1),a)s=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas:c},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/constraints",schemaPath:"#/items/properties/constraints/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}}if(void 0!==n.group&&"string"!=typeof n.group){const e={keyword:"type",dataPath:t+"/"+i+"/group",schemaPath:"#/items/properties/group/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.condition){let e=n.condition;if(!e||"object"!=typeof e||Array.isArray(e)){const e={keyword:"type",dataPath:t+"/"+i+"/condition",schemaPath:"#/items/properties/condition/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}const r=s;let a=!1,l=null;const h=s,d=s;let f=!1,m=null;const g=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.equals){const e={keyword:"required",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty:"equals"},message:"should have required property 'equals'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.equals){let n=e.equals;if("string"!=typeof n&&"number"!=typeof n&&"boolean"!=typeof n){const e={keyword:"type",dataPath:t+"/"+i+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type:rI.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};null===o?o=[e]:o.push(e),s++}}}(c=g===s)&&(f=!0,m=0);const y=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.oneOf){const e={keyword:"required",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty:"oneOf"},message:"should have required property 'oneOf'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.oneOf){let n=e.oneOf;if(Array.isArray(n)){const e=n.length;for(let r=0;r<e;r++){let e=n[r];if("string"!=typeof e&&"number"!=typeof e){const e={keyword:"type",dataPath:t+"/"+i+"/condition/oneOf/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type:rI.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}}var c;if((c=y===s)&&f?(f=!1,m=[m,1]):c&&(f=!0,m=1),f)s=d,null!==o&&(d?o.length=d:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas:m},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.property){const e={keyword:"required",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty:"property"},message:"should have required property 'property'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.type&&!oI(e.type,"simple")){const e={keyword:"const",dataPath:t+"/"+i+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue:"simple"},message:"should be equal to constant"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.property&&"string"!=typeof e.property){const e={keyword:"type",dataPath:t+"/"+i+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:{property:[]}},n={required:{}};let r,a;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/"+i+"/condition"&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition")&&/^\/[^\/]*$/.test(n.schemaPath.slice(81))&&(r=nI[n.keyword],a=e[n.keyword][n.params[r]],a&&(a.push(n),n.emUsed=!0));for(const r in e)for(const l in e[r])if(a=e[r][l],a.length){const e=n[r]&&n[r][l],c={keyword:"errorMessage",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors:a},message:e?e():rI.errorMessage[r][l]};null===o?o=[c]:o.push(c),s++}const l=[];for(const e of o)e.emUsed||l.push(e);o=l,s=l.length}(u=h===s)&&(a=!0,l=0);const v=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.allMatch){const e={keyword:"required",dataPath:t+"/"+i+"/condition",schemaPath:"#/items/properties/condition/oneOf/1/required",params:{missingProperty:"allMatch"},message:"should have required property 'allMatch'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.allMatch){let n=e.allMatch;if(Array.isArray(n)){if(n.length<1){const e={keyword:"minItems",dataPath:t+"/"+i+"/condition/allMatch",schemaPath:"#/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit:1},message:"should NOT have fewer than 1 items"};null===o?o=[e]:o.push(e),s++}const e=n.length;for(let r=0;r<e;r++){let e=n[r];const a=s;let l=!1,c=null;const u=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.equals){const e={keyword:"required",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty:"equals"},message:"should have required property 'equals'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.equals){let n=e.equals;if("string"!=typeof n&&"number"!=typeof n&&"boolean"!=typeof n){const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type:rI.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};null===o?o=[e]:o.push(e),s++}}}(p=u===s)&&(l=!0,c=0);const h=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.oneOf){const e={keyword:"required",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty:"oneOf"},message:"should have required property 'oneOf'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.oneOf){let n=e.oneOf;if(Array.isArray(n)){const e=n.length;for(let a=0;a<e;a++){let e=n[a];if("string"!=typeof e&&"number"!=typeof e){const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/oneOf/"+a,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type:rI.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}}var p;if((p=h===s)&&l?(l=!1,c=[c,1]):p&&(l=!0,c=1),l)s=a,null!==o&&(a?o.length=a:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas:c},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.property){const e={keyword:"required",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty:"property"},message:"should have required property 'property'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.type&&!oI(e.type,"simple")){const e={keyword:"const",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue:"simple"},message:"should be equal to constant"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.property&&"string"!=typeof e.property){const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:{property:[]}},n={required:{}};let a,l;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/"+i+"/condition/allMatch/"+r&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition")&&/^\/[^\/]*$/.test(n.schemaPath.slice(81))&&(a=nI[n.keyword],l=e[n.keyword][n.params[a]],l&&(l.push(n),n.emUsed=!0));for(const a in e)for(const c in e[a])if(l=e[a][c],l.length){const e=n[a]&&n[a][c],p={keyword:"errorMessage",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors:l},message:e?e():rI.errorMessage[a][c]};null===o?o=[p]:o.push(p),s++}const c=[];for(const e of o)e.emUsed||c.push(e);o=c,s=c.length}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch",schemaPath:"#/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}}var u;if((u=v===s)&&a?(a=!1,l=[l,1]):u&&(a=!0,l=1),a)s=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/condition",schemaPath:"#/items/properties/condition/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i,schemaPath:"#/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t,schemaPath:"#/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}return lI.errors=o,0===s}function cI(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,s=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.name){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),s++}if(void 0===e.id){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),s++}if(void 0===e.appliesTo){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"appliesTo"},message:"should have required property 'appliesTo'"};null===o?o=[e]:o.push(e),s++}if(void 0===e.properties){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"properties"},message:"should have required property 'properties'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.id&&"string"!=typeof e.id){const e={keyword:"type",dataPath:t+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.description&&"string"!=typeof e.description){const e={keyword:"type",dataPath:t+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.version){let n=e.version;if("number"!=typeof n||n%1||isNaN(n)){const e={keyword:"type",dataPath:t+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type:"integer"},message:"should be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.isDefault&&"boolean"!=typeof e.isDefault){const e={keyword:"type",dataPath:t+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.appliesTo){let n=e.appliesTo;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];if("string"==typeof e){if(!eI.test(e)){const e={keyword:"pattern",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern:"^[\\w\\d]+:[\\w\\d]+$"},message:'should match pattern "^[\\w\\d]+:[\\w\\d]+$"'};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={pattern:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/appliesTo/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(36))&&(e[n.keyword].push(n),n.emUsed=!0);for(const r in e)if(e[r].length){const a={keyword:"errorMessage",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors:e[r]},message:r in n?n[r]():KX.allOf[0].properties.appliesTo.items.errorMessage[r]};null===o?o=[a]:o.push(a),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}}}else{const e={keyword:"type",dataPath:t+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.elementType){let n=e.elementType;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.value){const e={keyword:"required",dataPath:t+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty:"value"},message:"should have required property 'value'"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.value){let e=n.value;if("string"==typeof e){if(!eI.test(e)){const e={keyword:"pattern",dataPath:t+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern:"^[\\w\\d]+:[\\w\\d]+$"},message:'should match pattern "^[\\w\\d]+:[\\w\\d]+$"'};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={pattern:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/elementType/value"&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value")&&/^\/[^\/]*$/.test(n.schemaPath.slice(49))&&(e[n.keyword].push(n),n.emUsed=!0);for(const i in e)if(e[i].length){const r={keyword:"errorMessage",dataPath:t+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors:e[i]},message:i in n?n[i]():KX.allOf[0].properties.elementType.properties.value.errorMessage[i]};null===o?o=[r]:o.push(r),s++}const i=[];for(const e of o)e.emUsed||i.push(e);o=i,s=i.length}}}else{const e={keyword:"type",dataPath:t+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:{value:[]}},n={required:{}};let i,r;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/elementType"&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/elementType")&&/^\/[^\/]*$/.test(n.schemaPath.slice(32))&&(i=nI[n.keyword],r=e[n.keyword][n.params[i]],r&&(r.push(n),n.emUsed=!0));for(const i in e)for(const a in e[i])if(r=e[i][a],r.length){const e=n[i]&&n[i][a],l={keyword:"errorMessage",dataPath:t+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",params:{errors:r},message:e?e():KX.allOf[0].properties.elementType.errorMessage[i][a]};null===o?o=[l]:o.push(l),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}if(void 0!==e.metadata){let n=e.metadata;if(!n||"object"!=typeof n||Array.isArray(n)){const e={keyword:"type",dataPath:t+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.entriesVisible&&"boolean"!=typeof e.entriesVisible){const e={keyword:"type",dataPath:t+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.groups){let n=e.groups;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.id){const e={keyword:"required",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),s++}if(void 0===e.label){const e={keyword:"required",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty:"label"},message:"should have required property 'label'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.id&&"string"!=typeof e.id){const e={keyword:"type",dataPath:t+"/groups/"+i+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.label&&"string"!=typeof e.label){const e={keyword:"type",dataPath:t+"/groups/"+i+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:{id:[],label:[]}},n={required:{id:function(){return'missing id for group "'+JSON.stringify(i)+'"'},label:function(){return'missing label for group "'+JSON.stringify(i)+'"'}}};let r,a;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/groups/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/groups/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(33))&&(r=nI[n.keyword],a=e[n.keyword][n.params[r]],a&&(a.push(n),n.emUsed=!0));for(const r in e)for(const l in e[r])if(a=e[r][l],a.length){const e=n[r]&&n[r][l],c={keyword:"errorMessage",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors:a},message:e?e():KX.allOf[0].properties.groups.items.errorMessage[r][l]};null===o?o=[c]:o.push(c),s++}const l=[];for(const e of o)e.emUsed||l.push(e);o=l,s=l.length}}}else{const e={keyword:"type",dataPath:t+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.documentationRef){let n=e.documentationRef;if("string"==typeof n){if(!tI.test(n)){const e={keyword:"pattern",dataPath:t+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern:"^(https|http)://.*"},message:'should match pattern "^(https|http)://.*"'};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={pattern:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/documentationRef"&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/documentationRef")&&/^\/[^\/]*$/.test(n.schemaPath.slice(37))&&(e[n.keyword].push(n),n.emUsed=!0);for(const i in e)if(e[i].length){const r={keyword:"errorMessage",dataPath:t+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors:e[i]},message:i in n?n[i]():KX.allOf[0].properties.documentationRef.errorMessage[i]};null===o?o=[r]:o.push(r),s++}const i=[];for(const e of o)e.emUsed||i.push(e);o=i,s=i.length}}}if(s>0){const e={required:{name:[],id:[],appliesTo:[],properties:[]}},n={required:{}};let i,r;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0")&&/^\/[^\/]*$/.test(n.schemaPath.slice(9))&&(i=nI[n.keyword],r=e[n.keyword][n.params[i]],r&&(r.push(n),n.emUsed=!0));for(const i in e)for(const a in e[i])if(r=e[i][a],r.length){const e=n[i]&&n[i][a],l={keyword:"errorMessage",dataPath:t,schemaPath:"#/allOf/0/errorMessage",params:{errors:r},message:e?e():KX.allOf[0].errorMessage[i][a]};null===o?o=[l]:o.push(l),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.properties&&(sI(e.properties,{dataPath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:r})||(o=null===o?sI.errors:o.concat(sI.errors),s=o.length)),void 0!==e.scopes){let n=e.scopes;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];const w=s;let _=!0;const E=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type&&"bpmn:Error"!==e.type){const e={};null===o?o=[e]:o.push(e),s++}var a=E===s;if(s=w,null!==o&&(w?o.length=w:o=null),a){const n=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.id){const e={keyword:"required",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/allOf/0/then/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i&&(0!==e.dataPath.indexOf(t+"/scopes/"+i)||"/"!==e.dataPath[t+"/scopes/"+i.length])||0!==e.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then")||"/"!==e.schemaPath["#/properties/scopes/items/allOf/0/then".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",params:{errors:n},message:"invalid scope "+JSON.stringify(e&&e.type)+", missing id"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}_=a=n===s}if(!_){const e={keyword:"if",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={keyword:"required",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),s++}if(void 0===e.properties){const e={keyword:"required",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/required",params:{missingProperty:"properties"},message:"should have required property 'properties'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.type){let n=e.type;if("string"!=typeof n){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if("camunda:Connector"!==n&&"bpmn:Error"!==n){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/type",schemaPath:"#/properties/scopes/items/properties/type/enum",params:{allowedValues:KX.properties.scopes.items.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/type"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/type")||"/"!==n.dataPath[t+"/scopes/"+i+"/type".length])||0!==n.schemaPath.indexOf("#/properties/scopes/items/properties/type")||"/"!==n.schemaPath["#/properties/scopes/items/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",params:{errors:e},message:"invalid scope type "+JSON.stringify(n)+"; must be any of { camunda:Connector, bpmn:Error }"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}}if(void 0!==e.properties){let n=e.properties;if(lI(n,{dataPath:t+"/scopes/"+i+"/properties",parentData:e,parentDataProperty:"properties",rootData:r})||(o=null===o?lI.errors:o.concat(lI.errors),s=o.length),Array.isArray(n)){const e=n.length;for(let r=0;r<e;r++){let e=n[r];const a=s;let w=!0;const _=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==t.type&&!oI(t.type,"property")){const e={};null===o?o=[e]:o.push(e),s++}}var l=_===s;if(s=a,null!==o&&(a?o.length=a:o=null),l){const n=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n&&"Boolean"!==n){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues:JX.items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/type"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/type")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/type".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const a={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors:e},message:"invalid property type "+JSON.stringify(n)+' for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'};null===o?o=[a]:o.push(a),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}w=l=n===s}if(!w){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const E=s;let P=!0;const k=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==t.type&&!oI(t.type,"camunda:executionListener")){const e={};null===o?o=[e]:o.push(e),s++}}var c=k===s;if(s=E,null!==o&&(E?o.length=E:o=null),c){const n=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){if("Hidden"!==e.type){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues:JX.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/type"&&(0!==e.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/type")||"/"!==e.dataPath[t+"/scopes/"+i+"/properties/"+r+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const a={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors:n},message:"invalid property type "+JSON.stringify(e&&e.type)+' for binding type "camunda:executionListener"; must be "Hidden"'};null===o?o=[a]:o.push(a),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}P=c=n===s}if(!P){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const S=s;let T=!0;const $=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==t.type){let e=t.type;if("camunda:property"!==e&&"camunda:outputParameter"!==e&&"camunda:in"!==e&&"camunda:in:businessKey"!==e&&"camunda:out"!==e&&"camunda:errorEventDefinition"!==e){const e={};null===o?o=[e]:o.push(e),s++}}}var p=$===s;if(s=S,null!==o&&(S?o.length=S:o=null),p){const n=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Hidden"!==n&&"Dropdown"!==n){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues:JX.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const a=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/type"&&(0!==e.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/type")||"/"!==e.dataPath[t+"/scopes/"+i+"/properties/"+r+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length]||(a.push(e),e.emUsed=!0);if(a.length){const l={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors:a},message:"invalid property type "+JSON.stringify(n)+" for binding type "+JSON.stringify(e&&e.binding&&e.binding.type)+"; must be any of { String, Hidden, Dropdown }"};null===o?o=[l]:o.push(l),s++}const l=[];for(const e of o)e.emUsed||l.push(e);o=l,s=l.length}}T=p=n===s}if(!T){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const C=s;let M=!0;const A=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==t.type){let e=t.type;if("camunda:inputParameter"!==e&&"camunda:field"!==e){const e={};null===o?o=[e]:o.push(e),s++}}}var u=A===s;if(s=C,null!==o&&(C?o.length=C:o=null),u){const n=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues:JX.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const a=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/type"&&(0!==e.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/type")||"/"!==e.dataPath[t+"/scopes/"+i+"/properties/"+r+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length]||(a.push(e),e.emUsed=!0);if(a.length){const l={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors:a},message:"invalid property type "+JSON.stringify(n)+" for binding type "+JSON.stringify(e&&e.binding&&e.binding.type)+"; must be any of { String, Text, Hidden, Dropdown }"};null===o?o=[l]:o.push(l),s++}const l=[];for(const e of o)e.emUsed||l.push(e);o=l,s=l.length}}M=u=n===s}if(!M){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.binding){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty:"binding"},message:"should have required property 'binding'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.binding){let n=e.binding;const a=s;let l=!0;const c=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.type){let e=n.type;if("property"!==e&&"camunda:property"!==e&&"camunda:inputParameter"!==e&&"camunda:field"!==e){const e={};null===o?o=[e]:o.push(e),s++}}var h=c===s;if(s=a,null!==o&&(a?o.length=a:o=null),h){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.name){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const a={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires name"};null===o?o=[a]:o.push(a),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}l=h=e===s}if(!l){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const p=s;let u=!0;const w=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.type&&!oI(n.type,"camunda:outputParameter")){const e={};null===o?o=[e]:o.push(e),s++}var d=w===s;if(s=p,null!==o&&(p?o.length=p:o=null),d){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const a={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires source"};null===o?o=[a]:o.push(a),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}u=d=e===s}if(!u){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const _=s;let E=!0;const P=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.type&&!oI(n.type,"camunda:in")){const e={};null===o?o=[e]:o.push(e),s++}var f=P===s;if(s=_,null!==o&&(_?o.length=_:o=null),f){const e=s,a=s;let l=!1;const c=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),s++}var m=c===s;if(l=l||m,!l){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.target){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty:"target"},message:"should have required property 'target'"};null===o?o=[e]:o.push(e),s++}m=e===s;l=l||m}if(l)s=a,null!==o&&(a?o.length=a:o=null);else{const e={keyword:"anyOf",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const a={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires variables, target, or both"};null===o?o=[a]:o.push(a),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}E=f=e===s}if(!E){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const k=s;let S=!0;const T=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.type&&!oI(n.type,"camunda:out")){const e={};null===o?o=[e]:o.push(e),s++}var g=T===s;if(s=k,null!==o&&(k?o.length=k:o=null),g){const e=s,a=s;let l=!1,c=null;const p=s,u=s,h=s,d=s;let f=!1;const m=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),s++}var y=m===s;if(f=f||y,!f){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),s++}y=e===s;f=f||y}if(f)s=d,null!==o&&(d?o.length=d:o=null);else{const e={};null===o?o=[e]:o.push(e),s++}if(h===s){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),s++}else s=u,null!==o&&(u?o.length=u:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),s++}(O=p===s)&&(l=!0,c=0);const x=s,w=s,_=s,E=s;let P=!1;const k=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={};null===o?o=[e]:o.push(e),s++}var v=k===s;if(P=P||v,!P){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),s++}v=e===s;P=P||v}if(P)s=E,null!==o&&(E?o.length=E:o=null);else{const e={};null===o?o=[e]:o.push(e),s++}if(_===s){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),s++}else s=w,null!==o&&(w?o.length=w:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),s++}if((O=x===s)&&l)l=!1,c=[c,1];else{O&&(l=!0,c=1);const e=s,a=s,p=s,u=s;let h=!1;const d=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={};null===o?o=[e]:o.push(e),s++}var b=d===s;if(h=h||b,!h){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),s++}b=e===s;h=h||b}if(h)s=u,null!==o&&(u?o.length=u:o=null);else{const e={};null===o?o=[e]:o.push(e),s++}if(p===s){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),s++}else s=a,null!==o&&(a?o.length=a:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty:"sourceExpression"},message:"should have required property 'sourceExpression'"};null===o?o=[e]:o.push(e),s++}if((O=e===s)&&l)l=!1,c=[c,2];else{O&&(l=!0,c=2);const e=s,a=s,p=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),s++}if(p===s){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),s++}else s=a,null!==o&&(a?o.length=a:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.variables){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),s++}if(void 0===n.sourceExpression){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty:"sourceExpression"},message:"should have required property 'sourceExpression'"};null===o?o=[e]:o.push(e),s++}}if((O=e===s)&&l)l=!1,c=[c,3];else{O&&(l=!0,c=3);const e=s,a=s,p=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),s++}var O;if(p===s){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),s++}else s=a,null!==o&&(a?o.length=a:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.variables){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),s++}if(void 0===n.source){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),s++}}(O=e===s)&&l?(l=!1,c=[c,4]):O&&(l=!0,c=4)}}}if(l)s=a,null!==o&&(a?o.length=a:o=null);else{const e={keyword:"oneOf",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas:c},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const a={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};null===o?o=[a]:o.push(a),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}S=g=e===s}if(!S){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const $=s;let C=!0;const M=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.type&&!oI(n.type,"camunda:errorEventDefinition")){const e={};null===o?o=[e]:o.push(e),s++}var x=M===s;if(s=$,null!==o&&($?o.length=$:o=null),x){const e=s,a=s;let l=!1,c=null;const p=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.errorRef){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty:"errorRef"},message:"should have required property 'errorRef'"};null===o?o=[e]:o.push(e),s++}if(p===s&&(l=!0,c=0),l)s=a,null!==o&&(a?o.length=a:o=null);else{const e={keyword:"oneOf",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas:c},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const a={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires errorRef"};null===o?o=[a]:o.push(a),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}C=x=e===s}if(!C){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.type){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.type){let e=n.type;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if("property"!==e&&"camunda:property"!==e&&"camunda:inputParameter"!==e&&"camunda:outputParameter"!==e&&"camunda:in"!==e&&"camunda:out"!==e&&"camunda:in:businessKey"!==e&&"camunda:executionListener"!==e&&"camunda:field"!==e&&"camunda:errorEventDefinition"!==e){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues:JX.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding/type"&&(0!==e.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding/type")||"/"!==e.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const a={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors:n},message:"invalid property.binding type "+JSON.stringify(e)+"; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};null===o?o=[a]:o.push(a),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}if(void 0!==n.name&&"string"!=typeof n.name){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.event&&"string"!=typeof n.event){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.scriptFormat&&"string"!=typeof n.scriptFormat){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.source&&"string"!=typeof n.source){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.target&&"string"!=typeof n.target){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.expression&&"boolean"!=typeof n.expression){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.variables){let e=n.variables;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if("all"!==e&&"local"!==e){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues:JX.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}}if(void 0!==n.sourceExpression&&"string"!=typeof n.sourceExpression){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:[]},n={required:function(){return'missing binding for property "'+JSON.stringify(r)+'"'}};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/scopes/"+i+"/properties/"+r&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/1/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(38))&&(e[n.keyword].push(n),n.emUsed=!0);for(const a in e)if(e[a].length){const l={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors:e[a]},message:a in n?n[a]():JX.items.errorMessage[a]};null===o?o=[l]:o.push(l),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const n={required:{type:[],properties:[]}},r={required:{properties:function(){return"invalid scope "+JSON.stringify(e&&e.type)+", missing properties=[]"}}};let a,l;for(const e of o)"errorMessage"!==e.keyword&&!e.emUsed&&e.dataPath===t+"/scopes/"+i&&e.keyword in n&&0===e.schemaPath.indexOf("#/properties/scopes/items")&&/^\/[^\/]*$/.test(e.schemaPath.slice(25))&&(a=nI[e.keyword],l=n[e.keyword][e.params[a]],l&&(l.push(e),e.emUsed=!0));for(const e in n)for(const a in n[e])if(l=n[e][a],l.length){const n=r[e]&&r[e][a],c={keyword:"errorMessage",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/errorMessage",params:{errors:l},message:n?n():KX.properties.scopes.items.errorMessage[e][a]};null===o?o=[c]:o.push(c),s++}const c=[];for(const e of o)e.emUsed||c.push(e);o=c,s=c.length}}}else{const e={keyword:"type",dataPath:t+"/scopes",schemaPath:"#/properties/scopes/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t,schemaPath:"#/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}return cI.errors=o,0===s}function pI(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,s=0;const a=s;let l=!1,c=null;const p=s;cI(e,{dataPath:t,parentData:n,parentDataProperty:i,rootData:r})||(o=null===o?cI.errors:o.concat(cI.errors),s=o.length),(h=p===s)&&(l=!0,c=0);const u=s;if(Array.isArray(e)){const n=e.length;for(let i=0;i<n;i++)cI(e[i],{dataPath:t+"/"+i,parentData:e,parentDataProperty:i,rootData:r})||(o=null===o?cI.errors:o.concat(cI.errors),s=o.length)}else{const e={keyword:"type",dataPath:t,schemaPath:"#/oneOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}var h;if((h=u===s)&&l?(l=!1,c=[c,1]):h&&(l=!0,c=1),l)s=a,null!==o&&(a?o.length=a:o=null);else{const e={keyword:"oneOf",dataPath:t,schemaPath:"#/oneOf",params:{passingSchemas:c},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}return pI.errors=o,0===s}var uI={},hI={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",'"':'"',"/":"/","\\":"\\"},dI="a".charCodeAt();uI.parse=function(e,t,n){var i={},r=0,o=0,s=0,a=n&&n.bigint&&"undefined"!=typeof BigInt;return{data:l("",!0),pointers:i};function l(t,n){var i;c(),g(t,"value");var r=h();switch(r){case"t":u("rue"),i=!0;break;case"f":u("alse"),i=!1;break;case"n":u("ull"),i=null;break;case'"':i=p();break;case"[":i=function(e){c();var t=[],n=0;if("]"==h())return t;d();for(;;){var i=e+"/"+n;t.push(l(i)),c();var r=h();if("]"==r)break;","!=r&&O(),c(),n++}return t}(t);break;case"{":i=function(e){c();var t={};if("}"==h())return t;d();for(;;){var n=v();'"'!=h()&&O();var i=p(),r=e+"/"+PI(i);y(r,"key",n),g(r,"keyEnd"),c(),":"!=h()&&O(),c(),t[i]=l(r),c();var o=h();if("}"==o)break;","!=o&&O(),c()}return t}(t);break;default:d(),"-0123456789".indexOf(r)>=0?i=function(){var t="",n=!0;"-"==e[s]&&(t+=h());t+="0"==e[s]?h():m(),"."==e[s]&&(t+=h()+m(),n=!1);"e"!=e[s]&&"E"!=e[s]||(t+=h(),"+"!=e[s]&&"-"!=e[s]||(t+=h()),t+=m(),n=!1);var i=+t;return a&&n&&(i>Number.MAX_SAFE_INTEGER||i<Number.MIN_SAFE_INTEGER)?BigInt(t):i}():b()}return g(t,"valueEnd"),c(),n&&s<e.length&&b(),i}function c(){e:for(;s<e.length;){switch(e[s]){case" ":o++;break;case"\t":o+=4;break;case"\r":o=0;break;case"\n":o=0,r++;break;default:break e}s++}}function p(){for(var e,t="";'"'!=(e=h());)"\\"==e?(e=h())in hI?t+=hI[e]:"u"==e?t+=f():O():t+=e;return t}function u(e){for(var t=0;t<e.length;t++)h()!==e[t]&&O()}function h(){x();var t=e[s];return s++,o++,t}function d(){s--,o--}function f(){for(var e=4,t=0;e--;){t<<=4;var n=h().toLowerCase();n>="a"&&n<="f"?t+=n.charCodeAt()-dI+10:n>="0"&&n<="9"?t+=+n:O()}return String.fromCharCode(t)}function m(){for(var t="";e[s]>="0"&&e[s]<="9";)t+=h();if(t.length)return t;x(),b()}function g(e,t){y(e,t,v())}function y(e,t,n){i[e]=i[e]||{},i[e][t]=n}function v(){return{line:r,column:o,pos:s}}function b(){throw new SyntaxError("Unexpected token "+e[s]+" in JSON at position "+s)}function O(){d(),b()}function x(){if(s>=e.length)throw new SyntaxError("Unexpected end of JSON input")}},uI.stringify=function(e,t,n){if(mI(e)){var i,r,o=0,s="object"==typeof n?n.space:n;switch(typeof s){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&v(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l<s.length;l++){switch(s[l]){case" ":r++;break;case"\t":r+=4;break;case"\r":r=0;break;case"\n":r=0,o++;break;default:throw new Error("whitespace characters not allowed in JSON")}i++}break;default:s=void 0}var c="",p={},u=0,h=0,d=0,f=n&&n.es6&&"function"==typeof Map;return function e(t,n,i){switch(y(i,"value"),typeof t){case"number":case"bigint":case"boolean":m(""+t);break;case"string":m(wI(t));break;case"object":null===t?m("null"):"function"==typeof t.toJSON?m(wI(t.toJSON())):Array.isArray(t)?r():f?t.constructor.BYTES_PER_ELEMENT?r():t instanceof Map?a():t instanceof Set?a(!0):o():o()}function r(){if(t.length){m("[");for(var r=n+1,o=0;o<t.length;o++){o&&m(","),g(r);var s=mI(t[o])?t[o]:null;e(s,r,i+"/"+o)}g(n),m("]")}else m("[]")}function o(){var r=Object.keys(t);if(r.length){m("{");for(var o=n+1,a=0;a<r.length;a++){var l=r[a],c=t[l];if(mI(c)){a&&m(",");var p=i+"/"+PI(l);g(o),y(p,"key"),m(wI(l)),y(p,"keyEnd"),m(":"),s&&m(" "),e(c,o,p)}}g(n),m("}")}else m("{}")}function a(r){if(t.size){m("{");for(var o=n+1,a=!0,l=t.entries(),c=l.next();!c.done;){var p=c.value,u=p[0],h=!!r||p[1];if(mI(h)){a||m(","),a=!1;var d=i+"/"+PI(u);g(o),y(d,"key"),m(wI(u)),y(d,"keyEnd"),m(":"),s&&m(" "),e(h,o,d)}c=l.next()}g(n),m("}")}else m("{}")}y(i,"valueEnd")}(e,0,""),{json:c,pointers:p}}function m(e){h+=e.length,d+=e.length,c+=e}function g(e){if(s){for(c+="\n"+v(e,s),u++,h=0;e--;)o?(u+=o,h=r):h+=r,d+=i;d+=1}}function y(e,t){p[e]=p[e]||{},p[e][t]={line:u,column:h,pos:d}}function v(e,t){return Array(e+1).join(t)}};var fI=["number","bigint","boolean","string","object"];function mI(e){return fI.indexOf(typeof e)>=0}var gI=/"|\\/g,yI=/[\b]/g,vI=/\f/g,bI=/\n/g,OI=/\r/g,xI=/\t/g;function wI(e){return'"'+(e=e.replace(gI,"\\$&").replace(vI,"\\f").replace(yI,"\\b").replace(bI,"\\n").replace(OI,"\\r").replace(xI,"\\t"))+'"'}var _I=/~/g,EI=/\//g;function PI(e){return e.replace(_I,"~0").replace(EI,"~1")}function kI(e,t){const n=function(e){return uI.stringify(e,null,2).pointers}(e),i=t(e);let r=t.errors;return r&&r.length&&(b(r,SI),r=function(e){return v(e,(function(e){return"if"!==e.keyword}))}(r),b(r,(function(e){!function(e,t){const n=e.dataPath,i=t[n];e.dataPointer=i}(e,n)}))),{valid:i,object:e,errors:r}}function SI(e){const t=e.params;t&&t.errors&&(t.rawErrors=t.errors,delete t.errors)}var TI="@camunda/zeebe-element-templates-json-schema",$I="0.9.0",CI={exports:{}};CI.exports=XI,CI.exports.default=XI;const MI={type:"object",allOf:[{required:["name","id","appliesTo","properties"],properties:{name:{$id:"#/name",type:"string",description:"The name of the element template."},id:{$id:"#/id",type:"string",description:"The identifier of the element template."},description:{$id:"#/description",type:"string",description:"The description of the element template."},version:{$id:"#/version",type:"integer",description:"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},isDefault:{$id:"#/isDefault",type:"boolean",description:"Indicates whether the element template is a default template."},appliesTo:{$id:"#/appliesTo",type:"array",description:"List of BPMN types the template can be applied to.",default:[],items:{$id:"#/appliesTo/items",type:"string",pattern:"^[\\w\\d]+:[\\w\\d]+$",allOf:[{examples:["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],errorMessage:{pattern:'invalid item for "appliesTo", should contain namespaced property, example: "bpmn:Task"'}}},elementType:{$id:"#/elementType",type:"object",description:"The BPMN type the element will be transformed into.",default:{},required:["value"],properties:{value:{$id:"#/elementType/value",type:"string",pattern:"^[\\w\\d]+:[\\w\\d]+$",allOf:[{examples:["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],errorMessage:{pattern:'invalid item for "elementType", should contain namespaced property, example: "bpmn:Task"'}}},errorMessage:{required:{value:"missing elementType value"}}},metadata:{$id:"#/metadata",type:"object",description:"Some custom properties for further configuration.",default:{}},entriesVisible:{$id:"#/entriesVisible",type:"boolean",description:"Select whether non-template entries are visible in the properties panel."},groups:{$id:"#/groups",type:"array",description:"Custom fields can be ordered together via groups.",allOf:[{examples:[[{id:"group-1",label:"My Group"}]]}],items:{$id:"#/groups/group",type:"object",default:{},required:["id","label"],properties:{id:{$id:"#/groups/group/id",type:"string",description:"The id of the custom group"},label:{$id:"#/groups/group/label",type:"string",description:"The label of the custom group"}},errorMessage:{required:{id:'missing id for group "${0#}"',label:'missing label for group "${0#}"'}}}},documentationRef:{$id:"#/documentationRef",type:"string",pattern:"^(https|http)://.*",errorMessage:{pattern:'Malformed documentation URL, must match "^(https|http)://.*"'}}},errorMessage:{required:{name:"missing template name",id:"missing template id",appliesTo:"missing appliesTo=[]",properties:"missing properties=[]"}}},{allOf:[{if:{properties:{properties:{contains:{properties:{binding:{properties:{type:{enum:["bpmn:Message#property","bpmn:Message#zeebe:subscription#property"]}},required:["type"]}}}}}},then:{properties:{elementType:{properties:{eventDefinition:{const:"bpmn:MessageEventDefinition"}},required:["eventDefinition"]}}}}]}],properties:{properties:{$ref:"#/definitions/properties",$id:"#/properties"},icon:{$id:"#/icon",type:"object",description:"Custom icon to be shown on the element",default:{},properties:{contents:{$id:"#/icon/contents",type:"string",description:"The URL of an icon.",pattern:"^(https?|data):.*",errorMessage:{pattern:"Malformed icon source, must be a valid HTTP(s) or data URL"}}},required:["contents"],errorMessage:{required:{contents:"missing icon contents"}}},elementType:{allOf:[{allOf:[{properties:{eventDefinition:{$id:"#/elementType/eventDefinition",enum:["bpmn:MessageEventDefinition"]}}},{if:{properties:{eventDefinition:{enum:["bpmn:MessageEventDefinition"]}},required:["eventDefinition"]},then:{properties:{value:{enum:["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},required:["value"]}}]}]}}},AI=new RegExp("^[\\w\\d]+:[\\w\\d]+$","u"),RI=new RegExp("^(https|http)://.*","u"),DI=new RegExp("^(https?|data):.*","u"),jI={required:"missingProperty",dependencies:"property",dependentRequired:"property"},qI=GX.exports,BI={allOf:[{type:"array",description:"List of properties of the element template.",allOf:[{examples:[[{label:"Name",type:"String",binding:{type:"property",name:"name"}}]]}],items:{type:"object",default:{},allOf:[{if:{properties:{type:{const:"Dropdown"}},required:["type"]},then:{required:["choices"],errorMessage:'must provide choices=[] with "Dropdown" type'}}],properties:{id:{type:"string",description:"Unique identifier of the property."},value:{$id:"#/properties/property/value",type:["string","boolean"],description:"The value of a control field."},description:{$id:"#/properties/property/description",type:"string",description:"The description of a control field."},label:{$id:"#/properties/property/label",type:"string",description:"The label of a control field."},type:{$id:"#/properties/property/type",type:"string",description:"The type of a control field."},editable:{$id:"#/properties/property/editable",type:"boolean",description:"Indicates whether a control field is editable or not."},choices:{$id:"#/properties/property/choices",type:"array",description:"The choices for dropdown fields.",default:[],items:{$id:"#/properties/property/choices/item",type:"object",default:{},properties:{name:{$id:"#/properties/property/choices/item/name",type:"string",description:"The name of a choice."},value:{$id:"#/properties/property/choices/item/value",type:"string",description:"The value of a choice."}},required:["value","name"],errorMessage:{required:'{ name, value } must be specified for "Dropdown" choices'}}},constraints:{$id:"#/properties/property/constraints",type:"object",description:"The validation constraints of a control field.",allOf:[{examples:[{notEmpty:!0}]}],properties:{notEmpty:{$id:"#/properties/property/constraints/notEmpty",type:"boolean",description:"The control field must not be empty."},minLength:{$id:"#/properties/property/constraints/minLength",type:"number",description:"The minimal length of a control field value."},maxLength:{$id:"#/properties/property/constraints/maxLength",type:"number",description:"The maximal length for a control field value."},pattern:{$id:"#/properties/property/constraints/pattern",description:"A regular expression pattern for a constraint.",oneOf:[{type:"object",default:{},properties:{value:{$id:"#/properties/property/constraints/pattern/value",type:"string",description:"The regular expression of a pattern."},message:{$id:"#/properties/property/constraints/pattern/message",type:"string",description:"The validation message of a pattern."}}},{type:"string"}]}}},group:{$id:"#/properties/property/group",type:"string",description:"The custom group of a control field."},condition:{$id:"#/condition",type:"object",description:"Condition(s) to activate the binding.",allOf:[{examples:[{type:"simple",property:"httpMethod",equals:"GET"},{type:"simple",property:"httpMethod",oneOf:["POST","PUT","DELETE"]},{allMatch:[{type:"simple",property:"authType",equals:"Basic"},{type:"simple",property:"httpMethod",oneOf:["POST","PUT","DELETE"]}]}]}],definitions:{condition:{type:"object",required:["property"],properties:{type:{$id:"#/condition/type",const:"simple",description:"The type of the condition.",default:"simple"},property:{$id:"#/condition/property",type:"string",description:"The id of the property to check."}},oneOf:[{properties:{equals:{type:["string","number","boolean"]}},required:["equals"]},{properties:{oneOf:{type:"array",items:{type:["string","number"]}}},required:["oneOf"]}],errorMessage:{required:{property:"missing property name for condition"}}}},oneOf:[{$ref:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{properties:{allMatch:{$id:"#/allMatch",type:"array",items:{$ref:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},minItems:1}},required:["allMatch"]}]}}}},{$schema:"http://json-schema.org/draft-07/schema",type:"array",description:"List of properties of the element template.",items:{type:"object",default:{},required:["binding"],allOf:[{if:{properties:{binding:{properties:{type:{const:"property"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown","Boolean"],errorMessage:'invalid property type ${0} for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'}}}},{if:{properties:{binding:{properties:{type:{enum:["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","zeebe:taskDefinition:retries","zeebe:taskDefinition:type","bpmn:Message#property","bpmn:Message#zeebe:subscription#property"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}},{if:{properties:{optional:{const:!0}},required:["optional"]},then:{properties:{binding:{properties:{type:{enum:["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader"],errorMessage:"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"}},required:["type"]}}}},{if:{properties:{optional:{const:!0}},required:["optional"]},then:{properties:{constraints:{properties:{notEmpty:{const:!1,errorMessage:'optional is not allowed for truthy "notEmpty" constraint'}},required:["notEmpty"]}}}},{if:{properties:{feel:{not:{const:null}}},required:["feel"]},then:{properties:{type:{enum:["String","Text"],errorMessage:'feel is only supported for "String" and "Text" type'}},required:["type"]}},{if:{properties:{language:{not:{const:null}}},required:["language"]},then:{properties:{type:{enum:["Text"],errorMessage:'language is only supported for "Text" type'}}}},{if:{required:["value"]},then:{not:{required:["generatedValue"]}}},{if:{properties:{type:{enum:["Boolean","Dropdown"]}},required:["type"]},then:{not:{required:["generatedValue"]}}}],properties:{binding:{$id:"#/properties/property/binding",type:"object",description:"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.",required:["type"],allOf:[{if:{properties:{type:{enum:["property","zeebe:property","zeebe:input","bpmn:Message#property","bpmn:Message#zeebe:subscription#property"]}},required:["type"]},then:{required:["name"],errorMessage:"property.binding ${0/type} requires name"}},{if:{properties:{type:{const:"zeebe:output"}},required:["type"]},then:{required:["source"],errorMessage:"property.binding ${0/type} requires source"}},{if:{properties:{type:{const:"zeebe:taskHeader"}},required:["type"]},then:{required:["key"],errorMessage:"property.binding ${0/type} requires key"}},{examples:[{type:"property",name:"name"},{type:"zeebe:input",name:"input"},{type:"zeebe:output",source:"output"},{type:"zeebe:property",name:"property"},{type:"zeebe:taskDefinition:retries"},{type:"zeebe:taskDefinition:type"},{type:"zeebe:taskHeader",key:"key"}]}],properties:{type:{$id:"#/properties/property/binding/type",type:"string",description:"The type of a property binding.",enum:["property","zeebe:taskDefinition:type","zeebe:taskDefinition:retries","zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","bpmn:Message#property","bpmn:Message#zeebe:subscription#property"],errorMessage:"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"},name:{$id:"#/properties/property/binding/name",type:"string",description:"The name of a property binding."},source:{$id:"#/properties/property/binding/source",type:"string",description:"The source value of a property binding (zeebe:output)."},key:{$id:"#/properties/property/binding/key",type:"string",description:"The key value of a property binding (zeebe:taskHeader)."}}},optional:{$id:"#/optional",type:"boolean",description:"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},feel:{$id:"#/properties/property/feel",type:"string",default:null,description:"Indicates whether the property can be a feel expression",enum:[null,"optional","required"]},language:{$id:"#/properties/property/language",type:"string",description:"Indicates that the field is a custom language editor"},generatedValue:{$id:"#/properties/property/generatedValue",type:"object",required:["type"],properties:{type:{const:"uuid"}},description:"Sets property to a generated value according to given scheme."}},errorMessage:{required:{binding:'missing binding for property "${0#}"'}}}}]},NI={type:"object",required:["property"],properties:{type:{$id:"#/condition/type",const:"simple",description:"The type of the condition.",default:"simple"},property:{$id:"#/condition/property",type:"string",description:"The id of the property to check."}},oneOf:[{properties:{equals:{type:["string","number","boolean"]}},required:["equals"]},{properties:{oneOf:{type:"array",items:{type:["string","number"]}}},required:["oneOf"]}],errorMessage:{required:{property:"missing property name for condition"}}};function zI(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,s=0;if(Array.isArray(e)){const n=e.length;for(let i=0;i<n;i++){let n=e[i];const r=s;let h=!0;const d=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.type&&!qI(n.type,"Dropdown")){const e={};null===o?o=[e]:o.push(e),s++}var a=d===s;if(s=r,null!==o&&(r?o.length=r:o=null),a){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.choices){const e={keyword:"required",dataPath:t+"/"+i,schemaPath:"#/allOf/0/items/allOf/0/then/required",params:{missingProperty:"choices"},message:"should have required property 'choices'"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/"+i&&(0!==n.dataPath.indexOf(t+"/"+i)||"/"!==n.dataPath[t+"/"+i.length])||0!==n.schemaPath.indexOf("#/allOf/0/items/allOf/0/then")||"/"!==n.schemaPath["#/allOf/0/items/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/"+i,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",params:{errors:e},message:'must provide choices=[] with "Dropdown" type'};null===o?o=[n]:o.push(n),s++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,s=n.length}h=a=e===s}if(!h){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/0/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0!==n.id&&"string"!=typeof n.id){const e={keyword:"type",dataPath:t+"/"+i+"/id",schemaPath:"#/allOf/0/items/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.value){let e=n.value;if("string"!=typeof e&&"boolean"!=typeof e){const e={keyword:"type",dataPath:t+"/"+i+"/value",schemaPath:"#/allOf/0/items/properties/value/type",params:{type:BI.allOf[0].items.properties.value.type},message:"should be string,boolean"};null===o?o=[e]:o.push(e),s++}}if(void 0!==n.description&&"string"!=typeof n.description){const e={keyword:"type",dataPath:t+"/"+i+"/description",schemaPath:"#/allOf/0/items/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.label&&"string"!=typeof n.label){const e={keyword:"type",dataPath:t+"/"+i+"/label",schemaPath:"#/allOf/0/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.type&&"string"!=typeof n.type){const e={keyword:"type",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/0/items/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.editable&&"boolean"!=typeof n.editable){const e={keyword:"type",dataPath:t+"/"+i+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.choices){let e=n.choices;if(Array.isArray(e)){const n=e.length;for(let r=0;r<n;r++){let n=e[r];if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.value){const e={keyword:"required",dataPath:t+"/"+i+"/choices/"+r,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty:"value"},message:"should have required property 'value'"};null===o?o=[e]:o.push(e),s++}if(void 0===n.name){const e={keyword:"required",dataPath:t+"/"+i+"/choices/"+r,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.name&&"string"!=typeof n.name){const e={keyword:"type",dataPath:t+"/"+i+"/choices/"+r+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.value&&"string"!=typeof n.value){const e={keyword:"type",dataPath:t+"/"+i+"/choices/"+r+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/choices/"+r,schemaPath:"#/allOf/0/items/properties/choices/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/"+i+"/choices/"+r&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/items/properties/choices/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(40))&&(e[n.keyword].push(n),n.emUsed=!0);for(const a in e)if(e[a].length){const l={keyword:"errorMessage",dataPath:t+"/"+i+"/choices/"+r,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",params:{errors:e[a]},message:a in n?n[a]():BI.allOf[0].items.properties.choices.items.errorMessage[a]};null===o?o=[l]:o.push(l),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}if(void 0!==n.constraints){let e=n.constraints;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.notEmpty&&"boolean"!=typeof e.notEmpty){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.minLength&&"number"!=typeof e.minLength){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.maxLength&&"number"!=typeof e.maxLength){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.pattern){let n=e.pattern;const r=s;let a=!1,c=null;const p=s;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0!==n.value&&"string"!=typeof n.value){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.message&&"string"!=typeof n.message){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}(l=p===s)&&(a=!0,c=0);const u=s;if("string"!=typeof n){const e={keyword:"type",dataPath:t+"/"+i+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}var l;if((l=u===s)&&a?(a=!1,c=[c,1]):l&&(a=!0,c=1),a)s=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas:c},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}}if(void 0!==n.group&&"string"!=typeof n.group){const e={keyword:"type",dataPath:t+"/"+i+"/group",schemaPath:"#/allOf/0/items/properties/group/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.condition){let e=n.condition;if(!e||"object"!=typeof e||Array.isArray(e)){const e={keyword:"type",dataPath:t+"/"+i+"/condition",schemaPath:"#/allOf/0/items/properties/condition/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}const r=s;let a=!1,l=null;const h=s,d=s;let f=!1,m=null;const g=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.equals){const e={keyword:"required",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty:"equals"},message:"should have required property 'equals'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.equals){let n=e.equals;if("string"!=typeof n&&"number"!=typeof n&&"boolean"!=typeof n){const e={keyword:"type",dataPath:t+"/"+i+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type:NI.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};null===o?o=[e]:o.push(e),s++}}}(c=g===s)&&(f=!0,m=0);const y=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.oneOf){const e={keyword:"required",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty:"oneOf"},message:"should have required property 'oneOf'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.oneOf){let n=e.oneOf;if(Array.isArray(n)){const e=n.length;for(let r=0;r<e;r++){let e=n[r];if("string"!=typeof e&&"number"!=typeof e){const e={keyword:"type",dataPath:t+"/"+i+"/condition/oneOf/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type:NI.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}}var c;if((c=y===s)&&f?(f=!1,m=[m,1]):c&&(f=!0,m=1),f)s=d,null!==o&&(d?o.length=d:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas:m},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.property){const e={keyword:"required",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty:"property"},message:"should have required property 'property'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.type&&!qI(e.type,"simple")){const e={keyword:"const",dataPath:t+"/"+i+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue:"simple"},message:"should be equal to constant"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.property&&"string"!=typeof e.property){const e={keyword:"type",dataPath:t+"/"+i+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:{property:[]}},n={required:{}};let r,a;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/"+i+"/condition"&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition")&&/^\/[^\/]*$/.test(n.schemaPath.slice(81))&&(r=jI[n.keyword],a=e[n.keyword][n.params[r]],a&&(a.push(n),n.emUsed=!0));for(const r in e)for(const l in e[r])if(a=e[r][l],a.length){const e=n[r]&&n[r][l],c={keyword:"errorMessage",dataPath:t+"/"+i+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors:a},message:e?e():NI.errorMessage[r][l]};null===o?o=[c]:o.push(c),s++}const l=[];for(const e of o)e.emUsed||l.push(e);o=l,s=l.length}(u=h===s)&&(a=!0,l=0);const v=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.allMatch){const e={keyword:"required",dataPath:t+"/"+i+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/required",params:{missingProperty:"allMatch"},message:"should have required property 'allMatch'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.allMatch){let n=e.allMatch;if(Array.isArray(n)){if(n.length<1){const e={keyword:"minItems",dataPath:t+"/"+i+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit:1},message:"should NOT have fewer than 1 items"};null===o?o=[e]:o.push(e),s++}const e=n.length;for(let r=0;r<e;r++){let e=n[r];const a=s;let l=!1,c=null;const u=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.equals){const e={keyword:"required",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty:"equals"},message:"should have required property 'equals'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.equals){let n=e.equals;if("string"!=typeof n&&"number"!=typeof n&&"boolean"!=typeof n){const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type:NI.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};null===o?o=[e]:o.push(e),s++}}}(p=u===s)&&(l=!0,c=0);const h=s;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.oneOf){const e={keyword:"required",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty:"oneOf"},message:"should have required property 'oneOf'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.oneOf){let n=e.oneOf;if(Array.isArray(n)){const e=n.length;for(let a=0;a<e;a++){let e=n[a];if("string"!=typeof e&&"number"!=typeof e){const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/oneOf/"+a,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type:NI.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}}var p;if((p=h===s)&&l?(l=!1,c=[c,1]):p&&(l=!0,c=1),l)s=a,null!==o&&(a?o.length=a:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas:c},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.property){const e={keyword:"required",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty:"property"},message:"should have required property 'property'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.type&&!qI(e.type,"simple")){const e={keyword:"const",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue:"simple"},message:"should be equal to constant"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.property&&"string"!=typeof e.property){const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:{property:[]}},n={required:{}};let a,l;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/"+i+"/condition/allMatch/"+r&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition")&&/^\/[^\/]*$/.test(n.schemaPath.slice(81))&&(a=jI[n.keyword],l=e[n.keyword][n.params[a]],l&&(l.push(n),n.emUsed=!0));for(const a in e)for(const c in e[a])if(l=e[a][c],l.length){const e=n[a]&&n[a][c],p={keyword:"errorMessage",dataPath:t+"/"+i+"/condition/allMatch/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors:l},message:e?e():NI.errorMessage[a][c]};null===o?o=[p]:o.push(p),s++}const c=[];for(const e of o)e.emUsed||c.push(e);o=c,s=c.length}}}else{const e={keyword:"type",dataPath:t+"/"+i+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}}var u;if((u=v===s)&&a?(a=!1,l=[l,1]):u&&(a=!0,l=1),a)s=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/"+i+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i,schemaPath:"#/allOf/0/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t,schemaPath:"#/allOf/0/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}if(Array.isArray(e)){const n=e.length;for(let i=0;i<n;i++){let n=e[i];const r=s;let a=!0;const l=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.binding){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.binding){let e=n.binding;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type&&!qI(e.type,"property")){const e={};null===o?o=[e]:o.push(e),s++}}var h=l===s;if(s=r,null!==o&&(r?o.length=r:o=null),h){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0!==n.type){let e=n.type;if("String"!==e&&"Text"!==e&&"Hidden"!==e&&"Dropdown"!==e&&"Boolean"!==e){const e={keyword:"enum",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues:BI.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/"+i+"/type")||"/"!==e.dataPath[t+"/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type")||"/"!==e.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors:n},message:"invalid property type "+JSON.stringify(e)+' for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}}a=h=e===s}if(!a){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const c=s;let p=!0;const u=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.binding){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.binding){let e=n.binding;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type){let t=e.type;if("zeebe:input"!==t&&"zeebe:output"!==t&&"zeebe:property"!==t&&"zeebe:taskHeader"!==t&&"zeebe:taskDefinition:retries"!==t&&"zeebe:taskDefinition:type"!==t&&"bpmn:Message#property"!==t&&"bpmn:Message#zeebe:subscription#property"!==t){const e={};null===o?o=[e]:o.push(e),s++}}}var d=u===s;if(s=c,null!==o&&(c?o.length=c:o=null),d){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0!==n.type){let e=n.type;if("String"!==e&&"Text"!==e&&"Hidden"!==e&&"Dropdown"!==e){const e={keyword:"enum",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues:BI.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const r=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/"+i+"/type")||"/"!==e.dataPath[t+"/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type")||"/"!==e.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length]||(r.push(e),e.emUsed=!0);if(r.length){const a={keyword:"errorMessage",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors:r},message:"invalid property type "+JSON.stringify(e)+" for binding type "+JSON.stringify(n&&n.binding&&n.binding.type)+"; must be any of { String, Text, Hidden, Dropdown }"};null===o?o=[a]:o.push(a),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}p=d=e===s}if(!p){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const _=s;let E=!0;const P=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.optional){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.optional&&!qI(n.optional,!0)){const e={};null===o?o=[e]:o.push(e),s++}var f=P===s;if(s=_,null!==o&&(_?o.length=_:o=null),f){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0!==n.binding){let e=n.binding;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.type){let n=e.type;if("zeebe:input"!==n&&"zeebe:output"!==n&&"zeebe:property"!==n&&"zeebe:taskHeader"!==n){const e={keyword:"enum",dataPath:t+"/"+i+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues:BI.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/"+i+"/binding/type"&&(0!==n.dataPath.indexOf(t+"/"+i+"/binding/type")||"/"!==n.dataPath[t+"/"+i+"/binding/type".length])||0!==n.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type")||"/"!==n.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors:e},message:"optional is not supported for binding type "+JSON.stringify(n)+"; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}}}}E=f=e===s}if(!E){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const k=s;let S=!0;const T=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.optional){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.optional&&!qI(n.optional,!0)){const e={};null===o?o=[e]:o.push(e),s++}var m=T===s;if(s=k,null!==o&&(k?o.length=k:o=null),m){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0!==n.constraints){let e=n.constraints;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.notEmpty){const e={keyword:"required",dataPath:t+"/"+i+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty:"notEmpty"},message:"should have required property 'notEmpty'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.notEmpty){if(!qI(e.notEmpty,!1)){const e={keyword:"const",dataPath:t+"/"+i+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue:!1},message:"should be equal to constant"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/"+i+"/constraints/notEmpty"&&(0!==n.dataPath.indexOf(t+"/"+i+"/constraints/notEmpty")||"/"!==n.dataPath[t+"/"+i+"/constraints/notEmpty".length])||0!==n.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty")||"/"!==n.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/"+i+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors:e},message:'optional is not allowed for truthy "notEmpty" constraint'};null===o?o=[n]:o.push(n),s++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,s=n.length}}}}S=m=e===s}if(!S){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const $=s;let C=!0;const M=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.feel){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.feel){const e=s,t=s;if(!qI(n.feel,BI.allOf[1].items.allOf[4].if.properties.feel.not.const)){const e={};null===o?o=[e]:o.push(e),s++}if(t===s){const e={};null===o?o=[e]:o.push(e),s++}else s=e,null!==o&&(e?o.length=e:o=null)}var g=M===s;if(s=$,null!==o&&($?o.length=$:o=null),g){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.type){const e={keyword:"required",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/4/then/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.type){let e=n.type;if("String"!==e&&"Text"!==e){const e={keyword:"enum",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",params:{allowedValues:BI.allOf[1].items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/"+i+"/type"&&(0!==n.dataPath.indexOf(t+"/"+i+"/type")||"/"!==n.dataPath[t+"/"+i+"/type".length])||0!==n.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type")||"/"!==n.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors:e},message:'feel is only supported for "String" and "Text" type'};null===o?o=[n]:o.push(n),s++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,s=n.length}}}C=g=e===s}if(!C){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/4/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const A=s;let R=!0;const D=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.language){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.language){const e=s,t=s;if(!qI(n.language,BI.allOf[1].items.allOf[5].if.properties.language.not.const)){const e={};null===o?o=[e]:o.push(e),s++}if(t===s){const e={};null===o?o=[e]:o.push(e),s++}else s=e,null!==o&&(e?o.length=e:o=null)}var y=D===s;if(s=A,null!==o&&(A?o.length=A:o=null),y){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0!==n.type){if("Text"!==n.type){const e={keyword:"enum",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",params:{allowedValues:BI.allOf[1].items.allOf[5].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/"+i+"/type"&&(0!==n.dataPath.indexOf(t+"/"+i+"/type")||"/"!==n.dataPath[t+"/"+i+"/type".length])||0!==n.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type")||"/"!==n.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/"+i+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",params:{errors:e},message:'language is only supported for "Text" type'};null===o?o=[n]:o.push(n),s++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,s=n.length}}R=y=e===s}if(!R){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/5/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const j=s;let q=!0;const B=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.value){const e={};null===o?o=[e]:o.push(e),s++}var v=B===s;if(s=j,null!==o&&(j?o.length=j:o=null),v){const e=s,r=s,a=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.generatedValue){const e={};null===o?o=[e]:o.push(e),s++}if(a===s){const e={keyword:"not",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/6/then/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),s++}else s=r,null!==o&&(r?o.length=r:o=null);q=v=e===s}if(!q){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/6/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const N=s;let z=!0;const Q=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.type){let e=n.type;if("Boolean"!==e&&"Dropdown"!==e){const e={};null===o?o=[e]:o.push(e),s++}}var b=Q===s;if(s=N,null!==o&&(N?o.length=N:o=null),b){const e=s,r=s,a=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.generatedValue){const e={};null===o?o=[e]:o.push(e),s++}if(a===s){const e={keyword:"not",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/7/then/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),s++}else s=r,null!==o&&(r?o.length=r:o=null);z=b=e===s}if(!z){const e={keyword:"if",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/allOf/7/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.binding){const e={keyword:"required",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/required",params:{missingProperty:"binding"},message:"should have required property 'binding'"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.binding){let e=n.binding;const r=s;let a=!0;const l=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type){let t=e.type;if("property"!==t&&"zeebe:property"!==t&&"zeebe:input"!==t&&"bpmn:Message#property"!==t&&"bpmn:Message#zeebe:subscription#property"!==t){const e={};null===o?o=[e]:o.push(e),s++}}var O=l===s;if(s=r,null!==o&&(r?o.length=r:o=null),O){const n=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.name){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/binding"&&(0!==e.dataPath.indexOf(t+"/"+i+"/binding")||"/"!==e.dataPath[t+"/"+i+"/binding".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then")||"/"!==e.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors:n},message:"property.binding "+JSON.stringify(e&&e.type)+" requires name"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}a=O=n===s}if(!a){const e={keyword:"if",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const c=s;let p=!0;const u=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type&&!qI(e.type,"zeebe:output")){const e={};null===o?o=[e]:o.push(e),s++}var x=u===s;if(s=c,null!==o&&(c?o.length=c:o=null),x){const n=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.source){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/binding"&&(0!==e.dataPath.indexOf(t+"/"+i+"/binding")||"/"!==e.dataPath[t+"/"+i+"/binding".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then")||"/"!==e.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors:n},message:"property.binding "+JSON.stringify(e&&e.type)+" requires source"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}p=x=n===s}if(!p){const e={keyword:"if",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}const h=s;let d=!0;const f=s;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type&&!qI(e.type,"zeebe:taskHeader")){const e={};null===o?o=[e]:o.push(e),s++}var w=f===s;if(s=h,null!==o&&(h?o.length=h:o=null),w){const n=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.key){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty:"key"},message:"should have required property 'key'"};null===o?o=[e]:o.push(e),s++}if(s>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/"+i+"/binding"&&(0!==e.dataPath.indexOf(t+"/"+i+"/binding")||"/"!==e.dataPath[t+"/"+i+"/binding".length])||0!==e.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then")||"/"!==e.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors:n},message:"property.binding "+JSON.stringify(e&&e.type)+" requires key"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}d=w=n===s}if(!d){const e={keyword:"if",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={keyword:"required",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.type){let n=e.type;if("string"!=typeof n){const e={keyword:"type",dataPath:t+"/"+i+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if("property"!==n&&"zeebe:taskDefinition:type"!==n&&"zeebe:taskDefinition:retries"!==n&&"zeebe:input"!==n&&"zeebe:output"!==n&&"zeebe:property"!==n&&"zeebe:taskHeader"!==n&&"bpmn:Message#property"!==n&&"bpmn:Message#zeebe:subscription#property"!==n){const e={keyword:"enum",dataPath:t+"/"+i+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues:BI.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}if(s>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/"+i+"/binding/type"&&(0!==n.dataPath.indexOf(t+"/"+i+"/binding/type")||"/"!==n.dataPath[t+"/"+i+"/binding/type".length])||0!==n.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type")||"/"!==n.schemaPath["#/allOf/1/items/properties/binding/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/"+i+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors:e},message:"invalid property.binding type "+JSON.stringify(n)+"; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"};null===o?o=[r]:o.push(r),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/"+i+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.source&&"string"!=typeof e.source){const e={keyword:"type",dataPath:t+"/"+i+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.key&&"string"!=typeof e.key){const e={keyword:"type",dataPath:t+"/"+i+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}}if(void 0!==n.optional&&"boolean"!=typeof n.optional){const e={keyword:"type",dataPath:t+"/"+i+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.feel){let e=n.feel;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/"+i+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(null!==e&&"optional"!==e&&"required"!==e){const e={keyword:"enum",dataPath:t+"/"+i+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",params:{allowedValues:BI.allOf[1].items.properties.feel.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}}if(void 0!==n.language&&"string"!=typeof n.language){const e={keyword:"type",dataPath:t+"/"+i+"/language",schemaPath:"#/allOf/1/items/properties/language/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.generatedValue){let e=n.generatedValue;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={keyword:"required",dataPath:t+"/"+i+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.type&&!qI(e.type,"uuid")){const e={keyword:"const",dataPath:t+"/"+i+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",params:{allowedValue:"uuid"},message:"should be equal to constant"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/"+i+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:{binding:[]}},n={required:{binding:function(){return'missing binding for property "'+JSON.stringify(i)+'"'}}};let r,a;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/1/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(15))&&(r=jI[n.keyword],a=e[n.keyword][n.params[r]],a&&(a.push(n),n.emUsed=!0));for(const r in e)for(const l in e[r])if(a=e[r][l],a.length){const e=n[r]&&n[r][l],c={keyword:"errorMessage",dataPath:t+"/"+i,schemaPath:"#/allOf/1/items/errorMessage",params:{errors:a},message:e?e():BI.allOf[1].items.errorMessage[r][l]};null===o?o=[c]:o.push(c),s++}const l=[];for(const e of o)e.emUsed||l.push(e);o=l,s=l.length}}}else{const e={keyword:"type",dataPath:t,schemaPath:"#/allOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}return zI.errors=o,0===s}function QI(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,s=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.name){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),s++}if(void 0===e.id){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),s++}if(void 0===e.appliesTo){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"appliesTo"},message:"should have required property 'appliesTo'"};null===o?o=[e]:o.push(e),s++}if(void 0===e.properties){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"properties"},message:"should have required property 'properties'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.id&&"string"!=typeof e.id){const e={keyword:"type",dataPath:t+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.description&&"string"!=typeof e.description){const e={keyword:"type",dataPath:t+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.version){let n=e.version;if("number"!=typeof n||n%1||isNaN(n)){const e={keyword:"type",dataPath:t+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type:"integer"},message:"should be integer"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.isDefault&&"boolean"!=typeof e.isDefault){const e={keyword:"type",dataPath:t+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.appliesTo){let n=e.appliesTo;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];if("string"==typeof e){if(!AI.test(e)){const e={keyword:"pattern",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern:"^[\\w\\d]+:[\\w\\d]+$"},message:'should match pattern "^[\\w\\d]+:[\\w\\d]+$"'};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={pattern:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/appliesTo/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(36))&&(e[n.keyword].push(n),n.emUsed=!0);for(const r in e)if(e[r].length){const a={keyword:"errorMessage",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors:e[r]},message:r in n?n[r]():MI.allOf[0].properties.appliesTo.items.errorMessage[r]};null===o?o=[a]:o.push(a),s++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,s=r.length}}}else{const e={keyword:"type",dataPath:t+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.elementType){let n=e.elementType;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.value){const e={keyword:"required",dataPath:t+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty:"value"},message:"should have required property 'value'"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.value){let e=n.value;if("string"==typeof e){if(!AI.test(e)){const e={keyword:"pattern",dataPath:t+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern:"^[\\w\\d]+:[\\w\\d]+$"},message:'should match pattern "^[\\w\\d]+:[\\w\\d]+$"'};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={pattern:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/elementType/value"&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value")&&/^\/[^\/]*$/.test(n.schemaPath.slice(49))&&(e[n.keyword].push(n),n.emUsed=!0);for(const i in e)if(e[i].length){const r={keyword:"errorMessage",dataPath:t+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors:e[i]},message:i in n?n[i]():MI.allOf[0].properties.elementType.properties.value.errorMessage[i]};null===o?o=[r]:o.push(r),s++}const i=[];for(const e of o)e.emUsed||i.push(e);o=i,s=i.length}}}else{const e={keyword:"type",dataPath:t+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:{value:[]}},n={required:{}};let i,r;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/elementType"&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/elementType")&&/^\/[^\/]*$/.test(n.schemaPath.slice(32))&&(i=jI[n.keyword],r=e[n.keyword][n.params[i]],r&&(r.push(n),n.emUsed=!0));for(const i in e)for(const a in e[i])if(r=e[i][a],r.length){const e=n[i]&&n[i][a],l={keyword:"errorMessage",dataPath:t+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",params:{errors:r},message:e?e():MI.allOf[0].properties.elementType.errorMessage[i][a]};null===o?o=[l]:o.push(l),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}if(void 0!==e.metadata){let n=e.metadata;if(!n||"object"!=typeof n||Array.isArray(n)){const e={keyword:"type",dataPath:t+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.entriesVisible&&"boolean"!=typeof e.entriesVisible){const e={keyword:"type",dataPath:t+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.groups){let n=e.groups;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.id){const e={keyword:"required",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),s++}if(void 0===e.label){const e={keyword:"required",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty:"label"},message:"should have required property 'label'"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.id&&"string"!=typeof e.id){const e={keyword:"type",dataPath:t+"/groups/"+i+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(void 0!==e.label&&"string"!=typeof e.label){const e={keyword:"type",dataPath:t+"/groups/"+i+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:{id:[],label:[]}},n={required:{id:function(){return'missing id for group "'+JSON.stringify(i)+'"'},label:function(){return'missing label for group "'+JSON.stringify(i)+'"'}}};let r,a;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/groups/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/groups/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(33))&&(r=jI[n.keyword],a=e[n.keyword][n.params[r]],a&&(a.push(n),n.emUsed=!0));for(const r in e)for(const l in e[r])if(a=e[r][l],a.length){const e=n[r]&&n[r][l],c={keyword:"errorMessage",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors:a},message:e?e():MI.allOf[0].properties.groups.items.errorMessage[r][l]};null===o?o=[c]:o.push(c),s++}const l=[];for(const e of o)e.emUsed||l.push(e);o=l,s=l.length}}}else{const e={keyword:"type",dataPath:t+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}}if(void 0!==e.documentationRef){let n=e.documentationRef;if("string"==typeof n){if(!RI.test(n)){const e={keyword:"pattern",dataPath:t+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern:"^(https|http)://.*"},message:'should match pattern "^(https|http)://.*"'};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={pattern:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/documentationRef"&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/documentationRef")&&/^\/[^\/]*$/.test(n.schemaPath.slice(37))&&(e[n.keyword].push(n),n.emUsed=!0);for(const i in e)if(e[i].length){const r={keyword:"errorMessage",dataPath:t+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors:e[i]},message:i in n?n[i]():MI.allOf[0].properties.documentationRef.errorMessage[i]};null===o?o=[r]:o.push(r),s++}const i=[];for(const e of o)e.emUsed||i.push(e);o=i,s=i.length}}}if(s>0){const e={required:{name:[],id:[],appliesTo:[],properties:[]}},n={required:{}};let i,r;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0")&&/^\/[^\/]*$/.test(n.schemaPath.slice(9))&&(i=jI[n.keyword],r=e[n.keyword][n.params[i]],r&&(r.push(n),n.emUsed=!0));for(const i in e)for(const a in e[i])if(r=e[i][a],r.length){const e=n[i]&&n[i][a],l={keyword:"errorMessage",dataPath:t,schemaPath:"#/allOf/0/errorMessage",params:{errors:r},message:e?e():MI.allOf[0].errorMessage[i][a]};null===o?o=[l]:o.push(l),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}const a=s;let l=!0;const c=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.properties){let t=e.properties;if(Array.isArray(t)){const e=s,n=t.length;for(let e=0;e<n;e++){let n=t[e];const i=s;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0!==n.binding){let e=n.binding;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==e.type){let t=e.type;if("bpmn:Message#property"!==t&&"bpmn:Message#zeebe:subscription#property"!==t){const e={};null===o?o=[e]:o.push(e),s++}}}var p=i===s;if(p)break}if(p)s=e,null!==o&&(e?o.length=e:o=null);else{const e={};null===o?o=[e]:o.push(e),s++}}}var u=c===s;if(s=a,null!==o&&(a?o.length=a:o=null),u){const n=s;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.elementType){let n=e.elementType;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.eventDefinition){const e={keyword:"required",dataPath:t+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",params:{missingProperty:"eventDefinition"},message:"should have required property 'eventDefinition'"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.eventDefinition&&!qI(n.eventDefinition,"bpmn:MessageEventDefinition")){const e={keyword:"const",dataPath:t+"/elementType/eventDefinition",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/eventDefinition/const",params:{allowedValue:"bpmn:MessageEventDefinition"},message:"should be equal to constant"};null===o?o=[e]:o.push(e),s++}}}l=u=n===s}if(!l){const e={keyword:"if",dataPath:t,schemaPath:"#/allOf/1/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.properties&&(zI(e.properties,{dataPath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:r})||(o=null===o?zI.errors:o.concat(zI.errors),s=o.length)),void 0!==e.icon){let n=e.icon;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.contents){const e={keyword:"required",dataPath:t+"/icon",schemaPath:"#/properties/icon/required",params:{missingProperty:"contents"},message:"should have required property 'contents'"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.contents){let e=n.contents;if("string"==typeof e){if(!DI.test(e)){const e={keyword:"pattern",dataPath:t+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",params:{pattern:"^(https?|data):.*"},message:'should match pattern "^(https?|data):.*"'};null===o?o=[e]:o.push(e),s++}}else{const e={keyword:"type",dataPath:t+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={pattern:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/icon/contents"&&n.keyword in e&&0===n.schemaPath.indexOf("#/properties/icon/properties/contents")&&/^\/[^\/]*$/.test(n.schemaPath.slice(37))&&(e[n.keyword].push(n),n.emUsed=!0);for(const i in e)if(e[i].length){const r={keyword:"errorMessage",dataPath:t+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",params:{errors:e[i]},message:i in n?n[i]():MI.properties.icon.properties.contents.errorMessage[i]};null===o?o=[r]:o.push(r),s++}const i=[];for(const e of o)e.emUsed||i.push(e);o=i,s=i.length}}}else{const e={keyword:"type",dataPath:t+"/icon",schemaPath:"#/properties/icon/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}if(s>0){const e={required:{contents:[]}},n={required:{}};let i,r;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/icon"&&n.keyword in e&&0===n.schemaPath.indexOf("#/properties/icon")&&/^\/[^\/]*$/.test(n.schemaPath.slice(17))&&(i=jI[n.keyword],r=e[n.keyword][n.params[i]],r&&(r.push(n),n.emUsed=!0));for(const i in e)for(const a in e[i])if(r=e[i][a],r.length){const e=n[i]&&n[i][a],l={keyword:"errorMessage",dataPath:t+"/icon",schemaPath:"#/properties/icon/errorMessage",params:{errors:r},message:e?e():MI.properties.icon.errorMessage[i][a]};null===o?o=[l]:o.push(l),s++}const a=[];for(const e of o)e.emUsed||a.push(e);o=a,s=a.length}}if(void 0!==e.elementType){let n=e.elementType;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0!==n.eventDefinition&&"bpmn:MessageEventDefinition"!==n.eventDefinition){const e={keyword:"enum",dataPath:t+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",params:{allowedValues:MI.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}const i=s;let r=!0;const a=s;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.eventDefinition){const e={};null===o?o=[e]:o.push(e),s++}else if(void 0!==n.eventDefinition&&"bpmn:MessageEventDefinition"!==n.eventDefinition){const e={};null===o?o=[e]:o.push(e),s++}var h=a===s;if(s=i,null!==o&&(i?o.length=i:o=null),h){const e=s;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.value){const e={keyword:"required",dataPath:t+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",params:{missingProperty:"value"},message:"should have required property 'value'"};null===o?o=[e]:o.push(e),s++}if(void 0!==n.value){let e=n.value;if("bpmn:StartEvent"!==e&&"bpmn:IntermediateCatchEvent"!==e&&"bpmn:IntermediateThrowEvent"!==e&&"bpmn:BoundaryEvent"!==e&&"bpmn:EndEvent"!==e){const e={keyword:"enum",dataPath:t+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",params:{allowedValues:MI.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),s++}}}r=h=e===s}if(!r){const e={keyword:"if",dataPath:t+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),s++}}}else{const e={keyword:"type",dataPath:t,schemaPath:"#/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),s++}return QI.errors=o,0===s}function XI(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,s=0;const a=s;let l=!1,c=null;const p=s;QI(e,{dataPath:t,parentData:n,parentDataProperty:i,rootData:r})||(o=null===o?QI.errors:o.concat(QI.errors),s=o.length),(h=p===s)&&(l=!0,c=0);const u=s;if(Array.isArray(e)){const n=e.length;for(let i=0;i<n;i++)QI(e[i],{dataPath:t+"/"+i,parentData:e,parentDataProperty:i,rootData:r})||(o=null===o?QI.errors:o.concat(QI.errors),s=o.length)}else{const e={keyword:"type",dataPath:t,schemaPath:"#/oneOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),s++}var h;if((h=u===s)&&l?(l=!1,c=[c,1]):h&&(l=!0,c=1),l)s=a,null!==o&&(a?o.length=a:o=null);else{const e={keyword:"oneOf",dataPath:t,schemaPath:"#/oneOf",params:{passingSchemas:c},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),s++}return XI.errors=o,0===s}const II=Pw({selectedElement:null,injector:null,getService:()=>null});function LI(e,t){const{getService:n}=Vw(II);return n(e,t)}function VI(){return VI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},VI.apply(this,arguments)}function FI(){return FI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},FI.apply(this,arguments)}function UI(){return UI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},UI.apply(this,arguments)}function HI(){return HI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},HI.apply(this,arguments)}function YI(){return YI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},YI.apply(this,arguments)}function WI(){return WI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},WI.apply(this,arguments)}function GI(){return GI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},GI.apply(this,arguments)}var ZI=({styles:e={},...t})=>b_("svg",GI({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),b_("path",{stroke:"#000",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"1.1,4.3",d:"M1.5 30.5L27 5"}),b_("path",{d:"M31.803.197L26.5 16.107l-1.52-1.52 3.783-11.35-11.35 3.783-1.52-1.52z"}));function KI(){return KI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},KI.apply(this,arguments)}function JI(){return JI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},JI.apply(this,arguments)}function eL(){return eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},eL.apply(this,arguments)}function tL(){return tL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},tL.apply(this,arguments)}function nL(){return nL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},nL.apply(this,arguments)}function iL(){return iL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},iL.apply(this,arguments)}function rL(){return rL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},rL.apply(this,arguments)}function oL(){return oL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},oL.apply(this,arguments)}function sL(){return sL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},sL.apply(this,arguments)}function aL(){return aL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},aL.apply(this,arguments)}function lL(){return lL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},lL.apply(this,arguments)}function cL(){return cL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},cL.apply(this,arguments)}function pL(){return pL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pL.apply(this,arguments)}function uL(){return uL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},uL.apply(this,arguments)}function hL(){return hL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},hL.apply(this,arguments)}function dL(){return dL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},dL.apply(this,arguments)}function fL(){return fL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},fL.apply(this,arguments)}function mL(){return mL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},mL.apply(this,arguments)}function gL(){return gL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},gL.apply(this,arguments)}function yL(){return yL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yL.apply(this,arguments)}function vL(){return vL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},vL.apply(this,arguments)}function bL(){return bL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bL.apply(this,arguments)}function OL(){return OL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},OL.apply(this,arguments)}function xL(){return xL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},xL.apply(this,arguments)}var wL=({styles:e={},...t})=>b_("svg",xL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.049C8.195-.111.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.454 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0116 5.021zm-3.956 3.946l-3.096 3.097 3.985 3.985-3.913 3.913 3.047 3.048 3.913-3.913 3.988 3.987 3.097-3.096L19.076 16l3.914-3.913-3.048-3.048-3.913 3.913-3.986-3.985zm-.002 1.222l3.988 3.987 3.913-3.913 1.826 1.826-3.913 3.913 3.985 3.986-1.873 1.873-3.985-3.985-3.913 3.913-1.827-1.827 3.914-3.913-3.988-3.987 1.873-1.873z"}));function _L(){return _L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_L.apply(this,arguments)}var EL=({styles:e={},...t})=>b_("svg",_L({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm-.56 5.772l-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.793l-7.157 5.055v-5.055zm-.865 1.665v7.125l-5.048-3.562 5.048-3.563zm7.161 0v7.132l-5.048-3.566 5.048-3.566z"}));function PL(){return PL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},PL.apply(this,arguments)}var kL=({styles:e={},...t})=>b_("svg",PL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0015.97.04zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 016.735-2.294zm-5.352 4.266V22.761h10.716V9.279H10.642zm.863.866h8.987v11.75h-8.987v-11.75zm.927 1.323v.862h7.133v-.862h-7.133zm0 2.602v.866h7.133v-.866h-7.133zm0 3.008v.862h7.133v-.862h-7.133zm0 2.717v.863h7.133v-.863h-7.133z"}));function SL(){return SL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},SL.apply(this,arguments)}var TL=({styles:e={},...t})=>b_("svg",SL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm6.132 4.194c-1.21 2.455-2.422 4.91-3.633 7.364l-4.516-5.875-4.103 12.133 4.6-5.912c1.58 1.81 3.162 3.619 4.744 5.429L22.13 9.215zM14.383 13.1l4.295 5.445 1.073-2.387-1.027 4.131-4.384-5.157-1.778 2.75 1.821-4.782z"}));function $L(){return $L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$L.apply(this,arguments)}var CL=({styles:e={},...t})=>b_("svg",$L({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156zm.032 2.929c.822 2.586 1.598 5.186 2.42 7.771l-2.42-2.612c-.682.597-2.452 2.884-2.338 2.388.87-2.487 1.447-5.067 2.338-7.547z"}));function ML(){return ML=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ML.apply(this,arguments)}var AL=({styles:e={},...t})=>b_("svg",ML({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912zm.974 2.584l3.61 4.295-3.61 4.294v-1.933h-7.88v-4.688h7.88v-1.968z"}));function RL(){return RL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},RL.apply(this,arguments)}var DL=({styles:e={},...t})=>b_("svg",RL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm-7.245 5.475v11.06h14.502v-11.06H8.754zm3.222 1.728h8.057c-1.427.878-2.854 2.806-4.281 3.016l-3.776-3.016zm9.554 1.017v6.587H10.48V13.24l5.524 4.414 5.526-4.414z"}));function jL(){return jL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},jL.apply(this,arguments)}var qL=({styles:e={},...t})=>b_("svg",jL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.073l-7.62 5.531 2.91 8.95h9.42l2.91-8.95-7.62-5.53zm0 1.067l6.604 4.794-2.523 7.757h-8.162l-2.522-7.757 6.603-4.794z"}));function BL(){return BL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},BL.apply(this,arguments)}var NL=({styles:e={},...t})=>b_("svg",BL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M10.638 9.563V23.056h10.724V9.563H10.638zm.863.866h8.995v11.76H11.5V10.43zm.928 1.324v.862h7.139v-.862h-7.14zm0 2.605v.866h7.139v-.866h-7.14zm0 3.01v.863h7.139v-.863h-7.14zm0 2.72v.863h7.139v-.864h-7.14zM15.999.308h-.004l-.188.001h-.011l-.188.004h-.011L15.41.32h-.011l-.187.008h-.005L15.2.33l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.37h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003.178-.001h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 1.023l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.62h-.005l-.005-.002-.182-.035h-.006L18.938.58l-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.43 17.783.41l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.37h-.005L17.38.368l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.328h-.011L16.6.32h-.011l-.187-.006h-.011L16.204.31h-.011L16.005.31H16zm9.016 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zm-18.381.344l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003L4.682 5l-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.595h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01L16.32 3.6h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 13.135l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187V16.7l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zm-30.21.572l-.161.001-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158-.074-.155-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178-.001-.177v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057-.159-.028zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14v-.005l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 23.019l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 27.127l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z"}));function zL(){return zL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},zL.apply(this,arguments)}var QL=({styles:e={},...t})=>b_("svg",zL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M16.012 9.222c-1.673 4.657-2.735 9.508-4.409 14.164 1.536-1.526 2.874-3.236 4.41-4.762l4.408 4.762c-1.497-4.712-2.911-9.451-4.409-14.164zm.032 2.93c.823 2.588 1.599 5.19 2.421 7.777l-2.42-2.614c-.683.598-2.454 2.886-2.34 2.39.871-2.489 1.448-5.07 2.34-7.552zM16.012.312c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function XL(){return XL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},XL.apply(this,arguments)}var IL=({styles:e={},...t})=>b_("svg",XL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M8.742 10.464v11.072h14.516V10.464H8.742zm3.224 1.73h8.066a69569 69569 0 00-4.034 3.22l-4.032-3.22zm9.565 1.018v6.594H10.469v-6.593L16 17.63l5.532-4.419zM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16zm9.015 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zM.938 15L.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z"}));function LL(){return LL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},LL.apply(this,arguments)}var VL=({styles:e={},...t})=>b_("svg",LL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M23.637 13.902l-7.625-5.535-7.624 5.535 2.912 8.956h9.425l2.912-8.956zm-1.017.33l-2.524 7.762H11.93l-2.524-7.762 6.607-4.796 6.608 4.796zM16.012.311c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function FL(){return FL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},FL.apply(this,arguments)}var UL=({styles:e={},...t})=>b_("svg",FL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M13.51 9.081v4.428H9.08v4.982h4.428v4.428h4.982V18.49h4.428v-4.982H18.49V9.081h-4.982zm.83.83h3.32v4.428h4.429v3.322H17.66v4.428h-3.32v-4.454H9.91v-3.296h4.428V9.911zM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16zm9.015 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zM.938 15L.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z",opacity:".98"}));function HL(){return HL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},HL.apply(this,arguments)}var YL=({styles:e={},...t})=>b_("svg",HL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M16.012 8.816L9.21 21.026h13.606l-6.803-12.21zm0 1.776l5.332 9.57H10.681l5.331-9.57zm0-10.281c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function WL(){return WL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},WL.apply(this,arguments)}var GL=({styles:e={},...t})=>b_("svg",WL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.998 8.406c-3.018-.041-5.92 1.926-7.031 4.727-1.138 2.695-.51 6.012 1.537 8.103 1.99 2.141 5.268 2.93 8.014 1.927 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.88-4.3-7.137a7.552 7.552 0 00-3.288-.75zm0 1.384c2.759-.052 5.373 1.973 6.015 4.655.704 2.578-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.086-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86zm1.962 1.765l-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.615c-.252-.14-.505-.278-.757-.417zm-1.965-8.268h-.158l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.048.12.047.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.138-.107-.121-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.005-.002-.006-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.141-.031-.006-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.001-.143-.026-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.01l-.148-.001h-.01zM10.357 4.66l-.156.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.004.003-.005.004-.11.096-.004.004-.004.003-.109.098-.004.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.003.004-.004.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.005-.086.117-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.029.15-.058.138-.085.119-.108.082-.106.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022-.16.008zm13.91 2.116l-.158.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.026.159.054.152.082.139.086.102.09.09.094.098.093.099.092.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.115.068.117.067.115.065.118.064.117.062.118.061.12.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.049.127.046.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.086.137.109.119.129.096.145.07.155.043.16.013.161-.017.155-.046.143-.074.126-.1.106-.122.082-.138.055-.152.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.059-.132-.002-.005-.002-.004-.061-.132-.003-.004-.002-.005-.062-.13-.003-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.073-.125-.003-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.08-.12-.004-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.117-.003-.005-.003-.004-.088-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.093-.113-.004-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.109-.004-.004-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023-.16.008zM4.288 12.828l-.158.032-.15.06-.135.088-.117.11-.095.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.006-.019.144v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.006l-.001.005-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.006.033.14v.006l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.103.102-.126.076-.142.049-.153.02-.16-.01-.161-.032-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.132-.024-.134-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.132.01-.139.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029-.16.002zm23.286 4.202l-.156.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.134-.026.132-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.062.119-.063.116-.067.119-.066.116-.068.115-.07.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.108-.085.109-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.082-.12.003-.005.002-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.004.003-.005.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.003-.005.002-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.002-.006.04-.138.002-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.141.001-.006.001-.005.031-.141.002-.006v-.005l.03-.142.001-.005.001-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022-.16.007zM6.681 22.734l-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.11.04.047.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.106.004.003.004.004.103.105.004.004.004.004.105.103.004.004.003.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.005.004.004.003.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.003.126.072.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.068.005.002.004.002.13.066.004.003.005.002.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.003.133.056.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.161-.015.155-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.158-.061-.15-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.079-.11-.08-.109-.082-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006-.16.024zm15.063 2.691l-.156.044-.12.057-.06.034-.12.066-.116.064-.119.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.036-.13.035-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021h.005l.006-.002.143-.022h.006l.005-.002.143-.024h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.036.005-.002.005-.001.14-.038.005-.001.005-.002.14-.04h.005l.005-.002.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.056.005-.003.005-.002.132-.057.005-.002.005-.003.132-.059.005-.002.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.002.005-.003.129-.066.004-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.002.065-.038.132-.093.112-.115.089-.135.062-.149.034-.157.004-.161-.027-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.045-.16-.017-.161.014zM15.994 0l-.187.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.01L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.184.027h-.006l-.005.001-.184.029h-.005l-.005.001-.183.031-.005.001-.006.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.177.027.17.03.173.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.088-.135.06-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.144-.073-.129-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.005-.001-.184-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06 17.385.06h-.005l-.187-.015h-.005l-.005-.001-.187-.013h-.01L16.799.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0h-.01zm8.86 2.939l-.157.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.127.125.123.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.085.152.083.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.161-.016.155-.046.143-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.002-.005-.003-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.002-.005-.102-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.004-.003-.005-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.003-.004-.004-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.003-.004-.133-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027-.16.004zm-18.381.348l-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.005-.003.004-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.005-.003.004-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023-.161.008zm24.514 11.15l-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.024.175-.027.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.161-.061.164-.063.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.078.158-.081.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.12.13.096.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.004.002-.005.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.17.002-.006.001-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.18.001-.006.001-.005.038-.182v-.005l.002-.005.035-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02-.161.009zM.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.005.074.169.002.005.002.004.076.169.002.005.002.004.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.156-.07-.162-.068-.16-.067-.164-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15 .777 15zM6.17 26.842l-.152.052-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.005.003.004.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.003.162.088.005.002.004.002.164.087.005.002.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.169.076.004.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.061.005.002.005.001.175.06.005.001.005.002.176.057.005.001.005.002.177.055.005.001.005.002.177.052.005.002.005.001.178.051.005.001.005.002.178.048.006.002h.005l.179.047.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.169-.044-.17-.045-.166-.048-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006-.16.024zm19.214.073l-.156.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.157.073-.158.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.048-.17.045-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.008.133-.017.115-.024h.005l.005-.002.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002h.005l.18-.047.004-.001.005-.002.179-.048.005-.002.005-.001.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.005-.002.004-.002.172-.068.005-.001.005-.002.171-.07.005-.002.005-.002.17-.072.005-.002.005-.002.169-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.002.167-.08.004-.003.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.002.163-.087.005-.002.005-.002.162-.088.005-.003.005-.003.161-.09.005-.002.004-.003.16-.092.005-.002.005-.003.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.002.155-.102.005-.003.004-.003.154-.104.004-.003.005-.003.152-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.111.004-.004.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02-.16.009z"}));function ZL(){return ZL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ZL.apply(this,arguments)}var KL=({styles:e={},...t})=>b_("svg",ZL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.003C8.195-.157.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.408 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0116 4.975zm-2.15 3.281v5.534H8.213v4.38h5.636v5.534h4.31V18.17h5.639v-4.38h-5.64V8.256h-4.31zm.865.865h2.583v5.534h5.635v2.65h-5.635v5.533h-2.583v-5.534h-5.64v-2.649h5.64V9.121z"}));function JL(){return JL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},JL.apply(this,arguments)}var eV=({styles:e={},...t})=>b_("svg",JL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.521L9.206 20.745h13.598L16.005 8.542zm0 1.775l5.329 9.564H10.677l5.328-9.564z"}));function tV(){return tV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},tV.apply(this,arguments)}var nV=({styles:e={},...t})=>b_("svg",tV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0015.97.04zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 016.735-2.294zm-.137 3.42c-2.965.02-5.792 1.968-6.884 4.722-1.137 2.693-.509 6.007 1.536 8.096 1.988 2.14 5.263 2.929 8.007 1.926 2.875-.98 4.987-3.824 5.063-6.865.154-2.954-1.622-5.875-4.295-7.13a7.545 7.545 0 00-3.427-.75zm.27 1.381c2.708.013 5.249 2.014 5.88 4.652.704 2.576-.481 5.512-2.788 6.862-2.356 1.478-5.677 1.084-7.611-.918-2.042-1.97-2.405-5.376-.839-7.738 1.11-1.762 3.146-2.877 5.229-2.857h.13zm1.831 1.764l-2.072 3.76c-.64.068-.792 1.039-.202 1.298.39.27.696-.18 1.051-.164h3.168v-.864h-3.18l1.992-3.612-.757-.418z"}));function iV(){return iV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},iV.apply(this,arguments)}var rV=({styles:e={},...t})=>b_("svg",iV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.848.001C8.113-.093.931 6.281.125 13.983c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.207C29.105 4.938 23.55.48 17.367.06A16.448 16.448 0 0015.848 0v.001zm.293 1.727c7.113-.099 13.662 5.97 14.077 13.08.56 6.299-3.516 12.735-9.582 14.679-5.798 2.004-12.806-.12-16.283-5.237C.717 19.159.874 11.638 5.016 6.876 7.722 3.638 11.902 1.63 16.14 1.728zm-.415 1.555C9.157 3.258 3.256 9.156 3.278 15.729c-.16 5.965 4.365 11.725 10.293 12.737 5.409 1.065 11.37-1.744 13.775-6.753 2.534-4.986 1.386-11.627-2.953-15.251-2.364-2.077-5.512-3.27-8.667-3.18zm.507 1.692c5.82-.026 11.013 5.318 10.79 11.143-.024 5.3-4.313 10.267-9.636 10.803-5.075.667-10.426-2.588-11.885-7.553-1.535-4.744.494-10.46 4.925-12.885a11.072 11.072 0 015.806-1.508z"}));function oV(){return oV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},oV.apply(this,arguments)}function sV(){return sV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},sV.apply(this,arguments)}function aV(){return aV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},aV.apply(this,arguments)}function lV(){return lV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},lV.apply(this,arguments)}function cV(){return cV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},cV.apply(this,arguments)}function pV(){return pV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pV.apply(this,arguments)}function uV(){return uV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},uV.apply(this,arguments)}function hV(){return hV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},hV.apply(this,arguments)}function dV(){return dV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},dV.apply(this,arguments)}function fV(){return fV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},fV.apply(this,arguments)}function mV(){return mV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},mV.apply(this,arguments)}function gV(){return gV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},gV.apply(this,arguments)}function yV(){return yV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yV.apply(this,arguments)}function vV(){return vV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},vV.apply(this,arguments)}function bV(){return bV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bV.apply(this,arguments)}function OV(){return OV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},OV.apply(this,arguments)}function xV(){return xV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},xV.apply(this,arguments)}function wV(){return wV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},wV.apply(this,arguments)}function _V(){return _V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_V.apply(this,arguments)}function EV(){return EV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},EV.apply(this,arguments)}function PV(){return PV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},PV.apply(this,arguments)}function kV(){return kV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},kV.apply(this,arguments)}function SV(){return SV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},SV.apply(this,arguments)}function TV(){return TV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},TV.apply(this,arguments)}function $V(){return $V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$V.apply(this,arguments)}function CV(){return CV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},CV.apply(this,arguments)}function MV(){return MV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},MV.apply(this,arguments)}function AV(){return AV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},AV.apply(this,arguments)}function RV(){return RV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},RV.apply(this,arguments)}function DV(){return DV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},DV.apply(this,arguments)}function jV(){return jV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},jV.apply(this,arguments)}function qV(){return qV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},qV.apply(this,arguments)}function BV(){return BV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},BV.apply(this,arguments)}var NV=({styles:e={},...t})=>b_("svg",BV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M5.637 3A5.644 5.644 0 000 8.637v15.417a5.644 5.644 0 005.637 5.637h20.726A5.644 5.644 0 0032 24.054V8.637A5.644 5.644 0 0026.363 3H5.637zm0 1.778h20.726a3.83 3.83 0 013.859 3.859v15.417a3.83 3.83 0 01-3.859 3.858h-4.201V16.695H9.838v11.217H5.637a3.83 3.83 0 01-3.859-3.858V8.637a3.83 3.83 0 013.859-3.859zm5.33 13.046h10.066v10.065H10.967V17.824zm4.189 1.431V22.06H12.35v1.689h2.804V26.554h1.69V23.749h2.804V22.06h-2.804V19.255h-1.69z"}));function zV(){return zV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},zV.apply(this,arguments)}var QV=({styles:e={},...t})=>b_("svg",zV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M5.636 3A5.642 5.642 0 000 8.636v15.418a5.643 5.643 0 005.636 5.636h20.728A5.643 5.643 0 0032 24.054V8.636A5.642 5.642 0 0026.364 3H5.636zm0 1.778h20.728a3.83 3.83 0 013.858 3.858v15.418a3.83 3.83 0 01-3.858 3.858h-4.203V16.723H9.84v11.189H5.636a3.83 3.83 0 01-3.858-3.858V8.636a3.83 3.83 0 013.858-3.858zm5.331 13.074h10.066v10.06H10.967v-10.06zm1.336 3.996v1.711h7.394v-1.71h-7.394z"}));function XV(){return XV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},XV.apply(this,arguments)}function IV(){return IV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},IV.apply(this,arguments)}function LV(){return LV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},LV.apply(this,arguments)}function VV(){return VV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},VV.apply(this,arguments)}var FV={Association:({styles:e={},...t})=>b_("svg",VI({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),b_("path",{stroke:"#000",strokeWidth:"2",fill:"none",strokeDasharray:"3.3,6",strokeLinecap:"square",d:"M1.5 30.5l29-29"})),BusinessRuleTask:({styles:e={},...t})=>b_("svg",FI({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zM5.296 7.398v12.665h16.87V7.398H5.296zm.718 4.386h15.433v3.44H9.985v-3.432h-.719v3.431H6.014v-3.44zm0 4.158h3.252v3.403H6.014v-3.403zm3.97 0h11.463v3.403H9.985v-3.403z"}),b_("path",{d:"M6.079 8.209v3.587H21.44V8.209z"})),CallActivity:({styles:e={},...t})=>b_("svg",UI({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M24.978 3c3.761 0 6.89 2.979 7.018 6.695l.004.238V22.4c0 3.747-3.05 6.804-6.783 6.93l-.24.003H7.023c-3.761 0-6.89-2.978-7.018-6.695L0 22.4V9.933C0 6.187 3.05 3.13 6.783 3.004L7.023 3h17.955zm0 3.667H7.022c-1.842 0-3.255 1.344-3.35 3.079l-.005.187V22.4c0 1.761 1.35 3.167 3.16 3.262l.195.005L10 25.666V15h12v10.666h2.978c1.842 0 3.255-1.344 3.35-3.079l.005-.187V9.933c0-1.761-1.35-3.166-3.16-3.261l-.195-.005zm-3.732 9.087H10.754v9.912h10.491v-9.912zm-4.475 1.817v2.658h2.658v1.542H16.77v2.658H15.23V21.77H12.57V20.23h2.658V17.57h1.542z"})),Collaboration:({styles:e={},...t})=>b_("svg",HI({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("g",{fillRule:"evenodd"},b_("path",{fillRule:"nonzero",d:"M0 0v8.62h32V0H0zm1.655 7.054v-5.37h28.62v5.37H1.656zM0 23.38V32h32v-8.62H0zm1.655 7.054v-5.37h28.62v5.37H1.656z"}),b_("path",{d:"M24 8l4 7h-8l4-7zm0 2l-2.28 4h4.56L24 10zM23.5 21h1v3h-1zM23.5 15h1v3h-1zM8 24l-4-7h8l-4 7zm0-2l2.28-4H5.72L8 22zM7.5 8h1v3h-1zM7.5 14h1v3h-1z"}))),ConditionalFlow:({styles:e={},...t})=>b_("svg",YI({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M32 .041S20.42 5.95 14.537 8.713c1.26 1.15 2.432 2.392 3.648 3.588-5.703 5.78-3.15 3.303-8.087 8.316l-8.472 1.377L0 32l10.006-1.626.098-.598 1.279-7.873c4.975-5.052 2.403-2.555 8.118-8.346 1.218 1.214 2.43 2.435 3.648 3.648C26.29 11.018 32 .041 32 .041zM9.603 22.397L8.54 28.91 2.03 29.97l1.061-6.515 6.512-1.058z"})),SequenceFlow:({styles:e={},...t})=>b_("svg",WI({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L0 30.734 1.325 32l18.08-18.32c1.227 1.223 2.448 2.453 3.676 3.676C26.247 11.12 32 .06 32 .06z"})),DataInput:({styles:e={},...t})=>b_("svg",KI({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M20.833 0H3.488v32H28V7.36L20.833 0zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422zm1.818.493l5.06 5.196h-5.06V2.311zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354zm.808 1.868l3.711 3.487-3.71 3.487V9.329H7.888V7.723h4.283V5.039z"})),DataInputAssociation:ZI,DataOutput:({styles:e={},...t})=>b_("svg",eL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M20.833 0H3.488v32H28V7.36L20.833 0zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422zm1.818.493l5.06 5.196h-5.06V2.311zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354z"})),DataOutputAssociation:ZI,DataObjectReference:({styles:e={},...t})=>b_("svg",JI({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M21.345 0H4v32h24.512V7.36L21.345 0zM19.24 1.818v7.507h7.454v20.857H5.818V1.818H19.24zm1.818.493l5.06 5.196h-5.06V2.311z"})),DataStoreReference:({styles:e={},...t})=>b_("svg",tL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M16.008 1c-3.712 0-7.417.306-10.319.939-1.45.316-2.7.71-3.68 1.226C1.065 3.662.297 4.304.061 5.23a.823.823 0 00-.035.15L0 5.502l.017.084c-.012 7.41 0 14.46 0 22.08l.017.082c.203.985.995 1.656 1.975 2.172.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.98-.516 1.772-1.187 1.975-2.172l.017-.082V5.541a.825.825 0 000-.106v-.016l-.002-.013a.823.823 0 00-.046-.197c-.244-.916-1.007-1.55-1.943-2.044-.98-.516-2.23-.91-3.68-1.226C23.423 1.306 19.718 1 16.006 1zm0 1.646c3.62 0 7.245.308 9.968.901 1.36.297 2.497.67 3.263 1.074.612.323.932.643 1.063.882-.131.24-.451.56-1.063.882-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.901-1.361-.297-2.497-.67-3.264-1.074-.611-.322-.931-.642-1.062-.882.13-.24.451-.56 1.062-.882.767-.403 1.903-.777 3.264-1.074 2.723-.593 6.348-.9 9.968-.9zM1.664 7.647c.112.067.227.132.345.194.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.119-.062.234-.127.346-.194v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.671-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93zm0 4.187c.112.067.227.132.345.195.98.516 2.23.91 3.68 1.226 2.902.632 6.607.938 10.319.938 3.711 0 7.416-.306 10.318-.938 1.451-.317 2.701-.71 3.68-1.226.119-.063.234-.128.346-.195v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.67-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93zm0 4.188c.112.067.227.131.345.194.98.516 2.23.91 3.68 1.226 2.902.633 6.607.939 10.319.939 3.711 0 7.416-.306 10.318-.94 1.451-.316 2.701-.709 3.68-1.225.119-.063.234-.127.346-.194V27.47c-.08.245-.398.618-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.9-9.968.9-3.62 0-7.245-.306-9.968-.9-1.361-.297-2.497-.67-3.264-1.074-.714-.377-1.032-.75-1.112-.995V16.022z"})),DefaultFlow:({styles:e={},...t})=>b_("svg",nL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L6.84 23.804H.046v1.755h5.063L0 30.735 1.325 32l6.357-6.441h7.145v-1.756H9.414l9.99-10.123c1.228 1.223 2.45 2.453 3.677 3.676C26.247 11.12 32 .06 32 .06z"})),CancelEndEvent:({styles:e={},...t})=>b_("svg",iL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-3.955 3.918L8.94 12.072l3.985 3.985-3.913 3.913 3.048 3.047 3.913-3.913 3.987 3.987 3.096-3.096-3.987-3.987 3.913-3.913-3.047-3.048-3.913 3.913-3.985-3.985z"})),CompensateEndEvent:({styles:e={},...t})=>b_("svg",rL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-.56 5.744l-7.407 5.23 7.408 5.234v-5.057c2.384 1.687 4.771 3.371 7.157 5.057V10.801l-7.157 5.054v-5.054z"})),ErrorEndEvent:({styles:e={},...t})=>b_("svg",oL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm6.132 4.166l-3.633 7.363-4.516-5.874-4.102 12.131 4.599-5.91 4.743 5.427 2.909-13.137z"})),EscalationEndEvent:({styles:e={},...t})=>b_("svg",sL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 3.9c-1.672 4.653-2.733 9.5-4.406 14.153 1.535-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.497-4.71-2.91-9.445-4.406-14.155z"})),LinkEndEvent:({styles:e={},...t})=>b_("svg",aL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm1.78 4.065v3.555H9.779v6.713h7.994v3.554l5.828-6.91-5.828-6.912z"})),MessageEndEvent:({styles:e={},...t})=>b_("svg",lL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-5.91 5.448l6.041 4.9 6.04-4.9H10.084zm-1.34 1.137v9.92h14.513v-9.718l-7.132 5.786-7.381-5.988z"})),MultipleEndEvent:({styles:e={},...t})=>b_("svg",cL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.529 18.529 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.011 3.039l-7.619 5.53 2.91 8.95h9.418l2.91-8.95-7.619-5.53z"})),EndEvent:({styles:e={},...t})=>b_("svg",pL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.84.042C8.654-.01 1.913 5.437.4 12.454-1.057 18.62 1.554 25.495 6.784 29.09c5.076 3.636 12.31 3.92 17.59.544 5.309-3.251 8.435-9.744 7.445-15.921C30.91 7.307 25.795 1.738 19.442.422a16.064 16.064 0 00-3.602-.38zm.382 5.01c5.28-.017 10.13 4.353 10.669 9.61.687 5.025-2.552 10.281-7.423 11.792-4.754 1.617-10.486-.447-12.962-4.856-2.74-4.575-1.574-11.094 2.768-14.27a11.05 11.05 0 016.948-2.276z"})),SignalEndEvent:({styles:e={},...t})=>b_("svg",uL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 3.492c-2.261 4.07-4.532 8.136-6.797 12.204h13.595L15.999 8.55z"})),TerminateEndEvent:({styles:e={},...t})=>b_("svg",hL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 2.859c-5.264-.2-9.495 5.551-7.755 10.516 1.366 5.085 8.108 7.436 12.339 4.301 4.455-2.807 4.708-9.943.462-13.058A8.128 8.128 0 0016 7.915z"})),EventSubProcess:({styles:e={},...t})=>b_("svg",dL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M7.295 4.78h1.779V3.003h-1.78V4.78zm3.558 0h1.779V3.003h-1.78V4.78zm3.557 0h1.78V3.003h-1.78V4.78zm3.558 0h1.78V3.003h-1.78V4.78zm3.558 0h1.779V3.003h-1.779V4.78zm3.558 0c.55.014 1.106-.034 1.654.045l.245-1.762c-.629-.096-1.266-.05-1.9-.061V4.78zM5.732 3.004a5.933 5.933 0 00-.915.093c.111.582.226 1.164.315 1.75.358-.101.947.098.746-.483-.096-.382.164-1.208-.146-1.36zm22.372 2.281c.427.234.812.547 1.13.915.42-.4 1.002-.777 1.33-1.18a5.863 5.863 0 00-1.593-1.289l-.867 1.554zm-25.27-1.44c-.587.354-1.11.811-1.539 1.345.47.333.96.86 1.417 1.077.299-.362.66-.673 1.065-.913-.328-.493-.55-1.055-.944-1.509zM30.515 7.26c-.563.046-.557.342-.378.784.154.25-.097.862.25.85.525-.023 1.14.043 1.612-.032a5.891 5.891 0 00-.362-2.027l-1.122.425zM.268 7.114A6.042 6.042 0 000 9.052h1.78c-.013-.5.047-1.003.208-1.478L.296 7.027l-.026.079-.002.008zM30.22 12.45H32v-1.779h-1.779v1.779zm-30.22.16h1.78v-1.779H0v1.78zm30.22 3.398H32v-1.78h-1.779v1.78zm-30.22.16h1.78v-1.779H0v1.779zm30.22 3.398H32v-1.78h-1.779v1.78zm-30.22.16h1.78v-1.78H0v1.78zm30.22 3.397H32v-1.779h-1.779v1.78zm-30.22.16h1.78v-1.778H0v1.778zm30.137 1.47a4.059 4.059 0 01-.522 1.32c.506.283 1.046.715 1.53.908a5.836 5.836 0 00.744-1.918c-.576-.094-1.209-.264-1.752-.31zm-29.984.51c.157.676.435 1.325.82 1.904l1.486-.977a4.065 4.065 0 01-.577-1.347l-1.73.42zm28.427 1.943c-.371.277-.79.49-1.234.627l.548 1.693a5.84 5.84 0 001.835-.96l-1.082-1.412-.066.05-.001.002zm-26.164 1.47c.567.413 1.21.722 1.886.907.14-.569.343-1.175.444-1.722a4.062 4.062 0 01-1.283-.624l-1.047 1.438zm3.88 1.119h1.779v-1.78h-1.78v1.78zm3.55 0h1.787v-1.78H9.846v1.78zm3.565 0h1.78v-1.78h-1.78v1.78zm3.558 0h1.78v-1.78h-1.78v1.78zm3.451 0h1.743v-1.78h-1.743v1.78zm3.665 0h1.779v-1.78h-1.78v1.78zm-1.922-.545V16.776H9.846V29.25h12.318zM10.967 17.905h10.068V27.97H10.967V17.905zm1.336 3.998v1.711h7.396v-1.711h-7.396z",opacity:".97"})),ComplexGateway:({styles:e={},...t})=>b_("svg",fL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm-.327 6.79v.007l-.145.027-.118.08-.083.123-.028.145v4.954L11.793 10.8l-.125-.08-.14-.029-.144.027-.122.082-.46.46-.085.125-.026.142.028.14.08.125 3.505 3.505H9.347l-.001-.002-.145.032-.118.08-.083.122-.028.146v.652l.029.147.082.119.12.08.144.032h4.956L10.8 20.207v-.001l-.084.124-.026.142.028.14.08.124.46.461.126.082.14.029.143-.027.124-.084L15.3 17.69v4.964-.001l.028.147.082.12.12.08.144.031h.652l.148-.03.118-.08.083-.12.028-.146v-4.962l3.505 3.505.126.082.14.027.142-.027.124-.084.461-.46.083-.123s.028-.144.027-.146l-.028-.14-.082-.126-3.496-3.496h4.948l.148-.03.119-.08.082-.12.028-.147v-.652l-.028-.145-.083-.122-.119-.08s-.147-.033-.147-.031h-4.964l3.512-3.512.082-.122.029-.144-.028-.14-.084-.124-.46-.461-.123-.082-.14-.027-.145.027-.122.082-3.507 3.507V9.348l-.028-.146-.082-.122-.12-.08-.147-.029h-.652z"})),EventBasedGateway:({styles:e={},...t})=>b_("svg",mL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M16 0a1.29 1.29 0 00-.918.373L.371 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.915.372A1.294 1.294 0 0016 0zm-.002 2.181l13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18zm0 5.876l-.254.185-7.377 5.355 2.915 8.964h9.433l2.915-8.964-7.631-5.54zm0 1.07l6.614 4.8-2.526 7.769h-8.175l-2.526-7.768 6.614-4.802z"})),ExclusiveGateway:({styles:e={},...t})=>b_("svg",bL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M16 0a1.29 1.29 0 00-.918.373L.371 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.915.372A1.294 1.294 0 0016 0zm-.002 2.181l13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18zm-5.162 7.69l-.166.032-.141.096-.532.532s-.097.142-.097.144l-.03.164.032.162.093.144 4.857 4.858-4.855 4.855v-.001L9.9 21l-.03.164.032.162s.093.142.093.144l.531.532.146.095.162.032.164-.03.144-.097 4.855-4.856 4.857 4.857.145.095.162.032.164-.03.144-.097.531-.532.095-.14.033-.168-.033-.162-.095-.146L17.144 16 22 11.144l.095-.14.033-.166-.033-.163-.097-.144-.532-.532-.14-.095-.163-.032-.166.032-.141.095L16 14.855l-4.858-4.858v-.002l-.144-.092-.162-.032z"})),Gateway:({styles:e={},...t})=>b_("svg",gL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.373a1.313 1.313 0 00-1.833 0L.373 15.084zm1.806.918L16 2.182l13.821 13.82L16 29.823 2.179 16.003z"})),InclusiveGateway:({styles:e={},...t})=>b_("svg",yL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm0 6.379a7.447 7.447 0 00-7.44 7.441A7.447 7.447 0 0016 23.443 7.447 7.447 0 0023.443 16a7.447 7.447 0 00-7.441-7.441zm0 .825a6.61 6.61 0 016.617 6.616A6.61 6.61 0 0116 22.618 6.61 6.61 0 019.385 16 6.61 6.61 0 0116 9.385z"})),ParallelGateway:({styles:e={},...t})=>b_("svg",vL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm-.377 5.708l-.168.032-.136.092-.096.14-.032.168v6.868h-6.87l-.002-.002-.166.037-.137.092v-.002l-.095.141-.033.167v.753s.032.169.034.17l.094.138.138.092.167.036h6.87v6.867l-.001-.001.033.17.095.138.138.092s.166.035.167.037h.752l.17-.036.137-.092.095-.137.033-.17v-6.867h6.868l.17-.035.137-.092.095-.137.033-.17v-.753s-.033-.165-.032-.167l-.096-.14-.138-.093s-.17-.037-.17-.035H16.81V8.323l-.033-.168-.094-.14-.138-.092-.17-.034h-.752z"})),Group:({styles:e={},...t})=>b_("svg",OL({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M6.34.016c-2.333.025-4.684 1.77-5.29 4.17C.608 5.848.88 7.608.804 9.314v2.922h2.041c.038-2.332-.076-4.673.062-7C3.14 3.355 4.869 1.938 6.643 2.04h8.956V.009c-3.086 0-6.173-.02-9.258 0v.007zm13.094 2.023h1.92V.009h-1.92v2.03zm5.756 0c1.265-.069 2.66.045 3.602 1.055 1.036.983 1.201 2.523 1.122 3.91v6.313h2.078c-.03-2.677.062-5.36-.047-8.032-.17-2.743-2.62-5.111-5.215-5.236-.511-.064-1.027-.02-1.54-.033v2.023zM.803 18.319h2.041v-2.026H.804v2.026zm29.11 1.084h2.08v-2.03h-2.08v2.03zM.804 26.148c.004 2.218 1.393 4.366 3.313 5.28 1.728.853 3.681.448 5.521.544.43-.112 1.29.231 1.435-.183v-1.847c-1.788-.043-3.584.094-5.365-.082-1.67-.354-2.919-2.048-2.863-3.844v-3.644H.804v3.777zm29.11-.068c.04 1.961-1.508 3.787-3.381 3.842-1.954.06-3.914.02-5.87.026v2.03c2.118-.042 4.242.08 6.355-.063 2.524-.264 4.818-2.644 4.94-5.323.08-1.039.014-2.085.035-3.126h-2.078v2.613zm-15.006 5.898h1.92v-2.03h-1.92v2.03z"})),CancelIntermediateCatchEvent:wL,CompensateIntermediateCatchEvent:EL,ConditionalIntermediateCatchEvent:kL,ErrorIntermediateCatchEvent:TL,EscalationIntermediateCatchEvent:CL,LinkIntermediateCatchEvent:AL,MessageIntermediateCatchEvent:DL,MultipleIntermediateCatchEvent:qL,ConditionalIntermediateCatchEventNonInterrupting:NL,EscalationIntermediateCatchEventNonInterrupting:QL,MessageIntermediateCatchEventNonInterrupting:IL,MultipleIntermediateCatchEventNonInterrupting:VL,ParallelIntermediateCatchEventNonInterrupting:UL,SignalIntermediateCatchEventNonInterrupting:YL,TimerIntermediateCatchEventNonInterrupting:GL,ParallelMultipleIntermediateCatchEvent:KL,SignalIntermediateCatchEvent:eV,TimerIntermediateCatchEvent:nV,IntermediateThrowEvent:rV,CompensateIntermediateThrowEvent:({styles:e={},...t})=>b_("svg",oV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm-.56 5.772l-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.747l-7.157 5.055v-5.055z"})),EscalationIntermediateThrowEvent:({styles:e={},...t})=>b_("svg",sV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156z"})),LinkIntermediateThrowEvent:({styles:e={},...t})=>b_("svg",aV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912z"})),MessageIntermediateThrowEvent:({styles:e={},...t})=>b_("svg",lV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm-5.91 5.475l6.04 4.901 6.042-4.9H10.088zm-1.341 1.138v9.921h14.514V11.79l-7.132 5.787-7.382-5.99z"})),MultipleIntermediateThrowEvent:({styles:e={},...t})=>b_("svg",cV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.073l-7.62 5.532 2.91 8.95h9.42l2.91-8.95-7.62-5.532z"})),SignalIntermediateThrowEvent:({styles:e={},...t})=>b_("svg",pV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.52c-2.261 4.07-4.533 8.136-6.798 12.205h13.596L16.005 8.495z"})),Lane:({styles:e={},...t})=>b_("svg",uV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M0 7v18.62h32V7H0zm1.655 17.056V8.684h28.62v15.372H1.656z"})),ManualTask:({styles:e={},...t})=>b_("svg",hV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm4.43 1.328c-.222.005-.43.09-.606.203-.985.638-4.356 2.977-5.096 3.486-.67.46-1.12 1.153-1.38 1.974-.27.858-.235 1.793-.232 2.576.002.59.016 1.104.17 1.727.22.908.634 1.63 1.23 2.118.597.49 1.363.732 2.23.734 3.038.012 6.078.016 9.119 0 .327-.002.645-.127.848-.37.204-.241.287-.56.291-.914a1.732 1.732 0 00-.097-.625h.327c.335 0 .641-.11.852-.316.21-.206.317-.475.374-.754a1.783 1.783 0 00-.126-1.143 1.18 1.18 0 00.877-.521c.196-.306.257-.666.258-1.025.001-.375-.088-.738-.293-1.033a1.179 1.179 0 00-.958-.512h-.478c.108-.237.156-.505.155-.782-.003-.373-.098-.721-.316-.99a1.21 1.21 0 00-.943-.43c-2.273-.004-4.236.018-6.412.012l-.19-.001c.102-.104.202-.205.312-.314.337-.336.662-.652.83-.869.4-.516.46-1.215.123-1.729-.178-.272-.439-.456-.72-.494a.93.93 0 00-.148-.008zm.029.728l.022.001c.055.008.115.027.209.172.132.201.126.606-.09.884-.079.102-.431.465-.767.8-.337.334-.657.643-.815.836-.153.186-.096.338-.056.435.04.096.085.212.298.263.063.014.066.01.086.012l.066.003c2.429.027 4.986-.004 7.223-.003.194 0 .293.056.379.162.086.105.151.286.153.533 0 .257-.065.467-.155.59-.09.124-.183.182-.37.183-1.706-.001-3.411-.005-5.117-.009v.731c2.23.004 4.461.01 6.692.012.17 0 .265.06.361.2.096.138.164.364.163.615 0 .268-.058.501-.143.634-.085.132-.162.193-.385.195-2.32-.001-4.554-.006-6.688-.003v.73c1.905 0 3.809.003 5.713.001.194.005.316.09.416.26.102.173.151.442.093.728-.04.193-.102.313-.17.38-.067.065-.148.108-.343.108h-5.71l.002.734c1.445 0 2.89-.01 4.334-.001.162 0 .232.041.297.123.064.081.123.238.12.488-.003.244-.061.385-.12.455-.06.07-.127.11-.296.11-3.037.016-6.076.012-9.113 0-.735-.002-1.316-.196-1.77-.568-.454-.372-.793-.935-.986-1.728-.134-.546-.146-.978-.148-1.558-.003-.796-.018-1.664.199-2.354.222-.705.582-1.24 1.096-1.593.75-.515 4.14-2.866 5.079-3.474a.504.504 0 01.241-.087z"})),MessageFlow:({styles:e={},...t})=>b_("svg",dV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M4.073 26.607l1.295 1.296L1.325 32l-.662-.633L0 30.735l4.073-4.128zm6.953-7.046l1.296 1.296L1.325 32l7.555-7.656-1.295-1.296 1.455-1.474 1.986-2.013zM32 .06s-2.699 5.189-5.417 10.462l-.326.633c-1.14 2.214-2.265 4.407-3.176 6.2-1.228-1.222-2.449-2.452-3.676-3.675l-3.57 3.618-1.297-1.296 3.541-3.588c-.98-.964-1.932-1.958-2.923-2.91l-.753-.706c2.68-1.258 6.533-3.165 9.95-4.876l.617-.309C28.838 1.673 32 .06 32 .06zm-4.126 4.06l-.015.007-.115.057-.048.024-.115.057L17.7 9.172l5.017 4.948 5.157-10z"})),Participant:({styles:e={},...t})=>b_("svg",fV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M0 5v22.069h32V5H0zm30.276 1.684v18.82H6.62V6.684h23.655zm-28.62 0h3.31v18.82h-3.31V6.684z"})),Process:({styles:e={},...t})=>b_("svg",mV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{fillRule:"evenodd",d:"M16.177 0l.137.002c.452.009.9.037 1.342.082.346.036.62.303.68.646l.437 2.536c.055.319.296.57.608.655.986.269 1.923.653 2.796 1.14.28.155.624.145.885-.039l2.083-1.47a.775.775 0 01.937.022c.86.699 1.645 1.484 2.343 2.343.22.27.223.653.023.937l-1.439 2.038a.833.833 0 00-.031.896c.512.889.92 1.846 1.204 2.855a.833.833 0 00.653.601l2.435.42c.342.059.61.333.645.679a15.928 15.928 0 01.08 2.064l-.003.114c-.012.382-.038.76-.077 1.134a.775.775 0 01-.645.68l-2.396.412a.835.835 0 00-.656.61 12.511 12.511 0 01-1.2 2.917.832.832 0 00.034.892l1.396 1.978c.2.284.196.667-.023.936a16.104 16.104 0 01-2.343 2.343.775.775 0 01-.937.023l-1.99-1.404a.833.833 0 00-.88-.026c-.907.516-1.886.922-2.916 1.2a.833.833 0 00-.61.656l-.414 2.396a.775.775 0 01-.679.646 16.096 16.096 0 01-3.312 0 .775.775 0 01-.679-.646l-.423-2.452a.834.834 0 00-.598-.636 12.474 12.474 0 01-1.468-.514 12.49 12.49 0 01-1.417-.68.833.833 0 00-.878.03l-2.026 1.43a.775.775 0 01-.937-.023 16.069 16.069 0 01-2.342-2.342.774.774 0 01-.024-.936l1.402-1.986a.833.833 0 00.032-.896 12.507 12.507 0 01-1.214-2.911.833.833 0 00-.655-.606l-2.386-.412a.775.775 0 01-.646-.678 16.097 16.097 0 010-3.314.775.775 0 01.646-.678l2.386-.412a.833.833 0 00.655-.606 12.507 12.507 0 011.214-2.911.833.833 0 00-.032-.896L3.552 6.853a.774.774 0 01.023-.936 16.091 16.091 0 012.343-2.343.775.775 0 01.937-.023l2.03 1.433c.26.177.6.182.874.028.915-.512 1.88-.9 2.87-1.167a.833.833 0 00.612-.656l.424-2.46a.775.775 0 01.679-.645C14.845.032 15.348.004 15.85 0h.326zM16 6.4c-5.302 0-9.6 4.297-9.6 9.599 0 5.302 4.298 9.6 9.6 9.6s9.6-4.298 9.6-9.6-4.298-9.6-9.6-9.6zm-3 4.283c0-1.425 1.637-2.203 2.715-1.29l5.69 4.815c.794.672.794 1.91 0 2.583l-5.69 4.815c-1.078.913-2.715.134-2.715-1.29z"})),ReceiveTask:({styles:e={},...t})=>b_("svg",gV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zM5.23 7.764v11.577h17.55V7.764H5.23zm1.816.758h13.917l-6.959 4.577-6.958-4.577zm-1.06.21l8.018 5.274 8.018-5.275v9.853H5.987V8.73z"})),ScriptTask:({styles:e={},...t})=>b_("svg",yV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm2.99 3.077l-.077.045-.026.015c-1.09.646-1.84 1.239-2.336 1.818-.496.579-.735 1.162-.742 1.725-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.324.408-.911.897-1.85 1.445l-1.388.808h8.56l.101-.059c.996-.58 1.667-1.116 2.094-1.655.429-.54.603-1.107.547-1.638-.11-1.052-.967-1.818-1.688-2.556-.721-.739-1.306-1.436-1.298-2.092.004-.331.132-.7.535-1.171.402-.47 1.08-1.02 2.119-1.636l1.362-.806h-8.54zm.241.867h5.271a6.83 6.83 0 00-1.113 1.01c-.496.58-.736 1.163-.743 1.726-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.312.393-.872.862-1.753 1.386H8.728c.367-.286.658-.566.88-.847.43-.54.604-1.107.548-1.638-.11-1.052-.968-1.818-1.688-2.556-.721-.739-1.306-1.435-1.298-2.092.004-.331.132-.7.534-1.171.389-.454 1.04-.984 2.021-1.575zm-1.233 1.48v.4h4.12v-.4h-4.12zm-.154 2.158v.4H12.6v-.4H8.34zm1.931 2.158v.4h4.126v-.4H10.27zm.59 2.158v.4h4.276v-.4h-4.276z"})),SendTask:({styles:e={},...t})=>b_("svg",vV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm-1.38 3.16l8.332 4.717L21.78 8.16H5.114zm.021 1.745v9.309H21.8V9.905l-8.353 4.655-8.31-4.655z"})),ServiceTask:({styles:e={},...t})=>b_("svg",bV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm1.22 1.681V7.84c-.329.093-.63.223-.914.382l-.83-.82-1.554 1.561.83.82c-.16.288-.285.594-.372.911l-1.177.002v2.2l1.189-.004c.109.431.345.819.58 1.165v-1.898l-1.038.004v-.737l1.034-.002.058-.294c.084-.429.252-.838.493-1.203l.165-.25-.727-.718.523-.526.728.719.247-.165c.379-.25.793-.417 1.206-.505l.291-.06-.002-1.01h.75L9.19 8.417H11.16c-.185-.221-.951-.508-1.237-.588L9.93 6.68H7.713zm2.078 2.105l.003 1.158a4.19 4.19 0 00-.915.383l-.83-.821-1.553 1.562.83.82c-.16.288-.286.593-.373.91l-1.176.003v2.2l1.188-.004c.094.326.224.624.383.905l-.85.847 1.57 1.543.847-.843c.29.161.599.286.919.373v1.198c.756.006 1.56.003 2.206.003V17.81a4.19 4.19 0 00.915-.383l.847.835 1.554-1.56-.848-.836c.16-.288.286-.594.373-.912l1.152-.007V12.75l-1.165.007a4.09 4.09 0 00-.382-.905l.805-.807-1.57-1.546-.804.806a4.16 4.16 0 00-.915-.372l.007-1.147H9.792zm.732.73h.751l-.006 1.005.297.058c.43.085.844.252 1.21.492l.25.162.701-.704.528.52-.702.704.169.25c.248.374.412.779.505 1.196l.061.292 1.016-.006v.737l-1.01.006-.058.292c-.085.43-.252.838-.494 1.205l-.165.25.744.733-.523.525-.743-.734-.248.165c-.378.247-.789.418-1.203.503l-.294.058v1.067h-.745v-1.059l-.295-.057a3.395 3.395 0 01-1.21-.492l-.248-.162-.747.743-.528-.52.747-.744-.17-.25a3.546 3.546 0 01-.506-1.196l-.06-.291-1.04.004v-.738l1.034-.002.058-.294c.085-.428.252-.837.493-1.203l.165-.25-.726-.718.522-.526.728.72.248-.166a3.546 3.546 0 011.205-.504l.292-.06-.003-1.01zm.388 2.685a1.65 1.65 0 00-1.645 1.645c0 .904.74 1.645 1.645 1.645a1.65 1.65 0 001.645-1.645 1.65 1.65 0 00-1.645-1.645zm0 .73a.91.91 0 01.915.915.91.91 0 01-.915.914.91.91 0 01-.915-.914.91.91 0 01.915-.915z"})),CompensateStartEvent:({styles:e={},...t})=>b_("svg",OV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm-.566 9.03l-7.415 5.235 7.415 5.238v-5.062c2.386 1.689 4.775 3.375 7.163 5.062V10.761l-7.163 5.058v-5.058zm-.866 1.666v7.13L9.51 15.993l5.052-3.565zm7.166 0v7.137l-5.052-3.568 5.052-3.569z"})),ConditionalStartEvent:({styles:e={},...t})=>b_("svg",xV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73zm-5.362 7.523v13.493h10.724V9.253H10.638zm.863.866h8.995V21.88H11.501V10.12zm.928 1.324v.863h7.139v-.863h-7.139zm0 2.605v.867h7.139v-.867h-7.139zm0 3.01v.864h7.139v-.863h-7.139zm0 2.72v.863h7.139v-.863h-7.139z"})),ErrorStartEvent:({styles:e={},...t})=>b_("svg",wV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994.005zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708zm6.13 7.45l-3.635 7.37-4.52-5.88c-1.37 4.048-2.738 8.095-4.106 12.143l4.603-5.917 4.748 5.433 2.91-13.149zm-7.754 3.889l4.299 5.449 1.073-2.39-1.028 4.135-4.387-5.16-1.78 2.75 1.823-4.784z"})),EscalationStartEvent:({styles:e={},...t})=>b_("svg",_V({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm0 7.183c-1.674 4.658-2.736 9.509-4.41 14.166 1.535-1.526 2.874-3.236 4.41-4.763l4.41 4.763c-1.499-4.713-2.913-9.453-4.41-14.166zm.032 2.931c.822 2.588 1.598 5.19 2.42 7.778l-2.42-2.615c-.683.598-2.455 2.887-2.34 2.39.871-2.489 1.448-5.07 2.34-7.553z"})),MessageStartEvent:({styles:e={},...t})=>b_("svg",EV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm-7.257 8.732v11.069h14.513v-11.07H8.738zm3.224 1.73h8.064c-1.428.878-2.857 2.807-4.285 3.018l-3.779-3.019zm9.562 1.017v6.593H10.465V13.21l5.528 4.417 5.53-4.418z"})),MultipleStartEvent:({styles:e={},...t})=>b_("svg",PV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm0 6.328l-7.626 5.536c.97 2.986 1.942 5.971 2.913 8.957h9.426l2.912-8.957-7.625-5.536zm0 1.068l6.609 4.798-2.525 7.763H11.91l-2.524-7.763 6.609-4.798z"})),ConditionalStartEventNonInterrupting:({styles:e={},...t})=>b_("svg",kV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M10.632 9.189V22.68h10.723V9.189H10.632zm.862.865h8.994v11.76H11.494v-11.76zm.928 1.324v.863h7.138v-.863h-7.138zm0 2.605v.866h7.138v-.866h-7.138zm0 3.01v.863h7.138v-.863h-7.138zm0 2.72v.862h7.138v-.863h-7.138zM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z"})),EscalationStartEventNonInterrupting:({styles:e={},...t})=>b_("svg",SV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M16 9.209c-1.674 4.655-2.735 9.504-4.408 14.16 1.534-1.526 2.873-3.235 4.407-4.761l4.408 4.76c-1.497-4.71-2.91-9.448-4.408-14.16zm.031 2.93c.822 2.586 1.598 5.187 2.42 7.774l-2.42-2.614c-.682.598-2.453 2.886-2.34 2.389.873-2.488 1.45-5.068 2.34-7.55zM16.132.364c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.564c-.734.078-1.196.762-1.735 1.206C3.552 6.02 2.55 7.511 1.681 9.053c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786A15.932 15.932 0 011.728 16a.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),MessageStartEventNonInterrupting:({styles:e={},...t})=>b_("svg",TV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M8.746 10.393v11.064h14.506V10.393H8.746zm3.223 1.728h8.06c-1.428.879-2.856 2.807-4.283 3.018l-3.777-3.018zm9.557 1.018v6.59H10.473v-6.59l5.525 4.416 5.528-4.416zM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 01-1.672-6.874.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),MultipleStartEventNonInterrupting:({styles:e={},...t})=>b_("svg",$V({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M23.621 13.524L16 7.99l-7.622 5.534 2.911 8.952h9.422l2.911-8.952zm-1.016.33l-2.523 7.759h-8.165l-2.524-7.76L16 9.059l6.606 4.796zM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 01-1.672-6.874.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),ParallelMultipleStartEventNonInterrupting:({styles:e={},...t})=>b_("svg",CV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M13.503 9.016v4.428H9.075v4.98h4.428v4.428h4.98v-4.427h4.428v-4.981h-4.427V9.016h-4.981zm.83.83h3.32v4.428h4.428v3.32h-4.428v4.428h-3.32v-4.454H9.905v-3.294h4.428V9.846zM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z",opacity:".98"})),SignalStartEventNonInterrupting:({styles:e={},...t})=>b_("svg",MV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M16.007 8.82L9.21 21.022h13.596L16.007 8.82zm0 1.775l5.328 9.563H10.68l5.327-9.563zM16.14.386c-1.571.236-4.195-.284-4.9 1.381.619 1.703 2.745.069 4.085.365 1.421-.13 2.84.2 4.235.259C21.27.784 18.19.344 17 .413a20.456 20.456 0 00-.86-.027zM25 3.162c-2.19.694.401 2.26 1.181 3.094 1.083 1.152 1.954 2.484 2.715 3.864 1.48 1.005 1.845-1.26.81-2.03-1.158-1.897-2.613-3.704-4.513-4.89l-.192-.038zm-18.438.423c-1.793.712-2.909 2.548-4.01 4.061-.773.814-2.211 3.653.005 3.211 1.123-1.469 1.87-3.306 3.267-4.614.664-.7 2.73-2.013.738-2.658zm24.57 11.072c-1.659.435-.468 2.667-.99 3.895a13.427 13.427 0 01-1.497 4.435c-.23 1.659 1.991 1.165 2.018-.199a14.277 14.277 0 001.254-7.552.865.865 0 00-.785-.579zm-30.18.666c-1.677.386-.633 2.667-.608 3.876.371 1.623.792 3.35 1.79 4.696 2.382.321.571-2.338.292-3.492a15.92 15.92 0 01-.684-4.39.877.877 0 00-.79-.69zm24.558 11.81c-1.755.865-3.303 2.266-5.274 2.765-1.162-.016-3.074 1.271-1.331 2.102 2.66-.447 5.163-1.733 7.236-3.445.472-.506.06-1.432-.631-1.421zm-19.151.043c-2.004.786.416 2.405 1.43 2.913 1.608.904 3.379 1.636 5.208 1.877 1.77-.804-.228-2.094-1.357-2.073-1.75-.537-3.403-1.396-4.798-2.586l-.227-.104-.256-.027z"})),TimerStartEventNonInterrupting:({styles:e={},...t})=>b_("svg",AV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.991 8.7c-3.018-.042-5.92 1.925-7.03 4.725-1.138 2.695-.509 6.011 1.537 8.102 1.99 2.142 5.267 2.93 8.013 1.927 2.877-.98 4.99-3.826 5.067-6.87.153-2.956-1.624-5.88-4.299-7.135a7.551 7.551 0 00-3.288-.75zm0 1.383c2.758-.052 5.372 1.972 6.014 4.654.704 2.578-.482 5.516-2.79 6.867-2.358 1.48-5.682 1.085-7.617-.919-2.043-1.97-2.407-5.38-.84-7.743 1.11-1.764 3.149-2.88 5.233-2.86zm1.962 1.764l-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.614-.757-.418zM16.12.358h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136L19.823.9l-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006L19.135.64l-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006L17.512.42l-.22-.017-.005-.001h-.006l-.22-.015h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012l-.221-.003h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zm-18.458.426l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1V9.5l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114V16.5l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V16.308l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z"})),CancelBoundaryEvent:wL,CompensateBoundaryEvent:EL,ConditionalBoundaryEvent:kL,ErrorBoundaryEvent:TL,EscalationBoundaryEvent:CL,LinkBoundaryEvent:AL,MessageBoundaryEvent:DL,MultipleBoundaryEvent:qL,BoundaryEvent:rV,ConditionalBoundaryEventNonInterrupting:NL,EscalationBoundaryEventNonInterrupting:QL,MessageBoundaryEventNonInterrupting:IL,MultipleBoundaryEventNonInterrupting:VL,ParallelBoundaryEventNonInterrupting:UL,SignalBoundaryEventNonInterrupting:YL,TimerBoundaryEventNonInterrupting:GL,ParallelMultipleBoundaryEvent:KL,SignalBoundaryEvent:eV,TimerBoundaryEvent:nV,StartEvent:({styles:e={},...t})=>b_("svg",RV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.847.004C9.61-.016 3.624 4.014 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0015.846.004zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625-4.814-3.84-6.538-10.94-4.067-16.57 2.14-5.206 7.515-8.775 13.147-8.71.097-.001.194-.002.29-.001z"})),ParallelMultipleStartEvent:({styles:e={},...t})=>b_("svg",DV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.847 0C9.61-.02 3.624 4.01 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0015.846 0zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625C2.101 23.17.377 16.07 2.848 10.44c2.134-5.2 7.522-8.78 13.147-8.71.097-.001.194-.002.29-.001zM13.504 9.08v4.427H9.077v4.98h4.427v4.427h4.98v-4.427h4.428v-4.98h-4.427V9.08h-4.98zm.83.83h3.32v4.427h4.428v3.32h-4.427v4.427h-3.32v-4.453H9.906v-3.294h4.427V9.91z"})),SignalStartEvent:({styles:e={},...t})=>b_("svg",jV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994.005zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708zm0 6.776L9.19 20.724H22.8L15.995 8.511zm0 1.777l5.332 9.572H10.662l5.333-9.572z"})),TimerStartEvent:({styles:e={},...t})=>b_("svg",qV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73zm-.143 6.676c-2.967.02-5.797 1.97-6.89 4.727-1.138 2.695-.51 6.012 1.537 8.102 1.99 2.142 5.268 2.932 8.014 1.928 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.881-4.3-7.137a7.552 7.552 0 00-3.43-.75zm.27 1.383c2.71.012 5.254 2.015 5.886 4.656.704 2.577-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.085-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86h.13zm1.833 1.765l-2.074 3.763c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.181l1.992-3.615-.757-.418z"})),CollapsedSubProcess:NV,CollapsedAdHocSubProcess:NV,ExpandedSubProcess:QV,ExpandedAdHocSubProcess:QV,Task:({styles:e={},...t})=>b_("svg",XV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M6.494 2.667C2.916 2.667 0 5.57 0 9.142v13.383C0 26.097 2.916 29 6.494 29h19.012C29.084 29 32 26.097 32 22.525V9.142c0-3.572-2.916-6.475-6.494-6.475H6.494zm0 2h19.012c2.509 0 4.494 1.98 4.494 4.475v13.383C30 25.02 28.015 27 25.506 27H6.494C3.985 27 2 25.02 2 22.525V9.142c0-2.495 1.985-4.475 4.494-4.475z"})),TextAnnotation:({styles:e={},...t})=>b_("svg",IV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M22.087 0v31.647H32v-1.788h-8.125V1.788H32V0h-9.913zm-2.924 13.999l-2.737 2.167 2.167 2.738 2.738-2.167-2.168-2.738zm-5.475 4.335L10.95 20.5l2.168 2.738 2.737-2.168-2.167-2.737zm-5.475 4.335l-2.738 2.167 2.168 2.738 2.737-2.168-2.167-2.737zm-5.476 4.335L0 29.17l2.167 2.738 2.738-2.168-2.168-2.737z"})),Transaction:({styles:e={},...t})=>b_("svg",LV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{d:"M5.422 3A5.424 5.424 0 000 8.422v15.822a5.424 5.424 0 005.422 5.423h21.156A5.424 5.424 0 0032 24.244V8.422A5.424 5.424 0 0026.578 3H5.422zm0 1.244h21.156a4.155 4.155 0 014.178 4.178v15.822a4.155 4.155 0 01-4.178 4.178H5.422a4.155 4.155 0 01-4.178-4.178V8.422a4.155 4.155 0 014.178-4.178zm1.056 1.778a3.373 3.373 0 00-3.367 3.366v13.89a3.373 3.373 0 003.367 3.366h19.044a3.373 3.373 0 003.367-3.366V9.388a3.373 3.373 0 00-3.367-3.366H6.478zm0 1.245h19.044c1.187 0 2.122.935 2.122 2.121v13.89a2.104 2.104 0 01-2.122 2.122H6.478a2.104 2.104 0 01-2.122-2.122V9.388c0-1.186.935-2.121 2.122-2.121z"})),UserTask:({styles:e={},...t})=>b_("svg",VV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),b_("path",{fillRule:"evenodd",d:"M10.263 7.468c-1.698 0-2.912 1.305-2.915 2.791v.001c0 .45.121.924.311 1.352.138.309.308.593.516.82-1.235.423-2.683 1.119-3.414 2.49l-.04.075v4.44h11.083v-4.44l-.04-.074c-.72-1.352-2.136-2.047-3.36-2.471.597-.608.774-1.392.774-2.192-.004-1.487-1.218-2.792-2.915-2.792zm-1.16 1.583c.08 0 .165.003.26.008.757.045 1.012.181 1.207.31.196.13.334.252.851.268.404-.016.598-.087.737-.169.056-.033.103-.067.152-.1.128.275.197.578.198.893 0 .894-.154 1.52-.975 2.034l.08.604c.171.052.348.11.527.171.025.105.054.242.073.387.02.153.029.311.016.43a.422.422 0 01-.056.19c-.417.417-1.157.66-1.908.66-.75 0-1.49-.243-1.908-.66a.422.422 0 01-.056-.19 1.949 1.949 0 01.016-.43c.02-.146.049-.284.074-.388.177-.062.352-.118.521-.17l.048-.648a.616.616 0 00-.126-.118c-.183-.138-.405-.44-.562-.793-.157-.353-.254-.757-.254-1.08 0-.387.105-.758.297-1.079l.11-.04c.143-.046.339-.09.679-.09zm-1.448 4.304l-.002.014c-.025.185-.04.387-.018.589.021.202.074.42.248.593.595.594 1.494.857 2.382.857.889 0 1.788-.263 2.382-.857.174-.174.227-.391.249-.593a2.496 2.496 0 00-.018-.59l-.002-.01c.903.396 1.776.963 2.258 1.81v3.599H13.53v-2.538h-.67v2.538H7.651v-2.538h-.67v2.538H5.39v-3.599c.483-.849 1.359-1.416 2.264-1.813zM6.495 3C2.914 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.01C28.016 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5z"}))};function UV(e){const{type:t}=e;let n=YV(t);const i=function(e){const t=Fr(e),n=t.eventDefinitions;return n&&n[0]}(e);if(i)return n=`${function(e){const t=YV(e.$type);return t.replace("EventDefinition","")}(i)}${n}`,(Lr(e,"bpmn:StartEvent")&&!po(e)||Lr(e,"bpmn:BoundaryEvent")&&!function(e){const t=Fr(e);return t&&!1!==t.cancelActivity}(e))&&(n=`${n}NonInterrupting`),n;if(Lr(e,"bpmn:SubProcess")&&!Lr(e,"bpmn:Transaction"))if(uo(e))n=`Event${n}`;else{const t=co(e)&&!function(e){const t=e&&(e.di||Fr(e).di);return Lr(t,"bpmndi:BPMNPlane")}(e);n=`${t?"Expanded":"Collapsed"}${n}`}return function(e){const t=Fr(e),n=Fr(e.source);if(!Lr(e,"bpmn:SequenceFlow")||!n)return!1;return n.default&&n.default===t&&(Lr(n,"bpmn:Gateway")||Lr(n,"bpmn:Activity"))}(e)&&(n="DefaultFlow"),function(e){const t=Fr(e),n=Fr(e.source);if(!Lr(e,"bpmn:SequenceFlow")||!n)return!1;return t.conditionExpression&&Lr(n,"bpmn:Activity")}(e)&&(n="ConditionalFlow"),n}const HV={getDocumentationRef:e=>{const t=WV();if(t)return function(e,t){const n=GV(e,t);return n&&n.documentationRef}(e,t)},getElementLabel:e=>Lr(e,"bpmn:Process")?Fr(e).name:xo(e),getElementIcon:e=>{const t=UV(e),n=WV();if(n){const t=GV(e,n);if(t&&t.icon)return()=>O_("img",{class:"bio-properties-panel-header-template-icon",width:"32",height:"32",src:t.icon.contents})}return FV[t]},getTypeLabel:e=>{const t=WV();if(t){const n=GV(e,t);if(n&&n.name)return n.name}return UV(e).replace(/(\B[A-Z])/g," $1").replace(/(\bNon Interrupting)/g,"($1)")}};function YV(e){return e.split(":")[1]}function WV(){return LI("elementTemplates",!1)}function GV(e,t){return t.get(e)}function ZV(){return ZV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ZV.apply(this,arguments)}var KV=({styles:e={},...t})=>b_("svg",ZV({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"64",height:"64"},t),b_("defs",null,b_("rect",{id:"a",width:"57",height:"47",x:"3",y:"8",rx:"7"}),b_("mask",{id:"b",width:"57",height:"47",x:"0",y:"0",fill:"#fff",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox"},b_("use",{xlinkHref:"#a"}))),b_("g",{fill:"none",fillRule:"evenodd"},b_("path",{fill:"#818798",d:"M52 11a5 5 0 015 5v31a5 5 0 01-5 5H11a5 5 0 01-5-5V16a5 5 0 015-5h41zm0 2H11a3 3 0 00-2.995 2.824L8 16v31a3 3 0 002.824 2.995L11 50h41a3 3 0 002.995-2.824L55 47V16a3 3 0 00-2.824-2.995L52 13z"}),b_("path",{fill:"#D5D7DD",d:"M16 24h31v6H16zM21 33h21v6H21z"}),b_("use",{stroke:"#B9BCC6",strokeDasharray:"5 2",strokeWidth:"2",mask:"url(#b)",xlinkHref:"#a"})));function JV(){return JV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},JV.apply(this,arguments)}var eF=({styles:e={},...t})=>b_("svg",JV({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"128",height:"64"},t),b_("defs",null,b_("path",{id:"a",d:"M9 9h110v47H9z"}),b_("mask",{id:"b",width:"110",height:"47",x:"0",y:"0",fill:"#fff",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox"},b_("use",{xlinkHref:"#a"}))),b_("g",{fill:"none",fillRule:"evenodd"},b_("path",{fill:"#818798",d:"M25 20.272L37.728 33 25 45.728 12.272 33 25 20.272zm0 2.829L15.1 33l9.9 9.9 9.9-9.9-9.9-9.9z"}),b_("path",{fill:"#D5D7DD",d:"M17 47h16v6H17z"}),b_("path",{fill:"#818798",d:"M35 32h27v2H35z"}),b_("path",{fill:"#818798",d:"M60 30v6l6-3z"}),b_("path",{fill:"#D5D7DD",d:"M80 34h21v6H80z"}),b_("g",null,b_("path",{fill:"#818798",d:"M111 12a5 5 0 015 5v31a5 5 0 01-5 5H70a5 5 0 01-5-5V17a5 5 0 015-5h41zm0 2H70a3 3 0 00-3 3v31a3 3 0 003 3h41a3 3 0 003-3V17a3 3 0 00-3-3z"}),b_("path",{fill:"#D5D7DD",d:"M75 25h31v6H75z"})),b_("use",{stroke:"#B9BCC6",strokeDasharray:"5 2",strokeWidth:"2",mask:"url(#b)",xlinkHref:"#a"})));const tF=e=>(e||(e=e=>e),{getEmpty:()=>({text:e("Select an element to edit its properties."),icon:KV}),getMultiple:()=>({text:e("Multiple elements are selected. Select a single element to edit its properties."),icon:eF})});function nF(e){const{element:t,injector:n,getProviders:i,layoutConfig:r,descriptionConfig:o}=e,s=n.get("canvas"),a=n.get("elementRegistry"),l=n.get("eventBus"),p=n.get("translate"),[u,h]=Bw({selectedElement:t}),d=u.selectedElement,f=e=>{if(!e)return;let t=e;t&&"label"===t.type&&(t=t.labelTarget),h({...u,selectedElement:t}),l.fire("propertiesPanel.updated",{element:t})};zw((()=>{const e=e=>{const{newSelection:t=[]}=e;if(t.length>1)return f(t);const n=t[0],i=s.getRootElement();(function(e){return e&&(e.isImplicit||"__implicitroot"===e.id)})(i)||f(n||i)};return l.on("selection.changed",e),()=>{l.off("selection.changed",e)}}),[]),zw((()=>{const e=e=>{const t=function(e,t){return g(e,(e=>e===t))}(e.elements,d);t&&function(e,t){return e&&t.get(e.id)}(t,a)&&f(t)};return l.on("elements.changed",e),()=>{l.off("elements.changed",e)}}),[d]),zw((()=>{const e=e=>{const t=e.element;f(t)};return l.on("root.added",e),()=>{l.off("root.added",e)}}),[d]),zw((()=>{const e=()=>{f(d)};return l.on("propertiesPanel.providersChanged",e),()=>{l.off("propertiesPanel.providersChanged",e)}}),[d]),zw((()=>{const e=()=>{f(d)};return l.on("elementTemplates.changed",e),()=>{l.off("elementTemplates.changed",e)}}),[d]);const m={selectedElement:d,injector:n,getService:(e,t)=>n.get(e,t)},y=i(d),v=Iw((()=>x(y,(function(e,t){if(c(d))return[];return t.getGroups(d)(e)}),[])),[y,d]),[b,O]=Bw(r||{}),w=Lw((e=>{l.fire("propertiesPanel.layoutChanged",{layout:e})}),[l]);zw((()=>{const e=e=>{const{layout:t}=e;O(t)};return l.on("propertiesPanel.setLayout",e),()=>l.off("propertiesPanel.setLayout",e)}),[l,O]);return O_(II.Provider,{value:m,children:O_(lQ,{element:d,headerProvider:HV,placeholderProvider:tF(p),groups:v,layoutConfig:b,layoutChanged:w,descriptionConfig:o,descriptionLoaded:e=>{l.fire("propertiesPanel.descriptionLoaded",{description:e})},eventBus:l})})}class iF{constructor(e,t,n){const{parent:i,layout:r,description:o}=e||{};this._eventBus=n,this._injector=t,this._layoutConfig=r,this._descriptionConfig=o,this._container=Oe('<div style="height: 100%" class="bio-properties-panel-container"></div>');var s=t.get("commandStack",!1);s&&function(e,t,n){function i(e){e.preventDefault(),e.stopPropagation()}function r(e){return da(e)?(n.undo(),i(e)):fa(e)?(n.redo(),i(e)):void 0}t.on("keyboard.bind",(function(){de.bind(e,"keydown",r)})),t.on("keyboard.unbind",(function(){de.unbind(e,"keydown",r)}))}(this._container,n,s),n.on("diagram.init",(()=>{i&&this.attachTo(i)})),n.on("diagram.destroy",(()=>{this.detach()})),n.on("root.added",(e=>{const{element:t}=e;this._render(t)}))}attachTo(e){if(!e)throw new Error("container required");e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=xe(e)),this.detach(),e.appendChild(this._container),this._eventBus.fire("propertiesPanel.attach")}detach(){const e=this._container.parentNode;e&&(e.removeChild(this._container),this._eventBus.fire("propertiesPanel.detach"))}registerProvider(e,t){t||(t=e,e=1e3),"function"==typeof t.getGroups?(this._eventBus.on("propertiesPanel.getProviders",e,(function(e){e.providers.push(t)})),this._eventBus.fire("propertiesPanel.providersChanged")):console.error("Properties provider does not implement #getGroups(element) API")}setLayout(e){this._eventBus.fire("propertiesPanel.setLayout",{layout:e})}_getProviders(){const e=this._eventBus.createEvent({type:"propertiesPanel.getProviders",providers:[]});return this._eventBus.fire(e),e.providers}_render(e){const t=this._injector.get("canvas");e||(e=t.getRootElement()),function(e){return e&&(e.isImplicit||"__implicitroot"===e.id)}(e)||(Ew(O_(nF,{element:e,injector:this._injector,getProviders:this._getProviders.bind(this),layoutConfig:this._layoutConfig,descriptionConfig:this._descriptionConfig}),this._container),this._eventBus.fire("propertiesPanel.rendered"))}_destroy(){this._container&&(Ew(null,this._container),this._eventBus.fire("propertiesPanel.destroyed"))}}iF.$inject=["config.propertiesPanel","injector","eventBus"];class rF{constructor(e){this._commandStack=e}preExecute(e){const t=this._commandStack;b(e,(function(e){t.execute(e.cmd,e.context)}))}}rF.$inject=["commandStack"];const oF={"properties-panel.multi-command-executor":rF};function sF(e,t){e.on("diagram.init",(function(){b(oF,(function(e,n){t.registerHandler(n,e)}))}))}sF.$inject=["eventBus","commandStack"];var aF={__depends__:[{__init__:[sF]},nX],__init__:["propertiesPanel"],propertiesPanel:["type",iF]};function lF(e){const{autoFocusEntry:t,element:n,getOptions:i}=e,r=i(n),o=Jz(r);return zw((()=>{if(t&&o&&r.length>o.length){const e=xe(`[data-entry-id="${t}"]`),n=xe(".bio-properties-panel-input",e);n&&n.select()}}),[r]),O_(IQ,{...e})}function cF(e){return uF(e,"bpmn:ErrorEventDefinition")}function pF(e){const t=cF(e);return t&&t.get("errorRef")}function uF(e,t){return g(Fr(e).get("eventDefinitions")||[],(function(e){return Lr(e,t)}))}function hF(e){return Lr(e,"bpmn:ReceiveTask")?Fr(e):uF(e,"bpmn:MessageEventDefinition")}function dF(e){const t=hF(e);return t&&t.get("messageRef")}function fF(e){return uF(e,"bpmn:LinkEventDefinition")}function mF(e){return uF(e,"bpmn:SignalEventDefinition")}function gF(e){const t=mF(e);return t&&t.get("signalRef")}function yF(e){return uF(e,"bpmn:EscalationEventDefinition")}function vF(e){const t=yF(e);return t&&t.get("escalationRef")}function bF(e){return uF(e,"bpmn:CompensateEventDefinition")}function OF(e){const{element:t}=e;return function(e){return Vr(e,["bpmn:EndEvent","bpmn:IntermediateThrowEvent"])&&!!bF(e)}(t)?[{id:"waitForCompletion",component:xF,isEdited:_Q},{id:"activityRef",component:wF,isEdited:LQ}]:[]}function xF(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=bF(t);return wQ({element:t,id:"waitForCompletion",label:i("Wait for completion"),getValue:()=>r.get("waitForCompletion"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:r,properties:{waitForCompletion:e}})}})}function wF(e){const{element:t}=e,n=LI("commandStack"),i=LI("elementRegistry"),r=LI("translate"),o=bF(t);return lF({element:t,id:"activityRef",label:r("Activity reference"),getValue:()=>{const e=function(e){const t=bF(e);return t&&t.get("activityRef")}(t);return e&&e.get("id")},setValue:e=>{const r=e?Fr(i.get(e)):void 0;n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{activityRef:r}})},getOptions:()=>{let e=[{value:"",label:r("<none>")}];const n=function(e){const t=Fr(e);let n=t.$parent,i=PF(n);Lr(n,"bpmn:SubProcess")&&n.triggeredByEvent&&(n=n.$parent,n&&(i=[...i,...PF(n)]));return i}(t);var i;return(i=n,M(i,(e=>(e.name||"").toLowerCase()))).forEach((function(t){e.push({value:t.id,label:kF(t)})})),e}})}function _F(e,t){const{flowElements:n}=e;return n.filter((function(e){return Lr(e,t)}))}function EF(e,t){return Lr(e,"bpmn:CallActivity")||Lr(e,"bpmn:SubProcess")&&!e.triggeredByEvent&&!e.isForCompensation||function(e,t){const{id:n}=e;return!!g(t,(function(e){const{attachedToRef:t}=e,i=bF(e);return t&&i&&t.id===n}))}(e,t)}function PF(e){const t=function(e){return _F(e,"bpmn:Activity")}(e),n=function(e){return _F(e,"bpmn:BoundaryEvent")}(e);return t.filter((function(e){return EF(e,n)}))}function kF(e){const{id:t,name:n}=e;return`${n?n+" ":""}(id=${t})`}const SF="text/plain";function TF(e){const{element:t}=e,n=[{id:"documentation",component:$F,isEdited:YQ}];return function(e){return Lr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)&&n.push({id:"processDocumentation",component:CF,isEdited:YQ}),n}function $F(e){const{element:t}=e,n=LI("bpmnFactory"),i=LI("commandStack"),r=LI("translate"),o=LI("debounceInput"),s=AF(Fr(t)),a=RF(t,Fr(t),n,i);return HQ({element:t,id:"documentation",label:r("Element documentation"),getValue:s,setValue:a,debounce:o})}function CF(e){const{element:t}=e,n=LI("bpmnFactory"),i=LI("commandStack"),r=LI("translate"),o=LI("debounceInput"),s=Fr(t).processRef,a=AF(s),l=RF(t,s,n,i);return HQ({element:t,id:"processDocumentation",label:r("Process documentation"),getValue:a,setValue:l,debounce:o})}function MF(e){return e.find((function(e){return(e.textFormat||SF)===SF}))}function AF(e){return function(){const t=MF(e&&e.get("documentation"));return t&&t.text}}function RF(e,t,n,i){return function(r){let o=MF(t&&t.get("documentation"));return o?r?i.execute("element.updateModdleProperties",{element:e,moddleElement:o,properties:{text:r}}):i.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:{documentation:O(t.get("documentation"),o)}}):r?(o=n.create("bpmn:Documentation",{text:r}),i.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:{documentation:[...t.get("documentation"),o]}})):void 0}}function DF(e,t,n,i){const r=i.create(e,t);return n&&(r.$parent=n),r}function jF(e){return new n([32,32,1]).nextPrefixed(e)}function qF(e){let t=e;for(;t.$parent;)t=t.$parent;return t}function BF(e,t){const n=qF(e);return i=n.get("rootElements"),r=t,(i||[]).filter((e=>Lr(e,r)));var i,r}function NF(e,t,n){return BF(e,t).find((e=>e.id===n))}const zF="",QF="create-new";function XF(e){const{element:t}=e;if(!function(e){return Vr(e,["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:EndEvent"])&&!!cF(e)}(t))return[];let n=[{id:"errorRef",component:IF,isEdited:LQ}];return pF(t)&&(n=[...n,{id:"errorName",component:LF,isEdited:KQ},{id:"errorCode",component:VF,isEdited:KQ}]),n}function IF(e){const{element:t}=e,n=LI("bpmnFactory"),i=LI("commandStack"),r=LI("translate"),o=cF(t);return lF({element:t,id:"errorRef",label:r("Global error reference"),autoFocusEntry:"errorName",getValue:()=>{const e=pF(t);return e?e.get("id"):zF},setValue:e=>{const r=qF(o),s=[];let a;return e===QF&&(a=DF("bpmn:Error",{name:jF("Error_")},r,n),e=a.get("id"),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),a]}}})),a=a||NF(o,"bpmn:Error",e),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{errorRef:a}}}),i.execute("properties-panel.multi-command-executor",s)},getOptions:()=>{let e=[{value:zF,label:r("<none>")},{value:QF,label:r("Create new ...")}];const n=BF(Fr(t),"bpmn:Error");var i;return(i=n,M(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function LF(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=pF(t);return ZQ({element:t,id:"errorName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function VF(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=pF(t);return ZQ({element:t,id:"errorCode",label:i("Code"),getValue:()=>o.get("errorCode"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{errorCode:e}}),debounce:r})}const FF="create-new";function UF(e){const{element:t}=e;if(!function(e){return Lr(e,"bpmn:Event")&&!!yF(e)}(t))return[];let n=[{id:"escalationRef",component:HF,isEdited:LQ}];return vF(t)&&(n=[...n,{id:"escalationName",component:YF,isEdited:KQ},{id:"escalationCode",component:WF,isEdited:KQ}]),n}function HF(e){const{element:t}=e,n=LI("bpmnFactory"),i=LI("commandStack"),r=LI("translate"),o=yF(t);return lF({element:t,id:"escalationRef",label:r("Global escalation reference"),autoFocusEntry:"escalationName",getValue:()=>{const e=vF(t);return e&&e.get("id")},setValue:e=>{const r=qF(o),s=[];let a;if(e===FF){const i=jF("Escalation_");a=DF("bpmn:Escalation",{id:i,name:i},r,n),e=a.get("id"),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),a]}}})}return a=a||NF(o,"bpmn:Escalation",e),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{escalationRef:a}}}),i.execute("properties-panel.multi-command-executor",s)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:FF,label:r("Create new ...")}];const n=BF(Fr(t),"bpmn:Escalation");var i;return(i=n,M(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function YF(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=vF(t);return ZQ({element:t,id:"escalationName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function WF(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=vF(t);return ZQ({element:t,id:"escalationCode",label:i("Code"),getValue:()=>o.get("escalationCode"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{escalationCode:e}}),debounce:r})}function GF(e){const{element:t}=e;return Lr(t,"bpmn:Process")||function(e){return Lr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"isExecutable",component:ZF,isEdited:_Q}]:[]}function ZF(e){const{element:t}=e,n=LI("modeling"),i=LI("commandStack"),r=LI("translate");let o,s;if(s=e=>{n.updateProperties(t,{isExecutable:e})},o=e=>e.businessObject.isExecutable,Lr(t,"bpmn:Participant")){const e=t.businessObject.get("processRef");s=n=>{i.execute("element.updateModdleProperties",{element:t,moddleElement:e,properties:{isExecutable:n}})},o=()=>e.get("isExecutable")}return wQ({element:t,id:"isExecutable",label:r("Executable"),getValue:o,setValue:s})}const KF=/\s/,JF=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,eU=/^[a-z_][\w-.]*$/i;function tU(e,t,n){const i=e.$model.ids.assigned(t);return t?i&&i!==e?n("ID must be unique."):function(e,t){if(n=e,KF.test(n))return t("ID must not contain spaces.");var n;if(!eU.test(e))return JF.test(e)?t("ID must not contain prefix."):t("ID must be a valid QName.")}(t,n):n("ID must not be empty.")}function nU(e){const{element:t}=e,n=LI("modeling"),i=LI("debounceInput"),r=LI("translate");return ZQ({element:t,id:"id",label:r(Lr(t,"bpmn:Participant")?"Participant ID":"ID"),getValue:e=>e.businessObject.id,setValue:e=>{n.updateProperties(t,{id:e})},debounce:i,validate:e=>tU(Fr(t),e,r)})}function iU(e){const{element:t}=e;return function(e){return Vr(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!fF(e)}(t)?[{id:"linkName",component:rU,isEdited:KQ}]:[]}function rU(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=fF(t);return ZQ({element:t,id:"linkName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}})},debounce:r})}const oU="",sU="create-new";function aU(e){const{element:t}=e;if(!function(e){return Lr(e,"bpmn:ReceiveTask")||Vr(e,["bpmn:StartEvent","bpmn:EndEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent"])&&!!hF(e)}(t))return[];let n=[{id:"messageRef",component:lU,isEdited:LQ}];return dF(t)&&(n=[...n,{id:"messageName",component:cU,isEdited:KQ}]),n}function lU(e){const{element:t}=e,n=LI("bpmnFactory"),i=LI("commandStack"),r=LI("translate"),o=hF(t);return lF({element:t,id:"messageRef",label:r("Global message reference"),autoFocusEntry:"messageName",getValue:()=>{const e=dF(t);return e?e.get("id"):oU},setValue:e=>{const r=qF(o),s=[];let a;if(e===sU){const i=jF("Message_");a=DF("bpmn:Message",{id:i,name:i},r,n),e=a.get("id"),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),a]}}})}return a=a||NF(o,"bpmn:Message",e),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{messageRef:a}}}),i.execute("properties-panel.multi-command-executor",s)},getOptions:()=>{let e=[{value:oU,label:r("<none>")},{value:sU,label:r("Create new ...")}];const n=BF(Fr(t),"bpmn:Message");var i;return(i=n,M(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function cU(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=dF(t);return ZQ({element:t,id:"messageName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function pU(e){const{element:t}=e;if(!function(e){const t=mU(e);return!!t&&Lr(t,"bpmn:MultiInstanceLoopCharacteristics")}(t))return[];return[{id:"loopCardinality",component:uU,isEdited:KQ},{id:"completionCondition",component:hU,isEdited:KQ}]}function uU(e){const{element:t}=e,n=LI("bpmnFactory"),i=LI("debounceInput"),r=LI("commandStack"),o=LI("translate");return ZQ({element:t,id:"loopCardinality",label:o("Loop cardinality"),getValue:()=>function(e){const t=function(e){return fU(e,"loopCardinality")}(e);return dU(t)}(t),setValue:e=>r.execute("element.updateModdleProperties",gU(t,"loopCardinality",e,n)),debounce:i})}function hU(e){const{element:t}=e,n=LI("bpmnFactory"),i=LI("debounceInput"),r=LI("commandStack"),o=LI("translate");return ZQ({element:t,id:"completionCondition",label:o("Completion condition"),getValue:()=>function(e){const t=function(e){return fU(e,"completionCondition")}(e);return dU(t)}(t),setValue:e=>r.execute("element.updateModdleProperties",gU(t,"completionCondition",e,n)),debounce:i})}function dU(e){return e&&e.get("body")}function fU(e,t){const n=mU(e);return n&&n.get(t)}function mU(e){return Fr(e).loopCharacteristics}function gU(e,t,n,i){const r=mU(e),o={};if(!n)return o[t]=void 0,{element:e,moddleElement:r,properties:o};const s=r.get(t);return s?{element:e,moddleElement:s,properties:{body:n}}:(o[t]=function(e,t,n){return DF("bpmn:FormalExpression",{body:t},e,n)}(r,n,i),{element:e,moddleElement:r,properties:o})}function yU(e){const{element:t}=e;return Vr(t,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])?[]:[{id:"name",component:vU,isEdited:YQ}]}function vU(e){const{element:t}=e,n=LI("modeling"),i=LI("debounceInput"),r=LI("canvas"),o=LI("bpmnFactory"),s=LI("translate");let a={element:t,id:"name",label:s("Name"),debounce:i,setValue:e=>{n.updateProperties(t,{name:e})},getValue:e=>e.businessObject.name,autoResize:!0};return Lr(t,"bpmn:TextAnnotation")?a={...a,setValue:e=>{n.updateProperties(t,{text:e})},getValue:e=>e.businessObject.text}:Lr(t,"bpmn:Group")?a={...a,setValue:e=>{const i=Fr(t);i.categoryValueRef||function(e,t,n){const i=function(e,t){const n=t.create("bpmn:CategoryValue"),i=t.create("bpmn:Category",{categoryValue:[n]});return Mt(e.get("rootElements"),i),Fr(i).$parent=e,Fr(n).$parent=i,n}(Fr(t).$parent,n);e.categoryValueRef=i}(i,r.getRootElement(),o),n.updateLabel(t,e)},getValue:e=>{const t=Fr(e).categoryValueRef;return t&&t.value}}:Lr(t,"bpmn:Participant")&&(a.label=s("Participant Name")),HQ(a)}function bU(e){const{element:t}=e;return function(e){return Lr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"processId",component:xU,isEdited:KQ},{id:"processName",component:OU,isEdited:KQ}]:[]}function OU(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=t.businessObject.get("processRef");return ZQ({element:t,id:"processName",label:i("Process name"),getValue:()=>o.get("name"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}})},debounce:r})}function xU(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=t.businessObject.get("processRef");return ZQ({element:t,id:"processId",label:i("Process ID"),getValue:()=>o.get("id"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{id:e}})},debounce:r,validate:e=>tU(o,e,i)})}const wU="",_U="create-new";function EU(e){const{element:t}=e;if(!function(e){return Lr(e,"bpmn:Event")&&!!mF(e)}(t))return[];let n=[{id:"signalRef",component:PU,isEdited:LQ}];return gF(t)&&(n=[...n,{id:"signalName",component:kU,isEdited:KQ}]),n}function PU(e){const{element:t}=e,n=LI("bpmnFactory"),i=LI("commandStack"),r=LI("translate"),o=mF(t);return lF({element:t,id:"signalRef",label:r("Global signal reference"),autoFocusEntry:"signalName",getValue:()=>{const e=gF(t);return e?e.get("id"):wU},setValue:e=>{const r=qF(o),s=[];let a;if(e===_U){const i=jF("Signal_");a=DF("bpmn:Signal",{id:i,name:i},r,n),e=a.get("id"),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),a]}}})}return a=a||NF(o,"bpmn:Signal",e),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{signalRef:a}}}),i.execute("properties-panel.multi-command-executor",s)},getOptions:()=>{let e=[{value:wU,label:r("<none>")},{value:_U,label:r("Create new ...")}];const n=BF(Fr(t),"bpmn:Signal");var i;return(i=n,M(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function kU(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=gF(t);return ZQ({element:t,id:"signalName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function SU(e){return Vr(e,["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"])&&!!$U(e)}function TU(e){if(!e)return;if(void 0!==e.get("timeDate"))return"timeDate";if(void 0!==e.get("timeCycle"))return"timeCycle";return void 0!==e.get("timeDuration")?"timeDuration":void 0}function $U(e){return CU(e,"bpmn:TimerEventDefinition")}function CU(e,t){return g(Fr(e).get("eventDefinitions")||[],(function(e){return Lr(e,t)}))}function MU(e){return Lr(e,"bpmn:ReceiveTask")?Fr(e):CU(e,"bpmn:MessageEventDefinition")}function AU(e){return CU(e,"bpmn:SignalEventDefinition")}function RU(e){const t=AU(e);return t&&t.get("signalRef")}function DU(e){const{element:t,idPrefix:n}=e;let{timerEventDefinition:i}=e;if(!i){i=$U(Fr(t))}const r=TU(i);if(!SU(t))return[];const o=[];return o.push({id:NU(n,"timerEventDefinitionType"),component:jU,isEdited:LQ,timerEventDefinition:i,timerEventDefinitionType:r}),r&&o.push({id:NU(n,"timerEventDefinitionValue"),component:qU,isEdited:KQ,timerEventDefinition:i,timerEventDefinitionType:r}),o}function jU(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=LI("commandStack"),o=LI("bpmnFactory"),s=LI("translate");return IQ({element:t,id:"timerEventDefinitionType",label:s("Type"),getValue:()=>i||"",setValue:e=>{if(e===i)return;const s=o.create("bpmn:FormalExpression",{body:void 0});s.$parent=n;const a={timeDuration:void 0,timeDate:void 0,timeCycle:void 0};""!==e&&(a[e]=s),r.execute("element.updateModdleProperties",{element:t,moddleElement:n,properties:a})},getOptions:e=>[{value:"",label:s("<none>")},{value:"timeDate",label:s("Date")},{value:"timeDuration",label:s("Duration")},{value:"timeCycle",label:s("Cycle")}]})}function qU(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=LI("commandStack"),o=LI("translate"),s=LI("debounceInput"),a=n.get(i);return ZQ({element:t,id:"timerEventDefinitionValue",label:o("Value"),getValue:()=>a&&a.get("body"),setValue:e=>{r.execute("element.updateModdleProperties",{element:t,moddleElement:a,properties:{body:e}})},debounce:s,description:BU(i,o)})}function BU(e,t){switch(e){case"timeDate":return O_("div",{children:[O_("p",{children:t("A specific point in time defined as ISO 8601 combined date and time representation.")}),O_("ul",{children:[O_("li",{children:[O_("code",{children:"2019-10-01T12:00:00Z"})," - ",t("UTC time")]}),O_("li",{children:[O_("code",{children:"2019-10-02T08:09:40+02:00"})," - ",t("UTC plus 2 hours zone offset")]})]}),O_("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-date",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]});case"timeCycle":return O_("div",{children:[O_("p",{children:t("A cycle defined as ISO 8601 repeating intervals format.")}),O_("ul",{children:[O_("li",{children:[O_("code",{children:"R5/PT10S"})," - ",t("every 10 seconds, up to 5 times")]}),O_("li",{children:[O_("code",{children:"R/P1D"})," - ",t("every day, infinitely")]})]}),O_("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-cycle",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]});case"timeDuration":return O_("div",{children:[O_("p",{children:t("A time duration defined as ISO 8601 durations format.")}),O_("ul",{children:[O_("li",{children:[O_("code",{children:"PT15S"})," - ",t("15 seconds")]}),O_("li",{children:[O_("code",{children:"PT1H30M"})," - ",t("1 hour and 30 minutes")]}),O_("li",{children:[O_("code",{children:"P14D"})," - ",t("14 days")]})]}),O_("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-duration",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]})}}function NU(e,t){return e?e+t:t}function zU(e,t){const n=t.get("translate"),i=[...yU({element:e}),{id:"id",component:nU,isEdited:KQ},...bU({element:e}),...GF({element:e})];return{id:"general",label:n("General"),entries:i,component:iQ}}function QU(e,t){const n={label:t.get("translate")("Compensation"),id:"compensation",component:iQ,entries:[...OF({element:e})]};return n.entries.length?n:null}function XU(e,t){const n=t.get("translate"),i=[...TF({element:e})];return{id:"documentation",label:n("Documentation"),entries:i,component:iQ}}function IU(e,t){const n={id:"error",label:t.get("translate")("Error"),component:iQ,entries:[...XF({element:e})]};return n.entries.length?n:null}function LU(e,t){const n={id:"message",label:t.get("translate")("Message"),component:iQ,entries:[...aU({element:e})]};return n.entries.length?n:null}function VU(e,t){const n={id:"signal",label:t.get("translate")("Signal"),component:iQ,entries:[...EU({element:e})]};return n.entries.length?n:null}function FU(e,t){const n={label:t.get("translate")("Link"),id:"link",component:iQ,entries:[...iU({element:e})]};return n.entries.length?n:null}function UU(e,t){const n={id:"escalation",label:t.get("translate")("Escalation"),component:iQ,entries:[...UF({element:e})]};return n.entries.length?n:null}function HU(e,t){const n={label:t.get("translate")("Timer"),id:"timer",component:iQ,entries:[...DU({element:e})]};return n.entries.length?n:null}function YU(e,t){const n={label:t.get("translate")("Multi-instance"),id:"multiInstance",component:iQ,entries:[...pU({element:e})]};return n.entries.length?n:null}class WU{constructor(e,t){e.registerProvider(this),this._injector=t}getGroups(e){return t=>(t=t.concat(function(e,t){return[zU(e,t),XU(e,t),QU(e,t),IU(e,t),FU(e,t),LU(e,t),YU(e,t),VU(e,t),UU(e,t),HU(e,t)].filter((e=>null!==e))}(e,this._injector)),t)}}WU.$inject=["propertiesPanel","injector"];var GU={__init__:["bpmnPropertiesProvider"],bpmnPropertiesProvider:["type",WU]};function ZU(e,t=undefined){const n=e.get("extensionElements");if(!n)return[];const i=n.get("values");return i&&i.length?t?i.filter((e=>Lr(e,t))):i:[]}function KU(e,t,n,i){c(n)||(n=[n]);const r=t.get("extensionElements"),o=r.get("values").filter((e=>!n.includes(e)));i.execute("element.updateModdleProperties",{element:e,moddleElement:r,properties:{values:o}})}function JU(e){return t=>{const{bpmnElement:n,element:i}=t,r=(n||i).businessObject,[o,s]=Bw([]),a=LI("eventBus"),l=(c={getVariablesForElement:wX},LI("variableResolver",!1)||c);var c;return zw((()=>{const e=()=>{(async()=>{const e=await l.getVariablesForElement(r);s(e.map((e=>({...e,info:e.info||e.origin&&"Written in "+e.origin.map((e=>e.name||e.id)).join(", ")}))))})()};return a.on("commandStack.changed",e),e(),()=>{a.off("commandStack.changed",e)}}),[r]),O_(e,{...t,variables:o})}}function eH(e){return t=>{const n=Iw((()=>{const e=LI("config");return e&&e.propertiesPanel&&e.propertiesPanel.feelTooltipContainer}),[]);return O_(e,{...t,tooltipContainer:n})}}const tH=eH(NQ),nH=eH((function(e){return O_(NQ,{class:"bio-properties-panel-feel-textarea",OptionalComponent:BQ,...e})})),iH=JU(tH),rH=JU(nH);function oH(e){const{element:t}=e;return Lr(t,"bpmn:UserTask")?[{id:"assignmentDefinitionAssignee",component:sH,isEdited:zQ},{id:"assignmentDefinitionCandidateGroups",component:aH,isEdited:zQ},{id:"assignmentDefinitionCandidateUsers",component:lH,isEdited:zQ}]:[]}function sH(e){const{element:t}=e,n=LI("commandStack"),i=LI("bpmnFactory"),r=LI("translate"),o=LI("debounceInput");return iH({element:t,id:"assignmentDefinitionAssignee",label:r("Assignee"),feel:"optional",getValue:()=>(cH(t)||{}).assignee,setValue:e=>{const r=[],o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=cH(t);a||(a=DF("zeebe:AssignmentDefinition",{},s,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{assignee:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function aH(e){const{element:t}=e,n=LI("commandStack"),i=LI("bpmnFactory"),r=LI("translate"),o=LI("debounceInput");return iH({element:t,id:"assignmentDefinitionCandidateGroups",label:r("Candidate groups"),feel:"optional",getValue:()=>(cH(t)||{}).candidateGroups,setValue:e=>{let r=[];const o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=cH(t);a||(a=DF("zeebe:AssignmentDefinition",{},s,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{candidateGroups:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function lH(e){const{element:t}=e,n=LI("commandStack"),i=LI("bpmnFactory"),r=LI("translate"),o=LI("debounceInput");return iH({element:t,id:"assignmentDefinitionCandidateUsers",label:r("Candidate users"),feel:"optional",getValue:()=>(cH(t)||{}).candidateUsers,setValue:e=>{let r=[];const o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=cH(t);a||(a=DF("zeebe:AssignmentDefinition",{},s,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{candidateUsers:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function cH(e){return ZU(Fr(e),"zeebe:AssignmentDefinition")[0]}function pH(e){return!!Lr(e,"zeebe:ZeebeServiceTask")&&(Lr(e,"bpmn:EndEvent")||Lr(e,"bpmn:IntermediateThrowEvent")?!!hF(e):!(Vr(e,["bpmn:BusinessRuleTask","bpmn:ScriptTask"])&&!function(e){const t=Fr(e);return ZU(t,"zeebe:TaskDefinition")[0]}(e)))}function uH(e){return ZU(Fr(e),"zeebe:TaskHeaders")[0]}const hH="dmn",dH="jobWorker",fH="";function mH(e){const{element:t}=e;return Lr(t,"bpmn:BusinessRuleTask")?[{id:"businessRuleImplementation",component:gH,isEdited:()=>function(e){return yH(e)}(t)}]:[]}function gH(e){const{element:t,id:n}=e,i=LI("commandStack"),r=LI("bpmnFactory"),o=LI("translate");return IQ({element:t,id:n,label:o("Implementation"),getValue:()=>vH(t)?hH:yH(t)?dH:fH,setValue:e=>{let n,o;e===hH?(n=vH(t),o="zeebe:CalledDecision"):e===dH?(n=yH(t),o="zeebe:TaskDefinition"):function(e,t){const n=Fr(e),i=[yH(e),uH(e),vH(e)].filter(Boolean);KU(e,n,i,t)}(t,i),!n&&o&&(n=DF(o,{},null,r),function(e,t,n,i){const r=Fr(e),o=[];let s,a=r.get("extensionElements");a||(a=DF("bpmn:ExtensionElements",{values:[]},r,n),o.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:r,properties:{extensionElements:a}}}));t.$parent=a,Lr(t,"zeebe:TaskDefinition")?s=O(a.get("values"),vH(e)):Lr(t,"zeebe:CalledDecision")&&(s=O(a.get("values"),yH(e)));o.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:a,properties:{values:[...s,t]}}}),i.execute("properties-panel.multi-command-executor",o)}(t,n,r,i))},getOptions:()=>[{value:fH,label:o("<none>")},{value:hH,label:o("DMN decision")},{value:dH,label:o("Job worker")}]})}function yH(e){return ZU(Fr(e),"zeebe:TaskDefinition")[0]}function vH(e){return ZU(Fr(e),"zeebe:CalledDecision")[0]}function bH(e){const{element:t}=e;return Lr(t,"bpmn:BusinessRuleTask")&&wH(t)?[{id:"decisionId",component:OH,isEdited:zQ},{id:"resultVariable",component:xH,isEdited:KQ}]:[]}function OH(e){const{element:t,id:n}=e,i=LI("commandStack"),r=LI("bpmnFactory"),o=LI("translate"),s=LI("debounceInput");return iH({element:t,id:n,label:o("Decision ID"),feel:"optional",getValue:()=>(wH(t)||{}).decisionId,setValue:e=>{const n=[],o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=wH(t);a||(a=DF("zeebe:CalledDecision",{},s,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{decisionId:e}}}),i.execute("properties-panel.multi-command-executor",n)},debounce:s})}function xH(e){const{element:t,id:n}=e,i=LI("commandStack"),r=LI("bpmnFactory"),o=LI("translate"),s=LI("debounceInput");return ZQ({element:t,id:n,label:o("Result variable"),getValue:()=>(wH(t)||{}).resultVariable,setValue:e=>{const n=[],o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=wH(t);a||(a=DF("zeebe:CalledDecision",{},s,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{resultVariable:e}}}),i.execute("properties-panel.multi-command-executor",n)},debounce:s})}function wH(e){return ZU(Fr(e),"zeebe:CalledDecision")[0]}function _H(e){const{element:t}=e;if(!Lr(t,"bpmn:SequenceFlow"))return[];const n=[];return function(e){return Vr(e,PH)}(t.source)&&n.push({id:"conditionExpression",component:EH,isEdited:zQ}),n}function EH(e){const{element:t}=e,n=LI("commandStack"),i=LI("bpmnFactory"),r=LI("translate"),o=LI("debounceInput");return iH({element:t,id:"conditionExpression",label:r("Condition expression"),feel:"required",getValue:()=>function(e){const t=Fr(e),n=t.conditionExpression;if(n)return n.get("body")}(t),setValue:e=>{const r=[],o=Fr(t),s=t.source;s.businessObject.default===o&&r.push({cmd:"element.updateProperties",context:{element:s,properties:{default:void 0}}});const a=e&&""!=e?DF("bpmn:FormalExpression",{body:e},o,i):void 0;r.push({cmd:"element.updateProperties",context:{element:t,properties:{conditionExpression:a}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}const PH=["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"];function kH(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=pF(t);return iH({element:t,id:"errorCode",label:i("Code"),feel:"optional",getValue:()=>o.get("errorCode"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{errorCode:e}}),debounce:r})}function SH(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=vF(t);return iH({element:t,id:"escalationCode",label:i("Code"),feel:"optional",getValue:()=>o.get("escalationCode"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{escalationCode:e}}),debounce:r})}function TH(e){const{element:t,injector:n}=e,i=n.invoke(RH);if(!Lr(t,"bpmn:UserTask"))return[];const r=[{id:"formType",component:$H,isEdited:LQ}];return!function(e,t){const n=t.getFormDefinition(e),i=t.getUserTaskForm(e);return n&&i}(t,i)?function(e,t){const n=t.getFormDefinition(e),i=t.getUserTaskForm(e);return n&&!i}(t,i)&&r.push({id:"customFormKey",component:MH,isEdited:KQ}):r.push({id:"formConfiguration",component:CH,isEdited:YQ}),r}function $H(e){const{element:t}=e,n=LI("translate"),i=LI("injector").invoke(RH);return IQ({element:t,id:"formType",label:n("Type"),getValue:()=>{const e=i.getFormDefinition(t),n=i.getUserTaskForm(t);return e?n?"camundaForm":"formKey":""},setValue:e=>{i.resetForm(t),"camundaForm"===e?i.setUserTaskForm(t,""):"formKey"===e&&i.setFormDefinition(t,"")},getOptions:()=>[{value:"",label:n("<none>")},{value:"camundaForm",label:n("Camunda forms")},{value:"formKey",label:n("Custom form key")}]})}function CH(e){const{element:t}=e,n=LI("injector"),i=LI("debounceInput"),r=LI("translate"),o=n.invoke(RH);return HQ({element:t,id:"formConfiguration",label:r("Form JSON configuration"),rows:4,getValue:()=>o.getUserTaskForm(t).get("body"),setValue:e=>{o.setUserTaskForm(t,e)},debounce:i})}function MH(e){const{element:t}=e,n=LI("injector"),i=LI("debounceInput"),r=LI("translate"),o=n.invoke(RH);return ZQ({element:t,id:"customFormKey",label:r("Form key"),getValue:()=>o.getFormDefinition(t).get("formKey"),setValue:e=>{o.setFormDefinition(t,e)},debounce:i})}const AH="userTaskForm_";function RH(e,t){function n(e){return ZU(Fr(e),"zeebe:FormDefinition")[0]}function i(e,t){const i=t||l(e),r=n(e);if(s(r))return;const o=function(e,t){const n=ZU(t,"zeebe:UserTaskForm");return g(n,(function(t){return a(t.id)===e}))}(r.get("formKey"),i);return o}function r(t,n){let r=[];const o=l(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,e),r.push(DH(t,o,{extensionElements:s})));let a=i(t);return a||(a=function(e,t,n){return DF("zeebe:UserTaskForm",e,t,n)}(n,s,e),r.push(DH(t,s,{values:[...s.get("values"),a]}))),r.push(DH(t,a,n)),r}function o(t,i){const r=Fr(t);let o=[],l=r.get("extensionElements");s(l)&&(l=DF("bpmn:ExtensionElements",{values:[]},r,e),o.push(DH(t,r,{extensionElements:l})));let c=n(t);if(c)i&&o.push(DH(t,c,{formKey:i}));else{let n=i;if(s(n)){n=a(jF(AH))}c=function(e,t,n){return DF("zeebe:FormDefinition",e,t,n)}({formKey:n},l,e),o.push(DH(t,l,{values:[...l.get("values"),c]}))}return{formId:(p=c.get("formKey"),p.split(":")[2]),commands:o};var p}function a(e){return"camunda-forms:bpmn:"+e}function l(e){let t=Fr(e);for(;t.$parent&&!Lr(t,"bpmn:Process");)t=t.$parent;return t}return{getFormDefinition:n,getUserTaskForm:i,setFormDefinition:function(e,n){const{commands:i}=o(e,n);t.execute("properties-panel.multi-command-executor",i)},setUserTaskForm:function(e,n){const{formId:i,commands:s}=o(e),a=r(e,{id:i,body:n}),l=s.concat(a);t.execute("properties-panel.multi-command-executor",l)},resetForm:function(e){const r=l(e).get("extensionElements"),o=function(e){const t=Fr(e).get("extensionElements");let i=[];const r=n(e);if(!r)return i;let o=O(t.get("values"),r);return i.push(DH(e,t,{values:o})),i}(e),s=i(e);if(!s)return void t.execute("properties-panel.multi-command-executor",o);const a=O(r.get("values"),s);o.push(DH(e,r,{values:a})),t.execute("properties-panel.multi-command-executor",o)}}}function DH(e,t,n){return{cmd:"element.updateModdleProperties",context:{element:e,moddleElement:t,properties:n}}}function jH(e){const{idPrefix:t,header:n}=e;return[{id:t+"-key",component:qH,header:n,idPrefix:t},{id:t+"-value",component:BH,header:n,idPrefix:t}]}function qH(e){const{idPrefix:t,element:n,header:i}=e,r=LI("commandStack"),o=LI("translate"),s=LI("debounceInput");return ZQ({element:i,id:t+"-key",label:o("Key"),getValue:e=>e.key,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{key:e}})},debounce:s})}function BH(e){const{idPrefix:t,element:n,header:i}=e,r=LI("commandStack"),o=LI("translate"),s=LI("debounceInput");return ZQ({element:i,id:t+"-value",label:o("Value"),getValue:e=>e.value,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{value:e}})},debounce:s})}function NH({element:e,injector:t}){if(!function(e){return Lr(e,"bpmn:UserTask")||pH(e)}(e))return null;const n=function(e){const t=uH(e);return t?t.get("values"):[]}(e)||[],i=t.get("bpmnFactory"),r=t.get("commandStack"),o=n.map(((t,n)=>{const i=e.id+"-header-"+n;return{id:i,label:t.get("key")||"",entries:jH({idPrefix:i,element:e,header:t}),autoFocusEntry:i+"-key",remove:zH({commandStack:r,element:e,header:t})}}));return{items:o,add:QH({bpmnFactory:i,commandStack:r,element:e}),shouldSort:!1}}function zH({commandStack:e,element:t,header:n}){return function(i){i.stopPropagation();let r=[];const o=uH(t);if(!o)return;const s=O(o.get("values"),n);if(r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{values:s}}}),!s.length){const e=Fr(t).get("extensionElements");r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:e,properties:{values:O(e.get("values"),o)}}})}e.execute("properties-panel.multi-command-executor",r)}}function QH({bpmnFactory:e,commandStack:t,element:n}){return function(i){i.stopPropagation();let r=[];const o=Fr(n);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,e),r.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:o,properties:{extensionElements:s}}}));let a=uH(n);if(!a){a=DF("zeebe:TaskHeaders",{values:[]},s,e),r.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:s,properties:{values:[...s.get("values"),a]}}})}const l=DF("zeebe:Header",{},a,e);r.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:a,properties:{values:[...a.get("values"),l]}}}),t.execute("properties-panel.multi-command-executor",r)}}function XH(e){const{idPrefix:t,parameter:n}=e;return[{id:t+"-target",component:IH,idPrefix:t,parameter:n},{id:t+"-source",component:LH,idPrefix:t,parameter:n}]}function IH(e){const{idPrefix:t,element:n,parameter:i}=e,r=LI("commandStack"),o=LI("translate"),s=LI("debounceInput");return ZQ({element:i,id:t+"-target",label:o(Lr(i,"zeebe:Input")?"Local variable name":"Process variable name"),getValue:e=>e.target,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{target:e}})},debounce:s})}function LH(e){const{idPrefix:t,element:n,parameter:i}=e,r=LI("commandStack"),o=LI("translate"),s=LI("debounceInput");return iH({bpmnElement:n,element:i,id:t+"-source",label:o("Variable assignment value"),feel:"required",getValue:e=>e.source,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{source:e}})},debounce:s})}function VH(e,t){const n=FH(e);return n&&n.get(t)||[]}function FH(e){return(function(e,t,n){const i=ZU(e,t);return n?(i[0]||{})[n]||[]:i}(Fr(e),"zeebe:IoMapping")||[])[0]}function UH(e){return VH.apply(this,[e,"outputParameters"])}function HH(e){return Vr(e,["bpmn:UserTask","bpmn:SubProcess","bpmn:CallActivity","bpmn:BusinessRuleTask","bpmn:ScriptTask"])||pH(e)||function(e){if(!Vr(e,["bpmn:EndEvent","bpmn:IntermediateThrowEvent"]))return!1;return!!uF(e,"bpmn:SignalEventDefinition")}(e)}function YH(e,t,n){return DF("zeebe:IoMapping",e,t,n)}function WH({element:e,injector:t}){if(!HH(e))return null;const n=function(e){return VH.apply(this,[e,"inputParameters"])}(e)||[],i=t.get("bpmnFactory"),r=t.get("commandStack"),o=n.map(((t,n)=>{const i=e.id+"-input-"+n;return{id:i,label:t.get("target")||"",entries:XH({idPrefix:i,element:e,parameter:t}),autoFocusEntry:i+"-target",remove:GH({commandStack:r,element:e,parameter:t})}}));return{items:o,add:ZH({element:e,bpmnFactory:i,commandStack:r}),shouldSort:!1}}function GH({commandStack:e,element:t,parameter:n}){return function(i){i.stopPropagation();const r=[],o=FH(t);if(!o)return;const s=O(o.get("inputParameters"),n);r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{inputParameters:s}}});const a=Fr(t).get("extensionElements"),l=O(a.get("values"),o);s.length||o.get("outputParameters").length||r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:l}}}),e.execute("properties-panel.multi-command-executor",r)}}function ZH({element:e,bpmnFactory:t,commandStack:n}){return function(i){i.stopPropagation();const r=[],o=Fr(e);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,t),r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:o,properties:{extensionElements:s}}}));let a=FH(e);a||(a=YH({inputParameters:[],outputParameters:[]},s,t),r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:s,properties:{values:[...s.get("values"),a]}}}));const l=DF("zeebe:Input",{source:"",target:jF("InputVariable_")},a,t);r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:a,properties:{inputParameters:[...a.get("inputParameters"),l]}}}),n.execute("properties-panel.multi-command-executor",r)}}function KH(e){const{element:t}=e,n=dF(t),i=[];return n&&i.push({id:"messageName",component:JH,isEdited:zQ}),n&&function(e){if(Lr(e,"bpmn:ReceiveTask"))return!0;if(!Lr(e,"bpmn:StartEvent"))return!0;if(Lr(e,"bpmn:StartEvent")&&uo(e.parent))return!0;return!1}(t)&&i.push({id:"messageSubscriptionCorrelationKey",component:eY,isEdited:zQ}),i}function JH(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=dF(t);return iH({element:t,id:"messageName",label:i("Name"),feel:"optional",getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function eY(e){const{element:t}=e,n=LI("bpmnFactory"),i=LI("commandStack"),r=LI("translate"),o=LI("debounceInput");return iH({element:t,id:"messageSubscriptionCorrelationKey",label:r("Subscription correlation key"),feel:"required",getValue:()=>function(e){const t=tY(e);return t?t.get("correlationKey"):""}(t),setValue:e=>{const r=[],o=dF(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,n),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=tY(t);a||(a=DF("zeebe:Subscription",{},s,n),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{correlationKey:e}}}),i.execute("properties-panel.multi-command-executor",r)},debounce:o})}function tY(e){const t=function(e){const t=ZU(e,"zeebe:Subscription");return t}(dF(e));return t[0]}function nY(e){const{element:t}=e;return function(e){return!!lY(e)}(t)?[{id:"multiInstance-inputCollection",component:iY,isEdited:zQ},{id:"multiInstance-inputElement",component:rY,isEdited:KQ},{id:"multiInstance-outputCollection",component:oY,isEdited:KQ},{id:"multiInstance-outputElement",component:sY,isEdited:zQ},{id:"multiInstance-completionCondition",component:aY,isEdited:zQ}]:[]}function iY(e){const{element:t}=e,n=LI("commandStack"),i=LI("bpmnFactory"),r=LI("translate"),o=LI("debounceInput");return iH({element:t,id:"multiInstance-inputCollection",label:r("Input collection"),feel:"required",getValue:()=>uY(t,"inputCollection"),setValue:e=>hY(t,"inputCollection",e,n,i),debounce:o})}function rY(e){const{element:t}=e,n=LI("commandStack"),i=LI("bpmnFactory"),r=LI("translate"),o=LI("debounceInput");return ZQ({element:t,id:"multiInstance-inputElement",label:r("Input element"),getValue:()=>uY(t,"inputElement"),setValue:e=>hY(t,"inputElement",e,n,i),debounce:o})}function oY(e){const{element:t}=e,n=LI("commandStack"),i=LI("bpmnFactory"),r=LI("translate"),o=LI("debounceInput");return ZQ({element:t,id:"multiInstance-outputCollection",label:r("Output collection"),getValue:()=>uY(t,"outputCollection"),setValue:e=>hY(t,"outputCollection",e,n,i),debounce:o})}function sY(e){const{element:t}=e,n=LI("commandStack"),i=LI("bpmnFactory"),r=LI("translate"),o=LI("debounceInput");return iH({element:t,id:"multiInstance-outputElement",label:r("Output element"),feel:"required",getValue:()=>uY(t,"outputElement"),setValue:e=>hY(t,"outputElement",e,n,i),debounce:o})}function aY(e){const{element:t}=e,n=LI("commandStack"),i=LI("bpmnFactory"),r=LI("translate"),o=LI("debounceInput");return iH({element:t,id:"multiInstance-completionCondition",label:r("Completion condition"),feel:"required",getValue:()=>{const e=function(e){return lY(e).get("completionCondition")}(t);return e&&e.get("body")},setValue:e=>{if(e&&""!==e){const r=DF("bpmn:FormalExpression",{body:e},lY(t),i);pY(t,n,r)}else pY(t,n,void 0)},debounce:o})}function lY(e){return Fr(e).get("loopCharacteristics")}function cY(e){const t=ZU(e,"zeebe:LoopCharacteristics");return t&&t[0]}function pY(e,t,n=undefined){t.execute("element.updateModdleProperties",{element:e,moddleElement:lY(e),properties:{completionCondition:n}})}function uY(e,t){const n=cY(lY(e));return n&&n.get(t)}function hY(e,t,n,i,r){const o=lY(e),s=[];let a=o.get("extensionElements");a||(a=DF("bpmn:ExtensionElements",{values:[]},o,r),s.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:o,properties:{extensionElements:a}}}));let l=cY(o);l||(l=DF("zeebe:LoopCharacteristics",{},a,r),s.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:a,properties:{values:[...a.get("values"),l]}}})),s.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:l,properties:{[t]:n}}}),i.execute("properties-panel.multi-command-executor",s)}function dY(e){const t=function(e){const t=Fr(e);return ZU(t,"zeebe:CalledElement")}(e);return t[0]}function fY(e){const{element:t}=e;return Lr(t,"bpmn:CallActivity")?[{id:"propagateAllChildVariables",component:mY,isEdited:CQ}]:[]}function mY(e){const{element:t}=e,n=LI("commandStack"),i=LI("bpmnFactory"),r=LI("translate"),o=function(e){if(!Lr(e,"bpmn:CallActivity"))return;const t=Fr(e),n=dY(t);return n&&m(n,"propagateAllChildVariables")?n.get("propagateAllChildVariables"):function(e){const t=UH(e);if(t)return!(t.length>0)}(e)}(t);return function(e){const{element:t,id:n,description:i,label:r,switcherLabel:o,inline:s,getValue:a,setValue:l,onFocus:c,onBlur:p}=e;return O_("div",{class:"bio-properties-panel-entry bio-properties-panel-toggle-switch-entry","data-entry-id":n,children:[O_($Q,{id:n,label:r,value:a(t),onInput:l,onFocus:c,onBlur:p,switcherLabel:o,inline:s}),O_(OQ,{forId:n,element:t,value:i})]})}({id:"propagateAllChildVariables",label:r("Propagate all child process variables"),switcherLabel:r(o?"On":"Off"),description:r(o?"All variables from the child process instance will be propagated to the parent process instance":"Only variables defined via output mappings will be propagated from the child to the parent process instance"),getValue:()=>o,setValue:e=>{const r=[],o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=dY(o);a||(a=DF("zeebe:CalledElement",{},s,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{propagateAllChildVariables:e}}}),n.execute("properties-panel.multi-command-executor",r)}})}function gY({element:e,injector:t}){if(!function(e){return Vr(e,["zeebe:ZeebeServiceTask","bpmn:UserTask","bpmn:SubProcess","bpmn:ReceiveTask","bpmn:CallActivity","bpmn:Event","bpmn:BusinessRuleTask"])}(e))return null;const n=UH(e)||[],i=t.get("bpmnFactory"),r=t.get("commandStack"),o=n.map(((t,n)=>{const i=e.id+"-output-"+n;return{id:i,label:t.get("target")||"",entries:XH({idPrefix:i,element:e,parameter:t}),autoFocusEntry:i+"-target",remove:yY({commandStack:r,element:e,parameter:t})}}));return{items:o,add:vY({element:e,bpmnFactory:i,commandStack:r}),shouldSort:!1}}function yY({commandStack:e,element:t,parameter:n}){return function(i){i.stopPropagation();let r=[];const o=FH(t);if(!o)return;const s=O(o.get("outputParameters"),n);if(r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{outputParameters:s}}}),!o.get("inputParameters").length&&!s.length){const e=Fr(t).get("extensionElements"),n=O(e.get("values"),o);r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:e,properties:{values:n}}})}e.execute("properties-panel.multi-command-executor",r)}}function vY({element:e,bpmnFactory:t,commandStack:n}){return function(i){i.stopPropagation();let r=[];const o=Fr(e);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,t),r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:o,properties:{extensionElements:s}}}));let a=FH(e);if(!a){a=YH({inputParameters:[],outputParameters:[]},s,t),r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:s,properties:{values:[...s.get("values"),a]}}})}const l=DF("zeebe:Output",{source:"",target:jF("OutputVariable_")},a,t);r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:a,properties:{outputParameters:[...a.get("outputParameters"),l]}}}),n.execute("properties-panel.multi-command-executor",r)}}RH.$inject=["bpmnFactory","commandStack"];const bY="script",OY="jobWorker",xY="";function wY(e){const{element:t}=e;return Lr(t,"bpmn:ScriptTask")?[{id:"scriptImplementation",component:_Y,isEdited:()=>function(e){return EY(e)||PY(e)}(t)}]:[]}function _Y(e){const{element:t,id:n}=e,i=LI("commandStack"),r=LI("bpmnFactory"),o=LI("translate");return IQ({element:t,id:n,label:o("Implementation"),getValue:()=>PY(t)?bY:EY(t)?OY:xY,setValue:e=>{let n,o;e===bY?(n=PY(t),o="zeebe:Script"):e===OY?(n=EY(t),o="zeebe:TaskDefinition"):function(e,t){const n=Fr(e),i=EY(e),r=function(e){const t=Fr(e);return ZU(t,"zeebe:TaskHeaders")}(e),o=PY(e);if(i){return void KU(e,n,[i,r].filter(Boolean),t)}o&&KU(e,n,o,t)}(t,i),!n&&o&&(n=DF(o,{},null,r),function(e,t,n,i){const r=Fr(e),o=[];let s,a=r.get("extensionElements");a||(a=DF("bpmn:ExtensionElements",{values:[]},r,n),o.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:r,properties:{extensionElements:a}}}));if(t.$parent=a,Lr(t,"zeebe:TaskDefinition"))s=O(a.get("values"),PY(e));else if(Lr(t,"zeebe:Script")){const e=e=>Vr(e,["zeebe:TaskDefinition","zeebe:TaskHeaders"]);s=O(a.get("values"),e)}o.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:a,properties:{values:[...s,t]}}}),i.execute("properties-panel.multi-command-executor",o)}(t,n,r,i))},getOptions:()=>[{value:xY,label:o("<none>")},{value:bY,label:o("FEEL expression")},{value:OY,label:o("Job worker")}]})}function EY(e){return ZU(Fr(e),"zeebe:TaskDefinition")[0]}function PY(e){return ZU(Fr(e),"zeebe:Script")[0]}function kY(e){const{element:t}=e;return Lr(t,"bpmn:ScriptTask")&&$Y(t)?[{id:"resultVariable",component:TY,isEdited:KQ},{id:"scriptExpression",component:SY,isEdited:zQ}]:[]}function SY(e){const{element:t,id:n}=e,i=LI("commandStack"),r=LI("bpmnFactory"),o=LI("translate"),s=LI("debounceInput");return iH({element:t,id:n,label:o("FEEL expression"),feel:"required",getValue:()=>($Y(t)||{}).get("expression"),setValue:e=>{const n=[],o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=$Y(t);a||(a=DF("zeebe:Script",{},s,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{expression:e}}}),i.execute("properties-panel.multi-command-executor",n)},debounce:s})}function TY(e){const{element:t,id:n}=e,i=LI("commandStack"),r=LI("bpmnFactory"),o=LI("translate"),s=LI("debounceInput");return ZQ({element:t,id:n,label:o("Result variable"),getValue:()=>($Y(t)||{}).resultVariable,setValue:e=>{const n=[],o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=$Y(t);a||(a=DF("zeebe:Script",{},s,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{resultVariable:e}}}),i.execute("properties-panel.multi-command-executor",n)},debounce:s})}function $Y(e){return ZU(Fr(e),"zeebe:Script")[0]}function CY(e){const{element:t}=e;if(!function(e){return Lr(e,"bpmn:Event")&&!!AU(e)}(t))return[];let n=[];return RU(t)&&(n=[...n,{id:"signalName",component:MY,isEdited:zQ}]),n}function MY(e){const{element:t}=e,n=LI("commandStack"),i=LI("translate"),r=LI("debounceInput"),o=RU(t);return iH({element:t,id:"signalName",label:i("Name"),feel:"optional",getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function AY(e){const{element:t}=e;return Lr(t,"bpmn:CallActivity")?[{id:"targetProcessId",component:RY,isEdited:zQ}]:[]}function RY(e){const{element:t,id:n}=e,i=LI("commandStack"),r=LI("bpmnFactory"),o=LI("translate"),s=LI("debounceInput");return iH({element:t,id:n,label:o("Process ID"),feel:"optional",getValue:()=>function(e){const t=dY(e);return t?t.get("processId"):""}(t),setValue:e=>{const n=[],o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=dY(o);a||(a=DF("zeebe:CalledElement",{},s,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{processId:e}}}),i.execute("properties-panel.multi-command-executor",n)},debounce:s})}function DY(e){const{element:t}=e;return pH(t)?[{id:"taskDefinitionType",component:jY,isEdited:zQ},{id:"taskDefinitionRetries",component:qY,isEdited:zQ}]:[]}function jY(e){const{element:t,id:n}=e,i=LI("commandStack"),r=LI("bpmnFactory"),o=LI("translate"),s=LI("debounceInput");return iH({element:t,id:n,label:o("Type"),feel:"optional",getValue:()=>(BY(t)||{}).type,setValue:e=>{const n=[],o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=BY(t);a||(a=DF("zeebe:TaskDefinition",{},s,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{type:e}}}),i.execute("properties-panel.multi-command-executor",n)},debounce:s})}function qY(e){const{element:t,id:n}=e,i=LI("commandStack"),r=LI("bpmnFactory"),o=LI("translate"),s=LI("debounceInput");return iH({element:t,id:n,label:o("Retries"),feel:"optional",getValue:()=>(BY(t)||{}).retries,setValue:e=>{let n=[];const o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=BY(t);a||(a=DF("zeebe:TaskDefinition",{},s,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{retries:e}}}),i.execute("properties-panel.multi-command-executor",n)},debounce:s})}function BY(e){return ZU(Fr(e),"zeebe:TaskDefinition")[0]}function NY(e){const{element:t}=e;return Lr(t,"bpmn:UserTask")?[{id:"taskScheduleDueDate",component:zY,isEdited:zQ},{id:"taskScheduleFollowUpDate",component:QY,isEdited:zQ}]:[]}function zY(e){const{element:t}=e,n=LI("commandStack"),i=LI("bpmnFactory"),r=LI("translate"),o=LI("debounceInput");return iH({element:t,id:"taskScheduleDueDate",label:r("Due date"),feel:"optional",getValue:()=>{const e=XY(t);if(e)return e.get("dueDate")},setValue:e=>{let r=[];const o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=XY(t);a||(a=DF("zeebe:TaskSchedule",{},s,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{dueDate:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function QY(e){const{element:t}=e,n=LI("commandStack"),i=LI("bpmnFactory"),r=LI("translate"),o=LI("debounceInput");return iH({element:t,id:"taskScheduleFollowUpDate",label:r("Follow up date"),feel:"optional",getValue:()=>{const e=XY(t);if(e)return e.get("followUpDate")},setValue:e=>{let r=[];const o=Fr(t);let s=o.get("extensionElements");s||(s=DF("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:s}}}));let a=XY(t);a||(a=DF("zeebe:TaskSchedule",{},s,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),a]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{followUpDate:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function XY(e){return ZU(Fr(e),"zeebe:TaskSchedule")[0]}function IY(e){const{element:t,injector:n}=e,i=n.get("translate"),r=TU($U(Fr(t)));if(!SU(t))return[];const o=function(e,t){const n=[];FY("timeDate",e)&&n.push({value:"timeDate",label:t("Date")});FY("timeDuration",e)&&n.push({value:"timeDuration",label:t("Duration")});FY("timeCycle",e)&&n.push({value:"timeCycle",label:t("Cycle")});return n}(t,i),s=1===o.length,a=[];return s||a.push({id:"timerEventDefinitionType",component:LY,isEdited:LQ,options:o}),(r||s)&&a.push({id:"timerEventDefinitionValue",component:VY,isEdited:zQ,label:s?o[0].label:void 0,timerEventDefinitionType:r||o[0].value}),a}function LY(e){const{element:t,options:n}=e,i=LI("commandStack"),r=LI("bpmnFactory"),o=LI("translate"),s=$U(Fr(t)),a=TU(s);return IQ({element:t,id:"timerEventDefinitionType",label:o("Type"),getValue:()=>a||"",setValue:e=>{if(e===a)return;const n=UY(r,s),o={timeDuration:void 0,timeDate:void 0,timeCycle:void 0};""!==e&&(o[e]=n),i.execute("element.updateModdleProperties",{element:t,moddleElement:s,properties:o})},getOptions:e=>[{value:"",label:o("<none>")},...n]})}function VY(e){const{element:t,label:n,timerEventDefinitionType:i}=e,r=LI("commandStack"),o=LI("translate"),s=LI("debounceInput"),a=LI("bpmnFactory"),l=$U(Fr(t)),c=l.get(i),p=function(e){if(Lr(e,"bpmn:IntermediateCatchEvent")||function(e){const t=Fr(e);return Lr(t,"bpmn:BoundaryEvent")&&!1!==t.get("cancelActivity")}(e))return"timerEventDefinitionDurationValue"}(t);return iH({element:t,id:p||"timerEventDefinitionValue",label:n||o("Value"),feel:"optional",getValue:()=>c&&c.get("body"),setValue:e=>{if(!c){const n=UY(a,l);return n.set("body",e),void r.execute("element.updateModdleProperties",{element:t,moddleElement:l,properties:{[i]:n}})}r.execute("element.updateModdleProperties",{element:t,moddleElement:c,properties:{body:e}})},debounce:s,description:HY(i,o)})}function FY(e,t){const n=Fr(t);switch(e){case"timeDate":return!!Lr(t,"bpmn:StartEvent");case"timeCycle":return!(!Lr(t,"bpmn:StartEvent")||(i=n,function(e){const t=e.$parent;return Lr(t,"bpmn:SubProcess")&&t.triggeredByEvent}(i)&&!1!==i.get("isInterrupting")))||!(!Lr(t,"bpmn:BoundaryEvent")||n.cancelActivity);case"timeDuration":return!!Lr(t,"bpmn:IntermediateCatchEvent")||!!Lr(t,"bpmn:BoundaryEvent");default:return}var i}function UY(e,t){const n=e.create("bpmn:FormalExpression",{body:void 0});return n.$parent=t,n}function HY(e,t){switch(e){case"timeDate":return O_("div",{children:[O_("p",{children:t("A specific point in time defined as ISO 8601 combined date and time representation.")}),O_("ul",{children:[O_("li",{children:[O_("code",{children:"2019-10-01T12:00:00Z"})," - ",t("UTC time")]}),O_("li",{children:[O_("code",{children:"2019-10-02T08:09:40+02:00"})," - ",t("UTC plus 2 hours zone offset")]})]}),O_("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-date",target:"_blank",rel:"noopener",title:t("Timer documentation"),children:t("How to configure a timer")})]});case"timeCycle":return O_("div",{children:[O_("p",{children:t("A cycle defined as ISO 8601 repeating intervals format, or a cron expression.")}),O_("ul",{children:[O_("li",{children:[O_("code",{children:"R5/PT10S"})," - ",t("every 10 seconds, up to 5 times")]}),O_("li",{children:[O_("code",{children:"R/P1D"})," - ",t("every day, infinitely")]}),O_("li",{children:[O_("code",{children:"0 0 9-17 * * MON-FRI"})," - ",t("every hour on the hour from 9-5 p.m. UTC Monday-Friday")]})]}),O_("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-cycle",target:"_blank",rel:"noopener",title:t("Timer documentation"),children:t("How to configure a timer")})]});case"timeDuration":return O_("div",{children:[O_("p",{children:t("A time duration defined as ISO 8601 durations format.")}),O_("ul",{children:[O_("li",{children:[O_("code",{children:"PT15S"})," - ",t("15 seconds")]}),O_("li",{children:[O_("code",{children:"PT1H30M"})," - ",t("1 hour and 30 minutes")]}),O_("li",{children:[O_("code",{children:"P14D"})," - ",t("14 days")]})]}),O_("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-duration",target:"_blank",rel:"noopener",title:t("Timer documentation"),children:t("How to configure a timer")})]})}}function YY(e){const{idPrefix:t,property:n}=e;return[{id:t+"-name",component:WY,idPrefix:t,property:n},{id:t+"-value",component:GY,idPrefix:t,property:n}]}function WY(e){const{idPrefix:t,element:n,property:i}=e,r=LI("commandStack"),o=LI("translate"),s=LI("debounceInput");return ZQ({element:i,id:t+"-name",label:o("Name"),getValue:()=>i.name,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{name:e}})},debounce:s})}function GY(e){const{idPrefix:t,element:n,property:i}=e,r=LI("commandStack"),o=LI("translate"),s=LI("debounceInput");return ZQ({element:i,id:t+"-value",label:o("Value"),getValue:()=>i.value,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{value:e}})},debounce:s})}function ZY({element:e,injector:t,namespace:n="camunda"}){let i=eW(e);if(!i)return;const r=function(e,t="camunda"){const n=eW(e),i=nW(n,t);return i&&i.get(tW(t))}(i,n)||[],o=t.get("bpmnFactory"),s=t.get("commandStack"),a=r.map(((t,i)=>{const r=e.id+"-extensionProperty-"+i;return{id:r,label:t.get("name")||"",entries:YY({idPrefix:r,element:e,property:t}),autoFocusEntry:r+"-name",remove:KY({commandStack:s,element:e,property:t,namespace:n})}}));return{items:a,add:JY({bpmnFactory:o,commandStack:s,element:e,namespace:n}),shouldSort:!1}}function KY({commandStack:e,element:t,property:n,namespace:i}){return function(r){r.stopPropagation();const o=[],s=eW(t),a=s.get("extensionElements"),l=nW(s,i);if(!l)return;const c=tW(i),p=O(l.get(c),n);o.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:l,properties:{[c]:p}}}),p.length||o.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:O(a.get("values"),l)}}}),e.execute("properties-panel.multi-command-executor",o)}}function JY({bpmnFactory:e,commandStack:t,element:n,namespace:i}){return function(r){r.stopPropagation();let o=[];const s=eW(n);let a=s.get("extensionElements");a||(a=DF("bpmn:ExtensionElements",{values:[]},s,e),o.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:s,properties:{extensionElements:a}}}));const l=tW(i);let c=nW(s,i);if(!c){c=DF(`${i}:Properties`,{[l]:[]},a,e),o.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:a,properties:{values:[...a.get("values"),c]}}})}const p=DF(`${i}:Property`,{},c,e);o.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:c,properties:{[l]:[...c.get(l),p]}}}),t.execute("properties-panel.multi-command-executor",o)}}function eW(e){let t=Fr(e);return Lr(e,"bpmn:Participant")?t.get("processRef"):t}function tW(e="camunda"){return"zeebe"===e?"properties":"values"}function nW(e,t="camunda"){return ZU(eW(e),`${t}:Properties`)[0]}const iW=[function(e){const t={id:"businessRuleImplementation",label:"Implementation",entries:[...mH({element:e})],component:iQ};return t.entries.length?t:null},function(e){const t={id:"calledDecision",label:"Called decision",entries:[...bH({element:e})],component:iQ};return t.entries.length?t:null},function(e){const t={id:"scriptImplementation",label:"Implementation",entries:[...wY({element:e})],component:iQ};return t.entries.length?t:null},function(e){const t={id:"script",label:"Script",entries:[...kY({element:e})],component:iQ};return t.entries.length?t:null},function(e){const t={id:"taskDefinition",label:"Task definition",entries:[...DY({element:e})],component:iQ};return t.entries.length?t:null},function(e){const t={id:"assignmentDefinition",label:"Assignment",entries:[...oH({element:e}),...NY({element:e})],component:iQ};return t.entries.length?t:null},function(e,t){const n={id:"form",label:"Form",entries:[...TH({element:e,injector:t})],component:iQ};return n.entries.length?n:null},function(e){const t={id:"condition",label:"Condition",entries:[..._H({element:e})],component:iQ};return t.entries.length?t:null},function(e){const t={id:"calledElement",label:"Called element",entries:[...AY({element:e})],component:iQ};return t.entries.length?t:null},function(e,t){const n={id:"inputs",label:"Inputs",component:gQ,...WH({element:e,injector:t})};return n.items?n:null},function(e){const t={id:"outputPropagation",label:"Output propagation",entries:[...fY({element:e})],component:iQ};return t.entries.length?t:null},function(e,t){const n={id:"outputs",label:"Outputs",component:gQ,...gY({element:e,injector:t})};return n.items?n:null},function(e,t){const n={id:"headers",label:"Headers",component:gQ,...NH({element:e,injector:t})};return n.items?n:null},function(e,t){const n={label:"Extension properties",id:"Zeebe__ExtensionProperties",component:gQ,...ZY({element:e,injector:t,namespace:"zeebe"})};if(n.items)return n;return null}];let rW=class{constructor(e,t){e.registerProvider(500,this),this._injector=t}getGroups(e){return t=>(function(e,t){const n=oW(e,"error");if(!n)return;n.entries=sW(n.entries,function(e){const{element:t}=e,n=[];return pF(t)&&Lr(t,"bpmn:ThrowEvent")&&n.push({id:"errorCode",component:kH,isEdited:zQ}),n}({element:t}))}(t=t.concat(this._getGroups(e)),e),function(e,t){const n=oW(e,"escalation");if(!n)return;n.entries=sW(n.entries,function(e){const{element:t}=e;if(!Lr(t,"bpmn:ThrowEvent"))return[];const n=[];return vF(t)&&n.push({id:"escalationCode",component:SH,isEdited:zQ}),n}({element:t}))}(t,e),function(e,t){const n=oW(e,"message");if(!n)return;n.entries=sW(n.entries,KH({element:t}))}(t,e),function(e,t){const n=oW(e,"signal");if(!n)return;n.entries=sW(n.entries,CY({element:t}))}(t,e),function(e,t,n){const i=oW(e,"timer");if(!i)return;i.entries=[...IY({element:t,injector:n})]}(t,e,this._injector),function(e,t){const n=oW(e,"multiInstance");if(!n)return;n.entries=[...nY({element:t})]}(t,e),t=function(e,t){const n=oW(e,"message");(function(e){return Lr(e,"bpmn:EndEvent")&&!!hF(e)}(t)||function(e){return Lr(e,"bpmn:IntermediateThrowEvent")&&!!hF(e)}(t))&&(e=e.filter((e=>e!=n)));return e}(t,e),t)}_getGroups(e){const t=iW.map((t=>t(e,this._injector)));return t.filter((e=>null!==e))}};function oW(e,t){return e.find((e=>e.id===t))}function sW(e,t){return[...e.filter((e=>!t.find((t=>t.id===e.id)))),...t]}rW.$inject=["propertiesPanel","injector"];var aW={__init__:["zeebePropertiesProvider"],zeebePropertiesProvider:["type",rW]};const lW="property",cW="zeebe:input",pW="zeebe:output",uW="zeebe:property",hW="zeebe:taskDefinition:type",dW="zeebe:taskHeader",fW="bpmn:Message#property",mW="bpmn:Message#zeebe:subscription#property",gW=[mW,cW,pW,uW,hW,dW],yW=[hW],vW=[cW,pW],bW=[fW,mW],OW=[lW,fW],xW="zeebe:modelerTemplate",wW="zeebe:modelerTemplateVersion";function _W(e){const t=Fr(e);if(t)return t.get(xW)}function EW(e,t){const n=Fr(e);let i;if(i=Lr(n,"bpmn:ExtensionElements")?n:n.get("extensionElements"),i)return i.get("values").find((e=>Lr(e,t)))}function PW(e,t){return e.get("properties").find((e=>e.name===t.name))}function kW(e,t){return e.get("inputParameters").find((e=>e.target===t.name))}function SW(e,t){return e.get("outputParameters").find((e=>e.source===t.source))}function TW(e,t){return e.get("values").find((e=>e.key===t.key))}function $W(e){if(Lr(e,"bpmn:Event")){const t=e.get("eventDefinitions");if(!t||!t.length)return;e=t[0]}return e.get("messageRef")}function CW(e){if(void 0!==e.value)return e.value;if(e.generatedValue){const{type:t}=e.generatedValue;if("uuid"===t)return FX()}}function MW(e,t,n){const{name:i}=e;return n.create("zeebe:Input",{source:t,target:i})}function AW(e,t,n){const{source:i}=e;return n.create("zeebe:Output",{source:i,target:t})}function RW(e,t,n){const{key:i}=e;return n.create("zeebe:Header",{key:i,value:t})}function DW(e,t){return t.create("zeebe:TaskDefinition",{type:e})}function jW(e,t="",n){const{name:i}=e;return n.create("zeebe:Property",{name:i,value:t})}function qW(e,t){const{optional:n}=t;return e||!n}function BW(e,t,n){const i=Fr(e);let r=i.get("extensionElements");r||(r=DF("bpmn:ExtensionElements",{},i,n),i.set("extensionElements",r));let o=EW(r,t);return o||(o=n.create(t),o.$parent=r,r.get("values").push(o)),o}const NW=["Boolean","Integer","String"];function zW(e,t,n){let i=Fr(e);const r="",{binding:o}=t,{name:a,type:l}=o;if("property"===l){const e=i.get(a);return s(e)?r:e}if(yW.includes(l)){const e=EW(i,"zeebe:TaskDefinition");return e&&l===hW?e.get("type"):r}if(vW.includes(l)){const e=EW(i,"zeebe:IoMapping");if(!e)return r;if(l===cW){const t=kW(e,o);return t?t.get("source"):r}if(l===pW){const t=SW(e,o);return t?t.get("target"):r}}if(l===dW){const e=EW(i,"zeebe:TaskHeaders");if(!e)return r;const t=TW(e,o);return t?t.get("value"):r}if(l===uW){const e=EW(i,"zeebe:Properties");if(e){const t=PW(e,o);if(t)return t.get("value")}return r}if(l===fW){const e=$W(i),t=e?e.get(a):void 0;return s(t)?r:t}if(l===mW){const e=$W(i);if(e){const t=EW(e,"zeebe:Subscription");if(!s(t?t.get(a):void 0))return t.get(a)}return r}throw LW(e,t)}const QW=null;function XW(e,t,n,i,r){let o=Fr(n);const{binding:a}=i,{name:l,type:c}=a;let p,u;const h=[],d={element:n,property:i};if(bW.includes(c)){Lr(o,"bpmn:Event")&&(o=o.get("eventDefinitions")[0]);let t=$W(o);t||(t=e.create("bpmn:Message",{"zeebe:modelerTemplate":_W(n)}),h.push({cmd:"element.updateModdleProperties",context:{...d,moddleElement:o,properties:{messageRef:t}}})),o=t}if(gW.includes(c)&&(p=o.get("extensionElements"),p?h.push(QW):(p=DF("bpmn:ExtensionElements",null,o,e),h.push({cmd:"element.updateModdleProperties",context:{...d,moddleElement:o,properties:{extensionElements:p}}}))),OW.includes(c)){const e=o.$descriptor.propertiesByName[l];if(e){const{type:t}=e;if(!NW.includes(t))throw new Error(`cannot set property of type <${t}>`);"Boolean"===t?u=!!r:"Integer"===t?(u=parseInt(r,10),isNaN(u)&&(u=void 0)):u=r||""}else u=r||"";s(u)?h.push(QW):h.push({cmd:"element.updateModdleProperties",context:{...d,moddleElement:o,properties:{[l]:u}}})}if(yW.includes(c)){const t=EW(p,"zeebe:TaskDefinition");let o;if(c!==hW)throw LW(n,i);o=DW(r,e);const s=p.get("values").filter((e=>e!==t));h.push({cmd:"element.updateModdleProperties",context:{...d,moddleElement:p,properties:{values:[...s,o]}}})}if(vW.includes(c)){let t=EW(p,"zeebe:IoMapping");if(t||(t=DF("zeebe:IoMapping",null,o,e),h.push({cmd:"element.updateModdleProperties",context:{...d,moddleElement:p,properties:{values:[...p.get("values"),t]}}})),c===cW){const n=kW(t,a),o=t.get("inputParameters").filter((e=>e!==n));if(qW(r,i)){const t=MW(a,r,e);o.push(t)}h.push({cmd:"element.updateModdleProperties",context:{...d,moddleElement:t,properties:{inputParameters:[...o]}}})}if(c===pW){const n=SW(t,a),o=t.get("outputParameters").filter((e=>e!==n));if(qW(r,i)){const t=AW(a,r,e);o.push(t)}h.push({cmd:"element.updateModdleProperties",context:{...d,moddleElement:t,properties:{outputParameters:[...o]}}})}}if(c===dW){let t=EW(p,"zeebe:TaskHeaders");t||(t=DF("zeebe:TaskHeaders",null,o,e),h.push({cmd:"element.updateModdleProperties",context:{...d,moddleElement:p,properties:{values:[...p.get("values"),t]}}}));const n=TW(t,a),i=t.get("values").filter((e=>e!==n));if(r){const n=RW(a,r,e);h.push({cmd:"element.updateModdleProperties",context:{...d,moddleElement:t,properties:{values:[...i,n]}}})}else h.push({cmd:"element.updateModdleProperties",context:{...d,moddleElement:t,properties:{values:i}}})}if(c===uW){let t=EW(p,"zeebe:Properties");t||(t=DF("zeebe:Properties",null,o,e),h.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:p,properties:{values:[...p.get("values"),t]}}}));const s=PW(t,a),l=t.get("properties").filter((e=>e!==s));if(qW(r,i)){const t=jW(a,r,e);l.push(t)}h.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:t,properties:{properties:l}}})}if(c===mW){let t=EW(p,"zeebe:Subscription");t||(t=DF("zeebe:Subscription",null,p,e),h.push({cmd:"element.updateModdleProperties",context:{...d,moddleElement:p,properties:{values:[...p.get("values"),t]}}})),h.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:t,properties:{[l]:r||""}}})}if(!h.length)throw LW(n,i);{const e=h.filter((e=>e!==QW));e.length&&t.execute("properties-panel.multi-command-executor",e)}}function IW(e,t,n){let i=Fr(t);const{binding:r}=n,{type:o}=r;let s;const a=[],l={element:t,property:n};if((!bW.includes(o)||(i=$W(i),i))&&(!gW.includes(o)||(s=i.get("extensionElements"),s))){if(yW.includes(o)){const e=EW(s,"zeebe:TaskDefinition");a.push({cmd:"element.updateModdleProperties",context:{...l,moddleElement:s,properties:{values:O(s.get("values"),e)}}})}if(vW.includes(o)){let e=EW(s,"zeebe:IoMapping");if(!e)return;if(o===cW){const t=kW(e,r),n=e.get("inputParameters").filter((e=>e!==t));0==e.get("outputParameters").length&&0==n.length?a.push({cmd:"element.updateModdleProperties",context:{...l,moddleElement:s,properties:{values:O(s.get("values"),e)}}}):a.push({cmd:"element.updateModdleProperties",context:{...l,moddleElement:e,properties:{inputParameters:[...n]}}})}if(o===pW){const t=SW(e,r),n=e.get("outputParameters").filter((e=>e!==t));0==e.get("inputParameters").length&&0==n.length&&a.push({cmd:"element.updateModdleProperties",context:{...l,moddleElement:s,properties:{values:O(s.get("values"),e)}}}),a.push({cmd:"element.updateModdleProperties",context:{...l,moddleElement:e,properties:{outputParameters:[...n]}}})}}if(o===dW){let e=EW(s,"zeebe:TaskHeaders");if(!e)return;const t=TW(e,r),n=e.get("values").filter((e=>e!==t));0===n.length?a.push({cmd:"element.updateModdleProperties",context:{...l,moddleElement:s,properties:{values:O(s.get("values"),e)}}}):a.push({cmd:"element.updateModdleProperties",context:{...l,moddleElement:e,properties:{values:[...n]}}})}if(o===uW){let e=EW(s,"zeebe:Properties");if(!e)return;const t=PW(e,r),n=e.get("properties").filter((e=>e!==t));n.length?a.push({cmd:"element.updateModdleProperties",context:{...l,moddleElement:e,properties:{properties:[...n]}}}):a.push({cmd:"element.updateModdleProperties",context:{...l,moddleElement:s,properties:{values:O(s.get("values"),e)}}})}if(o===fW&&a.push({cmd:"element.updateModdleProperties",context:{...l,moddleElement:i,properties:{[r.name]:void 0}}}),o===mW){const e=EW(i,"zeebe:Subscription");if(!e)return;a.push({cmd:"element.updateModdleProperties",context:{...l,moddleElement:e,properties:{[r.name]:void 0}}})}a.length&&e.execute("properties-panel.multi-command-executor",a)}}function LW(e,t){const n=Fr(e).get("id"),{binding:i}=t,{type:r}=i;return new Error(`unknown binding <${r}> for element <${n}>, this should never happen`)}function VW(e,t){const{properties:n}=t,i=n.filter((t=>FW(e,n,t)));return{...t,properties:i}}function FW(e,t,n){const{condition:i}=n;if(!i)return!0;if(i.allMatch){return i.allMatch.every((n=>UW(e,t,n)))}return UW(e,t,i)}function UW(e,t,n){const{property:i,equals:r,oneOf:o}=n,s=function(e,t,n){const i=t.find((e=>e.id===n));if(!i)return;return zW(e,i)}(e,t,i);return r?s===r:!!o&&o.includes(s)}class HW extends js{constructor(e,t,n,i){super(e),this._eventBus=e,this._elementTemplates=t,this._commandStack=n,this._bpmnFactory=i,this.preExecute(["element.updateProperties","element.updateModdleProperties"],this._saveConditionalState,!0,this),this.postExecute(["element.updateProperties","element.updateModdleProperties","propertiesPanel.zeebe.changeTemplate"],this._applyConditions,!0,this)}_saveConditionalState(e){const{element:t}=e,n=this._elementTemplates.get(t);n&&(e.oldTemplate=VW(t,n))}_applyConditions(e){const{element:t,oldTemplate:n}=e,i=this._elementTemplates.get(t);if(!i||!n||i.id!==n.id)return;const r=VW(t,i),o=YW(n,r),s=function(e,t){const n=YW(e,t);return n.filter((t=>!function(e,t){return e.properties.some((e=>GW(t.binding,e.binding)))}(e,t)))}(r,n);o.forEach((e=>XW(this._bpmnFactory,this._commandStack,t,e,e.value))),s.forEach((e=>IW(this._commandStack,t,e)))}}function YW(e,t){return t.properties.filter((t=>!e.properties.find((e=>function(e,t){return GW(e.binding,t.binding)&&GW(e.condition,t.condition)}(e,t)))))}function WW(e,t){if(p(t)){return Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{})}return t}function GW(e,t){return JSON.stringify(e,WW)===JSON.stringify(t,WW)}HW.$inject=["eventBus","elementTemplates","commandStack","bpmnFactory"];const ZW="camunda:modelerTemplate",KW="camunda:modelerTemplateVersion";function JW(e){const t=Fr(e);if(t)return t.get(ZW)}let eG=class{constructor(e){this._commandStack=e,this._templates={}}get(e,t){const n=this._templates;let i;return s(e)?null:d(e)?(s(t)&&(t="_"),n[e]&&n[e][t]?n[e][t]:null):(i=e,this.get(this._getTemplateId(i),this._getTemplateVersion(i)))}getDefault(e){return g(this.getAll(e),(function(e){return e.isDefault}))||null}getAll(e){return this._getTemplateVerions(e,{includeDeprecated:!0})}getLatest(e,t={}){return this._getTemplateVerions(e,{...t,latest:!0})}set(e){this._templates={},e.forEach((e=>{const t=e.id,n=s(e.version)?"_":e.version;this._templates[t]||(this._templates[t]={latest:e}),this._templates[t][n]=e;const i=this._templates[t].latest.version;(s(i)||e.version>i)&&(this._templates[t].latest=e)}))}_getTemplateVerions(e,t={}){const{latest:n,deprecated:r}=t,o=this._templates,s=e=>{const{latest:t,...i}=e;return n?!r&&t.deprecated?[]:[t]:S(i)};if(l(e))return i(S(o).map(s));if(p(e)){const n=e;return v(this._getTemplateVerions(null,t),(function(e){return Vr(n,e.appliesTo)}))||[]}if(d(e))return o[e]&&s(o[e]);throw new Error("argument must be of type {string|djs.model.Base|undefined}")}_getTemplateId(e){return JW(e)}_getTemplateVersion(e){return function(e){const t=Fr(e);if(t)return t.get(KW)}(e)}applyTemplate(e,t){const n={element:e,newTemplate:t,oldTemplate:this.get(e)};return this._commandStack.execute("propertiesPanel.camunda.changeTemplate",n),n.element}};eG.$inject=["commandStack"];class tG extends eG{constructor(e,t){super(t),this._commandStack=t,this._templateElementFactory=e}_getTemplateId(e){return _W(e)}_getTemplateVersion(e){return function(e){const t=Fr(e);if(t)return t.get(wW)}(e)}createElement(e){if(!e)throw new Error("template is missing");return this._templateElementFactory.create(e)}applyTemplate(e,t){const n={element:e,newTemplate:t,oldTemplate:this.get(e)};return this._commandStack.execute("propertiesPanel.zeebe.changeTemplate",n),n.element}}tG.$inject=["templateElementFactory","commandStack"];const nG=YX,iG=["bpmn:Activity","bpmn:Event","bpmn:Gateway"];let rG=class{constructor(e){this._templatesById={},this._validTemplates=[],this._errors=[],this._moddle=e}addAll(e){return c(e)?e.forEach(this.add,this):this._logError("templates must be []"),this}add(e){let t,n;return this._validateTemplate(e)||(t=e.id,n=e.version||"_",this._templatesById[t]||(this._templatesById[t]={}),this._templatesById[t][n]=e,this._validTemplates.push(e)),this}_validateTemplate(e){let t;const n=e.id,i=e.version||"_",r=e.$schema&&oG(e.$schema);if(r&&HX(nG,r)<0)return this._logError(`unsupported element template schema version <${r}>. Your installation only supports up to version <${nG}>. Please update your installation`,e);if(this._templatesById[n]&&this._templatesById[n][i])return"_"===i?this._logError(`template id <${n}> already used`,e):this._logError(`template id <${n}> and version <${i}> already used`,e);const o=this._validateElementType(e);if(o)return o;const s=kI(e,WX.exports);const{errors:a,valid:l}=s;return l||(t=new Error("invalid template"),sG(a).forEach((t=>{this._logError(t.message,e)}))),t}_validateElementType(e){if(e.elementType&&e.appliesTo){const t=e.elementType.value,n=e.appliesTo;if(!n.find((e=>this._isType(t,e))))return this._logError(`template does not apply to requested element type <${t}>`,e);for(const i of n)if(!this._canMorph(i,t))return this._logError(`can not morph <${i}> into <${t}>`,e)}}_isType(e,t){const n=this._moddle.getType(e);return n&&t in this._moddle.getElementDescriptor(n).allTypesByName}_canMorph(e,t){if(e===t)return!0;const n=iG.find((t=>this._isType(e,t)));return!!n&&this._isType(t,n)}_logError(e,t){if(d(e)){if(t){const{id:n,name:i}=t;e=`template(id: <${n}>, name: <${i}>): ${e}`}e=new Error(e)}return this._errors.push(e),e}getErrors(){return this._errors}getValidTemplates(){return this._validTemplates}};function oG(e){const t=e.match(/\d+\.\d+\.\d+/g);return null===t?void 0:t[0]}function sG(e){return v(e,(e=>{const{dataPath:t,keyword:n}=e;return"errorMessage"===n||!("type"!==n||!t||t.startsWith("/scopes/"))}))}const aG=$I,lG=TI;class cG extends rG{constructor(e){super(e)}_validateTemplate(e){let t;const n=e.id,i=e.version||"_",r=e.$schema,o=r&&oG(r);if(!r)return this._logError("missing $schema attribute.",e);if(!this.isSchemaValid(r))return this._logError(`unsupported $schema attribute <${r}>.`,e);if(o&&HX(aG,o)<0)return this._logError(`unsupported element template schema version <${o}>. Your installation only supports up to version <${aG}>. Please update your installation`,e);if(this._templatesById[n]&&this._templatesById[n][i])return"_"===i?this._logError(`template id <${n}> already used`,e):this._logError(`template id <${n}> and version <${i}> already used`,e);const s=this._validateElementType(e);if(s)return s;const a=kI(e,CI.exports);const{errors:l,valid:c}=a;return c||(t=new Error("invalid template"),sG(l).forEach((t=>{this._logError(t.message,e)}))),t}isSchemaValid(e){return e&&e.includes(lG)}}let pG=class{constructor(e,t,n,i){this._loadTemplates=e,this._eventBus=t,this._elementTemplates=n,this._moddle=i,t.on("diagram.init",(()=>{this.reload()}))}reload(){const e=this._loadTemplates;if(!s(e))return h(e)?e(((e,t)=>{if(e)return this.templateErrors([e]);this.setTemplates(t)})):e.length?this.setTemplates(e):void 0}setTemplates(e){const t=this._elementTemplates,n=this._moddle,i=new rG(n).addAll(e),r=i.getErrors(),o=i.getValidTemplates();t.set(o),r.length&&this.templateErrors(r),this.templatesChanged()}templatesChanged(){this._eventBus.fire("elementTemplates.changed")}templateErrors(e){this._eventBus.fire("elementTemplates.errors",{errors:e})}};pG.$inject=["config.elementTemplates","eventBus","elementTemplates","moddle"];class uG extends pG{constructor(e,t,n,i){super(e,t,n,i),this._elementTemplates=n}setTemplates(e){const t=this._elementTemplates,n=this._moddle,i=new cG(n).addAll(e),r=i.getErrors(),o=i.getValidTemplates();t.set(o),r.length&&this.templateErrors(r),this.templatesChanged()}}function hG(e,t){const n=t.get("modeling");t.get("eventBus").fire("elementTemplates.unlink",{element:e}),n.updateProperties(e,{"camunda:modelerTemplate":null,"camunda:modelerTemplateVersion":null})}function dG(e,t){const n=t.get("replace"),i=t.get("selection");t.get("eventBus").fire("elementTemplates.remove",{element:e});const r=Fr(e),o=r.$type,s=function(e){if(!e.eventDefinitions)return null;const t=e.eventDefinitions[0];if(!t)return null;return t.$type}(r),a=function(e,t){const n=t.get("bpmnFactory"),i=Fr(e),r=n.create(i.$type),o=xo(e);if(!o)return r;Lr(e,"bpmn:Group")&&(r.categoryValueRef=n.create("bpmn:CategoryValue"));return wo({businessObject:r},o),r}(e,t),l=n.replaceElement(e,{type:o,businessObject:a,eventDefinitionType:s});i.select(l)}function fG(e,t,n){const i=n.get("elementTemplates");return n.get("eventBus").fire("elementTemplates.update",{element:e,newTemplate:t}),i.applyTemplate(e,t)}function mG(e){const t=e.metadata,n=e.version;if(t){if(!s(t.created))return gG(t.created);if(!s(t.updated))return gG(t.updated)}return s(n)?null:n}function gG(e){const t=new Date(e),n=t.getFullYear(),i=yG(String(t.getMonth()+1));return yG(String(t.getDate()))+"."+i+"."+n+" "+yG(String(t.getHours()))+":"+yG(String(t.getMinutes()))}function yG(e){return function(e,t,n){for(;e.length<t;)e=n+e;return e}(e,2,"0")}function vG(e,t){const n=t.get("modeling");t.get("eventBus").fire("elementTemplates.unlink",{element:e}),n.updateProperties(e,{"zeebe:modelerTemplate":null,"zeebe:modelerTemplateVersion":null,"zeebe:modelerTemplateIcon":null})}function bG(e,t,n){const i=n.get("elementTemplates");return n.get("eventBus").fire("elementTemplates.update",{element:e,newTemplate:t}),i.applyTemplate(e,t)}uG.$inject=["config.elementTemplates","eventBus","elementTemplates","moddle"];let OG=class extends js{constructor(e,t){super(t.get("eventBus")),this.postExecuted("shape.replace",(function(n){var i=n.context,r=Fr(i.oldShape),o=i.newShape,s=Fr(o);if(!r.modelerTemplate)return;const a=s.modelerTemplate,l=s.modelerTemplateVersion,c=e.get(a,l);if(!c)return void vG(o,t);const{appliesTo:p,elementType:u}=c;if(u)return void(Lr(o,u.value)&&!function(e,t){if(!Lr(e,"bpmn:Event"))return!1;const{eventDefinition:n}=t,i=Fr(e),r=i.get("eventDefinitions");if(!n)return 0!==r.length;return!Lr(r[0],n)}(o,u)||vG(o,t));p.reduce(((e,t)=>e||Lr(s,t)),!1)||vG(o,t)}))}};OG.$inject=["elementTemplates","injector"];let xG=class{constructor(e,t,n,i){this._bpmnFactory=e,this._bpmnReplace=t,this._commandStack=n,this._modeling=i}preExecute(e){let t=e.newTemplate,n=e.oldTemplate,i=e.element;this._updateZeebeModelerTemplate(i,t),this._updateZeebeModelerTemplateIcon(i,t),t&&(t=VW(i,t),i=e.element=this._updateElementType(i,t),this._updateProperties(i,n,t),this._updateZeebeTaskDefinition(i,n,t),this._updateZeebeInputOutputParameterProperties(i,n,t),this._updateZeebeTaskHeaderProperties(i,n,t),this._updateZeebePropertyProperties(i,n,t),this._updateMessageProperties(i,n,t),this._updateMessageZeebeSubscriptionProperties(i,n,t),this._updateZeebeModelerTemplateOnReferencedElement(i,n,t))}_getOrCreateExtensionElements(e,t=Fr(e)){const n=this._bpmnFactory,i=this._modeling;let r=t.get("extensionElements");return r||(r=n.create("bpmn:ExtensionElements",{values:[]}),r.$parent=t,i.updateModdleProperties(e,t,{extensionElements:r})),r}_updateZeebeModelerTemplate(e,t){this._modeling.updateProperties(e,{"zeebe:modelerTemplate":t&&t.id,"zeebe:modelerTemplateVersion":t&&t.version})}_updateZeebeModelerTemplateIcon(e,t){const n=this._modeling,i=t&&t.icon;n.updateProperties(e,{"zeebe:modelerTemplateIcon":i&&i.contents})}_updateProperties(e,t,n){const i=this._commandStack,r=n.properties.filter((e=>"property"===e.binding.type));if(!r.length)return;const o=Fr(e);r.forEach((n=>{const r=_G(t,n),s=n.binding.name,a=CW(n);let l={};EG(o,r,n)||(l[s]=a,i.execute("element.updateModdleProperties",{element:e,moddleElement:o,properties:l}))}))}_updateZeebeTaskDefinition(e,t,n){const i=this._bpmnFactory,r=this._commandStack,o=n.properties.filter((e=>"zeebe:taskDefinition:type"===e.binding.type));if(!o.length)return;const s=this._getOrCreateExtensionElements(e);o.forEach((n=>{const o=_G(t,n),a=o&&o.binding,l=a&&a.type,c=wG(s,n),p=CW(n),u=n.binding.type;if(c){if(!EG(c,o,n)){let t={};"zeebe:taskDefinition:type"!==l&&l||(t={type:p}),r.execute("element.updateModdleProperties",{element:e,moddleElement:c,properties:t})}}else{let t;"zeebe:taskDefinition:type"===u&&(t=DW(p,i)),r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{values:[...s.get("values"),t]}})}}))}_updateZeebeInputOutputParameterProperties(e,t,n){const i=this._bpmnFactory,r=this._commandStack,o=n.properties.filter((e=>{const t=e.binding.type;return"zeebe:input"===t||"zeebe:output"===t})),s=this._getOrCreateExtensionElements(e);let a=EW(s,"zeebe:IoMapping");if(!o.length){if(!a)return;r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{values:O(s.get("values"),a)}})}a||(a=i.create("zeebe:IoMapping"),r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{values:[...s.get("values"),a]}}));const l=a.get("zeebe:inputParameters")?a.get("zeebe:inputParameters").slice():[],c=a.get("zeebe:outputParameters")?a.get("zeebe:outputParameters").slice():[];let p;o.forEach((n=>{const o=_G(t,n),u=wG(s,n),h=CW(n),d=n.binding,f=d.type;let m,g;u?((qW(h,n)||EG(u,o,n))&&(Lr(u,"zeebe:Input")?kG(l,u):kG(c,u)),EG(u,o,n)||(g=Lr(u,"zeebe:Input")?{source:h}:{target:h},r.execute("element.updateModdleProperties",{element:e,moddleElement:u,properties:g}))):qW(h,n)&&("zeebe:input"===f?(p="inputParameters",m=MW(d,h,i)):(p="outputParameters",m=AW(d,h,i)),r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{[p]:[...a.get(p),m]}}))})),l.length&&r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{inputParameters:O(a.get("inputParameters"),(e=>l.includes(e)))}}),c.length&&r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{outputParameters:O(a.get("outputParameters"),(e=>c.includes(e)))}})}_updateZeebeTaskHeaderProperties(e,t,n){const i=this._bpmnFactory,r=this._commandStack,o=n.properties.filter((e=>"zeebe:taskHeader"===e.binding.type)),s=this._getOrCreateExtensionElements(e);let a=EW(s,"zeebe:TaskHeaders");if(!o.length){if(!a)return;r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{values:O(s.get("values"),a)}})}a||(a=i.create("zeebe:TaskHeaders"),r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{values:[...s.get("values"),a]}}));const l=a.get("zeebe:values")?a.get("zeebe:values").slice():[];o.forEach((n=>{const o=_G(t,n),c=wG(s,n),p=CW(n),u=n.binding;if(c){if(!EG(c,o,n)){const t={value:p};r.execute("element.updateModdleProperties",{element:e,moddleElement:c,properties:t})}kG(l,c)}else if(p){const t=RW(u,p,i);r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{values:[...a.get("values"),t]}})}})),l.length&&r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{values:O(a.get("values"),(e=>l.includes(e)))}})}_updateZeebePropertyProperties(e,t,n){const i=this._bpmnFactory,r=this._commandStack,o=n.properties.filter((e=>"zeebe:property"===e.binding.type)),s=this._getOrCreateExtensionElements(e);let a=EW(s,"zeebe:Properties");if(!o.length){if(!a)return;r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{values:O(s.get("values"),a)}})}a||(a=i.create("zeebe:Properties"),r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{values:[...s.get("values"),a]}}));const l=a.get("properties")?a.get("properties").slice():[];o.forEach((n=>{const o=_G(t,n),c=wG(s,n),p=CW(n),u=n.binding;if(c)(qW(p,n)||EG(c,o,n))&&kG(l,c),EG(c,o,n)||r.execute("element.updateModdleProperties",{element:e,moddleElement:c,properties:{value:p}});else if(qW(p,n)){const t=jW(u,p,i);r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{properties:[...a.get("properties"),t]}})}})),l.length&&r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{properties:O(a.get("properties"),(e=>l.includes(e)))}})}_updateMessageProperties(e,t,n){const i=n.properties.filter((e=>e.binding.type===fW));if(!i.length)return;const r=this._getOrCreateMessage(e,n);i.forEach((n=>{const i=_G(t,n),o=n.binding.name,s=CW(n),a=r;let l={};EG(a,i,n)||(l[o]=s,this._modeling.updateModdleProperties(e,a,l))}))}_updateMessageZeebeSubscriptionProperties(e,t,n){const i=n.properties.filter((e=>e.binding.type===mW));if(!i.length)return;const r=this._getOrCreateMessage(e,n),o=this._getOrCreateExtension(e,r,"zeebe:Subscription");i.forEach((n=>{const i=_G(t,n),r=n.binding.name,s=CW(n),a=o;let l={};EG(a,i,n)||(l[r]=s,this._modeling.updateModdleProperties(e,a,l))}))}_updateZeebeModelerTemplateOnReferencedElement(e,t,n){const i=$W(Fr(e));i&&_W(i)!==n.id&&this._modeling.updateModdleProperties(e,i,{"zeebe:modelerTemplate":n.id})}_getOrCreateExtension(e,t,n){const i=this._getOrCreateExtensionElements(e,t),r=EW(i,n);if(r)return r;const o=DF(n,{},t,this._bpmnFactory);return this._modeling.updateModdleProperties(e,i,{values:[...i.get("values"),o]}),o}_getOrCreateMessage(e,t){let n=Fr(e);Lr(n,"bpmn:Event")&&(n=n.get("eventDefinitions")[0]);let i=n.get("messageRef");return i||(i=this._bpmnFactory.create("bpmn:Message",{"zeebe:modelerTemplate":t.id}),this._modeling.updateModdleProperties(e,n,{messageRef:i})),i}_updateElementType(e,t){const n=t.elementType;if(!n)return e;const i={type:n.value};n.eventDefinition&&(i.eventDefinitionType=n.eventDefinition);return this._bpmnReplace.replaceElement(e,i)}};function wG(e,t){const n=Fr(e),i=t.binding,r=i.type;if("zeebe:taskDefinition:type"===r)return EW(n,"zeebe:TaskDefinition");if("zeebe:input"===r||"zeebe:output"===r){const e=EW(n,"zeebe:IoMapping");if(!e)return;return"zeebe:input"===r?g(e.get("zeebe:inputParameters"),(function(e){return e.get("zeebe:target")===i.name})):g(e.get("zeebe:outputParameters"),(function(e){return e.get("zeebe:source")===i.source}))}if("zeebe:taskHeader"===r){const e=EW(n,"zeebe:TaskHeaders");if(!e)return;return g(e.get("zeebe:values"),(function(e){return e.get("zeebe:key")===i.key}))}if("zeebe:property"===r){const e=EW(n,"zeebe:Properties");if(!e)return;return e.get("properties").find((e=>e.get("name")===i.name))}}function _G(e,t){if(!e)return;const n=e.properties,i=t.binding,r=i.name,o=i.type;return"property"===o?g(n,(function(e){const t=e.binding,n=t.name;return"property"===t.type&&n===r})):"zeebe:taskDefinition:type"===o?g(n,(function(e){return"zeebe:taskDefinition:type"===e.binding.type})):"zeebe:input"===o?g(n,(function(e){const t=e.binding,n=t.name;if("zeebe:input"===t.type)return n===r})):"zeebe:output"===o?g(n,(function(e){const t=e.binding;if("zeebe:output"===t.type)return t.source===i.source})):"zeebe:taskHeader"===o?g(n,(function(e){const t=e.binding;if("zeebe:taskHeader"===t.type)return t.key===i.key})):"zeebe:property"===o?n.find((e=>{const t=e.binding;if("zeebe:property"===t.type)return t.name===i.name})):o===fW?n.find((e=>{const t=e.binding;if(t.type===fW)return t.name===i.name})):o===mW?n.find((e=>{const t=e.binding;if(t.type===mW)return t.name===i.name})):void 0}function EG(e,t,n){if("Hidden"===n.type)return!1;if("Dropdown"===n.type){const t=PG(e,n);return n.choices&&n.choices.some((e=>e.value===t))}return t?function(e,t){const n=t.value;return PG(e,t)!==n}(e,t):!!PG(e,n)}function PG(e,t){const n=Fr(e),i=t.binding,r=i.name,o=i.type;return"property"===o?n.get(r):"zeebe:taskDefinition:type"===o?n.get("zeebe:type"):"zeebe:input"===o?n.get("zeebe:source"):"zeebe:output"===o?n.get("zeebe:target"):"zeebe:taskHeader"===o||"zeebe:property"===o?n.get("zeebe:value"):o===fW||o===mW?n.get(r):void 0}function kG(e,t){const n=e.indexOf(t);return s(n)||e.splice(n,1),e}function SG(e,t,n){e.registerHandler("propertiesPanel.zeebe.changeTemplate",xG),n.on(["commandStack.shape.create.postExecuted"],(function(n){const{context:{hints:i={},shape:r}}=n;!1!==i.createElementsBehavior&&$G(r,t,e)})),n.on(["commandStack.connection.create.postExecuted"],(function(n){const{context:{hints:i={},connection:r}}=n;!1!==i.createElementsBehavior&&$G(r,t,e)}))}xG.$inject=["bpmnFactory","bpmnReplace","commandStack","modeling"],SG.$inject=["commandStack","elementTemplates","eventBus"];var TG={__init__:[SG]};function $G(e,t,n){if(!t.get(e)&&t.getDefault(e)){const i="propertiesPanel.zeebe.changeTemplate",r={element:e,newTemplate:t.getDefault(e)};n.execute(i,r)}}class CG{static create(e,t){const{property:n}=t,{binding:i}=n,{name:r}=i,o=CW(n);Fr(e)[r]=o}}class MG{static create(e,t){const{property:n,bpmnFactory:i}=t,r=CW(n);BW(e,"zeebe:TaskDefinition",i).set("type",r)}}class AG{static create(e,t){const{property:n,bpmnFactory:i}=t,{binding:r}=n,o=CW(n),s=BW(e,"zeebe:IoMapping",i);if(!qW(o,n))return;const a=MW(r,o,i);a.$parent=s,s.get("inputParameters").push(a)}}class RG{static create(e,t){const{property:n,bpmnFactory:i}=t,{binding:r}=n,o=CW(n),s=BW(e,"zeebe:IoMapping",i);if(!qW(o,n))return;const a=AW(r,o,i);a.$parent=s,s.get("outputParameters").push(a)}}class DG{static create(e,t){const{property:n,bpmnFactory:i}=t,{binding:r}=n,o=CW(n),s=BW(e,"zeebe:TaskHeaders",i),a=RW(r,o,i);a.$parent=s,s.get("values").push(a)}}class jG{static create(e,t){const{property:n,bpmnFactory:i}=t,{binding:r}=n,o=CW(n),s=BW(e,"zeebe:Properties",i);if(!qW(o,n))return;const a=jW(r,o,i);a.$parent=s,s.get("properties").push(a)}}class qG{static create(e,t){const{bpmnFactory:n,property:i}=t,{binding:r}=i,{name:o}=r,s=CW(i);let a=Fr(e);Lr(a,"bpmn:Event")&&(a=a.get("eventDefinitions")[0]);let l=a.get("messageRef");l||(l=n.create("bpmn:Message",{"zeebe:modelerTemplate":_W(e)}),a.set("messageRef",l)),l.set(o,s)}}class BG{static create(e,t){const{bpmnFactory:n,property:i}=t,{binding:r}=i,{name:o}=r,s=CW(i);let a=Fr(e);Lr(a,"bpmn:Event")&&(a=a.get("eventDefinitions")[0]);let l=a.get("messageRef");l||(l=n.create("bpmn:Message",{"zeebe:modelerTemplate":_W(e)}),a.set("messageRef",l));const c=BW(l,"zeebe:Subscription",n);qW(s,i)&&c.set(o,s)}}class NG{constructor(e,t){this._bpmnFactory=e,this._elementFactory=t,this._providers={[lW]:CG,[hW]:MG,"zeebe:property":jG,[cW]:AG,[pW]:RG,[dW]:DG,[fW]:qG,[mW]:BG}}create(e){const{properties:t}=e,n=this._createShape(e);return this._setModelerTemplate(n,e),function(e){const{icon:t}=e;return!(!t||!t.contents)}(e)&&this._setModelerTemplateIcon(n,e),this._applyProperties(n,t),n}_createShape(e){const{appliesTo:t,elementType:n={}}=e,i=this._elementFactory,r={type:n.value||t[0]};n.eventDefinition&&(r.eventDefinitionType=n.eventDefinition);return i.createShape(r)}_ensureExtensionElements(e){const t=this._bpmnFactory,n=Fr(e);let i=n.get("extensionElements");return i||(i=t.create("bpmn:ExtensionElements",{values:[]}),i.$parent=n,n.set("extensionElements",i)),i}_setModelerTemplate(e,t){const{id:n,version:i}=t,r=Fr(e);r.set("zeebe:modelerTemplate",n),r.set("zeebe:modelerTemplateVersion",i)}_setModelerTemplateIcon(e,t){const{icon:n}=t,{contents:i}=n;Fr(e).set("zeebe:modelerTemplateIcon",i)}_applyProperties(e,t){const n=[];t.forEach((i=>this._applyProperty(e,i,t,n)))}_applyProperty(e,t,n,i){if(i.includes(t))return;const r=function(e,t){const{condition:n}=e;if(!n)return[];const i=function(e,t){return g(e,(function(e){return e.id===t}))}(t,n.property);if(i)return[i];return[]}(t,n);r.forEach((t=>this._applyProperty(e,t,n,i))),FW(e,n,t)&&this._bindProperty(t,e),i.push(t)}_bindProperty(e,t){const{binding:n}=e,{type:i}=n;this._providers[i].create(t,{property:e,bpmnFactory:this._bpmnFactory})}}NG.$inject=["bpmnFactory","elementFactory"];var zG={__init__:["templateElementFactory"],templateElementFactory:["type",NG]};function QG(e={}){const{getTemplateId:t=JW,unlinkTemplate:n=hG,updateTemplate:i=fG}=e;return function(e){const{id:r,label:o,element:s,entries:a=[]}=e,[l,c]=Kz(["groups",r,"open"],!1),p=!a.length;return O_("div",{class:"bio-properties-panel-group bio-properties-panel-templates-group","data-group-id":"group-"+r,children:[O_("div",{class:w_("bio-properties-panel-group-header",{empty:p,open:l&&!p}),onClick:()=>!p&&c(!l),children:[O_("div",{title:o,class:"bio-properties-panel-group-header-title",children:o}),O_("div",{class:"bio-properties-panel-group-header-buttons",children:[O_(IG,{element:s,getTemplateId:t,unlinkTemplate:n,updateTemplate:i}),!p&&O_(XG,{open:l})]})]}),O_("div",{class:w_("bio-properties-panel-group-entries",{open:l&&!p}),children:a.map((e=>{const{component:t,id:n}=e;return iw(t,{...e,key:n,element:s})}))})]})}}function XG({open:e}){return O_(hQ,{title:"Toggle section",class:"bio-properties-panel-arrow",children:O_(Qz,{class:e?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})})}function IG({element:e,getTemplateId:t,unlinkTemplate:n,updateTemplate:i}){const r=function(e,t,n){const i=n(t),r=e.get(t);if(!i)return{type:"NO_TEMPLATE"};if(!r)return{type:"UNKNOWN_TEMPLATE",templateId:i};const o=e.getLatest(i,{deprecated:!0})[0];if(o!==r)return{type:"OUTDATED_TEMPLATE",template:r,newerTemplate:o};return{type:"KNOWN_TEMPLATE",template:r}}(LI("elementTemplates"),e,t);return"NO_TEMPLATE"===r.type?O_(LG,{element:e}):"KNOWN_TEMPLATE"===r.type?O_(VG,{element:e,unlinkTemplate:n}):"UNKNOWN_TEMPLATE"===r.type?O_(UG,{element:e,unlinkTemplate:n}):"OUTDATED_TEMPLATE"===r.type?O_(YG,{element:e,templateState:r,unlinkTemplate:n,updateTemplate:i}):void 0}function LG({element:e}){const t=LI("translate"),n=LI("eventBus");return O_(hQ,{title:"Select a template",class:"bio-properties-panel-select-template-button",onClick:()=>n.fire("elementTemplates.select",{element:e}),children:[O_(Xz,{}),O_("span",{children:t("Select")})]})}function VG({element:e,unlinkTemplate:t}){const n=LI("translate"),i=LI("injector"),r=[{entry:n("Unlink"),action:()=>t(e,i)},{entry:O_(FG,{}),action:()=>dG(e,i)}];return O_(pQ,{menuItems:r,class:"bio-properties-panel-applied-template-button",children:O_(hQ,{children:[O_("span",{children:n("Applied")}),O_(Qz,{class:"bio-properties-panel-arrow-down"})]})})}function FG(){return O_("span",{class:"bio-properties-panel-remove-template",children:LI("translate")("Remove")})}function UG({element:e,unlinkTemplate:t}){const n=LI("translate"),i=LI("injector"),r=[{entry:O_(HG,{})},{separator:!0},{entry:n("Unlink"),action:()=>t(e,i)},{entry:O_(FG,{}),action:()=>dG(e,i)}];return O_(pQ,{menuItems:r,class:"bio-properties-panel-template-not-found",children:O_(hQ,{children:[O_("span",{children:n("Not found")}),O_(Qz,{class:"bio-properties-panel-arrow-down"})]})})}function HG(){return O_("div",{class:"bio-properties-panel-template-not-found-text",children:LI("translate")("The template applied was not found. Therefore, its properties cannot be shown. Unlink to access the data.")})}function YG({element:e,templateState:t,unlinkTemplate:n,updateTemplate:i}){const{newerTemplate:r}=t,o=LI("translate"),s=LI("injector"),a=[{entry:O_(WG,{newerTemplate:r})},{separator:!0},{entry:o("Update"),action:()=>i(e,r,s)},{entry:o("Unlink"),action:()=>n(e,s)},{entry:O_(FG,{}),action:()=>dG(e,s)}];return O_(pQ,{menuItems:a,class:"bio-properties-panel-template-update-available",children:O_(hQ,{children:[O_("span",{children:o("Update available")}),O_(Qz,{class:"bio-properties-panel-arrow-down"})]})})}function WG({newerTemplate:e}){return O_("div",{class:"bio-properties-panel-template-update-available-text",children:LI("translate")("A new version of the template is available: {templateVersion}",{templateVersion:mG(e)})})}function GG({element:e,elementTemplates:t}){const n=t.get(e);return n?[{id:"template-name",component:ZG,template:n},{id:"template-version",component:KG,template:n},{id:"template-description",component:JG,template:n}].filter((e=>!!e.component)):[]}function ZG({id:e,template:t}){return O_(eZ,{id:e,label:LI("translate")("Name"),content:t.name})}function KG({id:e,template:t}){const n=LI("translate"),i=mG(t);return i?O_(eZ,{id:e,label:n("Version"),content:i}):null}function JG({id:e,template:t}){const n=LI("translate"),{description:i}=t;return i?O_(eZ,{id:e,label:n("Description"),content:t.description}):null}function eZ({id:e,label:t,content:n}){return O_("div",{"data-entry-id":e,class:"bio-properties-panel-entry bio-properties-panel-text-entry",children:[O_("span",{class:"bio-properties-panel-label",children:t}),O_("span",{class:"bio-properties-panel-text-entry__content",children:n})]})}var tZ,nZ={};function iZ(e,t,n){if(3===e.nodeType){var i="textContent"in e?e.textContent:e.nodeValue||"";if(!1!==iZ.options.trim){var r=0===t||t===n.length-1;if((!(i=i.match(/^[\s\n]+$/g)&&"all"!==iZ.options.trim?" ":i.replace(/(^[\s\n]+|[\s\n]+$)/g,"all"===iZ.options.trim||r?"":" "))||" "===i)&&n.length>1&&r)return null}return i}if(1!==e.nodeType)return null;var o=String(e.nodeName).toLowerCase();if("script"===o&&!iZ.options.allowScripts)return null;var s,a,l=iZ.h(o,function(e){var t=e&&e.length;if(!t)return null;for(var n={},i=0;i<t;i++){var r=e[i],o=r.name,s=r.value;"on"===o.substring(0,2)&&iZ.options.allowEvents&&(s=new Function(s)),n[o]=s}return n}(e.attributes),(a=(s=e.childNodes)&&Array.prototype.map.call(s,iZ).filter(oZ))&&a.length?a:null);return iZ.visitor&&iZ.visitor(l),l}var rZ,oZ=function(e){return e},sZ={};function aZ(e){var t=(e.type||"").toLowerCase(),n=aZ.map;n&&n.hasOwnProperty(t)?(e.type=n[t],e.props=Object.keys(e.props||{}).reduce((function(t,n){var i;return t[(i=n,i.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=e.props[n],t}),{})):e.type=t.replace(/[^a-z0-9-]/i,"")}var lZ=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.setReviver=function(e){rZ=e},t.prototype.shouldComponentUpdate=function(e){var t=this.props;return e.wrap!==t.wrap||e.type!==t.type||e.markup!==t.markup},t.prototype.setComponents=function(e){if(this.map={},e)for(var t in e)if(e.hasOwnProperty(t)){var n=t.replace(/([A-Z]+)([A-Z][a-z0-9])|([a-z0-9]+)([A-Z])/g,"$1$3-$2$4").toLowerCase();this.map[n]=e[t]}},t.prototype.render=function(e){var t=e.wrap;void 0===t&&(t=!0);var n,i=e.type,r=e.markup,o=e.components,s=e.reviver,a=e.onError,l=e["allow-scripts"],c=e["allow-events"],p=e.trim,u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&-1===t.indexOf(i)&&(n[i]=e[i]);return n}(e,["wrap","type","markup","components","reviver","onError","allow-scripts","allow-events","trim"]),h=s||this.reviver||this.constructor.prototype.reviver||rZ||iw;this.setComponents(o);var d={allowScripts:l,allowEvents:c,trim:p};try{n=function(e,t,n,i,r){var o=function(e,t){var n,i,r,o,s="html"===t?"text/html":"application/xml";"html"===t?(o="body",r="<!DOCTYPE html>\n<html><body>"+e+"</body></html>"):(o="xml",r='<?xml version="1.0" encoding="UTF-8"?>\n<xml>'+e+"</xml>");try{n=(new DOMParser).parseFromString(r,s)}catch(e){i=e}if(n||"html"!==t||((n=tZ||(tZ=function(){if(document.implementation&&document.implementation.createHTMLDocument)return document.implementation.createHTMLDocument("");var e=document.createElement("iframe");return e.style.cssText="position:absolute; left:0; top:-999em; width:1px; height:1px; overflow:hidden;",e.setAttribute("sandbox","allow-forms"),document.body.appendChild(e),e.contentWindow.document}())).open(),n.write(r),n.close()),n){var a=n.getElementsByTagName(o)[0],l=a.firstChild;return e&&!l&&(a.error="Document parse failed."),l&&"parsererror"===String(l.nodeName).toLowerCase()&&(l.removeChild(l.firstChild),l.removeChild(l.lastChild),a.error=l.textContent||l.nodeValue||i||"Unknown error",a.removeChild(l)),a}}(e,t);if(o&&o.error)throw new Error(o.error);var s=o&&o.body||o;aZ.map=i||sZ;var a=s&&function(e,t,n,i){return iZ.visitor=t,iZ.h=n,iZ.options=i||nZ,iZ(e)}(s,aZ,n,r);return aZ.map=null,a&&a.props&&a.props.children||null}(r,i,h,this.map,d)}catch(e){a?a({error:e}):"undefined"!=typeof console&&console.error&&console.error("preact-markup: "+e)}if(!1===t)return n||null;var f=u.hasOwnProperty("className")?"className":"class",m=u[f];return m?m.splice?m.splice(0,0,"markup"):"string"==typeof m?u[f]+=" markup":"object"==typeof m&&(m.markup=!0):u[f]="markup",h("div",u,n||null)},t}(sw);const cZ=3,pZ=1,uZ=["h1","h2","h3","h4","h5","span","em","a","p","div","ul","ol","li","hr","blockquote","img","pre","code","br","strong"],hZ=["align","alt","class","href","id","name","rel","target","src"],dZ=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,fZ=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g,mZ=document.createElement("form");function gZ(e){const t=(new DOMParser).parseFromString(`<!DOCTYPE html>\n<html><body><div>${e}`,"text/html");t.normalize();const n=t.body.firstChild;return n?(yZ(n),(new XMLSerializer).serializeToString(n)):""}function yZ(e){if(e.nodeType===cZ)return;if(e.nodeType!==pZ)return e.remove();const t=e.tagName.toLowerCase();if(!uZ.includes(t))return e.remove();const n=e.attributes;for(let i=n.length;i--;){const r=n[i],o=r.name,s=o.toLowerCase(),a=r.value.trim();e.removeAttribute(o);vZ(t,s,a)&&e.setAttribute(o,a)}"a"===t&&"_blank"===e.getAttribute("target")&&"noopener"!==e.getAttribute("rel")&&e.setAttribute("rel","noopener");for(let t=e.childNodes.length;t--;)yZ(e.childNodes[t])}function vZ(e,t,n){return!!hZ.includes(t)&&(("id"!==t&&"name"!==t||!(n in document)&&!(n in mZ))&&(("target"!==t||"_blank"===n)&&!("href"===t&&!dZ.test(n.replace(fZ,"")))))}function bZ(e){const{description:t}=e;return t&&O_(lZ,{markup:gZ(t),trim:!1})}const OZ={id:"ElementTemplates__CustomProperties",label:"Custom properties"};function xZ(e){const{element:t,elementTemplate:n}=e,i=[],{id:r,properties:o,groups:s}=n,a=function(e){return T(e,"group")}(o),l=[];return b(a,((e,n)=>{const o=function(e,t){return g(e,(e=>e.id===t))}(s,n);if(!o)return l.push(...e);wZ(i,{element:t,id:`ElementTemplates__CustomProperties-${n}`,label:o.label,properties:e,templateId:`${r}-${n}`})})),l.length&&wZ(i,{...OZ,element:t,properties:l,templateId:r}),i}function wZ(e,t){const{element:n,id:i,label:r,properties:o,templateId:s}=t,a={id:i,label:r,component:iQ,entries:[],shouldOpen:!0};o.forEach(((e,t)=>{const n=function(e,t,n){let{type:i,feel:r}=n;i||(i=function(e){const{binding:t}=e,{type:n}=t;if([lW,hW,cW,pW,uW,dW].includes(n))return"String"}(n));if("Boolean"===i)return{id:e,component:_Z,isEdited:_Q,property:n};if("Dropdown"===i)return{id:e,component:EZ,isEdited:LQ,property:n};if("String"===i)return r?{id:e,component:kZ,isEdited:zQ,property:n}:{id:e,component:SZ,isEdited:KQ,property:n};if("Text"===i)return r?{id:e,component:PZ,isEdited:zQ,property:n}:{id:e,component:TZ,isEdited:YQ,property:n}}(`custom-entry-${s}-${t}`,0,e);n&&a.entries.push(n)})),a.entries.length&&e.push(a)}function _Z(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:s}=i,a=LI("bpmnFactory"),l=LI("commandStack");return wQ({element:t,getValue:$Z(t,i),id:n,label:s,description:bZ({description:r}),setValue:CZ(a,l,t,i),disabled:!1===o})}function EZ(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:s}=i,a=LI("bpmnFactory"),l=LI("commandStack"),c=LI("translate");return IQ({element:t,id:n,label:s,getOptions:()=>{const{choices:e,optional:t}=i;let n=[];return n=e.map((({name:e,value:t})=>({label:e,value:t}))),t&&(n=[{label:"",value:void 0},...n]),n},description:bZ({description:r}),getValue:$Z(t,i),setValue:CZ(a,l,t,i),validate:MZ(c,i),disabled:!1===o})}function PZ(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:s,feel:a}=i,l=LI("bpmnFactory"),c=LI("commandStack"),p=LI("debounceInput"),u=LI("translate");return(AZ(i)?nH:rH)({debounce:p,element:t,getValue:$Z(t,i),id:n,label:s,feel:a,description:bZ({description:r}),setValue:CZ(l,c,t,i),validate:MZ(u,i),disabled:!1===o})}function kZ(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:s,feel:a}=i,l=LI("bpmnFactory"),c=LI("commandStack"),p=LI("debounceInput"),u=LI("translate");return(AZ(i)?tH:iH)({debounce:p,element:t,getValue:$Z(t,i),id:n,label:s,feel:a,description:bZ({description:r}),setValue:CZ(l,c,t,i),validate:MZ(u,i),disabled:!1===o})}function SZ(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:s,feel:a}=i,l=LI("bpmnFactory"),c=LI("commandStack"),p=LI("debounceInput"),u=LI("translate");return ZQ({debounce:p,element:t,getValue:$Z(t,i),id:n,label:s,feel:a,description:bZ({description:r}),setValue:CZ(l,c,t,i),validate:MZ(u,i),disabled:!1===o})}function TZ(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:s,feel:a,language:l}=i,c=LI("bpmnFactory"),p=LI("commandStack"),u=LI("debounceInput"),h=LI("translate");return HQ({debounce:u,element:t,id:n,label:s,feel:a,monospace:!!l,autoResize:!0,description:bZ({description:r}),getValue:$Z(t,i),setValue:CZ(c,p,t,i),validate:MZ(h,i),disabled:!1===o})}function $Z(e,t){return function(){return zW(e,t)}}function CZ(e,t,n,i){return function(r){return XW(e,t,n,i,r)}}function MZ(e,t){return function(n){const{constraints:i={}}=t,{maxLength:r,minLength:o,notEmpty:s}=i;if(s&&function(e){if("string"==typeof e)return!e.trim().length;return void 0===e}(n))return e("Must not be empty.");if(r&&(n||"").length>r)return e("Must have max length {maxLength}.",{maxLength:r});if(o&&(n||"").length<o)return e("Must have min length {minLength}.",{minLength:o});let{pattern:a}=i;if(a){let t;if(d(a)||(t=a.message,a=a.value),!function(e,t){return new RegExp(t).test(e)}(n,a))return t||e("Must match pattern {pattern}.",{pattern:a})}}}function AZ(e){return["zeebe:property","zeebe:taskHeader"].includes(e.binding.type)}const RZ="",DZ="create-new";function jZ(e){const{element:t}=e;return function(e){return Lr(e,"bpmn:ReceiveTask")||Vr(e,["bpmn:StartEvent","bpmn:EndEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent"])&&!!MU(e)}(t)?[{id:"messageRef",component:qZ,isEdited:LQ}]:[]}function qZ(e){const{element:t}=e,n=LI("bpmnFactory"),i=LI("modeling"),r=LI("translate"),o=MU(t);return lF({element:t,id:"messageRef",label:r("Global message reference"),autoFocusEntry:"messageName",getValue:()=>{const e=function(e){const t=MU(e);return t&&t.get("messageRef")}(t);return e?e.get("id"):RZ},setValue:e=>{const r=qF(o);let s;if(e===DZ){const t=jF("Message_");s=DF("bpmn:Message",{id:t,name:t},r,n),e=s.get("id")}return s=NF(o,"bpmn:Message",e)||s,i.updateModdleProperties(t,o,{messageRef:s})},getOptions:()=>{let e=[{value:RZ,label:r("<none>")},{value:DZ,label:r("Create new ...")}];const n=function(e){return e.filter((e=>!e.get("zeebe:modelerTemplate")))}(BF(Fr(t),"bpmn:Message"));var i;return(i=n,M(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}let BZ=class{constructor(e,t,n){t.registerProvider(300,this),this._elementTemplates=e,this._injector=n}getGroups(e){return t=>{if(function(e,t){const n=function(e,t){return e.find((e=>e.id===t))}(e,"message");if(!n)return;n.entries=(i=n.entries,r=jZ({element:t}),i.map((e=>r.find((t=>t.id===e.id))||e)));var i,r}(t,e),!this._shouldShowTemplateProperties(e))return t;NZ("documentation",t=t.slice(),[{element:e,id:"ElementTemplates__Template",label:"Template",component:QG({getTemplateId:_W,unlinkTemplate:vG,updateTemplate:bG}),entries:GG({element:e,elementTemplates:this._elementTemplates})}]);let n=this._elementTemplates.get(e);if(n){n=VW(e,n);NZ("ElementTemplates__Template",t,[].concat(xZ({element:e,elementTemplate:n})))}return _W(e)&&(t=function(e,t){if(!e.entriesVisible)return t.filter((e=>"general"===e.id||e.id.startsWith("ElementTemplates__")));return t}(n||{},t)),t}}_shouldShowTemplateProperties(e){return _W(e)||this._elementTemplates.getAll(e).length}};function NZ(e,t,n){const i=t.findIndex((t=>t.id===e));-1!==i?t.splice(i+1,0,...n):t.unshift(...n)}BZ.$inject=["elementTemplates","propertiesPanel","injector"];class zZ extends js{constructor(e,t,n,i){super(e),this._eventBus=e,this._elementTemplates=t,this._commandStack=n,this._bpmnFactory=i,this.postExecute(["element.updateProperties","element.updateModdleProperties"],this._updatePropertiesOrder,!0,this)}_updatePropertiesOrder(e){const{element:t}=e,n=this._elementTemplates.get(t),i=t.businessObject,r=[];if(!n)return;const o=VW(t,n).properties,s=EW(i,"zeebe:Properties");s&&this._updateZeebePropertiesOrder(s,o,r,e);const a=EW(i,"zeebe:IoMapping");a&&(this._updateInputOrder(a,o,r,e),this._updateOutputOrder(a,o,r,e));const l=EW(i,"zeebe:TaskHeaders");if(l&&this._updateTaskHeadersOrder(l,o,r,e),r.length){const e=r.filter((e=>null!==e));e.length&&this._commandStack.execute("properties-panel.multi-command-executor",e)}else;}_updateZeebePropertiesOrder(e,t,n,i){const r=e.get("properties");if(r.length<1)return;let o=[...r];IZ(o,((e,t)=>e.findIndex((e=>"zeebe:property"==e.binding.type&&e.binding.name===t.get("name")))),t),XZ(o,r)||n.push({cmd:"element.updateModdleProperties",context:{...i,moddleElement:e,properties:{properties:o}}})}_updateInputOrder(e,t,n,i){const r=e.get("inputParameters");if(r.length<1)return;let o=[...r];IZ(o,((e,t)=>e.findIndex((e=>"zeebe:input"==e.binding.type&&e.binding.name===t.get("target")))),t),XZ(o,r)||n.push({cmd:"element.updateModdleProperties",context:{...i,moddleElement:e,properties:{inputParameters:o}}})}_updateOutputOrder(e,t,n,i){const r=e.get("outputParameters");if(r.length<1)return;let o=[...r];IZ(o,((e,t)=>e.findIndex((e=>"zeebe:output"==e.binding.type&&e.binding.source===t.get("source")))),t),XZ(o,r)||n.push({cmd:"element.updateModdleProperties",context:{...i,moddleElement:e,properties:{outputParameters:o}}})}_updateTaskHeadersOrder(e,t,n,i){const r=e.get("zeebe:values");if(r.length<1)return;let o=[...r];IZ(o,((e,t)=>e.findIndex((e=>"zeebe:taskHeader"==e.binding.type&&e.binding.key===t.get("key")))),t),XZ(o,r)||n.push({cmd:"element.updateModdleProperties",context:{...i,moddleElement:e,properties:{values:o}}})}}function QZ(e,t){if(p(t)){return Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{})}return t}function XZ(e,t){return e.every(((e,n)=>function(e,t){return JSON.stringify(e,QZ)===JSON.stringify(t,QZ)}(e,t[n])))}function IZ(e,t,n){return e.sort(((e,i)=>t(n,e)-t(n,i)))}zZ.$inject=["eventBus","elementTemplates","commandStack","bpmnFactory"];class LZ extends js{constructor(e,t,n,i,r,o,s){super(e),this._eventBus=e,this._elementTemplates=t,this._modeling=n,this._canvas=i,this._bpmnjs=r,this.postExecuted(["element.updateProperties","element.updateModdleProperties"],this._handlePropertiesUpdate,!0,this),this.postExecuted("shape.replace",this._handleReplacement,!0,this),this.postExecuted("shape.delete",this._handleRemoval,!0,this),e.on("copyPaste.pasteElement",(function(e){const{referencedRootElement:t}=e.descriptor;t&&_W(t)&&(e.descriptor.referencedRootElement=o.copyElement(t,s.create(t.$type)))}))}_handlePropertiesUpdate(e){const{element:t,properties:n}=e;if(!VZ(t))return;if(!(xW in n)||d(n[xW]))return;const i=$W(Fr(t));i&&_W(i)&&this._modeling.updateModdleProperties(t,i,{[xW]:null})}_handleReplacement(e){const{oldShape:t,newShape:n}=e,i=_W(t),r=_W(n);if(!VZ(t)||!i)return;const o=$W(Fr(t));o&&_W(o)&&(VZ(n)&&r?this._addMessage(n,o):this._removeRootElement(o))}_handleRemoval(e){const{shape:t}=e;if("label"===t.type)return;if(!VZ(t))return;if(!_W(t))return;const n=$W(Fr(t));n&&_W(n)&&this._removeRootElement(n)}_removeRootElement(e){const t=this._canvas.getRootElement(),n=this._bpmnjs.getDefinitions(),i=n.get("rootElements");this._modeling.updateModdleProperties(t,n,{rootElements:i.filter((t=>t!==e))})}_addMessage(e,t){const n=function(e){const t=Fr(e);if(Lr(t,"bpmn:Event"))return t.get("eventDefinitions")[0];return t}(e);this._modeling.updateModdleProperties(e,n,{messageRef:t})}}function VZ(e){return Vr(e,["bpmn:ReceiveTask","bpmn:SendTask","bpmn:Event"])}LZ.$inject=["eventBus","elementTemplates","modeling","canvas","bpmnjs","moddleCopy","bpmnFactory"];class FZ extends js{constructor(e,t,n,i,r){super(e),this._eventBus=e,this._elementTemplates=t,this._modeling=n,this.preExecute("shape.create",(e=>{const n=e.shape,o=t.get(n);if(!o)return;const s=o.properties.filter((e=>e.generatedValue));s.forEach((e=>{if(!zW(n,e))return;const t=CW(e);XW(r,i,n,e,t)}))}),!0)}}FZ.$inject=["eventBus","elementTemplates","modeling","commandStack","bpmnFactory"];var UZ={__depends__:[TG,zG,Go,aW],__init__:["elementTemplatesLoader","replaceBehavior","elementTemplatesPropertiesProvider","elementTemplatesConditionChecker","generatedValueBehavior","referencedElementBehavior","updateTemplatePropertiesOrder"],elementTemplates:["type",tG],elementTemplatesLoader:["type",uG],replaceBehavior:["type",OG],elementTemplatesPropertiesProvider:["type",BZ],elementTemplatesConditionChecker:["type",HW],generatedValueBehavior:["type",FZ],referencedElementBehavior:["type",LZ],updateTemplatePropertiesOrder:["type",zZ]};(class extends js{constructor(e,t){super(t.get("eventBus")),this.postExecuted("shape.replace",(function(n){var i=n.context,r=Fr(i.oldShape),o=i.newShape,s=Fr(o);if(!r.modelerTemplate)return;const a=s.modelerTemplate,l=s.modelerTemplateVersion,c=e.get(a,l);if(!c)return void hG(o,t);const{appliesTo:p,elementType:u}=c;if(u)return void(Lr(o,u.value)||hG(o,t));p.reduce(((e,t)=>e||Lr(s,t)),!1)||hG(o,t)}))}}).$inject=["elementTemplates","injector"];const HZ={assignmentDefinitionAssignee:e=>{const t=LI("translate");return O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/user-tasks/#assignments",target:"_blank",rel:"noopener",title:t("User task documentation"),children:t("How to configure a user task")})},conditionExpression:e=>{const t=LI("translate");return O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/exclusive-gateways/#conditions",target:"_blank",rel:"noopener",title:t("Conditions documentation"),children:t("How to define conditions")})},decisionId:e=>{const t=LI("translate");return O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/business-rule-tasks/#defining-a-task",target:"_blank",rel:"noopener",title:t("Business rule task documentation"),children:t("How to configure a business rule task")})},formType:e=>{const t=LI("translate");return O_("a",{href:"https://docs.camunda.io/docs/guides/utilizing-forms/#connect-your-form-to-a-bpmn-diagram",target:"_blank",rel:"noopener",title:t("User task form documentation"),children:t("How to link a form")})},messageSubscriptionCorrelationKey:e=>{const t=LI("translate");return Lr(e,"bpmn:ReceiveTask")?O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/receive-tasks/#messages",target:"_blank",rel:"noopener",title:t("Receive task documentation"),children:t("How to configure a receive task")}):O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#messages",target:"_blank",rel:"noopener",title:t("Message event documentation"),children:t("How to configure a message event")})},messageName:e=>{const t=LI("translate");if(Lr(e,"bpmn:StartEvent")&&!function(e){const t=Fr(e),n=t.$parent;return Lr(n,"bpmn:SubProcess")&&n.triggeredByEvent}(e))return O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#messages",target:"_blank",rel:"noopener",title:t("Message event documentation"),children:t("How to configure a message event")})},targetProcessId:e=>{const t=LI("translate");return O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/call-activities/",target:"_blank",rel:"noopener",title:t("Call activity documentation"),children:t("How to call another process")})},taskDefinitionType:e=>{const t=LI("translate");return Lr(e,"bpmn:ServiceTask")?O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/service-tasks/#task-definition",target:"_blank",rel:"noopener",title:t("Service task documentation"),children:t("How to configure a service task")}):Lr(e,"bpmn:BusinessRuleTask")?O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/business-rule-tasks/#defining-a-task",target:"_blank",rel:"noopener",title:t("Business rule task documentation"),children:t("How to configure a business rule task")}):Lr(e,"bpmn:ScriptTask")?O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/script-tasks/#defining-a-task",target:"_blank",rel:"noopener",title:t("Script task documentation"),children:t("How to configure a script task")}):Lr(e,"bpmn:SendTask")?O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/send-tasks/#defining-a-task",target:"_blank",rel:"noopener",title:t("Send task documentation"),children:t("How to configure a send task")}):Lr(e,"bpmn:ThrowEvent")?O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#message-throw-events",target:"_blank",rel:"noopener",title:t("Message throw event documentation"),children:t("How to configure a message throw event")}):void 0},"multiInstance-inputCollection":e=>{const t=LI("translate");return O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/multi-instance/#defining-the-collection-to-iterate-over",target:"_blank",rel:"noopener",title:t("Multi instance documentation"),children:t("How to configure a multi instance activity")})},errorCode:e=>{const t=LI("translate");return O_("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/error-events/#defining-the-error",target:"_blank",rel:"noopener",title:t("Error event documentation"),children:t("How to configure an error event")})}};function YZ(e={}){dx.call(this,e)}function WZ(e,t=undefined){const n=Fr(e).get("extensionElements");if(!n)return[];const i=n.get("values");return i&&i.length?t?i.filter((e=>Lr(e,t))):i:[]}function GZ(e,t,n,i){c(n)||(n=[n]);const r=t.get("extensionElements"),o=r.get("values").filter((e=>!n.includes(e)));i.execute("element.updateModdleProperties",{element:e,moddleElement:r,properties:{values:o}})}e(YZ,dx),YZ.prototype.getModules=function(e={}){return[...dx.prototype.getModules.call(this,e),e.disableAdjustOrigin?Qx:Vx,e.disableGrid?{}:Rx]},YZ.prototype._extensionModules=[$x,Zx,aF,GU],YZ.prototype._modules=[].concat(dx.prototype._modules,YZ.prototype._extensionModules);class ZZ extends js{constructor(e,t){super(t),this.preExecute("element.updateModdleProperties",5e3,(function(e){const{element:t,moddleElement:n,properties:i}=e;if(!Lr(t,"bpmn:BusinessRuleTask")||!Lr(n,"bpmn:ExtensionElements")||!i.values)return;const r=KZ(t),o=JZ(t);r&&!o&&i.values.find((e=>Lr(e,"zeebe:CalledDecision")))&&i.values.find((e=>Lr(e,"zeebe:TaskDefinition")))&&(i.values=O(i.values,r))}),!0),this.preExecute("element.updateModdleProperties",5e3,(function(e){const{element:t,moddleElement:n,properties:i}=e;if(!Lr(t,"bpmn:BusinessRuleTask")||!Lr(n,"bpmn:ExtensionElements")||!i.values)return;const r=KZ(t),o=JZ(t),s=function(e){const t=Fr(e);return WZ(t,"zeebe:TaskHeaders")[0]}(t);!r&&(o||s)&&i.values.find((e=>Lr(e,"zeebe:CalledDecision")))&&i.values.find((e=>Lr(e,"zeebe:TaskDefinition")||Lr(e,"zeebe:TaskHeaders")))&&(i.values=O(i.values,(e=>e===o||e===s)))}),!0)}}function KZ(e){return WZ(Fr(e),"zeebe:CalledDecision")[0]}function JZ(e){return WZ(Fr(e),"zeebe:TaskDefinition")[0]}function eK(e,t){const n=Fr(t);switch(e){case"timeDate":return Vr(t,["bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent","bpmn:StartEvent"]);case"timeCycle":return!((!Lr(t,"bpmn:StartEvent")||nK(n))&&tK(n))||!(!Lr(t,"bpmn:BoundaryEvent")||tK(n));case"timeDuration":return!!Vr(t,["bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent"])||!(!Lr(t,"bpmn:StartEvent")||!nK(n));default:return!1}}function tK(e){return Lr(e,"bpmn:BoundaryEvent")?!1!==e.get("cancelActivity"):!1!==e.get("isInterrupting")}function nK(e){const t=e.$parent;return t&&Lr(t,"bpmn:SubProcess")&&t.get("triggeredByEvent")}ZZ.$inject=["commandStack","eventBus"];class iK extends js{constructor(e,t){super(e),this.postExecuted(["shape.move","shape.replace","element.updateProperties","element.updateModdleProperties"],(e=>{const n=e.shape||e.newShape||e.element;if(n.labelTarget)return;if(!Lr(n,"bpmn:Event"))return;const i=function(e){return Fr(e).get("eventDefinitions").find((e=>Lr(e,"bpmn:TimerEventDefinition")))}(n);if(!i)return;const r={};["timeCycle","timeDate","timeDuration"].forEach((e=>{i.get(e)&&!eK(e,n)&&(r[e]=void 0)})),Object.keys(r).length&&t.updateModdleProperties(n,i,r)}),!0)}}iK.$inject=["eventBus","modeling"];const rK="*",oK=["timeCycle","timeDate","timeDuration"],sK=["zeebe:Input","zeebe:LoopCharacteristics","zeebe:TaskDefinition","zeebe:TaskHeaders","zeebe:Subscription"];class aK{constructor(e){e.on("moddleCopy.canCopyProperty",(e=>{const{parent:t,property:n,propertyName:i}=e;return this.canCopyProperty(n,t,i)}))}canCopyProperty(e,t,n){return!(p(e)&&!function(e,t){const n=e.$type&&e.$model.getTypeDescriptor(e.$type),i=n&&n.meta&&n.meta.allowedIn;if(!i||function(e){return-1!==e.indexOf(rK)}(i))return!0;return _(i,(function(e){return lK(t,e)}))}(e,t))&&(!!this.canHostServiceTaskLikeProperties(e,t)&&(!!this.canHostTimerExpression(e,t,n)&&void 0))}canHostServiceTaskLikeProperties(e,t){if(function(e){return sK.some((t=>Lr(e,t)))}(e)){const e=lK(t,"bpmn:IntermediateThrowEvent")||lK(t,"bpmn:EndEvent");if(e)return function(e){const t=e.get("eventDefinitions");return t.some((e=>Lr(e,"bpmn:MessageEventDefinition")))}(e)}return!0}canHostTimerExpression(e,t,n){return!Lr(t,"bpmn:TimerEventDefinition")||!oK.includes(n)||eK(n,t.$parent)}}function lK(e,t){return t?Lr(e,t)?e:e.$parent?lK(e.$parent,t):void 0:e.$parent}function cK(e,t,n,i){var r=i.create(e,t);return r.$parent=n,r}function pK(e){const t=Fr(e).get("extensionElements");if(t)return t.get("values").find((e=>Lr(e,"zeebe:IoMapping")))}function uK(e){const t=pK(e);return t?t.get("zeebe:outputParameters"):[]}function hK(e){const t=function(e){const t=Fr(e);return WZ(t,"zeebe:CalledElement")}(e);return t[0]}function dK(e){if(!Lr(e,"bpmn:CallActivity"))return!1;const t=hK(Fr(e));return t&&m(t,"propagateAllChildVariables")?t.get("propagateAllChildVariables")||!1:function(e){if(!Lr(e,"bpmn:CallActivity"))return!1;const t=uK(e);return t?!t.length:void 0}(e)}aK.$inject=["eventBus"];class fK extends js{constructor(e,t,n){super(t),this.postExecuted("shape.create",5e3,(function(t){const{shape:i}=t;if(!Lr(i,"bpmn:CallActivity"))return;const r=Fr(i);let o=hK(r);if(o)m(o,"propagateAllChildVariables")||n.updateModdleProperties(i,o,{propagateAllChildVariables:!1});else{let t=r.get("extensionElements");t||(t=cK("bpmn:ExtensionElements",{values:[]},r,e),n.updateProperties(i,{extensionElements:t})),o=cK("zeebe:CalledElement",{propagateAllChildVariables:!1},t,e),n.updateModdleProperties(i,t,{values:[...t.values||[],o]})}}),!0)}}fK.$inject=["bpmnFactory","eventBus","modeling"];class mK extends js{constructor(e,t,n){super(e),this.postExecuted("shape.delete",250,(function(e){const{collaborationRoot:i,shape:r}=e,o=t.getRootElement();if(Lr(r,"bpmn:Participant")&&i&&!i.businessObject.participants.length&&Lr(o,"bpmn:Process")){const e=r.businessObject.processRef;n.updateProperties(o,{isExecutable:e.isExecutable})}}),!0)}}mK.$inject=["eventBus","canvas","modeling"];const gK=new n([32,32,1]);const yK="UserTaskForm_";function vK(){return function(e){return gK.nextPrefixed(e)}(yK)}function bK(e){return`camunda-forms:bpmn:${e}`}function OK(e){return WZ(Fr(e),"zeebe:FormDefinition")[0]}function xK(e,t){const n=t||function(e){for(var t=Fr(e);t.$parent&&!Lr(t,"bpmn:Process");)t=t.$parent;return t}(e),i=OK(e);if(!i)return;return function(e,t){return g(WZ(t,"zeebe:UserTaskForm"),(t=>bK(t.get("zeebe:id"))===e))}(i.get("zeebe:formKey"),n)}class wK extends js{constructor(e,t,n){super(t),this.postExecute("shape.delete",(function(e){const{oldParent:t,shape:i}=e,r=_K(t),o=xK(i,r);if(!Lr(i,"bpmn:UserTask")||!o)return;const s=r.get("extensionElements"),a=s.get("values").filter((e=>e!==o));n.updateModdleProperties(i,s,{values:a})}),!0),this.postExecute("shape.create",(function(t){const{shape:i}=t,r=OK(i);if(!Lr(i,"bpmn:UserTask")||!r)return;const o=xK(i),s=_K(i),a=Fr(i).get("extensionElements");let l=s.get("extensionElements");l||(l=cK("bpmn:ExtensionElements",{values:[]},s,e),n.updateModdleProperties(i,s,{extensionElements:l}));let c=a.get("values").filter((e=>e!==r));const p=vK(),u=function(e,t,n){return cK("zeebe:FormDefinition",e,t,n)}({formKey:bK(p)},a,e);c=[...c,u],n.updateModdleProperties(i,a,{values:c});const h=function(e,t,n){return cK("zeebe:UserTaskForm",e,t,n)}({id:p,body:o?o.get("body"):""},l,e);n.updateModdleProperties(i,l,{values:[...l.get("values")||[],h]})}),!0)}}function _K(e){for(var t=Fr(e);t.$parent&&!Lr(t,"bpmn:Process");)t=t.$parent;return t}wK.$inject=["bpmnFactory","eventBus","modeling"];class EK extends js{constructor(e,t){super(t),this.postExecuted("element.updateModdleProperties",5e3,(function(t){const{element:n,moddleElement:i}=t;if(!Lr(i,"zeebe:AssignmentDefinition"))return;const r=i;if(Lr(n,"bpmn:UserTask")&&s(r.get("zeebe:assignee"))&&s(r.get("zeebe:candidateGroups"))&&s(r.get("zeebe:candidateUsers"))){GZ(n,Fr(n),r,e)}}),!0)}}EK.$inject=["commandStack","eventBus"];class PK extends js{constructor(e,t){super(t),this.postExecuted("element.updateModdleProperties",5e3,(function(t){const{element:n,moddleElement:i}=t;if(!Lr(i,"zeebe:TaskSchedule"))return;const r=i;if(Lr(n,"bpmn:UserTask")&&s(r.get("zeebe:dueDate"))&&s(r.get("zeebe:followUpDate"))){GZ(n,Fr(n),r,e)}}),!0)}}PK.$inject=["commandStack","eventBus"];class kK extends js{constructor(e,t,n){super(t),this.postExecute("element.updateModdleProperties",5e3,(function(t){const{element:i,moddleElement:r,properties:o={}}=t,s=o.propagateAllChildVariables||o["zeebe:propagateAllChildVariables"];if(!Lr(i,"bpmn:CallActivity")||!Lr(r,"zeebe:CalledElement")||!s)return;const a=function(e){const t=pK(e);return t?t.get("zeebe:inputParameters"):[]}(i),l=uK(i);if(!l||!l.length)return;const c=pK(i);n.updateModdleProperties(i,c,{"zeebe:outputParameters":[]}),a&&a.length||GZ(i,Fr(i),c,e)}),!0),this.preExecute("element.updateModdleProperties",5e3,(function(e){const{element:t,moddleElement:i,properties:r}=e;if(!Lr(t,"bpmn:CallActivity")||!dK(t))return;const o=hK(Fr(t));if(Lr(i,"bpmn:ExtensionElements")&&r.values){const e=r.values.find((e=>Lr(e,"zeebe:IoMapping")));e&&e.get("outputParameters").length&&!pK(t)&&n.updateModdleProperties(t,o,{"zeebe:propagateAllChildVariables":!1})}if(Lr(i,"zeebe:IoMapping")){const e=r.outputParameters||r["zeebe:outputParameters"];e&&e.length&&n.updateModdleProperties(t,o,{"zeebe:propagateAllChildVariables":!1})}}),!0)}}kK.$inject=["commandStack","eventBus","modeling"];var SK={__init__:["cleanUpBusinessRuleTaskBehavior","cleanUpTimerExpressionBehavior","copyPasteBehavior","createZeebeCallActivityBehavior","deleteParticipantBehaviour","formDefinitionBehavior","removeAssignmentDefinitionBehavior","removeTaskScheduleBehavior","updatePropagateAllChildVariablesBehavior"],cleanUpBusinessRuleTaskBehavior:["type",ZZ],cleanUpTimerExpressionBehavior:["type",iK],copyPasteBehavior:["type",aK],createZeebeCallActivityBehavior:["type",fK],deleteParticipantBehaviour:["type",mK],formDefinitionBehavior:["type",wK],removeAssignmentDefinitionBehavior:["type",EK],removeTaskScheduleBehavior:["type",PK],updatePropagateAllChildVariablesBehavior:["type",kK]};class TK extends Pg{constructor(e){super(e)}init(){super.init(),this.addRule("shape.attach",5e3,(e=>$K(e.shape,e.target,null,e.position)))}}function $K(e,t,n,i){if(Array.isArray(e)||(e=[e]),n)return!1;if(1!==e.length)return!1;const r=e[0];return!En(r)&&(!!function(e){return function(e){return!En(e)&&Lr(e,"bpmn:BoundaryEvent")}(e)||(Lr(e,"bpmn:IntermediateCatchEvent")||Lr(e,"bpmn:IntermediateThrowEvent"))&&!e.parent}(r)&&(!t||!uo(t)&&(!(!Lr(t,"bpmn:Activity")||function(e){return Fr(e).isForCompensation}(t))&&(!(i&&!Eg(i,t))&&(!function(e){return Lr(e,"bpmn:ReceiveTask")&&g(e.incoming,(function(e){return Lr(e.source,"bpmn:EventBasedGateway")}))}(t)&&"attach")))))}TK.$inject=["eventBus"],TK.canAttach=$K;var CK={__init__:["bpmnRules"],bpmnRules:["type",TK]};class MK{constructor(e){this._generate=e,this.value=null,this.valid=!1}invalidate(){this.valid=!1}get(){return this.valid||(this.value=this._generate(),this.valid=!0),this.value}}function AK(e){return!!function(e){return qK(e,"outputParameters")}(e).length}function RK(e,t){return function(e){return qK(e,"inputParameters")}(e).find((function(e){return e.target===t||e.name===t}))}function DK(e,t=undefined){const n=e.get("extensionElements");if(!n)return[];const i=n.get("values");return i&&i.length?t?i.filter((e=>Lr(e,t))):i:[]}function jK(e){return BK(e,"zeebe:IoMapping")[0]||BK(e,"camunda:InputOutput")[0]}function qK(e,t){var n=jK(e);return n&&n.get(t)||[]}function BK(e,t){var n=[],i=e.get("extensionElements");if(void 0!==i){var r=i.get("values");void 0!==r&&(n=v(r,(function(e){return Lr(e,t)})))}return n}function NK(e,t,n){var i=zK(e);if(AK(e))return e;var r=i.find((function(e){return Lr(e,"bpmn:SubProcess")&&RK(e,n)}));return r||t}function zK(e){for(var t=[],n=e;n.$parent;)t.push(n.$parent),n=n.$parent;return t}class QK{constructor(e,t){this.providers=[],this._eventBus=e,this._bpmnjs=t,this.rawVariables=new MK(this._generateRawVariables.bind(this)),this.parsedVariables=new MK((async()=>{const t={variables:await this.getRawVariables()};return e.fire("variableResolver.parseVariables",t),t.variables})),e.on(["commandStack.changed","diagram.clear","import.done","variables.changed"],(()=>{this.invalidateCache()})),e.on("variableResolver.parseVariables",((e,t)=>{t.variables=this._parseVariables(t.variables)}))}_baseExtractor(){return[]}async getRawVariables(){return await this.rawVariables.get()}async getVariables(){return await this.parsedVariables.get()}invalidateCache(){this.rawVariables.invalidate(),this.parsedVariables.invalidate()}async _generateRawVariables(){const e=this._bpmnjs,t={},n=e.getDefinitions().get("rootElements").map((async e=>{const n=await this._baseExtractor(e,[this._extractor.bind(this)]);t[e.id]=n.map((e=>(e.provider||(e.provider=[this._baseExtractor]),e)))}));return await Promise.all(n),t}_parseVariables(e){const t={};for(const n in e){const i=e[n],r=[];i.forEach((e=>{const t=r.find((t=>t.name===e.name&&t.scope===e.scope));t?(XK("origin",t,e),XK("provider",t,e),IK(t,e)):r.push(e)})),VK(r),t[n]=r}return t}async _extractor(e){const{elements:t,containerElement:n,processVariables:i}=e,r=this,o=t.flatMap((e=>r.providers.map((async t=>{const r=await t.getVariables(e);r&&r.forEach((r=>{i.push({...FK(r),origin:[e],scope:r.scope||NK(e,n,r.name),provider:[t]})}))}))));await Promise.all(o)}registerProvider(e){this.providers.push(e),this.invalidateCache()}async getProcessVariables(e){const t=Fr(e);return(await this.getVariables())[t.id]||[]}async getVariablesForElement(e){const t=Fr(e),n=function(e){const t=Fr(e);if(Lr(t,"bpmn:Participant"))return t.processRef;if(Lr(t,"bpmn:Process"))return t;let n=t;for(;n.$parent&&!Lr(n,"bpmn:Process");)n=n.$parent;return n}(t),i=await this.getProcessVariables(n);var r=i.filter((function(e){return e.scope.id===t.id})),o=zK(t);return[...r,...i.filter((function(e){return o.find((function(t){return t.id===e.scope.id}))}))]}}function XK(e,t,n){n[e]||(n[e]=[]),t[e]||(t[e]=[]);const i=n[e].filter((e=>!t.origin.includes(e)));t[e].push(...i)}function IK(e,t){e.type=LK(e.type,t.type,"|"),e.info=LK(e.info,t.info,"\n"),e.isList=!!e.isList==!!t.isList?e.isList:"optional",t.entries&&(e.entries||(e.entries=[]),t.entries.forEach((t=>{const n=e.entries.find((e=>e.name===t.name));n?IK(n,t):e.entries.push(t)})))}QK.$inject=["eventBus","bpmnjs"];const LK=(e,t,n)=>{if(e&&e!==t){const i=e.split(n);return i.includes(t)||i.push(t),i.join(n)}return t};function VK(e){e&&e.forEach((e=>{e.detail=e.type,VK(e.entries)}))}function FK(e){const t={...e};return t.entries&&(t.entries=t.entries.map(FK)),t}const UK=120,HK=121,YK=126,WK=7,GK=8,ZK=9,KK=10,JK=137,eJ=18,tJ=26,nJ=36,iJ=143,rJ=144,oJ=145,sJ=146,aJ=47,lJ=151,cJ=69,pJ=152,uJ=71,hJ=75,dJ=158,fJ=78,mJ=79,gJ=80,yJ=88,vJ=97,bJ=99,OJ=100,xJ="undefined"!=typeof process&&process.env&&/\bfparse(:dbg)?\b/.test(process.env.LOG),wJ="undefined"!=typeof process&&process.env&&/\bfparse:dbg\b/.test(process.env.LOG),_J="undefined"!=typeof process&&process.env&&/\bcontext\b/.test(process.env.LOG),EJ=[9,11,12,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],PJ=SJ("\n\r"),kJ=SJ("'./-+*");function SJ(e){return Array.from(e).map((e=>e.charCodeAt(0)))}function TJ(e){return e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}function $J(e){return EJ.includes(e)}function CJ(e,t){return t.concat(e.split(/\n/g).join("\n"+t))}function MJ(e,t=0){const n=e.peek(t);return i=n,kJ.includes(i)?{offset:1,token:String.fromCharCode(n)}:null;var i}function AJ(e,t=0,n=!1){for(let r=!1,o=[],s=0;;s++){const a=e.peek(t+s);if(!(63===(i=a)||95===i||i>=65&&i<=90||i>=97&&i<=122||i>=161&&!TJ(i)&&!$J(i)||(r||n)&&TJ(a)))return o.length?{token:String.fromCharCode(...o),offset:s}:null;r||(r=!0),o.push(a)}var i}function RJ(e,t){for(let n=!1,i=0;;i++){if(!$J(e.peek(t+i)))return n?{token:" ",offset:i}:null;n||(n=!0)}}const DJ={[UK]:"identifier",[HK]:"nameIdentifier"},jJ=new xE(((e,t)=>{wJ&&console.log("%s: T <identifier | nameIdentifier>",e.pos);const n=function(e,t){const n=t.contextKeys(),i=t.tokens;for(let t=0,r=[],o=null;;){const s=i.length+r.length>0,a=r.length>0,l=AJ(e,t,s)||s&&MJ(e,t)||a&&RJ(e,t);if(!l)return o;const{token:c,offset:p}=l;if(t+=p," "===c)continue;r=[...r,c];const u=[...i,...r].join(" ");if(n.some((e=>e===u))){const e=r[0];o={token:e,offset:e.length,term:HK}}if(IJ.some((e=>e===u))){const e=r[0];o={token:e,offset:e.length,term:UK}}if(!n.some((e=>e.startsWith(u)))&&!IJ.some((e=>e.startsWith(u))))return o}}(e,t.context),i=t.context.tokens,r=n||AJ(e,0,i.length>0);r&&(e.advance(r.offset),e.acceptToken(n?n.term:UK),xJ&&console.log("%s: MATCH <%s> <%s>",e.pos,n?DJ[n.term]:"identifier",r.token))}),{contextual:!0}),qJ=new xE(((e,t)=>{wJ&&console.log("%s: T <propertyIdentifier>",e.pos);const n=AJ(e,0,t.context.tokens.length>0);n&&(e.advance(n.offset),e.acceptToken(119),xJ&&console.log("%s: MATCH <propertyIdentifier> <%s>",e.pos,n.token))})),BJ=new xE(((e,t)=>{let n;wJ&&console.log("%s: T <insertSemi>",e.pos);let i=!1;for(n=0;;n++){const t=e.peek(n);if(!EJ.includes(t)){PJ.includes(t)&&(i=!0);break}}if(i){const t=AJ(e,n+1);if(RJ(e,n+1)||t&&/^(then|else|return|satisfies)$/.test(t.token))return;xJ&&console.log("%s: MATCH <insertSemi>",e.pos),e.acceptToken(122)}})),NJ={153:"FunctionInvocation",[pJ]:"FilterExpression",[lJ]:"PathExpression"},zJ={173:"Context",171:"FunctionDefinition",129:"ForExpression",169:"List",138:"IfExpression",139:"QuantifiedExpression"},QJ={96:"Context",89:"FunctionDefinition",4:"ForExpression",[yJ]:"List",[eJ]:"IfExpression",22:"QuantifiedExpression",67:"PathExpression",[uJ]:"FunctionInvocation",[cJ]:"FilterExpression",40:"ArithmeticExpression"};class XJ{constructor(e){this.fn=e}get(e){return this.fn(e)}static of(e){return new XJ(e)}}const IJ=Object.keys({"date and time":1,date:1,time:1,duration:1});class LJ{constructor(e={}){this.value=e}getKeys(){return Object.keys(this.value)}get(e){const t=this.value[e];return this.constructor.isAtomic(t)?t:this.constructor.of(t)}set(e,t){return this.constructor.of({...this.value,[e]:t})}static isAtomic(e){return!e||e instanceof this||e instanceof XJ||"object"!=typeof e}static of(...e){const t=e=>e&&"object"==typeof e?e instanceof this?e.value:{...e}:{};return new this(e.reduce(((e,n)=>({...e,...t(n)})),{}))}}class VJ{constructor({name:e="Expressions",tokens:t=[],children:n=[],parent:i=null,context:r,value:o,raw:s}={}){this.name=e,this.tokens=t,this.children=n,this.parent=i,this.context=r,this.value=o,this.raw=s}enterScope(e){const t=this.of({name:e,parent:this});return _J&&console.log("[%s] enter",t.path,t.context),t}exitScope(e){return this.parent?(_J&&console.log("[%s] exit %o\n%s",this.path,this.context,CJ(e," ")),this.parent.pushChild(this)):(_J&&console.log("[%s] NO exit %o\n%s",this.path,this.context,CJ(e," ")),this)}token(e){return _J&&console.log("[%s] token <%s> + <%s>",this.path,this.tokens.join(" "),e),this.assign({tokens:[...this.tokens,e]})}literal(e){return _J&&console.log("[%s] literal %o",this.path,e),this.pushChild(this.of({name:"Literal",value:e}))}computedValue(){for(let e=this;;e=WJ(e.children)){if(!e)return null;if(e.value)return e.value}}contextKeys(){return this.context.getKeys().map(FJ)}get path(){return this.parent?.path?.concat(" > ",this.name)||this.name}get(e){const t=[e,e&&FJ(e)],n=this.context.getKeys().find((e=>t.includes(FJ(e))));if(void 0===n)return;const i=this.context.get(n);return i instanceof XJ?i.get(this):i}resolveName(){const e=this.tokens.join(" "),t=this.assign({tokens:[]}),n=this.of({name:"VariableName",parent:t,value:this.get(e),raw:e});return _J&&console.log("[%s] resolve name <%s=%s>",n.path,e,this.get(e)),t.pushChild(n)}pushChild(e){if(!e)return this;const t=this.assign({children:[...this.children,e]});return e.parent=t,t}pushChildren(e){let t=this;for(const n of e)t=t.pushChild(n);return t}declareName(){if(0===this.tokens.length)throw Error("no tokens to declare name");const e=this.tokens.join(" ");return _J&&console.log("[%s] declareName <%s>",this.path,e),this.assign({tokens:[]}).pushChild(this.of({name:"Name",value:e}))}define(e,t){if("string"!=typeof e)return _J&&console.log("[%s] no define <%s=%s>",this.path,e,t),this;_J&&console.log("[%s] define <%s=%s>",this.path,e,t);const n=this.context.set(e,t);return this.assign({context:n})}assign(e={}){return VJ.of({...this,...e})}of(e={}){const t={context:this.context,parent:this.parent};return VJ.of({...t,...e})}static of(e){const{name:t,tokens:n=[],children:i=[],parent:r=null,context:o,value:s,raw:a}=e;if(!o)throw new Error("must provide <context>");return new VJ({name:t,tokens:[...n],children:[...i],context:o,parent:r,value:s,raw:a})}}function FJ(e){return e.replace(/\s*([./\-'+*])\s*/g," $1 ").replace(/\s{2,}/g," ").trim()}function UJ(e,t,n){const i=e.children.filter((e=>e.name!==t)),r=e.children.filter((e=>e.name===t)),o=i[0],s=i[Math.max(1,i.length-1)],a=o.computedValue(),l=s?.computedValue()||null;return e.assign({children:r}).enterScope(t).pushChildren(i).exitScope(n).define(a,l)}function HJ(e={},t=LJ){const n=VJ.of({context:t.of(e)});return new DE({start:n,reduce(e,n,i,r){if(n===eJ){const[n,i]=e.children.slice(-2);e=e.assign({value:t.of(n?.computedValue(),i?.computedValue())})}if(n===yJ&&(e=e.assign({value:t.of(...e.children.map((e=>e?.computedValue())))})),n===cJ){const[t,n]=e.children.slice(-2);e=e.assign({value:t?.computedValue()})}if(n===uJ){const[t,...n]=e.children;"get value"===t?.raw&&(e=function(e,t){if(!t.length)return e.assign({value:null});"Name"===t[0].name&&(t=function(e,t){const n={};for(let t=0;t<e.length;t+=2){const[i,r]=e.slice(t,t+2);n[i.value]=r}return t.map((e=>n[e]))}(t,["m","key"]));if(2!==t.length)return e.assign({value:null});const[n,i]=t,r=i?.computedValue(),o=n?.computedValue();if(!o||"object"!=typeof o||"string"!=typeof r)return e.assign({value:null});return e.assign({value:[FJ(r),r].reduce(((e,t)=>o.get(t)||e),null)})}(e,n))}const o=zJ[n];if(o)return e.enterScope(o);const s=NJ[n];if(s){const{children:i,context:r}=e,o=i.slice(0,-1),a=WJ(i);let l=null;return n===lJ&&(l=t.of(a?.computedValue())),n===pJ&&(l=t.of(r,a?.computedValue()).set("item",a?.computedValue())),e.assign({children:o}).enterScope(s).pushChild(a).assign({context:l||r})}const a=r.read(r.pos,i.pos);if(QJ[n])return e.exitScope(a);if(n===vJ){const n=e.children.filter((e=>"ContextEntry"!==e.name)),i=n[0],r=WJ(n);return UJ(e,"ContextEntry",a).assign({value:t.of(e.value).set([i.computedValue()],r?.computedValue())})}if(n===WK||n===tJ)return UJ(e,"InExpression",a);if(n===JK)return e.define("partial",XJ.of((e=>WJ(e.children)?.computedValue())));if(n===hJ){const t=WJ(e.children).computedValue();return e.define(t,1)}if(n===iJ||n===rJ||n===oJ){const t=e.children.slice(0,-1),n=WJ(e.children);return e.assign({children:t}).enterScope("ArithmeticExpression").pushChild(n)}if(n===sJ)return e.enterScope("ArithmeticExpression");if(n===ZK||n===KK||n===OJ)return e.token(a);if(n===mJ)return e.literal(a.replace(/^"|"$/g,""));if(n===gJ)return e.literal("true"===a);if(n===fJ)return e.literal(parseFloat(a));if(n===dJ)return e.literal(null);if(n===aJ)return e.resolveName();if(n===GK||n===bJ)return e.declareName();if((n===YK||n===nJ)&&e.tokens.length>0)throw new Error("uncleared name");if(n===YK){let t=e;for(;t.parent;)t=t.exitScope(a);return t}return e}})}const YJ=HJ({});function WJ(e){return e[e.length-1]}const GJ=IE({StringLiteral:cP.string,NumericLiteral:cP.number,BooleanLiteral:cP.bool,"AtLiteral!":cP.special(cP.string),CompareOp:cP.compareOperator,ArithOp:cP.arithmeticOperator,"for if then else some every satisfies between return":cP.controlKeyword,"in instance of and or":cP.operatorKeyword,function:cP.definitionKeyword,as:cP.keyword,"Type/...":cP.typeName,Wildcard:cP.special,null:cP.null,LineComment:cP.lineComment,BlockComment:cP.blockComment,'VariableName! "?"':cP.variableName,"DateTimeConstructor! SpecialFunctionName!":cP.function(cP.special(cP.variableName)),"List Interval":cP.list,Context:cP.definition(cP.literal),"Name!":cP.definition(cP.variableName),"Key/Name! ContextEntryType/Name!":cP.definition(cP.propertyName),"PathExpression/VariableName!":cP.function(cP.propertyName),"FormalParameter/ParameterName!":cP.function(cP.definition(cP.variableName)),"( )":cP.paren,"[ ]":cP.squareBracket,"{ }":cP.brace,".":cP.derefOperator,", ;":cP.separator,"..":cP.punctuation}),ZJ={__proto__:null,for:10,in:30,return:34,if:38,then:40,else:42,some:46,every:48,satisfies:55,or:58,and:62,between:70,instance:86,of:89,days:99,time:101,duration:103,years:105,months:107,date:109,list:115,context:121,function:128,null:154,true:324,false:324,"?":168,external:184,not:207},KJ=jE.deserialize({version:14,states:"IWO`QYOOO$gQYOOOOQU'#Ce'#CeO$qQYO'#C`O%zQ^O'#FOOOQQ'#Fd'#FdO'dQYO'#FdO`QYO'#DUOOQU'#Em'#EmO)QQ^O'#D]OOQO'#Fk'#FkO,PQWO'#DuOOQU'#D|'#D|OOQU'#D}'#D}OOQU'#EO'#EOO,UOWO'#ERO,PQWO'#EPOOQU'#EP'#EPOOQU'#Fq'#FqOOQU'#Fo'#FoOOQQ'#Fv'#FvO.yQYO'#FvO0wQYO'#FvOOQU'#ET'#ETO2sQYO'#EVOOQU'#FQ'#FQO4UQ^O'#FQO5hQYO'#EWO5rQWO'#EXOOQP'#GP'#GPO5wQXO'#E`OOQU'#Fz'#FzOOQU'#FP'#FPOOQQ'#Eh'#EhQ`QYOOOOQQ'#FR'#FROOQQ'#F['#F[O2sQYO'#CnOOQQ'#F]'#F]O$qQYO'#CrO6SQYO'#DvOOQU'#Fp'#FpO6XQYO'#EQOOQO'#EQ'#EQO2sQYO'#EUO`QYO'#ETOOQO'#F}'#F}O7bQYO'#DQO8UQWO'#F`OOQO'#DS'#DSO8aQYO'#FdQOQWOOO8hQWOOO9[QYO'#CdO9iQYO'#FTOOQQ'#Cc'#CcO9nQYO'#FSOOQQ'#Cb'#CbO9vQYO,58zO`QYO,59hOOQQ'#Fa'#FaOOQQ'#Fb'#FbOOQQ'#Fc'#FcO`QYO,59pO`QYO,59pO`QYO,59pOOQQ'#Fi'#FiO$qQYO,5:]OOQQ'#Fj'#FjO2sQYO,5:_OOQQ,5;j,5;jO`QYO,59dO`QYO,59fO2sQYO,59hO;fQYO,59hO;mQYO,59rOOQU,5:h,5:hO;rQ^O,59pOOQU-E8k-E8kO>qQYO'#FlOOQU,5:a,5:aOOQU,5:m,5:mOOQU,5:k,5:kO>{QYO,5:qOOQU,5;l,5;lO?SQYO'#FnO?aQWO,5:rO?fQYO,5:sOOQP'#Ed'#EdO@YQXO'#EcOOQO'#Eb'#EbO@aQWO'#EaO@fQWO'#GQO@nQWO,5:zOOQQ-E8f-E8fO@sQYO,59YO9iQYO'#F_OOQQ'#Cv'#CvO@zQYO'#F^OOQQ'#Cu'#CuOASQYO,59^OAXQYO,5:bOA^QYO,5:lOAcQYO,5:pOAjQ^O,5:oO2sQYO'#ElOCSQWO,5;zO2sQYOOOOQR'#Cf'#CfOOQQ'#Ei'#EiOCyQYO,59OO2sQYO,5;oOOQQ'#FW'#FWO$qQYO'#EjODZQYO,5;nO`QYO1G.fOOQQ'#FZ'#FZOEjQ^O1G/SOI]Q^O1G/[OIgQ^O1G/[OK_Q^O1G/[OOQU1G/w1G/wOLtQYO1G/yOMyQ^O1G/OO!!aQ^O1G/QO!$}QYO1G/SO!%UQYO1G/SOOQU1G/S1G/SO!&tQYO1G/^O!'`Q^O'#CdOOQO'#Dy'#DyO!(rQWO'#DxO!(wQWO'#FmOOQO'#Dw'#DwOOQO'#Dz'#DzO!)PQWO,5<WOOQU'#Fy'#FyOOQU1G0]1G0]O2sQYO'#ErO!)UQWO,5<YOOQU'#F|'#F|OOQU1G0^1G0^O!)aQWO'#EZO!)lQWO'#GOOOQO'#EY'#EYO!)tQWO1G0_OOQP'#Et'#EtO!)yQXO,5:}O2sQYO,5:{O!*QQXO'#EuO!*YQWO,5<lOOQU1G0f1G0fO2sQYO1G.tO2sQYO,5;yO$qQYO'#EkO!*bQYO,5;xO`QYO1G.xO!*jQYO1G/|OOQO1G0W1G0WO2sQYO1G0[OOQO,5;W,5;WOOQO-E8j-E8jO!*oQWOOOOQQ-E8g-E8gO!*tQYO'#ClOOQQ1G1Z1G1ZOOQQ,5;U,5;UOOQQ-E8h-E8hO!+RQ^O7+$QOOQU7+%e7+%eO`QYO7+$nO!,kQWO7+$nO!,pQ^O'#D[OOQU'#DZ'#DZO!/oQYO'#D^O!/tQYO'#D^O!/yQYO'#D^O!0OQ`O'#DfO!0TQ`O'#DiO!0YQ`O'#DmOOQU7+$x7+$xO2sQYO,5:dO$qQYO'#EqO!0_QWO,5<XOOQU1G1r1G1rO!0gQYO,5;^OOQO-E8p-E8pO!&tQYO,5:uO$qQYO'#EsO!0tQWO,5<jO!0|QYO7+%yOOQP-E8r-E8rO!1TQYO1G0gOOQO,5;a,5;aOOQO-E8s-E8sO!1_QYO7+$`O!1fQYO1G1eOOQQ,5;V,5;VOOQQ-E8i-E8iO!1pQ^O7+$dOOQO7+%h7+%hO!4WQYO7+%vO2sQYO,59WO!5lQ^O<<HYOOQU<<HY<<HYO$qQYO'#EnO!7OQ^O,59vO!9}QYO,59xO!:SQYO,59xO!:XQYO,59xO!:^QYO,5:QO$qQYO,5:TO!:xQbO,5:XO!;PQYO1G0OOOQO,5;],5;]OOQO-E8o-E8oOOQO1G0a1G0aOOQO,5;_,5;_OOQO-E8q-E8qO!;ZQ^O'#E]OOQU<<Ie<<IeO`QYO<<IeO`QYO<<GzO!<sQ^O'#FjOOQU'#Fw'#FwOOQU<<Ib<<IbO!?rQYO1G.rOOQU,5;Y,5;YOOQU-E8l-E8lO!?|QYO1G/dOOQU1G/d1G/dO!@RQbO'#D]O!@dQ`O'#D[O!@oQ`O1G/lO!@tQWO'#DlO!@yQ`O'#FeOOQO'#Dk'#DkO!ARQ`O1G/oOOQO'#Dp'#DpO!AWQ`O'#FgOOQO'#Do'#DoO!A`Q`O1G/sOOQUAN?PAN?PO!AeQ^OAN=fOOQU7+%O7+%OO!B}Q`O,59vOOQU7+%W7+%WO!:^QYO,5:WO$qQYO'#EoO!CYQ`O,5<POOQU7+%Z7+%ZO!:^QYO'#EpO!CbQ`O,5<RO!CjQ`O7+%_OOQO1G/r1G/rOOQO,5;Z,5;ZOOQO-E8m-E8mOOQO,5;[,5;[OOQO-E8n-E8nO!&tQYO<<HyOOQUAN>eAN>eO!CoQ^O'#FQO2sQYO'#ETO2sQYO,59hO2sQYO,59pO2sQYO,59pO2sQYO,59pO2sQYO,59dO2sQYO,59fO!EvQYO,59hO!E}QYO,5:oO2sQYO1G.fO!FqQYO1G/SO!HxQYO1G/[O!ISQYO1G/[O!JXQYO1G/OO!KyQYO1G/QO2sQYO1G.xO!LsQYO7+$QO2sQYO7+$nO!MgQYO7+%yO!MqQYO7+$dO!NeQYO<<HYO$qQYO'#EnO# RQYO'#E]O2sQYO<<IeO2sQYO<<GzO# uQYOAN=fO!:^QYO<<HyO2sQYO'#DUO#!iQ^O'#DQO9vQYO,58zO#$RQYO,59^O#$WQYO1G/SO#$_QWO1G0_O#$dQYO7+$`O#$kQ`O7+%_O$qQYO'#C`O$qQYO'#CrO2sQYO,59hO?fQYO,5:sO2sQYO1G.tO#$pQ`O1G/sO#$uQWO'#EXO#$zQYO,59YO!:xQbO,5:XO2sQYO'#CnO#%RQ`O'#Dm",stateData:"#%^~O#pOS#qOSPOSQOS~OTsOZUO[TOctOgvOhvOr}OueO!S{O!T{O!UxO!WzO!b!OO!fdO!hfO!oyO!viO#RmO#lQO#mQO$f[O$g]O$h^O$i_O~OTsO[TOctOgvOhvOr&pOueO!S{O!T{O!UxO!WzO!b!OO!fdO!hfO!oyO!viO#RmO#lQO#mQO$f[O$g]O$h^O$i_O~OZ!SO#Z!UO~P!|O#lQO#mQO~OZ!^O[!^O]!_O^!_O_!lOm!iOo!jOq!]Or!]Os!kOy!`O{!mO!h!fO#x!dOu$_X~O#n!hO$u!hOT#rXc#rXg#rXh#rX!S#rX!T#rX!U#rX!W#rX!b#rX!f#rX!o#rX!v#rX#R#rX#j#rX#l#rX#m#rX$f#rX$g#rX$h#rX$i#rX~P$yO$f!nOT$WXZ$WX[$WXc$WXg$WXh$WXr$WXu$WX!S$WX!T$WX!U$WX!W$WX!b$WX!f$WX!h$WX!o$WX!v$WX#R$WX#l$WX#m$WX$g$WX$h$WX$i$WX~O#lQO#mQOT!PXZ!PX[!PX]!PX^!PX_!PXc!PXg!PXh!PXm!PXo!PXq!PXr!PXs!PXu!PXy!PX{!PX!S!PX!T!PX!U!PX!W!PX!b!PX!f!PX!h!PX!o!PX!v!PX#R!PX#j!PX#n!PX#x!PX$f!PX$g!PX$h!PX$i!PX$u!PX#|!PXw!PXd!PX#{!PXa!PX#Q!PXe!PXk!PX~Ou!qO~O$g]O~OT$jXT$lXc$jXc$lXg$jXg$lXh$jXh$lXr$jXr$lXu$jXu$lX!S$jX!S$lX!T$jX!T$lX!U$jX!U$lX!W$jX!W$lX!b$jX!b$lX!f$jX!f$lX!h$jX!h$lX!o$jX!o$lX!v$jX!v$lX#R$jX#R$lX$f$jX$f$lX$g$jX$g$lX$h$jX$h$lX$i$jX$i$lX~OZ$jXZ$lX[$jX[$lX#l$jX#l$lX#m$jX#m$lX~P,ZOT$jXc$jXg$jXh$jXr$jXu$jX!S$jX!T$jX!U$jX!W$jX!b$jX!f$jX!h$jX!o$jX!v$jX#R$jX$f$jX$g$jX$h$jX$i$jX~OT$oXZ$jXZ$oX[$jX[$oXc$oXg$oXh$oXr$oXu$oX!S$oX!T$oX!U$oX!W$oX!b$oX!f$oX!h$oX!o$oX!v$oX#R$oX#l$jX#l$oX#m$jX#m$oX$f$oX$g$oX$h$oX$i$oX~P/gOZUO~P!|O#n!vOZ#tX[#tX]#tX^#tX_#tXm#tXo#tXq#tXr#tXs#tXu#tXy#tX{#tX!f#tX!h#tX#j#tX#x#tX~OT#tXc#tXg#tXh#tX!S#tX!T#tX!U#tX!W#tX!b#tX!o#tX!v#tX#R#tX#l#tX#m#tX#n#tX$f#tX$g#tX$h#tX$i#tX$u#tX~P2zOZUO!f$bP~P!|Ou!yO~O#k!zO$g]O#Q$tP~Oo#XO~Oo#YOu!tX~OZ!^O[!^O]!_O^!_O_&wOm&uOo&vOq&qOr&qOs'gOy!`O{!mO!h!fO#x!dOu$_X~O#jtX#|tXwtX!ftXdtX#{tXatX#QtXetXktX~P6aO#|#]O#j$SXw$SX~O#j#YX~P'dOu#_O~OZ#`O[#`O]#`O^#`O#lQO#mQO#x#`O#y#`O$YWX~O_WXwWX#|WX~P8mO_#dO~O#|#eOa#vX~Oa#hO~OTsOZUO[TOctOgvOhvOr}O!S{O!T{O!UxO!WzO!b!OO!fdO!hfO!oyO!viO#RmO#lQO#mQO$f[O$g]O$h^O$i_O~Ou#rO~P9{O|#tO~O{!mO!h!fO#x!dOTxaZxa[xa]xa^xa_xacxagxahxamxaoxaqxarxasxau$_Xyxa!Sxa!Txa!Uxa!Wxa!bxa!fxa!oxa!vxa#Rxa#jxa#lxa#mxa#nxa$fxa$gxa$hxa$ixa$uxa#|xawxadxa#{xaaxa#Qxaexakxa~OZUOw$bP~P!|Ow#|O~P6aO#|$OO!f$bXw$bX~P6aO!f$QO~O#lQO#mQOw$rP~OZ#`O[#`O]#`O^#`O#k!zO#x#`O#y#`O~O$Y#VX~P?qO$Y$YO~O#|$ZO#Q$tX~O#Q$]O~Od$^O~P6aO#|$`Ok$QX~Ok$bO~O!V$cO~O!S$dO~O#{$eO~P6aOT!wac!wag!wah!wa!S!wa!T!wa!U!wa!W!wa!b!wa!f!wa!o!wa!v!wa#R!wa#j!wa#l!wa#m!wa#n!wa$f!wa$g!wa$h!wa$i!wa$u!wa~P$yO#|#]O#j$Saw$Sa~OZ#`O[#`O]#`O^#`O#lQO#mQO#x#`O#y#`O~O_Wa$YWawWa#|Wa~PC_O#|#eOa#va~OZ!^O[!^O]!_O^!_Oy!`O{!mO!h!fO#x!dO_pimpiopiqpirpispiu$_X!fpi#jpi~OTpicpigpihpi!Spi!Tpi!Upi!Wpi!bpi!opi!vpi#Rpi#lpi#mpi#npi$fpi$gpi$hpi$ipi$upi~PDcOy!`O{!mO!h!fO#x!dOTxiZxi[xi_xicxigxihximxioxiqxirxisxiu$_X!Sxi!Txi!Uxi!Wxi!bxi!fxi!oxi!vxi#Rxi#jxi#lxi#mxi#nxi$fxi$gxi$hxi$ixi$uxi~O]!_O^!_O~PF|O]xi^xi~PF|O{!mO!h!fO#x!dOZxi[xi]xi^xi_ximxioxiqxirxisxiu$_X!fxi#jxi#|xiwxidxi#{xiaxi#Qxiexikxi~OTxicxigxihxiyxi!Sxi!Txi!Uxi!Wxi!bxi!oxi!vxi#Rxi#lxi#mxi#nxi$fxi$gxi$hxi$ixi$uxi~PIqO!f$oO~P6aOZ!^O[!^O]!_O^!_O_!lOo!jOq!]Or!]Os!kOy!`O{!mO!h!fO#x!dOu$_X~OTlicliglihlimli!Sli!Tli!Uli!Wli!bli!fli!oli!vli#Rli#jli#lli#mli#nli$fli$gli$hli$ili$uli~PL{OZ!^O[!^O]!_O^!_O_!lOq!]Or!]Os!kOy!`O{!mO!h!fO#x!dOu$_X~OTnicnignihnimnioni!Sni!Tni!Uni!Wni!bni!fni!oni!vni#Rni#jni#lni#mni#nni$fni$gni$hni$ini$uni~P! fOZ!^O[!^O]!_O^!_O_&wOm&uOq&qOr&qOs'gOy!`O{!mO!h!fO#x!dOu$_X~Oo$pO~P!$POTsOZUO[TOctOgvOhvOr&pOueO!S{O!T{O!UxO!WzO!b!OO!fdO!hfO!oyO!viO#RmO#lQO#mQO$f[O$g]O$h^O$i_O~P,ZO!R$tO!U$uO!W$vO!Z$wO!^$xO!b$yO#lQO#mQO~OZ#aX[#aX]#aX^#aX_#aXm#aXo#aXq#aXr#aXs#aXu#aXw#aXy#aX{#aX!h#aX#l#aX#m#aX#n#aX#x#aX#|#aX~P8mO$Y${O~O#|$|Ow$aX~Ow%OO~O#|$OO!f$baw$ba~O$Y%ROw!}X#|!}X~O#|%SOw$rX~Ow%UO~O$Y#Va~P?qO#k!zO$g]O~O#|$ZO#Q$ta~O#|$`Ok$Qa~O!T%`O~Ow!TO~O#{%bOa`X#|`X~P6aOTSqcSqgSqhSq!SSq!TSq!USq!WSq!bSq!fSq!oSq!vSq#RSq#jSq#lSq#mSq#nSq$fSq$gSq$hSq$iSq$uSq~P$yOw%dO~O#x%eOT!OXZ!OX[!OX]!OX^!OX_!OXc!OXg!OXh!OXm!OXo!OXq!OXr!OXs!OXu!OXy!OX{!OX!S!OX!T!OX!U!OX!W!OX!b!OX!f!OX!h!OX!o!OX!v!OX#R!OX#j!OX#l!OX#m!OX#n!OX$f!OX$g!OX$h!OX$i!OX$u!OX#|!OXw!OXd!OX#{!OXa!OX#Q!OXe!OXk!OX~Oo%gO~Oo%hO~Oo%iO~O![%jO~O![%kO~O![%lO~O#|$|Ow$aa~O!f#fa#|#faw#fa~P6aO#|%SOw$ra~O#O%uO~P`O#Q#Ti#|#Ti~P6aOe%vO~P6aOk$Ri#|$Ri~P6aOTfqcfqgfqhfq!Sfq!Tfq!Ufq!Wfq!bfq!ffq!ofq!vfq#Rfq#jfq#lfq#mfq#nfq$ffq$gfq$hfq$ifq$ufq~P$yOZ!^O[!^O]!_O^!_O_&wOm&uOo&vOq&qOr&qOs'gOy!`O{!mO#x!dOu$_X~Ow%xO!f%xO!h%wO~P!3YOZ!^O[!^O]!_O^!_Oy!`O{!mO!h!fO#x!dO_pympyopyqpyrpyspyu$_X!fpy#jpy~OTpycpygpyhpy!Spy!Tpy!Upy!Wpy!bpy!opy!vpy#Rpy#lpy#mpy#npy$fpy$gpy$hpy$ipy$upy~P!4eO#x%eOT!OaZ!Oa[!Oa]!Oa^!Oa_!Oac!Oag!Oah!Oam!Oao!Oaq!Oar!Oas!Oau!Oay!Oa{!Oa!S!Oa!T!Oa!U!Oa!W!Oa!b!Oa!f!Oa!h!Oa!o!Oa!v!Oa#R!Oa#j!Oa#l!Oa#m!Oa#n!Oa$f!Oa$g!Oa$h!Oa$i!Oa$u!Oa#|!Oaw!Oad!Oa#{!Oaa!Oa#Q!Oae!Oak!Oa~O!S%}O~O!V%}O~O!S&OO~O!R$tO!U$uO!W$vO!Z$wO!^$xO!b'oO#lQO#mQO~O!X$ZP~P!:^Ow!li#|!li~P6aOT#PXc#PXg#PXh#PX!S#PX!T#PX!U#PX!W#PX!b#PX!f#PX!o#PX!v#PX#R#PX#j#PX#l#PX#m#PX#n#PX$f#PX$g#PX$h#PX$i#PX$u#PX~P$yOT$^XZ$^X[$^X]$kX^$kX_$kXc$^Xg$^Xh$^Xm$kXo$kXq$kXr$^Xs$kXu$^Xy$kX{$kX!S$^X!T$^X!U$^X!W$^X!b$^X!f$^X!h$^X!o$^X!v$^X#R$^X#j$kX#l$^X#m$^X#n$kX#x$kX$f$^X$g$^X$h$^X$i$^X$u$kX#|$kXw$kXd$kX#{$kXa$kX#Q$kXe$kXk$kX~Oa`i#|`i~P6aO!T&^O~O#lQO#mQO!X!PX#x!PX#|!PX~O#x'VO!X!OX#|!OX~O!X&`O~O$Y&aO~O#|&bO!X$XX~O!X&dO~O#|&eO!X$ZX~O!X&gO~OTb!Rcb!Rgb!Rhb!R!Sb!R!Tb!R!Ub!R!Wb!R!bb!R!fb!R!ob!R!vb!R#Rb!R#jb!R#lb!R#mb!R#nb!R$fb!R$gb!R$hb!R$ib!R$ub!R~P$yO#x'VO!X!Oa#|!Oa~O#|&bO!X$Xa~O#|&eO!X$Za~O$[&mO~O#|#tXw#tXd#tX#{#tXa#tX#Q#tXe#tXk#tX~P2zOTsOZUO[TOctOgvOhvOr&pO!S{O!T{O!UxO!WzO!b!OO!fdO!hfO!oyO!viO#RmO#lQO#mQO$f[O$g]O$h^O$i_O~Ou#rO~P!D]O#j!wa#|!waw!wa!f!wad!wa#{!waa!wa#Q!wae!wak!wa~P6aO#|piwpidpi#{piapi#Qpiepikpi~PDcOy!`O{!mO!h!fO#x!dOZxi[xi_ximxioxiqxirxisxiu$_X#jxi#|xiwxi!fxidxi#{xiaxi#Qxiexikxi~O]!_O^!_O~P!G_Oy!`O~PIqOZ!^O[!^O]!_O^!_O_&wOo&vOq&qOr&qOs'gOy!`O{!mO!h!fO#x!dOu$_X~Omli#jli#|liwli!flidli#{liali#Qlielikli~P!IZOZ!^O[!^O]!_O^!_O_&wOq&qOr&qOs'gOy!`O{!mO!h!fO#x!dOu$_X~Omnioni#jni#|niwni!fnidni#{niani#Qnienikni~P!KOO#jSq#|SqwSq!fSqdSq#{SqaSq#QSqeSqkSq~P6aOZUO#O'XO~P!|O#jfq#|fqwfq!ffqdfq#{fqafq#Qfqefqkfq~P6aO#|pywpydpy#{pyapy#Qpyepykpy~P!4eO#j#PX#|#PXw#PX!f#PXd#PX#{#PXa#PX#Q#PXe#PXk#PX~P6aO#jb!R#|b!Rwb!R!fb!Rdb!R#{b!Rab!R#Qb!Reb!Rkb!R~P6aOTtXctXgtXhtX!StX!TtX!UtX!WtX!btX!ftX!otX!vtX#RtX#jtX#ltX#mtX#ntX$ftX$gtX$htX$itX$utX~P$yOk'PO~Oo'RO~P!$POw'SO~Oe'YO~P6aO$['[O~O!X'dO~Ou'hO~Od'iO~P6aO!['mO~OQP$f#x]~",goto:"!$f$uPPPP$vP&Q&W&_&t(sPPPPP(|P$vPPP$vPP)P)VP$vP$vP$vPPP)^P)jP$vP$vPP)s*Y*e*YPPPPPPP*YPP*YP,V,Y*YP,`,f$vP$vP$v,m-w-z.Q-wP.Z/e.Z.Z0v2QP$v3[$v4f4f5p5vP5}PP4f6V6]0r6aP6iP6l6r6y7P7V7]8y9T9Z9a9g9m9s9yPPPPPPPP:P:T=X>c?o?sPP?xPP@O@UAbBnBrBwB|CxDvEvGSPGVPGZHZIZJeJkJn$vJtJtPPPPLOMYM]Ng=XNj! t! w!#T!#X!$c#aiOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nQ![RR'_'eS!YR'eR$l#eU!WR#e'eU#Sw$`'fY#v!q!y$|%S'hT&S%k&b#zWOPVXhkru|}!]!a!b!c!e!g!i!j!k!l#]#_#c#g#r#t$O$Y$^$_$b$e$p${%R%U%b%e%j%l%u%v&P&a&e&m&p&q&r&s&t&u&v&w&y'P'R'S'V'X'Y'[']'g'i'm'nh!VRw!y#e$`$|%S%k&b'e'f'hU#a!V#b#uR#u!qU#a!V#b#uT$W!{$XR$k#cQ#WwR'`'fS#Uw'fR%]$`U!QP#_#rS#s!l&wR$f#]Q!TPQ$h#_R$q#rQ$z#tQ%p%RQ&R%jU&W%l&e'mQ&h&aT&n&m'[c$s#t%R%j%l&a&e&m'['mrjOVr}!]!a!b!c!i!j!l#g$b$p%U%u%vQ#m!eU$r#t%R&mS%{%e'V[&Q%j%l&a&e'['m!m&oPhku|!g!k!q#]#_#c#r$O$Y$^$_$e${%b&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR&V%kQ&T%kR&i&bQ&Z%lR'j'mS&X%l'mR&k&e#aYOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR#{!qQ#x!qR%n$|S#w!q$|V$S!y%S'h#abOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'n#`bOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nQ!s_T!|n$Z#a`OPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'n#aaOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'n#agOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'n#aoOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nQ$V!yR'b'hS$T!y'hR%q%SS%t%U'ST&[%u'XQ#OnR%X$ZT!}n$ZS!{n$ZT$W!{$XR!TPQrOR#QrS#b!V#uR$i#bQ#f!YR$m#fQ$a#UR%^$aQ#^!QR$g#^#jXOPVhkru|}!]!a!b!c!e!g!i!j!k!l!q#]#_#c#g#r#t$O$Y$^$_$b$e$p${%R%U%b%e%u%v&m&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nS!pX&P_&P%j%l&a&e'V'['mQ%f$rS%|%f&_R&_&QQ&c&TR&j&cQ&f&XR&l&fQ$}#xR%o$}Q$P!wR%Q$PQ%T$TR%r%TQ$X!{R%V$XQ$[#OR%Y$[TqOrSSOrY!PP#]#_#r&wS!oV']Q!uhS!wk!qQ#RuQ#Z|Q#[}Q#i!]Q#j!aQ#k!bS#l!c&tQ#n!gQ#o!iQ#p!jQ#q!kQ$j#cQ$n#gQ%P$OQ%W$YQ%Z$^Q%[$_Q%_$bQ%a$eQ%c$pQ%m${S%s%U%uQ%z%bQ&]%vQ&x&pQ&z&qQ&{&rQ&|&sQ&}&uQ'O&vQ'Q&yQ'T'PQ'U'RS'W'S'XQ'Z'YQ'^!lQ'a'gQ'c'iR'l'n#apOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nrROVr}!]!a!b!c!i!j!l#g$b$p%U%u%v!m'ePhku|!g!k!q#]#_#c#r$O$Y$^$_$e${%b&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nT!ZR'eV!XR#e'eQ#c!WR$_#SQ#g![R&y'_ruOVr}!]!a!b!c!i!j!l#g$b$p%U%u%v!m'nPhku|!g!k!q#]#_#c#r$O$Y$^$_$e${%b&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nrwOVr}!]!a!b!c!i!j!l#g$b$p%U%u%v!m'fPhku|!g!k!q#]#_#c#r$O$Y$^$_$e${%b&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nT#Vw'fV#Tw$`'fV!RP#_#rf!aS#[#i#o#p$n%_%c%s&]'^!X&r!P!u!w#R#Z#n#q$j%P%W%Z%[%a%m%z&x&z&}'O'Q'T'U'W'Z'a'c'lh!bS#[#i#j#o#p$n%_%c%s&]'^!Z&s!P!u!w#R#Z#n#q$j%P%W%Z%[%a%m%z&x&z&{&}'O'Q'T'U'W'Z'a'c'lj!cS#[#i#j#k#o#p$n%_%c%s&]'^!]&t!P!u!w#R#Z#n#q$j%P%W%Z%[%a%m%z&x&z&{&|&}'O'Q'T'U'W'Z'a'c'lrVOVr}!]!a!b!c!i!j!l#g$b$p%U%u%v!m']Phku|!g!k!q#]#_#c#r$O$Y$^$_$e${%b&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR&U%kT&Y%l'm!{!eS!P!o!u!w#R#Z#[#i#j#k#l#n#o#p#q$j$n%P%W%Z%[%_%a%c%m%s%z&]&x&z&{&|&}'O'Q'T'U'W'Z'^'a'c'l!{!gS!P!o!u!w#R#Z#[#i#j#k#l#n#o#p#q$j$n%P%W%Z%[%_%a%c%m%s%z&]&x&z&{&|&}'O'Q'T'U'W'Z'^'a'c'l#aZOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nQ!rZR!t`R#y!qQ!xkR#z!q#acOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'n#a|OPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR%y%a#ahOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR#}!u#akOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR$R!xrlOVr}!]!a!b!c!i!j!l#g$b$p%U%u%v!m'kPhku|!g!k!q#]#_#c#r$O$Y$^$_$e${%b&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nT$U!y'h#anOPVhkru|}!]!a!b!c!g!i!j!k!l!q#]#_#c#g#r$O$Y$^$_$b$e$p${%U%b%u%v&p&q&r&s&t&u&v&w&y'P'R'S'X'Y']'g'i'nR#Pn",nodeNames:"⚠ LineComment BlockComment Expressions ForExpression for InExpressions InExpression Name Identifier Identifier ArithOp ArithOp ArithOp ArithOp in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between PositiveUnaryTest ( PositiveUnaryTests ) ArithmeticExpression ArithOp InstanceOfExpression instance of Type QualifiedName VariableName SpecialType days time duration years months date > ListType list < ContextType context ContextEntryTypes ContextEntryType FunctionType function ArgumentTypes ArgumentType PathExpression ] FilterExpression [ FunctionInvocation SpecialFunctionName NamedParameters NamedParameter ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral DateTimeConstructor AtLiteral ? SimplePositiveUnaryTest Interval ParenthesizedExpression List FunctionDefinition FormalParameters FormalParameter external FunctionBody } { Context ContextEntry Key Name Identifier UnaryTests Wildcard not",maxTerm:175,context:YJ,nodeProps:[["group",-17,4,18,22,28,30,32,40,42,67,69,71,84,85,87,88,89,96,"Expression",47,"Expression Expression",-5,77,78,79,80,81,"Expression Literal"],["closedBy",37,")",70,"]",95,"}"],["openedBy",39,"(",68,"[",94,"{"]],propSources:[GJ],skippedNodes:[0,1,2],repeatNodeCount:14,tokenData:"+l~RuXY#fYZ$ZZ[#f]^$Zpq#fqr$`rs$kwx&cxy&hyz&mz{&r{|'P|}'U}!O'Z!O!P'h!P!Q(Q!Q![){![!]*^!]!^*c!^!_*h!_!`$f!`!a*w!b!c+R!}#O+W#P#Q+]#Q#R&z#o#p+b#q#r+g$f$g#f#BY#BZ#f$IS$I_#f$I|$I}$Z$I}$JO$Z$JT$JU#f$KV$KW#f&FU&FV#f?HT?HU#f~#kY#p~XY#fZ[#fpq#f$f$g#f#BY#BZ#f$IS$I_#f$JT$JU#f$KV$KW#f&FU&FV#f?HT?HU#f~$`O#q~~$cP!_!`$f~$kOq~~$pW$g~OY$kZr$krs%Ys#O$k#O#P%_#P;'S$k;'S;=`&]<%lO$k~%_O$g~~%bRO;'S$k;'S;=`%k;=`O$k~%pX$g~OY$kZr$krs%Ys#O$k#O#P%_#P;'S$k;'S;=`&];=`<%l$k<%lO$k~&`P;=`<%l$k~&hO#y~~&mOu~~&rOw~~&wP^~z{&z~'POy~~'UO[~~'ZO#|~R'`PZP!`!a'cQ'hO$[Q~'mQ#x~!O!P's!Q!['x~'xO#{~~'}P$f~!Q!['x~(VQ]~z{(]!P!Q)d~(`TOz(]z{(o{;'S(];'S;=`)^<%lO(]~(rVOz(]z{(o{!P(]!P!Q)X!Q;'S(];'S;=`)^<%lO(]~)^OQ~~)aP;=`<%l(]~)iSP~OY)dZ;'S)d;'S;=`)u<%lO)d~)xP;=`<%l)d~*QQ$f~!O!P*W!Q![){~*ZP!Q!['x~*cO$Y~~*hO$u~R*oP![QrP!_!`*rP*wOrPR+OP!XQrP!_!`*r~+WO$i~~+]O!h~~+bO!f~~+gO#R~~+lO#Q~",tokenizers:[qJ,jJ,BJ,0,1],topRules:{Expressions:[0,3],UnaryTests:[1,101]},dynamicPrecedences:{30:-1,71:-1,73:-1,126:-1},specialized:[{term:120,get:e=>ZJ[e]||-1}],tokenPrec:4424});class JJ extends LJ{constructor(e={entries:{}}){super(e),this.value.entries=this.value.entries||{};const t=this.value;for(const e in t.entries){t.entries[e]instanceof JJ||(t.entries[e]=this.constructor.of(t.entries[e]))}}getKeys(){return Object.keys(this.value.entries)}get(e){const t=this.value.entries[e];return t&&t.atomic?t.atomicValue:t}set(e,t){return this.constructor.of({...this.value,entries:{...this.value.entries,[e]:t}})}static of(...e){const t=e=>this.isAtomic(e)?e instanceof this?e.value:{atomic:!0,atomicValue:e}:{...e};return new this(e.reduce(((e,n)=>{const{entries:i={},...r}=t(n);return{...e,...r,entries:{...e.entries,...i}}}),{}))}}function e0(e){const t=[];return e.forEach((e=>{e.origin.forEach((n=>{const i=function(e,t){const n=DK(t,"zeebe:IoMapping")[0];if(!n)return;let i;i=t===e.scope?n.inputParameters:n.outputParameters;if(!i)return;const r=i.find((t=>t.target===e.name));if(!r||!r.source)return;const o=r.source.substring(1),s=t0(o),a=n0(s);return{expression:o,unresolved:a}}(e,n);if(!i)return;const{expression:r,unresolved:o}=i;t.push({variable:e,expression:r,unresolved:o})}))})),function(e,t){const n=[];e.forEach((e=>{const{variable:t,unresolved:i}=e,r=n.findIndex((({unresolved:e})=>e.includes(t.name)));if(r>-1)return void n.splice(r,0,e);const o=n.findLastIndex((({variable:e})=>i.includes(e.name)));o>-1?n.splice(o+1,0,e):n.push(e)}));const i=t.filter((t=>!e.find((({variable:e})=>{})))),r={name:"OuterContext",entries:i0(i)},o=[];n.forEach((({variable:e,expression:t})=>{const n=t0(t,function(e,t){const n={entries:{}},i=t.origin.flatMap((e=>[e,...zK(e)]));for(const t in e.entries){const r=e.entries[t];i.find((e=>e.id===r.scope.id))&&(n.entries[t]=r)}return n}(r,e));let i=n.computedValue();i instanceof JJ||(i=JJ.of(i)),i.scope=e.scope,r.entries[e.name]=i,o.push({newVariable:r0({[e.name]:i})[0],oldVariable:e})}));return o.map((({newVariable:e,oldVariable:t})=>t?{...e,...t}:e))}(t,e)}function t0(e,t={}){const n=HJ(t,JJ);let i=null;const r=new DE({start:n.start,reduce(...e){const t=n.reduce(...e);return i=t,t}});return KJ.configure({contextTracker:r}).parse(e),i}function n0(e){const t=[];return t.push(...e.children.flatMap(n0)),"VariableName"!==e.name||e.value||t.push(e.raw),t}function i0(e){if(!e)return;const t={};return e.forEach((e=>{t[e.name]={...e},t[e.name].entries=i0(e.entries)})),t}function r0(e){if(!e)return;const t=[];for(const n in e){let i=e[n];i instanceof JJ&&(i=i.value),i?t.push({...o0(i),entries:r0(i.entries),name:n,scope:i.scope}):t.push({name:n})}return t}function o0(e){return{...e,type:s0(e),info:a0(e)}}function s0(e){return e?e.type?e.type:e.entries&&Object.keys(e.entries).length?"Context":e.atomicValue?function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(typeof e.atomicValue):"":""}function a0(e){return e?e.info?e.info:e.atomicValue?""+e.atomicValue:"":""}class l0{constructor(e){this._variableResolver=e,this.register()}getVariables(e){}register(){this._variableResolver.registerProvider(this)}}l0.$inject=["variableResolver"];const c0={__init__:["variableResolver","connectorVariableProvider"],variableResolver:["type",class extends QK{constructor(e,t){super(e,t),this._baseExtractor=xX,e.on("variableResolver.parseVariables",2e3,this._resolveIoMappings)}async getVariablesForElement(e,t){const n=await super.getVariablesForElement(e),i=Fr(e);if(!t)return n;const r=jK(i);if(!r)return n;const o=[];if(Lr(t,"zeebe:Input")){const e=r.inputParameters,n=e.slice(e.indexOf(t)).map((e=>e.target));o.push(...n)}const s=r.outputParameters;if(Lr(t,"zeebe:Output")){const e=s.slice(s.indexOf(t)).map((e=>e.target));o.push(...e)}else if(s){const e=s.map((e=>e.target));o.push(...e)}return n.filter((e=>e.origin.length>1||e.origin[0]!==i||(!(!Lr(t,"zeebe:Output")||!e.provider.find((e=>e!==this._baseExtractor)))||!o.includes(e.name))))}_resolveIoMappings(e,t){const n=t.variables,i={};for(const e in n){const t=n[e],r=e0(t);i[e]=[...t,...r]}t.variables=i}}],connectorVariableProvider:["type",class extends l0{getVariables(e){const t=[],n=DK(e,"zeebe:TaskHeaders")[0];if(!n||!n.values)return;const i=n.values,r=i.find((e=>"resultVariable"===e.key)),o=i.find((e=>"resultExpression"===e.key));if(r&&r.value&&t.push({name:r.value}),o&&o.value){const e=r0(t0(o.value.substring(1)).computedValue());e&&e.length>0&&t.push(...e[0].entries)}return t}}]},p0="camundaModeler:exampleOutputJson";function u0(e){const t=h0(e,p0);if(t)return t.get("value")}function h0(e,t){const n=function(e,t){const n=Fr(e);let i=[];const r=n.get("extensionElements");if(void 0!==r){const e=r.get("values");void 0!==e&&(i=e.filter((e=>Lr(e,t))))}return i}(e,"zeebe:Properties");if(0===n.length)return;return n[0].get("properties").find((e=>e.get("name")===t))}function d0(e={}){if("object"==typeof e&&null!==e)return Object.keys(e).map((t=>{let n=e[t];const i={name:t,info:JSON.stringify(n,null,2)};return Array.isArray(n)?(i.isList=!0,i.type="List",n.length>0&&(i.entries=d0(n[0])),i):(i.type=function(e){if(null===e)return"";const t=typeof e;if("object"===t)return"Context";return function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(t)}(n),i.entries=d0(n),i)}))}var f0={__init__:["exampleProvider"],exampleProvider:["type",class extends l0{getVariables(e){const t=u0(e);if(!t)return;const n=function(e){try{const t=JSON.parse(e);return d0(t)}catch(e){return[]}}(t);return n.map((t=>({...t,scope:e})))}}]};const m0=e=>{const{element:t}=e,n=LI("debounceInput"),i=LI("translate"),r=LI("commandStack"),o=LI("moddle"),s=LI("injector");return HQ({element:t,label:i("Example output"),description:Ul`
|
|
173
173
|
<a href="https://docs.camunda.io/docs/components/modeler/data-handling/" target="_blank" rel="noopener" title=${i("Example Data documentation")}>
|
|
174
174
|
${i("About example data")}
|
|
175
|
-
</a>`,id:"exampleJson",getValue:()=>u0(t),setValue:e=>{const n=[],{commands:i,zeebeProperties:a}=g0(t,s);n.push(...i);const l=h0(t,p0);l?e?n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:l,properties:{value:e}}}):n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{properties:v0(a.get("properties"))}}}):n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{properties:[...a.get("properties"),y0(e,o)]}}}),r.execute("properties-panel.multi-command-executor",n)},debounce:n,validate:e=>{if(e)try{JSON.parse(e)}catch(e){return e.message}},monospace:!0})},g0=(e,t)=>{const n=[],i=Fr(e),r=t.get("bpmnFactory");let o=i.get("extensionElements");o||(o=r.create("bpmn:ExtensionElements",{values:[]}),o.$parent=i,n.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:i,properties:{extensionElements:o}}}));let s=o.get("values").find((e=>"zeebe:Properties"===e.$type));return s||(s=r.create("zeebe:Properties",{properties:[]}),s.$parent=o,n.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:o,properties:{values:[...o.get("values"),s]}}})),{zeebeProperties:s,commands:n}};function y0(e,t){return t.create("zeebe:Property",{name:p0,value:e})}function v0(e){return e.filter((e=>e.get("name")!==p0))}class b0{constructor(e,t){this._injector=t,e.registerProvider(100,this)}getGroups(e){const t=this._injector.get("translate"),n=this._injector.get("elementTemplates",!1);let i=null;n&&(i=n.get(e));const r=!!i;return e=>{if(r)return e;const n={id:"additionalDataGroup",label:t("Example data"),entries:[{id:"exampleJson",component:m0,isEdited:YQ}],component:iQ};return e.push(n),e}}}b0.$inject=["propertiesPanel","injector"];var O0={__depends__:[f0,{__init__:["dataPropertiesProvider"],dataPropertiesProvider:["type",b0]}]};const x0="data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22"><path d="m12.5 5.5.3-.4 3.6-3.6c.5-.5 1.3-.5 1.7 0l1 1c.5.4.5 1.2 0 1.7l-3.6 3.6-.4.2v.2c0 1.4.6 2 1 2.7v.6l-1.7 1.6c-.2.2-.4.2-.6 0L7.3 6.6a.4.4 0 0 1 0-.6l.3-.3.5-.5.8-.8c.2-.2.4-.1.6 0 .9.5 1.5 1.1 3 1.1zm-9.9 6 4.2-4.2 6.3 6.3-4.2 4.2c-.3.3-.9.3-1.2 0l-.8-.8-.9-.8-2.3-2.9" /></svg>');function w0(e,t,n,i){this._contextPad=e,this._popupMenu=t,this._canvas=n,this._translate=i,e.registerProvider(this)}function _0(e,t,n){var i=e.getContainer(),r=t.getPad(n).html,o=i.getBoundingClientRect(),s=r.getBoundingClientRect(),a=s.top-o.top;return{x:s.left-o.left,y:a+s.height+5}}w0.$inject=["contextPad","popupMenu","canvas","translate"],w0.prototype.getContextPadEntries=function(e){return this._createPopupAction([e])},w0.prototype.getMultiElementContextPadEntries=function(e){return this._createPopupAction(e)},w0.prototype._createPopupAction=function(e){const t=this._canvas,n=this._translate,i=this._contextPad,r=this._popupMenu;return{"set-color":{group:"edit",className:"bpmn-icon-color",title:n("Set Color"),imageUrl:x0,action:{click:(n,o)=>{var s={..._0(t,i,e),cursor:{x:n.x,y:n.y}};r.open(e,"color-picker",s)}}}}};const E0=[{label:"Default",fill:void 0,stroke:void 0},{label:"Blue",fill:"#BBDEFB",stroke:"#0D4372"},{label:"Orange",fill:"#FFE0B2",stroke:"#6B3C00"},{label:"Green",fill:"#C8E6C9",stroke:"#205022"},{label:"Red",fill:"#FFCDD2",stroke:"#831311"},{label:"Purple",fill:"#E1BEE7",stroke:"#5B176D"}];function P0(e,t,n,i){this._popupMenu=t,this._modeling=n,this._translate=i,this._colors=e&&e.colors||E0,this._popupMenu.registerProvider("color-picker",this)}function k0(e,t,n){return function(){e.setColor(t,n)}}P0.$inject=["config.colorPicker","popupMenu","modeling","translate"],P0.prototype.getEntries=function(e){var t=this,n=Oe('\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="100%">\n <rect rx="2" x="1" y="1" width="22" height="22" fill="var(--fill-color)" stroke="var(--stroke-color)"></rect>\n </svg>\n ');return this._colors.map((function(i){return n.style.setProperty("--fill-color",i.fill||"white"),n.style.setProperty("--stroke-color",i.stroke||"rgb(34, 36, 42)"),{title:t._translate(i.label),id:i.label.toLowerCase()+"-color",imageUrl:`data:image/svg+xml;utf8,${encodeURIComponent(n.outerHTML)}`,action:k0(t._modeling,e,i)}}))};var S0={__init__:["colorContextPadProvider","colorPopupProvider"],colorContextPadProvider:["type",w0],colorPopupProvider:["type",P0]};function T0(e,t,n,i,r){this._eventBus=t,this._elementTemplates=n,this._translate=i,this._popupMenu=r;(!e||!1!==e.elementTemplateChooser)&&t.on("elementTemplates.select",(e=>{const{element:t}=e;this.open(t).then((e=>{n.applyTemplate(t,e)})).catch((e=>{"user-canceled"!==e&&console.error("elementTemplate.select :: error",e)}))}))}function $0(e,t,n,i){this._popupMenu=e,this._eventBus=t,this._translate=n,this._elementTemplates=i,this.register()}T0.$inject=["config.connectorsExtension","eventBus","elementTemplates","translate","popupMenu"],T0.prototype.open=function(e){const t=this._popupMenu,n=this._translate,i=this._eventBus;return new Promise(((r,o)=>{const s=()=>o("user-canceled");i.once("popupMenu.close",s),i.once("elementTemplateChooser.chosen",(e=>{const{template:t}=e;i.off("popupMenu.close",s),r(t)})),t.open(e,"element-template-chooser",{x:0,y:0},{title:n("Choose element template"),search:!0,width:350})}))},$0.$inject=["popupMenu","eventBus","translate","elementTemplates"],$0.prototype.register=function(){this._popupMenu.registerProvider("element-template-chooser",this)},$0.prototype.getPopupMenuEntries=function(e){return this.getTemplateEntries(e).reduce(((e,[t,n])=>(e[t]=n,e)),{})},$0.prototype.getTemplateEntries=function(e){const t=this._eventBus,n=this._translate;return this._getMatchingTemplates(e).map((i=>{const{icon:r={},category:o}=i;return[`apply-template-${i.id}`,{label:i.name&&n(i.name),description:i.description&&n(i.description),documentationRef:i.documentationRef,imageUrl:r.contents,group:o&&{...o,name:n(o.name)},action:()=>{t.fire("elementTemplateChooser.chosen",{element:e,template:i})}}]}))},$0.prototype._getMatchingTemplates=function(e){return this._elementTemplates.getLatest().filter((t=>Vr(e,t.appliesTo)&&!function(e,t){const n=Fr(e);if(n)return n.get("modelerTemplate")===t.id;return!1}(e,t)))};var C0={__init__:["elementTemplateChooser","elementTemplateChooserEntryProvider"],elementTemplateChooser:["type",T0],elementTemplateChooserEntryProvider:["type",$0]};var M0=1250;function A0(e,t,n){this._bpmnRenderer=t,this._iconProperty=e&&e.iconProperty,pt.call(this,n,M0)}e(A0,pt),A0.prototype.canRender=function(e){return!En(e)&&!(!Vr(e,["bpmn:Task","bpmn:Event"])||!this._getIcon(e))},A0.prototype._getIcon=function(e){return function(e,t){return t=t||"zeebe:modelerTemplateIcon",Fr(e).get(t)}(e,this._iconProperty)},A0.prototype.drawShape=function(e,t){var n=this._bpmnRenderer.handlers[["bpmn:Task","bpmn:StartEvent","bpmn:IntermediateEvent","bpmn:BoundaryEvent","bpmn:EndEvent"].find((e=>Lr(t,e)))],i=n(e,t,{renderIcon:!1}),r=this._getIcon(t),o=Lr(t,"bpmn:Task")?{x:5,y:5}:{x:(t.width-18)/2,y:(t.height-18)/2},s=ze("image");return $e(s,{href:r,width:18,height:18,...o}),Pe(e,s),i},A0.$inject=["config.elementTemplateIconRenderer","bpmnRenderer","eventBus"];const R0=[{__init__:["elementTemplateIconRenderer"],elementTemplateIconRenderer:["type",A0]}],D0={zeebe:{name:"zeebe",prefix:"zeebe",uri:"http://camunda.org/schema/zeebe/1.0",xml:{tagAlias:"lowerCase"},associations:[],types:[{name:"ZeebeServiceTask",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:SendTask","bpmn:EndEvent","bpmn:IntermediateThrowEvent"],properties:[{name:"retryCounter",type:"String",isAttr:!0}]},{name:"IoMapping",superClass:["Element"],properties:[{name:"ioMapping",type:"IoMapping"},{name:"inputParameters",isMany:!0,type:"Input"},{name:"outputParameters",isMany:!0,type:"Output"}],meta:{allowedIn:["bpmn:CallActivity","bpmn:Event","bpmn:ReceiveTask","zeebe:ZeebeServiceTask","bpmn:SubProcess","bpmn:UserTask"]}},{name:"InputOutputParameter",properties:[{name:"source",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"}]},{name:"Subscription",superClass:["Element"],properties:[{name:"correlationKey",isAttr:!0,type:"String"}]},{name:"Input",superClass:["InputOutputParameter"],meta:{allowedIn:["bpmn:CallActivity","zeebe:ZeebeServiceTask","bpmn:SubProcess","bpmn:UserTask"]}},{name:"Output",superClass:["InputOutputParameter"],meta:{allowedIn:["bpmn:CallActivity","bpmn:Event","bpmn:ReceiveTask","zeebe:ZeebeServiceTask","bpmn:SubProcess","bpmn:UserTask"]}},{name:"TaskHeaders",superClass:["Element"],meta:{allowedIn:["zeebe:ZeebeServiceTask","bpmn:UserTask"]},properties:[{name:"values",type:"Header",isMany:!0}]},{name:"Header",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"key",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"TaskDefinition",superClass:["Element"],meta:{allowedIn:["zeebe:ZeebeServiceTask"]},properties:[{name:"type",type:"String",isAttr:!0},{name:"retries",type:"String",isAttr:!0}]},{name:"LoopCharacteristics",superClass:["Element"],meta:{allowedIn:["zeebe:ZeebeServiceTask","bpmn:ReceiveTask","bpmn:SubProcess"]},properties:[{name:"inputCollection",type:"String",isAttr:!0},{name:"inputElement",type:"String",isAttr:!0},{name:"outputCollection",type:"String",isAttr:!0},{name:"outputElement",type:"String",isAttr:!0}]},{name:"CalledElement",superClass:["Element"],meta:{allowedIn:["bpmn:CallActivity"]},properties:[{name:"processId",type:"String",isAttr:!0},{name:"processIdExpression",type:"String",isAttr:!0},{name:"propagateAllChildVariables",isAttr:!0,type:"Boolean"}]},{name:"UserTaskForm",superClass:["Element"],meta:{allowedIn:["bpmn:Process"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"body",type:"String",isBody:!0}]},{name:"FormDefinition",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"formKey",type:"String",isAttr:!0}]},{name:"CalledDecision",superClass:["Element"],meta:{allowedIn:["bpmn:BusinessRuleTask"]},properties:[{name:"decisionId",type:"String",isAttr:!0},{name:"resultVariable",type:"String",isAttr:!0}]},{name:"AssignmentDefinition",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"assignee",type:"String",isAttr:!0},{name:"candidateGroups",type:"String",isAttr:!0},{name:"candidateUsers",type:"String",isAttr:!0}]},{name:"TaskSchedule",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"dueDate",type:"String",isAttr:!0},{name:"followUpDate",type:"String",isAttr:!0}]},{name:"Properties",superClass:["Element"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"Property",properties:[{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Collaboration","bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"},{name:"modelerTemplateVersion",isAttr:!0,type:"Integer"},{name:"modelerTemplateIcon",isAttr:!0,type:"String"}]},{name:"TemplatedRootElement",isAbstract:!0,extends:["bpmn:Error","bpmn:Escalation","bpmn:Message","bpmn:Signal"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"}]},{name:"Script",superClass:["Element"],meta:{allowedIn:["bpmn:ScriptTask"]},properties:[{name:"expression",type:"String",isAttr:!0},{name:"resultVariable",type:"String",isAttr:!0}]}]}},j0=Object.prototype.toString,q0=Object.prototype.hasOwnProperty;function B0(e){return void 0===e}function N0(e){return"[object Array]"===j0.call(e)}function z0(e){return"[object Object]"===j0.call(e)}function Q0(e){return"[object Number]"===j0.call(e)}function X0(e){const t=j0.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t||"[object Proxy]"===t}function I0(e,t){return q0.call(e,t)}function L0(e,t){const n=function(e){return X0(e)?e:t=>t===e}(t);let i;return V0(e,(function(e,t){if(n(e,t))return i=e,!1})),i}function V0(e,t){let n,i;if(B0(e))return;const r=N0(e)?U0:F0;for(let o in e)if(I0(e,o)&&(n=e[o],i=t(n,r(o)),!1===i))return n}function F0(e){return e}function U0(e){return Number(e)}function H0(e,...t){return Object.assign(e,...t)}const Y0={id:"events",name:"Events"},W0={id:"tasks",name:"Tasks"},G0={id:"data",name:"Data"},Z0={id:"participants",name:"Participants"},K0={id:"subprocess",name:"Sub Processes"},J0={id:"gateways",name:"Gateways"},e1=[{label:"Start Event",actionName:"none-start-event",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"Boundary Event",actionName:"none-boundary-event",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:BoundaryEvent"}},{label:"End Event",actionName:"none-end-event",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}}].map((e=>({...e,group:Y0}))),t1=[{label:"Message Start Event",actionName:"message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}].map((e=>({...e,group:Y0}))),n1=[{label:"Message Intermediate Catch Event",actionName:"message-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Message Intermediate Throw Event",actionName:"message-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Intermediate Catch Event",actionName:"timer-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Intermediate Throw Event",actionName:"escalation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Intermediate Catch Event",actionName:"conditional-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Link Intermediate Catch Event",actionName:"link-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Link Intermediate Throw Event",actionName:"link-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Compensation Intermediate Throw Event",actionName:"compensation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal Intermediate Catch Event",actionName:"signal-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Signal Intermediate Throw Event",actionName:"signal-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}].map((e=>({...e,group:Y0}))),i1=[{label:"Message Boundary Event",actionName:"message-boundary",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Boundary Event",actionName:"timer-boundary",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Boundary Event",actionName:"escalation-boundary",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Boundary Event",actionName:"conditional-boundary",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Error Boundary Event",actionName:"error-boundary",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel Boundary Event",actionName:"cancel-boundary",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Signal Boundary Event",actionName:"signal-boundary",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Compensation Boundary Event",actionName:"compensation-boundary",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Boundary Event (non-interrupting)",actionName:"non-interrupting-message-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},{label:"Timer Boundary Event (non-interrupting)",actionName:"non-interrupting-timer-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},{label:"Escalation Boundary Event (non-interrupting)",actionName:"non-interrupting-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},{label:"Conditional Boundary Event (non-interrupting)",actionName:"non-interrupting-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},{label:"Signal Boundary Event (non-interrupting)",actionName:"non-interrupting-signal-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}}].map((e=>({...e,group:Y0}))),r1=[{label:"Message End Event",actionName:"message-end",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Escalation End Event",actionName:"escalation-end",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Error End Event",actionName:"error-end",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel End Event",actionName:"cancel-end",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Compensation End Event",actionName:"compensation-end",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal End Event",actionName:"signal-end",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Terminate End Event",actionName:"terminate-end",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}].map((e=>({...e,group:Y0}))),o1=[{label:"Exclusive Gateway",actionName:"exclusive-gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel Gateway",actionName:"parallel-gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive Gateway",search:"or",actionName:"inclusive-gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"},rank:-1},{label:"Complex Gateway",actionName:"complex-gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"},rank:-1},{label:"Event based Gateway",actionName:"event-based-gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}].map((e=>({...e,group:J0}))),s1=[{label:"Transaction",actionName:"transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event Sub Process",search:"subprocess",actionName:"event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Sub Process (collapsed)",search:"subprocess",actionName:"collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}},{label:"Sub Process (expanded)",search:"subprocess",actionName:"expanded-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!0}}].map((e=>({...e,group:K0}))),a1=[...o1,...[{label:"Task",actionName:"task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"User Task",actionName:"user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Service Task",actionName:"service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Send Task",actionName:"send-task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"},rank:-1},{label:"Receive Task",actionName:"receive-task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"},rank:-1},{label:"Manual Task",actionName:"manual-task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"},rank:-1},{label:"Business Rule Task",actionName:"rule-task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},{label:"Script Task",actionName:"script-task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},{label:"Call Activity",actionName:"call-activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}}].map((e=>({...e,group:W0}))),...s1,...e1,...t1,...n1,...r1,...i1,...[{label:"Data Store Reference",actionName:"data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}},{label:"Data Object Reference",actionName:"data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}].map((e=>({...e,group:G0}))),...[{label:"Expanded Pool",search:"Participant",actionName:"expanded-pool",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},{label:"Empty Pool",search:"Collapsed Participant",actionName:"collapsed-pool",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}}].map((e=>({...e,group:Z0})))];function l1(e,t,n,i,r,o,s){this._elementFactory=e,this._popupMenu=t,this._create=n,this._autoPlace=i,this._rules=r,this._create=n,this._mouse=o,this._translate=s,this.register()}l1.$inject=["elementFactory","popupMenu","create","autoPlace","rules","mouse","translate"],l1.prototype.register=function(){this._popupMenu.registerProvider("bpmn-append",this)},l1.prototype.getPopupMenuEntries=function(e){const t=this._rules,n=this._translate,i={};if(!t.allowed("shape.append",{element:e}))return[];return this._filterEntries(a1).forEach((t=>{const{actionName:r,className:o,label:s,target:a,description:l,group:c,search:p,rank:u}=t;i[`append-${r}`]={label:s&&n(s),className:o,description:l,group:c&&{...c,name:n(c.name)},search:p,rank:u,action:this._createEntryAction(e,a)}})),i},l1.prototype._filterEntries=function(e){return e.filter((e=>{const t=e.target,{type:n,eventDefinitionType:i}=t;return!["bpmn:StartEvent","bpmn:Participant"].includes(n)&&("bpmn:BoundaryEvent"!==n||!B0(i))}))},l1.prototype._createEntryAction=function(e,t){const n=this._elementFactory,i=this._autoPlace,r=this._create,o=this._mouse,s=i=>{const s=n.create("shape",t);return i instanceof KeyboardEvent&&(i=o.getLastMoveEvent()),r.start(i,s,{source:e})};return{click:this._canAutoPlaceElement(t)?()=>{const r=n.create("shape",t);i.append(e,r)}:s,dragstart:s}},l1.prototype._canAutoPlaceElement=e=>{const{type:t}=e;return"bpmn:BoundaryEvent"!==t&&(("bpmn:SubProcess"!==t||!e.triggeredByEvent)&&("bpmn:IntermediateCatchEvent"!==t||"bpmn:LinkEventDefinition"!==e.eventDefinitionType))};function c1(e,t,n,i){this._contextPad=e,this._popupMenu=t,this._translate=n,this._canvas=i,this.register()}function p1(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}function u1(e,t){var n=d1(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function h1(e,t){return function(e,t){return!!L0(e,t)}(t,(function(t){return u1(e,t)}))}function d1(e){return e&&e.businessObject||e}c1.$inject=["contextPad","popupMenu","translate","canvas"],c1.prototype.register=function(){this._contextPad.registerProvider(this)},c1.prototype.getContextPadEntries=function(e){const t=this._popupMenu,n=this._translate,i=this._getAppendMenuPosition.bind(this);if(!t.isEmpty(e,"bpmn-append"))return{append:{group:"model",html:'<div class="entry"><svg width="22" height="22" viewBox="0 0 5.82 5.82" xmlns="http://www.w3.org/2000/svg">\n <path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>\n </svg></div>',title:n("Append element"),action:{click:function(e,r){const o=H0(i(r),{cursor:{x:e.x,y:e.y}});t.open(r,"bpmn-append",o,{title:n("Append element"),width:300,search:!0})}}}}},c1.prototype._getAppendMenuPosition=function(e){const t=this._contextPad.getPad(e).html.getBoundingClientRect();return{x:t.right+5,y:t.top}};function f1(e){this._eventBus=e}function m1(e){return function(t,n,i,r,o){(X0(t)||Q0(t))&&(o=r,r=i,i=n,n=t,t=null),this.on(t,e,n,i,r,o)}}function g1(e){f1.call(this,e),this.init()}function y1(e){g1.call(this,e)}f1.$inject=["eventBus"],f1.prototype.on=function(e,t,n,i,r,o){if((X0(t)||Q0(t))&&(o=r,r=i,i=n,n=t,t=null),X0(n)&&(o=r,r=i,i=n,n=1e3),z0(r)&&(o=r,r=!1),!X0(i))throw new Error("handlerFn must be a function");N0(e)||(e=[e]);var s=this._eventBus;V0(e,(function(e){var a=["commandStack",e,t].filter((function(e){return e})).join(".");s.on(a,n,r?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,o):i,o)}))},f1.prototype.canExecute=m1("canExecute"),f1.prototype.preExecute=m1("preExecute"),f1.prototype.preExecuted=m1("preExecuted"),f1.prototype.execute=m1("execute"),f1.prototype.executed=m1("executed"),f1.prototype.postExecute=m1("postExecute"),f1.prototype.postExecuted=m1("postExecuted"),f1.prototype.revert=m1("revert"),f1.prototype.reverted=m1("reverted"),g1.$inject=["eventBus"],p1(g1,f1),g1.prototype.addRule=function(e,t,n){var i=this;"string"==typeof e&&(e=[e]),e.forEach((function(e){i.canExecute(e,t,(function(e,t,i){return n(e)}),!0)}))},g1.prototype.init=function(){},p1(y1,g1),y1.$inject=["eventBus"],y1.prototype.init=function(){this.addRule("shape.append",(function(e){const t=e.element,n=d1(t);return(!z0(i=t)||!I0(i,"labelTarget"))&&(!h1(t,["bpmn:EndEvent","bpmn:Group","bpmn:TextAnnotation","bpmn:Lane","bpmn:Participant","bpmn:DataStoreReference","bpmn:DataObjectReference"])&&(!t.waypoints&&((!u1(t,"bpmn:IntermediateThrowEvent")||!function(e,t){const n=d1(e);return!!L0(n.eventDefinitions||[],(function(e){return u1(e,t)}))}(t,"bpmn:LinkEventDefinition"))&&((!u1(t,"bpmn:SubProcess")||!n.triggeredByEvent)&&void 0))));var i}))};var v1,b1={__init__:["appendMenuProvider","appendContextPadProvider","appendRules"],appendMenuProvider:["type",l1],appendContextPadProvider:["type",c1],appendRules:["type",y1]};function O1(e,t,n,i,r,o){this._elementFactory=e,this._popupMenu=t,this._create=n,this._autoPlace=i,this._mouse=r,this._translate=o,this.register()}O1.$inject=["elementFactory","popupMenu","create","autoPlace","mouse","translate"],O1.prototype.register=function(){this._popupMenu.registerProvider("bpmn-create",this)},O1.prototype.getPopupMenuEntries=function(){const e={};return a1.forEach((t=>{const{actionName:n,className:i,label:r,target:o,description:s,group:a,search:l,rank:c}=t,p=this._createEntryAction(o);e[`create-${n}`]={label:r&&this._translate(r),className:i,description:s,group:a&&{...a,name:this._translate(a.name)},search:l,rank:c,action:{click:p,dragstart:p}}})),e},O1.prototype._createEntryAction=function(e){const t=this._create,n=this._mouse,i=this._popupMenu,r=this._elementFactory;let o;return s=>(i.close(),o="bpmn:Participant"===e.type?r.createParticipantShape(e):r.create("shape",e),s instanceof KeyboardEvent&&(s=n.getLastMoveEvent()),t.start(s,o))},"undefined"!=typeof document&&((v1=document.createElement("div")).innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',v1.getElementsByTagName("link").length,v1=void 0);function x1(e,t,n,i,r){this._palette=e,this._translate=t,this._popupMenu=n,this._canvas=i,this._mouse=r,this.register()}x1.$inject=["palette","translate","popupMenu","canvas","mouse"],x1.prototype.register=function(){this._palette.registerProvider(900,this)},x1.prototype.getPaletteEntries=function(e){const t=this._translate,n=this._popupMenu,i=this._canvas,r=this._mouse,o=e=>{if(e instanceof KeyboardEvent)return{x:(e=r.getLastMoveEvent()).x,y:e.y};const t=e&&e.target||(n='.djs-palette [data-action="create"]',(i=i||document).querySelector(n));var n,i;const o=t.getBoundingClientRect();return t&&{x:o.left+o.width/2+35,y:o.top+o.height/2+10}};return{create:{group:"create",html:'<div class="entry"> <svg width="46" height="46" viewBox="-2 -2 9.82 9.82" xmlns="http://www.w3.org/2000/svg">\n <path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>\n </svg></div>',title:t("Create element"),action:{click:function(e){const r=o(e),s=i.getRootElement();n.open(s,"bpmn-create",r,{title:t("Create element"),width:300,search:!0})}}}}};var w1={__init__:["createMenuProvider","createPaletteProvider"],createMenuProvider:["type",O1],createPaletteProvider:["type",x1]};function _1(e){this._injector=e,this.registerActions()}_1.$inject=["injector"],_1.prototype.registerActions=function(){const e=this._injector.get("editorActions",!1),t=this._injector.get("selection",!1),n=this._injector.get("contextPad",!1),i=this._injector.get("palette",!1),r=this._injector.get("popupMenu",!1),o={};t&&n&&i&&r&&i&&H0(o,{appendElement:function(e){const o=t&&t.get();1!=o.length||r.isEmpty(o[0],"bpmn-append")?i.triggerEntry("create","click",e):n.triggerEntry("append","click",e)}}),i&&H0(o,{createElement:function(e){i.triggerEntry("create","click",e)}}),e&&e.register(o)};var E1={__depends__:[b1,w1],__init__:["createAppendEditorActions"],createAppendEditorActions:["type",_1]},P1=["c","C"],k1=["v","V"],S1=["y","Y"],T1=["z","Z"];function $1(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function C1(e,t){return-1!==(e=N0(e)?e:[e]).indexOf(t.key)||-1!==e.indexOf(t.code)}function M1(e){return e.shiftKey}var A1=500;function R1(e,t){var n=this;e.on("editorActions.init",A1,(function(e){var i=e.editorActions;n.registerBindings(t,i)}))}function D1(e){this._injector=e,this._keyboard=this._injector.get("keyboard",!1),this._editorActions=this._injector.get("editorActions",!1),this._keyboard&&this._injector.invoke(R1,this)}R1.$inject=["eventBus","keyboard"],R1.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}n("undo",(function(e){if(function(e){return $1(e)&&!M1(e)&&C1(T1,e)}(e.keyEvent))return t.trigger("undo"),!0})),n("redo",(function(e){if(function(e){return $1(e)&&(C1(S1,e)||C1(T1,e)&&M1(e))}(e.keyEvent))return t.trigger("redo"),!0})),n("copy",(function(e){if(function(e){return $1(e)&&C1(P1,e)}(e.keyEvent))return t.trigger("copy"),!0})),n("paste",(function(e){if(function(e){return $1(e)&&C1(k1,e)}(e.keyEvent))return t.trigger("paste"),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(C1(["+","Add","="],n)&&$1(n))return t.trigger("stepZoom",{value:1}),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(C1(["-","Subtract"],n)&&$1(n))return t.trigger("stepZoom",{value:-1}),!0})),n("zoom",(function(e){var n=e.keyEvent;if(C1("0",n)&&$1(n))return t.trigger("zoom",{value:1}),!0})),n("removeSelection",(function(e){if(C1(["Backspace","Delete","Del"],e.keyEvent))return t.trigger("removeSelection"),!0}))},p1(D1,R1),D1.$inject=["injector"],D1.prototype.registerBindings=function(){const e=this._keyboard,t=this._editorActions;function n(n,i){t&&t.isRegistered(n)&&e&&e.addListener(i)}R1.prototype.registerBindings.call(this,e,t),n("appendElement",(function(n){const i=n.keyEvent;if(!e||!e.hasModifier(i))return e&&e.isKey(["a","A"],i)?(t&&t.trigger("appendElement",i),!0):void 0})),n("createElement",(function(n){const i=n.keyEvent;if(!e||!e.hasModifier(i))return e&&e.isKey(["n","N"],i)?(t&&t.trigger("createElement",i),!0):void 0}))};var j1={__depends__:[b1,w1,E1,{__depends__:[b1,w1],__init__:["createAppendKeyboardBindings"],createAppendKeyboardBindings:["type",D1]}]};function q1(e,t,n,i,r,o,s){this._popupMenu=e,this._translate=t,this._elementTemplates=n,this._autoPlace=i,this._create=r,this._mouse=o,this._rules=s,this.register()}q1.$inject=["popupMenu","translate","elementTemplates","autoPlace","create","move","rules"],q1.prototype.register=function(){this._popupMenu.registerProvider("bpmn-append",this)},q1.prototype.getPopupMenuEntries=function(e){return t=>{if(!this._rules.allowed("shape.append",{element:e}))return[];const n=this._filterTemplates(this._elementTemplates.getLatest());return H0(t,this.getTemplateEntries(e,n)),t}},q1.prototype.getTemplateEntries=function(e,t){const n={};return t.map((t=>{const{icon:i={},category:r}=t,o=`append.template-${t.id}`,s={id:"templates",name:this._translate("Templates")};n[o]={label:t.name,description:t.description,documentationRef:t.documentationRef,imageUrl:i.contents,group:r||s,action:this._getEntryAction(e,t)}})),n},q1.prototype._filterTemplates=function(e){return e.filter((e=>{const{appliesTo:t,elementType:n}=e,i=n&&n.value||t[0];return!["bpmn:StartEvent","bpmn:Participant"].includes(i)&&"bpmn:SequenceFlow"!==i}))},q1.prototype._getEntryAction=function(e,t){return{click:()=>{const n=this._elementTemplates.createElement(t);this._autoPlace.append(e,n)},dragstart:n=>{const i=this._elementTemplates.createElement(t);n instanceof KeyboardEvent&&(n=this._mouse.getLastMoveEvent()),this._create.start(n,i,{source:e})}}};var B1={__init__:["elementTemplatesAppendProvider"],elementTemplatesAppendProvider:["type",q1]};function N1(e,t,n,i,r){this._popupMenu=e,this._translate=t,this._elementTemplates=n,this._mouse=i,this._create=r,this.register()}N1.$inject=["popupMenu","translate","elementTemplates","mouse","create"],N1.prototype.register=function(){this._popupMenu.registerProvider("bpmn-create",this)},N1.prototype.getPopupMenuEntries=function(e){return t=>(H0(t,this.getTemplateEntries(e)),t)},N1.prototype.getTemplateEntries=function(){const e=this._elementTemplates.getLatest(),t={};return e.map((e=>{const{icon:n={},category:i}=e,r=`create.template-${e.id}`,o={id:"templates",name:this._translate("Templates")};t[r]={label:e.name,description:e.description,documentationRef:e.documentationRef,imageUrl:n.contents,group:i||o,action:{click:this._getEntryAction(e),dragstart:this._getEntryAction(e)}}})),t},N1.prototype._getEntryAction=function(e){const t=this._create,n=this._popupMenu,i=this._elementTemplates,r=this._mouse;return o=>{n.close();let s=i.createElement(e);return o instanceof KeyboardEvent&&(o=r.getLastMoveEvent()),t.start(o,s)}};var z1={__init__:["elementTemplatesCreateProvider"],elementTemplatesCreateProvider:["type",N1]};function Q1(e,t,n){this._popupMenu=e,this._translate=t,this._elementTemplates=n,this.register()}Q1.$inject=["popupMenu","translate","elementTemplates"],Q1.prototype.register=function(){this._popupMenu.registerProvider("bpmn-replace",this)},Q1.prototype.getPopupMenuEntries=function(e){return t=>{let n=Object.entries(t);return n=[...n,...this.getTemplateEntries(e)],n.reduce(((e,[t,n])=>(e[t]=n,e)),{})}},Q1.prototype.getTemplateEntries=function(e){return this._getMatchingTemplates(e).map((t=>{const{icon:n={},category:i}=t,r=`replace.template-${t.id}`,o={id:"templates",name:this._translate("Templates")};return[r,{label:t.name,description:t.description,documentationRef:t.documentationRef,imageUrl:n.contents,group:i||o,action:()=>{this._elementTemplates.applyTemplate(e,t)}}]}))},Q1.prototype._getMatchingTemplates=function(e){return this._elementTemplates.getLatest().filter((t=>h1(e,t.appliesTo)&&!function(e,t){const n=d1(e);if(n)return n.get("zeebe:modelerTemplate")===t.id;return!1}(e,t)))};var X1={__init__:["elementTemplatesReplaceProvider"],elementTemplatesReplaceProvider:["type",Q1]};function I1(e){return function(t){var n=t.target,i=d1(e),r=i.eventDefinitions&&i.eventDefinitions[0],o=i.$type===n.type,s=(r&&r.$type)===n.eventDefinitionType,a=!!n.triggeredByEvent==!!i.triggeredByEvent,l=void 0===n.isExpanded||n.isExpanded===function(e,t){return!u1(e,"bpmn:CallActivity")&&(u1(e,"bpmn:SubProcess")?(t=t||function(e){return e&&e.di}(e),!(!t||!u1(t,"bpmndi:BPMNPlane"))||t&&!!t.isExpanded):!u1(e,"bpmn:Participant")||!!d1(e).processRef)}(e);return!(o&&s&&a&&l)}}var L1=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Sub Process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}}],V1=L1,F1=Object.freeze({__proto__:null,BOUNDARY_EVENT:[{label:"Message Boundary Event",actionName:"replace-with-message-boundary",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Boundary Event",actionName:"replace-with-timer-boundary",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Boundary Event",actionName:"replace-with-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Boundary Event",actionName:"replace-with-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Error Boundary Event",actionName:"replace-with-error-boundary",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel Boundary Event",actionName:"replace-with-cancel-boundary",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Signal Boundary Event",actionName:"replace-with-signal-boundary",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Compensation Boundary Event",actionName:"replace-with-compensation-boundary",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-message-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},{label:"Timer Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},{label:"Escalation Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},{label:"Conditional Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},{label:"Signal Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}}],DATA_OBJECT_REFERENCE:[{label:"Data Store Reference",actionName:"replace-with-data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}}],DATA_STORE_REFERENCE:[{label:"Data Object Reference",actionName:"replace-with-data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}],END_EVENT:[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message End Event",actionName:"replace-with-message-end",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Escalation End Event",actionName:"replace-with-escalation-end",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Error End Event",actionName:"replace-with-error-end",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel End Event",actionName:"replace-with-cancel-end",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Compensation End Event",actionName:"replace-with-compensation-end",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal End Event",actionName:"replace-with-signal-end",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Terminate End Event",actionName:"replace-with-terminate-end",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}],EVENT_SUB_PROCESS:V1,EVENT_SUB_PROCESS_START_EVENT:[{label:"Message Start Event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Error Start Event",actionName:"replace-with-error-start",className:"bpmn-icon-start-event-error",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Escalation Start Event",actionName:"replace-with-escalation-start",className:"bpmn-icon-start-event-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Compensation Start Event",actionName:"replace-with-compensation-start",className:"bpmn-icon-start-event-compensation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-message-start",className:"bpmn-icon-start-event-non-interrupting-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!1}},{label:"Timer Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-start",className:"bpmn-icon-start-event-non-interrupting-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!1}},{label:"Conditional Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-start",className:"bpmn-icon-start-event-non-interrupting-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!1}},{label:"Signal Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-start",className:"bpmn-icon-start-event-non-interrupting-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!1}},{label:"Escalation Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-start",className:"bpmn-icon-start-event-non-interrupting-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!1}}],GATEWAY:[{label:"Exclusive Gateway",actionName:"replace-with-exclusive-gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel Gateway",actionName:"replace-with-parallel-gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive Gateway",actionName:"replace-with-inclusive-gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},{label:"Complex Gateway",actionName:"replace-with-complex-gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},{label:"Event based Gateway",actionName:"replace-with-event-based-gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}],INTERMEDIATE_EVENT:[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Intermediate Catch Event",actionName:"replace-with-message-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Message Intermediate Throw Event",actionName:"replace-with-message-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Intermediate Catch Event",actionName:"replace-with-timer-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Intermediate Throw Event",actionName:"replace-with-escalation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Intermediate Catch Event",actionName:"replace-with-conditional-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Link Intermediate Catch Event",actionName:"replace-with-link-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Link Intermediate Throw Event",actionName:"replace-with-link-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Compensation Intermediate Throw Event",actionName:"replace-with-compensation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal Intermediate Catch Event",actionName:"replace-with-signal-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Signal Intermediate Throw Event",actionName:"replace-with-signal-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],PARTICIPANT:[{label:"Expanded Pool",actionName:"replace-with-expanded-pool",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},{label:function(e){var t="Empty Pool";return e.children&&e.children.length&&(t+=" (removes content)"),t},actionName:"replace-with-collapsed-pool",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}}],SEQUENCE_FLOW:[{label:"Sequence Flow",actionName:"replace-with-sequence-flow",className:"bpmn-icon-connection"},{label:"Default Flow",actionName:"replace-with-default-flow",className:"bpmn-icon-default-flow"},{label:"Conditional Flow",actionName:"replace-with-conditional-flow",className:"bpmn-icon-conditional-flow"}],START_EVENT:[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Start Event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],START_EVENT_SUB_PROCESS:[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}}],SUBPROCESS_EXPANDED:[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Sub Process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}}],TASK:[{label:"Task",actionName:"replace-with-task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"User Task",actionName:"replace-with-user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Service Task",actionName:"replace-with-service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Send Task",actionName:"replace-with-send-task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"}},{label:"Receive Task",actionName:"replace-with-receive-task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"}},{label:"Manual Task",actionName:"replace-with-manual-task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"}},{label:"Business Rule Task",actionName:"replace-with-rule-task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},{label:"Script Task",actionName:"replace-with-script-task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},{label:"Call Activity",actionName:"replace-with-call-activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}},{label:"Sub Process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}},{label:"Sub Process (expanded)",actionName:"replace-with-expanded-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}}],TRANSACTION:L1});const U1=Object.values(F1);function H1(e,t,n){this._popupMenu=e,this._translate=t,this._elementTemplates=n,this.register()}function Y1(e,t,n){const i=e[t];return!!i&&n.findIndex((([e])=>e===i.actionName))}H1.$inject=["popupMenu","translate","elementTemplates"],H1.prototype.register=function(){this._popupMenu.registerProvider("bpmn-replace",this)},H1.prototype.getPopupMenuEntries=function(e){return t=>{let n=Object.entries(t);return this._elementTemplates&&this._elementTemplates.get(e)&&this.addPlainElementEntry(e,n,this._translate,this._elementTemplates),n.reduce(((e,[t,n])=>(e[t]=n,e)),{})}},H1.prototype.addPlainElementEntry=function(e,t,n,i){const r=this.getPlainEntry(e,t,n,i);if(!r)return;const[o,s]=r;t.splice(o,0,[s.id,s])},H1.prototype.getPlainEntry=function(e,t,n,i){const{options:r,option:o,optionIndex:s}=function(e){const t=(e,t)=>t.target&&!I1(e)(t);return U1.reduce(((n,i)=>{if(n)return n;const r=i.findIndex((n=>t(e,n)));return-1!==r?{options:i,option:i[r],optionIndex:r}:void 0}),null)}(e)||{};if(!r)return null;const a={id:"replace-unlink-element-template",action:()=>{i.applyTemplate(e,null)},label:n(o.label),className:o.className},l=Y1(r,s-1,t);if(l)return[l+1,a];const c=Y1(r,s+1,t);return c?[c,a]:[0,a]};var W1={__depends__:[B1,z1,X1,{__init__:["unlinkTemplateReplaceProvider"],unlinkTemplateReplaceProvider:["type",H1]}]};function G1(e={}){e={...e,moddleExtensions:{...D0,...e.moddleExtensions},propertiesPanel:{description:HZ,...e.propertiesPanel}},this._addElementTemplateChooserModule(e),YZ.call(this,e)}return e(G1,YZ),G1.prototype._addElementTemplateChooserModule=function(e){const{elementTemplateChooser:t}=e;!1!==t&&(this._modules=[...this._modules,C0])},G1.prototype._camundaCloudModules=[...R0,SK,CK,aW,UZ,j1,W1,S0,c0,O0],G1.prototype._modules=[].concat(YZ.prototype._modules,G1.prototype._camundaCloudModules),G1}));
|
|
175
|
+
</a>`,id:"exampleJson",getValue:()=>u0(t),setValue:e=>{const n=[],{commands:i,zeebeProperties:a}=g0(t,s);n.push(...i);const l=h0(t,p0);l?e?n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:l,properties:{value:e}}}):n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{properties:v0(a.get("properties"))}}}):n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{properties:[...a.get("properties"),y0(e,o)]}}}),r.execute("properties-panel.multi-command-executor",n)},debounce:n,validate:e=>{if(e)try{JSON.parse(e)}catch(e){return e.message}},monospace:!0})},g0=(e,t)=>{const n=[],i=Fr(e),r=t.get("bpmnFactory");let o=i.get("extensionElements");o||(o=r.create("bpmn:ExtensionElements",{values:[]}),o.$parent=i,n.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:i,properties:{extensionElements:o}}}));let s=o.get("values").find((e=>"zeebe:Properties"===e.$type));return s||(s=r.create("zeebe:Properties",{properties:[]}),s.$parent=o,n.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:o,properties:{values:[...o.get("values"),s]}}})),{zeebeProperties:s,commands:n}};function y0(e,t){return t.create("zeebe:Property",{name:p0,value:e})}function v0(e){return e.filter((e=>e.get("name")!==p0))}class b0{constructor(e,t){this._injector=t,e.registerProvider(100,this)}getGroups(e){const t=this._injector.get("translate"),n=this._injector.get("elementTemplates",!1);let i=null;n&&(i=n.get(e));const r=!!i;return e=>{if(r)return e;const n={id:"additionalDataGroup",label:t("Example data"),entries:[{id:"exampleJson",component:m0,isEdited:YQ}],component:iQ};return e.push(n),e}}}b0.$inject=["propertiesPanel","injector"];var O0={__depends__:[f0,{__init__:["dataPropertiesProvider"],dataPropertiesProvider:["type",b0]}]};const x0="data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22"><path d="m12.5 5.5.3-.4 3.6-3.6c.5-.5 1.3-.5 1.7 0l1 1c.5.4.5 1.2 0 1.7l-3.6 3.6-.4.2v.2c0 1.4.6 2 1 2.7v.6l-1.7 1.6c-.2.2-.4.2-.6 0L7.3 6.6a.4.4 0 0 1 0-.6l.3-.3.5-.5.8-.8c.2-.2.4-.1.6 0 .9.5 1.5 1.1 3 1.1zm-9.9 6 4.2-4.2 6.3 6.3-4.2 4.2c-.3.3-.9.3-1.2 0l-.8-.8-.9-.8-2.3-2.9" /></svg>');function w0(e,t,n,i){this._contextPad=e,this._popupMenu=t,this._canvas=n,this._translate=i,e.registerProvider(this)}function _0(e,t,n){var i=e.getContainer(),r=t.getPad(n).html,o=i.getBoundingClientRect(),s=r.getBoundingClientRect(),a=s.top-o.top;return{x:s.left-o.left,y:a+s.height+5}}w0.$inject=["contextPad","popupMenu","canvas","translate"],w0.prototype.getContextPadEntries=function(e){return this._createPopupAction([e])},w0.prototype.getMultiElementContextPadEntries=function(e){return this._createPopupAction(e)},w0.prototype._createPopupAction=function(e){const t=this._canvas,n=this._translate,i=this._contextPad,r=this._popupMenu;return{"set-color":{group:"edit",className:"bpmn-icon-color",title:n("Set Color"),imageUrl:x0,action:{click:(n,o)=>{var s={..._0(t,i,e),cursor:{x:n.x,y:n.y}};r.open(e,"color-picker",s)}}}}};const E0=[{label:"Default",fill:void 0,stroke:void 0},{label:"Blue",fill:"#BBDEFB",stroke:"#0D4372"},{label:"Orange",fill:"#FFE0B2",stroke:"#6B3C00"},{label:"Green",fill:"#C8E6C9",stroke:"#205022"},{label:"Red",fill:"#FFCDD2",stroke:"#831311"},{label:"Purple",fill:"#E1BEE7",stroke:"#5B176D"}];function P0(e,t,n,i){this._popupMenu=t,this._modeling=n,this._translate=i,this._colors=e&&e.colors||E0,this._popupMenu.registerProvider("color-picker",this)}function k0(e,t,n){return function(){e.setColor(t,n)}}P0.$inject=["config.colorPicker","popupMenu","modeling","translate"],P0.prototype.getEntries=function(e){var t=this,n=Oe('\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="100%">\n <rect rx="2" x="1" y="1" width="22" height="22" fill="var(--fill-color)" stroke="var(--stroke-color)"></rect>\n </svg>\n ');return this._colors.map((function(i){return n.style.setProperty("--fill-color",i.fill||"white"),n.style.setProperty("--stroke-color",i.stroke||"rgb(34, 36, 42)"),{title:t._translate(i.label),id:i.label.toLowerCase()+"-color",imageUrl:`data:image/svg+xml;utf8,${encodeURIComponent(n.outerHTML)}`,action:k0(t._modeling,e,i)}}))};var S0={__init__:["colorContextPadProvider","colorPopupProvider"],colorContextPadProvider:["type",w0],colorPopupProvider:["type",P0]};function T0(e,t,n,i,r){this._eventBus=t,this._elementTemplates=n,this._translate=i,this._popupMenu=r;(!e||!1!==e.elementTemplateChooser)&&t.on("elementTemplates.select",(e=>{const{element:t}=e;this.open(t).then((e=>{n.applyTemplate(t,e)})).catch((e=>{"user-canceled"!==e&&console.error("elementTemplate.select :: error",e)}))}))}function $0(e,t,n,i){this._popupMenu=e,this._eventBus=t,this._translate=n,this._elementTemplates=i,this.register()}T0.$inject=["config.connectorsExtension","eventBus","elementTemplates","translate","popupMenu"],T0.prototype.open=function(e){const t=this._popupMenu,n=this._translate,i=this._eventBus;return new Promise(((r,o)=>{const s=()=>o("user-canceled");i.once("popupMenu.close",s),i.once("elementTemplateChooser.chosen",(e=>{const{template:t}=e;i.off("popupMenu.close",s),r(t)})),t.open(e,"element-template-chooser",{x:0,y:0},{title:n("Choose element template"),search:!0,width:350})}))},$0.$inject=["popupMenu","eventBus","translate","elementTemplates"],$0.prototype.register=function(){this._popupMenu.registerProvider("element-template-chooser",this)},$0.prototype.getPopupMenuEntries=function(e){return this.getTemplateEntries(e).reduce(((e,[t,n])=>(e[t]=n,e)),{})},$0.prototype.getTemplateEntries=function(e){const t=this._eventBus,n=this._translate;return this._getMatchingTemplates(e).map((i=>{const{icon:r={},category:o}=i;return[`apply-template-${i.id}`,{label:i.name&&n(i.name),description:i.description&&n(i.description),documentationRef:i.documentationRef,imageUrl:r.contents,group:o&&{...o,name:n(o.name)},action:()=>{t.fire("elementTemplateChooser.chosen",{element:e,template:i})}}]}))},$0.prototype._getMatchingTemplates=function(e){return this._elementTemplates.getLatest().filter((t=>Vr(e,t.appliesTo)&&!function(e,t){const n=Fr(e);if(n)return n.get("modelerTemplate")===t.id;return!1}(e,t)))};var C0={__init__:["elementTemplateChooser","elementTemplateChooserEntryProvider"],elementTemplateChooser:["type",T0],elementTemplateChooserEntryProvider:["type",$0]};var M0=1250;function A0(e,t,n){this._bpmnRenderer=t,this._iconProperty=e&&e.iconProperty,pt.call(this,n,M0)}e(A0,pt),A0.prototype.canRender=function(e){return!En(e)&&!(!Vr(e,["bpmn:Task","bpmn:Event"])||!this._getIcon(e))},A0.prototype._getIcon=function(e){return function(e,t){return t=t||"zeebe:modelerTemplateIcon",Fr(e).get(t)}(e,this._iconProperty)},A0.prototype.drawShape=function(e,t){var n=this._bpmnRenderer.handlers[["bpmn:BoundaryEvent","bpmn:EndEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:StartEvent","bpmn:Task"].find((e=>Lr(t,e)))],i=n(e,t,{renderIcon:!1}),r=this._getIcon(t),o=Lr(t,"bpmn:Task")?{x:5,y:5}:{x:(t.width-18)/2,y:(t.height-18)/2},s=ze("image");return $e(s,{href:r,width:18,height:18,...o}),Pe(e,s),i},A0.$inject=["config.elementTemplateIconRenderer","bpmnRenderer","eventBus"];const R0=[{__init__:["elementTemplateIconRenderer"],elementTemplateIconRenderer:["type",A0]}],D0={zeebe:{name:"zeebe",prefix:"zeebe",uri:"http://camunda.org/schema/zeebe/1.0",xml:{tagAlias:"lowerCase"},associations:[],types:[{name:"ZeebeServiceTask",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:SendTask","bpmn:EndEvent","bpmn:IntermediateThrowEvent"],properties:[{name:"retryCounter",type:"String",isAttr:!0}]},{name:"IoMapping",superClass:["Element"],properties:[{name:"ioMapping",type:"IoMapping"},{name:"inputParameters",isMany:!0,type:"Input"},{name:"outputParameters",isMany:!0,type:"Output"}],meta:{allowedIn:["bpmn:CallActivity","bpmn:Event","bpmn:ReceiveTask","zeebe:ZeebeServiceTask","bpmn:SubProcess","bpmn:UserTask"]}},{name:"InputOutputParameter",properties:[{name:"source",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"}]},{name:"Subscription",superClass:["Element"],properties:[{name:"correlationKey",isAttr:!0,type:"String"}]},{name:"Input",superClass:["InputOutputParameter"],meta:{allowedIn:["bpmn:CallActivity","zeebe:ZeebeServiceTask","bpmn:SubProcess","bpmn:UserTask"]}},{name:"Output",superClass:["InputOutputParameter"],meta:{allowedIn:["bpmn:CallActivity","bpmn:Event","bpmn:ReceiveTask","zeebe:ZeebeServiceTask","bpmn:SubProcess","bpmn:UserTask"]}},{name:"TaskHeaders",superClass:["Element"],meta:{allowedIn:["zeebe:ZeebeServiceTask","bpmn:UserTask"]},properties:[{name:"values",type:"Header",isMany:!0}]},{name:"Header",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"key",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"TaskDefinition",superClass:["Element"],meta:{allowedIn:["zeebe:ZeebeServiceTask"]},properties:[{name:"type",type:"String",isAttr:!0},{name:"retries",type:"String",isAttr:!0}]},{name:"LoopCharacteristics",superClass:["Element"],meta:{allowedIn:["zeebe:ZeebeServiceTask","bpmn:ReceiveTask","bpmn:SubProcess"]},properties:[{name:"inputCollection",type:"String",isAttr:!0},{name:"inputElement",type:"String",isAttr:!0},{name:"outputCollection",type:"String",isAttr:!0},{name:"outputElement",type:"String",isAttr:!0}]},{name:"CalledElement",superClass:["Element"],meta:{allowedIn:["bpmn:CallActivity"]},properties:[{name:"processId",type:"String",isAttr:!0},{name:"processIdExpression",type:"String",isAttr:!0},{name:"propagateAllChildVariables",isAttr:!0,type:"Boolean"}]},{name:"UserTaskForm",superClass:["Element"],meta:{allowedIn:["bpmn:Process"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"body",type:"String",isBody:!0}]},{name:"FormDefinition",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"formKey",type:"String",isAttr:!0}]},{name:"CalledDecision",superClass:["Element"],meta:{allowedIn:["bpmn:BusinessRuleTask"]},properties:[{name:"decisionId",type:"String",isAttr:!0},{name:"resultVariable",type:"String",isAttr:!0}]},{name:"AssignmentDefinition",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"assignee",type:"String",isAttr:!0},{name:"candidateGroups",type:"String",isAttr:!0},{name:"candidateUsers",type:"String",isAttr:!0}]},{name:"TaskSchedule",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"dueDate",type:"String",isAttr:!0},{name:"followUpDate",type:"String",isAttr:!0}]},{name:"Properties",superClass:["Element"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"Property",properties:[{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Collaboration","bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"},{name:"modelerTemplateVersion",isAttr:!0,type:"Integer"},{name:"modelerTemplateIcon",isAttr:!0,type:"String"}]},{name:"TemplatedRootElement",isAbstract:!0,extends:["bpmn:Error","bpmn:Escalation","bpmn:Message","bpmn:Signal"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"}]},{name:"Script",superClass:["Element"],meta:{allowedIn:["bpmn:ScriptTask"]},properties:[{name:"expression",type:"String",isAttr:!0},{name:"resultVariable",type:"String",isAttr:!0}]}]}},j0=Object.prototype.toString,q0=Object.prototype.hasOwnProperty;function B0(e){return void 0===e}function N0(e){return"[object Array]"===j0.call(e)}function z0(e){return"[object Object]"===j0.call(e)}function Q0(e){return"[object Number]"===j0.call(e)}function X0(e){const t=j0.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t||"[object Proxy]"===t}function I0(e,t){return q0.call(e,t)}function L0(e,t){const n=function(e){return X0(e)?e:t=>t===e}(t);let i;return V0(e,(function(e,t){if(n(e,t))return i=e,!1})),i}function V0(e,t){let n,i;if(B0(e))return;const r=N0(e)?U0:F0;for(let o in e)if(I0(e,o)&&(n=e[o],i=t(n,r(o)),!1===i))return n}function F0(e){return e}function U0(e){return Number(e)}function H0(e,...t){return Object.assign(e,...t)}const Y0={id:"events",name:"Events"},W0={id:"tasks",name:"Tasks"},G0={id:"data",name:"Data"},Z0={id:"participants",name:"Participants"},K0={id:"subprocess",name:"Sub Processes"},J0={id:"gateways",name:"Gateways"},e1=[{label:"Start Event",actionName:"none-start-event",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"Boundary Event",actionName:"none-boundary-event",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:BoundaryEvent"}},{label:"End Event",actionName:"none-end-event",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}}].map((e=>({...e,group:Y0}))),t1=[{label:"Message Start Event",actionName:"message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}].map((e=>({...e,group:Y0}))),n1=[{label:"Message Intermediate Catch Event",actionName:"message-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Message Intermediate Throw Event",actionName:"message-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Intermediate Catch Event",actionName:"timer-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Intermediate Throw Event",actionName:"escalation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Intermediate Catch Event",actionName:"conditional-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Link Intermediate Catch Event",actionName:"link-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Link Intermediate Throw Event",actionName:"link-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Compensation Intermediate Throw Event",actionName:"compensation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal Intermediate Catch Event",actionName:"signal-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Signal Intermediate Throw Event",actionName:"signal-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}].map((e=>({...e,group:Y0}))),i1=[{label:"Message Boundary Event",actionName:"message-boundary",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Boundary Event",actionName:"timer-boundary",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Boundary Event",actionName:"escalation-boundary",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Boundary Event",actionName:"conditional-boundary",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Error Boundary Event",actionName:"error-boundary",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel Boundary Event",actionName:"cancel-boundary",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Signal Boundary Event",actionName:"signal-boundary",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Compensation Boundary Event",actionName:"compensation-boundary",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Boundary Event (non-interrupting)",actionName:"non-interrupting-message-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},{label:"Timer Boundary Event (non-interrupting)",actionName:"non-interrupting-timer-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},{label:"Escalation Boundary Event (non-interrupting)",actionName:"non-interrupting-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},{label:"Conditional Boundary Event (non-interrupting)",actionName:"non-interrupting-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},{label:"Signal Boundary Event (non-interrupting)",actionName:"non-interrupting-signal-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}}].map((e=>({...e,group:Y0}))),r1=[{label:"Message End Event",actionName:"message-end",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Escalation End Event",actionName:"escalation-end",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Error End Event",actionName:"error-end",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel End Event",actionName:"cancel-end",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Compensation End Event",actionName:"compensation-end",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal End Event",actionName:"signal-end",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Terminate End Event",actionName:"terminate-end",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}].map((e=>({...e,group:Y0}))),o1=[{label:"Exclusive Gateway",actionName:"exclusive-gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel Gateway",actionName:"parallel-gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive Gateway",search:"or",actionName:"inclusive-gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"},rank:-1},{label:"Complex Gateway",actionName:"complex-gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"},rank:-1},{label:"Event based Gateway",actionName:"event-based-gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}].map((e=>({...e,group:J0}))),s1=[{label:"Transaction",actionName:"transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event Sub Process",search:"subprocess",actionName:"event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Sub Process (collapsed)",search:"subprocess",actionName:"collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}},{label:"Sub Process (expanded)",search:"subprocess",actionName:"expanded-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!0}}].map((e=>({...e,group:K0}))),a1=[...o1,...[{label:"Task",actionName:"task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"User Task",actionName:"user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Service Task",actionName:"service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Send Task",actionName:"send-task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"},rank:-1},{label:"Receive Task",actionName:"receive-task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"},rank:-1},{label:"Manual Task",actionName:"manual-task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"},rank:-1},{label:"Business Rule Task",actionName:"rule-task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},{label:"Script Task",actionName:"script-task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},{label:"Call Activity",actionName:"call-activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}}].map((e=>({...e,group:W0}))),...s1,...e1,...t1,...n1,...r1,...i1,...[{label:"Data Store Reference",actionName:"data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}},{label:"Data Object Reference",actionName:"data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}].map((e=>({...e,group:G0}))),...[{label:"Expanded Pool",search:"Participant",actionName:"expanded-pool",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},{label:"Empty Pool",search:"Collapsed Participant",actionName:"collapsed-pool",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}}].map((e=>({...e,group:Z0})))];function l1(e,t,n,i,r,o,s){this._elementFactory=e,this._popupMenu=t,this._create=n,this._autoPlace=i,this._rules=r,this._create=n,this._mouse=o,this._translate=s,this.register()}l1.$inject=["elementFactory","popupMenu","create","autoPlace","rules","mouse","translate"],l1.prototype.register=function(){this._popupMenu.registerProvider("bpmn-append",this)},l1.prototype.getPopupMenuEntries=function(e){const t=this._rules,n=this._translate,i={};if(!t.allowed("shape.append",{element:e}))return[];return this._filterEntries(a1).forEach((t=>{const{actionName:r,className:o,label:s,target:a,description:l,group:c,search:p,rank:u}=t;i[`append-${r}`]={label:s&&n(s),className:o,description:l,group:c&&{...c,name:n(c.name)},search:p,rank:u,action:this._createEntryAction(e,a)}})),i},l1.prototype._filterEntries=function(e){return e.filter((e=>{const t=e.target,{type:n,eventDefinitionType:i}=t;return!["bpmn:StartEvent","bpmn:Participant"].includes(n)&&("bpmn:BoundaryEvent"!==n||!B0(i))}))},l1.prototype._createEntryAction=function(e,t){const n=this._elementFactory,i=this._autoPlace,r=this._create,o=this._mouse,s=i=>{const s=n.create("shape",t);return i instanceof KeyboardEvent&&(i=o.getLastMoveEvent()),r.start(i,s,{source:e})};return{click:this._canAutoPlaceElement(t)?()=>{const r=n.create("shape",t);i.append(e,r)}:s,dragstart:s}},l1.prototype._canAutoPlaceElement=e=>{const{type:t}=e;return"bpmn:BoundaryEvent"!==t&&(("bpmn:SubProcess"!==t||!e.triggeredByEvent)&&("bpmn:IntermediateCatchEvent"!==t||"bpmn:LinkEventDefinition"!==e.eventDefinitionType))};function c1(e,t,n,i){this._contextPad=e,this._popupMenu=t,this._translate=n,this._canvas=i,this.register()}function p1(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}function u1(e,t){var n=d1(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function h1(e,t){return function(e,t){return!!L0(e,t)}(t,(function(t){return u1(e,t)}))}function d1(e){return e&&e.businessObject||e}c1.$inject=["contextPad","popupMenu","translate","canvas"],c1.prototype.register=function(){this._contextPad.registerProvider(this)},c1.prototype.getContextPadEntries=function(e){const t=this._popupMenu,n=this._translate,i=this._getAppendMenuPosition.bind(this);if(!t.isEmpty(e,"bpmn-append"))return{append:{group:"model",html:'<div class="entry"><svg width="22" height="22" viewBox="0 0 5.82 5.82" xmlns="http://www.w3.org/2000/svg">\n <path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>\n </svg></div>',title:n("Append element"),action:{click:function(e,r){const o=H0(i(r),{cursor:{x:e.x,y:e.y}});t.open(r,"bpmn-append",o,{title:n("Append element"),width:300,search:!0})}}}}},c1.prototype._getAppendMenuPosition=function(e){const t=this._contextPad.getPad(e).html.getBoundingClientRect();return{x:t.right+5,y:t.top}};function f1(e){this._eventBus=e}function m1(e){return function(t,n,i,r,o){(X0(t)||Q0(t))&&(o=r,r=i,i=n,n=t,t=null),this.on(t,e,n,i,r,o)}}function g1(e){f1.call(this,e),this.init()}function y1(e){g1.call(this,e)}f1.$inject=["eventBus"],f1.prototype.on=function(e,t,n,i,r,o){if((X0(t)||Q0(t))&&(o=r,r=i,i=n,n=t,t=null),X0(n)&&(o=r,r=i,i=n,n=1e3),z0(r)&&(o=r,r=!1),!X0(i))throw new Error("handlerFn must be a function");N0(e)||(e=[e]);var s=this._eventBus;V0(e,(function(e){var a=["commandStack",e,t].filter((function(e){return e})).join(".");s.on(a,n,r?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,o):i,o)}))},f1.prototype.canExecute=m1("canExecute"),f1.prototype.preExecute=m1("preExecute"),f1.prototype.preExecuted=m1("preExecuted"),f1.prototype.execute=m1("execute"),f1.prototype.executed=m1("executed"),f1.prototype.postExecute=m1("postExecute"),f1.prototype.postExecuted=m1("postExecuted"),f1.prototype.revert=m1("revert"),f1.prototype.reverted=m1("reverted"),g1.$inject=["eventBus"],p1(g1,f1),g1.prototype.addRule=function(e,t,n){var i=this;"string"==typeof e&&(e=[e]),e.forEach((function(e){i.canExecute(e,t,(function(e,t,i){return n(e)}),!0)}))},g1.prototype.init=function(){},p1(y1,g1),y1.$inject=["eventBus"],y1.prototype.init=function(){this.addRule("shape.append",(function(e){const t=e.element,n=d1(t);return(!z0(i=t)||!I0(i,"labelTarget"))&&(!h1(t,["bpmn:EndEvent","bpmn:Group","bpmn:TextAnnotation","bpmn:Lane","bpmn:Participant","bpmn:DataStoreReference","bpmn:DataObjectReference"])&&(!t.waypoints&&((!u1(t,"bpmn:IntermediateThrowEvent")||!function(e,t){const n=d1(e);return!!L0(n.eventDefinitions||[],(function(e){return u1(e,t)}))}(t,"bpmn:LinkEventDefinition"))&&((!u1(t,"bpmn:SubProcess")||!n.triggeredByEvent)&&void 0))));var i}))};var v1,b1={__init__:["appendMenuProvider","appendContextPadProvider","appendRules"],appendMenuProvider:["type",l1],appendContextPadProvider:["type",c1],appendRules:["type",y1]};function O1(e,t,n,i,r,o){this._elementFactory=e,this._popupMenu=t,this._create=n,this._autoPlace=i,this._mouse=r,this._translate=o,this.register()}O1.$inject=["elementFactory","popupMenu","create","autoPlace","mouse","translate"],O1.prototype.register=function(){this._popupMenu.registerProvider("bpmn-create",this)},O1.prototype.getPopupMenuEntries=function(){const e={};return a1.forEach((t=>{const{actionName:n,className:i,label:r,target:o,description:s,group:a,search:l,rank:c}=t,p=this._createEntryAction(o);e[`create-${n}`]={label:r&&this._translate(r),className:i,description:s,group:a&&{...a,name:this._translate(a.name)},search:l,rank:c,action:{click:p,dragstart:p}}})),e},O1.prototype._createEntryAction=function(e){const t=this._create,n=this._mouse,i=this._popupMenu,r=this._elementFactory;let o;return s=>(i.close(),o="bpmn:Participant"===e.type?r.createParticipantShape(e):r.create("shape",e),s instanceof KeyboardEvent&&(s=n.getLastMoveEvent()),t.start(s,o))},"undefined"!=typeof document&&((v1=document.createElement("div")).innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',v1.getElementsByTagName("link").length,v1=void 0);function x1(e,t,n,i,r){this._palette=e,this._translate=t,this._popupMenu=n,this._canvas=i,this._mouse=r,this.register()}x1.$inject=["palette","translate","popupMenu","canvas","mouse"],x1.prototype.register=function(){this._palette.registerProvider(900,this)},x1.prototype.getPaletteEntries=function(e){const t=this._translate,n=this._popupMenu,i=this._canvas,r=this._mouse,o=e=>{if(e instanceof KeyboardEvent)return{x:(e=r.getLastMoveEvent()).x,y:e.y};const t=e&&e.target||(n='.djs-palette [data-action="create"]',(i=i||document).querySelector(n));var n,i;const o=t.getBoundingClientRect();return t&&{x:o.left+o.width/2+35,y:o.top+o.height/2+10}};return{create:{group:"create",html:'<div class="entry"> <svg width="46" height="46" viewBox="-2 -2 9.82 9.82" xmlns="http://www.w3.org/2000/svg">\n <path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>\n </svg></div>',title:t("Create element"),action:{click:function(e){const r=o(e),s=i.getRootElement();n.open(s,"bpmn-create",r,{title:t("Create element"),width:300,search:!0})}}}}};var w1={__init__:["createMenuProvider","createPaletteProvider"],createMenuProvider:["type",O1],createPaletteProvider:["type",x1]};function _1(e){this._injector=e,this.registerActions()}_1.$inject=["injector"],_1.prototype.registerActions=function(){const e=this._injector.get("editorActions",!1),t=this._injector.get("selection",!1),n=this._injector.get("contextPad",!1),i=this._injector.get("palette",!1),r=this._injector.get("popupMenu",!1),o={};t&&n&&i&&r&&i&&H0(o,{appendElement:function(e){const o=t&&t.get();1!=o.length||r.isEmpty(o[0],"bpmn-append")?i.triggerEntry("create","click",e):n.triggerEntry("append","click",e)}}),i&&H0(o,{createElement:function(e){i.triggerEntry("create","click",e)}}),e&&e.register(o)};var E1={__depends__:[b1,w1],__init__:["createAppendEditorActions"],createAppendEditorActions:["type",_1]},P1=["c","C"],k1=["v","V"],S1=["y","Y"],T1=["z","Z"];function $1(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function C1(e,t){return-1!==(e=N0(e)?e:[e]).indexOf(t.key)||-1!==e.indexOf(t.code)}function M1(e){return e.shiftKey}var A1=500;function R1(e,t){var n=this;e.on("editorActions.init",A1,(function(e){var i=e.editorActions;n.registerBindings(t,i)}))}function D1(e){this._injector=e,this._keyboard=this._injector.get("keyboard",!1),this._editorActions=this._injector.get("editorActions",!1),this._keyboard&&this._injector.invoke(R1,this)}R1.$inject=["eventBus","keyboard"],R1.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}n("undo",(function(e){if(function(e){return $1(e)&&!M1(e)&&C1(T1,e)}(e.keyEvent))return t.trigger("undo"),!0})),n("redo",(function(e){if(function(e){return $1(e)&&(C1(S1,e)||C1(T1,e)&&M1(e))}(e.keyEvent))return t.trigger("redo"),!0})),n("copy",(function(e){if(function(e){return $1(e)&&C1(P1,e)}(e.keyEvent))return t.trigger("copy"),!0})),n("paste",(function(e){if(function(e){return $1(e)&&C1(k1,e)}(e.keyEvent))return t.trigger("paste"),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(C1(["+","Add","="],n)&&$1(n))return t.trigger("stepZoom",{value:1}),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(C1(["-","Subtract"],n)&&$1(n))return t.trigger("stepZoom",{value:-1}),!0})),n("zoom",(function(e){var n=e.keyEvent;if(C1("0",n)&&$1(n))return t.trigger("zoom",{value:1}),!0})),n("removeSelection",(function(e){if(C1(["Backspace","Delete","Del"],e.keyEvent))return t.trigger("removeSelection"),!0}))},p1(D1,R1),D1.$inject=["injector"],D1.prototype.registerBindings=function(){const e=this._keyboard,t=this._editorActions;function n(n,i){t&&t.isRegistered(n)&&e&&e.addListener(i)}R1.prototype.registerBindings.call(this,e,t),n("appendElement",(function(n){const i=n.keyEvent;if(!e||!e.hasModifier(i))return e&&e.isKey(["a","A"],i)?(t&&t.trigger("appendElement",i),!0):void 0})),n("createElement",(function(n){const i=n.keyEvent;if(!e||!e.hasModifier(i))return e&&e.isKey(["n","N"],i)?(t&&t.trigger("createElement",i),!0):void 0}))};var j1={__depends__:[b1,w1,E1,{__depends__:[b1,w1],__init__:["createAppendKeyboardBindings"],createAppendKeyboardBindings:["type",D1]}]};function q1(e,t,n,i,r,o,s){this._popupMenu=e,this._translate=t,this._elementTemplates=n,this._autoPlace=i,this._create=r,this._mouse=o,this._rules=s,this.register()}q1.$inject=["popupMenu","translate","elementTemplates","autoPlace","create","move","rules"],q1.prototype.register=function(){this._popupMenu.registerProvider("bpmn-append",this)},q1.prototype.getPopupMenuEntries=function(e){return t=>{if(!this._rules.allowed("shape.append",{element:e}))return[];const n=this._filterTemplates(this._elementTemplates.getLatest());return H0(t,this.getTemplateEntries(e,n)),t}},q1.prototype.getTemplateEntries=function(e,t){const n={};return t.map((t=>{const{icon:i={},category:r}=t,o=`append.template-${t.id}`,s={id:"templates",name:this._translate("Templates")};n[o]={label:t.name,description:t.description,documentationRef:t.documentationRef,imageUrl:i.contents,group:r||s,action:this._getEntryAction(e,t)}})),n},q1.prototype._filterTemplates=function(e){return e.filter((e=>{const{appliesTo:t,elementType:n}=e,i=n&&n.value||t[0];return!["bpmn:StartEvent","bpmn:Participant"].includes(i)&&"bpmn:SequenceFlow"!==i}))},q1.prototype._getEntryAction=function(e,t){return{click:()=>{const n=this._elementTemplates.createElement(t);this._autoPlace.append(e,n)},dragstart:n=>{const i=this._elementTemplates.createElement(t);n instanceof KeyboardEvent&&(n=this._mouse.getLastMoveEvent()),this._create.start(n,i,{source:e})}}};var B1={__init__:["elementTemplatesAppendProvider"],elementTemplatesAppendProvider:["type",q1]};function N1(e,t,n,i,r){this._popupMenu=e,this._translate=t,this._elementTemplates=n,this._mouse=i,this._create=r,this.register()}N1.$inject=["popupMenu","translate","elementTemplates","mouse","create"],N1.prototype.register=function(){this._popupMenu.registerProvider("bpmn-create",this)},N1.prototype.getPopupMenuEntries=function(e){return t=>(H0(t,this.getTemplateEntries(e)),t)},N1.prototype.getTemplateEntries=function(){const e=this._elementTemplates.getLatest(),t={};return e.map((e=>{const{icon:n={},category:i}=e,r=`create.template-${e.id}`,o={id:"templates",name:this._translate("Templates")};t[r]={label:e.name,description:e.description,documentationRef:e.documentationRef,imageUrl:n.contents,group:i||o,action:{click:this._getEntryAction(e),dragstart:this._getEntryAction(e)}}})),t},N1.prototype._getEntryAction=function(e){const t=this._create,n=this._popupMenu,i=this._elementTemplates,r=this._mouse;return o=>{n.close();let s=i.createElement(e);return o instanceof KeyboardEvent&&(o=r.getLastMoveEvent()),t.start(o,s)}};var z1={__init__:["elementTemplatesCreateProvider"],elementTemplatesCreateProvider:["type",N1]};function Q1(e,t,n){this._popupMenu=e,this._translate=t,this._elementTemplates=n,this.register()}Q1.$inject=["popupMenu","translate","elementTemplates"],Q1.prototype.register=function(){this._popupMenu.registerProvider("bpmn-replace",this)},Q1.prototype.getPopupMenuEntries=function(e){return t=>{let n=Object.entries(t);return n=[...n,...this.getTemplateEntries(e)],n.reduce(((e,[t,n])=>(e[t]=n,e)),{})}},Q1.prototype.getTemplateEntries=function(e){return this._getMatchingTemplates(e).map((t=>{const{icon:n={},category:i}=t,r=`replace.template-${t.id}`,o={id:"templates",name:this._translate("Templates")};return[r,{label:t.name,description:t.description,documentationRef:t.documentationRef,imageUrl:n.contents,group:i||o,action:()=>{this._elementTemplates.applyTemplate(e,t)}}]}))},Q1.prototype._getMatchingTemplates=function(e){return this._elementTemplates.getLatest().filter((t=>h1(e,t.appliesTo)&&!function(e,t){const n=d1(e);if(n)return n.get("zeebe:modelerTemplate")===t.id;return!1}(e,t)))};var X1={__init__:["elementTemplatesReplaceProvider"],elementTemplatesReplaceProvider:["type",Q1]};function I1(e){return function(t){var n=t.target,i=d1(e),r=i.eventDefinitions&&i.eventDefinitions[0],o=i.$type===n.type,s=(r&&r.$type)===n.eventDefinitionType,a=!!n.triggeredByEvent==!!i.triggeredByEvent,l=void 0===n.isExpanded||n.isExpanded===function(e,t){return!u1(e,"bpmn:CallActivity")&&(u1(e,"bpmn:SubProcess")?(t=t||function(e){return e&&e.di}(e),!(!t||!u1(t,"bpmndi:BPMNPlane"))||t&&!!t.isExpanded):!u1(e,"bpmn:Participant")||!!d1(e).processRef)}(e);return!(o&&s&&a&&l)}}var L1=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Sub Process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}}],V1=L1,F1=Object.freeze({__proto__:null,BOUNDARY_EVENT:[{label:"Message Boundary Event",actionName:"replace-with-message-boundary",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Boundary Event",actionName:"replace-with-timer-boundary",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Boundary Event",actionName:"replace-with-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Boundary Event",actionName:"replace-with-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Error Boundary Event",actionName:"replace-with-error-boundary",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel Boundary Event",actionName:"replace-with-cancel-boundary",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Signal Boundary Event",actionName:"replace-with-signal-boundary",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Compensation Boundary Event",actionName:"replace-with-compensation-boundary",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-message-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},{label:"Timer Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},{label:"Escalation Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},{label:"Conditional Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},{label:"Signal Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}}],DATA_OBJECT_REFERENCE:[{label:"Data Store Reference",actionName:"replace-with-data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}}],DATA_STORE_REFERENCE:[{label:"Data Object Reference",actionName:"replace-with-data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}],END_EVENT:[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message End Event",actionName:"replace-with-message-end",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Escalation End Event",actionName:"replace-with-escalation-end",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Error End Event",actionName:"replace-with-error-end",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel End Event",actionName:"replace-with-cancel-end",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Compensation End Event",actionName:"replace-with-compensation-end",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal End Event",actionName:"replace-with-signal-end",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Terminate End Event",actionName:"replace-with-terminate-end",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}],EVENT_SUB_PROCESS:V1,EVENT_SUB_PROCESS_START_EVENT:[{label:"Message Start Event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Error Start Event",actionName:"replace-with-error-start",className:"bpmn-icon-start-event-error",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Escalation Start Event",actionName:"replace-with-escalation-start",className:"bpmn-icon-start-event-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Compensation Start Event",actionName:"replace-with-compensation-start",className:"bpmn-icon-start-event-compensation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-message-start",className:"bpmn-icon-start-event-non-interrupting-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!1}},{label:"Timer Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-start",className:"bpmn-icon-start-event-non-interrupting-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!1}},{label:"Conditional Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-start",className:"bpmn-icon-start-event-non-interrupting-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!1}},{label:"Signal Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-start",className:"bpmn-icon-start-event-non-interrupting-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!1}},{label:"Escalation Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-start",className:"bpmn-icon-start-event-non-interrupting-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!1}}],GATEWAY:[{label:"Exclusive Gateway",actionName:"replace-with-exclusive-gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel Gateway",actionName:"replace-with-parallel-gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive Gateway",actionName:"replace-with-inclusive-gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},{label:"Complex Gateway",actionName:"replace-with-complex-gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},{label:"Event based Gateway",actionName:"replace-with-event-based-gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}],INTERMEDIATE_EVENT:[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Intermediate Catch Event",actionName:"replace-with-message-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Message Intermediate Throw Event",actionName:"replace-with-message-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Intermediate Catch Event",actionName:"replace-with-timer-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Intermediate Throw Event",actionName:"replace-with-escalation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Intermediate Catch Event",actionName:"replace-with-conditional-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Link Intermediate Catch Event",actionName:"replace-with-link-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Link Intermediate Throw Event",actionName:"replace-with-link-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Compensation Intermediate Throw Event",actionName:"replace-with-compensation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal Intermediate Catch Event",actionName:"replace-with-signal-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Signal Intermediate Throw Event",actionName:"replace-with-signal-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],PARTICIPANT:[{label:"Expanded Pool",actionName:"replace-with-expanded-pool",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},{label:function(e){var t="Empty Pool";return e.children&&e.children.length&&(t+=" (removes content)"),t},actionName:"replace-with-collapsed-pool",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}}],SEQUENCE_FLOW:[{label:"Sequence Flow",actionName:"replace-with-sequence-flow",className:"bpmn-icon-connection"},{label:"Default Flow",actionName:"replace-with-default-flow",className:"bpmn-icon-default-flow"},{label:"Conditional Flow",actionName:"replace-with-conditional-flow",className:"bpmn-icon-conditional-flow"}],START_EVENT:[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Start Event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],START_EVENT_SUB_PROCESS:[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}}],SUBPROCESS_EXPANDED:[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Sub Process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}}],TASK:[{label:"Task",actionName:"replace-with-task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"User Task",actionName:"replace-with-user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Service Task",actionName:"replace-with-service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Send Task",actionName:"replace-with-send-task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"}},{label:"Receive Task",actionName:"replace-with-receive-task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"}},{label:"Manual Task",actionName:"replace-with-manual-task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"}},{label:"Business Rule Task",actionName:"replace-with-rule-task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},{label:"Script Task",actionName:"replace-with-script-task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},{label:"Call Activity",actionName:"replace-with-call-activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}},{label:"Sub Process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}},{label:"Sub Process (expanded)",actionName:"replace-with-expanded-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}}],TRANSACTION:L1});const U1=Object.values(F1);function H1(e,t,n){this._popupMenu=e,this._translate=t,this._elementTemplates=n,this.register()}function Y1(e,t,n){const i=e[t];return!!i&&n.findIndex((([e])=>e===i.actionName))}H1.$inject=["popupMenu","translate","elementTemplates"],H1.prototype.register=function(){this._popupMenu.registerProvider("bpmn-replace",this)},H1.prototype.getPopupMenuEntries=function(e){return t=>{let n=Object.entries(t);return this._elementTemplates&&this._elementTemplates.get(e)&&this.addPlainElementEntry(e,n,this._translate,this._elementTemplates),n.reduce(((e,[t,n])=>(e[t]=n,e)),{})}},H1.prototype.addPlainElementEntry=function(e,t,n,i){const r=this.getPlainEntry(e,t,n,i);if(!r)return;const[o,s]=r;t.splice(o,0,[s.id,s])},H1.prototype.getPlainEntry=function(e,t,n,i){const{options:r,option:o,optionIndex:s}=function(e){const t=(e,t)=>t.target&&!I1(e)(t);return U1.reduce(((n,i)=>{if(n)return n;const r=i.findIndex((n=>t(e,n)));return-1!==r?{options:i,option:i[r],optionIndex:r}:void 0}),null)}(e)||{};if(!r)return null;const a={id:"replace-unlink-element-template",action:()=>{i.applyTemplate(e,null)},label:n(o.label),className:o.className},l=Y1(r,s-1,t);if(l)return[l+1,a];const c=Y1(r,s+1,t);return c?[c,a]:[0,a]};var W1={__depends__:[B1,z1,X1,{__init__:["unlinkTemplateReplaceProvider"],unlinkTemplateReplaceProvider:["type",H1]}]};function G1(e={}){e={...e,moddleExtensions:{...D0,...e.moddleExtensions},propertiesPanel:{description:HZ,...e.propertiesPanel}},this._addElementTemplateChooserModule(e),YZ.call(this,e)}return e(G1,YZ),G1.prototype._addElementTemplateChooserModule=function(e){const{elementTemplateChooser:t}=e;!1!==t&&(this._modules=[...this._modules,C0])},G1.prototype._camundaCloudModules=[...R0,SK,CK,aW,UZ,j1,W1,S0,c0,O0],G1.prototype._modules=[].concat(YZ.prototype._modules,G1.prototype._camundaCloudModules),G1}));
|